-
public interface IBANRecognizerInterface for processing images and returning the recognized IBANs in the callback.
-
-
Method Summary
Modifier and Type Method Description abstract UnitprocessImage(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 UnitprocessByteArray(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 Unitclose()Closes the IBAN recognizer. -
-
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 processwidth- the width of the imageheight- the height of the imagerotationDegrees- the rotation of the imagedoneCallback- the callback which will receive the recognized IBANs or null if no IBAN was foundcancelledCallback- 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 processwidth- the width of the imageheight- the height of the imagerotationDegrees- the rotation of the imagedoneCallback- the callback which will receive the recognized IBANs or null if no IBAN was foundcancelledCallback- the callback which will be called when the processing is cancelled
-
-
-
-