Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

ocsrocsr 图像

Agent Skill

ocsr 用于处理图像、截图、视觉识别或图片素材相关工作,适合在 OpenClaw 中需要让 Agent 分析图片、整理视觉素材或辅助图像流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,776

周安装

199

GitHub Stars

公开资料未说明

下载量

1,592
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ocsr(ocsr 图像)
来源仓库:https://github.com/snailwhb/ocsr
安装命令:
openclaw skills install ocsr
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ocsr

简介

分子图像识别工具,调用 Patent Extractor API 返回 SMILES/SDF。

  • 适用于化学结构图解析与属性计算。ocsr 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 安装后上传 1-N 结构图像即可获得标准化输出。
  • 依赖外部 API 稳定性,网络中断会导致失败。
  • 结果需经化学专家复核,避免误读异构体。

SKILL.md

name
ocsr
description
>-
metadata
{"openclaw":{"emoji":"https://patent.xinsight-ai.com/assets/logo-4-DizspTVJ.png", "homepage": "https://patent.xinsight-ai.com/home","requires":{"bins":["uv", "python"],"env":["PATSIGHT_ACCOUNT", "PATSIGHT_PASSWORD"]}}}

MolVision Molecular Image Recognition (OCSR)

Uses PatSight MolVision to perform optical chemical structure recognition (OCSR) on molecular structure images, extract SMILES/SDF, compute molecular properties by RDKit, and generate visualization dashboard image.

Authentication

This skill calls the PatSight Patent Extractor API and requires patsight account and password.

First-time users: Register at PatSight.

Add to your OpenClaw config:

{
  "skills": {
    "entries": {
      "ocsr": {
        "enabled": true,
         "env": {
          "PATSIGHT_ACCOUNT": "PATSIGHT_ACCOUNT",
          "PATSIGHT_PASSWORD": "PATSIGHT_PASSWORD,
        },
      }
    }
  }
}

Or set environment variables:

export PATSIGHT_ACCOUNT="your_account"
export PATSIGHT_PASSWORD="your_password"

Quick Start

Using the Script

uv run python skills/ocsr/scripts/run_ocsr.py patent <image1> <image2> ...
uv run python skills/ocsr/scripts/run_ocsr.py mol1.png mol2.png --outdir ./ocsr_output
uv run python skills/ocsr/scripts/run_ocsr.py patent image.jpg --token <token>

Examples

# Basic OCSR on images (backward compatible: omit "patent" subcommand)
uv run python skills/ocsr/scripts/run_ocsr.py mol1.png mol2.png

# With output directory
uv run python skills/ocsr/scripts/run_ocsr.py patent mol1.png mol2.png --outdir ./ocsr_output

# With token
uv run python skills/ocsr/scripts/run_ocsr.py patent image.jpg --token $PATSIGHT_TOKEN

# With account credentials
uv run python skills/ocsr/scripts/run_ocsr.py patent image.png --account user --password pass

Options

OptionDescriptionDefault
--outdir <dir>Output directory./ocsr_output
--request-id <id>Request ID for trackingtimestamp (ms)
--base-url <url>API base URLPATSIGHT_BASE_URL or https://patent.xinsight-ai.com/patent/api
--account <account>patsight account (auto-fetch token)PATSIGHT_ACCOUNT
--password <password>patsight password (auto-fetch token)PATSIGHT_PASSWORD
--timeout <sec>HTTP timeout in seconds180
--panel-image-size <px>Molecule block size in report image300

Supported Image Formats

.png, .jpg, .jpeg, .webp, .bmp, .tif, .tiff

Output

  • ocsr_result_<timestamp>.json: Raw API response + enriched RDKit properties
  • ocsr_dashboard_<timestamp>.png: Visualization report

Each result includes smiles, sdf_str, score, and RDKit-derived properties (formula, MW, LogP, TPSA, etc.).

API Reference

Endpoint

POST {base_url}/v1/u/extractor/image/molecules?request_id=<id>
  • base_url: Default https://patent.xinsight-ai.com/patent/api
  • Requires Authorization: <token> header

Multipart fields

  • image: Image file(s) (one image field per file, multiple allowed)
  • label: Fixed as molvision

Response format

API returns {"code":1, "data":{"data":[...], "msg":"SUCCESS", ...}}. The script converts it to {"data": [...]} for downstream processing. Each record contains smiles, sdf_str, score, idx, page_idx, rect, etc.

Tips

  • 1-N images: Accept multiple image files in one run
  • Token priority: Command-line --token > PATSIGHT_TOKEN > --account/--password > env vars
  • RDKit: If parsing fails, raw result is preserved and properties marked unavailable
  • Partial failure: If some files fail, processing continues and reports partial success

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

95.91%
按下载量换算1,527

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills