Python Forum

Full Version: Barcode scanner with raspberry pi 3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hai,
I am planning to build a BarCode Scanner with WebCam... I have
1) Raspberry Pi 3
2) USB Webcam
3) Adafruit 16x2 Character LCD + Keypad

Functioning:
When someone scan through webcam... LCD display message "OK". Barcode should not be display...

Is there any tutorial for this... please help.... it is my project..... please help.....
The easiest way to scan barcodes is a barcode scanner.
I've seen a funny talk about this: https://www.youtube.com/watch?v=cEyVfiix1Lw

But if you are not willing to buy additional hardware, you can use your cam.
In this case you need an image processing library.

I think here is a good start point:
http://www.pyimagesearch.com/2014/11/24/...on-opencv/

But pypi has also packages for barcode scanning from images and videos.
Just use pip search barcode and you'll find some packages.

First try out the part with recognizing barcodes. When this works, you continue with the output to the LCD display.
Step by step.
Take a look here: https://pypi.python.org/pypi?%3Aaction=s...mit=search
as suggested above.

When choosing a bar code  scanning software, try to get one that in addition to the usual QR Code, EAN, UPC-A and UPC-E works with
some of the obscure codes as well, such as codabar, code 3 of 9, code128. Pharmacode.
Thank you very much for all.....