Skip to content
Merged

Dev #65

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
cfb99fd
Merge pull request #43 from Dynamsoft/_dev
Cube-J May 12, 2022
2171540
Merge pull request #45 from Dynamsoft/_dev
Tom-Dynamsoft May 23, 2022
f6ccdc4
Merge pull request #46 from Dynamsoft/_dev
Cube-J Jun 16, 2022
8ee6805
Revert "Merge branch 'demo' into _dev"
Cube-J Jun 16, 2022
cae20a0
Update index.html
aloksha Jun 29, 2022
ba23ab5
Update index.html
Tom-Dynamsoft Jun 29, 2022
23132cd
Merge pull request #48 from aloksha/patch-18
Tom-Dynamsoft Jun 29, 2022
e823ca5
Update index.html
aloksha Jun 29, 2022
3c31bef
Update 12.read-video-es6.html
aloksha Jun 29, 2022
bf03da4
Update 2.read-video-no-extra-control.html
aloksha Jun 29, 2022
fe72d14
Update 4.difference-video-size.html
aloksha Jun 29, 2022
873bf72
Merge pull request #52 from aloksha/patch-22
Tom-Dynamsoft Jun 29, 2022
8f3eec3
Merge pull request #51 from aloksha/patch-21
Tom-Dynamsoft Jun 29, 2022
2e8e940
Merge pull request #49 from aloksha/patch-19
Tom-Dynamsoft Jun 29, 2022
c3334a3
Merge pull request #50 from aloksha/patch-20
Tom-Dynamsoft Jun 29, 2022
4e0b22b
Update 2.read-an-image.html
aloksha Jul 1, 2022
68da765
Update index.html
aloksha Jul 1, 2022
1c37539
Update 1.read-video-show-result.html
aloksha Jul 1, 2022
f7b9694
Update 2.read-video-no-extra-control.html
aloksha Jul 1, 2022
6a0b832
Update 3.read-video-with-external-control.html
aloksha Jul 1, 2022
040ddfc
Merge pull request #57 from aloksha/patch-27
Tom-Dynamsoft Jul 1, 2022
6b7046c
Merge pull request #56 from aloksha/patch-26
Tom-Dynamsoft Jul 1, 2022
8895059
Merge pull request #55 from aloksha/patch-25
Tom-Dynamsoft Jul 1, 2022
272f417
Merge pull request #54 from aloksha/patch-24
Tom-Dynamsoft Jul 1, 2022
0409c1d
Update 2.localizationModes-binarizationModes.html
aloksha Jul 1, 2022
7f92958
Merge pull request #53 from aloksha/patch-23
Tom-Dynamsoft Jul 1, 2022
4a4f390
Merge pull request #58 from aloksha/patch-30
Tom-Dynamsoft Jul 1, 2022
a1ac288
Update 3.blurred-small-barcodes.html
aloksha Jul 1, 2022
4c87566
Update 4.deformed-incomplete-barcodes.html
aloksha Jul 1, 2022
6e82ca9
Update 5.regionOfInterest-regionPredetection.html
aloksha Jul 1, 2022
e5bf758
Merge pull request #59 from aloksha/patch-31
Tom-Dynamsoft Jul 1, 2022
7a6c69a
Merge pull request #60 from aloksha/patch-32
Tom-Dynamsoft Jul 1, 2022
3b2b5f7
Merge pull request #61 from aloksha/patch-33
Tom-Dynamsoft Jul 1, 2022
37fc8f9
Merge branch '_dev' of github.com:Dynamsoft/barcode-reader-javascript…
jl-max Jul 18, 2022
ffbc827
update driver license sample with dcp
jl-max Jul 18, 2022
b35646e
update driver license sample with dcp
jl-max Jul 18, 2022
17091d0
use dcp
jl-max Jul 19, 2022
9feba27
use dcp
jl-max Jul 19, 2022
0df835d
add react-ts
Shen-wb Jul 20, 2022
3bef881
add react-ts
Shen-wb Jul 20, 2022
ec2a30a
update readme to indicate the use of DCP
Tom-Dynamsoft Jul 25, 2022
b8b777b
fix broken sentence
Tom-Dynamsoft Jul 25, 2022
5613038
Update README.md
RachyJ Jul 25, 2022
6053137
update version to 9.2.10;
Cube-J Jul 26, 2022
f3934a7
Merge branch '_dev' of https://github.com/Dynamsoft/barcode-reader-ja…
Cube-J Jul 26, 2022
5e28f5c
update version to 9.2.10;
Cube-J Jul 26, 2022
504134a
use dcpjs
Shen-wb Jul 26, 2022
b7fc661
update to 9.2.10
Shen-wb Jul 26, 2022
4f6e351
use dcpjs
Shen-wb Jul 26, 2022
d184ab6
Update README.md
RachyJ Jul 26, 2022
cdfbe84
update serial number; update index.html;
Cube-J Jul 26, 2022
1647a8a
Update README.md
Cube-J Jul 27, 2022
b741d38
Update package.json
Cube-J Jul 28, 2022
0a1f59e
Update README.md
Tom-Dynamsoft Jul 28, 2022
6b6c3e9
Update README.md
Tom-Dynamsoft Jul 28, 2022
5cb250a
Merge pull request #62 from RachyJ/main
Tom-Dynamsoft Jul 28, 2022
fb9ca91
add links to sample names in readme
Tom-Dynamsoft Jul 28, 2022
9258f5b
Merge branch '_dev' into main
Cube-J Jul 28, 2022
8df926c
Merge pull request #63 from Dynamsoft/main
Cube-J Jul 28, 2022
acda898
update version to 9.2.11;
Cube-J Jul 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.DS_Store
node_modules
dist
build

