readBarcode method
@brief Read barcode from image bytes. @param bytes Image bytes. Owned pointer. Will be freed by native code. @param imageFormat Image format. @param format Specify a set of BarcodeFormats that should be searched for. @param width Image width in pixels. @param height Image height in pixels. @param cropWidth Crop width. @param cropHeight Crop height. @param tryHarder Spend more time to try to find a barcode; optimize for accuracy, not speed. @param tryRotate Also try detecting code in 90, 180 and 270 degree rotated images. @return The barcode result.
Implementation
CodeResult readBarcode(
ffi.Pointer<ffi.Uint8> bytes,
int imageFormat,
int format,
int width,
int height,
int cropWidth,
int cropHeight,
bool tryHarder,
bool tryRotate,
bool tryInvert,
) {
return _readBarcode(
bytes,
imageFormat,
format,
width,
height,
cropWidth,
cropHeight,
tryHarder,
tryRotate,
tryInvert,
);
}