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
Modifier and Type Method Description static CGPointgetImagePointForFaceLandmarkPoint(VectorFloat2 faceLandmarkPoint, CGRect faceBoundingBox, long imageWidth, long imageHeight)static CGPointgetImagePointForNormalizedPoint(CGPoint normalizedPoint, long imageWidth, long imageHeight)static CGPointgetImagePointForNormalizedPointUsingRegionOfInterest(CGPoint normalizedPoint, long imageWidth, long imageHeight, CGRect roi)static CGRectgetImageRectForNormalizedRect(CGRect normalizedRect, long imageWidth, long imageHeight)static CGRectgetImageRectForNormalizedRectUsingRegionOfInterest(CGRect normalizedRect, long imageWidth, long imageHeight, CGRect roi)static CGPointgetNormalizedFaceBoundingBoxPointForLandmarkPoint(VectorFloat2 faceLandmarkPoint, CGRect faceBoundingBox, long imageWidth, long imageHeight)static CGRectgetNormalizedIdentityRect()static CGPointgetNormalizedPointForImagePoint(CGPoint imagePoint, long imageWidth, long imageHeight)static CGPointgetNormalizedPointForImagePointUsingRegionOfInterest(CGPoint imagePoint, long imageWidth, long imageHeight, CGRect roi)static CGRectgetNormalizedRectForImageRect(CGRect imageRect, long imageWidth, long imageHeight)static CGRectgetNormalizedRectForImageRectUsingRegionOfInterest(CGRect imageRect, long imageWidth, long imageHeight, CGRect roi)static booleangetNormalizedRectIsIdentityRect(CGRect normalizedRect)static doublegetVisionVerison()
-
Constructor Details
-
VNUtils
public VNUtils()
-
-
Method Details
-
getNormalizedIdentityRect
- Since:
- Available in iOS 11.0 and later.
-
getVisionVerison
public static double getVisionVerison()- Since:
- Available in iOS 11.0 and later.
-
getNormalizedRectIsIdentityRect
- 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.
-
getImagePointForNormalizedPointUsingRegionOfInterest
public static CGPoint getImagePointForNormalizedPointUsingRegionOfInterest(CGPoint normalizedPoint, long imageWidth, long imageHeight, CGRect roi)- Since:
- Available in iOS 15.0 and later.
-
getNormalizedPointForImagePoint
public static CGPoint getNormalizedPointForImagePoint(CGPoint imagePoint, long imageWidth, long imageHeight)- Since:
- Available in iOS 14.0 and later.
-
getNormalizedPointForImagePointUsingRegionOfInterest
public static CGPoint getNormalizedPointForImagePointUsingRegionOfInterest(CGPoint imagePoint, long imageWidth, long imageHeight, CGRect roi)- Since:
- Available in iOS 15.0 and later.
-
getImageRectForNormalizedRect
public static CGRect getImageRectForNormalizedRect(CGRect normalizedRect, long imageWidth, long imageHeight)- Since:
- Available in iOS 11.0 and later.
-
getImageRectForNormalizedRectUsingRegionOfInterest
public static CGRect getImageRectForNormalizedRectUsingRegionOfInterest(CGRect normalizedRect, long imageWidth, long imageHeight, CGRect roi)- Since:
- Available in iOS 15.0 and later.
-
getNormalizedRectForImageRect
public static CGRect getNormalizedRectForImageRect(CGRect imageRect, long imageWidth, long imageHeight)- Since:
- Available in iOS 11.0 and later.
-
getNormalizedRectForImageRectUsingRegionOfInterest
public static CGRect getNormalizedRectForImageRectUsingRegionOfInterest(CGRect imageRect, long imageWidth, long imageHeight, CGRect roi)- Since:
- Available in iOS 15.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.
-