Is there a code that reads the numeric image on the screen and switches to numeric characters?

Asked 2 years ago, Updated 2 years ago, 394 views

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

2022-11-20 19:48

1 Answers

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. )

https://medium.com/skilai/combining-optical-character-recognition-and-object-detection-for-document-processing-e8b9c488d9eb

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

https://stackoverflow.com/questions/50169850/whats-the-best-way-to-ocr-as-much-text-as-possible-from-video-game-screenshots

Another stack overflow question answer easyorr use example

https://stackoverflow.com/questions/64895469/how-to-perform-ocr-on-running-program-window


2022-11-21 13:04

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.