Giter Club home page Giter Club logo

wechat-jump's Introduction

自动玩微信小游戏跳一跳

中文说明请点这里

最新修正了一下各种aspect ratio的小问题,如果还有不能正确运行的问题,请发issue.

Requirements

  • Python
  • Opencv3
  • Tensorflow (if using nn_play.py)

for Android

  • Adb tools
  • Android Phone

for IOS (Refer to this site for installation)

  • iPhone
  • Mac
  • WebDriverAgent
  • facebook-wda
  • imobiledevice

Algorithms for Localization

  • Multiscale-search
  • CV based fast-search
  • Convolutional Neural Network based coarse-to-fine model

For algorithm details, please go to https://zhuanlan.zhihu.com/p/32636329.

Notice: CV based fast-search only support Android for now

Run

It is recommended to run the following if have an android phone

python play.py --phone Android --sensitivity 2.045

If you have an iPhone, download the model following the link below, and run the following

python nn_play.py --phone IOS --sensitivity 2.045
  • --phone has two options: Android or IOS.
  • --sensitivity is the constant parameter that controls the pressing time.
  • play.py using algorithm based on CV, support Android and IOS
  • nn_play.py using algorithm based on Convolutional Neural Network, support Android and IOS, recommend for IOS

Performance

Our method can correctly detect the positions of the man (green dot) and the destination (red dot).

It is easy to reach the state of art as long as you like. But I choose to go die after 859 jumps for about 1.5 hours.

state_859 state_859 sota

Demo Video

Here is a video demo. Excited!

微信跳一跳

Train Log & Data

CNN train log and train&validation data avaliable at

Training: download and untar data into any directory, and then modify self.data_dir in those files under cnn_coarse_to_fine/data_provider directory.

Inference: download and unzip train log dirs(train_logs_coarse and train_log_fine) into resource directory.

wechat-jump's People

Contributors

pkuanjie avatar prinsphield avatar jirujun avatar farrellcn avatar simon300000 avatar

Watchers

 avatar  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.