我正在使用预建布局模型:
with open(file_path, "rb") as pdf:
print(pdf)
poller = document_analysis_client.begin_analyze_document(
model_id="prebuilt-layout",
document=pdf
)
当我将 PDF 放入文档智能工作室时,布局模型检测到的
sectionHeadings
和标题比通过 Python API 检测到的更多。
有人知道为什么存在这些差异吗?
我尝试使用不同的模型,但预建文档也有同样的问题。
我使用了错误的 API,它是文档分析而不是文档智能