Notice: This documentation is archived. For the latest product features and documentation, please visit Dynamsoft Capture Vision Documentation.
UI Control
API Name | Description |
---|---|
defaultUIElementURL | Returns or sets the URL of the .html file that defines the default UI Element. |
highlightFillStyle | Specifies the color used inside the shape which highlights a found line of text. |
highlightStrokeStyle | Specifies the color used to paint the outline of the shape which highlights a found line of text. |
highlightLineWidth | Specifies the line width of the outline of the shape which highlights a found line of text. |
defaultUIElementURL
Returns or sets the URL of the .html file that defines the default UI Element. The URL can only be set before the API createInstance is called.
static defaultUIElementURL: string
Code Snippet
// Dynamsoft.DLR.LabelRecognizer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-label-recognizer@2.2.1/dist/dlr.ui.html";
let cameraEnhancer = await Dynamsoft.DCE.CameraEnhancer.createInstance();
await cameraEnhancer.setUIElement(Dynamsoft.DLR.LabelRecognizer.defaultUIElementURL);
recognizer.setImageSource(enhancer);
let recognizer = await Dynamsoft.DLR.LabelRecognizer.createInstance({
runtimeSettings: "video-passportMRZ"
});
await recognizer.startScanning();
highlightFillStyle
Specifies the color used inside the shape which highlights a found line of text. The default value is rgba(254, 180, 32, 0.3)
.
highlightFillStyle: string
highlightStrokeStyle
Specifies the color used to paint the outline of the shape which highlights a found line of text. The default value is rgba(254, 180, 32, 0.9)
.
highlightStrokeStyle: string
highlightLineWidth
Specifies the line width of the outline of the shape which highlights a found line of text. The default value is 1
.
highlightLineWidth: number