CaptureViewerConfig
Syntax
interface CaptureViewerConfig {
canvasStyle?: CanvasStyle;
quadSelectionStyle?: QuadSelectionStyle;
enableTorch?: boolean;
enableAutoCapture?: boolean;
enableAutoDetect?: boolean;
acceptedPolygonConfidence?: number;
autoCaptureDelay?: number;
maxFrameNumber?: number;
}
Attributes
canvasStyle
The style of canvas of the viewer. Please refer to CanvasStyle
.
quadSelectionStyle
The style of rectangular selection. Please refer to QuadSelectionStyle
.
enableTorch
Specify whether to turn on the flashlight.
Default value: false
enableAutoCapture
Specify whether to enable automatic capture.
Default value: false
enableAutoDetect
Specify whether to enable automatic border detection in video stream.
Default value: false
acceptedPolygonConfidence
Specify the threshold confidence level when detecting boundaries. The value range is [0,100].
Default value: 80
autoCaptureDelay
Specify the delay for auto capture. The unit is millisecond.
Default value: 1000
maxFrameNumber
Specify the maximum number of frames detected per second.
Default value: 10