{"id":17315576,"url":"https://github.com/hanmin0822/raphaelscripthelper","last_synced_at":"2025-08-20T16:31:52.141Z","repository":{"id":40513667,"uuid":"449305560","full_name":"hanmin0822/RaphaelScriptHelper","owner":"hanmin0822","description":"一个用于快速编写游戏脚本的Python框架，适用于诸如明日方舟等各种平台的游戏","archived":false,"fork":false,"pushed_at":"2022-02-08T12:48:29.000Z","size":830,"stargazers_count":193,"open_issues_count":4,"forks_count":44,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-10T04:10:22.824Z","etag":null,"topics":["adb","arknights","game","helper","opencv","python","roguelike-game","script","simulator"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanmin0822.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-18T13:57:11.000Z","updated_at":"2024-12-10T02:14:02.000Z","dependencies_parsed_at":"2022-09-05T22:22:21.135Z","dependency_job_id":null,"html_url":"https://github.com/hanmin0822/RaphaelScriptHelper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanmin0822%2FRaphaelScriptHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanmin0822%2FRaphaelScriptHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanmin0822%2FRaphaelScriptHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanmin0822%2FRaphaelScriptHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanmin0822","download_url":"https://codeload.github.com/hanmin0822/RaphaelScriptHelper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230438185,"owners_count":18225870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adb","arknights","game","helper","opencv","python","roguelike-game","script","simulator"],"created_at":"2024-10-15T13:09:19.502Z","updated_at":"2024-12-19T13:07:40.076Z","avatar_url":"https://github.com/hanmin0822.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  RaphaelScriptHelper 拉斐尔脚本助手\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003e～轻松编写更智能的游戏脚本～\u003c/b\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n\u003e **警告：本项目仅作学习交流用途，禁止将本项目中的任何脚本、工具用于任何非法用途，如果使用本项目中的任何脚本、工具造成游戏被封号、处罚等一切损失需自行承担后果，本项目对此概不负责！**\n\n\u003e 请注意：使用脚本会在一定程度上影响游戏体验，请根据自身需求使用。\n\n\n本项目的命名取自轻小说[《关于我转生变成史莱姆这档事》](https://mzh.moegirl.org.cn/%E5%85%B3%E4%BA%8E%E6%88%91%E8%BD%AC%E7%94%9F%E5%8F%98%E6%88%90%E5%8F%B2%E8%8E%B1%E5%A7%86%E8%BF%99%E6%A1%A3%E4%BA%8B)中主角 \u003cruby\u003e\u003crt\u003e\u003c/rt\u003e利姆鲁·特恩佩斯特\u003crp\u003e（\u003c/rp\u003e\u003crt\u003eリムル・テンペスト\u003c/rt\u003e\u003crp\u003e）\u003c/rp\u003e\u003c/ruby\u003e 进化成魔王后持有的究极技能之一 \u003cruby\u003e\u003crt\u003e\u003c/rt\u003e智慧之王\u003crp\u003e（\u003c/rp\u003e\u003crt\u003e拉斐尔\u003c/rt\u003e\u003crp\u003e）\u003c/rp\u003e\u003c/ruby\u003e ，拉斐尔具有接管主角意识并代打的能力，这很像使用本项目来帮助我们完成一些重复繁琐的流程。~~所以说本项目也可以帮助你成为萌王？(误)~~\n\n[演示视频](https://www.bilibili.com/video/BV1RZ4y1f76m/)\n\n## 简介\nRaphaelScriptHelper (拉斐尔脚本助手/拉斐尔模块) 是一个基于openCV图像处理、OCR、ADB等技术的Python框架，可以让脚本编写者在短时间内编写出一个实用的游戏脚本，适用于可以支持脚本运行的各种系统及模拟器，支持诸如识图、点击、按键、滑动、文字识别、随机操作等功能。一个实用的例子是几行代码编写一个简单的明日方舟日常刷图脚本（见演示视频）。\n\n## 目前可以直接使用的脚本\n* [明日方舟集成战略模式（肉鸽）脚本](https://github.com/hanmin0822/RaphaelScriptHelper/blob/master/Arknights/ArknightsRoguelike.py)\n* [明日方舟日常刷图脚本](https://github.com/hanmin0822/RaphaelScriptHelper/blob/master/Arknights/Arknights_default.py)\n\n\u003e 请注意：请仔细阅读各脚本最上方的注释说明再使用。\n\n欢迎大家编写更多好用的脚本并提PR到本项目中来哦～\n\n## 环境配置\n\nPython 3.7\n\n使用到的Python库\n\n```\nnumpy=1.19.5\nopencv-python=4.5.1.48\n```\n\nADB套件请在[这里](https://pan.baidu.com/s/15dpjviyIHezaT56knux2xQ?pwd=mr5p)下载并解压放置到脚本框架根目录\n\n## 快速上手\n使用一行代码来引入 RaphaelScriptHelper\n```python\nimport RaphaelScriptHelper as rsh\n```\n使用一至两行代码来指定脚本运行的设备\n```python\nrsh.deviceType = 1 #0为PC环境，1为安卓设备\nrsh.deviceID = \"安卓设备ID\" #如使用安卓设备，请填写\n```\n使用一行代码来模拟点击屏幕，会自动在一定范围内随机偏移、随机时长（防作弊检测）来点击一次\n```python\nrsh.touch(pos)\n```\n使用一行代码来模拟点击屏幕上指定区域，先使用[选择工具](https://github.com/hanmin0822/RaphaelScriptHelper/blob/master/FunctionDoc.md#%E6%A0%87%E7%82%B9%E6%88%AA%E5%8F%96%E5%B7%A5%E5%85%B7%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E)来指定区域并保存，方便后续识别，会自动在识别区域内任意点、随机时长（防作弊检测）来点击一次\n```python\nrsh.find_pic_touch(\"./test.png\")\n```\n## 详细功能\n请参阅[详细功能使用手册](https://github.com/hanmin0822/RaphaelScriptHelper/blob/master/FunctionDoc.md)\n\n## 注意事项\n* 本项目仅作学习交流用途，禁止将本项目中的任何脚本、工具用于任何非法用途，如果使用本项目中的工具造成游戏被封号、处罚等概不负责\n* 针对识图功能，不会改变欲识别图片的大小，而是直接用这张图片去比对，因此如果存在被查找图片中找不到欲识别图片的情况，请先检查分辨率是否正确，然后再调节可信度阈值以达到效果\n\n## TODO\n* 支持PC端截图、键盘鼠标智能模拟\n* 支持在线/离线OCR\n* 增加GUI界面支持可视化编写流程\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanmin0822%2Fraphaelscripthelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanmin0822%2Fraphaelscripthelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanmin0822%2Fraphaelscripthelper/lists"}