Resource Base
Table of contents

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

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support