Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vision] Update bindings for Xcode 13.0 beta 1 #12460

Merged
merged 10 commits into from
Aug 26, 2021
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);
rolfbjarne marked this conversation as resolved.
Show resolved Hide resolved

[TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
rolfbjarne marked this conversation as resolved.
Show resolved Hide resolved
[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