01-13-2011 11:03 AM
I am using VBAI 3.6 I have a 1722 Smart Camera. I am having problems "finding the datamatrix" in an image. I will attach the VBAI file and a sample picture. I am using a greyscale extractor also.
Help would be appreciated.
01-14-2011 12:04 PM
Tailfire,
Can you please provide some more information on what it is you are trying to do and what you have already tried? The more information you can provide the easier it will be for us to help.
Regards,
Sam K
Applications Engineer
National Instruments
01-14-2011 02:11 PM
Greetings
I have developed a VBAI and I would like to see if you guys could give me some suggestions as to what I am doing wrong,
Its VBAI 3.6 for the 1722 Smart Camera. I am trying to capture images of a basket that has Teflon tags that contain a data-matrix. The basket passes by a trigger and I would like to take a continuous “real time” capture that
Would have multiple frames. Then MAKE SURE to find the data matrix in the image then send the ASCII data from the tag out the serial port to a plc input string. I did seemingly get the find edges to find the edge of the tag,
Then I created a region of interest that would real time float based on the find edge. But then the “find data matrix” epically fails every time. Are there some better algorithms that I could try? Or what am I doing wrong.
Please take a look see if you could possibly give me some insight into where I am failing….
Hopefully the file types don’t get caught in a scan somewhere…….
If there are some other “vision gurus” that you would want to forward this question to please feel very free.
Please help………..
01-14-2011 02:12 PM
I can repost images if necessary
01-14-2011 02:16 PM
Also I hooked up hyperterminal and upon the failure I am seeing activity on the port which is a good sign but the ascii string did not show XXXX like I had specified in the VBAI. I have probably not got something right there either. I will attach a pic of the ascii string parameters. I cant find the picture on this jump drive at the moment.
01-14-2011 03:13 PM
Tailfire, I would suggest to configure the Data Matrix step differently. If properly configured, the Data Matrix should be able to locate the code in these images without having to use other steps. Try the following to get a "good" set of parameters for this image: in the Read Data Matrix step, draw an ROI just around the code, click the "Suggest Values" button. Then you can change the ROI size to a larger size or the entire image.
The reading with the following parameters seems very stable for different ROIs on the image you provided:
Basic Tab: ECC200, Square, 10x10, Black on White, 118, 146, 90,
Adv Search tab: 0, 0.94, Unlimited, 10, 150, 5, 43
Cell sampling: <30%, Histogram, 3x3, Average Normal
Hope this helps,
Nicolas
01-14-2011 03:16 PM
I will SOOO try that tomorrow. Thank you so much for your help. I will repost results.
01-14-2011 03:17 PM
Did you notice any possible issues with the serial data outputs?
01-15-2011 11:20 AM - edited 01-15-2011 11:24 AM
I have not got to make the changes to the smart camera yet. I did in fact find the jump drive with the ascii read parameters pictures. Attached they will be in a second.