Package org.robovm.apple.vision
Class VNUtils
- java.lang.Object
-
- org.robovm.apple.foundation.CocoaUtility
-
- org.robovm.apple.vision.VNUtils
-
public class VNUtils extends CocoaUtility
-
-
Constructor Summary
Constructors Constructor Description VNUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CGPoint
getImagePointForFaceLandmarkPoint(VectorFloat2 faceLandmarkPoint, CGRect faceBoundingBox, long imageWidth, long imageHeight)
static CGPoint
getImagePointForNormalizedPoint(CGPoint normalizedPoint, long imageWidth, long imageHeight)
static CGRect
getImageRectForNormalizedRect(CGRect normalizedRect, long imageWidth, long imageHeight)
static CGPoint
getNormalizedFaceBoundingBoxPointForLandmarkPoint(VectorFloat2 faceLandmarkPoint, CGRect faceBoundingBox, long imageWidth, long imageHeight)
static CGRect
getNormalizedIdentityRect()
static CGRect
getNormalizedRectForImageRect(CGRect imageRect, long imageWidth, long imageHeight)
static boolean
getNormalizedRectIsIdentityRect(CGRect normalizedRect)
static double
getVisionVerison()
-
-
-
Method Detail
-
getNormalizedIdentityRect
public static CGRect getNormalizedIdentityRect()
- Since:
- Available in iOS 11.0 and later.
-
getVisionVerison
public static double getVisionVerison()
- Since:
- Available in iOS 11.0 and later.
-
getNormalizedRectIsIdentityRect
public static boolean getNormalizedRectIsIdentityRect(CGRect normalizedRect)
- Since:
- Available in iOS 11.0 and later.
-
getImagePointForNormalizedPoint
public static CGPoint getImagePointForNormalizedPoint(CGPoint normalizedPoint, long imageWidth, long imageHeight)
- Since:
- Available in iOS 11.0 and later.
-
getImageRectForNormalizedRect
public static CGRect getImageRectForNormalizedRect(CGRect normalizedRect, long imageWidth, long imageHeight)
- Since:
- Available in iOS 11.0 and later.
-
getNormalizedRectForImageRect
public static CGRect getNormalizedRectForImageRect(CGRect imageRect, long imageWidth, long imageHeight)
- Since:
- Available in iOS 11.0 and later.
-
getNormalizedFaceBoundingBoxPointForLandmarkPoint
public static CGPoint getNormalizedFaceBoundingBoxPointForLandmarkPoint(VectorFloat2 faceLandmarkPoint, CGRect faceBoundingBox, long imageWidth, long imageHeight)
- Since:
- Available in iOS 11.0 and later.
-
getImagePointForFaceLandmarkPoint
public static CGPoint getImagePointForFaceLandmarkPoint(VectorFloat2 faceLandmarkPoint, CGRect faceBoundingBox, long imageWidth, long imageHeight)
- Since:
- Available in iOS 11.0 and later.
-
-