BuildClassifier

Trains a classifier so that it can be used for image classification.

You can only run this action after creating a classifier (using the action CreateClassifier) and adding suitable object classes (using the action CreateClass).

Type: asynchronous

Parameter Description Required
classifier The name of the classifier that you want to train. Yes
gpudeviceid

The device ID of the GPU to use, if you have enabled GPU acceleration and want to override the value of the GPUDeviceID configuration parameter. You can also set this parameter to CPU, to disable GPU acceleration for this action and use the CPU instead.

No
numparallel

The maximum number of threads to use to complete the training (default 1), subject to the limit specified by MaxNumParallel.

No

Example

/action=BuildClassifier&classifier=vehicles

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.