Reading a Grid of QR Codes

Functional Guide | Reference: Read, EQRCodeGrid


///////////////////////////////////////////////////////////////
// This code snippet shows how to read QR codes that are     //
// disposed in a 5 by 3 grid with 10% overlap between grid   //
// cells                                                     //
///////////////////////////////////////////////////////////////

EImageBW8 srcImage;
ERectangleRegion gridRegion;
EQRCodeReader reader;

// Reading succeeds
EQRCodeGrid grid = reader.Read(srcImage, gridRegion, 3, 5, 0.1f);

std::vector<EQRCode> codesMiddleCell = grid.GetResults(1, 2);

///////////////////////////////////////////////////////////////
// This code snippet shows how to read QR codes that are     //
// disposed in a 5 by 3 grid with 10% overlap between grid   //
// cells                                                     //
///////////////////////////////////////////////////////////////

EImageBW8 srcImage = new EImageBW8();
ERectangleRegion gridRegion = new ERectangleRegion();
EQRCodeReader reader = new EQRCodeReader();

// Reading succeeds
EQRCodeGrid grid = reader.Read(srcImage, gridRegion, 3, 5, 0.1f);

EQRCode[] codesMiddleCell = grid.GetResults(1, 2);

// cleanup
foreach (EQRCode code in codesMiddleCell)
{
  code.Dispose();
}
grid.Dispose();
reader.Dispose();
gridRegion.Dispose();
srcImage.Dispose();

Sorry, the code snippets are currently not available in Python.