---
title: Detect Image Blur API
slug: detect-image-blur
url: https://apyhub.com/dosvak/service/detect-image-blur
provider: Dosvak LLC
categories: [Artificial Intelligence, Image Processing]
tags: [image-blur, image-quality, sharpness-detection, computer-vision, ocr-precheck]
auth: api_key
---

# Detect Image Blur API

Check whether an uploaded image is blurry and get a Laplacian variance score, threshold, and confidence. Built for upload QA and OCR prechecks.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/dosvak/detect-image-blur` | What it does Uploads an image file and analyzes it for blur using Laplacian variance. The response… | 100 |

## Examples

### Detect image blur using Laplacian variance and return a sharpness score

#### Quickstart

Upload an image file to check whether it appears blurry.

```bash
curl -X POST "https://api.eu.apyhub.com/dosvak/detect-image-blur" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/image.jpg"
```

#### What you'll get back

Returns a JSON object with these top-level fields: `blurry` boolean, `threshold` integer, `confidence` string (`low`, `medium`, or `high`), and `laplacian_variance` number. `blurry` indicates whether the image is considered blurry; `laplacian_variance` is higher for sharper images, with a threshold of `100`.

```json
{
  "blurry": false,
  "threshold": 100,
  "confidence": "high",
  "laplacian_variance": 243.7
}
```

## About

## What it does
Image Blur Detection checks whether an uploaded image is blurry and returns a sharpness score based on Laplacian variance. Send a binary image file, and you get back a boolean blur result plus the values used to make that decision.

Use it when you need to reject low-quality uploads, flag out-of-focus product photos, or gate images before OCR and downstream vision workflows. The response includes `blurry`, the numeric `threshold`, a `confidence` level of `low`, `medium`, or `high`, and `laplacian_variance` so you can inspect how sharp the image is. Higher Laplacian variance means a sharper image, and the threshold is 100.

This is a straightforward validation step for image pipelines: check capture quality before storage, surface feedback to users, or route blurry images for retake instead of processing them further.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dosvak/service/detect-image-blur
