/Wheat-Plots-Segmentation-Tool

A plot segmentation tool for Wheat experimental plot segmentation captured with UAVs.

Primary LanguagePython

Wheat-Plots-Segmentation-Tool

A plot segmentation tool for Wheat experimental plot segmentation captured with UAVs.

Wheat 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 wheat 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:


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.