Type Alias

MLObjectDetector.DetectedObjects

An array of annotations for objects that the model has detected.

Declaration

typealias MLObjectDetector.DetectedObjects = [MLObjectDetector.ObjectAnnotation]

See Also

Testing an Object Detector

func prediction(from: URL) -> MLObjectDetector.DetectedObjects

Generates annotations for the detected objects in an image at the given URL.

func predictions(from: [URL]) -> [MLObjectDetector.DetectedObjects]

Generates annotations for the detected objects in each image in the given array of URLs.

struct MLObjectDetector.ObjectAnnotation

The label, location, and confidence level of a detected object within an image.