Class ElementPosition
- java.lang.Object
-
- com.regula.documentreader.api.results.ElementPosition
-
public class ElementPosition extends java.lang.Object
structure is used for storing element bounds detection result.
-
-
Field Summary
Fields Modifier and Type Field Description double
angle
element rotation angleCoordinate
center
center of element coordinatesint
docFormat
document formatint
dpi
element dpiint
height
element heightint
inverse
internal use parameterCoordinate
leftBottom
left bottom corner coordinatesCoordinate
leftTop
left top corner coordinatesint
objArea
internal use parameterint
objIntAngleDev
internal use parameterint
pageIndex
int
perspectiveTr
internal use parameterint
resultStatus
one ofeCheckResult
values, indicating if element bounds are "stable" - detected confidently and not significantly movingCoordinate
rightBottom
right bottom corner coordinatesCoordinate
rightTop
right top corner coordinatesint
width
element width
-
Constructor Summary
Constructors Constructor Description ElementPosition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ElementPosition
fromJson(java.lang.String json)
static ElementPosition
fromJson(JSONObject object)
java.lang.String
toJson()
Method convert object to string in json formatJSONObject
toJsonObject()
-
-
-
Field Detail
-
docFormat
public int docFormat
document format
-
width
public int width
element width
-
height
public int height
element height
-
angle
public double angle
element rotation angle
-
dpi
public int dpi
element dpi
-
inverse
public int inverse
internal use parameter
-
perspectiveTr
public int perspectiveTr
internal use parameter
-
objArea
public int objArea
internal use parameter
-
objIntAngleDev
public int objIntAngleDev
internal use parameter
-
resultStatus
public int resultStatus
one ofeCheckResult
values, indicating if element bounds are "stable" - detected confidently and not significantly moving
-
center
public Coordinate center
center of element coordinates
-
leftTop
public Coordinate leftTop
left top corner coordinates
-
leftBottom
public Coordinate leftBottom
left bottom corner coordinates
-
rightTop
public Coordinate rightTop
right top corner coordinates
-
rightBottom
public Coordinate rightBottom
right bottom corner coordinates
-
pageIndex
public int pageIndex
-
-
Method Detail
-
toJsonObject
public JSONObject toJsonObject()
-
toJson
public java.lang.String toJson()
Method convert object to string in json format- Returns:
- string in json format
-
fromJson
public static ElementPosition fromJson(java.lang.String json)
-
fromJson
public static ElementPosition fromJson(JSONObject object)
-
-