Skip to content

QRCodeEncoder

objdetectclassOpenCV 5.0.0
import { QRCodeEncoder } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSQRCodeEncoder
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

QR code encoder.

Constructors and members

static create

QRCodeEncoder.create: Constructor

create(parameters: QRCodeEncoder_Params): QRCodeEncoder | null;
2 available overloads
create(): QRCodeEncoder | null;
create(parameters: QRCodeEncoder_Params): QRCodeEncoder | null;
parameters

QR code encoder parameters QRCodeEncoder::Params

Returns

The QRCodeEncoder | null result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

encode

Generates QR code from input string.

encode(encoded_info: EmbindString, qrcode: Mat): void;
encoded_info

Input string to encode.

qrcode

Output destination, filled by the native operation. Generated QR code.

encodeStructuredAppend

Generates QR code from input string in Structured Append mode. The encoded message is splitting over a number of QR codes.

encodeStructuredAppend(encoded_info: EmbindString, qrcodes: MatVector): void;
encoded_info

Input string to encode.

qrcodes

Output destination, filled by the native operation. Vector of generated QR codes.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.