The computer vision system used in our participation in SFU's sustainable waste-sorting robots competition. (2nd Place)
Grapes are detected based on the colour, the circular shape and size of the contour.
- Clone the project
https://github.com/tsa87/EcoBot-Grape-Detection.git
- Install the prerequisites
pip install argparse
pip install numpy
pip install opencv-contrib-python
pip install imutils
- Run the demo
# on video file
python objectTracking.py -v PATH_TO_VIDEO
# from camera stream
python objectTracking.py.py
-
Green grapes are not detected in this implementation, multiple colour support could be added in the future.
-
Under a purple/green background, a simple colour detection implementation is not sufficent.
- Tony Shen - Initial work