MediaPipeTasksVision Framework Reference

MPPObjectDetectorResult

  @interface 
 MPPObjectDetectorResult 
 : 
  MPPTaskResult 
 
 

Represents the detection results generated by ObjectDetector .

  • The array of Detection objects each of which has a bounding box that is expressed in the unrotated input frame of reference coordinates system, i.e. in [0,image_width) x [0,image_height) , which are the dimensions of the underlying image data.

    Declaration

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     readonly 
     ) 
     NSArray 
     < 
      MPPDetection 
     
     *> 
     * 
     _Nonnull 
     detections 
     ; 
     
    
  • Initializes a new ObjectDetectorResult with the given array of detections and timestamp (in milliseconds).

    Declaration

    Objective-C

      - 
     ( 
     nonnull 
     instancetype 
     ) 
     initWithDetections 
     : 
     ( 
     nonnull 
     NSArray 
     < 
      MPPDetection 
     
     *> 
     * 
     ) 
     detections 
     timestampInMilliseconds 
     :( 
     NSInteger 
     ) 
     timestampInMilliseconds 
     ; 
     
    

    Parameters

    detections

    An array of Detection objects each of which has a bounding box that is expressed in the unrotated input frame of reference coordinates system, i.e. in [0,image_width) x [0,image_height) , which are the dimensions of the underlying image data.

    timestampInMilliseconds

    The timestamp (in milliseconds) for this result.

    Return Value

    An instance of ObjectDetectorResult initialized with the given array of detections and timestamp (in milliseconds).

Create a Mobile Website
View Site in Mobile | Classic
Share by: