Research Article

Hough transform and line rotation on analog gauge reading: A case study

Ziqian Peng*
Hampton High School

* Corresponding author: [email protected]

Abstract

While digital meters can automatically communicate with a database to store reading values, many industries still utilize analog meters which are not economically or physically viable to replace. Instead, computer vision modules may be attached to cameras to automatically read values and record them. This paper tests three implementations of gauge reading, two simple Hough line and circle transform methods and one lightweight naive line rotation method. A dataset was created for testing purposes, consisting of 46 images from various sources and variations including pointer rotations, binarizations, and text or logo removal. Results showed the line rotation technique substantially more robust and accurate than both Hough line implementations. Two major obstructions were detected: pointer tails and dense text/logos, and their removal via photoshop tools improved the average accuracy to roughly 1 degree from ground truth. This is accurate enough to replace human readers in most imprecise situations and is lightweight enough to function under nearly all circumstances. Future research seeks to validate these findings further by testing line rotation on more varied gauges.

Keywords: computer vision; image processing; analog meter; data analysis
Published: October 23, 2023
DOI: 10.54254/2755-2721/22/20231159
Volume: ACE Vol.22
pp. 14-18
Download PDF

References

  1. Guerra-Cabrera A, Barbano G, Tardioli G, Mallya Udupi G (2020). Computer Vision-based Reader for analogue Energy/Water Meters in low-cost embedded System: a Case Study in an Office Building in Scotland. E3S Web of Conferences (Vol.172).
  2. Hough, Paul (1962). Method and means for recognizing complex patterns. U. S. Patent 3,069,654, December 18, 1962.
  3. Jarvinen, Niko (2022). Configurable Pointer Meter Reader based on Computer Vision. Tampere University.
  4. Bradski, G. (2000). The OpenCV Library. Dr. Dobb’s Journal of Software Tools.
  5. Pociecha, Dominik, Zylka, Pawel. (2015). The histogram-enhanced Hough transform applied to automated readout of analogue gauge meters using digital image processing. Measurement Automation Monitoring. 61. 507-511.
  6. Shu, Yan, Liu, Shaohui, Xu, Honglei, Jiang, Feng. (2023). Read Pointer Meters in complex environments based on a Human-like Alignment and Recognition Algorithm. 10.48550/arXiv.2302.14323.
  7. Howells, Ben, Charles, James, Cipolla, Roberto. (2021). Real-time analogue gauge transcription on mobile phone. 2369-2377. 10.1109/CVPRW53098.2021.00269.
  8. Nobuyuki Otsu (1979). "A threshold selection method from gray-level histograms". IEEE Trans. Sys. Man. Cyber. 9 (1): 62–66. DOI:10.1109/TSMC.1979.4310076.