10-13-2009 10:23 PM
Hello All,
Ive been working on a barcode reader project. My employer wants to create a barcode reader which rather than using a scanner would acquire the barcode using a digital camera/usb camera. The little that i know till now suggests that there are certain barcode series that labview can automatically read itself once the image has been acquired. We just need to acquire the image the correct way and then the labview will read the barcode from it and the information stored in the barcode will be generated from the hard drive of the computer.
P.S. My concepts might be way off the actual theory. Please bear wimme if im lost.
10-13-2009 10:39 PM
Have a look through the examples:
National Instruments\LabVIEW\examples\vision
+ 2. Functions\2D Barcodes
- 2D Barcode.vi
+ 3. Applications
- Barcode.vi
I would recommend you do a search on the NI website for 'imaq read barcode' or 'vision barcode image' etc. to find more examples and help.
10-15-2009 11:46 PM
Hello All,
Courtesy to AdnanZ i was able to understand the basics of reading the barcode. I downloaded the Vision toolkit from Labview and used the barcode example that comes with it. I have understood the VI except for the ROI part and there are certain more issues that i need to resolve in it before i proceed .
Please find the VI attached, I have also attached the image of VI block diagram. My queries in the order of there urgency are as under.
10-16-2009 05:05 AM
Any one ? Some one ?
10-19-2009 11:50 AM
Hello Asad,
I will take a look at your VIs and post on this thread soon.
10-20-2009 01:26 AM - edited 10-20-2009 01:27 AM
Thank You so much for your consideration. i will be greatful if u can elaborate the relation between the string input to the ROI property node.
10-20-2009 01:53 AM
10-20-2009 02:13 AM
Dear parthabe.
ROI means Region of Interest. I need to set it right in order to extract the information out of the right spot. For example if i have an inventory of propeller blades with the bar code inscribed at their Hi pitch end i would need Labview to extract only the hi pitch end of my props cropping out the rest of the image for furthur processing.
10-20-2009 06:58 AM
You can define customized ROI in lot of ways.
1. Use a threshold--> particle analysis---> get bounding box ----> convert to ROI
2. draw ROI using "Imaq select rectangle"--> Rectangle to roi
3. Template matching (with a score of 500) -->get bounding box--->convert to roi
10-20-2009 09:39 AM
Hello Asad,
The datatypes used for ROI and ROI color are not a string array and a waveform. Both are clusters. To see exactly what datatype is contained within these clusters, browse over ROI and ROI color in the property node and look at the Context Help window. This will detail the datatype as well as what that data represents. For the ROI Color property, the three numbers in the cluster refer to Red, Green and Blue values. For the ROI property, the cluster contains Global Rectangle and Contours information. I would suggest changing the values being sent to the ROI property to see how it changes the ROI in the Image Display control.
As long as the barcode is within the ROI specified, you should be able to see the code reading. Hope this helps.