Package io.scanbot.sdk.mrz
Class DefaultMrzScanner
-
- All Implemented Interfaces:
-
io.scanbot.sdk.mrz.MrzScanner
public final class DefaultMrzScanner implements MrzScanner
Performs detection and scanning of MRZ data
-
-
Constructor Summary
Constructors Constructor Description DefaultMrzScanner()
-
Method Summary
Modifier and Type Method Description MrzScannerConfiguration
copyCurrentConfiguration()
Returns a copy of the current configuration. Unit
setConfiguration(MrzScannerConfiguration configuration)
Sets the configuration for the MRZ scanner. MrzScannerResult
scan(ByteArray nv21, Integer width, Integer height, Integer orientation)
Performs MRZ data scanning on the NV21 format image MrzScannerResult
scanFromBgr(ByteArray bgr, Integer width, Integer height, Integer orientation)
Performs MRZ data scanning on the BGR format image MrzScannerResult
scanFromJpeg(ByteArray image, Integer width, Integer height, Integer orientation)
Performs MRZ data scanning on the JPEG image MrzScannerResult
scanFromJpegInArea(ByteArray image, Integer width, Integer height, Integer orientation, Rect areaRect)
Performs MRZ data scanning on the JPEG image in specified area rect MrzScannerResult
scanFromBitmap(Bitmap bitmap, Integer orientation)
Performs MRZ data scanning on the Bitmap MrzScannerResult
scanInArea(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect areaRect)
Performs MRZ data scanning on the NV21 format image in specified area rect MrzScannerResult
parseString(String mrzString)
Performs MRZ data parsing on the given string -
-
Method Detail
-
copyCurrentConfiguration
MrzScannerConfiguration copyCurrentConfiguration()
Returns a copy of the current configuration.
-
setConfiguration
Unit setConfiguration(MrzScannerConfiguration configuration)
Sets the configuration for the MRZ scanner.
- Parameters:
configuration
- The configuration to set.
-
scan
MrzScannerResult scan(ByteArray nv21, Integer width, Integer height, Integer orientation)
Performs MRZ data scanning on the NV21 format image
-
scanFromBgr
MrzScannerResult scanFromBgr(ByteArray bgr, Integer width, Integer height, Integer orientation)
Performs MRZ data scanning on the BGR format image
-
scanFromJpeg
MrzScannerResult scanFromJpeg(ByteArray image, Integer width, Integer height, Integer orientation)
Performs MRZ data scanning on the JPEG image
-
scanFromJpegInArea
MrzScannerResult scanFromJpegInArea(ByteArray image, Integer width, Integer height, Integer orientation, Rect areaRect)
Performs MRZ data scanning on the JPEG image in specified area rect
-
scanFromBitmap
MrzScannerResult scanFromBitmap(Bitmap bitmap, Integer orientation)
Performs MRZ data scanning on the Bitmap
-
scanInArea
MrzScannerResult scanInArea(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect areaRect)
Performs MRZ data scanning on the NV21 format image in specified area rect
-
parseString
MrzScannerResult parseString(String mrzString)
Performs MRZ data parsing on the given string
- Parameters:
mrzString
- string to parse
-
-
-
-