Interface ScanbotBarcodeDetector

    • Constructor Detail

    • Method Detail

      • enableBarcodeScan

         abstract Unit enableBarcodeScan(Boolean barcodeScanEnabled)
        Parameters:
        barcodeScanEnabled - if true barcode scanning will be enabled, false - will be disabled
      • modifyConfig

         abstract Unit modifyConfig(Function1<BarcodeScannerConfigBuilder, Unit> mutatingFunc)

        Modify existing config.

        Parameters:
        mutatingFunc - will receive the existing config instance - just copy it changing the desired parameter.
      • detectFromNv21

         abstract BarcodeScanningResult detectFromNv21(ByteArray nv21, Integer width, Integer height, Integer frameOrientation)

        Detect barcodes on the nv21 frame.

        For efficiency, reuse the same detector object from one decode to the next. The barcode filters list is taken from the current state

        Parameters:
        nv21 - The YUV preview frame.
        width - The width of the preview frame.
        height - The height of the preview frame.
        frameOrientation - The frame orientation degrees.
      • detectFromNv21

         abstract BarcodeScanningResult detectFromNv21(ByteArray nv21, Integer width, Integer height, Integer frameOrientation, Rect finderRect)

        Decode the nv21 within the viewfinder rectangle, and time how long it took.

        For efficiency, reuse the same reader objects from one decode to the next. The barcode filters list is taken from the current state

        Parameters:
        nv21 - The YUV preview frame.
        width - The width of the preview frame.
        height - The height of the preview frame.
        frameOrientation - The frame orientation degrees.
        finderRect - decode area
      • detectFromNv21

         abstract BarcodeScanningResult detectFromNv21(ByteArray nv21, Integer width, Integer height, Integer frameOrientation, Rect finderRect, Boolean isLive)

        Decode the nv21 within the viewfinder rectangle, and time how long it took.

        For efficiency, reuse the same reader objects from one decode to the next. The barcode filters list is taken from the current state

        Parameters:
        nv21 - The YUV preview frame.
        width - The width of the preview frame.
        height - The height of the preview frame.
        frameOrientation - The frame orientation degrees.
        finderRect - decode area
        isLive - if true - will try to detect barcodes in the live mode (e.g.
      • detectFromJpeg

         abstract BarcodeScanningResult detectFromJpeg(ByteArray jpeg, Integer frameOrientation)

        Detect barcodes on the jpeg image.

        For efficiency, reuse the same reader objects from one decode to the next. The barcode filters list is taken from the current state

        Parameters:
        jpeg - The jpeg to find barcodes.
        frameOrientation - The frame orientation degrees.
      • detectFromRgba

         abstract BarcodeScanningResult detectFromRgba(ByteArray img, Integer width, Integer height, Integer frameOrientation)

        Detect barcodes on the RGBA image.

        For efficiency, reuse the same reader objects from one decode to the next. The barcode filters list is taken from the current state

        Parameters:
        img - The byteArray with image to find barcodes.
        width - The width of the preview frame.
        height - The height of the preview frame.
        frameOrientation - The frame orientation degrees.
      • detectFromBitmap

         abstract BarcodeScanningResult detectFromBitmap(Bitmap bitmap, Integer frameOrientation)

        Detect barcodes on the bitmap.

        For efficiency, reuse the same reader objects from one decode to the next. The barcode filters list is taken from the current state

        Parameters:
        bitmap - The Bitmap to find barcodes.
        frameOrientation - The frame orientation degrees.