07-30-2010 10:45 AM
Hi,
I'm using the Meter example.VI to test the Machine Vision functions. I save this example as another name and change the instrument to my manometer.
I have marked the initial and final position of the manometer and executed the example. But, in some cases, the IMAQ Read Meter function indicates a different value from the position of the needle in the picture. Why this is happening?
I attached a picture which the red circle indicates the value calculated by the IMAQ Read Meter function. I saw this happens in the original Meter Example.VI too.
Thanks,
R. Feldmann
Solved! Go to Solution.
07-30-2010 05:11 PM
Your manometer dial is very cluttered. There are lots of other things inside the dial area. When the function is searching for the needle, it is probably finding the other stuff instead.
For this dial, you would need to write a much more robust version of Read Meter for it to work properly. I would probably search for the needle at several different radii and compare the locations. Only the true needle will be in all the radii.
Another possibility is to subtract the background image. Take pictures with the needle in two different places and use Min to combine the images and eliminate the needle. You can then subtract this image from the live image, and the needle should be the only object visible. It will disappear slightly when it passes over other white object, but you should still be able to find it.
Bruce
08-02-2010 09:33 AM
Hi Bruce,
What "Min" you suggest to use? I didn't understand this part of the text.
Thanks again,
R. Feldmann
08-02-2010 11:24 AM
In Vision there is a pallete for comparing and operating on images. Things such as Add, Subtract, etc.
There is one where you can compare two images pixel by pixel and keep the smaller value.
Bruce
08-03-2010 06:37 AM
Hi,
Ok, Bruce. I found this VI and I'll try your solution.
Thanks again!
R. Feldmann
08-03-2010 09:35 AM
Hi Bruce,
I try your solution....it is works! My example has improved but an error still remains. I believe this still happens because I need to improve the camera and the pictures, but I think that's ok!
Another thing: the IMAQ Get Meter.VI doesn't work with RGB images. This was cause error in my test too.
Thanks,
R. Feldmann
12-28-2012 02:33 PM
Hi,
There are other methods to improve the quality and reliability of recognition?
Thanks a lot.
Max O.
Engineer and software developer,
TeSLa.
12-29-2012 03:37 PM
Hi,
Anybody there?
What algorithm of setting up a radii in your opinion better?
Or is there no difference?
Thanks!
Max O.
Engineer and software developer,
TeSLa.
12-29-2012 08:55 PM
I would use R2 in the second image.
You want to avoid the areas with printing, text, other marks, so R1 (and all the regions in the first image) are bad.
Larger areas give you more resolution, so R2 is better than R1.
Another option is to create a reference image and subtract it, which will only leave the needle. Creating the reference image would require two images with the needle in different positions, then use IMAQ Max to combine them and eliminate the needle.
Bruce
02-19-2017 03:34 AM