Skip to content

Commit

Permalink
Update DCV bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
yushulx committed Oct 11, 2024
1 parent fac02d4 commit 7c57724
Show file tree
Hide file tree
Showing 10 changed files with 1,989 additions and 19,453 deletions.
21,407 changes: 1,975 additions & 19,432 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@
"@angular/router": "~13.3.0",
"angular-barcode-mrz-document-scanner": "file:",
"dwt": "^18.5.0-patch-20240517",
"dynamsoft-barcode-reader-bundle": "^10.2.1000",
"dynamsoft-capture-vision-bundle": "^2.4.2000",
"dynamsoft-capture-vision-dnn": "^1.0.20",
"dynamsoft-capture-vision-std": "^1.2.10",
"dynamsoft-code-parser": "^2.2.10",
"dynamsoft-document-normalizer": "^2.2.10",
"dynamsoft-capture-vision-std": "^1.4.10",
"dynamsoft-document-viewer": "^2.0.0",
"dynamsoft-image-processing": "^2.2.30",
"dynamsoft-label-recognizer": "^3.2.30",
"dynamsoft-image-processing": "^2.4.20",
"dynamsoft-label-recognizer-data": "^1.0.11",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
Expand All @@ -47,4 +44,4 @@
"karma-jasmine-html-reporter": "~1.7.0",
"typescript": "~4.6.2"
}
}
}
2 changes: 1 addition & 1 deletion src/app/barcode-reader/barcode-reader.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { OverlayManager } from '../overlay';
import { CapturedResult, CaptureVisionRouter, BarcodeResultItem, EnumCapturedResultItemType } from 'dynamsoft-barcode-reader-bundle';
import { CapturedResult, CaptureVisionRouter, BarcodeResultItem, EnumCapturedResultItemType } from 'dynamsoft-capture-vision-bundle';

@Component({
selector: 'app-barcode-reader',
Expand Down
2 changes: 1 addition & 1 deletion src/app/barcode-scanner/barcode-scanner.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { OverlayManager } from '../overlay';
import { BarcodeResultItem, CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType, MultiFrameResultCrossFilter, Resolution } from 'dynamsoft-barcode-reader-bundle';
import { BarcodeResultItem, CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType, MultiFrameResultCrossFilter, Resolution } from 'dynamsoft-capture-vision-bundle';

const componentDestroyedErrorMsg = 'VideoCapture Component Destroyed';

Expand Down
2 changes: 1 addition & 1 deletion src/app/camera-detection/camera-detection.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Template } from '@angular/compiler/src/render3/r3_ast';
import { Component, OnInit } from '@angular/core';
import { BarcodeResultItem, CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, DSImageData, EnumCapturedResultItemType, OriginalImageResultItem, Resolution, SimplifiedCaptureVisionSettings } from 'dynamsoft-barcode-reader-bundle';
import { BarcodeResultItem, CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, DSImageData, EnumCapturedResultItemType, OriginalImageResultItem, Resolution, SimplifiedCaptureVisionSettings } from 'dynamsoft-capture-vision-bundle';
import { OverlayManager } from '../overlay';
import { DetectedQuadResultItem, DetectedQuadsResult, EnumImageColourMode, NormalizedImageResultItem } from 'dynamsoft-document-normalizer';

Expand Down
2 changes: 1 addition & 1 deletion src/app/file-detection/file-detection.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { OverlayManager } from '../overlay';
import { CapturedResult, CaptureVisionRouter, SimplifiedCaptureVisionSettings } from 'dynamsoft-barcode-reader-bundle';
import { CapturedResult, CaptureVisionRouter, SimplifiedCaptureVisionSettings } from 'dynamsoft-capture-vision-bundle';
import { DetectedQuadResultItem, EnumImageColourMode, NormalizedImageResultItem } from 'dynamsoft-document-normalizer';

@Component({
Expand Down
2 changes: 1 addition & 1 deletion src/app/mrz-reader/mrz-reader.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { OverlayManager } from '../overlay';
import { CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType } from 'dynamsoft-barcode-reader-bundle';
import { CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType } from 'dynamsoft-capture-vision-bundle';
import { LabelRecognizerModule, TextLineResultItem } from 'dynamsoft-label-recognizer';
import { CodeParser, CodeParserModule, ParsedResultItem } from 'dynamsoft-code-parser';
import { handleMrzParseResult } from '../utils';
Expand Down
2 changes: 1 addition & 1 deletion src/app/mrz-scanner/mrz-scanner.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { OverlayManager } from '../overlay';
import { CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType, Resolution } from 'dynamsoft-barcode-reader-bundle';
import { CameraEnhancer, CameraView, CapturedResult, CaptureVisionRouter, EnumCapturedResultItemType, Resolution } from 'dynamsoft-capture-vision-bundle';
import { CodeParser, CodeParserModule } from 'dynamsoft-code-parser';
import { LabelRecognizerModule, TextLineResultItem } from 'dynamsoft-label-recognizer';
import { handleMrzParseResult } from '../utils';
Expand Down
2 changes: 1 addition & 1 deletion src/app/overlay.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Point, Quadrilateral } from "dynamsoft-barcode-reader-bundle";
import { Point, Quadrilateral } from "dynamsoft-capture-vision-bundle";

export class OverlayManager {
overlay: HTMLCanvasElement | undefined;
Expand Down
10 changes: 3 additions & 7 deletions src/app/product-list/product-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component } from '@angular/core';

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

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

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

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

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

this.toggleDivVisibility();
this.sharedService.setShowDiv(true);

// DWT
Dynamsoft.DWT.ProductKey = licenseKey;
Expand All @@ -72,10 +72,6 @@ export class ProductListComponent {
this.isLoading = false;
}

toggleDivVisibility(): void {
this.sharedService.toggleShowDiv();
}

get showDiv(): boolean {
return this.sharedService.getShowDiv();
}
Expand Down

0 comments on commit 7c57724

Please sign in to comment.