简体   繁体   English

Client Lib/SDK 是否支持 OCR?

[英]Does Client Lib/SDK reach out for OCR?

Sorry for the dumb question, for the following sample code below, does it reach out to the real Azure Cloud for OCR process or just perform it locally?很抱歉这个愚蠢的问题,对于下面的示例代码,它是针对真正的 Azure Cloud 进行 OCR 处理还是仅在本地执行?

const { FormRecognizerClient, AzureKeyCredential } = require("@azure/ai-form-recognizer"); // v3.2
const fs = require("fs");

const readStream = fs.createReadStream(MyLocalFile);

const client = new FormRecognizerClient(endpoint, new AzureKeyCredential(apiKey));
const poller = await client.beginRecognizeInvoices(readStream, {
 onProgress: (state) => {
   console.log(`status: ${state.status}`);
 }
});

const [invoice] = await poller.pollUntilDone();

This is the Form Recognizer SDK and it will call the Analyze Invoice API on the cloud hosted service to analyze the document.这是表单识别器 SDK,它将调用云托管服务上的分析发票 API 来分析文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM