Werk24客户阅读PDF和基于图像的技术图纸/工程图纸
werk24的Python项目详细描述
Werk24客户端
- 通过一个简单的API调用了解基于PDF和图像的技术绘图的内容。在
Werk24提供了一个易于使用的API,从基于PDF和图像的技术图纸中提取信息。 使用API可以获得:
- 页面/画布/部分的缩略图(剪切和透视)
- 测量包括公差
- 几何尺寸和公差框架
请访问我们的网站https://www.werk24.biz。 项目不断改进。请与我们联系以获取您的API密钥。在
安装
管道安装
pip install werk24
文件
见https://werk24.github.io/docs/
命令行接口
要获得第一印象,可以运行CLI:
^{pr2}$示例
from werk24 import Hook, W24TechreadClient, W24AskVariantMeasures
async def read_measures_from_drawing(document_bytes:bytes) -> None:
# define what you want to learn about the drawing, and what function
# should be called when a response arrives
hooks = [Hook(ask=W24AskVariantMeasures(), function=print)]
# make the call
client = W24TechreadClient.make_from_env()
async with client as session:
await session.read_drawing_with_hooks(document_bytes,hooks)
- 项目
标签: