github BlinkID/capture-browser v1.1.0

latest releases: v1.2.3, v1.2.2, v1.2.1...
12 months ago

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 to DocumentFramingStatus. 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 the Analyzer. 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 the setMirrorX 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 the AnalyzerResult spelling has been fixed (was completnessStatus)
  • The frame and frameResult parameters in onFrameCallback have been swapped as the actual ImageData is required less often

Other changes:

  • Improved guide for hosting resources
  • CaptureSdk and CaptureUi 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

Don't miss a new capture-browser release

NewReleases is sending notifications on new releases.