您的位置:山东大学 -> 科技期刊社 -> 《山东大学学报(工学版)》

山东大学学报 (工学版) ›› 2019, Vol. 49 ›› Issue (4): 1-7.doi: 10.6040/j.issn.1672-3961.0.2018.275

• 机器学习与数据挖掘 •    下一篇

一种自动读取指针式仪表读数的方法

周杨浩(),刘一帆,李瑮   

  1. 南京大学南京大学软件新技术国家重点实验室,江苏 南京 210023
  • 收稿日期:2018-07-06 出版日期:2019-08-20 发布日期:2019-08-06
  • 作者简介:周杨浩(1995—),男,四川成都人,硕士研究生,主要研究方向为计算机视觉.E-mail:574468762@qq.com
  • 基金资助:
    国家自然科学基金面上项目(61673204);国家电网公司科技项目(SGLNXT00DKJS1700166)

An automatic reading method for pointer meter

Yanghao ZHOU(),Yifan LIU,Li LI   

  1. State Key Laboratory for Novel Software Technology at Nanjing University, Nanjing University, Nanjing 210023, Jiangsu, China
  • Received:2018-07-06 Online:2019-08-20 Published:2019-08-06
  • Supported by:
    国家自然科学基金面上项目(61673204);国家电网公司科技项目(SGLNXT00DKJS1700166)

摘要:

为解决变电站中自动化监控仪表读数的问题,提出基于机器学习和图像处理算法的指针式仪表自动读数方法,由仪表检测和指针识别两个阶段组成。使用全卷积网络(fully convolutional networks,FCN)对输入图像进行语义分割,以检测仪表的位置并提取仪表部分的图像。利用直方图均衡化、中值滤波和双边滤波减小光照和阴影对指针识别的干扰,并利用仿射变换矫正拍摄时的倾斜,再结合改进的霍夫变换识别仪表中指针的位置,从而计算指针角度获取读数。结果表明,对于自然场景中变电站中的指针式仪表,本研究能很好地检测出仪表并识别出指针的读数,对于光照和阴影等干扰具有良好的鲁棒性,可以显著减少变电站巡检人员的工作量,提高工作效率。

关键词: 指针仪表, 语义分割, 全卷积网络, 仿射变换, 霍夫变换

Abstract:

An automatic reading method for automatically monitoring pointer meter in substation was proposed based on the machine learning and image processing algorithms, which was consisted of two stages: meter detection and pointer recognition. The position of the meter in the input image was detected by using the fully convolutional networks, and then the patch of the meter was extracted. The interference of illumination and shadow on the pointer recognition was reduced by using histogram equalization, median filtering and bilateral filtering, and the tilt of shooting was rectified by using the affine transformation. The position of the pointer was detected via the improved Hough transform. The reading was obtained by computing the angle of the pointer. The results showed that the method could detect the pointer meter and recognize the reading accurately for the pointer instrument in the substation. The method showed good robustness to the disturbances such as illumination and shadow, which could significantly reduce the substation inspection personnel workload and improve the work efficiency.

Key words: pointer meter, semantic segmentation, FCN, affine transformation, Hough transform

中图分类号: 

  • TP319.4

图1

全卷积网络的网络结构"

图2

输入原始图片示例"

图3

训练过程中损失函数的变化曲线"

表1

网络Ⅰ和网络Ⅱ在训练集和验证集上的平均精度"

网络 训练集平均精度/% 验证集平均精度/%
91.558 7 91.478 9
91.704 6 91.738 9

图4

仪表检测结果"

图5

指针识别结果"

