-
Notifications
You must be signed in to change notification settings - Fork 2
QRreaderPY
This project is built in python, a programming language different from Processing, to download it enter here In this project we use 6 libraries: math, numpy, OpenCV, json, socket and datetime. Math is install by default with python. To install the others go to terminal and follow instructions to download pip. After that enter on terminal and print each of this commands:
- pip3 install matplotlib
- pip3 install numpy
- pip3 install opencv-python
- pip3 install sockets
- pip3 install datetime
- pip3 install json-encoder
- /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
To finish follow the steps to download pyzbar
Matplotlib can give an error in mac. To solve it create a file call matplotlibrc in ~/.matplotlib add the following code: backend: TkAgg
To start using the QRreader, download the folder, go to the project folder on terminal and print python3 cityScopeQRreader.py9. This repository creates a mesh with a qr values if it exists
1. Keyboard functionality in principal canvas
| Key | Functionality |
|---|---|
| s | Save calibration points to the JSON file |
| e | Export a JSONFile with coordinates and QR values decoded |
| q | Quit sketch |
| UP | Add a new block to the mesh |
| DOWN | Delete a block from the mesh |
2. Perspective calibration The four points represent the control perspective coordinates. To change the coordinates of a point, press on the point and drag the mouse. These four points are going to work as the new (0,0)/ (width,0) / (width,height) / (0,height) points on the second canvas.