Closed ashwinvaswani closed 4 years ago
Hey! I'm willing to take up this issue. I just wanted to point out some things after I went through the code briefly :
You can suggest your changes in the appropriate file, I will try implementing them.
Sure. In that case, let's keep it standard process to use OpenCV from now on. In the file Badminton/Badminton.py do the following: Currently, only path is taken as input, Add an additional parameter taking input as loaded image array so that the user has option of using ANY ONE form of input. Put appropriate checks in place such that if two parameters are passed, an error is shown as loaded image, and image from the input image path might be different in an exceptional case leading to bugs.
Create another method with the name detect_players_video() which takes in the video / video path as parameter similar to above, parser through the video, and runs detections on it.
Best of luck!
In the detector, check if the input is image or video. If it is a video then parse through the video and run the detector on each of the individual frames of the video.