China Dairy ›› 2026, Vol. 0 ›› Issue (9): 46-52.doi: 10.12377/1671-4393.26.09.07

• FEEDING MANAGEMENT • Previous Articles     Next Articles

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

GAO Lu, CHI Shengyuan*, WANG Kunpeng, ZHU Yiming, YU Xuan, ZHOU Dengxian   

  1. School of Software,Harbin Institute of Information Technology,Harbin Heilongjiang 150431
  • Online:2026-09-25 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.

Key words: image preprocessing, dairy farming, noise reduction, detail enhancement

[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.
[1] LIU Yuehan, LI Tong. Research on Refined Cash Flow Management in Dairy Farming Enterprises:A Case Study of Modern Dairy [J]. China Dairy, 2026, 0(9): 31-37.
[2] ZHOU Xinyu, LIU Changquan. Evolution Logic,Practical Dilemmas and Optimization Paths of Land Supporting Policies for Dairy Farms [J]. China Dairy, 2026, 0(5): 2-10.
[3] CHENG Chong. Construction and Practical Effectiveness of an Integrated Prevention and Control System for Three Major Dairy Cow Diseases in the Yantai Region Driven by Digital Intelligence [J]. China Dairy, 2026, 0(1): 65-70.
[4] HAN Meng, ZHANG Wenxue, YANG Xu, WANG Jing. Research Progress on Key Technologies of Pain Assessment and Anti-inflammatory Analgesic Therapy in Dairy Cows [J]. China Dairy, 2025, 0(9): 84-90.
[5] LI Yang, YANG Yanfen. Research on Green Development of Dairy Cattle Farming under the Background of Dual Carbon Target [J]. China Dairy, 2025, 0(7): 46-50.
[6] LI Zhijia, XU Wei, ZHAO Huiqiu, MA Xiuguo, MA Zhifen. Analysis and Improvement Suggestions for Key Performance Indicators of Dairy Farming Production Based on Intelligent Management System [J]. China Dairy, 2025, 0(5): 40-48.
[7] YANG Xichuan, WANG Lei. Development Status and Animal Disease Prevention Strategy of the Dairy Farming in Linshu County [J]. China Dairy, 2025, 0(4): 72-76.
[8] HAN Meng. Impact of Milking Robots on the Sustainability of Dairy Farms [J]. China Dairy, 2025, 0(2): 19-22.
[9] SUN Yan, XIE Kai, QIN Na. Analysis on the Development of Planting,Breeding and Processing of Dairy Farmers in Yantai [J]. China Dairy, 2024, 0(8): 74-77.
[10] HAN Meng, WANG Mengmeng, ZHANG Chao. New Quality Productivity Reshapes Key Elements of Dairy Farming Sector [J]. China Dairy, 2024, 0(7): 28-33.
[11] HAN Meng, ZHU Wenqi. Enhancement and Improvement of Dairy Farm Employee Welfare by Milking Robots [J]. China Dairy, 2024, 0(11): 80-83.
[12] WANG Naijian, CHEN Yong, FAN Wenjun, YU Chunfeng, GUAN Lesheng. Practices and Implications of Policy Dairy Farming Insurance and Target Price Insurance for Fresh Milk--Taking Hanting District of Weifang City as an Example [J]. China Dairy, 2024, 0(10): 26-29.
[13] MA Xinxin, YE Jing. Study on the Spatial Correlation Network and Influencing Factors of Dairy Farming Industry Development [J]. China Dairy, 2024, 0(1): 9-16.
[14] LI Zhicai, JIANG Zhuhui, QI Wenjuan. Technical Measures for Carbon Emission Reduction and Waste Resource Utilization in Dairy Cow Farming [J]. China Dairy, 2023, 0(7): 70-75.
[15] LI Peipei, WANG Jianhua, LIU Xiwu, LI Dewen. Analysis of Intelligent Technology and Equipment Application of Dairy Farming in Qingdao [J]. China Dairy, 2023, 0(7): 51-56.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!