- 最新
- 最多得票
- 最多評論
Hi Patrick,
Textract has two modes for processing documents: synchronous and asynchronous. The difference is pretty well summed up here:
Amazon Textract provides synchronous operations for processing small, single-page, documents and with near real-time responses. For more information, see Processing Documents with Synchronous Operations. Amazon Textract also provides asynchronous operations that you can use to process larger, multipage documents. Asynchronous responses aren't in real time. For more information, see Processing Documents with Asynchronous Operations.
The $client->analyzeExpense($options)
call you are making uses one of the synchronous API endpoints, and so it doesn't support multi-page documents.
Instead, you'll need to use the startExpenseAnalysis
method which starts an asynchronous job. Instead of returning the result, this method returns a JobId
which you can use with the getExpenseAnalysis
method to get the results once they are ready.
Thanks,
Marrick
相關內容
- 已提問 5 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前