Skip to content

The program aims at controlling the pollution in a given area by suggesting the number of trees and the areas where they should be planted

Notifications You must be signed in to change notification settings

abhishektyagi2912/Pollution-analyses

Repository files navigation

Pollution-analyses

The program aims at controlling the pollution in a given area by suggesting the number of trees and the areas where they should be planted. The heart of the program is Computer Vision.

Requirements

pip install numpy
pip install maths
pip install opencv-python

1. Getting the suitable Satellite images for the given region

The user is required to input the name of the area, on which the program has to be executed.The satellite images of that area will be scraped and are zoomed such as to generate a clear image of map on which image segmentation can be done.

2. Identifying the empty spaces for tree plantation

This process uses Computer vision to find the areas fit for plantation i.e. areas which are rid of any buildings,water bodies,trees,roads etc. It mainly consists of 3 parts:

i) Segmentation of the Satellite image:

The satellite image generated by the 1st step undergoes Image segmentation ,which separates all the objects in the image by focussing on edges and boundaries.The image is divided into objects such as the buildings, trees ,water bodies,roads ,barren land etc . Our first algorithm of choice is Mean Shift Algorithm for segmentation.

images 68747470733a2f2f7332322e706f7374696d672e63632f36613637616d7968642f494d475f32303138303332365f3030333930335f302e6a7067-min (1)

ii) Finding features for objects using Zernike Moments:

Zernike moments are powerful region-based shape descriptors that are invariant against linear transformations and especially against object boundary deformation. For each of the segments generated by Segmentation algorithm , Zernike moments are calculated and stored.

iii)Classification :

In this process , we need to train a Classifier which can identify the buildings, the trees and most importantly, the free land. The Zernike moments used by the above method will be used as features for these segments. The classifier is trained with labels as 'buildings','trees','water','free land' and 'roads'. After the training , We only need to find the part coming under 'Free Land' label.

3. Finding the Number of Trees to be planted:

We will be finding the pollution level of the given area . According to that level, we will find the number of trees required to bring that particular level to normal.

About

The program aims at controlling the pollution in a given area by suggesting the number of trees and the areas where they should be planted

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages