baidu-ocr

百度 OCR 文字识别。支持中英文混合、公式、表格识别,准确率 95%+。使用百度 AI 开放平台 API。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "baidu-ocr" with this command: npx skills add baidu-ocr

百度 OCR

使用百度 AI 开放平台进行高精度文字识别。

特点

  • ✅ 中英文混合识别
  • ✅ 准确率 95%+
  • ✅ 支持公式识别
  • ✅ 支持表格识别
  • ✅ 每天 500 次免费额度

快速开始

python3 {baseDir}/baidu_ocr.py /path/to/image.jpg

使用方法

python3 {baseDir}/baidu_ocr.py <图片路径> [输出格式]

参数:

  • <图片路径>: 本地图片文件(jpg, png, bmp 等)
  • [输出格式]: 可选,text(默认)或 json

示例

# 基础识别
python3 {baseDir}/baidu_ocr.py image.jpg

# JSON 格式输出
python3 {baseDir}/baidu_ocr.py image.jpg json

# 批量处理
for file in *.jpg; do
    python3 {baseDir}/baidu_ocr.py "$file"
done

API 配置

~/.openclaw-env 中配置:

export BAIDU_API_KEY="your_api_key"
export BAIDU_SECRET_KEY="your_secret_key"

或者在 ~/.openclaw/openclaw.json 中配置:

{
  skills: {
    "baidu-ocr": {
      apiKey: "YOUR_API_KEY",
      secretKey: "YOUR_SECRET_KEY"
    }
  }
}

支持的图片格式

  • JPG/JPEG
  • PNG
  • BMP
  • WEBP
  • GIF

识别类型

类型说明API
通用文字中英文混合识别general_basic
高精度含位置信息general
表格表格结构识别table
公式数学公式识别formula

免费额度

  • 通用文字识别: 每天 500 次
  • 高精度版: 每天 50 次
  • 表格识别: 每月 500 次
  • 公式识别: 每月 500 次

错误处理

错误码说明解决方法
110Access Token 无效重新获取 Token
111Access Token 过期重新获取 Token
216100认证失败检查 API Key
216101授权失败检查 Secret Key

相关文档


版本:1.0.0 | 更新时间:2026-03-07

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wechat Mp Writer

WeChat Official Account (公众号) content writer with article formatting, headline optimization, and engagement tips. Use when you need to write WeChat articles,...

Registry SourceRecently Updated
General

OpenClaw EverMemory Installer

Use this skill when installing, upgrading, verifying, or publishing the EverMemory OpenClaw plugin and its companion skill, including local path install, npm...

Registry SourceRecently Updated
General

Ip Advisor

知识产权顾问。专利、版权、商业秘密、注册流程、保护策略。IP advisor for patents, copyrights, trade secrets. 知识产权、专利、版权。

Registry SourceRecently Updated
1950ckchzh
General

炒股大师模拟器

炒股大师模拟器 | 股市模拟交易练习 | A股/港股/美股投资学习 | 化身文主任/股神老徐/炒股养家/孙宇晨等各位大师学习投资思路 | 多智能体股票讨论群

Registry SourceRecently Updated