Image classification classifies images. The input images could be entire images or video frames, or regions of images or video frames. Classification chooses between the classes that you have created within a classifier.
Before using image classification, you must train a classifier. For instructions that describe how to train Media Server, refer to the Media Server Administration Guide.
Configuration Parameter | Description |
---|---|
ClassificationThreshold | The minimum confidence score necessary for Media Server to output a classification result. |
Classifier | The classifier to use for classification. |
GPUBatchingDuration | The maximum amount of time to wait, before sending a batch of video frames to the GPU for analysis. |
GPUNumParallel | The maximum number of video frames to analyze concurrently using the GPU (per CPU thread). |
Input | The name of the track to analyze. |
MaxInputQueueLength | Can be used to place a limit on latency. |
NumParallel | The maximum number of CPU threads to use for analysis. |
Region | A region of the frame to restrict processing to. |
RegionUnit | The units that the Region parameter uses to specify the size and position of a region. |
RestrictToInputRegion | Specifies whether to analyze a region of the input image or video frame that is specified in the input record, instead of the entire image. |
SampleInterval | The interval at which frames are selected to be analyzed. |
SegmentDuration | The maximum duration of a record in the SegmentedResult or SegmentedResultWithSource track. |
SyncDatabase | Specifies whether to synchronize with the training database before beginning the analysis task. |
Type | The analysis engine to use. Set this parameter to ImageClassification . |
VariableState | Specifies whether there are multiple classes in the image classifier that represent different states of the same type of object. |
Output track | Type | Description | Output1This column indicates whether the information contained in the track is included by default in the output created by an output task (when you don't set the Input parameter for the output task). |
---|---|---|---|
Data
|
ImageClassificationResult | Contains one record, describing the analysis results, for each input record. | No |
DataWithSource
|
ImageClassificationResultAndImage |
The same as the |
No |
Result
|
ImageClassificationResult |
Contains a record, describing the analysis results, for each event.
|
Yes |
ResultWithSource
|
ImageClassificationResultAndImage |
The same as the |
No |
SegmentedResult
|
ImageClassificationResult | (Available only when processing video). Contains one or more records, describing the analysis results, for each event. The maximum duration of records in this track is limited by the parameter SegmentDuration, so multiple records are created with the same ID when an event exceeds this duration. | Yes |
SegmentedResultWithSource
|
ImageClassificationResultAndImage |
(Available only when processing video). The same as the |
No |
Start
|
ImageClassificationResult |
The same as the |
No |
End
|
ImageClassificationResult |
The same as the |
No |
Field name | Type | Description |
---|---|---|
classification | Classification | The result of classification. |
classifier | String | The name of the classifier that was used to perform classification. |
ImageClassificationResultAndImage
The same as ImageClassificationResult
records, with the following additional fields.
Field name | Type | Description |
---|---|---|
image | ImageData | The source frame |
|