Skip to content

Quirc Examples

PruebasVisilab edited this page Feb 6, 2017 · 7 revisions
  1. Introduction
  2. Examples and expected output
    1. Test 1
    2. Test 2
    3. Test 3
    4. Test 4
    5. Test 5
    6. Test 6
    7. Test 7
    8. Test 8
  3. Benchmark

Introduction

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.

quirc

Examples and expected output

Test 1

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.
    test1

In this example, the output is:

UART: Test 1
UART: num_codes: 1
UART: Data: EoT
UART: ----------------

Test 2

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.

test2

The output of the Test 2 is:

UART: Test 2
UART: num_codes: 1
UART: Data: http://www.qrdroid.com
UART: ----------------

Test 3

Clone this wiki locally