# local env files
.env.local
Expand Down
6 changes: 3 additions & 3 deletions 1.hello-world/1.hello-world.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@

<body>
Loading...
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.2/dist/dbr.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.11/dist/dbr.js"></script>
<script>
/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "license" as shown below.
*/

Dynamsoft.DBR.BarcodeReader.license = 'DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLWRicl9qc19zYW1wbGVzIiwib3JnYW5pemF0aW9uSUQiOiIyMDAwMDAifQ==';
Dynamsoft.DBR.BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';

/**
* 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.
* 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/barcode-reader/programming/javascript/user-guide/?ver=9.0.2&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.11&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* LICENSE ALERT - THE END
*/

Expand Down
6 changes: 3 additions & 3 deletions 1.hello-world/10.read-video-pwa/helloworld-pwa.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
<body>
<h1 style="font-size: 1.5em;">Hello World for PWA</h1>
Loading...
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.2/dist/dbr.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.11/dist/dbr.js"></script>
<script>
/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "license" as shown below.
*/

Dynamsoft.DBR.BarcodeReader.license = 'DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLWRicl9qc19zYW1wbGVzIiwib3JnYW5pemF0aW9uSUQiOiIyMDAwMDAifQ==';
Dynamsoft.DBR.BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';

/**
* 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.
* 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/barcode-reader/programming/javascript/user-guide/?ver=9.0.2&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.11&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* LICENSE ALERT - THE END
*/

Expand Down
8 changes: 4 additions & 4 deletions 1.hello-world/11.read-video-requirejs.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ <h1 style="font-size: 1.5em;">Hello World for RequireJS</h1>
Loading...
<script src="https://cdn.jsdelivr.net/npm/requirejs@2.3.6/require.js"></script>
<script>
requirejs(['https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.2/dist/dbr.js'], function({
requirejs(['https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.11/dist/dbr.js'], function({
BarcodeReader,
BarcodeScanner
}) {
/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "license" as shown below.
*/

BarcodeReader.license = 'DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLWRicl9qc19zYW1wbGVzIiwib3JnYW5pemF0aW9uSUQiOiIyMDAwMDAifQ==';
BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';

/**
* 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.
* 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/barcode-reader/programming/javascript/user-guide/?ver=9.0.2&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.11&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* LICENSE ALERT - THE END
*/

BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.2/dist/";
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.11/dist/";
let pScanner = null;
(async function() {
try {
Expand Down
10 changes: 5 additions & 5 deletions 1.hello-world/12.read-video-es6.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="description" content="Quickly read barcodes with Dynamsoft Barcode Reader from a live camera stream.">
<meta name="keywords" content="camera based barcode reading">
<title>Dynamsoft Barcode Reader Sample - Hello World (Decoding via Camera)</title>
<title>Dynamsoft Barcode Reader Sample - Hello World (Read Video)</title>
</head>

<body>
<h1 style="font-size: 1.5em;">Hello World for ES6</h1>
Loading...
<script type="module">
import { BarcodeReader, BarcodeScanner } from 'https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.2/dist/dbr.mjs';
import { BarcodeReader, BarcodeScanner } from 'https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.11/dist/dbr.mjs';
/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "license" as shown below.
*/

BarcodeReader.license = 'DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLWRicl9qc19zYW1wbGVzIiwib3JnYW5pemF0aW9uSUQiOiIyMDAwMDAifQ==';
BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';

/**
* 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.
* 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/barcode-reader/programming/javascript/user-guide/?ver=9.0.2&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.11&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* LICENSE ALERT - THE END
*/

BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.2/dist/";
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.11/dist/";

let pScanner = null;
(async () => {
Expand Down
23 changes: 23 additions & 0 deletions 1.hello-world/13.read-video-react-ts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
46 changes: 46 additions & 0 deletions 1.hello-world/13.read-video-react-ts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
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.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
45 changes: 45 additions & 0 deletions 1.hello-world/13.read-video-react-ts/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "read-video-react",
"version": "0.1.0",
"homepage": "./",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.11.45",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"dynamsoft-javascript-barcode": "9.2.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"typescript": "^4.7.4",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
38 changes: 38 additions & 0 deletions 1.hello-world/13.read-video-react-ts/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
38 changes: 38 additions & 0 deletions 1.hello-world/13.read-video-react-ts/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.App {
text-align: center;
}

.App-logo {
height: 5vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
13 changes: 13 additions & 0 deletions 1.hello-world/13.read-video-react-ts/src/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import './App.css';
import HelloWorld from './components/HelloWorld/HelloWorld';

function App() {
return (
<div className="App">
<HelloWorld></HelloWorld>
</div>
);
}

export default App;
Loading