deepsidh9 / Live-Valorant-Overlay

An Overlay proof-of-concept Application for Valorant giving information in real-time about current match, spike and player status(dead/alive, weapons, ultimate points, shields etc.)
MIT License
106 stars 22 forks source link

Issues with the agents detection in customgames as observer #12

Open dequedrapha opened 2 years ago

dequedrapha commented 2 years ago

Hey, I tried to use it to create an cool tournament overlay. I created one and tested in normal games. Everything workeds fine. But not as a Observer...

Whats maybe the problem

So i think the problem is, that in custom games the masks of dead players are still visible. So the script will return them as still alive

So i hope, u can help me with my problem and again really nice work at all :)

deepsidh9 commented 2 years ago

Yes that may be the case that the masks, if bright enough, would make the players' status as alive. I'll try thinking of a solution. If you'd like to try, you can have a look at how much the template matching similarity is when the player is alive vs dead and then if a distinguishing threshold can be found. I'll be grateful if you could provide an image of how a dead player place vs an alive player place looks on the top of the screen in the latest patch in the observer mode.

dequedrapha commented 2 years ago

Yeah sure :D (Resolution 1080p [1920x1080] )

In this example, the skye of the defenders is dead

image

and here alive

image

If you need anything else I can help you with, please contact me 😄

dequedrapha commented 2 years ago

I dont wanna annoy u but any solutions yet? 😄

deepsidh9 commented 2 years ago

I have yet to try out different things to solve this issue. Any ideas to solve this are absolutely welcome.

dequedrapha commented 2 years ago

What about trying to find the hole agent pick without manipulate the image to black & white? wont that include the alpha "color"?