page_type | languages | products | urlFragment | ||||
---|---|---|---|---|---|---|---|
sample |
|
|
documentintelligence-samples |
These code samples show common scenario operations with the Azure Document Intelligence client library.
All of these samples need the endpoint to your Document Intelligence resource (instructions on how to get endpoint), and your Document Intelligence API key (instructions on how to get key).
You can check all samples from here.
- Python 3.8 or later is required to use this package
- You must have an Azure subscription and an Azure Document Intelligence account to run these samples.
- Install the Azure Document Intelligence client library for Python with pip:
pip install azure-ai-documentintelligence --pre
- Clone or download this sample repository
- Open the sample folder in Visual Studio Code or your IDE of choice.
- Open a terminal window and
cd
to the directory that the samples are saved in. - Set the environment variables specified in the sample file you wish to run.
- Follow the usage described in the file, e.g.
python sample_analyze_receipts.py
Check out the API reference documentation to learn more about what you can do with the Azure Document Intelligence client library.