Open topic with navigation

# GetClassImage

Returns a training image associated with an object class.

Note: This is an administrative action that can be sent only from AdminClients (which are set in the `[Server]` section of the configuration file).

Type: synchronous

Parameter | Description | Required
--- | --- | ---
`classifier` | The name of the classifier that contains the object class. | Yes
`identifier` | The identifier of the object class from which you want to retrieve an image. | Yes
`imagelabel` | The label of the image that you want to retrieve. | Yes

## Example

    curl http://localhost:18000 -F action=getclassimage
                                -F classifier=vehicles
                                -F identifier=cars
                                -F imagelabel=image1
                                -o ReturnedImage.jpg

## Response

The response contains the image data.

Media Server identifies the image type and sets the `Content-Type` header to the appropriate MIME type. The `Content-Length` header is set to the length of the image data in bytes.

If an error occurs, Media Server returns a standard XML error response.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm