Skip to content

A faster Dataset Creation Tool for Agriculture plot images captured aerial vehicles

License

Notifications You must be signed in to change notification settings

jithin8mathew/Small-Grain-Plots-Segmentation-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small-Grain-Plots-Segmentation-Tool

A faster Dataset Creation Tool for Agriculture plot images captured using aerial vehicles

NDSU Precision Ag Group Small Grain Plots Segmentation Tool

is a Python based tool intended for faster dataset creation using a simple GUI. Data captured from drones can be exceedingly huge in terms of Memory. This tool aims at segmenting a large field into smaller individual plots using Python 3 and OpenCV 4.

The cropping can be performed using one of the 3 methods incorported into the tool:

  1. Manual segmentation by selecting the Region of interest
  2. Semi-manual segmentation where the user inputs the number of subplots a field has and selectes the Region of iterest by clicking and draging the co-ordinates on the image. A grid is drawn in the image indicating individual plots which are automatically cropped and saved upon the click of download button
  3. Semi-automatic segemntation: User selects the image, filters the color based on the upper and lower RGB values, apply vertical and hoirzontal masks, finally automatic box detection is performed to find the plots. User can save the segmented output to local flolder using save ROI button

In adition to the above, images can be corrected by performing a rotation method to align the image to its position


Method1 Format:


Future releases:

  • Ability to convert Geotif files into PNG, JPG or other image formats
  • Add more options
  • Better GUI
  • Faster computing time
  • Bug fixes

Running the file

The code can be run after downloading the requirememts.txt packages by opeing the console and running:

python deploy.py

or 

python Geotif_tool.py

**Image processing is performed using CPU, therefore larger files tend to take longer time to upload, process and display. Further improvements will be made in the future updated versions.