Detect barcodes and QR-codes, and decode their contents.
QR-codes (Quick Response Codes) are popular 2D patterns that contain embedded information, such as a string of text, a URL, etc. They basically work like barcodes, coding information into a high-contrast, geometric pattern that is easier to detect and decode by a machine that more conventional human-written text or drawings.
One can generate QR-codes containing different kinds of information, for example using online QR-code generators, such as http://www.qr-code-generator.com/
JeVois detects and decodes QR-codes and other barcodes. The implementation of the detection and decoding algorithm used in JeVois is from the popular library ZBar, found at http://zbar.sourceforge.net/
This module can send standardized serial messages as described in Standardized serial messages formatting. One message is issued for every detected QR-code or barcode, on every video frame.
- Serial message type: 2D
id: type of symbol (e.g., QR-Code, ISBN13, etc).
y, or vertices: standardized 2D coordinates of symbol center or of corners of bounding box (depending on
h: standardized object size
extra: decoded contents (e.g., URL that was in a QR-code, ISBN number from a barcode, etc)
Note that when
serstyle is Fine, only 4 corners are returned for each detected QR-code, but many points are returned all over each detected barcode. Beware to not exceed your serial bandwidth in that case.