π¦ ClawHub
Image OCR Parse
by @rishabhdugar
Extract text from images via the PDFAPIHub cloud OCR API. Images are uploaded to pdfapihub.com for Tesseract OCR processing. Supports preprocessing (grayscal...
TERMINAL
clawhub install image-ocr-parseπ About This Skill
name: image-ocr-parse description: "Extract text from images via the PDFAPIHub cloud OCR API. Images are uploaded to pdfapihub.com for Tesseract OCR processing. Supports preprocessing (grayscale, sharpen, threshold, resize) and word-level bounding boxes. Requires a CLIENT-API-KEY header." metadata: {"openclaw": {"primaryEnv": "PDFAPIHUB_API_KEY", "requires": {"env": ["PDFAPIHUB_API_KEY"]}}}
Image OCR Parse
What It Does
Extracts text from images via the PDFAPIHub hosted OCR API. Your image is uploaded to PDFAPIHub servers where Tesseract OCR processes it and returns the extracted text. Supports optional image preprocessing to improve OCR quality on low-resolution or noisy inputs.When to Use
Required Inputs
Provide one of:image_url β URL to an imagebase64_image β base64-encoded imagefile fieldAuthentication
This skill calls the PDFAPIHub hosted API athttps://pdfapihub.com/api. Your image is uploaded to PDFAPIHub servers for OCR processing.Send your API key in the CLIENT-API-KEY header.
Get your free API key at https://pdfapihub.com. Full API documentation is available at https://pdfapihub.com/docs.
Privacy note: Images you process are uploaded to PDFAPIHub's cloud service and the extracted text is returned. Do not send sensitive images unless you trust the service. Files are auto-deleted after 30 days.
Use Cases
Image Preprocessing Options
| Param | Default | Description | |-------|---------|-------------| |grayscale | false | Convert to grayscale |
| sharpen | false | Apply sharpening |
| threshold | 0 | Binarization threshold (1β255) |
| resize | 0 | Scale factor (max 4x) |Example Usage
curl -X POST https://pdfapihub.com/api/v1/image/ocr/parse \
-H "CLIENT-API-KEY: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://pdfapihub.com/sample-invoicepage.png",
"lang": "eng",
"grayscale": true,
"sharpen": true,
"detail": "words"
}'