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] Add support for Xcode 14 beta 1,2 & 3 #15538

Merged
merged 4 commits into from
Jul 19, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/vision.cs
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@ namespace Vision {
[TV (11,0), Mac (10,13), iOS (11,0)]
[Native]
enum VNErrorCode : long {
TuriCore = -1,
Ok = 0,
RequestCancelled,
InvalidFormat,
@@ -59,6 +60,7 @@ enum VNErrorCode : long {
DataUnavailable,
TimeStampNotFound,
UnsupportedRequest,
Timeout,
}

[TV (11,0), Mac (10,13), iOS (11,0)]
@@ -74,6 +76,8 @@ enum VNImageCropAndScaleOption : ulong {
CenterCrop = 0,
ScaleFit = 1,
ScaleFill = 2,
ScaleFitRotate90CCW = 256 + ScaleFit,
ScaleFillRotate90CCW = 256 + ScaleFill,
}

[TV (11,0), Mac (10,13), iOS (11,0)]
@@ -663,6 +667,15 @@ public enum VNGeneratePersonSegmentationRequestQualityLevel : ulong
Fast,
}

[TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[Native]
public enum VNPointsClassification : long
{
Disconnected = 0,
OpenPath,
ClosedPath,
}

[TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[BaseType (typeof(VNDetectedObjectObservation))]
[DisableDefaultCtor]
@@ -1081,6 +1094,10 @@ interface VNFaceLandmarkRegion2D {
[BindAs (typeof (nfloat []))]
[NullAllowed, Export ("precisionEstimatesPerPoint")]
NSNumber [] PrecisionEstimatesPerPoint { get; }

[TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[Export ("pointsClassification")]
VNPointsClassification PointsClassification { get; }
}

[TV (11,0), Mac (10,13), iOS (11,0)]
@@ -1837,6 +1854,10 @@ interface VNHorizonObservation {

[Export ("angle")]
nfloat Angle { get; }

[TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[Export ("transformForImageWidth:height:")]
CGAffineTransform TransformForImageWidth (nuint width, nuint height);
}

[TV (11,0), Mac (10,13), iOS (11,0)]
@@ -2829,6 +2850,10 @@ interface VNRecognizeTextRequest : VNRequestProgressProviding {
[Static]
[Export ("currentRevision")]
VNRecognizeTextRequestRevision CurrentRevision { get; }

[TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[Export ("automaticallyDetectsLanguage")]
bool AutomaticallyDetectsLanguage { get; set; }
}

[TV (13,0), Mac (10,15), iOS (13,0)]
@@ -3477,6 +3502,10 @@ interface VNGenerateOpticalFlowRequest {
[Static]
[Export ("currentRevision")]
VNGenerateOpticalFlowRequestRevision CurrentRevision { get; }

[TV (16,0), Mac (13,0), iOS (16,0)]
[Export ("keepNetworkOutput")]
bool KeepNetworkOutput { get; set; }
}

[TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
11 changes: 0 additions & 11 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-Vision.todo

This file was deleted.

11 changes: 0 additions & 11 deletions tests/xtro-sharpie/api-annotations-dotnet/macOS-Vision.todo

This file was deleted.

11 changes: 0 additions & 11 deletions tests/xtro-sharpie/api-annotations-dotnet/tvOS-Vision.todo

This file was deleted.

11 changes: 0 additions & 11 deletions tests/xtro-sharpie/iOS-Vision.todo

This file was deleted.

11 changes: 0 additions & 11 deletions tests/xtro-sharpie/macOS-Vision.todo

This file was deleted.

11 changes: 0 additions & 11 deletions tests/xtro-sharpie/tvOS-Vision.todo

This file was deleted.