Skip to content

Commit 7c57724

Browse files
committed
Update DCV bundle
1 parent fac02d4 commit 7c57724

File tree

10 files changed

+1989
-19453
lines changed

10 files changed

+1989
-19453
lines changed

package-lock.json

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

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,11 @@
2020
"@angular/router": "~13.3.0",
2121
"angular-barcode-mrz-document-scanner": "file:",
2222
"dwt": "^18.5.0-patch-20240517",
23-
"dynamsoft-barcode-reader-bundle": "^10.2.1000",
23+
"dynamsoft-capture-vision-bundle": "^2.4.2000",
2424
"dynamsoft-capture-vision-dnn": "^1.0.20",
25-
"dynamsoft-capture-vision-std": "^1.2.10",
26-
"dynamsoft-code-parser": "^2.2.10",
27-
"dynamsoft-document-normalizer": "^2.2.10",
25+
"dynamsoft-capture-vision-std": "^1.4.10",
2826
"dynamsoft-document-viewer": "^2.0.0",
29-
"dynamsoft-image-processing": "^2.2.30",
30-
"dynamsoft-label-recognizer": "^3.2.30",
27+
"dynamsoft-image-processing": "^2.4.20",
3128
"dynamsoft-label-recognizer-data": "^1.0.11",
3229
"rxjs": "~7.5.0",
3330
"tslib": "^2.3.0",
@@ -47,4 +44,4 @@
4744
"karma-jasmine-html-reporter": "~1.7.0",
4845
"typescript": "~4.6.2"
4946
}
50-
}
47+
}

src/app/barcode-reader/barcode-reader.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, OnInit } from '@angular/core';
22
import { OverlayManager } from '../overlay';
3-
import { CapturedResult, CaptureVisionRouter, BarcodeResultItem, EnumCapturedResultItemType } from 'dynamsoft-barcode-reader-bundle';
3+
import { CapturedResult, CaptureVisionRouter, BarcodeResultItem, EnumCapturedResultItemType } from 'dynamsoft-capture-vision-bundle';
44

55
@Component({
66
selector: 'app-barcode-reader',

src/app/barcode-scanner/barcode-scanner.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, OnInit } from '@angular/core';
22
import { OverlayManager } from '../overlay';
3-
import { BarcodeResultItem, CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType, MultiFrameResultCrossFilter, Resolution } from 'dynamsoft-barcode-reader-bundle';
3+
import { BarcodeResultItem, CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType, MultiFrameResultCrossFilter, Resolution } from 'dynamsoft-capture-vision-bundle';
44

55
const componentDestroyedErrorMsg = 'VideoCapture Component Destroyed';
66

src/app/camera-detection/camera-detection.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Template } from '@angular/compiler/src/render3/r3_ast';
22
import { Component, OnInit } from '@angular/core';
3-
import { BarcodeResultItem, CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, DSImageData, EnumCapturedResultItemType, OriginalImageResultItem, Resolution, SimplifiedCaptureVisionSettings } from 'dynamsoft-barcode-reader-bundle';
3+
import { BarcodeResultItem, CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, DSImageData, EnumCapturedResultItemType, OriginalImageResultItem, Resolution, SimplifiedCaptureVisionSettings } from 'dynamsoft-capture-vision-bundle';
44
import { OverlayManager } from '../overlay';
55
import { DetectedQuadResultItem, DetectedQuadsResult, EnumImageColourMode, NormalizedImageResultItem } from 'dynamsoft-document-normalizer';
66

src/app/file-detection/file-detection.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, OnInit } from '@angular/core';
22
import { OverlayManager } from '../overlay';
3-
import { CapturedResult, CaptureVisionRouter, SimplifiedCaptureVisionSettings } from 'dynamsoft-barcode-reader-bundle';
3+
import { CapturedResult, CaptureVisionRouter, SimplifiedCaptureVisionSettings } from 'dynamsoft-capture-vision-bundle';
44
import { DetectedQuadResultItem, EnumImageColourMode, NormalizedImageResultItem } from 'dynamsoft-document-normalizer';
55

66
@Component({

src/app/mrz-reader/mrz-reader.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, OnInit } from '@angular/core';
22
import { OverlayManager } from '../overlay';
3-
import { CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType } from 'dynamsoft-barcode-reader-bundle';
3+
import { CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType } from 'dynamsoft-capture-vision-bundle';
44
import { LabelRecognizerModule, TextLineResultItem } from 'dynamsoft-label-recognizer';
55
import { CodeParser, CodeParserModule, ParsedResultItem } from 'dynamsoft-code-parser';
66
import { handleMrzParseResult } from '../utils';

src/app/mrz-scanner/mrz-scanner.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, OnInit } from '@angular/core';
22
import { OverlayManager } from '../overlay';
3-
import { CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType, Resolution } from 'dynamsoft-barcode-reader-bundle';
3+
import { CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType, Resolution } from 'dynamsoft-capture-vision-bundle';
44
import { CodeParser, CodeParserModule } from 'dynamsoft-code-parser';
55
import { LabelRecognizerModule, TextLineResultItem } from 'dynamsoft-label-recognizer';
66
import { handleMrzParseResult } from '../utils';

src/app/overlay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Point, Quadrilateral } from "dynamsoft-barcode-reader-bundle";
1+
import { Point, Quadrilateral } from "dynamsoft-capture-vision-bundle";
22

33
export class OverlayManager {
44
overlay: HTMLCanvasElement | undefined;

src/app/product-list/product-list.component.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Component } from '@angular/core';
22

33
import { products } from '../products';
44

5-
import { CoreModule, LicenseManager } from 'dynamsoft-barcode-reader-bundle';
5+
import { CoreModule, LicenseManager } from 'dynamsoft-capture-vision-bundle';
66

77
import { SharedService } from '../shared.service';
88

@@ -50,7 +50,7 @@ export class ProductListComponent {
5050
try {
5151
// Visit https://www.dynamsoft.com/customer/license/trialLicense/?product=dcv&package=cross-platform to get a trial license for capture vision suite.
5252
let licenseKey: string = this.inputText === '' ? this.placeholderText : this.inputText;
53-
await LicenseManager.initLicense(licenseKey, true);
53+
LicenseManager.initLicense(licenseKey);
5454

5555
// DDV.Core.license = licenseKey;
5656
DDV.Core.engineResourcePath = getFullUrl('assets/dynamsoft-document-viewer/engine/');
@@ -59,7 +59,7 @@ export class ProductListComponent {
5959
// Preload wasm files for saving the time of loading it when needed.
6060
// await CoreModule.loadWasm(['DBR', 'DDN']);
6161

62-
this.toggleDivVisibility();
62+
this.sharedService.setShowDiv(true);
6363

6464
// DWT
6565
Dynamsoft.DWT.ProductKey = licenseKey;
@@ -72,10 +72,6 @@ export class ProductListComponent {
7272
this.isLoading = false;
7373
}
7474

75-
toggleDivVisibility(): void {
76-
this.sharedService.toggleShowDiv();
77-
}
78-
7975
get showDiv(): boolean {
8076
return this.sharedService.getShowDiv();
8177
}

0 commit comments

Comments
 (0)