Class VNUtils


public class VNUtils
extends CocoaUtility
  • Constructor Details

    • VNUtils

      public VNUtils()
  • Method Details

    • 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.
    • 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.