Blur detection
Field "is_blurry" provides the insights of image quality
Helen Birulia avatar
Written by Helen Birulia
Updated over a week ago

Since accuracy is largely dependent on the image quality, one may want to control the quality of images they or their users send process to understand whether extraction results can be trusted.

In our JSON response, the field is_blurry indicates whether the image is clear or blurry. It returns a boolean value (true or false) to flag the image's quality status.

Please be aware that the is_blurry field is not enabled by default for user accounts. If you wish to include this field in your JSON response, kindly reach out to our support team. Once we enable it for your account, you can expect it to be immediately available in your JSON response.

🥤 Why should I pay attention to image quality and blur detection?

  1. Image Quality Matters: The quality of the receipt/invoice images directly affects the accuracy of data extraction. Blurriness makes it challenging to recognize and extract text accurately. Distorted characters or blurred shapes can lead to OCR errors or misinterpretation of the text, affecting the integrity of the extracted data.

  2. Enhance User Experience: is_blurry returned with true in your JSON response helps you sort & flag potential documents with possible poor data extraction results. If Veryfi powers your Expense Management/CPG loyalty or else product, by incorporating is_blurry field you can choose whether to pass this submission to your product or give end-users a friendly warning that the extraction results might need be verified/reviewed.

    As your trusted partner Veryfi guarantees that is_blurry can help you to enable smooth automation, improve data accuracy you pass to your users, and ultimately enhance overall experience by managing the expectations for the data extraction results.

While the is_blurry flag is something we return after the processing the submission, you might be interested in preventing your users to submit blurry or low quality images using Veryfi Lens for mobile.

How to Interpret & Assumptions

When you submit a single document for processing, the response will contain a list consisting of one flag.

However, if you submit multiple receipts' URLs, multi-page documents, or a zip file within the same request, the response will include a list of multiple flags. Each flag corresponds to a specific page, allowing you to assess the status individually for each page in the response.

Responses example:
For one image:

"is_blurry": [false]

Meaning that the we think that this image is blurry


For a zip that has 3 images:

"is_blurry": [

true,

true,

false

]

Meaning that first two pages are Blurry and the 3rd one is OK

Still using v7 ?

Please note that the details above correspond to the most recent and the current API version v8.

If you joined Veryfi before mid-2022 and have not migrated yet, then you need to follow these instructions: In v7 this is being controlled by detect_blur - request parameter that controls to return is_blurry field or not.

How to add

So in order to make is_blurry flag appear in your JSON you need to add

{"detect_blur": 1} to your API call when submitting a document to process.

How to interpret

is_blurry : 1 blurry

is_blurry : 0 not blurry

Read more about v7 / v8 difference here

Have questions? Please contact support@veryfi.com.

Did this answer your question?