Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bighardperson avatar

Wps Ocr

  • 8 installs
  • 33 repo stars
  • Updated April 26, 2026
  • bighardperson/computer-science-skills-collection

WPS OCR is a Claude skill that extracts text, tables, formulas, and seals from image and scanned files into Markdown using the WPS Kingsoft cloud OCR API.

About

WPS OCR extracts text, handwriting, formulas, tables, and seals from files into Markdown structure. It sends the file to the WPS/Kingsoft cloud OCR service at aiwrite.wps.cn and returns the recognized text plus detection details. It supports scanned documents, screenshots, and photos in formats like JPG, PNG, BMP, HEIF, and WEBP. A developer uses it as a first step to digitize file content for translation or editing. It requires a WPS_OCR_ACCESS_KEY.

  • Extracts text, tables, formulas, and seals from files into Markdown structure
  • Calls the WPS/Kingsoft cloud OCR API (aiwrite.wps.cn), needs WPS_OCR_ACCESS_KEY
  • Supports JPG, PNG, BMP, HEIF, and WEBP scans, screenshots, and photos

Wps Ocr by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #500 of 687 Office & Documents skills by installs in the Skillselion catalog
  • Data as of Jul 30, 2026 (Skillselion catalog sync)
At a glance

wps-ocr capabilities & compatibility

Requires a WPS_OCR_ACCESS_KEY; the current cloud version is a rate-limited free trial.

Capabilities
ocr · text recognition · pdf parsing
Use cases
pdf parsing · translation · documentation
Runs
Local or remote
Pricing
Bring your own API key
From the docs

What wps-ocr says it does

extract text, handwritten text, formulas, tables, documents and seals from files into Markdown structure
SKILL.md
compatible with multiple file formats including JPG, PNG, BMP, HEIF and WEBP
SKILL.md
This skill will send the file you provide to the official Kingsoft Office server (aiwrite.wps.cn) for recognition.
SKILL.md
Requires WPS OCR credentials via environment variables. No credential hardcoding. Enforces domain allowlist in code.
SKILL.md
npx skills add https://github.com/bighardperson/computer-science-skills-collection --skill wps-ocr

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars33
Last updatedApril 26, 2026
Repositorybighardperson/computer-science-skills-collection

What it does

Extract text, tables, and formulas from images and scanned files into Markdown via the WPS cloud OCR API.

Who is it for?

Digitizing scanned documents, screenshots, and photos into text and Markdown

Skip if: Fully offline use; it must send files to the WPS cloud OCR service

When should I use this skill?

The user sends a file and asks to extract text, or needs OCR before translating or editing

What you get

Recognized text and structured Markdown from images and scanned files

  • recognized text string
  • Markdown-structured output
  • detection details

By the numbers

  • 5 supported image formats (JPG, PNG, BMP, HEIF, WEBP)
  • 4-step execution flow

Files

SKILL.mdMarkdownGitHub ↗

🧭 Must-Read Before Use (30 Seconds)

[!WARNING]
⚠️ Important Privacy & Data Flow Notice
- Service Interaction Required: This skill will send the file you provide to the official Kingsoft Office server (aiwrite.wps.cn) for recognition.
- Data Visibility: Kingsoft Office services will access and process the content of your file.
- This skill supports local file uploads, and will only verify the file type without performing any verification on the path.

Recommended Method: Environment Variables (Permission-Free, Instant Effect, Webchat-Friendly)

# Run in the terminal (effective immediately for the current session):
export WPS_OCR_ACCESS_KEY="your_client_access_key"
# Append the credential to the ~/.openclaw/env file
echo 'export WPS_OCR_ACCESS_KEY="your_client_access_key"' >> ~/.openclaw/env
[!TIP] 🔧 How to obtain the key?
- Get your API key: https://aiwrite.wps.cn/pdf/parse/accesskey/

✅ Environment Dependency Check Make sure the required libraries are installed:

pip install requests

🎯 Skill Execution Guide

1. Applicable Scenarios

Invoke this skill when the user’s intent includes any of the following:

  • Sends a file and asks “What text is this?”, “Extract text”, or “Convert to text”.
  • Uploads document screenshots, invoices, business cards, photos, or scanned files with mixed Chinese and English text to be recognized.
  • Needs to translate or edit the file content (text extraction is a required first step).

2. Execution Actions

Once it is confirmed that text extraction is required, perform the following operations immediately: Input Processing: Obtain the file resource provided by the user (using a download link: url or a local file: path). Command Execution: Call the Python script for recognition. If the current environment supports command-line execution, construct the command as follows:

# use file download URL:
python3 skills/wps-ocr/scripts/wps_ocr.py --url <URL>
# use local file:
python3 skills/wps-ocr/scripts/wps_ocr.py --path <LOCAL-PATH>

Execution Flow

1. File Acquisition

The file will be sent to Kingsoft Office Cloud Service, which will download the file provided by the user.

2. File Validation

Verify that the file is in a supported format.

3. Recognize File Content

Identify elements such as text, images, tables, formulas, and other content in the file, and extract the text. ⚠️ Note: Image elements will be returned as placeholders; file elements will not be returned.

4. Return Results to the User

On success: Return all recognized text (concatenated into one string) and detailed detection information. On failure: Return error messages (e.g., "No text detected in the file", "API call failed", etc.).

OCR API Usage Notes

This skill relies on the WPS-OCR parsing and recognition capabilities hosted on Kingsoft Cloud Service. The current version is a free trial. To ensure stable operation, the cloud service enforces rate limiting. The service will reject requests under high concurrency; please use it appropriately. To experience the full features, visit the demo platform.

Related skills

FAQ

Does WPS OCR need credentials?

Yes. It requires a WPS_OCR_ACCESS_KEY set as an environment variable, obtained from aiwrite.wps.cn, with no credential hardcoding and a domain allowlist enforced in code.

Where is the file processed?

The file is sent to the official Kingsoft Office server at aiwrite.wps.cn for recognition, so Kingsoft Office services access and process the file content.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.