github BlinkID/capture-android v1.1.0

latest releases: v1.4.0, v1.3.0, v1.2.0...
11 months ago

Improvements

  • SDK is available on Microblink maven repository for easier integration. You no longer need to worry about additional dependencies required by the Capture SDK - they are included as transitive dependencies.
  • Introduced support for the Direct API integration:
    • When using the Direct API, you are responsible for preparing input image stream (or static images) for analysis and building a completely custom UX from scratch based on the image-by-image feedback from the SDK.
    • Direct API gives you more flexibility with the cost of a significantly larger integration effort. For example, if you need a camera, you will be responsible for camera management and displaying real-time user guidance.
  • Introduced validation of the DPI requirements from the AnalyzerSettings:
    • If the user should position the document aligned with the device screen to occupy a larger area on the input image (enables higher capture resolution), we display the animated instructions to rotate the document or phone (to landscape or portrait).
    • If the required minimumDocumentDpi cannot be satisfied because of the selected camera resolution on a specific device and automatic DPI adjustment is not enabled by the adjustMinimumDocumentDpi flag - we display the error dialog and terminate the Capture screen immediately after the dialog dismissal.
  • Added a new option adjustMinimumDocumentDpi to the AnalyzerSettings. It is used to enable minimum document DPI adjustment. If it is enabled, the minimum DPI is adjusted to the optimal value for the provided input resolution to facilitate the capture of all document groups.
  • Added dpiAdjusted member to SideCaptureResult. If the document is captured at a lower DPI than requesteed by AnalyzerSettings.minimumDocumentDpi, a flag is set to true.
  • Added support for online checked licenses.

Minor API changes

  • Expanded CaptureResult.Status with two new statuses:
    • ERROR_LICENCE_CHECK - Capture process has been canceled because of the licence check error. This happens if you use a licence that should be online activated and activation fails.
    • ERROR_ANALYZER_SETTINGS_UNSUITABLE - Capture process has been canceled because of the AnalyzerSettings validation error.
  • SDK is distributed as two separate libraries:
    • capture-core provides image analysis and capture without UX, which is enough for Direct API integration
    • capture-ux depends on capture-core and contains default UX implementation with limited customization possibilities. It enables straightforward integration with minimal effort.
  • Renamed all occurrences of analyse to analyze in code.
  • Changed default value of AnalyzerSettings.minimumDocumentDpi to 230

Bugfixes

  • Fix for turn-side animation being shown on timeout for single-sided documents

Don't miss a new capture-android release

NewReleases is sending notifications on new releases.