How to find game assistants and plug-ins

Source: Internet
Author: User

When I play games with my female at home, I always lose, which makes my brother very angry. So I think of cheating. Hey hey, just do it. I am using the dumbest method, first, findwindow finds the location of the 'Everybody comes to find lates', and then captures the two images for comparison based on the calculated relative location.

At the beginning, we compared the RGB values directly, but the results were terrible. The reason for analysis is that R, G, and B may only have one or several differences. We cannot directly compare the entire RGB value, therefore, when R, G, and B are compared separately, as long as there is a value greater than the threshold (10 for the threshold value and the experience value), the pixels are different. In this way, the effect is still very poor.

I accidentally saw the digital image processing book I bought in the university era. I haven't looked over it for a long time. Now I can take a look at it and see if I can find some inspiration and quickly browse the directory, there are still gains. The comparison of templates is used to replace the comparison of a single pixel, and the effect is greatly improved. Considering the efficiency issue, we finally adopted the 5x5 matrix for comparison.

Algorithm Introduction: Compare the 5x5 area around each pixel. If the R, G, and B values of each pixel in the 5x5 area are greater than the threshold value (10 ), this pixel is considered to be different and then marked as a specific color (such as red). The following is the actual operation:


Download from here



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.