Skip to content

Commit b5420d3

Browse files
committed
change template
1 parent 8d22296 commit b5420d3

File tree

14 files changed

+29
-28
lines changed

14 files changed

+29
-28
lines changed

foundational-api-samples/hello-world/angular/src/app/video-capture/video-capture.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ export class VideoCaptureComponent {
7171
throw Error(componentDestroyedErrorMsg);
7272
}
7373

74-
// Open camera and start scanning single barcode.
74+
// Open camera and start scanning barcode.
7575
await this.cameraEnhancer.open();
7676
cameraView.setScanLaserVisible(true);
7777
if (this.isDestroyed) {
7878
throw Error(componentDestroyedErrorMsg);
7979
}
80-
await this.cvRouter.startCapturing('ReadSingleBarcode');
80+
await this.cvRouter.startCapturing('ReadBarcodes_SpeedFirst');
8181
if (this.isDestroyed) {
8282
throw Error(componentDestroyedErrorMsg);
8383
}

foundational-api-samples/hello-world/blazor/hello-world-blazor/BlazorApp/wwwroot/decodeVideo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ window.startVideoDecode = async () => {
3535
filter.enableResultDeduplication("barcode", true);
3636
await cvRouter.addResultFilter(filter);
3737

38-
// Open camera and start scanning single barcode.
38+
// Open camera and start scanning barcode.
3939
await cameraEnhancer.open();
4040

4141
cameraView.setScanLaserVisible(true);
42-
await cvRouter.startCapturing("ReadSingleBarcode");
42+
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
4343
} catch (ex) {
4444
let errMsg = ex.message || ex;
4545
console.error(errMsg);

foundational-api-samples/hello-world/electron/action.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ Dynamsoft.Core.CoreModule.loadWasm(["DBR"]);
6464
filter.enableResultDeduplication("barcode", true);
6565
await cvRouter.addResultFilter(filter);
6666

67-
// Open camera and start scanning single barcode.
67+
// Open camera and start scanning barcode.
6868
await cameraEnhancer.open();
6969
cameraView.setScanLaserVisible(true);
70-
await cvRouter.startCapturing("ReadSingleBarcode");
70+
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
7171
} catch (ex) {
7272
let errMsg = ex.message || ex;
7373
console.error(errMsg);

foundational-api-samples/hello-world/es6.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ <h1>Hello World for ES6 (Decode via Camera)</h1>
7575
filter.enableResultDeduplication("barcode", true);
7676
await cvRouter.addResultFilter(filter);
7777

78-
// Open camera and start scanning single barcode.
78+
// Open camera and start scanning barcode.
7979
await cameraEnhancer.open();
8080
cameraView.setScanLaserVisible(true);
81-
await cvRouter.startCapturing("ReadSingleBarcode");
81+
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
8282
} catch (ex) {
8383
let errMsg = ex.message || ex;
8484
console.error(errMsg);

foundational-api-samples/hello-world/hello-world.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ <h1>Hello World (Decode via Camera)</h1>
1515
Results:<br />
1616
<div id="results" style="width: 100%; height: 10vh; overflow: auto; white-space: pre-wrap"></div>
1717
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.4.3100/dist/dbr.bundle.js"></script>
18+
<script src="."></script>
1819
<script>
1920
/** LICENSE ALERT - README
2021
* 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>
6869
filter.enableResultDeduplication("barcode", true);
6970
await cvRouter.addResultFilter(filter);
7071

71-
// Open camera and start scanning single barcode.
72+
// Open camera and start scanning barcode.
7273
await cameraEnhancer.open();
7374
cameraView.setScanLaserVisible(true);
74-
await cvRouter.startCapturing("ReadSingleBarcode");
75+
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
7576
} catch (ex) {
7677
let errMsg = ex.message || ex;
7778
console.error(errMsg);

foundational-api-samples/hello-world/native-ts/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ let cvRouter: CaptureVisionRouter;
6262
filter.enableResultDeduplication("barcode", true);
6363
await cvRouter.addResultFilter(filter);
6464

65-
// Open camera and start scanning single barcode.
65+
// Open camera and start scanning barcode.
6666
await cameraEnhancer.open();
6767
cameraView.setScanLaserVisible(true);
68-
await cvRouter.startCapturing("ReadSingleBarcode");
68+
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
6969
} catch (ex: any) {
7070
let errMsg = ex.message || ex;
7171
console.error(errMsg);

foundational-api-samples/hello-world/next/components/VideoCapture/VideoCapture.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ function VideoCapture() {
6868
throw Error(componentDestroyedErrorMsg);
6969
}
7070

71-
// Open camera and start scanning single barcode.
71+
// Open camera and start scanning barcode.
7272
await cameraEnhancer.open();
7373
cameraView.setScanLaserVisible(true);
7474
if (isDestroyed) {
7575
throw Error(componentDestroyedErrorMsg);
7676
}
77-
await cvRouter.startCapturing("ReadSingleBarcode");
77+
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
7878
if (isDestroyed) {
7979
throw Error(componentDestroyedErrorMsg);
8080
}

foundational-api-samples/hello-world/nuxt/components/VideoCapture.client.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ onMounted(async () => {
5757
await cvRouter.addResultFilter(filter);
5858
if (isDestroyed) { throw Error(componentDestroyedErrorMsg); }
5959
60-
// Open camera and start scanning single barcode.
60+
// Open camera and start scanning barcode.
6161
await cameraEnhancer.open();
6262
cameraView.setScanLaserVisible(true);
6363
if (isDestroyed) { throw Error(componentDestroyedErrorMsg); }
64-
await cvRouter.startCapturing("ReadSingleBarcode");
64+
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
6565
if (isDestroyed) { throw Error(componentDestroyedErrorMsg); }
6666
6767
} catch (ex: any) {

foundational-api-samples/hello-world/pwa/helloworld-pwa.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ <h1>Hello World for PWA</h1>
8080
filter.enableResultDeduplication("barcode", true);
8181
await cvRouter.addResultFilter(filter);
8282

83-
// Open camera and start scanning single barcode.
83+
// Open camera and start scanning barcode.
8484
await cameraEnhancer.open();
8585
cameraView.setScanLaserVisible(true);
86-
await cvRouter.startCapturing("ReadSingleBarcode");
86+
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
8787
} catch (ex) {
8888
let errMsg = ex.message || ex;
8989
console.error(errMsg);

foundational-api-samples/hello-world/react-hooks/src/components/VideoCapture/VideoCapture.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ function VideoCapture() {
6969
throw Error(componentDestroyedErrorMsg);
7070
}
7171

72-
// Open camera and start scanning single barcode.
72+
// Open camera and start scanning barcode.
7373
await cameraEnhancer.open();
7474
cameraView.setScanLaserVisible(true);
7575
if (isDestroyed) {
7676
throw Error(componentDestroyedErrorMsg);
7777
}
78-
await cvRouter.startCapturing("ReadSingleBarcode");
78+
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
7979
if (isDestroyed) {
8080
throw Error(componentDestroyedErrorMsg);
8181
}

0 commit comments

Comments
 (0)