Releases: blinkinput/blinkinput-android
v5.1.0
Improvements:
- The SDK is now supported on Android 16KB page size devices.
- Updated target API level to 36 with full support for edge-to-edge UI enforcement introduced in API level 35.
Breaking changes
-
Min Android SDK API level is raised to 21 (Android 5.0)
-
We've changed how
RecognizerRunnerprocesses images. Now it can treatImageobjects as either video frame or photo frame. Until now, Direct API always processed images as photo frames, not giving ability to recognizers to use time-redundant information for yield better recognition quality. -
Removed support for x86 architecture:
- Devices that are based on the Intel x86 architecture, rather than ARM, are no longer supported. x86 and x86_64 architectures are used on very few devices today with most of them being manufactured before 2015, and only a few after that (e.g. Asus Zenfone 4). According to the Device catalog on Google Play Console, these devices make up about 0.5% of all Android devices (97 out of 17278 devices that have an API level of 21 and above support this architecture).
v5.0.0
v5.0.0
BlinkInput v5 Release Announcement
As of this version, BlinkInput SDK is fully compatible with other Microblink SDKs, which means that you can use it alongside another Microblink SDK in the same application.
Improvements:
- We've translated the complete SDK to the following additional languages: Malay, Dutch, Hungarian, Serbian, Slovenian, Indonesian, Arabic, Romanian, Chinese traditional, Chinese simplified, Thai, Hebrew, Vietnamese and Filipino.
- We've made the SDK safe from tapjacking, a form of attack where a user is tricked into tapping something he or she didn't intend to tap. We did this by adding a new security option that prompts the SDK to discard touches when the activity's window is obscured by another visible window. To activate it, use
UISettings.setFilterTouchesWhenObscured(true). - We've introduced a new
FrameRecognitionCallbackcallback for theRecognizerRunnerView, which is invoked each time a camera frame from a video stream is recognized. UseRecognizerRunnerView.setFrameRecognitionCallbackmethod to set the callback.
Major API changes
- To ensure compatibility with other Microblink SDKs, we have repackaged all classes. We’ve renamed the root package
com.microblinktocom.microblink.blinkinput, which is unique toBlinkInputSDK. ScanResultListenerinterface now has an additional method called when the scanning cannot continue because of an unrecoverable error. You have to implementonUnrecoverableErrormethod.
If you're using built-in activities, whenonActivityResultis called withRESULT_CANCELEDresult code, the exception will be available viaActivityRunner.EXTRA_SCAN_EXCEPTIONintent extra. If the user canceled the scan, the exception would benull.
Minor API changes:
- We renamed
EMailParsertoEmailParser. - We renamed some methods:
- In
LicensePlatesParser:getLicensePlateStringis now calledgetLicensePlate. - In
RegexParser:isUsingSieveis now calledshouldUseSieve,setMustStartWithWhitespaceis now calledsetStartWithWhitespace,isMustStartWithWhitespaceis now calledshouldStartWithWhitespace,setMustEndWithWhitespaceis now calledsetEndWithWhitespace, andisMustEndWithWhitespaceis now calledshouldEndWithWhitespace. - In
RawParser:isUsingSieveis now calledshouldUseSieve.
- In
- We've renamed
RecogitionModetoRecognitionDebugModeinRecognizerBundle. - We've replaced
Using time-limited license!warning withUsing trial license!warning. The warning message is displayed when using a trial license key. - We've deprecated
DetectorRecognizer— useDocumentCaptureRecognizerinstead. - We've deprecated
Pdf417Recognizer— useBarcodeRecognizerinstead.
Bug fixes:
- We've fixed a bug in IBAN parsing which occasionally read the reference number as part of the IBAN.
- We've fixed the front-facing camera error on
Oukitel WP8 Pro.
v4.3.0
Breaking change:
Based on the feedback, we have restored support for x86_64 processor architecture. Due to the architecture specifics, there is no guarantee that the scanning process will work equally well as it does on the ARM architectures. The main reason for restoring support is to ease the compliance issue for developers.
We distribute SDK with ARMv7, ARM64, x86, and x86_64 native library binaries.
Improvements:
- We have translated complete SDK to following languages: Croatian, Czech, English, French, German, Italian, Portuguese, Slovak, and Spanish.
- We improved document detection with
DocumentCaptureRecognizer. - We are now delivering the complete list of open source dependencies used in the SDK. Please check the
open-source-software-useddirectory.
Minor API changes:
- We removed
RecognizerRunnerViewcustom attributes:mb_initialOrientationandmb_aspectMode. UseRecognizerRunnerView.setInitialOrientationandRecognizerRunnerView.setAspectModeto configure the attributes in the code. - We renamed
EMailParsertoEmailParser - We renamed some methods:
LicensePlatesParser:getLicensePlateStringtogetLicensePlateRegexParser:isUsingSievetoshouldUseSieve,setMustStartWithWhitespacetosetStartWithWhitespace,isMustStartWithWhitespacetoshouldStartWithWhitespace,setMustEndWithWhitespacetosetEndWithWhitespace,isMustEndWithWhitespacetoshouldEndWithWhitespaceRawParser:isUsingSievetoshouldUseSieve
v4.2.0
Breaking changes:
- We decided to remove support for x86_64 processor architecture.
x86 and x86_64 architectures are used on very few devices today; most of them are manufactured before 2015, and they take about 1% of all Android devices, according to the device catalog on Google Play Console.
We distribute SDK with ARMv7, ARM64, and x86 native library binaries. Native library x86 in SDK is kept mainly for emulator support. - We migrated the SDK to AndroidX dependencies. We replaced previous SDK dependency com.android.support:appcompat-v7 with androidx.appcompat:appcompat.
New features:
- We added the option to disable Microblink logs in the console output. Use
LoggingSettings.disableMicroblinkLogging(), but be careful with this option. We need full log outputs from the application for support purposes. In case of having problems with scanning certain items, undesired behavior on the specific device(s), crashes inside the SDK, or anything unmentioned, we will need a full log from your side. If you disable Microblink logs, you won't be able to provide us this information. Hence support might be limited. - We added support for capturing images of various documents (A4, or some other format):
- Use
DocumentCaptureRecognizerandDocumentCaptureUISettings. DocumentCaptureUISettingslaunches activity that usesDocumentCaptureOverlayController, which is designed for taking cropped high resolution document images and guides the user through the document capturing process. The overlay can be used only withDocumentCaptureRecognizer.
- Use
- It’s possible to set the theme of the provided scan activity, launched from the UISettings, by using UISettings.setActivityTheme
Improvements:
- We improved
VinParser:- We added support for Renewal Identification Number (RIN) - DMV California format.
- We improved camera performance on some Samsung devices.
Minor API changes:
- We removed
RecognizerRunnerViewcustom attributes:mb_initialOrientationandmb_aspectMode. UseRecognizerRunnerView.setInitialOrientationandRecognizerRunnerView.setAspectModeto configure the attributes in the code. RecognizerRunnerFragmentextendsandroidx.fragment.app.Fragment, instead of the deprecatedandroid.app.Fragment.- All provided scan activities extend
AppCompatActivityand they arefinal. RecognizerRunner.getSingletonInstance()does not throwFeatureNotSupportedExceptionanymore.- We added a new API for configuring camera options in
UISettings. UseUISettings.setCameraSettings, which accepts an object ofCameraSettingstype. FieldByFieldOverlayControlleris now configured by usingFieldByFieldOverlaySettingsinstead ofFieldByFieldUISettings.Recognizernow only has one type parameter.Recognizer.Resultno longer has any type parameters.- We moved some classes to new packages.
Bugs that we fixed:
- Crash when using Direct API on high resolution
com.microblink.image.ImagefromHighResImageWrapper. - Problems with aspect ratio of camera preview on Huawei Mate 10.
- Crash on some devices that use armeabi-v7a ABI. The SDK was unable to reserve address space due to memory fragmentation.
- Camera busy error in camera management that was happening during the quick closing and opening of the camera.
- Rare crash on Samsung J5 Prime which has been caused by race condition during the initialization of the native camera frame.
- All default scan activities correctly set volume to media instead of the ring.
- All default scan activities now apply a secure flag if enabled in
UISettings. - Scanning bug on devices with problematic camera resolution, which caused that the SDK was unable to scan the data. Known affected devices were:
OnePlus 6T,OnePlus 7 Pro, andVivo V15.
v4.1.0
New features:
- enabled capturing of high resolution camera frames:
- When custom UI integration is performed, enable this functionality by using method
RecognizerRunnerView.setHighResFrameCaptureEnabledand useRecognizerRunnerView.captureHighResImageto capture image - When using provided scan activities, high resolution full camera frames taken at the moment of successful scan are returned if this option is enabled through
UISettings. ConcreteUISettingswhich implement interfaceHighResSuccessFrameCaptureUIOptionssupport this feature.
- When custom UI integration is performed, enable this functionality by using method
Improvements for existing features:
- added option to force overlay orientation for
BarcodeOverlayController(BarcodeScanActivity) - useBarcodeUISettings.setForcedOrientation(OverlayOrientation) RecognizerRunnerViewis lifecycle-aware now, it implementsandroid.arch.lifecycle.LifecycleObserverinterface- improved image return processor:
- the processor now estimates detected (dewarped) document image quality and returns the best quality dewarped image from the best quality detection
BarcodeScanActivityby default does not show result dialog after scan- updated default UI icons
Minor API changes:
- Scanning timeout that can be configured by using
RecognizerBundle.setNumMsBeforeTimeoutis by default set toRecognizerBundle.TIMEOUT_INFINITY, which means that timeout is disabled by default. Previous default timeout value was 10 seconds. - renamded enum
com.microblink.uisettings.options.ShowOcrResultModetocom.microblink.uisettings.options.OcrResultDisplayMode - for all
UISettingsclasses which support setting of OCR result display mode, renamed methodsetShowOcrResultModetosetOcrResultDisplayMode
Bug fixes:
- fixed crashes on Nexus 6
- removed incorrect autofocus check that was performed before concrete camera type is chosen
- fixed crash on some devices when using
VIDEO_RESOLUTION_MAX_AVAILABLE - fixed problems in camera management:
- default camera surface is
TextureVeiwfor devices that use Camera1 API, otherwiseSurfaceViewis used
- default camera surface is
- fixed camera autofocus problems on Samsung S9/S9+ when optimisation for near scanning is enabled
- fixed autofocus problems in
Field by fieldscanning on Huawei P20 pro, Huawei P20 and Huawei P20 lite - fixed bug which caused that results from the previous scan are cleared when the scan activity is run again and entities which have produced results are not used in the new scan
- various other bug fixes and improvements
v4.0.0
- new API, which is not backward compatible. Please check README and updated demo applications for more information, but the gist of it is:
RecognizerViewhas been renamed toRecognizerRunnerViewandRecognizersingleton toRecognizerRunnerSegmentScanActivityhas been renamed toFieldByFieldScanActivityRandomScanActivitydoes not exist anymore- previously internal
Recognizerobjects are not internal anymore - instead of having opaqueRecognizerSettingsandRecognizerResultobjects, you now have statefulRecognizerobject that contains itsResultwithin and mutates it while performing recognition.- similarly we now have stateful
ParserandDetectorobjects - introduced new
Processorobject type - For more information, see README, updated demo applications and this blog post
- similarly we now have stateful
- added
RecognizerRunnerFragmentwith support for various scanning overlays in a manner similar to iOS API. This now allows you to use built-in UI, which was previously strictly available for built-in activities, in form of fragment anywhere within your activity. Full details are given in README and in updated demo applications.
- new licence format, which is not backward compatible. Full details are given in README and in updated applications, but the gist of it is:
- licence can now be provided with either file, byte array or base64-encoded bytes
- introduced preview version of next generation
DeepOCR. Check BlinkInputRawOcrSample to see how it can be enabled.
v3.4.0
New features:
- Added
VinRecognizerfor scanning VIN (Vehicle Identification Number) barcodes - Added unified
BarcodeRecognizerfor scanning various tipes of barcodesZXingRecognizerandBarDecoderRecognizerare deprecated,BarcodeRecognizershould be used for all barcode types that are supported by these recognizers
- added support for reading mirrored QR codes:
- affects all recognizers that perform QR code scanning
- introduced
GlareDetectorwhich is by default used in all recognizers whose settings implementGlareDetectorOptions:- when glare is detected, OCR will not be performed on the affected document position to prevent errors in the extracted data
- if the glare detector is used and obtaining of glare metadata is enabled in
MetadataSettings, glare status will be reported toMetadataListener - glare detector can be disabled by using
setDetectGlare(boolean)method on the recognizer settings
- added
QuadDetectorWithSizeResultwhich inherits existingQuadDetectorResult:- it's subclasses are
DocumentDetectorResultandMRTDDetectorResult - returns information about physical size (height) in inches of the detected location when physical size is known
- it's subclasses are
- added support for characters
{and}inOCR_FONT_VERDANAto OCR engine
Minor API changes:
- Date fields in recognition results are returned as
com.microblink.results.date.Dateclass which represents immutable dates that are consisted of day, month and year OcrLine.getChars()method returnsCharWithVariantsarray. OCR char is defined by all its parameters (value, font, position, quality, etc.) and for each resulting char it is possible to have multiple variants. For example it is possible to have same char value with different font.RegexParserSettingsandRawParserSettingsnow work withAbstractOCREngineOptions, which is a base class ofBlinkOCREngineOptions- default engine options returned by method
getOcrEngineOptionsfor both parser settings return instance ofBlinkOCREngineOptions
- default engine options returned by method
BlinkOCRRecognizerSettingsis now deprecated and will be removed inv4.0.0- use
DetectorRecognizerSettingsto perform scanning of templated documents - use
BlinkInputRecognizerSettingsfor segment scan or for full-screen OCR - until
v4.0.0,BlinkOCRRecognizerSettingswill behave as before, however you are encouraged to update your code not to use it anymore
- use
DocumentClassifierinterface is moved fromcom.microblink.recognizers.blinkocrtocom.microblink.recognizers.detectorpackage andDocumentClassifier.classifyDocument()now acceptsDetectorRecognitionResultas parameter for document classification
Improvements for existing features:
- improved
TopUpParser:- added option to return USSD code without prefix
- improved
IbanParser:- improved extraction of IBANs without prefix and introduced
setAlwaysReturnPrefixoption to always return prefix (country code) - added support for french IBANs
- improved extraction of IBANs without prefix and introduced
- enabled reading of Pdf417 barcodes having width/height bar aspect ratio less than 2:1
- improved date parsing:
- affects date parser and all recognizers which perform date parsing
Bug fixes:
- fixed returning of images inside TemplatingAPI for frames when document was not correctly detected
- Fixed bug in SegmentScanActivity:
- scan results are no longer hidden on shake event
v3.3.0
- optimised native binary size
- 33% size reduction for
arm64-v8aABI - 39% size reduction for
armeabi-v7aABI - 34% size reduction for
x86ABI - 31% size reduction for
x86_64ABI
- 33% size reduction for
LibBlinkInputis now fully ProGuard-compatible, i.e. you no longer need to excludecom.microblink.**classes in your ProGuard configuration- removed support for Android 2.3 and Android 4.0 - minimum required Android version is now Android 4.1 (API level 16)
- devices with Android 4.0 and earlier take less than 2% of market share and is very costly to support them
- removed
isItalicandisBoldgetters fromOcrCharclass- they always returned
false, since OCR engine cannot accurately detect that
- they always returned
- removed
setLineGroupingEnabledandisLineGroupingEnabledfromBlinkOCREngineOptionsbecause disabling line grouping completely destroyed the OCR accuracy - improved
TopUpParser:- added option to enable all prefixes at the same time (generic prefix)
- added suport for 14 digits long sim numbers in addition to existing lengths (12, 19, 20)
DateParsercan parse dates with month names in English (either full or abbreviated), if this option is enabled- added support for polish IBAN without PL prefix to
IBANParser - prefixed custom attributes to avoid name collisions with attributes from other libraries:
CameraViewGroup: renamed animateRotation tomb_animateRotation, animationDuration tomb_animationDuration, rotatable tomb_rotatableBaseCameraView: renamed initialOrientation tomb_initialOrientation, aspectMode tomb_aspectMode
v3.2.0
- added support for Android 7 multi-window mode
- fixed autofocus bug on Huawei Honor 8
- fixed black camera on Motorola Moto Z
- made camera focusing more stable on some devices
- stable means less "jumpy" when searching for focused image
- MobileCoupon parser renamed to TopUp parser
v3.1.0
- removed
RecognizerViewmethodsetInitialScanningPaused. For achieving the same functionality, methodpauseScanningshould be used. - added support for scanning IBANs that contain spaces and dashes
- added support for scanning IBAN from Georgia in Segment Scan
- added support for cancelling ongoing DirectAPI recognition call