Journal of Jishou University(Natural Sciences Edition) ›› 2025, Vol. 46 ›› Issue (4): 44-51.DOI: 10.13438/j.cnki.jdzk.2025.04.007

• Computer • Previous Articles     Next Articles

Lightweight YOLOv5s with U2-Net for Intelligent Reading of Pointer Meters

SU Yingying,SI Hongyun,TANG Xia,LIU Xinghua,GUO Lixia   

  1. (1.College of Electrical Engineering,Chongqing University of Science and Technology,Chongqing 401331,China;2.Sinopec Southwest Petroleum Engineering Chongqing Drilling Branch,Chongqing 400010,China)
  • Online:2025-07-25 Published:2025-08-05

Abstract: Aiming at the problem of slow speed of intelligent positioning and low accuracy of reading for pointer meters,a method of intelligent reading for pointer meters based on YOLOv5s and U2-Net is proposed.Firstly,the partial batch normalization layer in the trunk and neck of YOLOv5s is used for channel pruning to realize the model lightweight and improve the speed of meter positioning;secondly,in view of shadow and noisy images collected in the field,the image is enhanced,so as to make the model suitable for complex environments;and then,the U2-Net model is adopted to segment the pointer and the scale,to locate the relative position of pointer on the scale,and to improve the accuracy of readings.Then,the U2-Net model is used to segment the pointer and the scale,locate the relative position of the pointer on the scale,and improve the accuracy of the readings;finally,the distance method is used for meter reading.The results of the experiment and reading test show that the size of the lightweight YOLOv5s model is reduced by 56.35%,the positioning time is reduced by 18.18%,the accuracy of the reading recognition test is 93.42%,the average absolute error is 0.032,the average reading error rate is 0.605%,and the average test time per picture is 0.402 s,which meets the industrial inspection requirements.

Key words: pointer instrument, YOLOv5s, channel pruning, U2-Net, distance method

WeChat e-book chaoxing Mobile QQ