public class DetectedDocument
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
DetectedDocument()
Creates a new instance of the DetectedDocument class.
|
DetectedDocument(long handle)
Creates a new instance of the DetectedDocument class.
|
| Modifier and Type | Method and Description |
|---|---|
DetectedDocument |
clone()
Creates a copy of the DetectedDocument object.
|
void |
close()
Releases all resources used by this DetectedDocument.
|
protected void |
finalize()
Finalizer for this class.
|
PointList |
getBounds()
Gets the boundaries of the document detected, in the following order: top-left, top-right, bottom-right, bottom-left.
|
int |
getConfidence()
Gets the confidence score of the detected document, from 0 to 100.
|
long |
getHandle()
Gets the native handle.
|
DocumentInfo |
getInfo()
Gets the document information.
|
DocumentOrientation |
getOrientation()
Gets the document orientation in source image. [0,0,0] means the document is in front of the camera.
|
void |
setBounds(PointList bounds)
Sets the boundaries of the document detected, in the following order: top-left, top-right, bottom-right, bottom-left.
|
public DetectedDocument()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public DetectedDocument(long handle)
throws DocumentException
handle - Handle to the DetectedDocument.DocumentException - An error has occurred during Document Library execution.public void close()
close in interface java.lang.AutoCloseableprotected void finalize()
finalize in class java.lang.Objectpublic long getHandle()
public DetectedDocument clone() throws DocumentException
clone in class java.lang.ObjectDocumentException - An error has occurred during Document Library execution.public PointList getBounds() throws DocumentException
DocumentException - An error has occurred during Document Library execution.public void setBounds(PointList bounds) throws DocumentException
bounds - Boundaries of the document detected, in the following order: top-left, top-right, bottom-right, bottom-left.DocumentException - An error has occurred during Document Library execution.public int getConfidence()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public DocumentInfo getInfo() throws DocumentException
DocumentException - An error has occurred during Document Library execution.public DocumentOrientation getOrientation() throws DocumentException
DocumentException - An error has occurred during Document Library execution.Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.document