Azure Document Intelligence Python SDK - Barcodes feature not working

Yi Qiang 0 Reputation points
2024-10-22T23:47:28.3666667+00:00

We are calling the document intelligence API using the python SDK and a custom model. Everything seems to work fine, except that the barcodes feature is not working. However, analyzing the same photo using the same model Azure Document Intelligence Studio produces the expected result.

Sample code:

  poller = await document_intelligence_client.begin_analyze_document( 
    model_id=model_id,
    analyze_request=analyze_request,
    features=[DocumentAnalysisFeature.OCR_HIGH_RESOLUTION, DocumentAnalysisFeature.BARCODES],
  )


When we iterate for the pages array of the result and check for any barcodes, it reports None.

Name: azure-ai-documentintelligence

Version: 1.0.0b4

Azure Document Intelligence in Foundry Tools
Azure | Azure Startups
Azure | Azure Startups
Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
{count} votes

Your answer

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