AI Pose Estimation with Python and MediaPipe | Plus AI Gym Tracker Project

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 597

  • @winstonyeung1461
    @winstonyeung1461 3 роки тому +20

    Sir, your presentation is really systematic and content is as always informative. Thank you so much.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Thank you so much @Winston, glad you enjoyed it!

  • @sikandarencosa2490
    @sikandarencosa2490 3 роки тому +3

    this channel is such a gem tbh

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Thanks so much @Sikander encosa, pumped you're enjoying it!

    • @christophersaric
      @christophersaric Місяць тому

      Was just thinking yesterday how lucky we are that Nicholas Renotte is doing this. Hopefully rewarding for him, too.

  • @shukkkursabzaliev1730
    @shukkkursabzaliev1730 3 роки тому +29

    Mind blowing tutorial! Look forward for more similar projects, especially the one you talked about (counter for several exercises at once). Liked + subscribed + bell turned on!

    • @gnm81
      @gnm81 8 місяців тому

      When will that video come out

  • @MJ720
    @MJ720 Рік тому +3

    I decided to try and use mediapipe for a project I was doing but got discouraged by some of the documentation as I struggled to even install it. I then came to this tutorial and you made it look so easy and understandable! Thanks.

    • @forgewhelbon1131
      @forgewhelbon1131 6 місяців тому +1

      Did u get any os error trying to install media pipe?if so how did u fix it?

    • @MJ720
      @MJ720 6 місяців тому

      @@forgewhelbon1131 I didn't get any errors sorry. Good luck in sorting!

    • @forgewhelbon1131
      @forgewhelbon1131 6 місяців тому

      @MJ720 oh ok :( thnx tho

  • @tutomaster4441
    @tutomaster4441 Місяць тому

    my boy, you earned a true fan!, greetings from Chile, on our quest to the future, you have guided us to shores!

  • @LabbHasse
    @LabbHasse 2 роки тому +4

    Thank you so much. Your teaching and tutorial style is the perfect match for me. Clear an precise, and you continuously explain everything you do, thanx!!

  • @ishanubale9680
    @ishanubale9680 3 роки тому +2

    very good video all info from the start and no complicated installations

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Thanks so much @Ishan, tried to keep it as smooth as possible!

  • @mathieuraffinot1126
    @mathieuraffinot1126 3 роки тому +1

    Many thanks for this tutorial ! The video is well done, your explanations are very clear, and the code ran directly on my computer without any modifications, which is quite rare !

  • @jerrylee520
    @jerrylee520 Рік тому +1

    This is the best video I saw to use & test pose estimate. Thank you.

  • @epidemiaproductions
    @epidemiaproductions 3 роки тому +7

    I've saved this vid for later, dude you are just amazing, i'm loving all the vids and the way you teach is really easy to understand, keep it up!
    cheers from brazil :)

  • @minhnamphan864
    @minhnamphan864 7 місяців тому

    I needed to calculate the angle of my arm to my body and your video helped me a lot. Thank you very much. I hope you release more videos

  • @udaysodhi7574
    @udaysodhi7574 3 роки тому +1

    More content creators like you should exist

  • @bhaskarkc7276
    @bhaskarkc7276 2 роки тому +1

    I am learning python and its been week but i can totally follow you. Great work.

  • @Flipszn
    @Flipszn 3 роки тому +2

    THANK YOU SO MUCH. YOU SAVED MY SENIOR DESIGN PROJECT

  • @AshishPandey-cp7dm
    @AshishPandey-cp7dm 3 роки тому

    and once again super thanks for doing this. You make it super easy for a beginner to understand stuffs. This was your second tutorial i tried (1st one being Object detection - 5hr course).

  • @bankcrawpackchannel6936
    @bankcrawpackchannel6936 3 роки тому +9

    Please make more MediaPipe hands tracking projects, we love this content thank you so much

  • @madebymate4870
    @madebymate4870 3 роки тому +4

    Thank you dude!
    You are the most underrated youtuber I have ever seen
    I'm loving this video although I have one question
    How do you do the exact same thing
    But instead of a camera,
    You do it with screen recording live?
    Hope you or anyone else can help me
    Cuz I'm really stuck

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Could access a screen using pyautogui and use that as the video instead of the feed from opencv. Check this out www.thepythoncode.com/article/make-screen-recorder-python

    • @madebymate4870
      @madebymate4870 3 роки тому

      @@NicholasRenotte thanks!

  • @muhammadmemon2394
    @muhammadmemon2394 6 місяців тому

    Excellent step-by-step video! Great work! So much help for my capstone!

  • @malekaburaddaha5910
    @malekaburaddaha5910 2 роки тому

    Man you're the greatest, this is just what I was looking for.

  • @ancycoding
    @ancycoding Рік тому

    Really powerful library of python and the teacher too.

  • @ademhilmibozkurt7085
    @ademhilmibozkurt7085 2 роки тому

    What a video Nich. I love data science and computer vision contents. Thank you

  • @nilutpolkashyap
    @nilutpolkashyap 3 роки тому +2

    Yeah......this is great.....was waiting for this project

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Awesome!! Stay tuned, another sweet one coming on Sunday!

  • @sangitaajay3266
    @sangitaajay3266 3 роки тому +1

    Cool project Nick you are such a great coder

  • @KJletMEhandelit
    @KJletMEhandelit 10 місяців тому

    Great video, I'm happy that i learnt something via implementing with proper guidance.

  • @파란색동물
    @파란색동물 Рік тому +15

    I copied your code, but the angle is not displayed on the screen. I don't know what the problem is.

    • @ipirediatoir247
      @ipirediatoir247 Рік тому

      if you found a solution please tell me

    • @kaviyak7308
      @kaviyak7308 4 місяці тому

      Did you find a solution? I'm dealing with the same problem

    • @rafaychaudry320
      @rafaychaudry320 3 місяці тому

      @@kaviyak7308 did you find a solution?

  • @Gabbosauro
    @Gabbosauro 3 роки тому +1

    I will keep an eye on this since it will somehow become my master thesis! :)

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Awesome stuff @Gabbosaur! What's your thesis on?

    • @Gabbosauro
      @Gabbosauro 3 роки тому

      @@NicholasRenotte Basically it's a sort of personal trainer but more focused on calisthenics workout types. It checks the quality of your movement and re-schedules the workout program based on your performance.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      @@Gabbosauro nice! Sounds awesome man!

  • @mikecooper8142
    @mikecooper8142 3 роки тому +6

    here for the youtube algorithms. I will definitely watch it later tho. :)

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Thanks so much @Mike, let me know what you think!

    • @khronos142
      @khronos142 3 роки тому

      mythmon spotted :3

  • @captainlennyjapan27
    @captainlennyjapan27 3 роки тому +2

    I just tweaked this to track my basketball shooting motion in just an hour!!! Thank you for the awesome tutorial 👍🏻👍🏻👍🏻

    • @favourchianumba5823
      @favourchianumba5823 3 роки тому

      hey bro could you send me your github, id love to see how you did it, Im having trouble implementing the first block of code after I import everything and Im not sure what I am doing wrong

    • @stokrandy
      @stokrandy 8 місяців тому

      I’m interested in how/what you did. The reason I’m watching this is track my daughter’s softball fast pitch.
      The initial idea was to identify what pattern she uses to get the strike. I thought I could monitor her movement, read the speed of the ball, and determine if it was in the strike zone.
      Man, was I kidding myself. lol there is a lot to each of those tasks. Too much to accomplish all at once.

  • @kanyinsolaolajide648
    @kanyinsolaolajide648 2 роки тому +2

    Hello Nicholas,
    Great work doing all of these; it was enlightening. I wanted to know if you have done the multi-pose/ multi gym tracking you spoke of around 52:11.
    Thank you.

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому +1

      There's a vid on the channel somewhere, I just did the estimation not the pose detection!

    • @kanyinsolaolajide648
      @kanyinsolaolajide648 2 роки тому

      @@NicholasRenotte Thank you so much! Is there a way to estimate if specific key points in a video fed into the MediaPipe are missing? Say a video of me with just my head and shoulders, and I want to calculate the key point of my ankle. Is this possible?

  • @williambittner8828
    @williambittner8828 3 роки тому

    Completed the tutorial and learned a looot!! Thank you very much :)

  • @henkhbit5748
    @henkhbit5748 3 роки тому +1

    Super cool and awesome Nick!.

  • @leamon9024
    @leamon9024 2 роки тому

    Thanks. This is amazing. Looking forward to the multi-pose tracker tutorial.

  • @abhishek_maity
    @abhishek_maity 3 роки тому +5

    After MediaPipe Please do cover YOLO v5 /v4 ! I love your courses. They are really awesome! :)

  • @zindamayat
    @zindamayat 3 роки тому +1

    Bro, you are an angel for me. I have the same FYP Body Posture detection correct count in my Gym App. You save me. Thanks, Bro.

    • @florianbouron8340
      @florianbouron8340 3 роки тому +1

      Neat, I’m doing the same as well haha!
      Love his videos he is such a great teacher!
      @Muhammad Mehmaam did you open sources your code by any chance?

    • @zindamayat
      @zindamayat 3 роки тому

      It depends on my colleagues, but I will try to upload in github.

    • @florianbouron8340
      @florianbouron8340 3 роки тому

      @@zindamayat Thank you so much

    • @berkay3148
      @berkay3148 2 роки тому

      Were you able to implement other workout movements?

  • @firmedia2908
    @firmedia2908 Місяць тому

    Thanks a lot for this excellent step by step explanations 👌

  • @aliriano15
    @aliriano15 3 роки тому +1

    Awesome!!! Very interesting with lots of applications!

  • @jackluk5471
    @jackluk5471 2 роки тому +1

    As a beginner coder, I found this tutorial helpful and very easy to understand. There is only one part which I can not seem to grasp. I have gotten the code correct and even tried copy and pasting the one in the GitHub, but I am unable to get the angle to display on my screen. My assumption is that I have gotten the webcam dimensions incorrect (which you put as 640, 480), and I am not sure how to find out what the correct number should be.

  • @sankets7501
    @sankets7501 3 роки тому +1

    I am studying data science here in mumbai, India. I've got to make a capstone project and this video inspired me to build a home workout app, still working on it. Thank you so much mate for all these videos, you are a HERO. One quick question : should i use movenet lightning or mediapipe pose shown in this video?

  • @chetanmadhok1221
    @chetanmadhok1221 Рік тому

    Well explained. From Start to End.

  • @marwamahmood8434
    @marwamahmood8434 3 роки тому +1

    omg love your Video thanks and like the way you code it is so clear

  • @manudewi
    @manudewi Рік тому

    Thankyou so much for the tutorial including the notebook man!

  • @DJPapzin
    @DJPapzin 4 місяці тому

    Great tutorial, you are such a great teacher.

  • @karamvirbindra9050
    @karamvirbindra9050 3 роки тому +1

    @Nicolas Thanks it is such great help. I have 2 quick questions
    >>>> why have you multiplied in angle code np.multiply(elbow, [640, 480]).astype(int)
    >>>> how to resize the video frame if you can suggest some learning sources on same. It will be wonderful. Big thanks again man

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @Karamvir,
      1. This is because we receive normalized landmarks we need to return them to our frame size to render them based on our baseline image
      2. Can resize it by adding cv2.resize before the render :)!

    • @rahulkumarpal385
      @rahulkumarpal385 2 роки тому

      @@NicholasRenotte can you give the landmark for all body part such as knee , shoulder to render in our frame

  • @mxolisinkosinathinene2657
    @mxolisinkosinathinene2657 3 роки тому +6

    Love your work it’s always on point and it teaches a lot for me as a beginner

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Thanks so much @Mxolisi, super glad you enjoyed it!

  • @utkarshsrivastava9241
    @utkarshsrivastava9241 6 місяців тому

    Thank you so much Nicholas for this video, learned a lot from it.

  • @fahnub
    @fahnub Рік тому

    Super Project. Thanks for creating this @Nicolas

  • @kusumabhargavinadendla
    @kusumabhargavinadendla 6 місяців тому +1

    Very very helpful. Glad I found it. Thank you ❤.

  • @aleynahukmet5996
    @aleynahukmet5996 2 роки тому +3

    Hi Nicholas! First of all thanks for amazing tutorial. It was really helpful. I love your tutorials so much you are explaining the import details in very understanding way. But I want to ask you a question. I did not really fully understand the angle calculation part and I could not find anything about it on the internet either. Could you please give a little bit more info about that part?

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому +1

      Definitely, take a look at this: manivannan-ai.medium.com/find-the-angle-between-three-points-from-2d-using-python-348c513e2cd

  • @MegaHarshjain
    @MegaHarshjain 2 роки тому +1

    Do you have a video where we can tell if a person is doing exercise in a wrong way ?
    I mean if he is not using correct postures while doing excercise

  • @sorochinsky
    @sorochinsky 3 роки тому +2

    So much new information... Nick, I want to sleep at night😂😂😂😂

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      😂 wait til you see what's coming this weekend 😉

    • @sorochinsky
      @sorochinsky 3 роки тому +1

      @@NicholasRenotte Oh my God😱 Scary to imagine. I'm looking forward to it.😁😁

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@sorochinsky yesss! Think I just wrapped up the code for it this morning!

    • @sorochinsky
      @sorochinsky 3 роки тому +1

      @@NicholasRenotte This is very good, I just finished with it😁😁
      I am infinitely happy😁😁 Now I can get the coordinates of the points. It is very cool. How many things you can think of.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@sorochinsky yesss! Awesome work. I've got soooo many ideas planned for it!

  • @tsangwingho2508
    @tsangwingho2508 3 роки тому +2

    I love it very much! Is it possible to calculate how accurate our poses are in order to make sure that our poses are correct comparing with gym trainer ? Thanks!!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +2

      Definitely, I'm working on a video on that rn @Tsang Wing Ho! Stay tuned!

  • @abhijeetsaraf7887
    @abhijeetsaraf7887 3 роки тому +1

    Dude you are awesome. !!! Did the multi joint estimation video out, if its there cant find it out !!! I wish to make a yoga pose detection... Thanks in advance

  • @taimoorneutron2940
    @taimoorneutron2940 3 роки тому

    great job and made very easily code so any one can learn quickly

  • @alifranakmalrahmadyo7592
    @alifranakmalrahmadyo7592 2 роки тому

    it helps me a lot.
    cheers from Indonesia!

  • @tawiwutcharuwat8999
    @tawiwutcharuwat8999 3 роки тому +1

    Great content, loving them

  • @SaiYennu
    @SaiYennu Рік тому

    thank you so much information learned and talking about the tutorial display with angle only ,why not displaying time beside the top corner of the output

  • @amanpreetchander7386
    @amanpreetchander7386 2 роки тому

    Really amazing tutorial. Keep it up. It really helped me a lot. Thank you 🙂

  • @aaronwee5956
    @aaronwee5956 3 роки тому +1

    This is amazing!!!! Do more videos of this pleaseee

  • @МаксимОрлюк-л3щ
    @МаксимОрлюк-л3щ 3 роки тому +1

    Amazing job, man!
    Keep it up!)

  • @khadijasharifi4814
    @khadijasharifi4814 2 роки тому +2

    Hi, I really appreciate the effort you put in to break everything down and make it understandable. I want to ask a questions; what does 'image.flags.writeable = False' do exactly? I understand that it improves performance but how does it do this?
    Many thanks :)

  • @felixmariochrisantoadi5850
    @felixmariochrisantoadi5850 2 роки тому

    thanks a lot nick, i succeed follow the whole tutorial, and also add some more function lol just kidding haha i only manage to adding the other hands to working, so now i get two pairs of strong hands lol thanks a lot nick for ur help :)

  • @Shira-Tora
    @Shira-Tora 2 місяці тому +1

    Is it possible to add code for velocity between each movement of the dumbbell curl? thanks!

  • @ggggdyeye
    @ggggdyeye Рік тому

    excellent video. i learned a lot of things about ML in this video Thank You so much.

  • @SaberSotoodeh-g3z
    @SaberSotoodeh-g3z 10 місяців тому

    Thanks for your great tutorials. Is there any tutorial, that shows how we can customize/modify or retrain the Mediapipe models?
    Current models are trained for adult pose detection and have issues in pose detection in infants.
    How can I improve it?

  • @CodewithLakshit
    @CodewithLakshit 3 роки тому +1

    Man thank you so much for the wonderful work!

  • @thewhiteheart4439
    @thewhiteheart4439 2 роки тому

    THIS TUTORIAL REALLY WORKS I AM FROM PHILIPP

  • @Uncle_Buchi
    @Uncle_Buchi 2 роки тому +1

    YES YES YES!!! The video I more than needed. So helpful! Thank you!!!
    If i wanted to use this method to calculate work done (WD= Force x Distance), how would you suggest I go about it. My thinking is that I'd assign a certain weight to either the joints or the line between joints and use that for force (signifying weight distribution in the body) then the model tracks the distance each joint or line moves throught space and multiplies to get work done. The individual work done per joint or line is summed and I'd have total work done by the body. Practicalizing this is what I can't seem to figure out.

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому

      I actually looked into this a while ago, it'd probably be something along the lines of angular force. Take an assumption of the mass of the arm, then calculate it's accleration (speed between frames) then assuming you know th length of the arm or use a proxy e.g. coordinate to coordinate euclidian distance...you should be able to do it!

    • @arnavmehta3669
      @arnavmehta3669 2 роки тому

      You want to use that work done found as an estimate to Joules of energy used?

  • @crownsandcapes6101
    @crownsandcapes6101 3 роки тому +1

    Any advice on how someone would use this method to track treadmill steps? Awesome video, BTW, very engaging!

  • @IaconoAndre
    @IaconoAndre 3 роки тому +1

    Loved the video! Thanks for sharing bro :)

  • @hossamzakaria5077
    @hossamzakaria5077 3 роки тому +2

    hi , thanks for your video
    i would ask to the learning source of calculating joint angels , it would help me alot thanks in advance :)

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Mannnn, I can't remember where i got it from. It was from somewhere on the TF site.

  • @softsilksarees7991
    @softsilksarees7991 2 роки тому

    Amazing video Nicholas I was really amazed by your video ai gym tracker. What are all the workouts does this system could recognize or it measures using the position of coordinates.

  • @siavashmahmoudi3242
    @siavashmahmoudi3242 3 роки тому +1

    Hi,
    Can we use a depth camera and put real depth value (z value ) instead of its estimation as (result.pose_landmark.z)???

  • @mustafasaidkorkmaz8838
    @mustafasaidkorkmaz8838 2 місяці тому

    MY MAN YOU ARE THE REAL ONE!!!

  • @anuncibayz
    @anuncibayz 3 роки тому +1

    Excellent! Thanks Nicholas!

  • @study_with_thor
    @study_with_thor 3 роки тому +1

    Can you explain more about the formula arctan in this video. Are there any sources for me to learn about that . it took me about 2 hours to finish this projects but I do not really understand how the formula works. Thanks!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Check this out: www.mathopenref.com/arctan.html#:~:text=The%20arctan%20function%20is%20the%20inverse%20of%20the%20tangent%20function.&text=Means%3A%20The%20angle%20whose%20tangent,to%20know%20the%20actual%20angle.

  • @fatimah-hussain
    @fatimah-hussain Рік тому

    awesome! quick question: how can I compare two different forms, one from a workout video and one from a person trying out their exercise?

  • @eranfeit
    @eranfeit 3 роки тому +1

    Hi , Thank you . Can you record a tutorial with the Hands model as well, and explain how to detect the left or right hand and points ?
    Eran

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      👀 First part of this will be out tomorrow, left and right detection should be done on Sun!

  • @Neojivago
    @Neojivago 3 роки тому +1

    "Make Detections" and the parts after that doesn't work. I run the codes but nothing happens. Do you have any idea about that? Could you please help me? Thank you so much.

  • @manisharya2138
    @manisharya2138 11 місяців тому

    Big salute for you work 🤩🤩

  • @LinhPham-vg3ud
    @LinhPham-vg3ud 3 роки тому +1

    great, can you combine mediapipe with yolo to detect multiple objects in 1 camera, i'm looking forward to it!

  • @ramiro6322
    @ramiro6322 3 роки тому +2

    First of all this channel is amazing, I just found it!
    Second of all, I have a question about the angle calculation. How's that it's independent from the camera angle? You're using projected 2d points to calculate an angle that actually exists in a 3d space, so the camera angle can change the end result a lot. Am I missing something?
    Anyway thanks for the great content

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +2

      Nope, you're correct, I simplified it by calculating it as though it were in a 2d space. You could refine the calc by adding depth to the angle formula as well though!

    • @Ramix09
      @Ramix09 3 роки тому +1

      @@NicholasRenotte thanks for answering, I'll have that in mind for my project!

    • @harshpatil6168
      @harshpatil6168 3 роки тому +3

      @@NicholasRenotte Can you provide an example of how to consider depth as well in the angle calculation?

    • @Ramix09
      @Ramix09 3 роки тому

      @@harshpatil6168 I think you'll have to use another camera or use a library that also has 3D predictions even with one camera

    • @陈逸飞-l8k
      @陈逸飞-l8k 2 роки тому

      @@harshpatil6168 Using kinect camera can solve this, it can detect depth

  • @Mrsimanater
    @Mrsimanater 2 роки тому

    this was a fun video cheers nick:)

  • @ElectroCoderEC
    @ElectroCoderEC 3 роки тому +1

    Nice tutorial!. Great!. Do you know if you can use this for multiple dector pose for people at the same time? How can i get it?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @TechTales SC, this model doesn't support multiple people. Check out OpenPose for it

  • @jasdeep482
    @jasdeep482 3 роки тому +1

    hey nicholas.. how can we create a 3d map of surrounding using opencv as it can serve applications like calculating distance between joints and many other for developing an AI trainer

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @Jasdeep, take a look at SLAM using Lidar for that type of use case :)

  • @codaemon375
    @codaemon375 3 роки тому +1

    Great video! Why use angles for the curl tracker tho? It would be easier to use the position of the wrist and elbow. If the wrist’s position is higher than the elbow’s position that counts as a curl.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Could definitely do that @Paul, wanted to showcase an alternate technique. Could also just ML to predict top of the curl and the bottom like in my gym video.

    • @codaemon375
      @codaemon375 3 роки тому

      @@NicholasRenotte thanks for clarifying

  • @MrVulcan0
    @MrVulcan0 3 роки тому +1

    Hi, thanks for the great video. I was wondering if you know if its possible to only show certain landmark points? I am trying to implement a side of squat analyser and have succesfully only joined up landmarks for the side on show, but the landmark dots are still visible for the other side of the body. I also do not need all of the face points and for tidiness sake I'd like to not show them. Thanks!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Heya @Harry, you can I don't believe you can do it with the native viz code however. I've got some code samples I can shoot you that show how to vizualise it manually, I'm going to be demoing it this week with MoveNet

    • @berkay3148
      @berkay3148 2 роки тому

      Were you able to implement other workout movements?

  • @jasdeep482
    @jasdeep482 3 роки тому +1

    Thanks mate 💯... where can I see the documentation of mediapipe.. Like other functions and syntax of the functions and how to access data of different data types

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      This is the official documentation @Jasdeep but just a heads up, it's not super clear about accessing different components: google.github.io/mediapipe/

    • @jasdeep482
      @jasdeep482 3 роки тому +1

      thanks man... do let us know if u find any other detailed documentation.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      @@jasdeep482 definitely, will do.

  • @osmiumhelium
    @osmiumhelium 8 місяців тому

    Your all tutorials are so amazing and productive. In this lesson, I want to just display the angle in a whole number, not a integer. How can we do this. By the way thankyou for creating a nice tutorial

  • @shubhammangaonkar6801
    @shubhammangaonkar6801 3 місяці тому +1

    When i run the code i do not get any UI like the rep counter,joints indicator ,the angle indicator etc. I am just getting the live video feed.Can someone please help

  • @hrushikeshgargote
    @hrushikeshgargote 3 роки тому

    Thanks for the amazing video... I'm just facing one problem, the image in the webcam appears to be a mirror image. I tired flipping the image but, the landmarks do not. It does not affect the arm but the landmarks stay at same place without flipping, so whenever I'm lifting my left arm my right hands landmarks are lifting away.

  • @jackprot351
    @jackprot351 2 роки тому

    Are you able to make new connections between keypoints, ie draw a line between the eye or mouth key point to the shoulder key point like you do in the MoveNet video?

  • @eo5080
    @eo5080 2 роки тому

    Awesome tutorial, very profound. Please I was trying to see how to interchange the angle measurement, rather than decreasing the angle from 180 degree to 0 Degree, I actually wanted to do from 0 Degree to 180 degree ( Goniometry calculation of angle joint ) so by the time it staging up I want the angle to increase from 0 Degree towards 180 degree and while trying to stage down then the angle should decrease from 180 degree to 0 Degree.
    Please I need help as regards this. Have tried to tweak the angle calculation functions u defined yet I am not able to get it right. Kindly help

  • @CiaoGhost98
    @CiaoGhost98 3 роки тому +1

    Great tutorial...how do I add more exercises ?? Is there any video about it?

  • @1980legend
    @1980legend 3 роки тому +1

    How do you handle for situations where there are no detections, seems like mediapipe is a bit weird when the visibility drops, or part of your body is covering another landmark. Say for the situation with the arm landmarks, what is the output (result, at specified landmark) when the camera can not see the arm, because that will influence the calculated angle.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @1980legend, with the pose model I believe you still receive a coordinate however the visibility value drops down significantly. I was testing this out today, you're right though some of the other models in the holistic solution don't handle it as gracefully (e.g. the hands model). I normally wrap it in a try: except: block now and just pass onto the next frame if no detections are found!

    • @1980legend
      @1980legend 3 роки тому

      @@NicholasRenotte thanks man, I’m loving the content. The reason I asked is because I was using the angle calc for pose recognition but it’s a bit glitchy when orientation is not perfect, or I’m guessing when it loses visibility. So when one arm is blocking the other I would get an output that would suggest a specific pose was happening when it wasn’t, so I wasn’t able to really distinguish poses. I should just experiment with what the outputs are when visibility is low, and then factor those specific angles out. Might be a bit problematic if the angles are close to the ones that I need for the poses.

    • @1980legend
      @1980legend 3 роки тому

      I suppose I could use the visibility as a condition?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@1980legend agreed, this technique is great for simple examples but I actually have a better (more robust) way to do the rep counting that also works for more complex poses as well. The code is loosely based around this ua-cam.com/video/We1uB79Ci-w/v-deo.html but will have additional logic for the counter based on pose probability.

    • @1980legend
      @1980legend 3 роки тому +1

      @@NicholasRenotte yeah I’m halfway through that video.

  • @aryendrasingh4401
    @aryendrasingh4401 3 роки тому +1

    First a fall great experience of learning from you. My question is why didn't you use 'z' axis for calculating angle? as in case of predicting body pose it may affect the accuracy of angle.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Don't really need it in this case @Aryendra as we're just calculating in a two dimensional space. You could try applying however!

    • @AyoubBenayache
      @AyoubBenayache 2 роки тому

      Bad results with z. You should choose a good position to get correct calculation

  • @Bharath_Kumar234
    @Bharath_Kumar234 2 роки тому +1

    Really Amazing. Can we apply the same logic for legs, to count the number of steps walked? Can you do a video how to count the number of steps walked.

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому

      Sure could!

    • @Uncle_Buchi
      @Uncle_Buchi 2 роки тому +1

      @@NicholasRenotte I just altered the code and made a squats counter😁. I think for steps, you'd have to pick 2 points you'd call 'midstride' and 'full-stride' then estimate the angles. Use the same up and down logic: hip-knee-ankle > 160 degrees is a stride, hip-knee-ankle < 70 degrees is a midstride. Multiply by 2 at the end becuase only one leg is being tracked.
      I hope i haven't missed the mark entirely😅

    • @Bharath_Kumar234
      @Bharath_Kumar234 2 роки тому

      @@Uncle_Buchi Thank you for replying ❤️. I will try the logic and update you with the results ☺️

    • @Uncle_Buchi
      @Uncle_Buchi 2 роки тому

      @@Bharath_Kumar234 sure thing! Best of luck

    • @berkay3148
      @berkay3148 2 роки тому

      @@Uncle_Buchi Can you share the code that you made changes? I also wanted to do a squat rep counter but I failed.

  • @karndeepsingh
    @karndeepsingh 2 роки тому

    Once we calculate the distance between two joints, how we can convert it into centimetres or Meters i.e in real time measurements?

  • @hodglotser6505
    @hodglotser6505 3 роки тому +2

    Great Video Nicholas! Thank you very much. I have just one question- I am having a problem installing mediapipe. I used "pip install mediapipe" but it didn't recognize the library. Would appreciate the help. It's kinda urgent.😄

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Shoot, might be your Python version, can you try 3.7.3 instead

  • @Alex-gu4mi
    @Alex-gu4mi 3 роки тому +1

    Hi! Great video. I have a question, can you do the same about calculating angles but with the video of holistic with hands and face detection? What things should I change to make it work? Thanks!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Just need to change the keypoints you pick up! Planning a bigger video on rep counting using ML as well!

  • @vaishnavimore754
    @vaishnavimore754 3 роки тому

    Thank you Sir!!!
    For such an awesome content🤠