New usage mode — Direct API
- Users can now initialize the SDK in a low-level DirectAPI mode using
createDirectApi - This mode gives users the capability to directly interact with the
Analyzerinstance, bypassing the provided functionality in the Capture SDK such as camera and video management, user feedback, callbacks and state management.
Capture SDK
New features:
Orientation check
- Added
camera-orientation-unsuitabletoDocumentFramingStatus. This status is returned if it's not possible to capture the document in its current orientation. - When using the SDK the user will be guided to rotate the document.
Automatic DPI adjustment
- Added
adjustMinimumDocumentDpisetting on theAnalyzer. When enabled, the minimum dpi is adjusted to optimal value for the
provided input resolution to enable capture of all document groups.
Camera stream mirroring
-
Added the capability to mirror the camera stream horizontally. Enabled by default on front facing cameras.
-
The current state can be found on the
mirrorXproperty in the store and toggled using thesetMirrorXmethod on the SDK instance.
Early finishing of side capture
- The
finishSideCapturemethod has been added to the SDK instance which allows users to manually finish the capturing process early if there are any candidates available.
Breaking changes:
- The
completenessStatusproperty on theAnalyzerResultspelling has been fixed (wascompletnessStatus) - The
frameandframeResultparameters inonFrameCallbackhave been swapped as the actualImageDatais required less often
Other changes:
- Improved guide for hosting resources
CaptureSdkandCaptureUiprovide a stricter API contract- Lowered bundle size
- Improved error handling in the web worker
videoFrameCallbackis now only polyfilled in browsers, so that SSR builds work properly now.
Capture UI
- The
showErrorDialogoption now works properly - Updated the capture animations
- The
z-indexof floating elements can be configured by overriding the--mb-z-index-rootCSS custom property - Added
mb-logoclass to the Microblink logo for customization purposes - Fixed inherited font color in the camera selector