Contents

init(trainingData:imageColumn:annotationColumn:annotationType:parameters:)

Creates an object detector with a data table.

Declaration

init(trainingData: MLDataTable, imageColumn: String, annotationColumn: String, annotationType: MLObjectDetector.AnnotationType, parameters: MLObjectDetector.ModelParameters = ModelParameters()) throws

Parameters

  • trainingData:

    An Mldatatable that contains the annotated images the task uses to train the object detector.

  • imageColumn:

    The name of the column in the data table that contains the image file URLs.

  • annotationColumn:

    The name of the column in the data table that contains the image annotations.

  • annotationType:

    The format your data table uses for its image annotations.

  • parameters:

    An Modelparameters Swift.struct instance you use to set the model configuration settings for the training session.

Discussion

Use this initializer to create an object detector with an MLDataTable.

See Also

Training an object detector synchronously