My goal is to figure out the in-game damage formula, which requires me to look at and calculate a lot of damage. It's hard for me to do it myself, so I'm going to recognize the damage number (1930-1829 this feeling) displayed on the game screen, convert it into a number, and then analyze it through code.
Maybe it's because I don't have information power, but I don't think it comes out well even if I search on Google, so I'm asking you here. I know that location onscreen is a code that recognizes whether a specific image is present on the screen and tells you whether or not that image is present, and in the same way, I think you can recognize a specific number on the screen and store that number in the variable in the code.
For your information, I only learned coding for the first semester of my first year of college, so I don't know anything at all. It would be better if you could let me know the code directly, and I would really appreciate it if you could let me know the related site.
image min max
I think you should search for keywords such as object detection and ocr.
If you only have to recognize numbers, and the position in which the numbers are represented is constant, I think there is some possibility.
This is a somewhat relevant article that I found by searching roughly. (Of course, depending on your situation, it may be relevant, or it may be very remote. This is how to use opencv, pythesseract. )
This is a little harder to recognize license plates
https://www.youtube.com/watch?v=AAPZLK41rek
Stack overflow questions related to video game screen answer
Another stack overflow question answer easyorr use example
https://stackoverflow.com/questions/64895469/how-to-perform-ocr-on-running-program-window
© 2024 OneMinuteCode. All rights reserved.