realtime-barcode-detector

command module
v0.0.0-...-2a3c23c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL