Decoding
Zymbol decodes a sampled, correctly oriented square grid of modules. It corrects recoverable codeword errors and returns the payload bytes and metadata.
What the input looks like
A grid contains one value per module: 0 for light, 1 for dark. Its size specifies the number of modules along each side.
typescript
const result = qr.decode({
size: symbol.size,
modules: symbol.modules,
});
const text = new TextDecoder().decode(result.bytes);What it does not do
The library does not locate symbols in images, read cameras or correct perspective. Supply a sampled, oriented grid before decoding. The decoder can handle mirrored grids and reversed reflectance.
Decoding API