MLObjectDetector
A model you train to classify one or more objects within an image.
Declaration
struct MLObjectDetectorMentioned in
Overview
Use an MLObjectDetector task to train a machine learning model that can identify items, or objects, within an image. For example, you can train an object detector to recognize breakfast items on a table, such as bananas, croissants, and beverages.
You create an object detector training it with a combination of images and annotations for each object within an image. Then save it as a Core ML model and use it in your app to recognize similar items.
Topics
Creating a data source
Training an object detector asynchronously
train(trainingData:annotationType:parameters:sessionParameters:)makeTrainingSession(trainingData:annotationType:parameters:sessionParameters:)resume(_:)restoreTrainingSession(sessionParameters:)
Creating an object detector from a checkpoint
Training an object detector synchronously
init(trainingData:parameters:annotationType:)init(trainingData:imageColumn:annotationColumn:annotationType:parameters:)
Evaluating an object detector
Testing an object detector
prediction(from:)predictions(from:)MLObjectDetector.DetectedObjectsMLObjectDetector.ObjectAnnotation