We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6960925 commit 41b57aeCopy full SHA for 41b57ae
programming/features/barcode-scan-region.md
@@ -33,6 +33,20 @@ settings.roi.points[2] = {x:90, y:90};
33
settings.roi.points[3] = {x:10, y:90};
34
// Update the settings to a specific template.
35
await router.updateSettings("ReadSingleBarcode", settings);
36
+
37
+// Alternatively, you can set the scan region directly at the image source in a simpler way.
38
+// If you’re using Dynamsoft Camera Enhancer, the following example demonstrates
39
+// how to specify a single scan region without modifying the template.
40
41
+let cameraEnhancer = await Dynamsoft.DCE.CameraEnhancer.createInstance();
42
+cameraEnhancer.setScanRegion({
43
+ x: 10,
44
+ y: 10,
45
+ width: 80,
46
+ height: 80,
47
+ isMeasuredInPercentage: true,
48
+});
49
50
```
51
>
52
```c++
0 commit comments