Class VNDetectedObjectObservation

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, VNRequestRevisionProviding, ObjCProtocol
Direct Known Subclasses:
VNFaceObservation, VNHumanObservation, VNRecognizedObjectObservation, VNRectangleObservation

public class VNDetectedObjectObservation
extends VNObservation
Since:
Available in iOS 11.0 and later.
  • Constructor Details

    • VNDetectedObjectObservation

      public VNDetectedObjectObservation()
    • VNDetectedObjectObservation

      protected VNDetectedObjectObservation​(NSObject.Handle h, long handle)
    • VNDetectedObjectObservation

      protected VNDetectedObjectObservation​(NSObject.SkipInit skipInit)
    • VNDetectedObjectObservation

      public VNDetectedObjectObservation​(CGRect boundingBox)
    • VNDetectedObjectObservation

      public VNDetectedObjectObservation​(long requestRevision, CGRect boundingBox)
      Since:
      Available in iOS 12.0 and later.
  • Method Details

    • getBoundingBox

      public CGRect getBoundingBox()
    • getGlobalSegmentationMask

      public VNPixelBufferObservation getGlobalSegmentationMask()
      Since:
      Available in iOS 15.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • create

      protected static long create​(CGRect boundingBox)
    • create

      protected static long create​(long requestRevision, CGRect boundingBox)
      Since:
      Available in iOS 12.0 and later.