Open leemingo opened 2 weeks ago
I think this is just down to the fact we give the coordinates of events from the perspective of the team who the event belongs to with them always shooting left-to-right. So in those examples the pressure event is flipped because it comes from the other team.
Does that make sense?
Thank you for your response. I initially thought the same, but after visualizing other match data, I noticed that not only Pressure, but also Ball Receipt and Pass were sometimes visualized in the opposite direction, as shown below. In some cases, the Ball Receipt and Pass are displayed in the opposite direction, while in others, they follow the original direction. And as seen in the third image, there were cases where only the event location was correct, while the positions of the other players were in the opposite direction. I’m wondering what rule should be applied to ensure consistent visualization.
@leemingo Do you have the keys or the IDs of these frames?
@leemingo @scotty779, Do you have any event IDs with this issue so I can check them?
@moshahin8 ID of first image (btw Leverkusen and Bremen) is 3895302 and event ID of Pressure is cfa1f5e1-4e8e-4fc2-bbc8-4df5fdef8283. Second image (btw Berlin and Leverkusen)is 3895292 and event ID of Ball Receipt* (third one) is fa528a3f-7190-4700-9f51-16c6a671a4f3.
we will check it on our end and then get back to you asap @leemingo
@leemingo Hey so the issue is down to failed ball receipts which we use to know who the intended pass recipient was for failed passes. In this case you can remove any ball receipts with the outcome as failed and that should tidy up the visualisations for you.
So that means any kind of action it was failed or events from the other team (like pressure) are provided as flipped?
Coordinates are always from the perspective of the team the event belongs to, with the team always shooting left to right. Only failed ball reciepts should be removed as they're not real events, we synthesise them for modelling purposes.
Does that make sense?
Thanks for your answer! Would the same reasoning apply to actions like "Dispossessed" as well?
Contact Details
mhlee7227@gmail.com
Version
1.0.1
What platform are you seeing the problem on?
Linux
What Python version are you running, are you using a virtual environment? Give us as much info as you can.
Python 3.10.14
What happened?
When visualizing Statsbomb 360 data in chronological order, certain data points appear to be recorded as if they are left-right mirrored compared to the expected image. Could you clarify how this left-right inversion might be represented in the data? If not, what is the correct method to visualize the data accurately?
Relevant log output
Code to reproduce issue
Attempted solutions
I have noticed that flipping the x and y coordinates resolves the issue with visualizing Statsbomb 360 data correctly. However, I am unsure which specific datasets are recorded with flipped coordinates.