Table of contents

DetectedQuadsUnit Class

The DetectedQuadsUnit class represents an intermediate result unit whose type is detected quads.

Definition

Package: com.dynamsoft.ddn.intermediate_results

public class DetectedQuadsUnit extends IntermediateResultUnit

Inheritance: IntermediateResultUnit -> DetectedQuadsUnit

Methods

Method Description
getCount Gets the count of DetectedQuadElement objects in current object.
getDetectedQuad Gets a DetectedQuadElement object from current object by specifying a index.
getDetectedQuads Gets all DetectedQuadElement objects in current object.
removeAllDetectedQuads Removes all the detected quads in current object.
removeDetectedQuad Removes a detected quad from current object by specifying an index.
addDetectedQuad Adds a detected quad to current object.
setDetectedQuad Sets the detected quad at the specified index.

getCount

Gets the count of DetectedQuadElement objects in current object.

public int getCount()

Return Value

The count of DetectedQuadElement objects in current object.

getDetectedQuad

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

public DetectedQuadElement getDetectedQuad(int index)

Parameters

index The index of the DetectedQuadElement object.

Return Value

Returns the DetectedQuadElement object got by the specific index.

See Also

DetectedQuadElement

getDetectedQuads

Gets all DetectedQuadElement objects in current object.

public DetectedQuadElement[] getDetectedQuads()

Return Value

Returns an array of DetectedQuadElement objects.

See Also

DetectedQuadElement

removeAllDetectedQuads

Removes all the DetectedQuads in current object.

public void removeAllDetectedQuads()

removeDetectedQuad

Removes a detected quad from current object by specifying an index.

public void removeDetectedQuad(int index) throws DocumentNormalizerException

Parameters

index The index of the detected quad to be removed.

Exceptions

DocumentNormalizerException

addDetectedQuad

Adds a DetectedQuadElement object to current object.

public void addDetectedQuad(DetectedQuadElement element) throws DocumentNormalizerException
public void addDetectedQuad(DetectedQuadElement element, double[] matrixToOriginalImage) throws DocumentNormalizerException

Parameters

element The detected quad to be added.

matrixToOriginalImage The matrix to the original image.

Exceptions

DocumentNormalizerException

See Also

DetectedQuadElement

setDetectedQuad

Sets the DetectedQuad at the specified index.

public void setDetectedQuad(int index, DetectedQuadElement element) throws DocumentNormalizerException
public void setDetectedQuad(int index, DetectedQuadElement element, double[] matrixToOriginalImage) throws DocumentNormalizerException

Parameters

index The index of the detected quad to be set.

element The detected quad to be added.

matrixToOriginalImage The matrix to the original image.

Exceptions

DocumentNormalizerException

See Also

DetectedQuadElement

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: