Package io.scanbot.sdk.util
Class PolygonHelper
-
- All Implemented Interfaces:
public final class PolygonHelper
Helper methods for Polygons.
-
-
Constructor Summary
Constructors Constructor Description PolygonHelper()
-
Method Summary
Modifier and Type Method Description final static ArrayList<PointF>
getFullPolygon()
Provide Polygon, covering whole image {(0,0), (0,1), (1,1), (1,0)} final static ArrayList<PointF>
getFullPolygonСCW()
Provide contra-clockwise Polygon, covering whole image {(0,0), (1,0), (1,1), (0,1)} final static List<PointF>
rotatePolygon(List<PointF> polygon, Float rotation)
Rotate polygon. final static Float
approximatePolygonAspectRatio(List<PointF> polygon, Integer frameWidth, Integer frameHeight, Integer frameOrientation)
Approximate polygon aspect ratio. -
-
Method Detail
-
getFullPolygon
final static ArrayList<PointF> getFullPolygon()
Provide Polygon, covering whole image {(0,0), (0,1), (1,1), (1,0)}
-
getFullPolygonСCW
final static ArrayList<PointF> getFullPolygonСCW()
Provide contra-clockwise Polygon, covering whole image {(0,0), (1,0), (1,1), (0,1)}
-
rotatePolygon
final static List<PointF> rotatePolygon(List<PointF> polygon, Float rotation)
Rotate polygon.
-
-
-
-