readBarcodes method

CodeResults readBarcodes(
  1. Pointer<Uint8> bytes,
  2. int imageFormat,
  3. int format,
  4. int width,
  5. int height,
  6. int cropWidth,
  7. int cropHeight,
  8. bool tryHarder,
  9. bool tryRotate,
  10. bool tryInvert,
)

@brief Read barcodes 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 results.

Implementation

CodeResults readBarcodes(
  ffi.Pointer<ffi.Uint8> bytes,
  int imageFormat,
  int format,
  int width,
  int height,
  int cropWidth,
  int cropHeight,
  bool tryHarder,
  bool tryRotate,
  bool tryInvert,
) {
  return _readBarcodes(
    bytes,
    imageFormat,
    format,
    width,
    height,
    cropWidth,
    cropHeight,
    tryHarder,
    tryRotate,
    tryInvert,
  );
}