应用科学学报 ›› 2022, Vol. 40 ›› Issue (3): 434-447.doi: 10.3969/j.issn.0255-8297.2022.03.007

• 信号与信息处理 • 上一篇    下一篇

基于计算机视觉的水位检测算法

孙维亚1, 王达2, 许帅2, 汪京晔2, 马占宇2   

  1. 1. 南水北调中线干线工程建设管理局, 北京 100038;
    2. 北京邮电大学 人工智能学院, 北京 100088
  • 收稿日期:2021-11-12 发布日期:2022-05-25
  • 通信作者: 马占宇,教授,博导,研究方向为模式识别、机器学习、计算机视觉、非高斯概率模型、贝叶斯网络等。E-mail:mazhanyu@bupt.edu.cn E-mail:mazhanyu@bupt.edu.cn
  • 基金资助:
    国家重点研发计划(No.2019YFF0303300,No.2019YFF0303302,No.2020AAA0105200);国家自然科学基金(No.61922015,No.61773071,No.U19B2036);北京市自然科学基金(No.Z200002)资助

Water Level Detection Algorithm Based on Computer Vision

SUN Weiya1, WANG Da2, XU Shuai2, WANG Jingye2, MA Zhanyu2   

  1. 1. Construction Administration of the Middle Route of South-to-North Water Diversion Project, Beijing 100038, China;
    2. College of Artificial Intelligence, Beijing University of Posts and Telecommunications, Beijing 100088, China
  • Received:2021-11-12 Published:2022-05-25

摘要: 鉴于传统的水位读数方法误差大,成本高,需要一种精确、实时、鲁棒的智能水位检测算法来高效读取水位,为此提出了一种基于计算机视觉的水位检测算法以满足实际需求。首先对拍摄到的图像进行预处理和边缘检测以找出水尺位置,并通过仿射变换对水尺进行矫正。通过两种策略在水尺区域找到水尺关键字的位置,即关键字处理。然后对边缘特征进行投影并检测出水面位置。最后根据关键字处理结果和边缘特征计算得到水面高度。大量实验和实地测试的结果表明:所提算法在基于计算机视觉的水位检测、水尺读数等领域具有理论和应用的双重价值。

关键词: 水尺读数, 计算机视觉, 边缘特征, 关键字处理

Abstract: In view of the problems of high uncertainty and high cost in existing water level meters, this paper presents a set of water level monitoring system based on computer vision to gain high accurate, real-time, robust intelligent water level monitoring. First, preprocessing and edge detection of captured images are carried out to find out the position of the water gauge to be read, and the calibration of the water gauge is carried out by using affine transformation algorithm. Second, the keyword in the water ruler area is positioned and processed by filtering method. Then the edge information is projected to find water surface. Finally, the height of water surface is calculated according to the results of keyword processing and edge information. Experimental verification and field deployment show that the complete water level detection scheme proposed in this paper has both theoretical and practical value in the field of water level detection and water gauge reading based on computer vision.

Key words: water gauge reading, computer vision, edge feature, keyword processing

中图分类号: