|
5 | 5 | "colab": {
|
6 | 6 | "provenance": [],
|
7 | 7 | "mount_file_id": "1YJfEK8zha4PfUk2yP9y-XbO4vtmn83gE",
|
8 |
| - "authorship_tag": "ABX9TyOEtdKbdYSy497U7kO4OScE", |
| 8 | + "authorship_tag": "ABX9TyOxdY25CPapUx8uMRKR6IDa", |
9 | 9 | "include_colab_link": true
|
10 | 10 | },
|
11 | 11 | "kernelspec": {
|
|
173 | 173 | " # Calculates the angles the exercise requires (determines necessity if weight value signals its needed)\n",
|
174 | 174 | " # Compares the calculated angle with the min-max of the exercise\n",
|
175 | 175 | " def feedback(self, exercise):\n",
|
176 |
| - " with open(f'/content/drive/MyDrive/Exercise App Resources/CSV Files/{exercise}.csv') as anglefile:\n", |
| 176 | + " with open(f'/content/drive/MyDrive/Fit Form AI Resources/CSV Files/{exercise}.csv') as anglefile:\n", |
177 | 177 | " anglereader = csv.reader(anglefile)\n",
|
178 | 178 | " for row in anglereader:\n",
|
179 | 179 | " # First check to see if you should calculate the angle\n",
|
|
316 | 316 | {
|
317 | 317 | "cell_type": "code",
|
318 | 318 | "source": [
|
319 |
| - "model_path = f'/content/drive/MyDrive/Exercise App Resources/pose_landmarker_{input(\"What model to use? \")}.task'" |
| 319 | + "model_path = f'/content/drive/MyDrive/Fit Form AI Resources/pose_landmarker_{input(\"What model to use? \")}.task'" |
320 | 320 | ],
|
321 | 321 | "metadata": {
|
322 | 322 | "id": "Zng2DvUJcJjc",
|
|
370 | 370 | "PoseLandmarkerResult = vision.PoseLandmarkerResult # Stores result from model\n",
|
371 | 371 | "out_video = None\n",
|
372 | 372 | "if record:\n",
|
373 |
| - " out_video = cv.VideoWriter('/content/drive/MyDrive/Exercise App Resources/Videos/' + time.asctime(time.localtime()) + '.mp4',cv.VideoWriter_fourcc(*'DIVX'), 24, (640, 480))\n", |
| 373 | + " out_video = cv.VideoWriter('/content/drive/MyDrive/Fit Form AI Resources/Videos/' + time.asctime(time.localtime()) + '.mp4',cv.VideoWriter_fourcc(*'DIVX'), 24, (640, 480))\n", |
374 | 374 | "landmarks_list = []\n",
|
375 | 375 | "feedback_list = [\"\"]\n",
|
376 | 376 | "selected_exercise = input(\"What exercise are you tracking?\\n\")\n",
|
|
0 commit comments