---
title: Image Quality Analysis
slug: us-apis/image-quality-analysis
description: The ID intelligence API offers image quality analysis for ID card images, providing scores based on factors like sharpness, text quality, brightness, and compression. Users can set their own acceptance threshold and obtain scores and summaries for front a
createdAt: 2023-07-03T10:17:24.612Z
---

## Introduction

This is key feature of ID intelligence API. This helps in image quality analysis, allowing it to assess the quality of ID card images. It can evaluate factors such as sharpness, text quality, brightness, and compression quality. By analyzing these parameters, it provides a score indicating the overall image quality.

## API Details

You need to pass `performImageQualityAnalysis` as True in order to use this feature. You can also set your threshold of acceptance as per your business usecase. Use field `imageQualityThreshold` to set threshold as per your business requirement.&#x20;

We have mentioned only this feature in the below Curl. For Curl with complete features, refer the [ID Intelligence](docId:9dWPKYoaeY2mFiYs4oKlD)

### Sample Curl

```curl
curl --location 'https://preproduction.signzy.tech/api/v2/patrons/{patronId}/documentIntelligence' \
--header 'authorization: {signzy-api-authKey}' \
--header 'content-type: application/json' \
--data '{
    "task": "idIntelligence",
    "essentials": {
        "frontUrl": "<front-image-url>",
        "backUrl": "<back-image-url>",
        "country": "<country>",
        "idType": "<id-type> ",
        "performImageQualityAnalysis": true/false,
        "imageQualityThreshold": 0.5
    }
}'
```

### Response

```json
{
    "essentials": {
        "frontUrl": "", 
        "backUrl": "",  
        "country": "",  
        "idType": "",   
        "performImageQualityAnalysis": true/false,
        "imageQualityThreshold": 0.5 (optional)
    },
    "id": "60xxxxxxxxxxxxxxxxxxxxxxxxxx",
    "patronId": "60xxxxxxxxxxxxxxxxxxxxxxxxxx",
    "task": "idIntelligence",
    "result": {
        "imageQualityFront": {
            "qualityScores": {
                "textQuality": {
                    "valid": "yes/no",
                    "score": "...validity score..."
                },
                "sharpness": {
                    "valid": "yes/no",
                    "score": "...validity score..."
                },
                "brightness": {
                    "valid": "yes/no",
                    "score": "...validity score..."
                },
                "compressionQuality": {
                    "valid": "yes/no",
                    "score": "...validity score..."
                }
            },
            "score": "...total score...",
            "summary": "...summary...",
            "msg": "...msg...",
            "status": "...status...",
            "imageQuality": "...image quality..."
        },
        "imageQualityBack": {
            "qualityScores": {
                "textQuality": {
                    "valid": "yes/no",
                    "score": "...validity score..."
                },
                "sharpness": {
                    "valid": "yes/no",
                    "score": "...validity score..."
                },
                "brightness": {
                    "valid": "yes/no",
                    "score": "...validity score..."
                },
                "compressionQuality": {
                    "valid": "yes/no",
                    "score": "...validity score..."
                }
            },
            "score": "...total score...",
            "summary": "...summary...",
            "msg": "...msg...",
            "status": "...status...",
            "imageQuality": "...image quality..."
        },
            }
        }
    }
}
```

:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.

You can reach out to us at [help@signzy.com](#). We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!
:::

