Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect barcode automatically

Hello All,

 

Started a new project for my company.

 

1.    I have a code 39 type barcode which i had generated using labview.  (done with the help of forums)

 

2.    I have to print this image to the printer. (not done)

 

3.    Using Camera(usb) I want to scan the barcode-Here I want the labview to automatically detect the ROI of the barcode and display the code in the string indicator.

 

 

Please help me complete this project.

 

Here i attach the first part of this project.

Srikanth Chilivery,
0 Kudos
Message 1 of 4
(4,005 Views)

What sort of background do you expect the barcode to be placed on?

If the patterns outside the barcode is not striped, or checkered, you can use the edge finder to determine an area in the image where the image have a lot of parallel white/black transitions



The result is alot of infinitle lines, that gives you approximately where the edges of the barcode is (width) and angle.

and if you then sample some of those lines you should be able to find the height., and tada a ROI rectangle + angle.
then for robustness increase the the size of that rectangle, and voila, a barcode finder tool is created.

Engineer, M.Sc. Autonomous Systems, Automation and Control of non-linear systems
Project Engineer @ R&D A/S
www.rdas.dk
0 Kudos
Message 2 of 4
(3,903 Views)

I am providing 2 cm ( it may be huge) white space on all sides of barcode.

 

and place this whole sticker below the camera.

 

 

 

Srikanth Chilivery,
0 Kudos
Message 3 of 4
(3,890 Views)

Do you know approximately the size (how many pixels) the barcode is ?

Engineer, M.Sc. Autonomous Systems, Automation and Control of non-linear systems
Project Engineer @ R&D A/S
www.rdas.dk
0 Kudos
Message 4 of 4
(3,880 Views)