This project is use for detections of rice in an image or video capture using open-cv python
This program will determine ...
- Number of rice
- Size of each rice
- Categorized different types of rice (Not Finished)
First, clone this repository
$ git clone https://github.com/jaithehuman/rice_detection/
then install the requirements
$ cd rice_detection
$ pip install -r requirements.txt
Run image.py to detect from dataset.
To use webcam.py, you need a webcam and proper background to detect rice accurately. The webcam needs to be installed in a topview manner.
One measured object need to be placed at the top left position of an image. In from the dataset, I used a 20 mm coin. If you want to use different size objects, you have to change the following value...
pixelsPerMetric = dB / 0.787402 ## change 0.787 to the object size in inch unit