智慧农业导刊2025,Vol.5Issue(11):26-29,35,5.DOI:10.20028/j.zhnydk.2025.11.007
OpenCV图像处理在水稻考种中的应用
摘要
Abstract
This study employs the OpenCV computer vision library to conduct seed investigation of rice grains.A python program based on the OpenCV library is utilized to perform grayscale processing,binarization,opening operations,and erosion on the collected images.The program identifies grain contours and counts the rice grains.The length and width of the grains are obtained through a rectangular fitting function.These results indicate that for grain counting of up to 200 grains,the program achieves an accuracy rate of 100% .For the length and width measurements of 10 grains,there is a 95% probability that the data obtained by the program match those measured manually.Compared with manual seed investigation,the image processing program demonstrates higher efficiency and accuracy,and it is feasible to use this program for rice seed evaluation analysis.关键词
OpenCV/水稻考种/图像处理/谷粒计数/PythonKey words
OpenCV/rice seed testing/image processing/grain counting/Python分类
农业科学引用本文复制引用
张侃,何方印,石兆彬,陈业坚,蔡东升..OpenCV图像处理在水稻考种中的应用[J].智慧农业导刊,2025,5(11):26-29,35,5.基金项目
浙江省三系法杂交水稻新组合选育计划资助项目(2021C02063-1) (2021C02063-1)