QRCodeEncoder
import { QRCodeEncoder } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;parametersQR code encoder parameters QRCodeEncoder::Params
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;The this result.
encode
Generates QR code from input string.
encode(encoded_info: EmbindString, qrcode: Mat): void;encoded_infoInput string to encode.
qrcodeOutput 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_infoInput string to encode.
qrcodesOutput 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.