Azure-Samples / Azure-Samples/document-intelligence-code-samples

How do you send base64 source in Python code?

未关闭
#124 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
201
派生
115
PR 合并指标
30 天内没有已合并 PR

描述

What is the equivalent of below code for sending source as bytes instead of a url in Python? Basically I have an image that is converted to bytes that I want to process.

Documentation for this service is horrendous by the way, so hard to find anything.

```
poller = document_intelligence_client.begin_analyze_document(
"prebuilt-read", AnalyzeDocumentRequest(url_source=formUrl)
)
```

贡献指南

打开贡献指南

调研方向

Start at the Python begin_analyze_document entry point and the AnalyzeDocumentRequest usage shown in the issue. Determine how the SDK accepts image bytes instead of url_source, then document the working call and an example for processing the supplied image bytes.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
api
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。