A Gocv and Zbar example for detecting and reading barcodes on webcam
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
LICENSE Add readme and license Oct 13, 2018
README.md Add information about zbar Oct 13, 2018
main.go Initial commit Oct 13, 2018

README.md

Real-Time Barcode Detector

A Gocv and Zbar example for detecting and reading barcodes on webcam.

Running the code

First you need to install GoCV library, which depends on opencv

GoCv installation instructions is well documented in their website:

Linux

MacOs

Windows

After you installed the GoCv, you need to install zbar and get the Go wrapper for zbar as shown below:

Installing zbar can be tricky you migth want to check out below:

Linux

MacOs

Windows

go get github.com/bieber/barcode

Then you can clone this repo and run it

git clone https://github.com/unicod3/realtime-barcode-detector.git rbd
cd rbd
go run main.go

Then you can show your code128 barcodes to your cam.

Logo

Note:

It will open your default webcam since the device id set to zero.

You need the configure device id if you have different setup.