Xpersona
G

General Text Recognition OCR - 通用文字识别

CLAWHUB · Unverified

图片通用文字 OCR,支持中英文及多语种。当用户说:这张图里的字提取成文本、截图 OCR 一下,或类似通用识图问题时,使用本技能。 Skill: General Text Recognition OCR - 通用文字识别 Owner: jisuapi Summary: 图片通用文字 OCR,支持中英文及多语种。当用户说:这张图里的字提取成文本、截图 OCR 一下,或类似通用识图问题时,使用本技能。 Tags: latest:1.0.3 Version history: v1.0.3 | 2026-04-03T09:59:32.396Z | user No code changes detected. Documentation and metadata updates only: - Updated skill name and description for clarity and to reflect recommended usage scenarios. - Added prominent provider attribution to JisuAP

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174fh1b14sn7vkvbqwsdn0xtd83gz5h:generalrecognition
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jisuapi-generalrecognition/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

16,711 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: "General Text Recognition OCR - 通用文字识别"
description: 图片通用文字 OCR,支持中英文及多语种。当用户说:这张图里的字提取成文本、截图 OCR 一下,或类似通用识图问题时,使用本技能。
metadata: { "openclaw": { "emoji": "🔎", "requires": { "bins": ["python3"], "env": ["JISU_API_KEY"] }, "primaryEnv": "JISU_API_KEY" } }
---

## 极速数据通用文字识别(Jisu General Recognition / OCR)

> 数据由 **[极速数据(JisuAPI)](https://www.jisuapi.com/)** 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。

- `cnen`:中英文(默认)
- `en`:英语
- `fr`:法语
- `pt`:葡萄牙语
- `de`:德语
- `it`:意大利语
- `es`:西班牙语
- `ru`:俄语
- `jp`:日语

使用前需要在极速数据官网申请通用文字识别服务,文档见:[https://www.jisuapi.com/api/generalrecognition/](https://www.jisuapi.com/api/generalrecognition/)


```bash
# Linux / macOS
export JISU_API_KEY="your_appkey_here"

# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"
```

## 脚本路径

脚本文件:`skills/generalrecognition/generalrecognition.py`

## 使用方式与请求参数

当前脚本只需直接传一段 JSON 参数,对应 `/generalrecognition/recognize` 接口:

### 1. 从本地图片识别(推荐)

```bash
python3 skills/generalrecognition/generalrecognition.py '{"path":"sfz1.jpg","type":"cnen"}'
```

- `path`:本地图片路径(脚本会读取并转为 base64),支持 JPG/PNG 等,单张图片最大约 500K;
- `type`:文字类型,默认 `cnen`,可选 `en/fr/pt/de/it/es/ru/jp`。

### 2. 直接传 base64 图片内容

如果你在前置流程中已经把图片转成了 base64,可以直接通过 `pic` 传入(注意不要带 `data:image/...;base64,` 前缀,只要纯 base64 字符串):

```bash
python3 skills/generalrecognition/generalrecognition.py '{
  "pic": "<base64_string>",
  "type": "cnen"
}'
```

### 3. 请求参数说明

| 字段名 | 类型   | 必填 | 说明 |
|--------|--------|------|------|
| path   | string | 二选一 | 本地图片路径,脚本会自动读取并转为 base64 |
| image  | string | 二选一 | `path` 的别名 |
| file   | string | 二选一 | `path` 的别名 |
| pic    | string | 二选一 | 已经是 base64 的图片内容(不带前缀) |
| type   | string | 否   | 文字类型:`cnen/en/fr/pt/de/it/es/ru/jp`,默认 `cnen` |

`path/image/file` 与 `pic` 至少提供一个;同时存在时优先使用 `pic`。

## 返回结果说明

接口原始返回示例(参考官网文档):

```json
{
  "status": 0,
  "msg": "ok",
  "result": [
    "此时此刻我好焦灼!",
    "你别再解释了"
  ]
}
```

本技能会对返回进行一次轻量封装,统一输出:

```json
{
  "result": [
    "此时此刻我好焦灼!",
    "你别再解释了"
  ]
}
```

当出现业务错误时(例如图片为空、格式错误、超过大小限制等),则包装为:

```json
{
  "error": "api_error",
  "code": 201,
  "message": "图片为空"
}
```

网络或解析错误会返回:

```json
{
  "error": "request_failed" | "http_error" | "invalid_json",
  "message": "...",
  "status_code": 500
}
```

## 常见错误码

来源于 [通用文字识别文档](https://www.jisuapi.com/api/generalrecognition/):

| 代号 | 说明             |
|------|------------------|
| 201  | 图片为空         |
| 202  | 图片格式错误     |
| 204  | 图片大小超过限制 |
| 208  | 识别失败         |
| 210  | 没有信息         |

系统错误码 101–108 与其它极速数据接口一致。

## 推荐用法

1. 用户上传一张带有文字的截图或照片,要求「帮我把图片里的文字全部提取出来」。  
2. 代理将图片保存为本地文件或转为 base64,再调用:`python3 skills/generalrecognition/generalrecognition.py '{"path":"image.jpg","type":"cnen"}'` 或传入 `pic`。  
3. 从返回的 `result` 数组中拼接出完整文本(按行合并或按需要格式化),用自然语言回复用户,并根据场景进一步分析或翻译内容。

## 关于极速数据

**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:

_meta.json

{
  "ownerId": "kn7ex9mabfb47dvpgkmeypwqj9825yyz",
  "slug": "generalrecognition",
  "version": "1.0.3",
  "publishedAt": 1775210372396
}

skill-card.md

## Description:

This skill uses JisuAPI general text recognition OCR to extract text from local or base64-encoded images, with support for Chinese, English, and several other languages.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jisuapi](https://clawhub.ai/user/jisuapi)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill when a user asks to OCR a screenshot or photo and return the recognized text for follow-up formatting, analysis, or translation.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Selected images may be uploaded to JisuAPI for OCR, which can expose sensitive content.

Mitigation: Do not use this skill on screenshots or files containing passwords, personal records, internal documents, or regulated data unless external OCR processing is approved.

Risk: Local path inputs can select files for upload, and the security evidence reports weak file-boundary checks.

Mitigation: Use only intended image files and harden path, symlink, file-type, and size validation before deployment.

## Reference(s):

- [JisuAPI General Text Recognition Documentation](https://www.jisuapi.com/api/generalrecognition/)
- [JisuAPI Provider Site](https://www.jisuapi.com/)
- [ClawHub Skill Page](https://clawhub.ai/jisuapi/skills/generalrecognition)
- [ClawHub Publisher Profile](https://clawhub.ai/user/jisuapi)

## Skill Output:

**Output Type(s):** [text, json, shell commands, configuration, guidance]

**Output Format:** [JSON from the OCR script, typically converted by the agent into plain text or Markdown.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires python3 and JISU_API_KEY; local images or base64 image data are sent to JisuAPI for OCR.]

## Skill Version(s):

1.0.3 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to General Text Recognition OCR - 通用文字识别 and adjacent AI workflows.