ocr-service
25
总安装量
25
周安装量
#7984
全站排名
安装命令
npx skills add https://github.com/lin-a1/skills-agent --skill ocr-service
Agent 安装分布
opencode
17
gemini-cli
16
claude-code
14
antigravity
13
codex
12
cursor
12
Skill 文档
åè½
ä»å¾å䏿åæåå å®¹ï¼æ¯æå¤ç§å¾åæ ¼å¼åè¯è¨ã
è°ç¨æ¹å¼
from services.ocr_service.client import OCRServiceClient
client = OCRServiceClient()
# å¥åº·æ£æ¥
status = client.health_check()
# OCRè¯å«
image_base64 = client.image_to_base64("/path/to/image.jpg")
result = client.ocr(image_base64)
# è·åè¯å«ç»æ
texts = result["rec_texts"] # ["è¯å«çæå1", "è¯å«çæå2", ...]
scores = result["rec_scores"] # [0.98, 0.95, ...]
è¿åæ ¼å¼
{
"doc_preprocessor_res": {"angle": 0},
"dt_polys": [[x1,y1], [x2,y2], ...],
"rec_texts": ["è¯å«çæå1", "è¯å«çæå2"],
"rec_scores": [0.98, 0.95]
}
åæ®µè¯´æ
rec_texts: è¯å«åºçæåå表rec_scores: æ¯ä¸ªæååç置信度dt_polys: æ£æµå°çææ¬åºååæ