Westview-USC-Biomechanics-Collaboration / Prepare2Play-Learning-Experience

2 stars 4 forks source link

Force Plate Detection #38

Closed Yodaman07 closed 4 months ago

Yodaman07 commented 4 months ago

I added a file that can be used to detect whenever force plates are stepped on (when configured). Basically, it uses a bounding box on the force plate, and compares every frame with the first one, checking the pixel difference. 1000 or more different pixels signifies someone stepping on the force plate. I've been testing with one of the sample videos, and will likely need to test with our videos as well. It isn't integrated with the rest of the code base yet though. After this, I will work to write a program to merge the video and the graphs together, syncing them. I also added requirements.txt as it will make it easier to install necessary packages. I updated README.md to show how to install the requirements. I also renamed the main file to main.py because its more intuitive (its the main file to run the website).

allison-lane commented 4 months ago

Good idea renaming to main.py. Could you explain why you deleted the video upload functionality in SportsTemplate.html? And would you mind posting some kind of screen recording to the main slack demoing your detection program I'm sure everyone would love to see that!

Yodaman07 commented 4 months ago

Deleting the video upload functionality was an accident as I pulled the new commits in from main and accidentally deleted them. I just fixed them now, so that the only files being changed are the python ones that I was working with. I will post a screen recording of the detection in slack now! Thank you!