v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1422138111.2 KB

Detects anomalies in an image that you supply.

The response from DetectAnomalies includes a boolean prediction that the image contains one or more anomalies and a confidence value for the prediction. If the model is an image segmentation model, the response also includes segmentation information for each type of anomaly found in the image.

Before calling DetectAnomalies, you must first start your model with the StartModel operation. You are charged for the amount of time, in minutes, that a model runs and for the number of anomaly detection units that your model uses. If you are not using a model, use the StopModel operation to stop your model.

For more information, see Detecting anomalies in an image in the Amazon Lookout for Vision developer guide.

This operation requires permissions to perform the lookoutvision:DetectAnomalies operation.

post/2020-11-20/projects/{projectName}/models/{modelVersion}/detect#Content-Type

Path parameters

projectNamestring required

The name of the project that contains the model version that you want to use.

modelVersionstring required

The version of the model that you want to use.

Headers

Content-Typestring required

The type of the image passed in <code>Body</code>. Valid values are <code>image/png</code> (PNG format images) and <code>image/jpeg</code> (JPG format images).

Request body

Bodystring required

The unencrypted image bytes that you want to analyze.

Response

Success