08-02-2005 04:17 AM
Hi anusree,
Some sugessions,
Make your postings clear, so that people can help you easily.
thanks,
logic
08-02-2005 04:49 AM - edited 08-02-2005 04:49 AM
Hi logic,
The same error pops up when I use file as *.bmp, both images used are similar type. How can we make the image snapped from camera is same type and same size as template to compare both.
The comparision is between the snapped image of the device from the camera with the template.
with regards,
anusree
Message Edited by anusree on 08-02-2005 04:53 AM
08-02-2005 05:38 AM
Hi anusree,
I am not sure where is your source of problem is? i have used the image posted by you and tried the XOR operation. i guess the image you saved is in RGB format, but the camera looks like monochrome camera. Anyway see the attached vi & script, see whether it helps you. Read the XOR vi supporting image types in help, make sure that you have the same in code. See what is the image type you have used for image creation.
Still if you are not successful post your code.
Thanks,
logic
08-02-2005 06:35 AM
Hello logic,
The two images which are used to Xor is HL_V.jpg and untitled1.jpg which are posted earlier, The image captured from the camera of a testing device is untitled1.jpg and the template created is HL_V.jpg the region of analysis. The image captured from camera may vary slightly depending upon placing the test device on the fixture.
I hope you get my problem.
With regards
anusree
08-02-2005 10:33 AM - edited 08-02-2005 10:33 AM
Anusree,
I have attached a vi that do the job :
1/ The screen is located and the corresponding part of the image is cut from the original. This is done on both the reference image and the test image. The reference width and height are used to cut the test screen image.
2/ The reference image is subtracted from the test image.
Enjoy.
Message Edited by chilly charly on 08-02-2005 05:34 PM
08-03-2005 06:00 AM
Thanks CC,
I will check with this Vi
With regards,
anusree
08-03-2005 08:56 AM
08-03-2005 10:09 AM
08-03-2005 11:31 PM
Hello,
As I am very new in using Vision software, It is helpfull if you send me an example to use the coordinate to extract the position of LCD in the image .
With regards,
anusree
08-04-2005 10:44 AM
Anusree:
I do not have time to send an actual example, best I can offer is to search IMAQ Vi Reference for coordinate under LabView Help.
The three vi's available in LV IMAQ to set up coordinate systems are under NI Measurements/Vision/Machine Vision/Coordinate Systems palettes.
I have never set up coordinates systems in IMAQ, but I do use them regulary on programs I write for a View Engineering vision system (non LV).
Good Luck!