Machine Vision

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 4 条)
4,334 次查看

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 项奖励
2 条消息(共 4 条)
4,232 次查看

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 项奖励
3 条消息(共 4 条)
4,219 次查看

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 项奖励
4 条消息(共 4 条)
4,209 次查看