Skip to content

Latest commit

 

History

History
23 lines (11 loc) · 937 Bytes

README.md

File metadata and controls

23 lines (11 loc) · 937 Bytes

Extracting region of intrest within images

This code was used to conduct to assist in the research titled "Date Fruit Disease Detection Using Machile Learning". The porpose of this code was to clean up the images and remove unnecessary / unrelated features from the image.

900+ images were automaitcly processed with the script.

process_of_RIO_extractor

RIO EXTRACTIOM.py :

First image is converted into gray scale Then the use on Erosion, Dilation, and GaussianBlur to apply more accurite Canny Image threshold is applied to find contours and find Bounding rectangle Image is then cropped based on Bouding Rectangle +- 50pixles to leave some room around the images

UNITE RIO IMG SIZE.py

Simple loop to resize all the images of extracted RIO into similar sizes in respect to thier original Aspect Ratio