erx Posted November 1, 2007 Report Share Posted November 1, 2007 What i need is: 1. Select Image01 and calibrate picture (select first and last point on the ruler and calculate how many pixels is in 1mm). DONE 2. Create template (from the hole) and save it into a file. DONE 3. Find similar pattern to created template (the second hole). NOT WORKING (Error -1074395989 occurred at IMAQ ReadImageAndVisionInfo Unable to read data.) 4. Measure distance between the patterns( distance between two holes). I uploaded pics and VI's to http://www.zone.ee/mahb02/ and also attached here. The main VI is hole_distance.vi and the other two are sub VI's used inside main VI. I would apprichiate, if someone could help me. Thanks, E. Quote Link to comment
Jonas Posted November 22, 2007 Report Share Posted November 22, 2007 Hi, Seems like you save your template in a jpg file. It should be a png because a lot more than juste the image needs to be saved in the template file. Try the example you will find in C:\Program Files\National Instruments\LabVIEW x.x\examples\Vision\2. Functions\Pattern Matching Quote Link to comment
Jonas Posted November 22, 2007 Report Share Posted November 22, 2007 Hi, Seems like you save your template in a jpg file. It should be a png because a lot more than juste the image needs to be saved in the template file. Try the example you will find in C:\Program Files\National Instruments\LabVIEW x.x\examples\Vision\2. Functions\Pattern Matching Quote Link to comment
rachel Posted November 22, 2007 Report Share Posted November 22, 2007 Try using "IMAQ Write Image and Vision Info" instead of IMAQ writing a JPEG file. This includes all the pattern training information along with the image. Quote Link to comment
rachel Posted November 22, 2007 Report Share Posted November 22, 2007 Try using "IMAQ Write Image and Vision Info" instead of IMAQ writing a JPEG file. This includes all the pattern training information along with the image. Quote Link to comment
erx Posted November 28, 2007 Author Report Share Posted November 28, 2007 Problem solved. Thanks Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.