Analog Gauge Reader Using OpenCV in Python*

Published: 11/28/2017, Last Updated: 11/28/2017

This sample application takes an image or frame of an analog gauge and reads the value using computer vision. It consists of two parts: the calibration and the measurement. During calibration, the user gives the application an image of the gauge to calibrate, and it prompts the user to enter the range of values in degrees. It then uses these calibrated values in the measurement stage to convert the angle of the dial into a meaningful value.


What you’ll learn

  • Circle detection
  • Line detection

Gather your materials

  • Python* 2.7 or greater
  • OpenCV version 3.3.0 or greater
  • A picture of a gauge to try (or you can use the sample one provided).

Continues on GitHub*

Product and Performance Information


Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804