Skip to content

Commit

Permalink
update to mobile-web-capture 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellie-dynamsoft committed May 23, 2024
1 parent 0b5ecf8 commit fb86f73
Show file tree
Hide file tree
Showing 12 changed files with 93 additions and 25 deletions.
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@
[Mobile Web Capture](https://www.dynamsoft.com/use-cases/mobile-web-capture-sdk/?utm_content=nav-solutions) is a solution designed for iOS and Android browsers. It helps developers to build document scanning web applications for mobile users to load, edit, save, and capture images from the camera right in mobile browsers.


Featured Products:

- [Dynamsoft Document Viewer](https://www.dynamsoft.com/document-viewer/docs/introduction/index.html)
- [Dynamsoft Document Normalizer](https://www.dynamsoft.com/document-normalizer/docs/web/programming/javascript/)


<span style="font-size:20px">Table of Contents</span>

- [Samples](#samples)
- [License Key](#license-key)
- [System Requirements](#system-requirements)
- [Documentation](#documentation)
- [Release Notes](#release-notes)
- [Featured Products](#featured-products)

## Samples

Expand All @@ -36,7 +31,7 @@ Featured Products:
The following code snippet is using the public trial license to initialize the license. You can replace the public trial license with your own license key.

```typescript
await Dynamsoft.License.LicenseManager.initLicense("DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTEwMjQ5NjE5NyJ9", true);// Replase license here
await Dynamsoft.License.LicenseManager.initLicense("DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTEwMjQ5NjE5NyJ9", true); // Replace license here
```

## System Requirements
Expand All @@ -57,6 +52,19 @@ Mobile Web Capture requires the following features to work:

The above four features are required for the SDK to work.

*Note*:

If you open the web page as `file:///` or `http://` , the camera may not work correctly because the API <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia" title="getUserMedia">getUserMedia</a> usually requires HTTPS to access the camera.

To make sure your web application can access the camera, please configure your web server to support HTTPS. The following links may help.

1. NGINX: <a target="_blank" href="https://nginx.org/en/docs/http/configuring_https_servers.html" title="Configuring HTTPS servers">Configuring HTTPS servers</a>
2. IIS: <a target="_blank" href="https://aboutssl.org/how-to-create-a-self-signed-certificate-in-iis/" title="Create a Self Signed Certificate in IIS">Create a Self Signed Certificate in IIS</a>
3. Tomcat: <a target="_blank" href="https://dzone.com/articles/setting-ssl-tomcat-5-minutes" title="Setting Up SSL on Tomcat in 5 minutes">Setting Up SSL on Tomcat in 5 minutes</a>
4. Node.js: <a target="_blank" href="https://nodejs.org/docs/v0.4.1/api/tls.html" title="npm tls">npm tls</a>

If the test doesn't go as expected, you can [contact us](https://www.dynamsoft.com/contact/).

### Supported Browsers

The following table is a list of supported browsers based on the above requirements:
Expand All @@ -78,3 +86,7 @@ You can check out the detailed documentation of the solution [here](https://www.

Check out the [release notes](https://www.dynamsoft.com/mobile-web-capture/docs/releasenotes/index.html).

## Featured Products

- [Dynamsoft Document Viewer](https://www.dynamsoft.com/document-viewer/docs/introduction/index.html)
- [Dynamsoft Document Normalizer](https://www.dynamsoft.com/document-normalizer/docs/web/programming/javascript/)
11 changes: 11 additions & 0 deletions samples/capture-continuously-edit-result-images/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,23 @@
// Preload DDV Resource
Dynamsoft.DDV.Core.loadWasm();

/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
*/

// Initialize DDN license
await Dynamsoft.License.LicenseManager.initLicense(
"DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLXIxNzAzODM5ODkwIiwibWFpblNlcnZlclVSTCI6Imh0dHBzOi8vbWx0cy5keW5hbXNvZnQuY29tLyIsIm9yZ2FuaXphdGlvbklEIjoiMjAwMDAwIiwic3RhbmRieVNlcnZlclVSTCI6Imh0dHBzOi8vc2x0cy5keW5hbXNvZnQuY29tLyIsImNoZWNrQ29kZSI6MTgyNTQ5Njk4NH0=",
true
);

/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense/?product=mwc to get your own trial license good for 30 days.
* 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.
* For more information, see https://www.dynamsoft.com/mobile-web-capture/docs/gettingstarted/license.html or contact [email protected].
* LICENSE ALERT - THE END
*/

updateLoadingText("Loading DDV library...");
// Preload DDN Resource
Dynamsoft.Core.CoreModule.loadWasm(["DDN"]);
Expand Down
11 changes: 11 additions & 0 deletions samples/detect-boundaries-on-existing-images/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,23 @@
// Preload DDV Resource
Dynamsoft.DDV.Core.loadWasm();

/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
*/

// Initialize DDN license
await Dynamsoft.License.LicenseManager.initLicense(
"DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLXIxNzAzODM5ODkwIiwibWFpblNlcnZlclVSTCI6Imh0dHBzOi8vbWx0cy5keW5hbXNvZnQuY29tLyIsIm9yZ2FuaXphdGlvbklEIjoiMjAwMDAwIiwic3RhbmRieVNlcnZlclVSTCI6Imh0dHBzOi8vc2x0cy5keW5hbXNvZnQuY29tLyIsImNoZWNrQ29kZSI6MTgyNTQ5Njk4NH0=",
true
);

/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense/?product=mwc to get your own trial license good for 30 days.
* 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.
* For more information, see https://www.dynamsoft.com/mobile-web-capture/docs/gettingstarted/license.html or contact [email protected].
* LICENSE ALERT - THE END
*/

updateLoadingText("Loading DDV library...");
// Preload DDN Resource
Dynamsoft.Core.CoreModule.loadWasm(["DDN"]);
Expand Down
3 changes: 2 additions & 1 deletion samples/hello-world/hello-world-angular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ Environment: Node.js v18.14.0

## Build

Run `npm build` to build the project. The build artifacts will be stored in the `build/` directory.
Run `npm run build` to build the project. The build artifacts will be stored in the `build/` directory.
It correctly bundles Angular in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

10 changes: 5 additions & 5 deletions samples/hello-world/hello-world-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"@angular/platform-browser": "^17.0.0",
"@angular/platform-browser-dynamic": "^17.0.0",
"@angular/router": "^17.0.0",
"dynamsoft-capture-vision-router": "^2.0.30",
"dynamsoft-core": "^3.0.30",
"dynamsoft-document-normalizer": "^2.0.20",
"dynamsoft-document-viewer": "^1.1.0",
"dynamsoft-license": "^3.0.20",
"dynamsoft-capture-vision-router": "2.0.30",
"dynamsoft-core": "3.0.30",
"dynamsoft-document-normalizer": "2.0.20",
"dynamsoft-document-viewer": "1.1.0",
"dynamsoft-license": "3.0.20",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.14.2"
Expand Down
2 changes: 1 addition & 1 deletion samples/hello-world/hello-world-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Environment: Node.js v18.14.0

## Build

Run `npm build` to build the project. The build artifacts will be stored in the `build/` directory.
Run `npm run build` to build the project. The build artifacts will be stored in the `build/` directory.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Expand Down
10 changes: 5 additions & 5 deletions samples/hello-world/hello-world-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"dynamsoft-capture-vision-router": "^2.0.30",
"dynamsoft-core": "^3.0.30",
"dynamsoft-document-normalizer": "^2.0.20",
"dynamsoft-document-viewer": "^1.1.0",
"dynamsoft-license": "^3.0.20",
"dynamsoft-capture-vision-router": "2.0.30",
"dynamsoft-core": "3.0.30",
"dynamsoft-document-normalizer": "2.0.20",
"dynamsoft-document-viewer": "1.1.0",
"dynamsoft-license": "3.0.20",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion samples/hello-world/hello-world-vue3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Environment: Node.js v18.14.0

## Build

Run `npm build` to build the project. The build artifacts will be stored in the `build/` directory.
Run `npm run build` to build the project. The build artifacts will be stored in the `build/` directory.
It correctly bundles Vue in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Expand Down
10 changes: 5 additions & 5 deletions samples/hello-world/hello-world-vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"format": "prettier --write src/"
},
"dependencies": {
"dynamsoft-capture-vision-router": "^2.0.30",
"dynamsoft-core": "^3.0.30",
"dynamsoft-document-normalizer": "^2.0.20",
"dynamsoft-document-viewer": "^1.1.0",
"dynamsoft-license": "^3.0.20",
"dynamsoft-capture-vision-router": "2.0.30",
"dynamsoft-core": "3.0.30",
"dynamsoft-document-normalizer": "2.0.20",
"dynamsoft-document-viewer": "1.1.0",
"dynamsoft-license": "3.0.20",
"vue": "^3.3.10"
},
"devDependencies": {
Expand Down
11 changes: 11 additions & 0 deletions samples/hello-world/hello-world/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,23 @@
// Preload DDV Resource
Dynamsoft.DDV.Core.loadWasm();

/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
*/

// Initialize DDN license
await Dynamsoft.License.LicenseManager.initLicense(
"DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLXIxNzAzODM5ODkwIiwibWFpblNlcnZlclVSTCI6Imh0dHBzOi8vbWx0cy5keW5hbXNvZnQuY29tLyIsIm9yZ2FuaXphdGlvbklEIjoiMjAwMDAwIiwic3RhbmRieVNlcnZlclVSTCI6Imh0dHBzOi8vc2x0cy5keW5hbXNvZnQuY29tLyIsImNoZWNrQ29kZSI6MTgyNTQ5Njk4NH0=",
true
);

/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense/?product=mwc to get your own trial license good for 30 days.
* 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.
* For more information, see https://www.dynamsoft.com/mobile-web-capture/docs/gettingstarted/license.html or contact [email protected].
* LICENSE ALERT - THE END
*/

updateLoadingText("Loading DDV library...");
// Preload DDN Resource
Dynamsoft.Core.CoreModule.loadWasm(["DDN"]);
Expand Down
11 changes: 11 additions & 0 deletions samples/relatively-complete-doc-capturing-workflow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,23 @@
// Preload DDV Resource
Dynamsoft.DDV.Core.loadWasm();

/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
*/

// Initialize DDN license
await Dynamsoft.License.LicenseManager.initLicense(
"DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLXIxNzAzODM5ODkwIiwibWFpblNlcnZlclVSTCI6Imh0dHBzOi8vbWx0cy5keW5hbXNvZnQuY29tLyIsIm9yZ2FuaXphdGlvbklEIjoiMjAwMDAwIiwic3RhbmRieVNlcnZlclVSTCI6Imh0dHBzOi8vc2x0cy5keW5hbXNvZnQuY29tLyIsImNoZWNrQ29kZSI6MTgyNTQ5Njk4NH0=",
true
);

/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense/?product=mwc to get your own trial license good for 30 days.
* 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.
* For more information, see https://www.dynamsoft.com/mobile-web-capture/docs/gettingstarted/license.html or contact [email protected].
* LICENSE ALERT - THE END
*/

updateLoadingText("Loading DDV library...");
// Preload DDN Resource
Dynamsoft.Core.CoreModule.loadWasm(["DDN"]);
Expand Down
11 changes: 11 additions & 0 deletions samples/review-adjust-detected-boundaries/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,23 @@
// Preload DDV Resource
Dynamsoft.DDV.Core.loadWasm();

/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
*/

// Initialize DDN license
await Dynamsoft.License.LicenseManager.initLicense(
"DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLXIxNzAzODM5ODkwIiwibWFpblNlcnZlclVSTCI6Imh0dHBzOi8vbWx0cy5keW5hbXNvZnQuY29tLyIsIm9yZ2FuaXphdGlvbklEIjoiMjAwMDAwIiwic3RhbmRieVNlcnZlclVSTCI6Imh0dHBzOi8vc2x0cy5keW5hbXNvZnQuY29tLyIsImNoZWNrQ29kZSI6MTgyNTQ5Njk4NH0=",
true
);

/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense/?product=mwc to get your own trial license good for 30 days.
* 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.
* For more information, see https://www.dynamsoft.com/mobile-web-capture/docs/gettingstarted/license.html or contact [email protected].
* LICENSE ALERT - THE END
*/

updateLoadingText("Loading DDV library...");
// Preload DDN Resource
Dynamsoft.Core.CoreModule.loadWasm(["DDN"]);
Expand Down

0 comments on commit fb86f73

Please sign in to comment.