Analog Gauge Reader Using OpenCV in Python*

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*

For more complete information about compiler optimizations, see our Optimization Notice.