Giter Site home page Giter Site logo

letterbuild / robothelper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jinnrry/robothelper

0.0 1.0 0.0 113.6 MB

安卓游戏自动化脚本框架|Automated script for Android games

License: GNU Affero General Public License v3.0

Java 89.85% Python 10.15%

robothelper's Introduction

issues forks stars lincense Codacy grade

RobotHelper

这是做什么的?

一个安卓手游脚本的框架。包含了游戏辅助开发常用的点击,找点,文字识别等功能。具体开发说明参见 wiki

V1.0版本简介

1.新增了图片模板匹配(相当于按键精灵找图功能的升级版),自动处理图像分辨率问题,一次抓图,多分辨率终端可用

2.内置了Tessact-Ocr,不再依赖服务端做文字识别,支持设置黑白名单

3.内置opencv,各种图像处理,轨迹追踪,再也不是难题

Demo

更多使用参见 cn.xjiangwei.RobotHelper.GamePackage.Main类代码和Wiki说明

Point point = Image.findPointByMulColor(ScreenCaptureUtil.getScreenCap(), "434FD7,65|0|414DDB,90|55|46CDFF,5|86|5FA119");
Robot.tap(point);

以上代码将会在屏幕中查找chrome图标,然后点击这个图标(你直接运行这段代码可能不会成功,因为你的手机屏幕尺寸跟我不一样)

String s = OcrApi.multLineOcr(ScreenCaptureUtil.getScreenCap(), 0, 0, 200, 30);
MLog.info(s);

以上代码将输出(0,0)到(200,30)这个矩形区域内的文字。

未来规划

  • 1.Hook系统相关api,修改系统相关常量,使游戏可以在模拟器中运行,并且让游戏无法识别模拟器
  • 2.没了,如有建议可以提issues或者pr

robothelper's People

Contributors

jinnrry avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.