Scan QR Codes from video stream.
- OpenCV (tested with 3.2.0 and 4.5.0)
- ZBar bar code reader (tested with 0.10)
# Clone repository
git clone https://github.com/christiansiegel/video-qr-code-scanner.git
cd video-qr-code-scanner
# Create build directory
mkdir build && cd build
# Configure
cmake ..
# Build
make
# Run
./video-qr-code-scanner
All codes detected in a video frame are printed, e.g.:
5 codes (18 ms):
>> "Ver1"
>> "http://en.m.wikipedia.org/"
>> "http://www.shopify.com/"
>> "Hello :)"
>> "http://www.qrstuff.com/"
wget -O zbar-0.10.tar.bz2 https://sourceforge.net/projects/zbar/files/zbar/0.10/zbar-0.10.tar.bz2/download
tar xf zbar-0.10.tar.bz2
cd zbar-0.10
CFLAGS="" ./configure --prefix=/usr/local --without-gtk --without-python --without-qt --disable-video
make
sudo make install