Resource Base
Table of contents

DetectedQuadsUnit

The DetectedQuadsUnit class represents an intermediate result unit whose type is detected quads. It is inherited from the IntermediateResultUnit class.

Definition

Namespace: com.dynamsoft.ddn.intermediate_results

Assembly: DynamsoftDocumentNormalizer.aar

class DetectedQuadsUnit extends IntermediateResultUnit

Methods Summary

Methods Description
getDetectedQuads Gets an array of DetectedQuadElement objects, each containing the information of a single detected quadrilateral.
getCount Gets the number of detected quadrilaterals.
getDetectedQuad Gets a detected quadrilateral.
removeAllDetectedQuads Removes all detected quadrilaterals.
removeDetectedQuad Removes a detected quadrilateral.
addDetectedQuad Adds a detected quadrilateral.
setDetectedQuad Sets a detected quadrilateral.

getDetectedQuads

Gets an array of DetectedQuadElement objects, each containing the information of a single detected quadrilateral.

DetectedQuadElement[] getDetectedQuads()

Return Value

The array of DetectedQuadElement.

getCount

Gets the number of detected quadrilaterals.

int getCount()

Return Value

The number of detected quadrilaterals.

getDetectedQuad

Gets the DetectedQuadElement at the specified index.

DetectedQuadElement getDetectedQuad(int index)

Return Value

A DetectedQuadElement object that represents the detected quadrilateral.

removeAllDetectedQuads

Removes all detected quadrilaterals.

void removeAllDetectedQuads()

removeDetectedQuad

Removes the detected quadrilateral at the specified index.

int removeDetectedQuad(int index)

Parameters

[in] index: The index of the quadrilateral to remove.

Return Value

Returns the ErrorCode if failed. otherwise, returns 0.

addDetectedQuad

Adds a DetectedQuadElement to the unit.

int addDetectedQuad(DetectedQuadElement element, Matrix matrixToOriginalImage)

Parameters

[in] element: The DetectedQuadElement object to add.

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

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

setDetectedQuad

Sets the DetectedQuadElement at the specified index.

int setDetectedQuad(int index, DetectedQuadElement element, Matrix matrixToOriginalImage)

Parameters

[in] index: The index of the quadrilateral to set.

[in] element: The DetectedQuadElement object to set.

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

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 2.x
    • Version 2.2.10
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.10
  • Version 1.x
    • Version 1.0.30
    • Version 1.0.21
    • Version 1.0.20
    • Version 1.0.12
    • Version 1.0.11
    • Version 1.0.10
    • Version 1.0.0
    • Version 1.0.30
    • Version 1.0.21
    • Version 1.0.20
    • Version 1.0.12
    • Version 1.0.11
    • Version 1.0.10
    • Version 1.0.0
    • Version 1.0.5
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support