Skip to content
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
layout: default-layout
title: CDetectedQuadResultItem Class
description: This page shows CDetectedQuadResultItem class definition of Dynamsoft Document Normalizer SDK C++ Edition.
keywords: GetLocation, GetConfidenceAsDocumentBoundary, GetRotationTransformMatrix, CDetectedQuadResultItem, api reference
permalink: /programming/cplusplus/api-reference/detected-quad-result-item-v2.4.2200.html
---

# CDetectedQuadResultItem Class

The CDetectedQuadResultItem class stores a captured result whose type is detected quad.

## Definition

*Namespace:* dynamsoft::ddn

*Assembly:* DynamsoftDocumentNormalizer

```cpp
class CDetectedQuadResultItem: CCapturedResultItem
```

*Inheritance:* [CCapturedResultItem]({{ site.dcv_cpp_api }}core/basic-structures/captured-result-item.html) -> CDetectedQuadResultItem

## Methods

| Method | Description |
|--------|-------------|
| [`GetLocation`](#getlocation) | Gets the location of current object. |
| [`GetConfidenceAsDocumentBoundary`](#getconfidenceasdocumentboundary) | Gets the confidence of current object as a document boundary. |

### GetLocation

Gets the location of current object.

```cpp
const CQuadrilateral GetLocation()
```

**Return Value**

The location of current object.

**See Also**

* [CQuadrilateral]({{ site.dcv_cpp_api }}core/basic-structures/quadrilateral.html)

### GetConfidenceAsDocumentBoundary

Gets the confidence of current object as a document boundary.

```cpp
int GetConfidenceAsDocumentBoundary()
```

**Return Value**

The confidence as document boundary of the detected quad result.
20 changes: 18 additions & 2 deletions programming/cplusplus/api-reference/detected-quad-result-item.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ layout: default-layout
title: CDetectedQuadResultItem Class
description: This page shows CDetectedQuadResultItem class definition of Dynamsoft Document Normalizer SDK C++ Edition.
keywords: GetLocation, GetConfidenceAsDocumentBoundary, GetRotationTransformMatrix, CDetectedQuadResultItem, api reference
permalink: /programming/cplusplus/api-reference/detected-quad-result-item.html
---

# CDetectedQuadResultItem Class

The CDetectedQuadResultItem class stores a captured result whose type is detected quad.
The `CDetectedQuadResultItem` class stores a captured result whose type is detected quad.

## Definition

Expand All @@ -28,6 +27,7 @@ class CDetectedQuadResultItem: CCapturedResultItem
|--------|-------------|
| [`GetLocation`](#getlocation) | Gets the location of current object. |
| [`GetConfidenceAsDocumentBoundary`](#getconfidenceasdocumentboundary) | Gets the confidence of current object as a document boundary. |
| [`GetCrossVerificationStatus`](#getcrossverificationstatus) | Gets the status of current object as a verified document boundary. |

### GetLocation

Expand Down Expand Up @@ -56,3 +56,19 @@ int GetConfidenceAsDocumentBoundary()
**Return Value**

The confidence as document boundary of the detected quad result.

### GetCrossVerificationStatus

Gets the status of current object as a verified document boundary.

```cpp
virtual CrossVerificationStatus GetCrossVerificationStatus() const = 0;
```

**Return Value**

The `CrossVerificationStatus` of the detected quad result.

**See Also**

* [CrossVerificationStatus]({{ site.dcv_enumerations }}core/cross-verification-status.html?lang=cpp)
129 changes: 129 additions & 0 deletions programming/cplusplus/api-reference/logic-lines-unit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
---
layout: default-layout
title: CLogicLinesUnit Class
description: This page shows CLogicLinesUnit class definition of Dynamsoft Document Normalizer SDK C++ Edition.
keywords: GetCount, GetLogicLine, CLogicLinesUnit, api reference
permalink: /programming/cplusplus/api-reference/logic-lines-unit.html
---

# CLogicLinesUnit Class

The CLogicLinesUnit class represents an intermediate result unit whose type is logic lines. Logic lines are formed by combining long lines that meet certain conditions.

## Definition

*Namespace:* dynamsoft::ddn::intermediate_results

*Assembly:* DynamsoftDocumentNormalizer

```cpp
class CLogicLinesUnit: CIntermediateResultUnit
```

*Inheritance:* [CIntermediateResultUnit]({{ site.dcv_cpp_api }}core/intermediate-results/intermediate-result-unit.html) -> CLogicLinesUnit

## Methods

| Method | Description |
|--------|-------------|
| [`GetCount`](#getcount) | Gets the count of LogicLine objects in current object.|
| [`GetLogicLine`](#getlogicline) | Gets a LogicLine object from current object by specifying a index. |
| [`RemoveAllLogicLines`](#removealllogiclines) | Removes all the LogicLines in current object. |
| [`RemoveLogicLine`](#removelogicline) | Removes a LogicLine from current object by specifying an index. |
| [`AddLogicLine`](#addlogicline) | Adds a LogicLine to current object. |
| [`SetLogicLine`](#setlogicline) | Sets the LogicLine at the specified index. |

### GetCount

Gets the count of LogicLine objects in current object.

```cpp
int GetCount()
```

**Return Value**

The count of LogicLine objects in current object.

### GetLogicLine

Gets a LogicLine object from current object by specifying a index.

```cpp
const CLineSegment* GetLogicLine(int index) const = 0;
```

**Parameters**

`[in] index` The index of the LogicLine object.

**Return Value**

Returns the LogicLine object.

**See Also**

* [CLineSegment]({{ site.dcv_cpp_api }}core/basic-structures/line-segment.html)
* [ErrorCode]({{ site.dcv_enumerations }}core/error-code.html?src=cpp&&lang=cpp)

### RemoveAllLogicLines

Removes all the LogicLines in current object.

```cpp
virtual void RemoveAllLogicLines() = 0
```

### RemoveLogicLine

Removes a LogicLine from current object by specifying an index.

```cpp
virtual int RemoveLogicLine(int index) = 0
```

**Parameters**

`[in] index` The index of the LogicLine to be removed.

**Return Value**

Returns 0 if successful, otherwise returns a negative value.

### AddLogicLine

Adds a LogicLine to current object.

```cpp
virtual int AddLogicLine(const CLineSegment& logicline, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0
```

**Parameters**

`[in] line` The LogicLine to be added.

`[in] matrixToOriginalImage` The matrix to the original image.

**Return Value**

Returns 0 if successful, otherwise returns a negative value.

### SetLogicLine

Sets the LogicLine at the specified index.

```cpp
virtual int SetLogicLine(int index, const CLineSegment& logicline, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;
```

**Parameters**

`[in] index` The index of the LogicLine to be set.

`[in] line` The LogicLine to be added.

`[in] matrixToOriginalImage` The matrix to the original image.

**Return Value**

Returns 0 if successful, otherwise returns a negative value.
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
layout: default-layout
title: CNormalizedImageResultItem Class
description: This page shows CNormalizedImageResultItem class definition of Dynamsoft Document Normalizer SDK C++ Edition.
keywords: GetImageData, SaveToFile, CNormalizedImageResultItem, api reference
permalink: /programming/cplusplus/api-reference/normalized-image-result-item-v2.4.2000.html
---

# CNormalizedImageResultItem Class

The CNormalizedImageResultItem class stores a captured result item whose type is normalized image.

## Definition

*Namespace:* dynamsoft::ddn

*Assembly:* DynamsoftDocumentNormalizer

```cpp
class CNormalizedImageResultItem: CCapturedResultItem
```

*Inheritance:* [CCapturedResultItem]({{ site.dcv_cpp_api }}core/basic-structures/captured-result-item.html) -> CNormalizedImageResultItem

## Methods

| Method | Description |
|--------|-------------|
| [`GetImageData`](#getimagedata) | Gets the ImageData of current object. |
| [`GetLocation`](#getlocation) | Get the quadrilateral from which you get the normalized image result item. |

### GetImageData

Gets the ImageData of current object.

```cpp
const CImageData* GetImageData()
```

**Return Value**

The image data.

**See Also**

* [CImageData]({{ site.dcv_cpp_api }}core/basic-structures/image-data.html)

### GetLocation

Gets the location of current object.

```cpp
const CQuadrilateral GetLocation()
```

**Return Value**

The location of current object.

**See Also**

* [CQuadrilateral]({{ site.dcv_cpp_api }}core/basic-structures/quadrilateral.html)

Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ layout: default-layout
title: CNormalizedImageResultItem Class
description: This page shows CNormalizedImageResultItem class definition of Dynamsoft Document Normalizer SDK C++ Edition.
keywords: GetImageData, SaveToFile, CNormalizedImageResultItem, api reference
permalink: /programming/cplusplus/api-reference/normalized-image-result-item.html
---

# CNormalizedImageResultItem Class

The CNormalizedImageResultItem class stores a captured result item whose type is normalized image.
The `CNormalizedImageResultItem` class stores a captured result item whose type is normalized image.

## Definition

Expand All @@ -28,6 +27,7 @@ class CNormalizedImageResultItem: CCapturedResultItem
|--------|-------------|
| [`GetImageData`](#getimagedata) | Gets the ImageData of current object. |
| [`GetLocation`](#getlocation) | Get the quadrilateral from which you get the normalized image result item. |
| [`GetCrossVerificationStatus`](#getcrossverificationstatus) | Gets the status of current object as a verified normalized image. |

### GetImageData

Expand Down Expand Up @@ -61,3 +61,18 @@ The location of current object.

* [CQuadrilateral]({{ site.dcv_cpp_api }}core/basic-structures/quadrilateral.html)

### GetCrossVerificationStatus

Gets the status of current object as a verified normalized image.

```cpp
virtual CrossVerificationStatus GetCrossVerificationStatus() const = 0
```

**Return Value**

The `CrossVerificationStatus` of the normalized image result.

**See Also**

* [CrossVerificationStatus]({{ site.dcv_enumerations }}core/cross-verification-status.html?lang=cpp)
Loading