Intended for the use of Google Earth Imagery to identify Cedar Trees within the State of Oklahoma.
- Collect data from Google Earth Pro as .png file types.
- Put the imagery into a folder named Unclassified.
- Create the enviroment with Anaconda. If Anaconda has not been installed please visit:
- Activate the enviroment by using the command:
- Run Image_Slicer.c over the folder contraining Unclassified. This will create a new folder containing 160 by 160 slices of the images.
-
./slice.out
- Run Prediction.py to create black and white images of where Cedar Trees are as white and where they are not as black. This will output the images into a file named predictions.
Conda create env -f enviorment.yml
conda activate tensorflow
python prediction.py
- Imagery should be from Google Earth Pro at 1046px by 586px resolution or greater.
- The time of the year the imagery was taken should be during the winter months for best results.
- The pre-trained model was done on imagery with 1046px by 586px.
This folder will contain programs such as Image_Standardization.c that will split images to the correct sizes for the model to process.
To train your own model you will need to create a training dataset. This will require you to make duplicates of the images you want to classify. One will be in normal RGB color the other will require you to edit the imagery marking where Cedar Trees are. This can be done with using Microsoft paint, blender, photoshop, or varity of image modification software. Paint over the Cedar trees with white. Then run Image_Standarize.c over the labled imagery to convert it to a black and white image. You can do as many or as few as you like. The more input data you give the model the better it will be able to classify Cedar Trees from unseen images.
- After you have labeled your images place them in the following folders: training_img, labeled_img.
- Activate the Anaconda enviorment by:
- Run Model_Builder.py by:
conda activate tensorflow
python Model_Builder.py
By running predction.py the program will use your new model.