You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hello-world/angular/README.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ ng generate component video-capture
118
118
></div>
119
119
<br />
120
120
Results:
121
-
<div#resultsclass="results"></div>
121
+
<divclass="results">{{resultText}}</div>
122
122
```
123
123
124
124
* In `video-capture.component.ts`, add code for initializing and destroying some instances. For our stylesheet (CSS) specification, please refer to our [source code](#Official-Sample).
@@ -200,6 +200,7 @@ export class VideoCaptureComponent {
200
200
201
201
// Open camera and start scanning single barcode.
202
202
awaitthis.cameraEnhancer.open();
203
+
cameraView.setScanLaserVisible(true);
203
204
if (this.isDestroyed) {
204
205
throwError(componentDestroyedErrorMsg);
205
206
}
@@ -235,7 +236,7 @@ export class VideoCaptureComponent {
235
236
```
236
237
> Note:
237
238
>
238
-
> If you're looking to customize the UI, the UI customization feature are provided by the auxiliary SDK "Dynamsoft Camera Enhancer". For more details, refer to our [User Guide](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/index.html#customize-the-ui)
239
+
> If you're looking to customize the UI, the UI customization feature are provided by the auxiliary SDK "Dynamsoft Camera Enhancer". For more details, refer to our [User Guide](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/index.html#customizing-the-ui)
239
240
240
241
241
242
### Generate and edit the `image-capture` component
@@ -259,7 +260,7 @@ ng generate component image-capture
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
294
-
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
295
-
* For more information, see https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/index.html?ver=10.4.2002&cVer=true#specify-the-license&utm_source=samples or contact support@dynamsoft.com.
296
-
* LICENSE ALERT - THE END
297
-
*/
298
-
299
-
// Optional. Used to load wasm resources in advance, reducing latency between video playing and barcode decoding.
300
-
Dynamsoft.Core.CoreModule.loadWasm(["DBR"]);
301
-
302
-
// Defined globally for easy debugging.
303
-
let cameraEnhancer, cvRouter;
304
-
let videoModuleLoaded =false;
305
-
let imageModuleLoaded =false;
306
-
307
-
// Lazy load Decode video module until needed
308
-
asyncfunctionloadDecodeVideoModule() {
309
-
if (!videoModuleLoaded) {
310
-
awaitimport('./decodeVideo.js');
311
-
videoModuleLoaded =true;
312
-
}
288
+
/** LICENSE ALERT - README
289
+
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
295
+
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
296
+
* For more information, see https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/index.html?ver=10.4.2002&cVer=true#specify-the-license&utm_source=samples or contact support@dynamsoft.com.
297
+
* LICENSE ALERT - THE END
298
+
*/
299
+
300
+
// Optional. Used to load wasm resources in advance, reducing latency between video playing and barcode decoding.
0 commit comments