Updated documentation
This commit is contained in:
parent
5dd6b0c72a
commit
7e53fdc1b3
|
@ -32,7 +32,24 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
*/
|
||||
NS_SWIFT_NAME(ImageClassifierDelegate)
|
||||
@protocol MPPImageClassifierDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
/**
|
||||
* This method notifies a delegate that the results of asynchronous classification of
|
||||
* an image submitted to the `MPPImageClassifier` is available.
|
||||
*
|
||||
* This method is called on a private serial queue created by the `MPPImageClassifier`
|
||||
* for performing the asynchronous delegates calls.
|
||||
*
|
||||
* @param imageClassifier The image classifier which performed the classification.
|
||||
* This is useful to test equality when there are multiple instances of `MPPImageClassifier`.
|
||||
* @param result An `MPPImageClassifierResult` object that contains a list of image classifications.
|
||||
* @param timestampInMilliseconds The timestamp (in milliseconds) which indicates when the input
|
||||
* image was sent to the image classifier.
|
||||
* @param error An optional error parameter populated when there is an error in performing image
|
||||
* classification on the input live stream image data.
|
||||
*
|
||||
*/
|
||||
- (void)imageClassifier:(MPPImageClassifier *)imageClassifier
|
||||
didFinishClassificationWithResult:(nullable MPPImageClassifierResult *)result
|
||||
timestampInMilliseconds:(NSInteger)timestampInMilliseconds
|
||||
|
|
|
@ -30,8 +30,29 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
* The delegate of `MPPImageClassifier` must adopt `MPPImageClassifierDelegate` protocol.
|
||||
* The methods in this protocol are optional.
|
||||
*/
|
||||
NS_SWIFT_NAME(ObjectDetectorDelegate)
|
||||
@protocol MPPObjectDetectorDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
/**
|
||||
* This method notifies a delegate that the results of asynchronous object detection of
|
||||
* an image submitted to the `MPPObjectDetector` is available.
|
||||
*
|
||||
* This method is called on a private serial dispatch queue created by the `MPPObjectDetector`
|
||||
* for performing the asynchronous delegates calls.
|
||||
*
|
||||
* @param objectDetector The object detector which performed the object detection.
|
||||
* This is useful to test equality when there are multiple instances of `MPPObjectDetector`.
|
||||
* @param result The `MPPObjectDetectionResult` object that contains a list of detections, each detection
|
||||
* 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.
|
||||
* @param timestampInMilliseconds The timestamp (in milliseconds) which indicates when the input
|
||||
* image was sent to the object detector.
|
||||
* @param error An optional error parameter populated when there is an error in performing object detection on the input live stream image data.
|
||||
*
|
||||
*/
|
||||
- (void)objectDetector:(MPPObjectDetector *)objectDetector
|
||||
didFinishDetectionWithResult:(nullable MPPObjectDetectionResult *)result
|
||||
timestampInMilliseconds:(NSInteger)timestampInMilliseconds
|
||||
|
|
Loading…
Reference in New Issue
Block a user