Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: OCR automatically reads a power meter
bandit
Administrator
Posts: 321
Permalink
Post OCR automatically reads a power meter
on: January 3, 2013, 18:13
Quote

Post : OCR automatically reads a power meter
URL : http://hackaday.com/2013/01/03/ocr-automatically-reads-a-power-meter/
Posted : January 3, 2013 at 1:01 pm
Author : Mike Szczys
Tags : mathematica, ocr, power montior
Categories : green hacks

http://hackadaycom.files.wordpress.com/2013/01/ocr-used-to-read-a-power-meter.jpeg

[Chris] tried his hand at using Optical Character Recognition in his server power monitoring rig (http://www.anfractuosity.com/projects/ocring-a-power-meter/) . The image above is what the IP camera used in the setup sees. He's included a bright light to ensure that the contrast is as great as possible. After applying a threshold filter to the captured still, he is able to process the image to test all seven segments of every digit.

He uses Mathematica (http://en.wikipedia.org/wiki/Mathematica) for the processing. We're not familiar with the particulars of the language, but it's easy enough to see the main parts of the program. Line six of his source code applies the image filters and then the program loops through the assigned location of each digit, testing segment combinations to ascertain what number is shown. Things get hairy when it comes to the decimal point. We gather that the meter can show varying degrees of precision based on the total number of digits needed (like a Digital Multimeter). But [Chris'] setup has a difficult time reliably detecting that decimal point because of its size. He uses a shortcut to get around this, knowing that his server never pulls less than 300W so he corrects the output (by multiplying it by ten) if the reading is below that benchmark.

Of course it would be easier to crack open the monitor and glean data electronically (that's how the Tweet-A-Watt (http://hackaday.com/2009/03/26/tweet-a-watt-kits/) does it) but then [Chris] wouldn't have had the fun of playing with OCR.

Add a comment to this post: http://hackaday.com/2013/01/03/ocr-automatically-reads-a-power-meter/#respond

--
WordPress.com | Thanks for flying with WordPress!

Image

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.014 seconds.

 

Comments are closed.