Overview
In a automotive cluster still comom analog gauges to indicate, for example, the speed, revolution counter, amount of fuel, temperature, etc. Hence, a demand to test them indeed requires.
The Automotive Gauge Meter Toolkit is a useful package to measure the angular movement of analog automotive gauges, then checking whether it is performing as expected.
Description
Following the same concept of LabVIEW tools as Optical Character Recognition (OCR), Texture and Color Classification on NI Vision Development Module, Automotive Gauge Meter allows you to load a configuration file created on Gauge Training application (included in this toolkit) as well as train programatically.
Functions Palette:
Addons->Automotive Gauge Meter
Addons->Automotive Gauge Meter->Low Level
Examples
There are 3 examples (Fuel and Temperature gauge.vi, Speedometer Gauge.vi and Tachometer Gauge.vi) that load the respective gauge configuration file and take measurements. For an example of training programmatically see Gauge Training.vi.
Examples Palette:
Addons->Automotive Gauge Meter->Examples
Example 1 - Fuel and Temperature Gauge.vi
Gauge Training
Bellow are the steps needed to create a gauge configuration file:
Step 1
Choose a images folder and a gauge name.
Step 2
Select the region of interest (ROI).
Step 3
Choose the gouge rotation as clockwise or counterclockwise.
Step 4
Select the threshold value.
Step 5
Teaching the reference position.
Step 6
Teaching the reference position.
After that the gauge label will be extracted and it is able to save the gauge configuration file.
It is also possible to test the configuration file you have done by clicking on Snap buttom.
Requirements
- LabVIEW >= 2014
- Vision Development Module >= 2014
- VI Package Manager
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Amazing!
Telles thanks for sharing these nice and powerful tool.
Nice work....!
Dear Telles.
First of all thank you very much for very nice tool kit.
I'm working for Volume and Flow lab. in Vietnam metrology institute now.
I'm in water meter recognition project by labview (with vision development toolkit ad dons).
I tried your toolkit, but at this time i'm not successful.
Plea see attached file is image example and give me more instruction.
Best regards!
Hi Thai,
The toolkit accepts only monochromatic images and gauges with black background. If you have one of the opposite cases, you can use color plane extraction (some cameras has this functionality, so no need to do in LabVIEW) and/or reverse lookup table.
However, in your case the toolkit wont work because the gauge needle is almost the same size that the scale numbers. The toolkit extract the scale label and when the gauge needle is right up a number, there won't be particles to calculate the reference as well as the angle. In this application specifically, I would suggest use Color Threshold, Particle Filter, Particle Analysis getting Max Feret Diameter Start X,Y and End X,Y parameters, and then calculate the reference line and angles with it. I did a quick test and got the result:
I hope it help.
Hi Telles-s,
Thank you very much for your comment
I tried color plane extraction on my camera, and it' ok.
Could you send me your block diagram on the toolkit as the picture on screenshot?
My email xuanthai.vmi@gmail.com.
Thank you and best regards.
Dear Telles-s
Thank your very much. I'll try with your recommendation