/farmbot

Primary LanguagePython

Farmbot

countSprout.py (Count sprout number)

example:
python countSprout.py -n frames/image_20170507010203.jpg -s frames/image_20170508050203.jpg

-n: path for the image which seeds not sprout yet
-s: path for the image which seeds sprout
alt tag

countPlantsArea.py (Count plants area)

example:
python countPlantsArea.py -g 150 -r 137 -i images/weeds/IMAG2569.jpg

-g: threshold for green plants: 0-255, smaller will detect more green plants (more sensitive)
-h: threshold for red plants: 0-255, smaller will detect more red plants (more sensitive)

if you set "createImage = False" ---> will get a tuple (green-Area, red-Area, overlap-Area)
if you set "createImage = True" ---> will get a tuple and create an image at local
alt tag