MLObjectDetector.DataSource
A data source for an object detector.
Declaration
enum DataSourceOverview
You use a data source to specify the training dataset for an MLObjectDetector training session. An object-detector data source represents a set of images and an annotation for each object in an image.
Each object annotation consists of the object’s name, or label, and its location in the image. A single image can have multiple objects and, therefore, multiple annotations. For example, you can train an object detector with images of dining tables, along with annotations for bananas, croissants, and beverages. Each image can have one or more instances of an object, or any combination of objects.
Topics
Creating a data source
MLObjectDetector.DataSource.directoryWithImagesAndJsonAnnotation(at:)MLObjectDetector.DataSource.directoryWithImages(at:annotationFile:)MLObjectDetector.DataSource.table(_:imageColumn:annotationColumn:)