|
5 | 5 | "colab": { |
6 | 6 | "provenance": [], |
7 | 7 | "mount_file_id":"1YJfEK8zha4PfUk2yP9y-XbO4vtmn83gE", |
8 | | -"authorship_tag":"ABX9TyOyhs6wOIUjt8ldGL3tny7R", |
| 8 | +"authorship_tag":"ABX9TyNgivKc9gAyXG4G0z3lioA1", |
9 | 9 | "include_colab_link":true |
10 | 10 | }, |
11 | 11 | "kernelspec": { |
|
24 | 24 | "colab_type":"text" |
25 | 25 | }, |
26 | 26 | "source": [ |
27 | | -"<a href=\"https://colab.research.google.com/github/pythonioncoder/ExerciseApp/blob/csv/Prototype_2_Electric_Boogalooo.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" |
| 27 | +"<a href=\"https://colab.research.google.com/github/pythonioncoder/Fit-Form-AI/blob/main/Prototype_2_Electric_Boogalooo.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" |
28 | 28 | ] |
29 | 29 | }, |
30 | 30 | { |
|
38 | 38 | }, |
39 | 39 | { |
40 | 40 | "cell_type":"code", |
41 | | -"execution_count":null, |
| 41 | +"execution_count":1, |
42 | 42 | "metadata": { |
43 | 43 | "id":"gmwahO7oITMz", |
44 | | -"outputId":"0da9dc4e-93dc-42cf-b100-08d7b4c71d37", |
| 44 | +"outputId":"5a88f36a-ef77-4550-ee4f-2dee36b2526d", |
45 | 45 | "colab": { |
46 | 46 | "base_uri":"https://localhost:8080/" |
47 | 47 | } |
|
51 | 51 | "output_type":"stream", |
52 | 52 | "name":"stdout", |
53 | 53 | "text": [ |
54 | | -"\u001b[2K\u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[32m33.9/33.9 MB\u001b[0m\u001b[31m25.7 MB/s\u001b[0m eta\u001b[36m0:00:00\u001b[0m\n", |
| 54 | +"\u001b[2K\u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[32m33.9/33.9 MB\u001b[0m\u001b[31m11.9 MB/s\u001b[0m eta\u001b[36m0:00:00\u001b[0m\n", |
55 | 55 | "\u001b[?25h" |
56 | 56 | ] |
57 | 57 | } |
|
71 | 71 | "colab": { |
72 | 72 | "base_uri":"https://localhost:8080/" |
73 | 73 | }, |
74 | | -"outputId":"a819fc96-3036-4e7e-8905-925448d12589" |
| 74 | +"outputId":"34c50804-976f-484f-fbe1-32b9669dbbd6" |
75 | 75 | }, |
76 | | -"execution_count":25, |
| 76 | +"execution_count":2, |
77 | 77 | "outputs": [ |
78 | 78 | { |
79 | 79 | "output_type":"stream", |
80 | 80 | "name":"stdout", |
81 | 81 | "text": [ |
82 | | -"Drive already mountedat /content/drive; to attempt to forcibly remount, call drive.mount(\"/content/drive\", force_remount=True).\n" |
| 82 | +"Mountedat /content/drive\n" |
83 | 83 | ] |
84 | 84 | } |
85 | 85 | ] |
|
122 | 122 | "metadata": { |
123 | 123 | "id":"whZwvEdKIksm" |
124 | 124 | }, |
125 | | -"execution_count":26, |
| 125 | +"execution_count":3, |
126 | 126 | "outputs": [] |
127 | 127 | }, |
128 | 128 | { |
|
288 | 288 | "metadata": { |
289 | 289 | "id":"RHyJwan8acCz" |
290 | 290 | }, |
291 | | -"execution_count":29, |
| 291 | +"execution_count":4, |
292 | 292 | "outputs": [] |
293 | 293 | }, |
294 | 294 | { |
|
316 | 316 | { |
317 | 317 | "cell_type":"code", |
318 | 318 | "source": [ |
319 | | -"model_path = '/content/drive/MyDrive/Exercise App Resources/pose_landmarker_lite.task'\n", |
| 319 | +"model_path = model_path = f'/content/drive/MyDrive/Exercise App Resources/pose_landmarker_{input(\"What model to use?\")}.task'" |
| 320 | + ], |
| 321 | +"metadata": { |
| 322 | +"id":"Zng2DvUJcJjc", |
| 323 | +"outputId":"5e773745-adb7-45d0-fbf6-dc47ad96e633", |
| 324 | +"colab": { |
| 325 | +"base_uri":"https://localhost:8080/" |
| 326 | + } |
| 327 | + }, |
| 328 | +"execution_count":9, |
| 329 | +"outputs": [ |
| 330 | + { |
| 331 | +"name":"stdout", |
| 332 | +"output_type":"stream", |
| 333 | +"text": [ |
| 334 | +"What model to use? heavy\n" |
| 335 | + ] |
| 336 | + } |
| 337 | + ] |
| 338 | + }, |
| 339 | + { |
| 340 | +"cell_type":"code", |
| 341 | +"source": [ |
320 | 342 | "BaseOptions = python.BaseOptions # Basic Options Object\n", |
321 | 343 | "PoseLandmarker = vision.PoseLandmarker # Pose Landmarker Model Object\n", |
322 | 344 | "PoseLandmarkerOptions = vision.PoseLandmarkerOptions # Overall Options Object\n", |
|
505 | 527 | "id":"GHzmhoO6Jc50", |
506 | 528 | "colab": { |
507 | 529 | "base_uri":"https://localhost:8080/", |
508 | | -"height":231 |
| 530 | +"height":856 |
509 | 531 | }, |
510 | | -"outputId":"e733f64b-4fd4-4081-c2b0-06fce7b19b0a" |
| 532 | +"outputId":"4d009091-47a2-49c6-e8e8-70a776fb6d19" |
511 | 533 | }, |
512 | | -"execution_count":30, |
| 534 | +"execution_count":10, |
513 | 535 | "outputs": [ |
514 | 536 | { |
515 | 537 | "name":"stdout", |
516 | 538 | "output_type":"stream", |
517 | 539 | "text": [ |
518 | 540 | "What exercise are you tracking?\n", |
519 | | -"Bicep Curl\n" |
| 541 | +"Push Up\n" |
520 | 542 | ] |
521 | 543 | }, |
522 | 544 | { |
|
640 | 662 | "output_type":"stream", |
641 | 663 | "name":"stdout", |
642 | 664 | "text": [ |
| 665 | +"Left Arm Isn't Visible\n", |
| 666 | +"Right Arm Isn't Visible\n", |
| 667 | +"Left Arm Isn't Visible\n", |
| 668 | +"Right Arm Isn't Visible\n", |
| 669 | +"Left Arm Isn't Visible\n", |
643 | 670 | "Right Arm Isn't Visible\n", |
644 | 671 | "Left Arm Isn't Visible\n", |
645 | 672 | "Right Arm Isn't Visible\n", |
|
649 | 676 | "Right Arm Isn't Visible\n", |
650 | 677 | "Left Arm Isn't Visible\n", |
651 | 678 | "Right Arm Isn't Visible\n", |
652 | | -"Left Arm Isn't Visible\n" |
| 679 | +"Left Arm Isn't Visible\n", |
| 680 | +"Right Arm Isn't Visible\n", |
| 681 | +"Left Arm Isn't Visible\n", |
| 682 | +"Right Arm Isn't Visible\n", |
| 683 | +"Try Straightening Your Arm Somewhat\n", |
| 684 | +"Right Arm Isn't Visible\n", |
| 685 | +"Try Straightening Your Arm Somewhat\n", |
| 686 | +"Left Arm Isn't Visible\n", |
| 687 | +"Right Arm Isn't Visible\n", |
| 688 | +"Try Straightening Your Hip Somewhat\n", |
| 689 | +"Try Straightening Your Arm Somewhat\n", |
| 690 | +"Try Straightening Your Hip Somewhat\n", |
| 691 | +"Try Straightening Your Arm Somewhat\n", |
| 692 | +"Right Leg Isn't Visible\n", |
| 693 | +"Try Straightening Your Arm Somewhat\n", |
| 694 | +"Try Straightening Your Hip Somewhat\n", |
| 695 | +"Try Spreading Your Arms Out More\n", |
| 696 | +"Good Form\n", |
| 697 | +"Try Straightening Your Legs More\n", |
| 698 | +"Try Spreading Your Arms Out More\n", |
| 699 | +"Good Form\n", |
| 700 | +"Try Spreading Your Arms Out More\n", |
| 701 | +"Good Form\n", |
| 702 | +"Try Spreading Your Arms Out More\n", |
| 703 | +"Good Form\n", |
| 704 | +"Try Spreading Your Arms Out More\n", |
| 705 | +"Try Straightening Your Arm Somewhat\n", |
| 706 | +"Try Spreading Your Arms Out More\n", |
| 707 | +"Good Form\n", |
| 708 | +"Right Leg Isn't Visible\n", |
| 709 | +"Try Straightening Your Hip Somewhat\n" |
653 | 710 | ] |
654 | 711 | } |
655 | 712 | ] |
|