Detect the document contour in the given image.
The image to detect the document contour in.
Optional consumeImage: Config.ConsumeTypeControls if the image can still be used after calling this method, or if it will be consumed by the method. See ConsumeType for more details.
The detection result.
Detect the document contour in the given image and crop it.
The image to detect the document contour in.
Optional consumeImage: Config.ConsumeTypeControls if the image can still be used after calling this method, or if it will be consumed by the method. See ConsumeType for more details.
The scanning result.
Static createOptional configuration: { Optional engineThe engine to use for document scanning.
"ML";
Optional parameters?: { acceptedAngleScore?: number; acceptedSizeScore?: number; acceptedBrightnessThreshold?: number; acceptedAspectRatioScore?: number; aspectRatios?: { readonly width?: number; readonly height?: number; }[]; ignoreOrientationMismatch?: boolean; }Initial parameters for the document scanner.
new DocumentScannerParameters({});
Optional partiallyConfiguration for handling partially visible documents.
new PartiallyVisibleDocumentConfiguration({});
Optional processingIn live mode, the document scanner will return only the best document contour. In single-shot mode it will return additional document contours, suitable for use in the cropping screen.
"AUTO";
Generated using TypeDoc
API for document detection and scanning.
Required licence feature(s): DocumentScanner.