Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use TensorFlow to detect the Heros' hp bar #37

Open
ghost opened this issue Jul 28, 2017 · 6 comments
Open

Use TensorFlow to detect the Heros' hp bar #37

ghost opened this issue Jul 28, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Jul 28, 2017

@Jire
I am looking into your overwatch repo now. I have commented on the issue (#36). I have some idea about using ML algorithm to calculate the position of the enemy characters in Overwatch and I need some help about it.

I went through ur code and it seems u used javaCV to capture the images and have already set a fixed color tolerance. Do u have any idea about how blizzard block health bar capturing in the new patch?

Is it because blizzard forbid the programmatically mouse movements? Or it is because the health bar cannot be detected anymore?

If it is the second one, I can use some TensorFlow algorithm to solve the issue. I can train some model to detect the hp bar in the game.

cc: @allpeople welcome to give any advice on this issue.

@Jire
Copy link
Owner

Jire commented Jul 28, 2017

It fails for two reasons, Blizzard blocks gdi grab after a while (which I can fix), but a bigger issue is that the HP bar uses randomly generated shades of red that vary within every frame. Machine learning could he used to find the center or left corner, and I'd greatly appreciate any contribution or concept.

@ghost
Copy link
Author

ghost commented Jul 29, 2017

Thx for replying. In Progress.

@flengawy
Copy link

flengawy commented Aug 9, 2017

hello ..
i've downloaded your overwatch aim cheat but unfortunately it's not working , i got everything going fine and i started the game with the batch file but nothing happening when i start shooting , soo can you help me with this ?

@Exaphis
Copy link

Exaphis commented Nov 24, 2017

@Jire @pIRATEhG Since this issue has been inactive for a while, I took it upon myself to explore this idea further. My results can be seen in this repo.

The main issues of using machine learning is the speed of detection as well as the GPU usage. The GPU usage stays around 40% for faster_rcnn_inception_v2, causing stuttering in game if I don't enable VSync. The usage for ssd_mobilenet_v1 was much more reasonable, at around 18%.

The faster_rcnn_inception_v2 model had impressive accuracy, but was slow. The ssd_mobilenet_v1 model was fairly fast but had a few false positives and false negatives. I'm sure you guys can make something out of this.

@Jire
Copy link
Owner

Jire commented Nov 24, 2017

@Exaphis I thought of a simple center detection method which should be quite fast a few months ago, although I didn't implement it:

Count the number of consecutive horizontal pixels within the color range, then use the center pixel, which is the first horizontal pixel plus half the total spanning red pixels.

@v-b7
Copy link

v-b7 commented Nov 24, 2017

@Jire I actually used the method you mentioned for another game and works fine. I'm guessing OW has different shades of red. If the intensity of red in each shade would fall in a specific interval detecting the hp bar shouldn't be complicated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants