readBarcodes method

CodeResults readBarcodes(
  1. Pointer<Char> bytes,
  2. int format,
  3. int width,
  4. int height,
  5. int cropWidth,
  6. int cropHeight,
  7. int tryHarder,
  8. int tryRotate,
)

@brief Read barcodes from image bytes. @param bytes Image bytes. @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.Char> bytes,
  int format,
  int width,
  int height,
  int cropWidth,
  int cropHeight,
  int tryHarder,
  int tryRotate,
) {
  return _readBarcodes(
    bytes,
    format,
    width,
    height,
    cropWidth,
    cropHeight,
    tryHarder,
    tryRotate,
  );
}