v1.2.0
Release Notes
SDK
[Features]
DocumentScannerconfiguration options- ScannerViewConfig
enableAutoCropMode?: boolean; // False by defaultenableSmartCaptureMode?: boolean; // False by defaultshowSubfooter: Toggle showing the subfooter container that allows users to toggle scan modes (Detect border, Smart capture, Auto crop).trueby defaultshowPoweredByDynamsoft: Toggle showingPowered by Dynamsoftmessage on the scanner view.trueby defaultminVerifiedFramesForAutoCapture: Change the minimum verified frames to auto capture the document.2frames 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
- ScannerViewConfig
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-takebutton 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 in
document-scanner.ui.html) - Template optimization: Updated
scaleDownThresholdto1000 - Allow
launch()with a static image. A sample is provided undersample/scenarios/use-file-input.html - Set the default resolution when opening camera to
2Kresolution
[Fixes]
- Enable
OutputOriginalImageon the template by default. Before, it required us to enable it manually if we use a custom template. - Set
engineResourcePathsbeforeinitLicenseto 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