Editar

Compartir a través de


VNRectangleObservation.FromBoundingBox Method

Definition

Overloads

FromBoundingBox(CGRect)

Static factory method that creates a VNRectangleObservation with the specified bounding box.

FromBoundingBox(VNRectangleObservationRequestRevision, CGRect)

FromBoundingBox(CGRect)

Static factory method that creates a VNRectangleObservation with the specified bounding box.

[Foundation.Export("observationWithBoundingBox:")]
public static Vision.VNRectangleObservation FromBoundingBox (CoreGraphics.CGRect boundingBox);
static member FromBoundingBox : CoreGraphics.CGRect -> Vision.VNRectangleObservation

Parameters

boundingBox
CGRect

Returns

Attributes

Applies to

FromBoundingBox(VNRectangleObservationRequestRevision, 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.VNRectangleObservation FromBoundingBox (Vision.VNRectangleObservationRequestRevision requestRevision, CoreGraphics.CGRect boundingBox);
static member FromBoundingBox : Vision.VNRectangleObservationRequestRevision * CoreGraphics.CGRect -> Vision.VNRectangleObservation

Parameters

boundingBox
CGRect

Returns

Attributes

Applies to