File tree Expand file tree Collapse file tree 14 files changed +29
-28
lines changed
foundational-api-samples/hello-world
angular/src/app/video-capture
blazor/hello-world-blazor/BlazorApp/wwwroot
next/components/VideoCapture
react-hooks/src/components/VideoCapture
react/src/components/VideoCapture Expand file tree Collapse file tree 14 files changed +29
-28
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,13 @@ export class VideoCaptureComponent {
71
71
throw Error ( componentDestroyedErrorMsg ) ;
72
72
}
73
73
74
- // Open camera and start scanning single barcode.
74
+ // Open camera and start scanning barcode.
75
75
await this . cameraEnhancer . open ( ) ;
76
76
cameraView . setScanLaserVisible ( true ) ;
77
77
if ( this . isDestroyed ) {
78
78
throw Error ( componentDestroyedErrorMsg ) ;
79
79
}
80
- await this . cvRouter . startCapturing ( 'ReadSingleBarcode ' ) ;
80
+ await this . cvRouter . startCapturing ( 'ReadBarcodes_SpeedFirst ' ) ;
81
81
if ( this . isDestroyed ) {
82
82
throw Error ( componentDestroyedErrorMsg ) ;
83
83
}
Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ window.startVideoDecode = async () => {
35
35
filter . enableResultDeduplication ( "barcode" , true ) ;
36
36
await cvRouter . addResultFilter ( filter ) ;
37
37
38
- // Open camera and start scanning single barcode.
38
+ // Open camera and start scanning barcode.
39
39
await cameraEnhancer . open ( ) ;
40
40
41
41
cameraView . setScanLaserVisible ( true ) ;
42
- await cvRouter . startCapturing ( "ReadSingleBarcode " ) ;
42
+ await cvRouter . startCapturing ( "ReadBarcodes_SpeedFirst " ) ;
43
43
} catch ( ex ) {
44
44
let errMsg = ex . message || ex ;
45
45
console . error ( errMsg ) ;
Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ Dynamsoft.Core.CoreModule.loadWasm(["DBR"]);
64
64
filter . enableResultDeduplication ( "barcode" , true ) ;
65
65
await cvRouter . addResultFilter ( filter ) ;
66
66
67
- // Open camera and start scanning single barcode.
67
+ // Open camera and start scanning barcode.
68
68
await cameraEnhancer . open ( ) ;
69
69
cameraView . setScanLaserVisible ( true ) ;
70
- await cvRouter . startCapturing ( "ReadSingleBarcode " ) ;
70
+ await cvRouter . startCapturing ( "ReadBarcodes_SpeedFirst " ) ;
71
71
} catch ( ex ) {
72
72
let errMsg = ex . message || ex ;
73
73
console . error ( errMsg ) ;
Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ <h1>Hello World for ES6 (Decode via Camera)</h1>
75
75
filter . enableResultDeduplication ( "barcode" , true ) ;
76
76
await cvRouter . addResultFilter ( filter ) ;
77
77
78
- // Open camera and start scanning single barcode.
78
+ // Open camera and start scanning barcode.
79
79
await cameraEnhancer . open ( ) ;
80
80
cameraView . setScanLaserVisible ( true ) ;
81
- await cvRouter . startCapturing ( "ReadSingleBarcode " ) ;
81
+ await cvRouter . startCapturing ( "ReadBarcodes_SpeedFirst " ) ;
82
82
} catch ( ex ) {
83
83
let errMsg = ex . message || ex ;
84
84
console . error ( errMsg ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ <h1>Hello World (Decode via Camera)</h1>
15
15
Results:< br />
16
16
< div id ="results " style ="width: 100%; height: 10vh; overflow: auto; white-space: pre-wrap "> </ div >
17
17
< script src ="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.4.3100/dist/dbr.bundle.js "> </ script >
18
+ < script src =". "> </ script >
18
19
< script >
19
20
/** LICENSE ALERT - README
20
21
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
@@ -68,10 +69,10 @@ <h1>Hello World (Decode via Camera)</h1>
68
69
filter . enableResultDeduplication ( "barcode" , true ) ;
69
70
await cvRouter . addResultFilter ( filter ) ;
70
71
71
- // Open camera and start scanning single barcode.
72
+ // Open camera and start scanning barcode.
72
73
await cameraEnhancer . open ( ) ;
73
74
cameraView . setScanLaserVisible ( true ) ;
74
- await cvRouter . startCapturing ( "ReadSingleBarcode " ) ;
75
+ await cvRouter . startCapturing ( "ReadBarcodes_SpeedFirst " ) ;
75
76
} catch ( ex ) {
76
77
let errMsg = ex . message || ex ;
77
78
console . error ( errMsg ) ;
Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ let cvRouter: CaptureVisionRouter;
62
62
filter . enableResultDeduplication ( "barcode" , true ) ;
63
63
await cvRouter . addResultFilter ( filter ) ;
64
64
65
- // Open camera and start scanning single barcode.
65
+ // Open camera and start scanning barcode.
66
66
await cameraEnhancer . open ( ) ;
67
67
cameraView . setScanLaserVisible ( true ) ;
68
- await cvRouter . startCapturing ( "ReadSingleBarcode " ) ;
68
+ await cvRouter . startCapturing ( "ReadBarcodes_SpeedFirst " ) ;
69
69
} catch ( ex : any ) {
70
70
let errMsg = ex . message || ex ;
71
71
console . error ( errMsg ) ;
Original file line number Diff line number Diff line change @@ -68,13 +68,13 @@ function VideoCapture() {
68
68
throw Error ( componentDestroyedErrorMsg ) ;
69
69
}
70
70
71
- // Open camera and start scanning single barcode.
71
+ // Open camera and start scanning barcode.
72
72
await cameraEnhancer . open ( ) ;
73
73
cameraView . setScanLaserVisible ( true ) ;
74
74
if ( isDestroyed ) {
75
75
throw Error ( componentDestroyedErrorMsg ) ;
76
76
}
77
- await cvRouter . startCapturing ( "ReadSingleBarcode " ) ;
77
+ await cvRouter . startCapturing ( "ReadBarcodes_SpeedFirst " ) ;
78
78
if ( isDestroyed ) {
79
79
throw Error ( componentDestroyedErrorMsg ) ;
80
80
}
Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ onMounted(async () => {
57
57
await cvRouter .addResultFilter (filter );
58
58
if (isDestroyed ) { throw Error (componentDestroyedErrorMsg ); }
59
59
60
- // Open camera and start scanning single barcode.
60
+ // Open camera and start scanning barcode.
61
61
await cameraEnhancer .open ();
62
62
cameraView .setScanLaserVisible (true );
63
63
if (isDestroyed ) { throw Error (componentDestroyedErrorMsg ); }
64
- await cvRouter .startCapturing (" ReadSingleBarcode " );
64
+ await cvRouter .startCapturing (" ReadBarcodes_SpeedFirst " );
65
65
if (isDestroyed ) { throw Error (componentDestroyedErrorMsg ); }
66
66
67
67
} catch (ex : any ) {
Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ <h1>Hello World for PWA</h1>
80
80
filter . enableResultDeduplication ( "barcode" , true ) ;
81
81
await cvRouter . addResultFilter ( filter ) ;
82
82
83
- // Open camera and start scanning single barcode.
83
+ // Open camera and start scanning barcode.
84
84
await cameraEnhancer . open ( ) ;
85
85
cameraView . setScanLaserVisible ( true ) ;
86
- await cvRouter . startCapturing ( "ReadSingleBarcode " ) ;
86
+ await cvRouter . startCapturing ( "ReadBarcodes_SpeedFirst " ) ;
87
87
} catch ( ex ) {
88
88
let errMsg = ex . message || ex ;
89
89
console . error ( errMsg ) ;
Original file line number Diff line number Diff line change @@ -69,13 +69,13 @@ function VideoCapture() {
69
69
throw Error ( componentDestroyedErrorMsg ) ;
70
70
}
71
71
72
- // Open camera and start scanning single barcode.
72
+ // Open camera and start scanning barcode.
73
73
await cameraEnhancer . open ( ) ;
74
74
cameraView . setScanLaserVisible ( true ) ;
75
75
if ( isDestroyed ) {
76
76
throw Error ( componentDestroyedErrorMsg ) ;
77
77
}
78
- await cvRouter . startCapturing ( "ReadSingleBarcode " ) ;
78
+ await cvRouter . startCapturing ( "ReadBarcodes_SpeedFirst " ) ;
79
79
if ( isDestroyed ) {
80
80
throw Error ( componentDestroyedErrorMsg ) ;
81
81
}
You can’t perform that action at this time.
0 commit comments