ICvBasepublic interface IBarcodeDetector extends ICvBase
Currently, only a non-empty string is used for generating a QR code, which will be output in a byte array.
The size of the QR code to be generated is specified by parameters. If any input parameter is invalid or an error occurs during QR code generation, an error code is returned.
The delay in generating a QR code is less than 500 ms, varying according to the hardware performance.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
detect(String barcodeInput,
byte[] bitmapOutput,
int width,
int height) |
Checks the length of the input string and the width and height of an expected QR code,
generates the QR code based on the input string if the input parameters are valid,
and outputs a byte array of the pixel map for the QR code PNG image.
|
getAvailability, loadPlugin, prepare, releaseint detect(String barcodeInput, byte[] bitmapOutput, int width, int height)
Generally,
the values of width and height are the same.
barcodeInput - Indicates the input string, which cannot be empty or exceed 2953 bytes.bitmapOutput - Indicates the byte array used to store the generated QR code.
The array cannot be empty and its length is equal to the product of width, height, and 4.width - Indicates the width (unit: px) of the expected QR code. The maximum value is 1920.height - Indicates the height (unit: px) of the expected QR code. The maximum value is 1680.HwHiAIResultCode.