Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 8ca63af

Browse files
author
Cube
authored
Merge pull request #6 from Dynamsoft/_dev
3.1.0
2 parents 54ae1f5 + 2530c4f commit 8ca63af

23 files changed

+231
-105
lines changed

Api Reference.url

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[InternetShortcut]
2-
URL=https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/api-reference/?ver=3.0.1
2+
URL=https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/api-reference/?ver=3.1.0

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ Allow your website to easily control cameras on desktop and mobile devices.
44

55
Once integrated, your users can open your website in a browser, access their cameras to stream live video and acquire realtime frames.
66

7-
In this guide, you will learn step by step on how to integrate this SDK into your website.
7+
> **Example Usage**
8+
>
9+
> See how Dynamsoft Camera Enhancer helps in camera control and video recognition:
10+
> - **Barcode scanning from video stream**: check [Dynamsoft Barcode Reader JS User Guide](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/?ver=latest)
11+
> - **MRZ scanning and OCR from video stream**: check [Dynamsoft Label Recognizer JS User Guide](https://www.dynamsoft.com/label-recognition/programming/javascript/user-guide.html?ver=latest&utm_source=dceguide)
12+
13+
In this guide, you will learn step by step on how to integrate the Dynamsoft Camera Enhancer SDK into your website.
814

915
**Table of Contents**
1016

@@ -17,12 +23,6 @@ In this guide, you will learn step by step on how to integrate this SDK into you
1723
* [Release Notes](#release-notes)
1824
* [Next Steps](#next-steps)
1925

20-
> **Example Usage**
21-
>
22-
> Read the user guide of Dynamsoft Label Recognizer on how DCE helps the SDK achieve video recognition:
23-
>
24-
> * [Dynamsoft Label Recognizer User Guide](https://www.dynamsoft.com/label-recognition/programming/javascript/user-guide.html?ver=latest&utm_source=dceguide)
25-
2626
## Getting Started
2727

2828
### Include the SDK
@@ -34,13 +34,13 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
3434
* jsDelivr
3535

3636
```html
37-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.0.1/dist/dce.js"></script>
37+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.1.0/dist/dce.js"></script>
3838
```
3939

4040
* UNPKG
4141

4242
```html
43-
<script src="https://unpkg.com/dynamsoft-camera-enhancer@3.0.1/dist/dce.js"></script>
43+
<script src="https://unpkg.com/dynamsoft-camera-enhancer@3.1.0/dist/dce.js"></script>
4444
```
4545

4646
#### Host the SDK yourself
@@ -68,7 +68,7 @@ The following shows a few ways to download the SDK.
6868
Depending on how you downloaded the SDK and where you put it. You can typically include it like this:
6969

7070
```html
71-
<script src="/dce-js-3.0.1/dist/dce.js"></script>
71+
<script src="/dce-js-3.1.0/dist/dce.js"></script>
7272
```
7373

7474
or
@@ -122,11 +122,10 @@ The built-in UI of the `CameraEnhancer` object is defined in the file `dist/dce.
122122
* Copy the file `dist/dce.ui.html` to your project, modify it and use the the API `defaultUIElementURL` to set it as the default UI.
123123

124124
```javascript
125+
// To make sure the following line takes effect, put it before the API `open()` is called.
125126
Dynamsoft.DCE.CameraEnhancer.defaultUIElementURL = "THE-URL-TO-THE-FILE";
126127
```
127128

128-
> You must set `defaultUIElementURL` before you call `createInstance()` .
129-
130129
* Append the default UI element to your page as shown in [Configure the CameraEnhancer object](#configure-the-cameraenhancer-object), customize it if necessary.
131130

132131
```html

dist/dbr.ui.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<select class="dce-sel-camera" style="display:block;"></select>
1818
<select class="dce-sel-resolution" style="display:block;margin-top:5px;">
1919
<option class="dce-opt-gotResolution" value="got"></option>
20-
<option data-width="3840" data-height="2160">3840x2160</option>
2120
<option data-width="1920" data-height="1080">1920x1080</option>
2221
<option data-width="1280" data-height="720">1280x720</option>
22+
<option data-width="640" data-height="480">640x480</option>
2323
</select>
2424
</div>
2525
<button class="dce-btn-close" style="position:absolute;right:0;top:0;">

dist/dce.esm.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dce.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dce.mjs

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

dist/dce.ui.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<select class="dce-sel-camera" style="display: block;"></select>
1818
<select class="dce-sel-resolution" style="display: block;margin-top: 5px;">
1919
<option class="dce-opt-gotResolution" value="got"></option>
20-
<option data-width="3840" data-height="2160">3840x2160</option>
2120
<option data-width="1920" data-height="1080">1920x1080</option>
2221
<option data-width="1280" data-height="720">1280x720</option>
2322
<option data-width="640" data-height="480">640x480</option>

dist/dlr.ui.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<select class="dce-sel-camera" style="display:block;"></select>
1010
<select class="dce-sel-resolution" style="display:block;margin-top:5px;">
1111
<option class="dce-opt-gotResolution" value="got"></option>
12-
<option data-width="3840" data-height="2160">3840x2160</option>
1312
<option data-width="1920" data-height="1080">1920x1080</option>
1413
<option data-width="1280" data-height="720">1280x720</option>
14+
<option data-width="640" data-height="480">640x480</option>
1515
</select>
1616
<select class="dlr-sel-minletter" style="display:block;margin-top:5px;"></select>
1717
</div>

0 commit comments

Comments
 (0)