Skip to content

QRreaderPY

Vanesa Alcantara edited this page Jan 12, 2019 · 2 revisions

Libraries needed

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:

  1. pip3 install matplotlib
  2. pip3 install numpy
  3. pip3 install opencv-python
  4. pip3 install sockets
  5. pip3 install datetime
  6. pip3 install json-encoder
  7. /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

Getting start

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.

Clone this wiki locally