1 陶冰洁, 韩佳乐, 李恩. 一种实用的指针式仪表读数识别方法[J]. 光电工程, 2011, 38 (4): 145- 150.
doi: 10.3969/j.issn.1003-501X.2011.04.025
TAO Bingjie , HAN Jiale , LI En . A practical pointer meter reading recognition method[J]. Opto-Electronic Engineering, 2011, 38 (4): 145- 150.
doi: 10.3969/j.issn.1003-501X.2011.04.025
2 蒋薇.基于图像识别的指针式仪表数据处理终端研究[D].青岛:青岛大学, 2014.
JIANG Wei. Research on pointer instrument data processing terminal based on image recognition[D]. Qingdao: Qingdao University, 2014.
3 赵菁.基于图像处理的指针式仪表识别设计[D].西安:西安电子科技大学, 2011.
ZHAO Jing. Pointer type instrument recognition design based on image processing[D]. Xi′an: Xidian University, 2011.
4 孙琳, 王永东. 指针式仪表自动检定系统图像识别技术[J]. 现代电子技术, 2011, 34 (8): 101- 104.
doi: 10.3969/j.issn.1004-373X.2011.08.032
SUN Lin , WANG Yongdong . Pointer meter automatic verification system image recognition technology[J]. Modern Electronics Technique, 2011, 34 (8): 101- 104.
doi: 10.3969/j.issn.1004-373X.2011.08.032
5 徐洋. 基于图像处理的汽车指针仪表检测研究[J]. 计算机应用与软件, 2014, 31 (8): 219- 221.
doi: 10.3969/j.issn.1000-386x.2014.08.054
XU Yang . Research on vehicle pointer instrument detection based on image processing[J]. Computer Applications and Software, 2014, 31 (8): 219- 221.
doi: 10.3969/j.issn.1000-386x.2014.08.054
6 何智杰, 张彬. 高精度指针仪表自动读数识别方法[J]. 计算机辅助工程, 2006, 15 (3): 9- 12.
doi: 10.3969/j.issn.1006-0871.2006.03.003
HE Zhijie , ZHANG Bin . High-precision pointer meter automatic reading recognition method[J]. Computer Aided Engineering, 2006, 15 (3): 9- 12.
doi: 10.3969/j.issn.1006-0871.2006.03.003
7 王瑞, 李琦. 一种基于改进角度法的指针式仪表图像自动读数方法[J]. 电测与仪表, 2013, 50 (11): 115- 118.
doi: 10.3969/j.issn.1001-1390.2013.11.026
WANG Rui , LI Qi . Pointer type instrument image automatic reading method based on improved angle method[J]. Electrical Measurement & Instrumentation, 2013, 50 (11): 115- 118.
doi: 10.3969/j.issn.1001-1390.2013.11.026
8 朱海霞. 基于改进Hough变换和BP网络的指针仪表识别[J]. 电测与仪表, 2015, 52 (5): 11- 14.
doi: 10.3969/j.issn.1001-1390.2015.05.003
ZHU Haixia . Pointer meter recognition based on improved Hough transform and BP network[J]. Electrical Measurement & Instrumentation, 2015, 52 (5): 11- 14.
doi: 10.3969/j.issn.1001-1390.2015.05.003
9 RE NS , HE K , GIRSHICK R . Faster R-CNN: towards real-time object detection with region proposal networks[J]. IEEE Transactions on Pattern Analysis & Machine Intelligence, 2017, 39 (6): 1440- 1448.
10 LIU WEI, ANGUELOV DRAGOMIR, ERHAN DUMITRU. SSD: single shot multibox detector[C]//European Conference on Computer Vision. Berlin, Germany: Springer, 2016: 21-37.
11 REDMON JOSEPH, DIVVALA SANTOSH, GIRSHICK ROSS, et al. You only look once: unified, real-time object detection[C]// The IEEE Conference on Computer Vision and Pattern Recognition (CVPR). Seattle, USA: IEEE, 2016: 779-788.
12 HE KAIMING, GKIOXARI GEORGIA, DOLLÁR PIOTR, et al. Mask R-CNN[C]//2017 IEEE International Conference on Computer Vision (ICCV). Seattle, USA: IEEE, 2017: 2980-2988.
13 RONNEBERGER Olaf, FISCHER Philipp, BROX Thomas. U-Net: convolutional networks for biomedical image segmentation[C]//Medical Image Computing and Computer-Assisted Intervention. Berlin, Germany: Springer, 2015: 234-241.
14 CHEN Liang , PAPANDREOU George , KOKKINOS Iasonas , et al. DeepLab: semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected CRFs[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2018, 40 (4): 834- 848.
doi: 10.1109/TPAMI.2017.2699184
15 LIN Guosheng, MILAN Anton. RefineNet: multi-path refinement networks for high-resolution semantic segmentation[C]//IEEE Conference on Computer Vision and Pattern. Seattle, USA: IEEE, 2017: 5168-5177.
16 PENG Chao, ZHANG Xiangyu, YU Gang, et al. Large kernel matters: improve semantic segmentation by global convolutional network[C]//The IEEE Conference on Computer Vision and Pattern Recognition (CVPR). Seattle, USA: IEEE, 2017: 4353-4361.
17 LONG J, SHELHAMER E, DARRELL T. Fully convolutional networks for semantic segmentation[C]//IEEE Conference on Computer Vision & Pattern Recognition. Seattle, WA, USA: IEEE, 2015: 3431-3440.
18 ZEILERM D, FERGUS R. Visualizing and understanding convolutional networks[C]// European Conference on Computer Vision. Berlin, Germany: Springer, 2014: 818-833.
19 SIMONYAN K, ZISSERMAN A. Very deep convolutional networks for large-scale image recognition[C]//International Conference on Learning Representations (ICLR). San Diego, USA: ICLR, 2015.
20 KINGMA D P, BA J. Adam: a method for stochastic optimization[C]//International Conference on Learning Representations (ICLR). San Diego, USA: ICLR, 2015.
[1] 吴秋兰,尚素雅,张家辉,孙守鑫,张峰,周波,高峥,史文宠. 基于多尺度特征融合的马铃薯疮痂病图像语义分割方法[J]. 山东大学学报 (工学版), 2025, 55(4): 1-8.
[2] 王碧瑶,韩毅,崔航滨,刘毅超,任铭然,高维勇,陈姝廷,刘嘉巍,崔洋. 基于图像的道路语义分割检测方法[J]. 山东大学学报 (工学版), 2023, 53(5): 37-47.
[3] 李旭涛,杨寒玉,卢业飞,张玮. 基于深度学习的遥感图像道路分割[J]. 山东大学学报 (工学版), 2022, 52(6): 139-145.
[4] 尹旭,刘兆英,张婷,李玉鑑. 基于弱监督和半监督学习的红外舰船分割方法[J]. 山东大学学报 (工学版), 2022, 52(2): 99-106.
[5] 曹春红,段鸿轩,曹玲,张乐乐,胡凯,肖芬. 基于多级特征级联的遥感图像实时语义分割[J]. 山东大学学报 (工学版), 2021, 51(2): 19-25.
[6] 刘志军. 基于复合混沌与仿射变换的彩色图像加密算法[J]. 山东大学学报(工学版), 2016, 46(4): 1-8.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
[1] 施来顺,万忠义 . 新型甜菜碱型沥青乳化剂的合成与性能测试[J]. 山东大学学报(工学版), 2008, 38(4): 112 -115 .
[2] 孔祥臻,刘延俊,王勇,赵秀华 . 气动比例阀的死区补偿与仿真[J]. 山东大学学报(工学版), 2006, 36(1): 99 -102 .
[3] 赵然杭,陈守煜 . 水资源数量与质量联合评价理论模型研究[J]. 山东大学学报(工学版), 2006, 36(3): 46 -50 .
[4] 薛翊国,李术才,赵岩,苏茂鑫,李为腾,丁志海. 青岛胶州湾海底隧道F44含水断层注浆前后TSP探测分析[J]. 山东大学学报(工学版), 2009, 39(2): 108 -112 .
[5] 李士进,王声特,黄乐平. 基于正反向异质性的遥感图像变化检测[J]. 山东大学学报(工学版), 2018, 48(3): 1 -9 .
[6] 王伟,毛华永,李国祥,潘世艳,巩厅房,晋世强,郝胜兵 . 一种车用燃油加热器燃烧器的流场数值分析[J]. 山东大学学报(工学版), 2008, 38(3): 64 -68 .
[7] 张光庆,孔凡玉,李大兴, . Koblitz曲线上抵抗简单功耗分析的有效算法[J]. 山东大学学报(工学版), 2007, 37(3): 78 -80 .
[8] 韩雪. 平庄西露天煤矿滑坡灾害远程监测实例分析[J]. 山东大学学报(工学版), 2009, 39(4): 116 -120 .
[9] 周新虹,彭玉华,刘勇,曲怀敬 . 基于多尺度分析和SVM相关反馈的纹理图像检索[J]. 山东大学学报(工学版), 2008, 38(2): 45 -50 .
[10] 董成喜,吴德伟,何 晶 . 基于粗糙模糊集理论的卫星导航系统作战效能评估方法[J]. 山东大学学报(工学版), 2008, 38(4): 32 -36 .