A high-precision utility for converting images containing text, mathematical formulas, and diagrams into structured code formats.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install image-to-code
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install image-to-code using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The image-to-code skill is a sophisticated automation tool designed to bridge the gap between static document screenshots and structured code output. By leveraging advanced OCR and Vision AI, this Openclaw Skills contribution automatically identifies document hierarchies, including headers, body text, and complex LaTeX-style formulas. It is particularly effective for developers and technical writers who need to digitize printed or captured documentation into standardized code templates for further processing.
This skill provides a robust framework for recognizing content types across images, ensuring that technical documents are not just transcribed, but intelligently converted into functional code snippets. Whether dealing with multi-level titles or intricate mathematical expressions, the tool maintains the original structural integrity of the source material while outputting it in a developer-friendly format.
Install the necessary OCR and image processing dependencies:
# Install core OCR and processing libraries
pip install paddlepaddle paddleocr pix2tex opencv-python pillow numpy
To convert a single image to code, run the following command:
python image_to_code.py input.png
For batch processing an entire directory, use the output flag:
python image_to_code.py *.png --output-dir ./output
| Content Type | Format Template | Mapping Rule |
|---|---|---|
| Level 1 Title | $word->title1("Title"); |
Strips prefixes like Chapter 1 or Part A |
| Level 2 Title | $word->title2("Title"); |
Strips numeric prefixes like 1.1 or (1) |
| Body Text | $word->body("正文=Content=".$F); |
Escapes quotes and wraps text in body function |
| Formula | $word->formula("LaTeX"); |
Converts math symbols to standard LaTeX syntax |
| Images | ![image] |
Identifies non-text graphical regions as image markers |
Loading
A character card engine that enables the import and roleplay of SillyTavern-compatible AI personas across any messaging channel.

A comprehensive Python-driven toolset for programmatically managing Atlassian Confluence Cloud spaces, pages, and documentation.

A professional engine for importing and interacting with SillyTavern character cards within the OpenClaw ecosystem.

A professional monitoring skill for managing Flowtriq-protected infrastructure and DDoS telemetry via an AI agent.

A comprehensive tool for AI agents to automate Jira Cloud workflows, from issue tracking to sprint management.

An AI-powered assistant for deep token research, secure wallet management, and real-time DeFi operations across multiple chains.








































