FEEDING MANAGEMENT

An Engineering-oriented Preprocessing Approach for Udder Images Based on OpenCV

  • GAO Lu ,
  • CHI Shengyuan ,
  • WANG Kunpeng ,
  • ZHU Yiming ,
  • YU Xuan ,
  • ZHOU Dengxian
Expand
  • School of Software,Harbin Institute of Information Technology,Harbin Heilongjiang 150431

Online published: 2026-10-23

Abstract

With the continuous development of large-scale intelligent dairy farming in China, smart milking systems demand high-quality udder images. To address challenges such as image noise,uneven lighting,and blurred details in complex barn environments,as well as the difficulty of existing algorithms in balancing processing efficiency and lightweight deployment,this study proposed and validated a lightweight preprocessing approach for udder images. The method combines grayscale transformation,Gaussian filtering,CLAHE enhancement,adaptive binarization,and multi-channel fusion to achieve effective noise suppression and detail enhancement. Results showed an improvement of 10.31% in average gradient and 6.05% in information entropy. The solution also featured low computational resource consumption, strong adaptability,and easy deployment,making it suitable for practical applications in embedded systems within smart farms.

Cite this article

GAO Lu , CHI Shengyuan , WANG Kunpeng , ZHU Yiming , YU Xuan , ZHOU Dengxian . An Engineering-oriented Preprocessing Approach for Udder Images Based on OpenCV[J]. China Dairy, 2026 , 0(9) : 46 -52 . DOI: 10.12377/1671-4393.26.09.07

References

[1] 隋鸿方,胡洪杰.数字化智能养殖系统在畜牧业中的应用[J].畜牧业环境,2025(12):136-137.
[2] 卢小龙,崔奎青,祁昊,等.奶牛智慧养殖关键技术研究进展[J].黑龙江畜牧兽医,2025(9):23-31.
[3] 李梦洁. 基于改进YOLOv8n的双目视觉奶牛乳头空间定位研究[D].河北农业大学,2025.
[4] 崔祥. 基于近红外光谱分析技术的牛乳体细胞数检测方法研究[D].东北农业大学,2024.
[5] 迟盛元,白岩,孟祥民,等.基于数字孪生的印刷电路板缺陷检测算法优化[J].无线电通信技术,2024,50(5):1046-1054.
[6] 李天荷,杜韦剑,董泳彤,等.基于深度学习的牛脸识别方法综述[J].现代信息科技,2026,10(6):81-86.
[7] 李金朋,冯帅,杨鑫,等.融合CLAHE-SV增强Lab颜色特征的水稻覆盖度提取[J].农业工程学报,2023,39(24):195-206.
[8] 张晓卫. 基于计算机视觉的养殖场牛身份识别研究[D].内蒙古科技大学,2023.
[9] 姬伟,陶云,赵德安,等.基于CLAHE的苹果树树枝迭代阈值分割方法研究[J].农业机械学报,2014,45(4):69-75.
[10] 杨卫中,徐银丽,乔曦,等.基于对比度受限直方图均衡化的水下海参图像增强方法[J].农业工程学报,2016,32(6):197-203.
Outlines

/

〈 〉