Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

Analog Gauge Reader using OpenCV in Python

$
0
0

This sample application takes an image or frame of an analog gauge an reads the value using computer vision. It consists of two parts, the calibration, and the measurement. During calibration the user gives it 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)

This article continues on Github:

https://github.com/intel-iot-devkit/python-cv-samples/tree/master/examples/analog-gauge-reader 


Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>