去云端: OCR 纯本地(winsdk), 删除 remote 后端与 ocr_server
This commit is contained in:
@@ -25,8 +25,8 @@ wait_for_text("结算") -> 轮询直到文字出现/消失
|
|||||||
|
|
||||||
`LCP_PLATFORM=win|linux|mac` 强制指定,默认按系统自动检测。
|
`LCP_PLATFORM=win|linux|mac` 强制指定,默认按系统自动检测。
|
||||||
|
|
||||||
OCR 服务默认 http://35.212.193.150:8599/(gcp1 上的 RapidOCR,客户端零安装),
|
OCR 全本地:`ocr_local.py` 调 Windows 自带 OCR(Windows.Media.Ocr,需 `pip install --user winsdk`)。
|
||||||
可 `OCR_URL` 覆盖。
|
无任何云端/远端服务依赖——MCP 是纯本地"外骨骼"。
|
||||||
|
|
||||||
## 部署
|
## 部署
|
||||||
|
|
||||||
@@ -54,8 +54,7 @@ OCR 服务默认 http://35.212.193.150:8599/(gcp1 上的 RapidOCR,客户端
|
|||||||
|------|------|------|
|
|------|------|------|
|
||||||
| `LCP_PLATFORM` | 自动 | win/linux/mac |
|
| `LCP_PLATFORM` | 自动 | win/linux/mac |
|
||||||
| `INPUT_BACKEND` | 平台默认 | mock/sendinput/interception/xdotool/uinput/cg |
|
| `INPUT_BACKEND` | 平台默认 | mock/sendinput/interception/xdotool/uinput/cg |
|
||||||
| `OCR_BACKEND` | auto | local(Windows自带OCR,winsdk) / remote(gcp1) / auto(本地可用优先) |
|
| `OCR_BACKEND` | local | 本地 OCR(仅 local;Win 需 winsdk) |
|
||||||
| `OCR_URL` | gcp1:8599 | remote 后端的 OCR 服务(OCR_BACKEND=local 时用不到) |
|
|
||||||
| `OCR_MIN_SCORE` | 0.5 | 过滤低置信度 OCR 结果 |
|
| `OCR_MIN_SCORE` | 0.5 | 过滤低置信度 OCR 结果 |
|
||||||
|
|
||||||
## 工具
|
## 工具
|
||||||
|
|||||||
Reference in New Issue
Block a user