-
OpenCV dev library [
sudo apt-get install libopencv-dev] -
The mqtt application [
sudo apt-get install mosquitto] -
The mosquitto client library [
sudo apt-get install mosquitto-clients] -
Mosquitto dev library [
sudo apt-get install libmosquitto-dev libmosquittopp-dev -
Zbar dev library [
sudo apt-get install libzbar0 libzbar-dev]
In the main.cpp file, update the provided configuration parameters:
qr2sp = new qrMqtt("qr2sp", "pcktatDoor", "192.168.178.100", 1883);
pcktatDoor-> The MQTT topic name where you want your application to publish the QR scan results to192.168.178.100-> The hostname or IP address of the MQTT broker1883-> The port of the MQTT broker
After the steps above, you can compile the code by running the command make in the root of the downloaded code.
When this step is completed, you can run the application by executing the command ./qrMqtt
If you are using the piCamera instead of a USB webcam, you should run this command to let OpenCV use the piCam:
sudo modprobe bcm2835-v4l2
Program working video is here - https://www.youtube.com/watch?v=1rtJEr5uat0
license - check the license file
