🔍 廖工AI设计实战出品 | LiaoGong-OCR — easyocr+tesseract双引擎OCR,15条预处理链含实测基准,手机拍屏数字识别87%准确率。支持中文海报/截图/英文文档/手机拍照/批量转文字。Use when: OCR this image, extract text from imag...
廖工AI设计实战出品 — easyocr + tesseract 双引擎OCR系统,15条可组合预处理链含实测基准数据。
用法命令/代码场景CLI工具liaogong-ocr image.jpg命令行一键提取文字Python库from liaogong_ocr import OCREngine集成到你的Python项目AI Agentnpx clawhub@latest install liaogong-ocrAI智能体自动触发OCR
bash
# 安装系统依赖 tesseract(Windows用 winget install tesseract-ocr)
pip install -r requirements.txt
liaogong-ocr your_image.jpg
模式命令最适合自动liaogong-ocr img.jpg通用场景,自动选择引擎easyocrliaogong-ocr -e easyocr img.png中文海报、截图、复杂排版tesseractliaogong-ocr -e tesseract doc.png英文文档、白底黑字手机拍照liaogong-ocr -p phone photo.jpg手机拍屏幕(87%数字准确率)
预处理链数字准确率速度**optimal_phone****87%**快grayscale_binary72%快contrast_enhance65%快sharpen55%快clahe31%中adaptive_binary18%慢
廖工AI设计实战出品 · github.com/jnbno1163