Class ElementPosition
java.lang.Object
com.regula.documentreader.api.results.ElementPosition
structure is used for storing element bounds detection result.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
element rotation anglecenter of element coordinatesint
document formatint
element dpiint
element heightint
internal use parameterleft bottom corner coordinatesleft top corner coordinatesint
internal use parameterint
internal use parameterint
int
internal use parameterint
one ofeCheckResult
values, indicating if element bounds are "stable" - detected confidently and not significantly movingright bottom corner coordinatesright top corner coordinatesint
element width -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ElementPosition
static ElementPosition
fromJson
(JSONObject object) toJson()
Method convert object to string in json formatJSONObject
-
Field Details
-
docFormat
public int docFormatdocument format -
width
public int widthelement width -
height
public int heightelement height -
angle
public double angleelement rotation angle -
dpi
public int dpielement dpi -
inverse
public int inverseinternal use parameter -
perspectiveTr
public int perspectiveTrinternal use parameter -
objArea
public int objAreainternal use parameter -
objIntAngleDev
public int objIntAngleDevinternal use parameter -
resultStatus
public int resultStatusone ofeCheckResult
values, indicating if element bounds are "stable" - detected confidently and not significantly moving -
center
center of element coordinates -
leftTop
left top corner coordinates -
leftBottom
left bottom corner coordinates -
rightTop
right top corner coordinates -
rightBottom
right bottom corner coordinates -
pageIndex
public int pageIndex
-
-
Constructor Details
-
ElementPosition
public ElementPosition()
-
-
Method Details
-
toJsonObject
public JSONObject toJsonObject() -
toJson
Method convert object to string in json format- Returns:
- string in json format
-
fromJson
-
fromJson
-