Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit c436b09

Browse files
4.0.1
1 parent a226df0 commit c436b09

21 files changed

+37
-36
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2003–2023 Dynamsoft. All Rights Reserved.
1+
Copyright © 2003–2024 Dynamsoft. All Rights Reserved.
22

33
The use of this software is governed by the Dynamsoft Terms and Conditions.
44
https://www.dynamsoft.com/company/license-agreement/

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ In this guide, you will learn step by step on how to integrate the Dynamsoft Cam
3434

3535
To use the SDK, we first include the following packages:
3636

37-
1. `dynamsoft-camera-enhancer`: required, it provides the camera related functionalities used in this guide.
38-
2. `dynamsoft-core`: required, it includes basic classes, interfaces, and enumerations that are shared between all Dynamsoft SDKs.
37+
1. `dynamsoft-camera-enhancer`: Required, it provides the camera related functionalities used in this guide.
38+
2. `dynamsoft-core`: Required, it includes basic classes, interfaces, and enumerations that are shared between all Dynamsoft SDKs.
39+
3. `dynamsoft-license`: Optional, if you wish to utilize advanced features such as auto-zoom, enhanced focus, and tap-to-focus, you will need to include it.
3940

4041
#### Use a CDN
4142

@@ -44,21 +45,21 @@ The simplest way to include the SDK is to use a CDN such as [jsDelivr](https://j
4445
- jsDelivr
4546

4647
```html
47-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-core@3.0.20/dist/core.js"></script>
48+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-core@3.0.30/dist/core.js"></script>
4849
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-license@3.0.20/dist/license.js"></script>
4950
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@4.0.1/dist/dce.js"></script>
5051
```
5152

5253
- UNPKG
5354

5455
```html
55-
<script src="https://unpkg.com/dynamsoft-core@3.0.20/dist/core.js"></script>
56+
<script src="https://unpkg.com/dynamsoft-core@3.0.30/dist/core.js"></script>
5657
<script src="https://unpkg.com/dynamsoft-license@3.0.20/dist/license.js"></script>
5758
<script src="https://unpkg.com/dynamsoft-camera-enhancer@4.0.1/dist/dce.js"></script>
5859
```
5960

6061
> In some rare cases, you might not be able to access the CDN. If this happens, you can use
61-
>- [https://download2.dynamsoft.com/packages/dynamsoft-core@3.0.20/dist/core.js](https://download2.dynamsoft.com/packages/dynamsoft-core@3.0.20/dist/core.js)
62+
>- [https://download2.dynamsoft.com/packages/dynamsoft-core@3.0.30/dist/core.js](https://download2.dynamsoft.com/packages/dynamsoft-core@3.0.30/dist/core.js)
6263
>- [https://download2.dynamsoft.com/packages/dynamsoft-license@3.0.20/dist/license.js](https://download2.dynamsoft.com/packages/dynamsoft-license@3.0.20/dist/license.js)
6364
>- [https://download2.dynamsoft.com/packages/dynamsoft-camera-enhancer@4.0.1/dist/dce.js](https://download2.dynamsoft.com/packages/dynamsoft-camera-enhancer@4.0.1/dist/dce.js)
6465
@@ -89,7 +90,7 @@ The following shows a few ways to download the SDK.
8990
Depending on how you downloaded the SDK and where you put it. You can typically include it like this:
9091

9192
```html
92-
<script src="./dynamsoft-camera-enhancer-js-4.0.1/dynamsoft/distributables/dynamsoft-core@3.0.20/dist/core.js"></script>
93+
<script src="./dynamsoft-camera-enhancer-js-4.0.1/dynamsoft/distributables/dynamsoft-core@3.0.30/dist/core.js"></script>
9394
<script src="./dynamsoft-camera-enhancer-js-4.0.1/dynamsoft/distributables/dynamsoft-camera-enhancer@4.0.1/dist/dce.js"></script>
9495
```
9596

@@ -253,6 +254,7 @@ Dynamsoft.DCE.CameraView.createInstance("THE-URL-TO-THE-FILE");
253254
254255
```html
255256
<select class="dce-sel-resolution">
257+
<option class="dce-opt-gotResolution" value="got"></option>
256258
<option data-width="1920" data-height="1080">1920x1080</option>
257259
<option data-width="1280" data-height="720">1280x720</option>
258260
<option data-width="640" data-height="480">640x480</option>

dist/dce.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dce.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dce.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/types/class/CameraView.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DSRect, Rect } from "@dynamsoft/dynamsoft-core";
1+
import { DSRect, Rect } from "dynamsoft-core";
22
import { View } from "./View";
33
import { EventHandler } from "../utils";
44
export declare class CameraView extends View {

dist/types/class/ImageEditorView.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DSImageData } from "@dynamsoft/dynamsoft-core";
1+
import { DSImageData } from "dynamsoft-core";
22
import { View } from "./View";
33
import DrawingLayer from "./drawinglayer";
44
export declare class ImageEditorView extends View {

dist/types/class/cameraenhancer.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ImageSourceAdapter, EnumImagePixelFormat, Point, DSRect, Rect, Warning, ImageSourceErrorListener } from "@dynamsoft/dynamsoft-core";
1+
import { ImageSourceAdapter, EnumImagePixelFormat, Point, DSRect, Rect, Warning, ImageSourceErrorListener } from "dynamsoft-core";
22
import { CameraView } from "./CameraView";
33
import { VideoDeviceInfo, DCEFrame, PlayCallbackInfo, Resolution } from "../interface";
44
import { EnumEnhancedFeatures } from "../enum";

dist/types/class/drawingItem/arc.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Arc } from "@dynamsoft/dynamsoft-core";
1+
import { Arc } from "dynamsoft-core";
22
import { DrawingItem } from "./drawingitem";
33
export declare class DT_Arc extends DrawingItem {
44
#private;

dist/types/class/drawingItem/image.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DSImageData, Rect } from "@dynamsoft/dynamsoft-core";
1+
import { DSImageData, Rect } from "dynamsoft-core";
22
import { DrawingItem } from "./drawingitem";
33
export declare class DT_Image extends DrawingItem {
44
#private;

dist/types/class/drawingItem/line.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DT_Polygon } from "./polygon";
2-
import { LineSegment, Polygon } from "@dynamsoft/dynamsoft-core";
2+
import { LineSegment, Polygon } from "dynamsoft-core";
33
export declare class DT_Line extends DT_Polygon {
44
#private;
55
constructor(line: LineSegment, drawingStyleId?: number);

dist/types/class/drawingItem/polygon.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fabric } from "dm-fabric";
22
import { DrawingItem } from "./drawingitem";
3-
import { Polygon } from "@dynamsoft/dynamsoft-core";
3+
import { Polygon } from "dynamsoft-core";
44
export declare function polygonPositionHandler(dim: any, finalMatrix: any, fabricObject: any): fabric.Point;
55
export declare function actionHandler(eventData: any, transform: any, x: any, y: any): boolean;
66
export declare function anchorWrapper(anchorIndex: any, fn: any): (eventData: any, transform: any, x: any, y: any) => any;

dist/types/class/drawingItem/quad.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Polygon, Quadrilateral } from "@dynamsoft/dynamsoft-core";
1+
import { Polygon, Quadrilateral } from "dynamsoft-core";
22
import { DT_Polygon } from "./polygon";
33
export declare class DT_Quad extends DT_Polygon {
44
#private;

dist/types/class/drawingItem/rect.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Rect } from "@dynamsoft/dynamsoft-core";
1+
import { Rect } from "dynamsoft-core";
22
import { DrawingItem } from "./drawingitem";
33
export declare class DT_Rect extends DrawingItem {
44
#private;

dist/types/class/drawingItem/text.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Rect } from "@dynamsoft/dynamsoft-core";
1+
import { Rect } from "dynamsoft-core";
22
import { DrawingItem } from "./drawingitem";
33
export declare class DT_Text extends DrawingItem {
44
#private;

dist/types/interface/DCEFrame.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DSImageData } from "@dynamsoft/dynamsoft-core";
1+
import { DSImageData } from "dynamsoft-core";
22
import { VideoFrameTag } from "./VideoFrameTag";
33
export interface DCEFrame extends DSImageData {
44
toCanvas: () => HTMLCanvasElement;

dist/types/interface/TipConfig.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Point } from "@dynamsoft/dynamsoft-core";
1+
import { Point } from "dynamsoft-core";
22
export interface TipConfig {
33
topLeftPoint: Point;
44
width: number;

dist/types/interface/VideoFrameTag.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ImageTag, DSRect } from "@dynamsoft/dynamsoft-core";
1+
import { ImageTag, DSRect } from "dynamsoft-core";
22
export interface VideoFrameTag extends ImageTag {
33
isCropped: boolean;
44
cropRegion: DSRect;

dist/types/utils/ScanRegionConverter.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DSRect, Rect } from "@dynamsoft/dynamsoft-core";
1+
import { DSRect, Rect } from "dynamsoft-core";
22
export declare class ScanRegionConverter {
33
/**
44
*

dist/types/utils/TypeCheck.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,55 +16,55 @@ export declare const isNonEmptyString: (value: any) => value is string;
1616
* @param value
1717
* @returns
1818
*/
19-
export declare const isArc: (value: any) => value is import("@dynamsoft/dynamsoft-core").Arc;
19+
export declare const isArc: (value: any) => value is import("dynamsoft-core").Arc;
2020
/**
2121
* Judge is the input is a {@link DSImageData} object.
2222
* @param value
2323
* @returns
2424
*/
25-
export declare const isDSImageData: (value: any) => value is import("@dynamsoft/dynamsoft-core").DSImageData;
25+
export declare const isDSImageData: (value: any) => value is import("dynamsoft-core").DSImageData;
2626
/**
2727
* Judge is the input is a {@link DSRect} object.
2828
* @param value
2929
* @returns
3030
*/
31-
export declare const isDSRect: (value: any) => value is import("@dynamsoft/dynamsoft-core").DSRect;
31+
export declare const isDSRect: (value: any) => value is import("dynamsoft-core").DSRect;
3232
/**
3333
* Judge is the input is a {@link ImageTag} object.
3434
* @param value
3535
* @returns
3636
*/
37-
export declare const isImageTag: (value: any) => value is import("@dynamsoft/dynamsoft-core").ImageTag;
37+
export declare const isImageTag: (value: any) => value is import("dynamsoft-core").ImageTag;
3838
/**
3939
* Judge is the input is a {@link LineSegment} object.
4040
* @param value
4141
* @returns
4242
*/
43-
export declare const isLineSegment: (value: any) => value is import("@dynamsoft/dynamsoft-core").LineSegment;
43+
export declare const isLineSegment: (value: any) => value is import("dynamsoft-core").LineSegment;
4444
/**
4545
* Judge is the input is a {@link Polygon} object.
4646
* @param value
4747
* @returns
4848
*/
49-
export declare const isPolygon: (value: any) => value is import("@dynamsoft/dynamsoft-core").Polygon;
49+
export declare const isPolygon: (value: any) => value is import("dynamsoft-core").Polygon;
5050
/**
5151
* Judge is the input is a {@link Point} object.
5252
* @param value
5353
* @returns
5454
*/
55-
export declare const isPoint: (value: any) => value is import("@dynamsoft/dynamsoft-core").Point;
55+
export declare const isPoint: (value: any) => value is import("dynamsoft-core").Point;
5656
/**
5757
* Judge is the input is a {@link Quadrilateral} object.
5858
* @param value
5959
* @returns
6060
*/
61-
export declare const isQuad: (value: any) => value is import("@dynamsoft/dynamsoft-core").Quadrilateral;
61+
export declare const isQuad: (value: any) => value is import("dynamsoft-core").Quadrilateral;
6262
/**
6363
* Judge is the input is a {@link Rect} object.
6464
* @param value
6565
* @returns
6666
*/
67-
export declare const isRect: (value: any) => value is import("@dynamsoft/dynamsoft-core").Rect;
67+
export declare const isRect: (value: any) => value is import("dynamsoft-core").Rect;
6868
/**
6969
* Judge is the input is a {@link DCEFrame} object.
7070
* @param value

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"/samples.url"
8080
],
8181
"devDependencies": {
82-
"@dynamsoft/camera-manager": "^2.0.0-16",
82+
"@dynamsoft/camera-manager": "^2.0.0",
8383
"@dynamsoft/dynamsoft-barcode-reader": "^10.0.20-dev-20231222153407",
8484
"@dynamsoft/rd2-scripts": "^0.1.4",
8585
"@dynamsoft/tools": "^0.0.1",
@@ -96,9 +96,8 @@
9696
"typescript": "^4.9.5"
9797
},
9898
"dependencies": {
99-
"@dynamsoft/dynamsoft-core": "^3.0.20-dev-20231225171030",
10099
"dm-fabric": "^5.1.17",
101100
"dm-howler": "^2.2.4",
102-
"dynamsoft-core": "^3.0.10"
101+
"dynamsoft-core": "^3.0.30"
103102
}
104103
}

0 commit comments

Comments
 (0)