✦ 按键精灵手机版插件

TriEye OCR

基于 PaddOCRv5 + OpenCV + YOLO 的三合一移动端识别引擎,
专为按键精灵脚本打造。

📝

OCR 文字识别

基于 RapidOCR 深度学习框架,精准识别屏幕文字,支持中英文、数字及常见符号。

  • 自动方向检测与矫正
  • 低对比度图像增强
  • 颜色掩码过滤
  • 排序模式(左→右 / 上→下)
🔍

OpenCV 模板匹配

基于 OpenCV 的颜色-边缘-形状三重加权匹配算法,定位精准,抗干扰能力强。

  • 多尺度降采样匹配
  • 可调节权重(颜色/边缘/形状)
  • 重叠抑制去重
  • 支持多模板同时搜索
🎯

YOLO 目标检测

基于 NCNN 推理框架的端侧 YOLOv5 模型,毫秒级目标检测。

  • YOLOv5 模型支持
  • NMS 非极大值抑制
  • 自定义类别过滤
  • 输入图像旋转

三行代码,接入所有能力

OCR
OpenCV
YOLO
-- 截图并识别所有文字 Import "TE.lua" TE.socr_start("你的授权key") snapshot("/sdcard/screen.png", 0, 0, 720, 1280) Dim result = TE.socr("/sdcard/screen.png") Dim tab = TE.JsonToTable(result) If tab And tab["success"] = True Then For Each item In tab["data"] TracePrint "文字: " & item["text"] TracePrint "坐标: " & item["left"] & "," & item["top"] Next End If
-- 找图并点击 Import "TE.lua" TE.socr_start("你的授权key") snapshot("/sdcard/screen.png", 0, 0, 720, 1280) Dim result = TE.socr_opencv("/sdcard/screen.png", _ "/sdcard/button.png", 0.85) Dim tab = TE.JsonToTable(result) If tab And tab["success"] = True And tab["count"] > 0 Then Dim m = tab["data"](0) Tap (m["left"] + m["right"]) / 2, _ (m["top"] + m["bottom"]) / 2 End If
-- 检测画面中的物体 Import "TE.lua" TE.socr_start("你的授权key") snapshot("/sdcard/screen.png", 0, 0, 720, 1280) Dim result = TE.socr_yolo("/sdcard/screen.png", _ Array("person", "phone"), 0.4) Dim tab = TE.JsonToTable(result) If tab And tab["success"] = True And tab["found"] = True Then For Each cls In tab["data"] For Each obj In cls.Value Dim xy = obj["center"] Tap xy(0), xy(1) Next Next End If
3
引擎合一
OCR + OpenCV + YOLO
<1s
单次推理
毫秒级响应
10+
设备同时
稳定运行
24/7
持续在线
自动心跳保活