public class RotatableBoundingBoxFactory extends Object
RotatableBoundingBox
.Modifier and Type | Method and Description |
---|---|
static RotatableBoundingBox |
create(IntToFloatFunction extractElement,
Point2i anchorPoint)
Builds a bounding-box from the 5-element floating-point vector returned from the EAST
algorithm.
|
public static RotatableBoundingBox create(IntToFloatFunction extractElement, Point2i anchorPoint)
The bounding-boxes are encoded in RBOX format, see the original EAST paper Zhou et al. 2017.
A C++ example of calling EAST via OpenCV can be found on GitHub.
The vector is ordered as follows:
extractElement
- extracts an element from the vector, corresponding to indices 0-5
inclusive.anchorPoint
- the anchor point for the object, about which rotation occurs, and the
corners of the bounding box are expressed relative to.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.