-
Notifications
You must be signed in to change notification settings - Fork 2
Quirc Examples
This application runs several examples using the Quirc library. For each test, the output will be the number of QR codes detected and their content. If an error occurs, the output will display its type.
The content of the testFiles folder must be copied to the SD card (/mnt/sdcard/) resulting in /mnt/sdcard/QuircTest/.
To obtain information about the used QR Codes, some QR Codes have been uploaded to here.
This example is a basic test. The image contains a unique QR code, without margins on the sides. The main purpose is to check the proper behavior of the library.
Files required:
- File: /mnt/sdcard/QuircTest/TestQR.png
The image size is 150 x 150 px.
In this example, the output is:
UART: Test 1
UART: num_codes: 1
UART: Data: EoT
UART: ----------------
Second test image contains a QR Code and text. The main purpose is to check if Quirc library distinguish between QR Codes and text, decoding the code and ignoring the text.
In contrast to Test 1, this image has margins. In this way, we can know if Quirc looks for the QR Code.
Files required:
- File: /mnt/sdcard/QuircTest/TestTex.png
The image size is 490 x 490 px.

The output of the Test 2 is:
UART: Test 2
UART: num_codes: 1
UART: Data: http://www.qrdroid.com
UART: ----------------
Website | Twitter | Linkedin | Flickr | Slideshare
