Aliyun Qwen Ocr
简介
Aliyun Qwen Ocr
原始描述
Use when OCR-specialized extraction is needed with Alibaba Cloud Model Studio Qwen OCR models (`qwen-vl-ocr`, `qwen-vl-ocr-latest`, and snapshots), including...
通过你的 Agent 添加
安装目录:aliyun-qwen-ocr/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: aliyun-qwen-ocr
description: Use when OCR-specialized extraction is needed with Alibaba Cloud Model Studio Qwen OCR models (qwen-vl-ocr, qwen-vl-ocr-latest, and snapshots), including document parsing, table parsing, multilingual OCR, formula recognition, and key information extraction.
version: 1.0.0
Category: provider
Model Studio Qwen OCR
Validation
mkdir -p output/aliyun-qwen-ocr
python -m py_compile skills/ai/multimodal/aliyun-qwen-ocr/scripts/prepare_ocr_request.py && echo "py_compile_ok" > output/aliyun-qwen-ocr/validate.txt
Pass criteria: command exits 0 and output/aliyun-qwen-ocr/validate.txt is generated.
Output And Evidence
- Save request payloads, selected OCR task name, and normalized output expectations under
output/aliyun-qwen-ocr/.
- Keep the exact model, image source, and task configuration with each saved run.
output/aliyun-qwen-ocr/.Use Qwen OCR when the task is primarily text extraction or document structure parsing rather than broad visual reasoning.
Critical model names
Use one of these exact model strings:
qwen-vl-ocrqwen-vl-ocr-latestqwen-vl-ocr-2025-11-20qwen-vl-ocr-2025-08-28qwen-vl-ocr-2025-04-13qwen-vl-ocr-2024-10-28
Selection guidance:
- Use
qwen-vl-ocrfor the stable channel. - Use
qwen-vl-ocr-latestonly when you explicitly want the newest OCR behavior. - Pin
qwen-vl-ocr-2025-11-20when you need reproducible document parsing based on the Qwen3-VL OCR upgrade.
Prerequisites
- Install dependencies (recommended in a venv):
python3 -m venv .venv
. .venv/bin/activate
python -m pip install requests
- Set
DASHSCOPE_API_KEY in environment, or add dashscope_api_key to ~/.alibabacloud/credentials.
Normalized interface (ocr.extract)
Request
image (string, required): HTTPS URL, local path, or data: URL.
model (string, optional): default qwen-vl-ocr.
prompt (string, optional): use when you want custom extraction instructions.
task (string, optional): built-in OCR task.
task_config (object, optional): configuration for built-in task such as extraction fields.
enable_rotate (bool, optional): default false.
min_pixels (int, optional)
max_pixels (int, optional)
max_tokens (int, optional)
temperature (float, optional): recommended to keep near default/low values.
Response
python3 -m venv .venv
. .venv/bin/activate
python -m pip install requests
DASHSCOPE_API_KEY in environment, or add dashscope_api_key to ~/.alibabacloud/credentials.Request
image (string, required): HTTPS URL, local path, or data: URL.model (string, optional): default qwen-vl-ocr.prompt (string, optional): use when you want custom extraction instructions.task (string, optional): built-in OCR task.task_config (object, optional): configuration for built-in task such as extraction fields.enable_rotate (bool, optional): default false.min_pixels (int, optional)max_pixels (int, optional)max_tokens (int, optional)temperature (float, optional): recommended to keep near default/low values.text(string): extracted text or structured markdown/html-style output.model(string)usage(object, optional)
Built-in OCR tasks
Use one of these values in task:
text_recognitionkey_information_extractiondocument_parsingtable_parsingformula_recognitionmulti_lanadvanced_recognition
Quick start
Custom prompt:
python skills/ai/multimodal/aliyun-qwen-ocr/scripts/prepare_ocr_request.py \
--image "https://example.com/invoice.png" \
--prompt "Extract seller name, invoice date, amount, and tax number in JSON."
Built-in task:
python skills/ai/multimodal/aliyun-qwen-ocr/scripts/prepare_ocr_request.py \
--image "https://example.com/table.png" \
--task table_parsing \
--model qwen-vl-ocr-2025-11-20
Operational guidance
- Prefer built-in OCR tasks for standard parsing jobs because they use official task prompts.
- For critical business fields, add downstream validation rules after OCR.
qwen-vl-ocr and older snapshots default to 4096 max output tokens unless higher limits are approved by Alibaba Cloud; qwen-vl-ocr-2025-11-20 follows the model maximum.
- Increase
max_pixels only when small text is missed; this raises token cost.
Output location
- Default output:
output/aliyun-qwen-ocr/request.json
- Override base dir with
OUTPUT_DIR.
References
references/api_reference.md
references/sources.md
qwen-vl-ocr and older snapshots default to 4096 max output tokens unless higher limits are approved by Alibaba Cloud; qwen-vl-ocr-2025-11-20 follows the model maximum.max_pixels only when small text is missed; this raises token cost.- Default output:
output/aliyun-qwen-ocr/request.json - Override base dir with
OUTPUT_DIR.
References
references/api_reference.md
references/sources.md
references/api_reference.mdreferences/sources.md正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。