Code Monkey home page Code Monkey logo

wulh8410 / hero Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iflycn/hero

0.0 1.0 0.0 128 KB

百万英雄答题助手(适配百万英雄、芝士超人、冲顶大会、百万赢家、黄金十秒、全民答题、非答不可、蘑菇大富翁、百万黄金屋、极速挑战、小米有乐、百万文豪、头脑王者,自动显示答案,为电脑小白准备了打包好的程序)

Home Page: https://github.com/iflycn/hero

License: MIT License

Python 100.00%

hero's Introduction

百万英雄答题助手

使用 Python 开发的答题助手,自动显示答案,支持 Android 手机或电脑模拟器。内置适配 13 款 APP:百万英雄、芝士超人、冲顶大会、百万赢家、黄金十秒、全民答题、非答不可、蘑菇大富翁、百万黄金屋、极速挑战、小米有乐、百万文豪、头脑王者,你甚至可以自定义截图坐标——如果你的 APP 不在适配列表或出现截图错误。

号外

  • 电脑小白怎么办?加入 QQ 群 696211910 或邮件联系作者 [email protected],免费获取打包好的程序,把右手食指放在鼠标左键上双击就可以运行:)
  • 全自动版本的程序已完成,速度提升3倍,无需连接手机、无需额外安装任何依赖软件。该版本适配百万英雄、芝士超人、冲顶大会、百万赢家、黄金十秒,暂无开源计划,详情发邮件询问。
  • 更多答题 APP 适配中,如果你愿意帮助完善程序,可以提起 issues 或将未适配 APP 的问题完整截图发邮件给作者,注明 APP 名称,作者会优先进行适配。

运行效果截图

如何工作

  1. 从手机屏幕获取截图并上传到电脑
  2. 裁切出截图中的问题和答案部分,使用百度 ORC 识别文字
  3. 抓取问答网站数据,统计每个答案在数据中出现的次数
  4. 如果问答网站数据无法匹配,则使用问题+答案为关键字,抓取关键字在百度搜索中出现的次数
  5. 根据统计出的数据计算权重并给出建议回答

如何使用(Windows 系统)

安装 ADB

  1. 访问 ADB Shell 下载 ADB Kits,解压到硬盘目录,例如 D:\ADB
  2. 进入系统属性,点击环境变量,在弹出窗口的系统变量中找到 Path 并双击,在弹出窗口的变量值最后加上 ;D:\adb

设置你的手机

  1. 开启开发者选项,打开 USB 调试,小米手机一并打开 USB 调试(安全设置)
  2. 使用数据线连接手机,等待系统自动安装驱动完成

下载程序

  1. 下载百万英雄答题助手压缩包,解压到硬盘目录,例如 D:\hero-master
  2. 修改文件 config.ini 中的 APP_IDAPI_KEYSECRET_KEY 为你自己的,申请地址:百度 AI 开放平台
  3. 如果你使用的 APP 未适配,可以修改文件 config.ini 中的 ANSWER_SIZE 字段,其意义为选项数;修改 X1Y1X2Y2 字段,其意义分别为左边距、上边距、右边距和下边距

安装 Python

  1. Python 官网下载安装 python3.6.4
  2. 电脑运行 CMD,输入命令 pip3 install -r D:\hero-master\requirements.txt,等待下载依赖包并安装完成
  3. 如果下载依赖包过程中出错,重新输入命令 pip3 install -r D:\hero-master\requirements.txt 直到下载成功

开始使用

  1. 手机进入百万英雄界面
  2. 电脑运行 CMD,依次输入命令 D:cd hero-masterpython main.py,根据程序提示操作即可

参考项目

hero's People

Contributors

iflycn avatar

Watchers

 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.