Introduction - If you have any usage issues, please Google them yourself
This code is a majorrice.jpg some gray-scale image processing, eliminatingrice.jpg image brightness inconsistent background and used the modified threshold segmentation of images into binary images, using Contour detection of the target object returns the number of images and statistical properties.