This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17871|Reply: 3

[Source] Use python to build "Million Winners" to automatically search for answers

[Copy link]
Posted on 1/22/2018 10:14:49 AM | | | |
Use python to build millions of answers and automatically search for answers on Baidu.
Use the platform
windows7
python3.6
MIX2 mobile phone
Code Principles

The content of the mobile phone screen is synchronized to the PC
Screenshot of the question
Analysis of screenshot text
Automatically search for text with your browser
Use the tutorial
1. Use Airdroid to display your phone screen on your computer screen.
It can also be implemented using the 360 mobile assistant. No code involved. The implementation effect is as shown in the figure:

2. When the question appears, run the python program and take a screenshot of the question.

Here we need to use two functions:

get_point() #采集要截图的坐标, and the height and width of the picture
window_capture() #截图



The screenshot after running is as follows:


3. Analysis and extraction of image text
Reference link: * Image to text * configuration method
Code section:



4. Search for text



All the codes are as follows:









Previous:Console.CancelKeyPress is introduced
Next:The principle of the stratum protocol for communication between mining machines and mining pools
Posted on 1/22/2018 5:51:20 PM |
After reading it, I was still confused  
Posted on 1/23/2018 9:05:46 AM |
I was confused
Posted on 2/6/2018 10:39:19 AM |
Good idea
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com