- Download the required packages (NumPy and OpenCV).
- Add the path to your video in line number 18.
- The first frame of the video will be displayed. Click on the image to select the points (barbells, dumbbells) you wish to track. A white circle will appear once you have clicked on the image.
- The tracked path will be displayed and the video will be saved as output.mp4
- Check if your form is correct while lifting heavy weights so that you can avoid any injury and lift weights the right way!