In This Project, We Are going to implement a very simple image processing based leaf segmentation.
1- First of all, to simplify the input image and to have a cleaner image, a simple background removal algorithm based on HSV color
space is implemented.
2- Then OTSU thresholding algorithm is implemented to have binary image and segmenting detected parts into white and black
3- As in the last step, the generated mask is not clean enough, an Opening morphological
operation is implemented to keep only leaves.
4- At last with a bitwise AND operation is implemented to show the segmented leaves result.
The library which is used for the mentioned algorithm is Python OpenCV.