ImportClassifier
Imports a classifier that was exported using the action ExportClassifier. You can also use this action to import pre-trained classifiers provided by Micro Focus.
Type: asynchronous
Parameter | Description | Required |
---|---|---|
classifier
|
The name to give to the imported classifier. | Yes |
classifierdata
|
The data to import. Files must be uploaded as multipart/form-data. For more information about sending data to Media Server, refer to the Media Server Administration Guide. | Set this or classifierpath |
classifierpath
|
The path to the file that contains the data to import. Specify an absolute path, or a path relative to the Media Server executable file. | Set this or classifierdata |
includeimages
|
A Boolean value (default true) that specifies whether to import training images and image labels. You can run image classification without the images, but future enhancements to image classification might require retraining and this is not possible without the images. | No |
includemetadata
|
A Boolean value (default true) that specifies whether to import the custom metadata that has been added to image classes. | No |
Example
The following example imports an existing classifier:
/action=ImportClassifier&classifier=imagenet &classifierpath=./pretrained/imagenet.dat
Response
This action is asynchronous, so Media Server always returns success accompanied by a token. You can use this token with the QueueInfo action to retrieve the status of your request.