Jump to content

Problems with match pattern


Recommended Posts

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.

Link to post
  • 3 weeks later...

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

Link to post

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

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.