Package io.scanbot.sdk.check
Class DefaultCheckScanner
-
- All Implemented Interfaces:
-
io.scanbot.sdk.check.CheckScanner
public final class DefaultCheckScanner implements CheckScanner
Performs detection and scanning the check data.
-
-
Constructor Summary
Constructors Constructor Description DefaultCheckScanner()
-
Method Summary
Modifier and Type Method Description CheckScannerConfiguration
copyCurrentConfiguration()
Returns a copy of the current configuration. Unit
setConfiguration(CheckScannerConfiguration configuration)
Sets the configuration for the Check scanner. Unit
setAcceptedCheckStandards(ArrayList<RootDocumentType> acceptedCheckStandards)
Accepted checks. CheckScanningResult
scan(ByteArray nv21, Integer width, Integer height, Integer orientation, Boolean returnImageOnSuccess)
Performs check data scanning on the NV21 format image CheckScanningResult
scanInArea(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect areaRect, Boolean returnImageOnSuccess)
Performs check data scanning in the finder rect on the NV21 format image CheckScanningResult
scanFromBgr(ByteArray bgr, Integer width, Integer height, Integer orientation)
Performs check data scanning on the BGR format image CheckScanningResult
scanFromJpeg(ByteArray image, Integer orientation)
Performs check data scanning on the JPEG image CheckScanningResult
scanFromBitmap(Bitmap image, Integer orientation)
Performs check data scanning on the Bitmap -
-
Method Detail
-
copyCurrentConfiguration
CheckScannerConfiguration copyCurrentConfiguration()
Returns a copy of the current configuration.
-
setConfiguration
Unit setConfiguration(CheckScannerConfiguration configuration)
Sets the configuration for the Check scanner.
- Parameters:
configuration
- The configuration to set.
-
setAcceptedCheckStandards
Unit setAcceptedCheckStandards(ArrayList<RootDocumentType> acceptedCheckStandards)
Accepted checks.
- Parameters:
acceptedCheckStandards
- A list of RootDocumentType (enum - RootDocumentType.USACheck, RootDocumentType.FRACheck, RootDocumentType.KWTCheck, RootDocumentType.AUSCheck, RootDocumentType.INDCheck, RootDocumentType.ISRCheck, RootDocumentType.UnknownCheck, RootDocumentType.UAECheck, RootDocumentType.CANCheck).
-
scan
CheckScanningResult scan(ByteArray nv21, Integer width, Integer height, Integer orientation, Boolean returnImageOnSuccess)
Performs check data scanning on the NV21 format image
-
scanInArea
CheckScanningResult scanInArea(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect areaRect, Boolean returnImageOnSuccess)
Performs check data scanning in the finder rect on the NV21 format image
-
scanFromBgr
CheckScanningResult scanFromBgr(ByteArray bgr, Integer width, Integer height, Integer orientation)
Performs check data scanning on the BGR format image
-
scanFromJpeg
CheckScanningResult scanFromJpeg(ByteArray image, Integer orientation)
Performs check data scanning on the JPEG image
-
scanFromBitmap
CheckScanningResult scanFromBitmap(Bitmap image, Integer orientation)
Performs check data scanning on the Bitmap
-
-
-
-