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
GA (Python 3.7 e 3.6) PyPI Windows, macOS, Linux

Client supportati

Lingua Versione dell'SDK Versione dell'API Client supportati
C#/Java/JavaScript 4.9.0 (GA)
C#/Java/JavaScript 1.1.x
C#/Java/JavaScript 1.2.x v2.0
Python 4.9.1 (GA)
Python 1.1.x
Python 3.0.0 v2.0

Installare la libreria client.

dotnet add package Azure.AI.FormRecognizer --version 4.0.0
Install-Package Azure.AI.FormRecognizer -Version 4.0.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