Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 24, 2023. It is now read-only.

Python-based OpenCV program for detecting leaves and creating segmentation masks based on images in the Komatsuna dataset.

License

Notifications You must be signed in to change notification settings

julzerinos/python-opencv-leaf-detection

Repository files navigation

The Komatsuna Dataset with OpenCV and python

In a nutshell

Python-based OpenCV program for detecting leaves and creating segmentation masks based on images in the Komatsuna dataset.

Using the script

Set up the dataset from the above link, install the pip requirements and run python3 PlantDetector.py.

Controls

Key Function
m next image
n prev image
s save selected image in the selected mode
z save all images in selected mode
esc exit the program
d dynamically calculate dice
f show dice data based on saved images
1-5 select the respective mode

Modes

Mode Window "Altered" Window "Original"
0 original (fallback) original
1 HSV filter range original
2 bare watershed masks labels
3 watershed masks w/ bg original
4 sequential bg sub original
5 seq bg sub w/ watersh original

The project report

View the project report below or on Overleaf.

01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17

About

Python-based OpenCV program for detecting leaves and creating segmentation masks based on images in the Komatsuna dataset.

Topics

Resources

License

Stars

Watchers

Forks

Languages

AltStyle によって変換されたページ (->オリジナル) /