Package 

Interface IBANRecognizer


  • 
    public interface IBANRecognizer
    
                        

    Interface for processing images and returning the recognized IBANs in the callback.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit processImage(Image image, Integer width, Integer height, Integer rotationDegrees, Function1<List<String>, Unit> doneCallback, Function0<Unit> cancelledCallback) Processes the given Image and returns the recognized IBANs in the callback.
      abstract Unit processByteArray(ByteArray byteArray, Integer width, Integer height, Integer rotationDegrees, Function1<List<String>, Unit> doneCallback, Function0<Unit> cancelledCallback) Processes the given image byte array and returns the recognized IBANs in the callback.
      abstract Unit close() Closes the IBAN recognizer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • processImage

         abstract Unit processImage(Image image, Integer width, Integer height, Integer rotationDegrees, Function1<List<String>, Unit> doneCallback, Function0<Unit> cancelledCallback)

        Processes the given Image and returns the recognized IBANs in the callback.

        Parameters:
        image - the image to process
        width - the width of the image
        height - the height of the image
        rotationDegrees - the rotation of the image
        doneCallback - the callback which will receive the recognized IBANs or null if no IBAN was found
        cancelledCallback - the callback which will be called when the processing is cancelled
      • processByteArray

         abstract Unit processByteArray(ByteArray byteArray, Integer width, Integer height, Integer rotationDegrees, Function1<List<String>, Unit> doneCallback, Function0<Unit> cancelledCallback)

        Processes the given image byte array and returns the recognized IBANs in the callback.

        Parameters:
        byteArray - the image byte array to process
        width - the width of the image
        height - the height of the image
        rotationDegrees - the rotation of the image
        doneCallback - the callback which will receive the recognized IBANs or null if no IBAN was found
        cancelledCallback - the callback which will be called when the processing is cancelled
      • close

         abstract Unit close()

        Closes the IBAN recognizer.

        IMPORTANT: You must call this method when you are done with the IBAN recognizer.