08-26-2015 01:51 AM
Hi everyone,
the idea is to program a camera which will be used as a bar code reader.
Using the Vision Bar Code Read Function I have managed to take a picture from the webcam, display the image and read the barcode, however I have to take the picture manually.
I would like my camera to be able to automatically take the photo of the barcode when I put a barcode in front of it.
How could I programmatically do this?
Thank you for your support,
KevinCoder
Solved! Go to Solution.
08-26-2015 01:57 AM
Hi Kevin,
by manually, I assume you mean, push a button in LabVIEW, to take an image.
To trigger it with the barcode you could snap and analyze in a loop, until the output makes sense and then continue to process your data. This could be handled beautifully in a state machine.
08-29-2015 05:06 AM
Hi Peter,
indeed, the solution was to continuously scan with a while loop until the barcode was detected, in fact a state machine was a great idea for doing this, thanks for the tipp, now I have a perfectly functional bar code camera,
best regards,
Kevin
11-04-2015 01:52 PM
In this example, we will create a program in Labview to capture images from a USB camera to your application for further processing using the NI Vision module.
11-25-2018 10:27 AM
Hi, could you send me the source code please, thank you