Skip to content

Commit

Permalink
[Vision] Update bindings for Xcode 13.0 beta 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelkang committed Aug 17, 2021
1 parent 4fa8ae9 commit cb1bfd6
Show file tree
Hide file tree
Showing 8 changed files with 328 additions and 313 deletions.
16 changes: 16 additions & 0 deletions src/Vision/VNUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@ public static partial class VNUtils {
[DllImport (Constants.VisionLibrary, EntryPoint = "VNNormalizedRectForImageRect")]
public static extern CGRect GetNormalizedRect (CGRect imageRect, nuint imageWidth, nuint imageHeight);

[TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[DllImport (Constants.VisionLibrary, EntryPoint="VNImagePointForNormalizedPointUsingRegionOfInterest")]
public static extern CGPoint GetImagePoint (CGPoint normalizedPoint, nuint imageWidth, nuint imageHeight, CGRect roi);

[TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[DllImport (Constants.VisionLibrary, EntryPoint="VNNormalizedPointForImagePointUsingRegionOfInterest")]
public static extern CGPoint GetNormalizedPoint (CGPoint imagePoint, nuint imageWidth, nuint imageHeight, CGRect roi);

[TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[DllImport (Constants.VisionLibrary, EntryPoint="VNImageRectForNormalizedRectUsingRegionOfInterest")]
public static extern CGRect GetImageRect (CGRect normalizedRect, nuint imageWidth, nuint imageHeight, CGRect roi);

[TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[DllImport (Constants.VisionLibrary, EntryPoint="VNNormalizedRectForImageRectUsingRegionOfInterest")]
public static extern CGRect GetNormalizedRect (CGRect imageRect, nuint imageWidth, nuint imageHeight, CGRect roi);

[DllImport ("__Internal", EntryPoint = "xamarin_CGPoint__VNNormalizedFaceBoundingBoxPointForLandmarkPoint_Vector2_CGRect_nuint_nuint_string")]
static extern CGPoint VNNormalizedFaceBoundingBoxPointForLandmarkPoint (Vector2 faceLandmarkPoint, CGRect faceBoundingBox, nuint imageWidth, nuint imageHeight, out IntPtr error);

Expand Down
Loading

0 comments on commit cb1bfd6

Please sign in to comment.