Azure AI Vision Image Analysis SDK for Python
使用 Azure AI Vision 分析图像
开发者需要将计算机视觉功能集成到 Python 应用程序中,但往往难以理解复杂的 Azure SDK 文档。此技能提供即用的代码示例和最佳实践,涵盖使用 Azure AI Vision 进行图像字幕生成、物体检测、OCR 和智能裁剪。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“Azure AI Vision Image Analysis SDK for Python”。 Show me how to get a caption for an image using Azure AI Vision
预期结果:
- 使用 CAPTION 视觉特征获取图像的人类可读描述
- 结果包括字幕文本和置信度分数
- 启用 gender_neutral_caption 以获得包容性描述
正在使用“Azure AI Vision Image Analysis SDK for Python”。 How do I extract text from scanned documents?
预期结果:
- 使用 READ 视觉特征进行 OCR 文本提取
- 结果包括单词级置信度分数
- 通过 language 参数支持多种语言
安全审计
安全This is a prompt-only documentation skill containing reference material for the Azure AI Vision Image Analysis SDK. No executable code was detected. The skill provides documentation on how to use Microsoft's Azure computer vision service for image analysis tasks including captioning, object detection, OCR, and smart cropping. No security concerns identified.
质量评分
你能构建什么
自动化文档处理
使用 OCR 功能自动从扫描的文档和表单中提取文本
构建图像编目系统
为媒体库中上传的图像自动生成字幕和标签
创建智能缩略图
为响应式 Web 设计生成感知上下文的图像裁剪
试试这些提示
Show me how to get a caption for an image using Azure AI Vision ImageAnalysisClient in Python
Write Python code to extract all text from an image using the READ visual feature
How do I detect objects in an image and get their bounding box coordinates using Azure AI Vision?
Show me how to use the async client to analyze multiple images concurrently
最佳实践
- 仅请求所需的视觉特征以减少延迟和成本
- 在高吞吐量批处理场景中使用异步客户端
- 始终处理 HttpResponseError 以实现稳健的错误处理
避免
- 仅需要一个视觉特征时却请求所有特征
- 忽略网络故障或无效图像的错误处理
- 在代码中使用 API 密钥而不是环境变量