How to enable/disable features/Add-ons when using the C# API, like High Resolution

Jan Mateboer 20 Reputation points
2023-12-15T20:18:22.7333333+00:00

Dear support, we are setting up an OCR of documents but the current versions are not adequate enough to recognise table structures (merged cells are not properly recognised and split through centered text). To enhance performance the OCR High Resolution gave better results (still not perfect, but doable). However, I see no way how to enable this feature when using the API. I guess I am missing something? The only thing I found was the 'DocumentAnalysisFeature' struct, that seems to be a read-only object and can't be passed to the client, and the DocumentAnalysisClientOptions doesn't seem to have the option?

Since the best results were with the latest preview-version; can I use the preview-versions with the API or only the GA ones?

With best regards,

Jan

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,044 questions
0 comments No comments
{count} votes

Accepted answer
  1. YutongTie-MSFT 53,961 Reputation points Moderator
    2023-12-17T01:29:27.8433333+00:00

    @Jan Mateboer @Jan Mateboer

    Thanks for reaching out to us, I think the parameter you are looking for is - DocumentAnalysisFeature - ocrHighResolution

    This is an option feature so please add it as your requirement.

    Please refer to the document here - https://learn.microsoft.com/en-us/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2023-10-31-preview&preserve-view=true&tabs=HTTP#documentanalysisfeature

    Regarding your question about using preview versions with the API, you can use preview versions with the C# API for OCR. However, it's important to note that preview versions may have breaking changes and are not recommended for production use. It's recommended to use the GA (General Availability) versions for production scenarios.

    I hope this helps, please let us know if you have any other questions.

    Regards,

    Yutong

    -Please kindly accept the answer and vote 'Yes' if you feel helpful to support the community, thanks a lot.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.