EasyQRCode - Reading QR Codes¶
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
ERegionin 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:
Create an
EQRCodeReader.NET Python object.Call the
EQRCodeReader::Read.NET Python method to return a vector ofEQRCode.NET Python.
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 of the QR codes and EasyQRCode.
How to use EasyQRCode.
Quick Links¶
List of all classes, structs and enumerations of the EasyQRCode library.
Code snippets for the EasyQRCode library.
All the code symbologies read by the text and code reading libraries.
Assess the printing quality of your bar, data matrix and QR codes.
Read bar, data matrix and QR codes using a unified interface.
See also
The sample QR code reading in eVision Studio shows how to use the EasyQRCode library to read barcodes.