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
{{ message }}
This repository was archived by the owner on Nov 5, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+37-23Lines changed: 37 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -7,21 +7,31 @@ Once integrated, your users can open your website in a browser, access their cam
7
7
> **Example Usage**
8
8
>
9
9
> See how Dynamsoft Camera Enhancer helps in camera control and video recognition:
10
+
>
10
11
> -**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
12
> -**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
13
14
In this guide, you will learn step by step on how to integrate the Dynamsoft Camera Enhancer SDK into your website.
14
15
15
-
**Table of Contents**
16
-
17
-
*[Getting Started](#getting-started)
18
-
*[Include the SDK](#include-the-sdk)
19
-
*[Interact with the SDK](#interact-with-the-sdk)
20
-
*[Hosting the SDK](#hosting-the-sdk)
21
-
*[FAQ](#faq)
22
-
*[API Documentation](#api-documentation)
23
-
*[Release Notes](#release-notes)
24
-
*[Next Steps](#next-steps)
16
+
-[Dynamsoft Camera Enhancer for Your Website](#dynamsoft-camera-enhancer-for-your-website)
17
+
-[Getting Started](#getting-started)
18
+
-[Include the SDK](#include-the-sdk)
19
+
-[Use a CDN](#use-a-cdn)
20
+
-[Host the SDK yourself](#host-the-sdk-yourself)
21
+
-[Interact with the SDK](#interact-with-the-sdk)
22
+
-[Create a `CameraEnhancer` object](#create-a-cameraenhancer-object)
23
+
-[Configure the `CameraEnhancer` object](#configure-the-cameraenhancer-object)
24
+
-[Customize the UI](#customize-the-ui)
25
+
-[Hosting the SDK](#hosting-the-sdk)
26
+
-[Step One: Deploy the dist folder](#step-one-deploy-the-dist-folder)
27
+
-[Step Two: Configure the Server](#step-two-configure-the-server)
28
+
-[Step Three: Include the SDK from the server](#step-three-include-the-sdk-from-the-server)
29
+
-[FAQ](#faq)
30
+
-[Can I open the web page directly from the hard drive?](#can-i-open-the-web-page-directly-from-the-hard-drive)
31
+
-[Why can't I use my camera?](#why-cant-i-use-my-camera)
32
+
-[API Documentation](#api-documentation)
33
+
-[Release Notes](#release-notes)
34
+
-[Next Steps](#next-steps)
25
35
26
36
## Getting Started
27
37
@@ -31,35 +41,37 @@ In this guide, you will learn step by step on how to integrate the Dynamsoft Cam
31
41
32
42
The simplest way to include the SDK is to use either the [jsDelivr](https://jsdelivr.com/) or [UNPKG](https://unpkg.com/) CDN.
> In some rare cases, you might not be able to access the CDN. If this happens, you can use [https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.2.0/dist/dce.js](https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.2.0/dist/dce.js)
57
+
46
58
#### Host the SDK yourself
47
59
48
60
Besides using the CDN, you can also download the SDK and host it locally.
49
61
50
62
The following shows a few ways to download the SDK.
51
63
52
-
* From the website
64
+
- From the website
53
65
54
66
[Download the JavaScript Package](https://www.dynamsoft.com/camera-enhancer/downloads/1000021-confirmation/?utm_source=github)
55
67
56
-
* yarn
68
+
- yarn
57
69
58
70
```cmd
59
71
yarn add dynamsoft-camera-enhancer
60
72
```
61
73
62
-
* npm
74
+
- npm
63
75
64
76
```cmd
65
77
npm install dynamsoft-camera-enhancer --save
@@ -68,7 +80,7 @@ The following shows a few ways to download the SDK.
68
80
Depending on how you downloaded the SDK and where you put it. You can typically include it like this:
69
81
70
82
```html
71
-
<scriptsrc="/dce-js-3.1.0/dist/dce.js"></script>
83
+
<scriptsrc="/dce-js-3.2.0/dist/dce.js"></script>
72
84
```
73
85
74
86
or
@@ -105,8 +117,9 @@ As shown in the code snippet below, before opening the video stream, we need to
105
117
<script>
106
118
(async () => {
107
119
let enhancer =awaitDynamsoft.DCE.CameraEnhancer.createInstance();
> By default, only 4 hard-coded resolutions (3840 x 2160, 1920 x 1080, 1280 x 720, 640 x 480), are populated as options. You can show a customized set of options by hardcoding them.
190
+
> By default, only 3 hard-coded resolutions (1920 x 1080, 1280 x 720, 640 x 480), are populated as options. You can show a customized set of options by hardcoding them.
0 commit comments