SforAiDl / Playground

A python library consisting of pipelines for visual analysis of different sports using Computer Vision and Deep Learning.
MIT License
18 stars 17 forks source link

Removing code redundancy #57

Closed ashwinvaswani closed 4 years ago

ashwinvaswani commented 4 years ago

Badminton.py has a lot of redundant code in terms of checks and if-else statements. For example:

if optimization==True:
            frames_skipped=frames_skipped_input
        else:
            frames_skipped=1
if optimization==True:
     count_of_frames=0
      .. and so on

Such scenarios can be removed and code can be optimised further

siddharth2411 commented 4 years ago

Hi, I have been working on this issue. I will soon finish it and send a PR.

ashwinvaswani commented 4 years ago

Sure