Hough transform and line rotation on analog gauge reading: A case study
- 1 Hampton High School
* Author to whom correspondence should be addressed.
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
[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.
Cite this article
Peng,Z. (2023). Hough transform and line rotation on analog gauge reading: A case study. Applied and Computational Engineering,22,14-18.
Data availability
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
Disclaimer/Publisher's Note
The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
About volume
Volume title: Proceedings of the 5th International Conference on Computing and Data Science
© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and
conditions of the Creative Commons Attribution (CC BY) license. Authors who
publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons
Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this
series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published
version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial
publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and
during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See
Open access policy for details).