Anyone use computer vision software for volume calculation?

Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum

Help Support Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

infinityedge

New Member
Joined
Dec 4, 2012
Messages
4
Reaction score
5
Something along these lines:

http://www.google.com/url?sa=t&rct=...0bfCP867eiHfEDfWtMCQ1fQ&bvm=bv.41248874,d.cGE

http://www.sciencedirect.com/science/article/pii/S0967066109002329

Basically, face a webcam at the sight glass then use OpenCV to determine where the edge is between liquid and air, then calculate the volume based off of the calibrated pixel location of the interface.

Seems like a fairly straight forward, no touch way to calculate volume with a fairly low cost if you are already using some sort of computer to automate things.
 
should be doable. There are probably a number of ways you could solve it with OpenCV.. line detection sounds like a good choice. I haven't played with the line detection but the other parts that I have used (mostly face detection) were pretty easy to work with. Great library. Good luck!
 
A coloured float in the sight glass might help if you go this route.

If one was willing to use a float, you could wrap IR reflective tape (or paint) around a cylindrical float and use a Wiimote to calculate the position change:

http://arstechnica.com/science/2010/12/scientists-wield-wiimote-to-measure-evaporation/

http://onlinelibrary.wiley.com/doi/10.1029/2010WR009350/abstract

Wiimotes are pretty easy to interface with. The camera outputs the position the top 4 brightest IR points at 1024x768 resolution. Provided the heat source doesn't overpower the sensor, it might be possible to get the sight glasses of three keggles in a single level arrangement covered by one wiimote.

That might be just as cheap and easier than the OpenCV route.... hmmm....
 
Back
Top