Skip to content

In This Project, We implemented a very simple image processing based leaf segmentation.

Notifications You must be signed in to change notification settings

ahmad-sohrabi/leaf_segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Leaf Segmentation

In This Project, We Are going to implement a very simple image processing based leaf segmentation.

Algorithm Procedure

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.

Result

Leaf One
Leaf Two
Leaf Three
Leaf Four
Leaf Five
Leaf Six
Leaf Seven

About

In This Project, We implemented a very simple image processing based leaf segmentation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages