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
Analyzer
instance, 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-unsuitable
toDocumentFramingStatus
. 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
adjustMinimumDocumentDpi
setting 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
mirrorX
property in the store and toggled using thesetMirrorX
method on the SDK instance.
Early finishing of side capture
- The
finishSideCapture
method 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
completenessStatus
property on theAnalyzerResult
spelling has been fixed (wascompletnessStatus
) - The
frame
andframeResult
parameters inonFrameCallback
have been swapped as the actualImageData
is required less often
Other changes:
- Improved guide for hosting resources
CaptureSdk
andCaptureUi
provide a stricter API contract- Lowered bundle size
- Improved error handling in the web worker
videoFrameCallback
is now only polyfilled in browsers, so that SSR builds work properly now.
Capture UI
- The
showErrorDialog
option now works properly - Updated the capture animations
- The
z-index
of floating elements can be configured by overriding the--mb-z-index-root
CSS custom property - Added
mb-logo
class to the Microblink logo for customization purposes - Fixed inherited font color in the camera selector