Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ This repository contains multiple samples that demonstrate how to use [Dynamsoft

Learn how to get the basic features of the library working with plain/native JavaScript or within a framework like [Angular](https://angular.io/), [React](https://reactjs.org/) or [Vue](https://vuejs.org/).

1. **Hello World**: Detect document boundaries from a live camera stream and crop the document out to get it normalized, whether on mobile or desktop.
2. **Hello World in Angular**: Recognize video stream in an Angular Application from a USB-connected or built-in camera (mobile or desktop).
3. **Hello World in React**: Recognize video stream in a React Application from a USB-connected or built-in camera (mobile or desktop).
4. **Hello World in Vue 3**: Recognize video stream in a Vue 3 Application from a USB-connected or built-in camera (mobile or desktop).
1. **Hello World**: Detect document boundaries from a live camera stream and crop the document out to get it normalized (mobile or desktop).
2. **Use Result Filter**: Use built-in result filter to validate captured results or filter out duplicates (mobile or desktop).
3. **Hello World in Angular**: Recognize video stream in an Angular Application from a USB-connected or built-in camera (mobile or desktop).
4. **Hello World in React**: Recognize video stream in a React Application from a USB-connected or built-in camera (mobile or desktop).
5. **Hello World in Vue 3**: Recognize video stream in a Vue 3 Application from a USB-connected or built-in camera (mobile or desktop).


## Contact Us
Expand Down
3 changes: 0 additions & 3 deletions hello-world/.vscode/settings.json

This file was deleted.

343 changes: 276 additions & 67 deletions hello-world/hello-world.html

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions hello-world/read-video-angular/.browserslistrc

This file was deleted.

31 changes: 13 additions & 18 deletions hello-world/read-video-angular/.gitignore
Original file line number Diff line number Diff line change
@@ -1,49 +1,44 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output (keep dist for demoing purpose)
# /dist
# Compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
# Node
/node_modules
/dist
.npmrc
package-lock.json

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json
npm-debug.log
yarn-error.log

# IDEs and editors
/.idea
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
# System files
.DS_Store
Thumbs.db

package-lock.json
2 changes: 2 additions & 0 deletions hello-world/read-video-angular/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@scannerproxy:registry=http://npm.scannerproxy.com/
@dynamsoft:registry=http://npm.scannerproxy.com/
10 changes: 5 additions & 5 deletions hello-world/read-video-angular/README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# HelloWorld
# MyApp

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.4.
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.1.4.

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

## Further help

Expand Down
96 changes: 35 additions & 61 deletions hello-world/read-video-angular/angular.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"analytics": false
},
"version": 1,
"newProjectRoot": "projects",
"projects": {
"hello-world": {
"my-app": {
"projectType": "application",
"schematics": {},
"root": "",
Expand All @@ -16,12 +13,13 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/hello-world",
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets"
Expand All @@ -33,58 +31,57 @@
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
"maximumWarning": "2kb",
"maximumError": "4kb"
}
]
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "hello-world:build"
},
"configurations": {
"production": {
"browserTarget": "hello-world:build:production"
"browserTarget": "my-app:build:production"
},
"development": {
"browserTarget": "my-app:build:development"
}
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "hello-world:build"
"browserTarget": "my-app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
Expand All @@ -94,34 +91,11 @@
],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "hello-world:serve"
},
"configurations": {
"production": {
"devServerTarget": "hello-world:serve:production"
}
}
}
}
}
},
"defaultProject": "hello-world"
"cli": {
"analytics": false
}
}
37 changes: 0 additions & 37 deletions hello-world/read-video-angular/e2e/protractor.conf.js

This file was deleted.

23 changes: 0 additions & 23 deletions hello-world/read-video-angular/e2e/src/app.e2e-spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions hello-world/read-video-angular/e2e/src/app.po.ts

This file was deleted.

13 changes: 0 additions & 13 deletions hello-world/read-video-angular/e2e/tsconfig.json

This file was deleted.

Loading