Class ElementPosition


  • public class ElementPosition
    extends java.lang.Object
    structure is used for storing element bounds detection result.
    • 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 of eCheckResult 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
    • Constructor Detail

      • ElementPosition

        public ElementPosition()
    • 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)