An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
Hello ALAGARSAMY Vanitha,
Welcome to Microsoft Q&A and thank you for reaching out.
I understand that you're looking to evaluate the quality of documents processed through the Azure Document Intelligence prebuilt-layout API, specifically to determine whether you can obtain a confidence score for text extraction and use it to decide whether to proceed or halt further processing.
Currently, the prebuilt-layout API does not provide a single overall quality score for the entire document. Its primary purpose is to extract text, layout, and structural information, and while it doesn’t offer a document-level quality metric, it does return confidence scores for individual extracted elements such as words, lines, paragraphs, and tables.
Here’s how you can leverage this information in your workflow:
Each text element returned by the API includes a confidence property, representing the system’s confidence in the accuracy of that specific extraction. These scores can help you assess the reliability of the output and make informed decisions about how to proceed.
You can aggregate or average the per-element confidence scores across a document to approximate an overall quality metric for your scenario. For example, if the average confidence score is below a certain threshold (e.g., 0.75), you may choose to halt automated processing or flag the document for manual review.
If input quality is a recurring concern, consider adding preprocessing steps such as checking image resolution, skew, or blur before sending documents to the prebuilt-layout API. This can help you filter out poor-quality scans early in the pipeline.
For scenarios where document quality assessment is critical, you could also explore training a lightweight classification model using Azure AI or Computer Vision to categorize documents (e.g., Good vs. Poor quality) before processing them with Document Intelligence.
I Hope this helps. Do let me know if you have any further queries.
If this answers your query, please do click Accept Answer and Yes for was this answer helpful.
Thank you!