About this endpoint
What it does
Uploads an image file and analyzes it for blur using Laplacian variance. The response returns a JSON object with blur classification and supporting metrics.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Binary image file to analyze. |
Response
Returns a JSON object with four fields: blurry as a boolean, threshold as an integer, confidence as a string enum, and laplacian_variance as a number. Lower variance indicates a blurrier image; the schema notes that the threshold is 100.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| blurry | Boolean | No | Whether the image is classified as blurry. |
| threshold | Integer | No | The threshold used for blur classification. |
| confidence | ENUM | No | Confidence level of the result. Allowed values: low, medium, high. |
| laplacian_variance | Number | No | The Laplacian variance score. Higher values indicate a sharper image; the schema notes that the threshold is 100. |