Please indicate the author for reprint

Important update System framework update and optimization, complete within 5s!

“Million Hero” is a national knowledge interactive game, in “Million Hero” each 12 questions answered correctly, will share the prize money.
Follow-up updates on my Github, welcome to Daniel P.R. :

lingfengsan/MillionHero

MillionHero gitee Warehouse address: MillionHero – code cloud Gitee.com

Update

  1. See the changelog github.com/lingfengsan…
  2. Currently, baidu OCR has been added for specific use

Q&A

See the Wiki – FAQ github.com/lingfengsan…

Game mode

There are 12 questions in total. If you get all of them right, you’ll split the prize

If you can extract the questions and answers from the live broadcast, and then baidu, and then statistics which is more relevant, can help you answer the questions. Of course, baidu can also be directly out of the questions and answers are displayed. The first one used in this article is simple and crude.



Tool is introduced

  • JAVA8
  • Android mobile phone
  • The Adb driver

Principle that

  1. Click the phone to the live broadcast interface (here we first open a picture);
  2. Use the Adb tool to get a screenshot of the current phone
  3. TessOCR is used for image recognition and text extraction.
  4. Extract questions and answers from the text;
  5. Use Baidu search and open the web page, and then count the number of search results
  6. Calculate the pmi
  7. Choose the answer with the highest PMI value.
The formula is based on Wikipedia's Pointwise Mutual InformationCopy the code

steps

  1. Detailed steps see https://github.com/lingfengsan/MillionHero/wiki/Android%E6%93%8D%E4%BD%9C%E6%AD%A5%E9%AA%A4

The experimental results

PS:

Helpless oneself are on a business trip, notebook speed and net speed are slower, better computer and net speed can be promoted very certainly.