mol-image-to-smiles

Convert molecular structure images to SMILES strings with DECIMER and MolNextR.

52|11|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/InternScience/ChemClaw --skill mol-image-to-smiles
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mol-image-to-smiles
Source: https://github.com/InternScience/ChemClaw/tree/main/skills/mol-image-to-smiles
Command: npx skills add https://github.com/InternScience/ChemClaw --skill mol-image-to-smiles

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires decimer, huggingface_hub, rdkit, Pillow, requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

将分子结构图片转换为 SMILES 字符串,利用 DECIMER 与 MolNextR 做图像识别以实现快速、准确的分子信息提取。

Core Features & Use Cases

  • 双模型支持:DECIMER 与 MolNextR,提供高对比度识别和容错能力
  • 自动模型选择:优先使用本地模型,失败时自动切换到远端/API
  • 批量处理与对比:批量转换多张图片,并对比不同模型的预测结果
  • 结果导出与对齐:输出 JSON 结果并可保存至输出目录
  • 格式支持:PNG、JPG、JPEG、GIF、BMP

Quick Start

将分子图片输入系统,使用默认的自动模式获取对应的 SMILES。

Frequently Asked Questions about mol-image-to-smiles

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert chemical structure images to SMILES strings?

To convert chemical structure images to SMILES strings, you input molecular images in formats like PNG or JPG to extract molecule recognition data. The system processes single or batch images and outputs JSON files containing SMILES and model confidence.

What image formats are supported for molecule recognition?

Molecule recognition supports PNG, JPG, JPEG, GIF, and BMP image formats. You can process these formats individually or in batches to generate SMILES strings with confidence metrics.

How does DECIMER compare to MolNextR for image to SMILES conversion?

DECIMER operates locally as the primary model, while MolNextR via HuggingFace serves as a fallback. This dual-model approach provides fault tolerance and allows comparing different prediction results for batch images.

Can I batch process multiple chemical images and export results?

Yes, you can batch process multiple chemical images and export the results. The system outputs JSON files containing SMILES strings and model confidence information to a configurable directory.

Do I need RDKit and HuggingFace to run image to SMILES conversion?

Yes, the dependencies include RDKit and huggingface_hub. DECIMER is the primary local model, but HuggingFace is required for the MolNextR fallback mechanism when local processing fails.