Skip to content

Commit 59aaa40

Browse files
update to internal commit 19d834ad
1 parent 4aee177 commit 59aaa40

File tree

7 files changed

+711
-7
lines changed

7 files changed

+711
-7
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: default-layout
3+
title: Interface DetectedQuadResultItem - Dynamsoft Document Normalizer JS Edition API Reference
4+
description: This page shows the JS edition of the interface DetectedQuadResultItem.
5+
keywords: detected quad, JS
6+
needAutoGenerateSidebar: true
7+
noTitleIndex: true
8+
---
9+
10+
# DetectedQuadResultItem
11+
12+
The `DetectedQuadResultItem` interface extends the `CapturedResultItem` interface and represents a detected quadrilateral result item.
13+
14+
```ts
15+
interface DetectedQuadResultItem extends CapturedResultItem {
16+
location: Quadrilateral;
17+
confidenceAsDocumentBoundary: number;
18+
}
19+
```
20+
21+
## location
22+
23+
The location of the detected quadrilateral within the original image, represented as a quadrilateral shape.
24+
25+
## confidenceAsDocumentBoundary
26+
27+
A confidence score measuring the certainty that the detected quadrilateral represents the boundary of a document.
28+
29+
**See Also**
30+
31+
[CapturedResultItem](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/captured-result-item.html)
32+
33+
[Quadrilateral](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/quadrilateral.html)

programming/javascript/api-reference/interfaces/detected-quad-result-item.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The `DetectedQuadResultItem` interface extends the `CapturedResultItem` interfac
1515
interface DetectedQuadResultItem extends CapturedResultItem {
1616
location: Quadrilateral;
1717
confidenceAsDocumentBoundary: number;
18+
crossVerificationStatus: EnumCrossVerificationStatus;
1819
}
1920
```
2021

@@ -26,8 +27,14 @@ The location of the detected quadrilateral within the original image, represente
2627

2728
A confidence score measuring the certainty that the detected quadrilateral represents the boundary of a document.
2829

30+
## crossVerificationStatus
31+
32+
Indicates whether the DetectedQuadResultItem has passed cross verification.
33+
2934
**See Also**
3035

3136
[CapturedResultItem](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/captured-result-item.html)
3237

33-
[Quadrilateral](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/quadrilateral.html)
38+
[Quadrilateral](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/quadrilateral.html)
39+
40+
[EnumCrossVerificationStatus]({{ site.enums }}core/cross-verification-status.html?lang=js)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: default-layout
3+
title: Interface LogicLinesUnit - Dynamsoft Document Normalizer JS Edition API Reference
4+
description: This page shows the JS edition of the interface LogicLinesUnit.
5+
keywords: logic lines, JS
6+
needAutoGenerateSidebar: true
7+
noTitleIndex: true
8+
---
9+
10+
# LogicLinesUnit
11+
12+
The `LogicLinesUnit` interface extends the `IntermediateResultUnit` interface and represents a unit of line segments.
13+
14+
```ts
15+
interface LogicLinesUnit extends IntermediateResultUnit {
16+
logicLines: Array<LineSegment>;
17+
}
18+
```
19+
20+
## logicLines
21+
22+
An array of line segment detected within the image.
23+
24+
**See Also**
25+
26+
[IntermediateResultUnit](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/intermediate-results/intermediate-result-unit.html)
27+
28+
[LineSegment](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/line-segment.html)
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
layout: default-layout
3+
title: Interface NormalizedImageResultItem - Dynamsoft Document Normalizer JS Edition API Reference
4+
description: This page shows the JS edition of the interface NormalizedImageResultItem.
5+
keywords: normalized image result, JS
6+
needAutoGenerateSidebar: true
7+
noTitleIndex: true
8+
---
9+
10+
# NormalizedImageResultItem
11+
12+
The `NormalizedImageResultItem` interface extends the `CapturedResultItem` interface and represents a normalized image result item.
13+
14+
```ts
15+
interface NormalizedImageResultItem extends CapturedResultItem {
16+
imageData: DSImageData;
17+
location: Quadrilateral;
18+
toCanvas(): HTMLCanvasElement;
19+
toImage(MIMEType: "image/png" | "image/jpeg"): HTMLImageElement;
20+
toBlob(MIMEType: "image/png" | "image/jpeg"): Promise<Blob>;
21+
saveToFile(name: string, download?: boolean): Promise<File>;
22+
}
23+
```
24+
25+
## imageData
26+
27+
The image data for the normalized image result.
28+
29+
**See Also**
30+
31+
[DSImageData](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/ds-image-data.html)
32+
33+
## location
34+
35+
The location where the normalized image was extracted from within the original image, represented as a quadrilateral.
36+
37+
**See Also**
38+
39+
[Quadrilateral](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/quadrilateral.html)
40+
41+
## toCanvas
42+
43+
Converts the normalized image data into an HTMLCanvasElement for display or further manipulation in web applications.
44+
45+
**See Also**
46+
47+
[HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement)
48+
49+
## toImage
50+
51+
Converts the normalized image data into an HTMLImageElement of a specified MIME type ('image/png' or 'image/jpeg').
52+
53+
**See Also**
54+
55+
[HTMLImageElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement)
56+
57+
## toBlob
58+
59+
Converts the normalized image data into a Blob object of a specified MIME type ('image/png' or 'image/jpeg').
60+
61+
**See Also**
62+
63+
[Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
64+
65+
## saveToFile
66+
67+
Saves the normalized image to a File object in memory, optionally downloading it to the user's device.
68+
69+
**Parameters**
70+
71+
`name`: the name to assign to the File object.
72+
73+
`download` optional. If true, triggers the download of the file once created; otherwise, retains the file in memory.
74+
75+
**See Also**
76+
77+
[File](https://developer.mozilla.org/en-US/docs/Web/API/File)

programming/javascript/api-reference/interfaces/normalized-image-result-item.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The `NormalizedImageResultItem` interface extends the `CapturedResultItem` inter
1515
interface NormalizedImageResultItem extends CapturedResultItem {
1616
imageData: DSImageData;
1717
location: Quadrilateral;
18+
crossVerificationStatus: EnumCrossVerificationStatus;
1819
toCanvas(): HTMLCanvasElement;
1920
toImage(MIMEType: "image/png" | "image/jpeg"): HTMLImageElement;
2021
toBlob(MIMEType: "image/png" | "image/jpeg"): Promise<Blob>;
@@ -38,6 +39,14 @@ The location where the normalized image was extracted from within the original i
3839

3940
[Quadrilateral](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/quadrilateral.html)
4041

42+
## crossVerificationStatus
43+
44+
Indicates whether the NormalizedImageResultItem has passed cross verification.
45+
46+
**See Also**
47+
48+
[EnumCrossVerificationStatus]({{ site.enums }}core/cross-verification-status.html?lang=js)
49+
4150
## toCanvas
4251

4352
Converts the normalized image data into an HTMLCanvasElement for display or further manipulation in web applications.

0 commit comments

Comments
 (0)