Skip to content

Commit 59899a7

Browse files
committed
missing settings related samples updates and comments on how to use (license, etc.)
1 parent a28802e commit 59899a7

21 files changed

+509
-456
lines changed

1.hello-world/3.read-video-angular/src/app/hello-world/hello-world.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="helloWorld">
2-
<h2>Hello World Sample for Angular<img style="height: 25px;" alt="logo"
2+
<h2>Hello World for Angular<img style="height: 25px;" alt="logo"
33
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==" />
44
</h2>
55
<input type="text" [value]="resultValue" readonly="true" class="latest-result" placeholder="The Last Read Barcode">

1.hello-world/4.read-video-react/src/components/HelloWorld.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class HelloWorld extends React.Component {
6565
render() {
6666
return (
6767
<div className="helloWorld">
68-
<h2>Hello World Sample for React<img src={reactLogo} className="App-logo" alt="logo" /></h2>
68+
<h2>Hello World for React<img src={reactLogo} className="App-logo" alt="logo" /></h2>
6969
<input type="text" value={this.state.resultValue} readOnly={true} className="latest-result" placeholder="The Last Read Barcode" />
7070
<div id="UIElement">
7171
{!this.state.libLoaded ? (<span style={{ fontSize: "x-large" }}>Loading Library...</span>) : ""}

1.hello-world/5.read-video-vue/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div id="app">
3-
<HelloWorld msg="Hello World Sample for Vue" />
3+
<HelloWorld msg="Hello World for Vue" />
44
</div>
55
</template>
66

1.hello-world/index.html

Lines changed: 37 additions & 45 deletions
Large diffs are not rendered by default.

1.hello-world/2.read-video-show-result.html renamed to 2.ui-tweaking/1.read-video-show-result.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<body>
2222
<button id="backToNormal" hidden>Exit</button>
23-
<h2>Read Video Stream</h2>
23+
<h2>Use Default Camera UI</h2>
2424
<input type="text" id="result" title="Double click to clear!" readonly="true" class="latest-result"
2525
placeholder="The Last Read Barcode">
2626
<div id="UIElement">
@@ -41,7 +41,7 @@ <h2>Read Video Stream</h2>
4141
* When hosting the sample in your own environment, please obtain a private trial license or a full license by contacting the
4242
* Dynamsoft Support Team via support@dynamsoft.com
4343
*/
44-
Dynamsoft.DBR.BarcodeReader.organizationID = "200001";
44+
Dynamsoft.DBR.BarcodeReader.organizationID = "100448235";
4545
document.getElementById('lib-load').hidden = false;
4646
await Dynamsoft.DBR.BarcodeReader.loadWasm();
4747
startBarcodeScanner();
File renamed without changes.

2.ui-tweaking/2.read-video-with-external-control.html renamed to 2.ui-tweaking/3.read-video-with-external-control.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,21 @@
2727
<option class="dbrScanner-opt-gotResolution">got 1280x720
2828
</option>
2929
<option>3840 x 2160</option>
30+
<option>2160 x 3840</option>
3031
<option>2560 x 1440</option>
32+
<option>1440 x 2560</option>
3133
<option>1920 x 1080</option>
34+
<option>1080 x 1920</option>
3235
<option>1600 x 1200</option>
36+
<option>1200 x 1600</option>
3337
<option>1280 x 720</option>
38+
<option>720 x 1280</option>
3439
<option>800 x 600</option>
40+
<option>600 x 800</option>
3541
<option>640 x 480</option>
42+
<option>480 x 640</option>
3643
<option>640 x 360</option>
44+
<option>360 x 640</option>
3745
</select><br /><br />
3846
<button id="toggleScanLight">Toggle Laser</button>
3947
<button id="toggleScanRect">Toggle Search Area</button>
@@ -150,6 +158,17 @@
150158
let opt = new Option(camera.label, camera.deviceId);
151159
cameraList.options.add(opt);
152160
}
161+
scanner.getCurrentCamera()
162+
.then(
163+
camera => {
164+
cameraList.value = camera.deviceId;
165+
currentRes = scanner.getResolution();
166+
updateCurrentResolution({
167+
width: currentRes[0],
168+
height: currentRes[1]
169+
});
170+
}
171+
);
153172
}
154173
);
155174
}
File renamed without changes.

0 commit comments

Comments
 (0)