Informazioni sui documenti di Azure AI è un servizio cognitivo che estrae dati da immagini e documenti usando l'apprendimento automatico.

Linguaggi di programmazione supportati

Pacchetto Versioni API supportate Piattaforme supportate
NuGet
Windows, macOS, Linux
npm Browser, Windows, Linux, macOS
PyPI Windows, macOS, Linux

Client supportati

Lingua Versione dell'SDK Client supportati
31-07-2020
31-08-2023
v2.1 v2.1
v2.0 v2.0

Installare la libreria client.

dotnet add package Azure.AI.FormRecognizer --version 4.1.0
Install-Package Azure.AI.FormRecognizer -Version 4.1.0

using Azure;
using Azure.AI.FormRecognizer.DocumentAnalysis;

Configurare l'autenticazione.

Incollare la chiave API.

Screenshot of the keys and endpoint location in the Azure portal.


//set `<your-endpoint>` and `<your-key>` variables with the values from the Azure portal to create your `AzureKeyCredential` and `DocumentAnalysisClient` instance
string key = "<your-key>";
string endpoint = "<your-endpoint>";
AzureKeyCredential credential = new AzureKeyCredential(key);
DocumentAnalysisClient client = new DocumentAnalysisClient(new Uri(endpoint), credential);

Nota

  1. Installare le Librerie di Azure per .NET.

        dotnet add package Azure.Identity
    
        Install-Package Azure.Identity
    
  2. string endpoint = "<your-endpoint>";
    var client = new DocumentAnalysisClient(new Uri(endpoint), new DefaultAzureCredential());
    

Per altre informazioni sull'elemento , vedere Cache client.

Compilare l'applicazione

Passaggi successivi