I’m currently using object detection to detect football players on a football pitch. From the x,y I receive I then want to transform them and use cv2.circle to plot them on a different image (a smaller birdseye view of the pitch) for anaysis. I can do this currently but it’s mainly manual as the camera position is not static. So, I take the coods of the penalty box on the real image, then take the coords of the penalty box on my birdsye image then pass them through getPerspectiveTransform which in essence give me the new coords to plot. It works brilliantly! However, as soon as the camera moves it changes perspective and the players are no longer mapped onto the birdseye image in the same place. Can anybody help me or point me in the right direction to solve this issue?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Help with feature detection in an image (finding the centre circle on a soccer pitch) | 1 | 385 | December 21, 2023 | |
Auto follow sports action? | 2 | 407 | March 6, 2022 | |
Mini Map Player Detection | 1 | 893 | February 20, 2024 | |
warpPerspective but inverse homography | 4 | 6100 | October 9, 2021 | |
Ball position detection in Padel game | 2 | 93 | September 3, 2024 |