用于小猿口算的基于 Python 的自动答题工具(OCR 视觉识别)
“小猿口算自动答题器”
用于 小猿口算 的 Python 自动化答题工具,
基于 Tesseract OCR 文本识别 + 模拟人工输入 实现。
本项目不会修改或注入小猿口算任何程序数据,
仅通过 屏幕识别 + 自动化交互 完成操作。
本人对 B 站锁定相关技术演示视频 表示抗议
(BV1kc2NY6Ey1)
- 使用 BlueStacks 模拟器 运行 Android 虚拟机
- 通过 BlueStacks 脚本管理器 录制
><手写输入 - 设置为 5 倍速
- 绑定热键:
.→>,→<
示例图:
示例代码:
def draw_greater_than(origin_x, origin_y, size):
pyautogui.press(".")
def draw_less_than(origin_x, origin_y, size):
pyautogui.press(",")- Python 3.12.5
- Tesseract OCR(需安装中文语言包
chi_sim) - Windows 系统(仅支持 Windows)
https://www.python.org/
https://github.com/tesseract-ocr/tesseract 请确保安装 中文语言包
清华源(推荐):
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python numpy pyautogui pytesseract keyboard官方源:
pip install opencv-python numpy pyautogui pytesseract keyboard修改脚本第 9 行:
pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"根据你实际屏幕位置调整坐标:
- Python
- Tesseract OCR
- OpenCV
- PyAutoGUI
ChaosJulien 📧 [email protected]
本项目基于 MIT License 详见 LICENSE
- GitHub Emoji Cheat Sheet
- Shields.io
- Choose an Open Source License
- GitHub Pages



