Skip to content
firepick1 (localhost) edited this page Jan 8, 2016 · 7 revisions

Read QR Code(s)

A QR code is a square, machine readable black and white image that compactly represents small amounts of text. QR codes scale as needed with longer text and can be printed in various sizes. The FireSight QRDecode stage gives firenodejs the capability of reading QR codes seen by the selected camera. Here is the QR code used for testing firenodejs. It is 50 pixels square, which makes it easily printed on a label printer as a 0.5" image.

50x50 pixel QR code

Method

We use the read-qr.json FireSight pipeline to read a QR code using the current image from the selected camera. Pipeline output is a JSON array of recognized QR codes (if any).

  • x the pixel x-coordinate of the center of the QR code
  • y the pixel y-coordinate of the center of the QR code
  • text QR coded text

Considerations

Lighting, sharpness and contrast are critical for proper QR code recognition. In addition, recognition improves as the QR code occupies more of the image. The following image was obtained after careful light adjustment and paper positioning. Unfortunately, even with these adjustments, the probability of correct QR recognition is low.

Clone this wiki locally