Realtime Barcode Detector Save

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

Project README

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

# or to specify the device id:
go run main.go --device-id 1234

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.

Open Source Agenda is not affiliated with "Realtime Barcode Detector" Project. README Source: unicod3/realtime-barcode-detector
Stars
25
Open Issues
0
Last Commit
5 years ago
License

Open Source Agenda Badge

Open Source Agenda Rating