diff --git a/src/Vision/VNUtils.cs b/src/Vision/VNUtils.cs index 1e32dd810107..57a35a2d362b 100644 --- a/src/Vision/VNUtils.cs +++ b/src/Vision/VNUtils.cs @@ -54,6 +54,50 @@ public static partial class VNUtils { [DllImport (Constants.VisionLibrary, EntryPoint = "VNNormalizedRectForImageRect")] public static extern CGRect GetNormalizedRect (CGRect imageRect, nuint imageWidth, nuint imageHeight); +#if NET + [SupportedOSPlatform ("ios15.0")] + [SupportedOSPlatform ("tvos15.0")] + [SupportedOSPlatform ("macos12.0")] + [SupportedOSPlatform ("maccatalyst15.0")] +#else + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] +#endif + [DllImport (Constants.VisionLibrary, EntryPoint="VNImagePointForNormalizedPointUsingRegionOfInterest")] + public static extern CGPoint GetImagePoint (CGPoint normalizedPoint, nuint imageWidth, nuint imageHeight, CGRect regionOfInterest); + +#if NET + [SupportedOSPlatform ("ios15.0")] + [SupportedOSPlatform ("tvos15.0")] + [SupportedOSPlatform ("macos12.0")] + [SupportedOSPlatform ("maccatalyst15.0")] +#else + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] +#endif + [DllImport (Constants.VisionLibrary, EntryPoint="VNNormalizedPointForImagePointUsingRegionOfInterest")] + public static extern CGPoint GetNormalizedPoint (CGPoint imagePoint, nuint imageWidth, nuint imageHeight, CGRect regionOfInterest); + +#if NET + [SupportedOSPlatform ("ios15.0")] + [SupportedOSPlatform ("tvos15.0")] + [SupportedOSPlatform ("macos12.0")] + [SupportedOSPlatform ("maccatalyst15.0")] +#else + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] +#endif + [DllImport (Constants.VisionLibrary, EntryPoint="VNImageRectForNormalizedRectUsingRegionOfInterest")] + public static extern CGRect GetImageRect (CGRect normalizedRect, nuint imageWidth, nuint imageHeight, CGRect regionOfInterest); + +#if NET + [SupportedOSPlatform ("ios15.0")] + [SupportedOSPlatform ("tvos15.0")] + [SupportedOSPlatform ("macos12.0")] + [SupportedOSPlatform ("maccatalyst15.0")] +#else + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] +#endif + [DllImport (Constants.VisionLibrary, EntryPoint="VNNormalizedRectForImageRectUsingRegionOfInterest")] + public static extern CGRect GetNormalizedRect (CGRect imageRect, nuint imageWidth, nuint imageHeight, CGRect regionOfInterest); + [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); diff --git a/src/vision.cs b/src/vision.cs index 7bce67637847..fa02897cca56 100644 --- a/src/vision.cs +++ b/src/vision.cs @@ -48,6 +48,7 @@ enum VNErrorCode : long { UnsupportedRevision, DataUnavailable, TimeStampNotFound, + UnsupportedRequest, } [TV (11,0), Mac (10,13), iOS (11,0)] @@ -117,6 +118,39 @@ enum VNBarcodeSymbology { [Field ("VNBarcodeSymbologyUPCE")] Upce, + + [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [Field ("VNBarcodeSymbologyCodabar")] + Codabar, + + [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [Field ("VNBarcodeSymbologyGS1DataBar")] + GS1DataBar, + + [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [Field ("VNBarcodeSymbologyGS1DataBarExpanded")] + GS1DataBarExpanded, + + [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [Field ("VNBarcodeSymbologyGS1DataBarLimited")] + GS1DataBarLimited, + + [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [Field ("VNBarcodeSymbologyMicroPDF417")] + MicroPdf417, + + [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [Field ("VNBarcodeSymbologyMicroQR")] + MicroQR, + } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum VNChirality : long + { + Unknown = 0, + Left = -1, + Right = 1, } [TV (12,0), Mac (10,14), iOS (12,0)] @@ -134,11 +168,13 @@ enum VNCoreMLRequestRevision : ulong { One = 1, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12,0), Mac (10,14), iOS (12,0), MacCatalyst (15,0)] [Native] enum VNDetectBarcodesRequestRevision : ulong { Unspecified = 0, One = 1, + [TV (15,0), Mac (12,0), iOS (15,0)] + Two = 2, } [TV (12,0), Mac (10,14), iOS (12,0)] @@ -151,12 +187,14 @@ enum VNDetectFaceLandmarksRequestRevision : ulong { Three = 3, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12,0), Mac (10,14), iOS (12,0), MacCatalyst (15,0)] [Native] enum VNDetectFaceRectanglesRequestRevision : ulong { Unspecified = 0, One = 1, Two = 2, + [TV (15,0), Mac (12,0), iOS (15,0)] + Three = 3, } [TV (12,0), Mac (10,14), iOS (12,0)] @@ -265,6 +303,12 @@ enum VNClassifyImageRequestRevision : ulong { One = 1, } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + enum VNDetectDocumentSegmentationRequestRevision : ulong { + One = 1, + } + [TV (13,0), Mac (10,15), iOS (13,0)] [Native] enum VNDetectFaceCaptureQualityRequestRevision : ulong { @@ -287,6 +331,8 @@ enum VNRequestFaceLandmarksConstellation : ulong { enum VNDetectHumanRectanglesRequestRevision : ulong { Unspecified = 0, One = 1, + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + Two = 2, } [TV (13,0), Mac (10,15), iOS (13,0)] @@ -315,6 +361,8 @@ enum VNGenerateObjectnessBasedSaliencyImageRequestRevision : ulong { enum VNRecognizeAnimalsRequestRevision : ulong { Unspecified = 0, One = 1, + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + Two = 2, } [TV (13,0), Mac (10,15), iOS (13,0)] @@ -391,6 +439,12 @@ enum VNGenerateOpticalFlowRequestRevision : ulong { One = 1, } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + enum VNGeneratePersonSegmentationRequestRevision : ulong { + One = 1, + } + [TV (14,0), Mac (11,0), iOS (14,0)] [MacCatalyst (14,0)] [Native] @@ -590,6 +644,25 @@ enum VNHumanHandPoseObservationJointsGroupName { All, } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum VNGeneratePersonSegmentationRequestQualityLevel : ulong + { + Accurate = 0, + Balanced, + Fast, + } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof(VNDetectedObjectObservation))] + [DisableDefaultCtor] + interface VNHumanObservation + { + [NullAllowed] + [Export ("upperBodyOnly")] + bool UpperBodyOnly { get; } + } + [TV (11,0), Mac (10,13), iOS (11,0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -672,6 +745,9 @@ interface VNDetectBarcodesRequest { [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'GetSupportedSymbologies' instead.")] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'GetSupportedSymbologies' instead.")] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'GetSupportedSymbologies' instead.")] [Static] [Protected] [Export ("supportedSymbologies", ArgumentSemantic.Copy)] @@ -681,10 +757,24 @@ interface VNDetectBarcodesRequest { [Wrap ("VNBarcodeSymbologyExtensions.GetValues (WeakSupportedSymbologies)")] VNBarcodeSymbology [] SupportedSymbologies { get; } + [Protected] + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("supportedSymbologiesAndReturnError:")] + [return: NullAllowed] + NSString [] GetWeakSupportedSymbologies ([NullAllowed] out NSError error); + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Wrap ("VNBarcodeSymbologyExtensions.GetValues (GetWeakSupportedSymbologies (out error))")] + VNBarcodeSymbology [] GetSupportedSymbologies ([NullAllowed] out NSError error); + [Protected] [Export ("symbologies", ArgumentSemantic.Copy)] NSString [] WeakSymbologies { get; set; } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNBarcodeObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -732,6 +822,10 @@ interface VNDetectFaceLandmarksRequest : VNFaceObservationAccepting { [Export ("constellation", ArgumentSemantic.Assign)] VNRequestFaceLandmarksConstellation Constellation { get; set; } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNFaceObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -770,6 +864,10 @@ interface VNDetectFaceRectanglesRequest { [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNFaceObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -808,6 +906,10 @@ interface VNDetectHorizonRequest { [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNHorizonObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -864,6 +966,10 @@ interface VNDetectRectanglesRequest { [Export ("maximumObservations")] nuint MaximumObservations { get; set; } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNRectangleObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -905,6 +1011,10 @@ interface VNDetectTextRectanglesRequest { [Export ("reportCharacterBoxes")] bool ReportCharacterBoxes { get; set; } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNTextObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -1162,6 +1272,10 @@ interface VNImageRegistrationRequest { [BaseType (typeof (VNImageRegistrationRequest))] interface VNTranslationalImageRegistrationRequest { + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNImageTranslationAlignmentObservation[] Results { get; } + // Inlined from parent class [Export ("initWithTargetedCVPixelBuffer:options:")] IntPtr Constructor (CVPixelBuffer pixelBuffer, NSDictionary optionsDict); @@ -1310,6 +1424,10 @@ interface VNTranslationalImageRegistrationRequest { [BaseType (typeof (VNImageRegistrationRequest))] interface VNHomographicImageRegistrationRequest { + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNImageHomographicAlignmentObservation[] Results { get; } + // Inlined from parent class [Export ("initWithTargetedCVPixelBuffer:options:")] IntPtr Constructor (CVPixelBuffer pixelBuffer, NSDictionary optionsDict); @@ -1494,6 +1612,10 @@ interface VNDetectedObjectObservation { [Export ("boundingBox", ArgumentSemantic.Assign)] CGRect BoundingBox { get; } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("globalSegmentationMask")] + VNPixelBufferObservation GlobalSegmentationMask { get; } } [TV (11,0), Mac (10,13), iOS (11,0)] @@ -1514,11 +1636,19 @@ interface VNFaceObservation { [Export ("observationWithRequestRevision:boundingBox:")] VNFaceObservation FromBoundingBox (VNFaceObservationRequestRevision requestRevision, CGRect boundingBox); + [Deprecated (PlatformName.MacOSX, 12, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.TvOS, 15, 0)] [TV (12,0), Mac (10,14), iOS (12,0)] [Static] [Export ("faceObservationWithRequestRevision:boundingBox:roll:yaw:")] VNFaceObservation FromBoundingBox (VNFaceObservationRequestRevision requestRevision, CGRect boundingBox, [NullAllowed] [BindAs (typeof (nfloat?))] NSNumber roll, [NullAllowed] [BindAs (typeof (nfloat?))] NSNumber yaw); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Static] + [Export ("faceObservationWithRequestRevision:boundingBox:roll:yaw:pitch:")] + VNFaceObservation FromBoundingBox (VNFaceObservationRequestRevision requestRevision, CGRect boundingBox, [NullAllowed] [BindAs (typeof (nfloat?))] NSNumber roll, [NullAllowed] [BindAs (typeof (nfloat?))] NSNumber yaw, [NullAllowed] [BindAs (typeof (nfloat?))] NSNumber pitch); + [TV (13,0), Mac (10,15), iOS (13,0)] [BindAs (typeof (float?))] [NullAllowed, Export ("faceCaptureQuality", ArgumentSemantic.Strong)] @@ -1533,6 +1663,11 @@ interface VNFaceObservation { [BindAs (typeof (nfloat?))] [NullAllowed, Export ("yaw", ArgumentSemantic.Strong)] NSNumber Yaw { get; } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BindAs (typeof (nfloat?))] + [NullAllowed, Export ("pitch", ArgumentSemantic.Strong)] + NSNumber Pitch { get; } } [TV (12,0), Mac (10,14), iOS (12,0)] @@ -2265,11 +2400,23 @@ interface VNClassifyImageRequest { [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'GetSupportedIdentifiers' instead.")] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'GetSupportedIdentifiers' instead.")] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'GetSupportedIdentifiers' instead.")] [Static] [Export ("knownClassificationsForRevision:error:")] [return: NullAllowed] VNClassificationObservation [] GetKnownClassifications (VNClassifyImageRequestRevision revision, [NullAllowed] out NSError error); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("supportedIdentifiersAndReturnError:")] + [return: NullAllowed] + NSString[] GetSupportedIdentifiers ([NullAllowed] out NSError error); + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNClassificationObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -2303,6 +2450,10 @@ interface VNDetectFaceCaptureQualityRequest : VNFaceObservationAccepting { [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNFaceObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -2336,6 +2487,14 @@ interface VNDetectHumanRectanglesRequest { [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("upperBodyOnly")] + bool UpperBodyOnly { get; set; } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNHumanObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -2369,6 +2528,10 @@ interface VNGenerateAttentionBasedSaliencyImageRequest { [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNRecognizedTextObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -2405,6 +2568,10 @@ interface VNGenerateImageFeaturePrintRequest { [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNFeaturePrintObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -2438,6 +2605,10 @@ interface VNGenerateObjectnessBasedSaliencyImageRequest { [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNSaliencyImageObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -2465,7 +2636,7 @@ interface VNGenerateObjectnessBasedSaliencyImageRequest { [TV (13,0), Mac (10,15), iOS (13,0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface VNRecognizedText : NSCopying, NSSecureCoding { + interface VNRecognizedText : NSCopying, NSSecureCoding, VNRequestRevisionProviding { [Export ("string")] string String { get; } @@ -2538,16 +2709,29 @@ enum VNAnimalIdentifier { [DisableDefaultCtor] interface VNRecognizeAnimalsRequest { + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'GetSupportedIdentifiers' instead.")] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'GetSupportedIdentifiers' instead.")] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'GetSupportedIdentifiers' instead.")] [Static] [Export ("knownAnimalIdentifiersForRevision:error:")] [return: NullAllowed] [return: BindAs (typeof (VNAnimalIdentifier []))] NSString [] GetKnownAnimalIdentifiers (VNRecognizeAnimalsRequestRevision revision, [NullAllowed] out NSError error); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("supportedIdentifiersAndReturnError:")] + [return: NullAllowed] + [return: BindAs (typeof (VNAnimalIdentifier []))] + NSString [] GetSupportedIdentifiers ([NullAllowed] out NSError error); + [Export ("initWithCompletionHandler:")] [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNRecognizedObjectObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -2577,11 +2761,19 @@ interface VNRecognizeAnimalsRequest { [DisableDefaultCtor] interface VNRecognizeTextRequest : VNRequestProgressProviding { + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'GetSupportedRecognitionLanguages' instead.")] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'GetSupportedRecognitionLanguages' instead.")] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'GetSupportedRecognitionLanguages' instead.")] [Static] [Export ("supportedRecognitionLanguagesForTextRecognitionLevel:revision:error:")] [return: NullAllowed] string [] GetSupportedRecognitionLanguages (VNRequestTextRecognitionLevel textRecognitionLevel, VNRecognizeTextRequestRevision revision, [NullAllowed] out NSError error); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("supportedRecognitionLanguagesAndReturnError:")] + [return: NullAllowed] + NSString[] GetSupportedRecognitionLanguages ([NullAllowed] out NSError error); + [Export ("recognitionLanguages", ArgumentSemantic.Copy)] string [] RecognitionLanguages { get; set; } @@ -2601,6 +2793,10 @@ interface VNRecognizeTextRequest : VNRequestProgressProviding { [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNRecognizedTextObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -2651,6 +2847,10 @@ interface VNDetectContoursRequest { [Export ("contrastAdjustment")] float ContrastAdjustment { get; set; } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("contrastPivot", ArgumentSemantic.Assign)] + NSNumber ContrastPivot { get; set; } + [Export ("detectsDarkOnLight")] bool DetectsDarkOnLight { get; set; } @@ -2661,6 +2861,10 @@ interface VNDetectContoursRequest { [DesignatedInitializer] IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNContoursObservation[] Results { get; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -2778,6 +2982,10 @@ interface VNHumanHandPoseObservation { [Export ("recognizedPointsForJointsGroupName:error:")] [return: NullAllowed] NSDictionary GetRecognizedPoints ([BindAs (typeof (VNHumanHandPoseObservationJointsGroupName))] NSString jointsGroupName, [NullAllowed] out NSError error); + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("chirality")] + VNChirality Chirality { get; } } [TV (14,0), Mac (11,0), iOS (14,0)] @@ -2853,6 +3061,10 @@ interface VNDetectTrajectoriesRequest { [NullAllowed, Export ("results", ArgumentSemantic.Copy)] VNTrajectoryObservation [] Results { get; } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("targetFrameTime", ArgumentSemantic.Assign)] + CMTime TargetFrameTime { get; set; } + // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. @@ -3108,6 +3320,10 @@ interface VNGenerateOpticalFlowRequest { [Export ("outputPixelFormat")] CVPixelFormatType OutputPixelFormat { get; set; } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNPixelBufferObservation[] Results { get; } + // Inlined from parent class [Export ("initWithTargetedCVPixelBuffer:options:")] IntPtr Constructor (CVPixelBuffer pixelBuffer, NSDictionary optionsDict); @@ -3253,6 +3469,31 @@ interface VNGenerateOpticalFlowRequest { VNGenerateOpticalFlowRequestRevision CurrentRevision { get; } } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof(VNStatefulRequest))] + interface VNGeneratePersonSegmentationRequest + { + [Static] + [Export ("new")] + [return: Release] + VNGeneratePersonSegmentationRequest Create (); + + [Export ("initWithCompletionHandler:")] + IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + + [Export ("initWithFrameAnalysisSpacing:completionHandler:")] + IntPtr Constructor (CMTime frameAnalysisSpacing, [NullAllowed] VNRequestCompletionHandler completionHandler); + + [Export ("qualityLevel", ArgumentSemantic.Assign)] + VNGeneratePersonSegmentationRequestQualityLevel QualityLevel { get; set; } + + [Export ("outputPixelFormat")] + uint OutputPixelFormat { get; set; } + + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNPixelBufferObservation[] Results { get; } + } + [TV (14,0), Mac (11,0), iOS (14,0)] [MacCatalyst (14,0)] [BaseType (typeof (VNObservation))] @@ -3270,6 +3511,10 @@ Vector3 EquationCoefficients { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("movingAverageRadius")] + nfloat MovingAverageRadius { get; } } [TV (14,0), Mac (11,0), iOS (14,0)] @@ -3450,4 +3695,16 @@ interface VNVideoProcessorRequestProcessingOptions : NSCopying { [NullAllowed, Export ("cadence", ArgumentSemantic.Copy)] VNVideoProcessorCadence Cadence { get; set; } } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof(VNImageBasedRequest))] + interface VNDetectDocumentSegmentationRequest + { + [Export ("initWithCompletionHandler:")] + [DesignatedInitializer] + IntPtr Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); + + [NullAllowed, Export ("results", ArgumentSemantic.Copy)] + VNRectangleObservation[] Results { get; } + } } diff --git a/tests/monotouch-test/Vision/VNUtilsTests.cs b/tests/monotouch-test/Vision/VNUtilsTests.cs new file mode 100644 index 000000000000..2f6adeba4b5a --- /dev/null +++ b/tests/monotouch-test/Vision/VNUtilsTests.cs @@ -0,0 +1,60 @@ +// +// Unit tests for VNUtils +// +// Authors: +// Rachel Kang +// +// Copyright (c) Microsoft Corporation. +// + +#if !__WATCHOS__ + +using System; +using System.Collections; +using System.Collections.Generic; +using NUnit.Framework; +using OpenTK; + +using CoreGraphics; +using Foundation; +using Vision; + +namespace MonoTouchFixtures.Vision { + + [TestFixture] + [Preserve (AllMembers = true)] + public class VNUtilsTests { + + [SetUp] + public void Setup () => TestRuntime.AssertXcodeVersion (13, 0); + + [Test] + public void GetImagePointTest () + { + var imagePoint = VNUtils.GetImagePoint (new CGPoint(2, 345), 6, 78, new CGRect(90, 12, 34, 56)); + Assert.That (imagePoint, Is.Not.EqualTo (CGPoint.Empty), "VNImagePointForNormalizedPointUsingRegionOfInterest is not empty"); + } + + [Test] + public void GetNormalizedPointTest () + { + var normalizedPoint = VNUtils.GetNormalizedPoint (new CGPoint(2, 345), 6, 78, new CGRect(90, 12, 34, 56)); + Assert.That (normalizedPoint, Is.Not.EqualTo (CGPoint.Empty), "VNNormalizedPointForImagePointUsingRegionOfInterest is not empty"); + } + + [Test] + public void GetImageRectTest () + { + var imageRect = VNUtils.GetImageRect (new CGRect(2, 34, 5, 67), 8, 90, new CGRect(123, 4, 56, 7)); + Assert.That (imageRect, Is.Not.EqualTo (CGRect.Empty), "VNImageRectForNormalizedRectUsingRegionOfInterest is not empty"); + } + + [Test] + public void GetNormalizedRectTest () + { + var normalizedRect = VNUtils.GetImageRect (new CGRect(2, 34, 5, 67), 8, 90, new CGRect(123, 4, 56, 7)); + Assert.That (normalizedRect, Is.Not.EqualTo (CGRect.Empty), "VNNormalizedRectForImageRectUsingRegionOfInterest is not empty"); + } + } +} +#endif diff --git a/tests/xtro-sharpie/MacCatalyst-Vision.todo b/tests/xtro-sharpie/MacCatalyst-Vision.todo deleted file mode 100644 index e234cfc8cb09..000000000000 --- a/tests/xtro-sharpie/MacCatalyst-Vision.todo +++ /dev/null @@ -1,76 +0,0 @@ -!missing-enum! VNChirality not bound -!missing-enum! VNGeneratePersonSegmentationRequestQualityLevel not bound -!missing-enum-value! VNErrorCode native value VNErrorUnsupportedRequest = 19 not bound -!missing-field! VNBarcodeSymbologyAztec_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCodabar not bound -!missing-field! VNBarcodeSymbologyCode128_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39Checksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39FullASCIIChecksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39FullASCII_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode93_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode93i_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyDataMatrix_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyEAN13_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyEAN8_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyGS1DataBar not bound -!missing-field! VNBarcodeSymbologyGS1DataBarExpanded not bound -!missing-field! VNBarcodeSymbologyGS1DataBarLimited not bound -!missing-field! VNBarcodeSymbologyI2of5Checksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyI2of5_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyITF14_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyMicroPDF417 not bound -!missing-field! VNBarcodeSymbologyMicroQR not bound -!missing-field! VNBarcodeSymbologyPDF417_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyQR_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyUPCE_SwiftDeprecated not bound -!missing-pinvoke! VNImagePointForNormalizedPointUsingRegionOfInterest is not bound -!missing-pinvoke! VNImageRectForNormalizedRectUsingRegionOfInterest is not bound -!missing-pinvoke! VNNormalizedPointForImagePointUsingRegionOfInterest is not bound -!missing-pinvoke! VNNormalizedRectForImageRectUsingRegionOfInterest is not bound -!missing-protocol-conformance! VNRecognizedText should conform to VNRequestRevisionProviding -!missing-selector! +VNFaceObservation::faceObservationWithRequestRevision:boundingBox:roll:yaw:pitch: not bound -!missing-selector! VNClassifyImageRequest::results not bound -!missing-selector! VNClassifyImageRequest::supportedIdentifiersAndReturnError: not bound -!missing-selector! VNDetectBarcodesRequest::results not bound -!missing-selector! VNDetectBarcodesRequest::supportedSymbologiesAndReturnError: not bound -!missing-selector! VNDetectContoursRequest::contrastPivot not bound -!missing-selector! VNDetectContoursRequest::results not bound -!missing-selector! VNDetectContoursRequest::setContrastPivot: not bound -!missing-selector! VNDetectDocumentSegmentationRequest::results not bound -!missing-selector! VNDetectFaceCaptureQualityRequest::results not bound -!missing-selector! VNDetectFaceLandmarksRequest::results not bound -!missing-selector! VNDetectFaceRectanglesRequest::results not bound -!missing-selector! VNDetectHorizonRequest::results not bound -!missing-selector! VNDetectHumanRectanglesRequest::results not bound -!missing-selector! VNDetectHumanRectanglesRequest::setUpperBodyOnly: not bound -!missing-selector! VNDetectHumanRectanglesRequest::upperBodyOnly not bound -!missing-selector! VNDetectRectanglesRequest::results not bound -!missing-selector! VNDetectTextRectanglesRequest::results not bound -!missing-selector! VNDetectTrajectoriesRequest::setTargetFrameTime: not bound -!missing-selector! VNDetectTrajectoriesRequest::targetFrameTime not bound -!missing-selector! VNDetectedObjectObservation::globalSegmentationMask not bound -!missing-selector! VNFaceObservation::pitch not bound -!missing-selector! VNGenerateAttentionBasedSaliencyImageRequest::results not bound -!missing-selector! VNGenerateImageFeaturePrintRequest::results not bound -!missing-selector! VNGenerateObjectnessBasedSaliencyImageRequest::results not bound -!missing-selector! VNGenerateOpticalFlowRequest::results not bound -!missing-selector! VNGeneratePersonSegmentationRequest::init not bound -!missing-selector! VNGeneratePersonSegmentationRequest::initWithCompletionHandler: not bound -!missing-selector! VNGeneratePersonSegmentationRequest::outputPixelFormat not bound -!missing-selector! VNGeneratePersonSegmentationRequest::qualityLevel not bound -!missing-selector! VNGeneratePersonSegmentationRequest::results not bound -!missing-selector! VNGeneratePersonSegmentationRequest::setOutputPixelFormat: not bound -!missing-selector! VNGeneratePersonSegmentationRequest::setQualityLevel: not bound -!missing-selector! VNHomographicImageRegistrationRequest::results not bound -!missing-selector! VNHumanHandPoseObservation::chirality not bound -!missing-selector! VNHumanObservation::upperBodyOnly not bound -!missing-selector! VNRecognizeAnimalsRequest::results not bound -!missing-selector! VNRecognizeAnimalsRequest::supportedIdentifiersAndReturnError: not bound -!missing-selector! VNRecognizeTextRequest::results not bound -!missing-selector! VNRecognizeTextRequest::supportedRecognitionLanguagesAndReturnError: not bound -!missing-selector! VNTrajectoryObservation::movingAverageRadius not bound -!missing-selector! VNTranslationalImageRegistrationRequest::results not bound -!missing-type! VNDetectDocumentSegmentationRequest not bound -!missing-type! VNGeneratePersonSegmentationRequest not bound -!missing-type! VNHumanObservation not bound diff --git a/tests/xtro-sharpie/common-Vision.ignore b/tests/xtro-sharpie/common-Vision.ignore index baddb958a20b..a5b6022d2980 100644 --- a/tests/xtro-sharpie/common-Vision.ignore +++ b/tests/xtro-sharpie/common-Vision.ignore @@ -41,6 +41,8 @@ !unknown-native-enum! VNDetectTrajectoriesRequestRevision bound !unknown-native-enum! VNGenerateOpticalFlowRequestRevision bound !unknown-native-enum! VNStatefulRequestRevision bound +!unknown-native-enum! VNDetectDocumentSegmentationRequestRevision bound +!unknown-native-enum! VNGeneratePersonSegmentationRequestRevision bound ## VNRequest is an abstract class so this will be bound in subclasses ## matching the return type to the above defined custom enums @@ -92,3 +94,22 @@ !missing-selector! VNStatefulRequest::requestFrameAnalysisSpacing not bound !missing-selector! VNVideoProcessor::addRequest:withProcessingOptions:error: not bound !missing-selector! VNVideoProcessor::analyzeWithTimeRange:error: not bound + +# Existing enums with name changes relevant only to Swift +!missing-field! VNBarcodeSymbologyAztec_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyCode128_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyCode39_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyCode39Checksum_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyCode39FullASCII_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyCode39FullASCIIChecksum_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyCode93_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyCode93i_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyDataMatrix_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyEAN13_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyEAN8_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyI2of5_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyI2of5Checksum_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyITF14_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyPDF417_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyQR_SwiftDeprecated not bound +!missing-field! VNBarcodeSymbologyUPCE_SwiftDeprecated not bound diff --git a/tests/xtro-sharpie/iOS-Vision.todo b/tests/xtro-sharpie/iOS-Vision.todo deleted file mode 100644 index eb235125858f..000000000000 --- a/tests/xtro-sharpie/iOS-Vision.todo +++ /dev/null @@ -1,77 +0,0 @@ -!missing-enum! VNChirality not bound -!missing-enum! VNGeneratePersonSegmentationRequestQualityLevel not bound -!missing-enum-value! VNErrorCode native value VNErrorUnsupportedRequest = 19 not bound -!missing-field! VNBarcodeSymbologyAztec_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCodabar not bound -!missing-field! VNBarcodeSymbologyCode128_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39Checksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39FullASCIIChecksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39FullASCII_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode93_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode93i_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyDataMatrix_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyEAN13_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyEAN8_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyGS1DataBar not bound -!missing-field! VNBarcodeSymbologyGS1DataBarExpanded not bound -!missing-field! VNBarcodeSymbologyGS1DataBarLimited not bound -!missing-field! VNBarcodeSymbologyI2of5Checksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyI2of5_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyITF14_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyMicroPDF417 not bound -!missing-field! VNBarcodeSymbologyMicroQR not bound -!missing-field! VNBarcodeSymbologyPDF417_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyQR_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyUPCE_SwiftDeprecated not bound -!missing-pinvoke! VNImagePointForNormalizedPointUsingRegionOfInterest is not bound -!missing-pinvoke! VNImageRectForNormalizedRectUsingRegionOfInterest is not bound -!missing-pinvoke! VNNormalizedPointForImagePointUsingRegionOfInterest is not bound -!missing-pinvoke! VNNormalizedRectForImageRectUsingRegionOfInterest is not bound -!missing-protocol-conformance! VNRecognizedText should conform to VNRequestRevisionProviding -!missing-selector! +VNFaceObservation::faceObservationWithRequestRevision:boundingBox:roll:yaw:pitch: not bound -!missing-selector! VNClassifyImageRequest::results not bound -!missing-selector! VNClassifyImageRequest::supportedIdentifiersAndReturnError: not bound -!missing-selector! VNDetectBarcodesRequest::results not bound -!missing-selector! VNDetectBarcodesRequest::supportedSymbologiesAndReturnError: not bound -!missing-selector! VNDetectContoursRequest::contrastPivot not bound -!missing-selector! VNDetectContoursRequest::results not bound -!missing-selector! VNDetectContoursRequest::setContrastPivot: not bound -!missing-selector! VNDetectDocumentSegmentationRequest::results not bound -!missing-selector! VNDetectFaceCaptureQualityRequest::results not bound -!missing-selector! VNDetectFaceLandmarksRequest::results not bound -!missing-selector! VNDetectFaceRectanglesRequest::results not bound -!missing-selector! VNDetectHorizonRequest::results not bound -!missing-selector! VNDetectHumanRectanglesRequest::results not bound -!missing-selector! VNDetectHumanRectanglesRequest::setUpperBodyOnly: not bound -!missing-selector! VNDetectHumanRectanglesRequest::upperBodyOnly not bound -!missing-selector! VNDetectRectanglesRequest::results not bound -!missing-selector! VNDetectTextRectanglesRequest::results not bound -!missing-selector! VNDetectTrajectoriesRequest::setTargetFrameTime: not bound -!missing-selector! VNDetectTrajectoriesRequest::targetFrameTime not bound -!missing-selector! VNDetectedObjectObservation::globalSegmentationMask not bound -!missing-selector! VNFaceObservation::pitch not bound -!missing-selector! VNGenerateAttentionBasedSaliencyImageRequest::results not bound -!missing-selector! VNGenerateImageFeaturePrintRequest::results not bound -!missing-selector! VNGenerateObjectnessBasedSaliencyImageRequest::results not bound -!missing-selector! VNGenerateOpticalFlowRequest::results not bound -!missing-selector! VNGeneratePersonSegmentationRequest::init not bound -!missing-selector! VNGeneratePersonSegmentationRequest::initWithCompletionHandler: not bound -!missing-selector! VNGeneratePersonSegmentationRequest::outputPixelFormat not bound -!missing-selector! VNGeneratePersonSegmentationRequest::qualityLevel not bound -!missing-selector! VNGeneratePersonSegmentationRequest::results not bound -!missing-selector! VNGeneratePersonSegmentationRequest::setOutputPixelFormat: not bound -!missing-selector! VNGeneratePersonSegmentationRequest::setQualityLevel: not bound -!missing-selector! VNHomographicImageRegistrationRequest::results not bound -!missing-selector! VNHumanHandPoseObservation::chirality not bound -!missing-selector! VNHumanObservation::upperBodyOnly not bound -!missing-selector! VNRecognizeAnimalsRequest::results not bound -!missing-selector! VNRecognizeAnimalsRequest::supportedIdentifiersAndReturnError: not bound -!missing-selector! VNRecognizeTextRequest::results not bound -!missing-selector! VNRecognizeTextRequest::supportedRecognitionLanguagesAndReturnError: not bound -!missing-selector! VNTrajectoryObservation::movingAverageRadius not bound -!missing-selector! VNTranslationalImageRegistrationRequest::results not bound -!missing-type! VNDetectDocumentSegmentationRequest not bound -!missing-type! VNGeneratePersonSegmentationRequest not bound -!missing-type! VNHumanObservation not bound -## appended from unclassified file diff --git a/tests/xtro-sharpie/macOS-Vision.todo b/tests/xtro-sharpie/macOS-Vision.todo deleted file mode 100644 index eb235125858f..000000000000 --- a/tests/xtro-sharpie/macOS-Vision.todo +++ /dev/null @@ -1,77 +0,0 @@ -!missing-enum! VNChirality not bound -!missing-enum! VNGeneratePersonSegmentationRequestQualityLevel not bound -!missing-enum-value! VNErrorCode native value VNErrorUnsupportedRequest = 19 not bound -!missing-field! VNBarcodeSymbologyAztec_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCodabar not bound -!missing-field! VNBarcodeSymbologyCode128_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39Checksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39FullASCIIChecksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39FullASCII_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode93_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode93i_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyDataMatrix_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyEAN13_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyEAN8_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyGS1DataBar not bound -!missing-field! VNBarcodeSymbologyGS1DataBarExpanded not bound -!missing-field! VNBarcodeSymbologyGS1DataBarLimited not bound -!missing-field! VNBarcodeSymbologyI2of5Checksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyI2of5_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyITF14_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyMicroPDF417 not bound -!missing-field! VNBarcodeSymbologyMicroQR not bound -!missing-field! VNBarcodeSymbologyPDF417_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyQR_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyUPCE_SwiftDeprecated not bound -!missing-pinvoke! VNImagePointForNormalizedPointUsingRegionOfInterest is not bound -!missing-pinvoke! VNImageRectForNormalizedRectUsingRegionOfInterest is not bound -!missing-pinvoke! VNNormalizedPointForImagePointUsingRegionOfInterest is not bound -!missing-pinvoke! VNNormalizedRectForImageRectUsingRegionOfInterest is not bound -!missing-protocol-conformance! VNRecognizedText should conform to VNRequestRevisionProviding -!missing-selector! +VNFaceObservation::faceObservationWithRequestRevision:boundingBox:roll:yaw:pitch: not bound -!missing-selector! VNClassifyImageRequest::results not bound -!missing-selector! VNClassifyImageRequest::supportedIdentifiersAndReturnError: not bound -!missing-selector! VNDetectBarcodesRequest::results not bound -!missing-selector! VNDetectBarcodesRequest::supportedSymbologiesAndReturnError: not bound -!missing-selector! VNDetectContoursRequest::contrastPivot not bound -!missing-selector! VNDetectContoursRequest::results not bound -!missing-selector! VNDetectContoursRequest::setContrastPivot: not bound -!missing-selector! VNDetectDocumentSegmentationRequest::results not bound -!missing-selector! VNDetectFaceCaptureQualityRequest::results not bound -!missing-selector! VNDetectFaceLandmarksRequest::results not bound -!missing-selector! VNDetectFaceRectanglesRequest::results not bound -!missing-selector! VNDetectHorizonRequest::results not bound -!missing-selector! VNDetectHumanRectanglesRequest::results not bound -!missing-selector! VNDetectHumanRectanglesRequest::setUpperBodyOnly: not bound -!missing-selector! VNDetectHumanRectanglesRequest::upperBodyOnly not bound -!missing-selector! VNDetectRectanglesRequest::results not bound -!missing-selector! VNDetectTextRectanglesRequest::results not bound -!missing-selector! VNDetectTrajectoriesRequest::setTargetFrameTime: not bound -!missing-selector! VNDetectTrajectoriesRequest::targetFrameTime not bound -!missing-selector! VNDetectedObjectObservation::globalSegmentationMask not bound -!missing-selector! VNFaceObservation::pitch not bound -!missing-selector! VNGenerateAttentionBasedSaliencyImageRequest::results not bound -!missing-selector! VNGenerateImageFeaturePrintRequest::results not bound -!missing-selector! VNGenerateObjectnessBasedSaliencyImageRequest::results not bound -!missing-selector! VNGenerateOpticalFlowRequest::results not bound -!missing-selector! VNGeneratePersonSegmentationRequest::init not bound -!missing-selector! VNGeneratePersonSegmentationRequest::initWithCompletionHandler: not bound -!missing-selector! VNGeneratePersonSegmentationRequest::outputPixelFormat not bound -!missing-selector! VNGeneratePersonSegmentationRequest::qualityLevel not bound -!missing-selector! VNGeneratePersonSegmentationRequest::results not bound -!missing-selector! VNGeneratePersonSegmentationRequest::setOutputPixelFormat: not bound -!missing-selector! VNGeneratePersonSegmentationRequest::setQualityLevel: not bound -!missing-selector! VNHomographicImageRegistrationRequest::results not bound -!missing-selector! VNHumanHandPoseObservation::chirality not bound -!missing-selector! VNHumanObservation::upperBodyOnly not bound -!missing-selector! VNRecognizeAnimalsRequest::results not bound -!missing-selector! VNRecognizeAnimalsRequest::supportedIdentifiersAndReturnError: not bound -!missing-selector! VNRecognizeTextRequest::results not bound -!missing-selector! VNRecognizeTextRequest::supportedRecognitionLanguagesAndReturnError: not bound -!missing-selector! VNTrajectoryObservation::movingAverageRadius not bound -!missing-selector! VNTranslationalImageRegistrationRequest::results not bound -!missing-type! VNDetectDocumentSegmentationRequest not bound -!missing-type! VNGeneratePersonSegmentationRequest not bound -!missing-type! VNHumanObservation not bound -## appended from unclassified file diff --git a/tests/xtro-sharpie/tvOS-Vision.todo b/tests/xtro-sharpie/tvOS-Vision.todo deleted file mode 100644 index eb235125858f..000000000000 --- a/tests/xtro-sharpie/tvOS-Vision.todo +++ /dev/null @@ -1,77 +0,0 @@ -!missing-enum! VNChirality not bound -!missing-enum! VNGeneratePersonSegmentationRequestQualityLevel not bound -!missing-enum-value! VNErrorCode native value VNErrorUnsupportedRequest = 19 not bound -!missing-field! VNBarcodeSymbologyAztec_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCodabar not bound -!missing-field! VNBarcodeSymbologyCode128_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39Checksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39FullASCIIChecksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39FullASCII_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode39_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode93_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyCode93i_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyDataMatrix_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyEAN13_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyEAN8_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyGS1DataBar not bound -!missing-field! VNBarcodeSymbologyGS1DataBarExpanded not bound -!missing-field! VNBarcodeSymbologyGS1DataBarLimited not bound -!missing-field! VNBarcodeSymbologyI2of5Checksum_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyI2of5_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyITF14_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyMicroPDF417 not bound -!missing-field! VNBarcodeSymbologyMicroQR not bound -!missing-field! VNBarcodeSymbologyPDF417_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyQR_SwiftDeprecated not bound -!missing-field! VNBarcodeSymbologyUPCE_SwiftDeprecated not bound -!missing-pinvoke! VNImagePointForNormalizedPointUsingRegionOfInterest is not bound -!missing-pinvoke! VNImageRectForNormalizedRectUsingRegionOfInterest is not bound -!missing-pinvoke! VNNormalizedPointForImagePointUsingRegionOfInterest is not bound -!missing-pinvoke! VNNormalizedRectForImageRectUsingRegionOfInterest is not bound -!missing-protocol-conformance! VNRecognizedText should conform to VNRequestRevisionProviding -!missing-selector! +VNFaceObservation::faceObservationWithRequestRevision:boundingBox:roll:yaw:pitch: not bound -!missing-selector! VNClassifyImageRequest::results not bound -!missing-selector! VNClassifyImageRequest::supportedIdentifiersAndReturnError: not bound -!missing-selector! VNDetectBarcodesRequest::results not bound -!missing-selector! VNDetectBarcodesRequest::supportedSymbologiesAndReturnError: not bound -!missing-selector! VNDetectContoursRequest::contrastPivot not bound -!missing-selector! VNDetectContoursRequest::results not bound -!missing-selector! VNDetectContoursRequest::setContrastPivot: not bound -!missing-selector! VNDetectDocumentSegmentationRequest::results not bound -!missing-selector! VNDetectFaceCaptureQualityRequest::results not bound -!missing-selector! VNDetectFaceLandmarksRequest::results not bound -!missing-selector! VNDetectFaceRectanglesRequest::results not bound -!missing-selector! VNDetectHorizonRequest::results not bound -!missing-selector! VNDetectHumanRectanglesRequest::results not bound -!missing-selector! VNDetectHumanRectanglesRequest::setUpperBodyOnly: not bound -!missing-selector! VNDetectHumanRectanglesRequest::upperBodyOnly not bound -!missing-selector! VNDetectRectanglesRequest::results not bound -!missing-selector! VNDetectTextRectanglesRequest::results not bound -!missing-selector! VNDetectTrajectoriesRequest::setTargetFrameTime: not bound -!missing-selector! VNDetectTrajectoriesRequest::targetFrameTime not bound -!missing-selector! VNDetectedObjectObservation::globalSegmentationMask not bound -!missing-selector! VNFaceObservation::pitch not bound -!missing-selector! VNGenerateAttentionBasedSaliencyImageRequest::results not bound -!missing-selector! VNGenerateImageFeaturePrintRequest::results not bound -!missing-selector! VNGenerateObjectnessBasedSaliencyImageRequest::results not bound -!missing-selector! VNGenerateOpticalFlowRequest::results not bound -!missing-selector! VNGeneratePersonSegmentationRequest::init not bound -!missing-selector! VNGeneratePersonSegmentationRequest::initWithCompletionHandler: not bound -!missing-selector! VNGeneratePersonSegmentationRequest::outputPixelFormat not bound -!missing-selector! VNGeneratePersonSegmentationRequest::qualityLevel not bound -!missing-selector! VNGeneratePersonSegmentationRequest::results not bound -!missing-selector! VNGeneratePersonSegmentationRequest::setOutputPixelFormat: not bound -!missing-selector! VNGeneratePersonSegmentationRequest::setQualityLevel: not bound -!missing-selector! VNHomographicImageRegistrationRequest::results not bound -!missing-selector! VNHumanHandPoseObservation::chirality not bound -!missing-selector! VNHumanObservation::upperBodyOnly not bound -!missing-selector! VNRecognizeAnimalsRequest::results not bound -!missing-selector! VNRecognizeAnimalsRequest::supportedIdentifiersAndReturnError: not bound -!missing-selector! VNRecognizeTextRequest::results not bound -!missing-selector! VNRecognizeTextRequest::supportedRecognitionLanguagesAndReturnError: not bound -!missing-selector! VNTrajectoryObservation::movingAverageRadius not bound -!missing-selector! VNTranslationalImageRegistrationRequest::results not bound -!missing-type! VNDetectDocumentSegmentationRequest not bound -!missing-type! VNGeneratePersonSegmentationRequest not bound -!missing-type! VNHumanObservation not bound -## appended from unclassified file