VNFaceObservation.FromBoundingBox Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromBoundingBox(CGRect) |
Static factory method that creates a VNFaceObservation with the specified bounding box. |
FromBoundingBox(VNFaceObservationRequestRevision, CGRect) | |
FromBoundingBox(VNFaceObservationRequestRevision, CGRect, Nullable<nfloat>, Nullable<nfloat>) |
FromBoundingBox(CGRect)
Static factory method that creates a VNFaceObservation with the specified bounding box.
[Foundation.Export("observationWithBoundingBox:")]
public static Vision.VNFaceObservation FromBoundingBox (CoreGraphics.CGRect boundingBox);
static member FromBoundingBox : CoreGraphics.CGRect -> Vision.VNFaceObservation
Parameters
- boundingBox
- CGRect
Returns
- Attributes
Applies to
FromBoundingBox(VNFaceObservationRequestRevision, CGRect)
[Foundation.Export("observationWithRequestRevision:boundingBox:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static Vision.VNFaceObservation FromBoundingBox (Vision.VNFaceObservationRequestRevision requestRevision, CoreGraphics.CGRect boundingBox);
static member FromBoundingBox : Vision.VNFaceObservationRequestRevision * CoreGraphics.CGRect -> Vision.VNFaceObservation
Parameters
- requestRevision
- VNFaceObservationRequestRevision
- boundingBox
- CGRect
Returns
- Attributes
Applies to
FromBoundingBox(VNFaceObservationRequestRevision, CGRect, Nullable<nfloat>, Nullable<nfloat>)
[Foundation.Export("faceObservationWithRequestRevision:boundingBox:roll:yaw:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static Vision.VNFaceObservation FromBoundingBox (Vision.VNFaceObservationRequestRevision requestRevision, CoreGraphics.CGRect boundingBox, Nullable<nfloat> roll, Nullable<nfloat> yaw);
static member FromBoundingBox : Vision.VNFaceObservationRequestRevision * CoreGraphics.CGRect * Nullable<nfloat> * Nullable<nfloat> -> Vision.VNFaceObservation
Parameters
- requestRevision
- VNFaceObservationRequestRevision
- boundingBox
- CGRect
Returns
- Attributes