客户 Lib/SDK 是否联系了 OCR?
Does Client Lib/SDK reach out for OCR?
抱歉这个愚蠢的问题,对于下面的示例代码,它是连接到真正的 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();
这是表单识别器 SDK,它将调用云托管服务上的分析发票 API 来分析文档。
抱歉这个愚蠢的问题,对于下面的示例代码,它是连接到真正的 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();
这是表单识别器 SDK,它将调用云托管服务上的分析发票 API 来分析文档。