EasyQRCode - Reading QR Codes

EasyQRCode

A QR code read by EasyQRCode

Purpose of the EasyQRCode Library

The EasyQRCode library reads QR codes in an image:

  • The reading is fast and robust.

  • It can reads several codes in the same image.

  • You can limit the processing to an ERegion in the image.

  • It provides a specific support for codes arranged in a grid.

  • It can grade the QR codes according to the ISO 15415 or ISO 29158 standards.

Reading a QR Code

To automatically read the QR code in an image:

For each instance, use EQRCode::GetDecodedString .NET Python to get the decoded string embedded in the QR code.

#include <eVision/EasyQRCode/EQRCodeReader.h>
using namespace eVision;

// Image constructor
EImageBW8 srcImage;

// QR code reader constructor
EQRCodeReader reader;

// ...

// Read
std::vector<EQRCode> qrCodes = reader.Read(srcImage);

// Retrieve the decoded string in best guess mode from the first QR Code
std::string decoded_string = qrCodes[0].GetDecodedString(EByteInterpretationMode_Auto);
using eVision;
// Image constructor
EImageBW8 srcImage = new EImageBW8();

// QR code reader constructor
EQRCodeReader reader = new EQRCodeReader();

// ...

// Read
EQRCode[] qrCodes = reader.Read(srcImage);

// Retrieve the decoded string in best guess mode from the first QR Code
string decoded_string = qrCodes[0].GetDecodedString(EByteInterpretationMode.Auto);
import eVision
# Image constructor
src_image = eVision.EImageBW8()

# QR code reader constructor
reader = eVision.EQRCodeReader()

# ...

# Detect QRCodes in src_image
qr_codes = reader.Read(src_image)

# Retrieve the decoded string in best guess mode from the first QR Code
decoded_string = qr_codes[0].GetDecodedString(eVision.EByteInterpretationMode.Auto)

Contents

Specifications

Specifications of the QR codes and EasyQRCode.

Specifications
Using EasyQRCode

How to use EasyQRCode.

Using EasyQRCode