Skip to content

v1.2.0

Latest
Compare
Choose a tag to compare
@Felix-Dynamsoft Felix-Dynamsoft released this 30 Apr 22:30

Release Notes

SDK

[Features]

  • DocumentScanner configuration options
    • ScannerViewConfig
      • enableAutoCropMode?: boolean; // False by default
      • enableSmartCaptureMode?: boolean; // False by default
      • showSubfooter: Toggle showing the subfooter container that allows users to toggle scan modes (Detect border, Smart capture, Auto crop). true by default
      • showPoweredByDynamsoft: Toggle showing Powered by Dynamsoft message on the scanner view. true by default
      • minVerifiedFramesForAutoCapture: Change the minimum verified frames to auto capture the document. 2 frames are needed by default. Lower this number to make the capture faster (this could have an effect on accuracy/quality of image scanned).
      • scanRegion: allows users to set a scan region while scanning a document
export interface ScanRegion {
  ratio: {
    width: number;
    height: number;
  }; // Ratio of the scan region
  regionBottomMargin: number; // Bottom margin calculated in pixel. This will "push" the scan region upwards
  style: {
    strokeWidth: number; // width of the scan region border
    strokeColor: string; // color of the scan region border
  }; 
}
  • Added Re-take button in Correction View. this will allow users to retake/rescan the document through the correction view.
  • Provide landscape support for the Document Scanner View (implemented indocument-scanner.ui.html)
  • Template optimization: Updated scaleDownThreshold to 1000
  • Allow launch() with a static image. A sample is provided under sample/scenarios/use-file-input.html
  • Set the default resolution when opening camera to 2K resolution

[Fixes]

  • Enable OutputOriginalImage on the template by default. Before, it required us to enable it manually if we use a custom template.
  • Set engineResourcePaths before initLicense to prevent a bug when a user implements a custom engineResourcePath.
  • Update trial license banner link to lead to https://www.dynamsoft.com/customer/license/trialLicense?product=mwc&deploymenttype=web

Docs

  • Version update from 1.1.1 to 1.2.0
  • Added docs on the new properties in DocumentScannerConfig