Real-Time 3D Pose Detection & Pose Classification | Mediapipe | OpenCV | Python

Поделиться
HTML-код
  • Опубликовано: 16 июл 2024
  • In this post, I will show you step by step how to do real-time 3D pose detection/estimation in python using mediapipe. Later on, we'll combine this with some heuristics to create a pose classification system.
    Timestamps:
    00:00 Intro
    00:53 Pose Detection & Mediapipe's Implementation
    06:44 Pose Detection in images and on videos
    29:54 Creating Pose Classification System
    Join Computer Vision Course: bleedaiacademy.com/computer-v...
    Blogpost: bleedaiacademy.com/introducti...
    Download Code: app.monstercampaigns.com/c/ka...
    Get 1 on 1 AI Coaching with Taha: pensight.com/x/tahaatbleedai
    Support Bleed AI on Patreon: / bleedai
    If you want us to create AI and computer vision solutions for you,
    then reach out to us here: bleedai.com/services/
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    If you enjoyed this video then don't forget to subscribe and like this video.
    🎇 Subscribe to this Channel: bit.ly/Bleedsub
    🎇 Subscribe to Bleed AI Blog: bleedaiacademy.com/subscribe/
    🎇Check out our Courses: bleedaiacademy.com/courses/
    Follow Bleed AI for more 👣 :
    ◼ Website: bleedaiacademy.com/
    ◼ Facebook Page: / bleedaiacademyy
    ◼ Linkedin: / bleedaiacademy
    ◼ Instagram: / bleedaiacademy
    ◼ Twitter: / bleedaiacademy
    ◼ Patreon: / bleedai
    #mediapipe #computervison #OpenCV #posedetection #poseclassification #poseestimation

Комментарии • 133

  • @spidermanzz2262
    @spidermanzz2262 Год назад +4

    You just saved my life with this video, totally outstanding explanation!!!

  • @ruthvikrao7917
    @ruthvikrao7917 2 года назад +10

    Thank you so much for you time and effort in preparing such detailed comments on the code notebook, it is extremely helpful. Looking forward for the course.

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      Thanks a lot, Ruthvik for your kind words, it means a lot.

  • @BilalKhan-fn5mr
    @BilalKhan-fn5mr 9 месяцев назад +1

    Always Love your Videos, You are one of my favorite teacher of Computer Vision.

  • @mahadahmed6193
    @mahadahmed6193 2 года назад +4

    Best deep learning tutorials ever. Thankyou so much for such detailed explanation

  • @QuanTruongHoang-ts2zw
    @QuanTruongHoang-ts2zw Месяц назад

    Thanks alot, you really have the ability to explain it. Great video!

  • @rafaykhan3034
    @rafaykhan3034 2 года назад

    Great work BleedAI. Its really helpful

  • @XRDItv
    @XRDItv 2 года назад +3

    Beautiful work.

  • @mohangowdav5367
    @mohangowdav5367 2 года назад +3

    Thank you so much s for your nice explanation. con you help me to find the accuracy of each pose classification. looking forward to the upcoming courses.

  • @StuartSands
    @StuartSands 8 месяцев назад

    Very well done. Thank you.

  • @karamsahoo6852
    @karamsahoo6852 2 года назад +1

    Amazing!

  • @taimoorneutron2940
    @taimoorneutron2940 2 года назад +2

    Fantastic job helped to build my own project

  • @ecoders_channel
    @ecoders_channel 2 года назад +1

    Thanks a lot bro. awsome video.

  • @thinhhuynh7503
    @thinhhuynh7503 Год назад +3

    It's a very useful project. I see that you also talk about the 3D camera, did you ever run this project with 3D camera? And I have a question that how can I convert the depth get from the camea into pixel for easier to calculate angle? Thanks for your video.

  • @yashkhilavdiya5693
    @yashkhilavdiya5693 2 месяца назад

    Thank you so mucch...

  • @pranavraj5698
    @pranavraj5698 2 года назад +2

    Awesome

  • @manasipatil753
    @manasipatil753 6 дней назад

    thankyou

  • @abolfazlnejatian1376
    @abolfazlnejatian1376 2 года назад +2

    it was a really great video tutorial.
    thank you so much for your time.
    looking forward to new videos

  • @user-ky6xo3xf5x
    @user-ky6xo3xf5x Год назад

    Thanks for your video. Could you please tell me how can we remove irrelevant markers from our detection? For example, I only need the main joint markers and do not need the face and fingers.

  • @ikechindukwe4161
    @ikechindukwe4161 2 года назад +2

    Thank you very much for making this tutorial. Please what are some possible applications of this concept of real time pose detection and classification in say industrial systems or robots?

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад +1

      Hi, You're welcome and I do mention some industrial and other use cases at ruclips.net/video/aySurynUNAw/видео.html Also It's being heavily used in sports analytics.

    • @ikechindukwe4161
      @ikechindukwe4161 2 года назад

      Thank you very much Sir

  • @higreatman1688
    @higreatman1688 11 месяцев назад

    good

  • @SHRIGAYATHRIS
    @SHRIGAYATHRIS Год назад +1

    could you please tell me how to convert into web application using flask.which part of the code we have to include?

  • @commonsense1019
    @commonsense1019 Год назад

    aarigatooo

  • @sanamushtaq8162
    @sanamushtaq8162 Год назад

    Hi. Do you know how can i load 3d animated model/character into python and make that model/character work with pose detection?

  • @eitancohen8717
    @eitancohen8717 Год назад

    Hi,
    Thanksfor your time and effort. in time 29:20..I'm using ur exact code and I don't see any feedback when I run the code.
    in your video it shows your pose detection but I dont see any window with a video of myself that is opened.
    What am i missing?

  • @siddharthrana512
    @siddharthrana512 Год назад

    hello can you make person tracking with mmpose , so that their id will not swap even they cross each other

  • @1minuteGita
    @1minuteGita 11 месяцев назад +1

    pose_video = mp_pose.Pose(static_image_mode=False, min_detection_confidence=0.7,
    min_tracking_confidence=0.7)
    this particular line of code is giving name error what to do?

  • @suzaankhan1803
    @suzaankhan1803 4 месяца назад

    Hello sir, i have a doubt, loved this video but i am trying to make an action recognition model, so can i used the landmarks which are basically x,y,z, coordinates to train my model? Will it be efficient. Please reply

  • @RaselAhmed-ix5ee
    @RaselAhmed-ix5ee 2 года назад

    Hi, can we do the same thing with image instead of video?

  • @hamsanandkv1586
    @hamsanandkv1586 Год назад +1

    Can you please provide code with explanation video for multi pose estimation

  • @RaselAhmed-ix5ee
    @RaselAhmed-ix5ee 2 года назад

    the kernel has died problem in the 3rd section when defining the result variable

  • @smitchauhan9884
    @smitchauhan9884 Год назад

    Please can u tell me name of the algorithm of mediapipe that you use for human detection and classification? please reply as soon as u possible.

  • @93hothead
    @93hothead Год назад

    I really wanted to see the 3d pose render on a video

  • @hindidubberz9683
    @hindidubberz9683 3 месяца назад

    Person detector will detect and crop the object and before it is sent to tracter for tracking the motion of Object first it is send to landmarks detector I'm i right

  • @user-uu5br8gt9v
    @user-uu5br8gt9v 10 месяцев назад

    Hello I want to train this project for multiple classes make it. For example dancing running play footbal .. How can i make and how can i train for

  • @tharindudamith4927
    @tharindudamith4927 Год назад

    hi im doing a cricket pose-resurrection project for my FYP

  • @muhammadalhan2606
    @muhammadalhan2606 2 года назад +1

    awesome video. can we save the cordinates of the live feed into a csv file

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      Yes, you can save pose coords live on a CSV file using a file writer in python

  • @ayushverma5791
    @ayushverma5791 2 года назад +2

    How to do the pose classification using keypoints in neural network?I mean , do we have any pre-build neural network for mediapipe which uses those keypoints for classification? Can you please guide me thoroughly this? Also How to make the classfier that make predictions on an unseen camera angle? Also I am some graph error after calculating keypoints of 3000-4000 images in a loop .
    I want the best accuracy possible.
    Thank You

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад +1

      Hi Ayush, please take a look at how you can train a DL model on keypoint coordinates online, you can then use the techniques for this use case. Also, there is no easy way to predict on unseen angles, the best way is to record the exercise at different angles and then the DL model will be more robust at detecting those exercises during prediction time.

  • @arasan.b6904
    @arasan.b6904 Год назад

    Is it possible to run mediapipe pose estimation with GPU for better performance?

  • @hotbergina
    @hotbergina 7 месяцев назад

    Hi can you make a tutorial on how to make it for the pictures, still images ? not live. I need a tool to classificate images by pose on a website :D

  • @shiwankisharma2169
    @shiwankisharma2169 9 месяцев назад

    Can it run in colab

  • @stanley-elmagico
    @stanley-elmagico 10 месяцев назад

    Hello, thank you for the tutorial on this, however, the source code is missing. Seems like it was deleted, kindly check on that

  • @walaasalah9004
    @walaasalah9004 2 года назад +1

    I am trying to fine tune this tflite model on some exercises , but i can not deal with the model as tflite and can not convert it to keras model. what should i do?

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      Hi salah, you can convert the model into ONNX format using tflite2onnx and then import it into a framework in which you are comfortable in.

  • @engineeringpoint2998
    @engineeringpoint2998 Год назад

    can you provide research paper of this project

  • @sadafshaikh8079
    @sadafshaikh8079 Год назад +1

    Hi, when I run the setup pose function for video, it says the 'Your session crashed. Automatically restarting'. Could you please let me know what could be the bug?

  • @anantsingh3079
    @anantsingh3079 25 дней назад +1

    hi sir, every time i try to run the code for Pose Detection On Real-Time Webcam Feed/Video i got error as "Your session crashed for an unknown reason" working on google colab
    ,plz help!!

    • @himangshusarma6384
      @himangshusarma6384 20 дней назад +1

      Exactly. I am too getting the same issue in Jupyter notebook. Please help

  • @walaasalah9004
    @walaasalah9004 2 года назад

    Is there a good resource that can help me how to get started with training this model on specific exercises?

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад +1

      Not exactly, but the process is typically the same for all exercises, you feed landmarks into a dense NN or use heuristics to determine the exercise. We also have an exercise-based demo coming up next week.

  • @xB2_
    @xB2_ Год назад

    How to remove face points and keep others

  • @World_of_DataScience
    @World_of_DataScience Год назад

    sir i'm getting error while installing mediapipe, plz help me with this

  • @user-js4sz9id8s
    @user-js4sz9id8s Год назад

    Thank you very much for your sharing. Can I repost it on Chinese video websites? I am a college student from China. Thanks again for the video!!👍👍👍

    • @BleedAIAcademy
      @BleedAIAcademy  Год назад

      Sure, you can share as long as you give credit.

  • @morsalin10
    @morsalin10 2 года назад +1

    ERROR FOR 3D Plot Pose landmarks: AttributeError: module 'mediapipe.python.solutions.drawing_utils' has no attribute 'plot_landmarks'. How fixed this issues?

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      Hi MorsaliN, please make sure that you have installed the latest version of the mediapipe.

  • @user-uf7tc9fq2j
    @user-uf7tc9fq2j Год назад

    i am not able to get the code, could someone please help me

  • @rajareivan2417
    @rajareivan2417 Год назад

    sir, can i use this pose estimation code to make a squat exercise classfication analysis???, i mean like whether or not the squat is deep enough, the back rounding, butt coming up earlier etc?. i tried to use YOLO model and collect all the dataset needed however it was such a bad method and the model was so inaccurate. and do you have any advice for my case??

    • @BleedAIAcademy
      @BleedAIAcademy  Год назад

      Actually, I do squat detection use pose model in our course called. "Computer Vision For Building Cutting-Edge Applications"

  • @user-yw6wf3uu1o
    @user-yw6wf3uu1o 2 года назад

    What's the mediape version? It's 0.8.3, but it says there's no option for model_complexity.

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      I think this option was removed in later versions but would need to confirm this.

  • @sanatanadharm8686
    @sanatanadharm8686 2 года назад +2

    Nice explanation btw from where did you buy naruto action figure please share the link ... to buy and also i am from india.

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      Thanks, Takshil, I got the figure from aliexpress website, don't have the exact link.

  • @mdibrar969
    @mdibrar969 2 года назад +2

    Assalam o alaikum, I new into the subject and I don't know python too. kindly guide me how to do some projects.

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      Walaikum Asalam ibrar, you can check out my resource guide: bleedai.com/24171-2/

  • @snoussiamine6958
    @snoussiamine6958 2 года назад +1

    thnks so much you are professional but i have a problem with :# Setup Pose function for video.
    pose_video = mp_pose.Pose(static_image_mode=False, min_detection_confidence=0.5, model_complexity=1)
    NameError: name 'mp_pose' is not defined

    • @syahromigibran6484
      @syahromigibran6484 2 года назад +1

      yes sire me too

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      Hi, make sure that you have executed all the cells in the jupyter notebook, the mp_pose variable was initialized in the second code cell.

  • @faraznisar3752
    @faraznisar3752 2 года назад

    Is it achievable in javascript and not a pain because I had to work a lot just to get the pose detection working in my react app

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      The code is pretty much the same for mediappe JS bindings minus some syntactical changes. Check mediapipe website, for JS examples

  • @devadharshini4580
    @devadharshini4580 2 года назад

    how to select the ROI from the key points(landmarks) generated skeleton of human..??

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      If you just want to draw the bounding boxes around the person, then instead of using draw_landmarks using draw utility module, use draw_detection. reference: github.com/google/mediapipe/blob/master/mediapipe/python/solutions/drawing_utils.py
      Also, if you want to extract the box ROI, then look for an attribute like `box`, in the results object, btw I don't remember finding one, even though there should have been one present.
      Now the best way to grab the box roi, is to draw box around the extreme coordinate points, I'll do exactly this in an upcoming tutorial 2 weeks from now. for now take a look at this rough solution: stackoverflow.com/questions/66876906/create-a-rectangle-around-all-the-points-returned-from-mediapipe-hand-landmark-d

    • @devadharshini4580
      @devadharshini4580 2 года назад

      Thank you

  • @juancarlositurrietagimeno3757
    @juancarlositurrietagimeno3757 2 года назад

    Hello friend, I hope you are very well. I have the following questions and I hope you can help me.
    how should I interpret a negative z value? For example -0.57. Does this mean that marker is much closer to the camera? The documentation says that the smaller the z value, the closer that marker is to the camera.
    Now when plotting using the mp_drawing.plot_landmarks and pose_world_landmarks functions, the resulting graph will be expressed in meters but originating from the center of the person's hips. How can I get the distance in meters from each marker to the camera? This is possible?
    thank you very much, greetings!

    • @oleggerbylev4069
      @oleggerbylev4069 2 года назад +1

      You won't be able to get the distance from one camera

    • @oleggerbylev4069
      @oleggerbylev4069 2 года назад

      And the negative value is taken from the fact that a cube with sides from 1 to -1 is drawn around the object and a lot of things can be learned and coded from them

    • @juancarlositurrietagimeno3757
      @juancarlositurrietagimeno3757 2 года назад

      @@oleggerbylev4069 hi man. Thanks for yours anwers.

  • @tanmaypawar1144
    @tanmaypawar1144 2 года назад

    I'm working on a project where I want to detect where people are looking (headpose estimation). I have done it for single person but not able to do for multiple people. I want to store landmarks of multiple people so that I can do headpose estimation on each person individually but I don't know how to store these landmarks for multiple people. I'm using mediapipe and opencv. Would you please help me sir in doing it??

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      Hi, you need to increase the num_face variable to 2 or more when you initialize the face landmark detection function in mediapipe, I think the default value is 1, which is why you're not able to detect more faces.

  • @oliverlystlund7354
    @oliverlystlund7354 2 года назад

    Can you import mediapipe in vsc, and run this code in vsc?

  • @7V999
    @7V999 2 года назад +1

    🙊💓

  • @siddharthrana512
    @siddharthrana512 Год назад

    Hi Sir , can we have video of multiple person tracking under multiple cameras using mediapipe

    • @BleedAIAcademy
      @BleedAIAcademy  Год назад

      Hi Siddharth, I got your other messages from the course, basically you need to find a good object tracking solution that is robust to occulusion, try Deepsort tracker or it's variations with a detector.

  • @joseradowvisky6292
    @joseradowvisky6292 8 месяцев назад

    hOW TO POSE DETECT 2 PEOPLE AT THE SAME TIME?

  • @akashuikey7575
    @akashuikey7575 2 года назад

    are landmarks of a person same in two videos recorded from different angles?

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      No landmarks x,y coordinates depend upon the camera angle.

  • @priyangoel1762
    @priyangoel1762 2 года назад

    Hi Sir, I am developing an android application using flutter which needs to use this python script is there any way in which we can integrate this with flutter.

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      You can embed a Unity module in flutter.
      the unity module will be using mediapipe's C# API, we did something similar for one of our clients at Bleed AI Solutions.

  • @FunwithKartik
    @FunwithKartik 2 года назад

    pls telll using it with 3d models ls

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      I'm not sure I understand what you meant

  • @siddharthrana512
    @siddharthrana512 Год назад

    Hi Sir, can we do pose estimation for multiple person using mediapipe??

  • @vishwarajasekar6319
    @vishwarajasekar6319 11 месяцев назад

    Hello bro its seems like the drive link for the source code is not available.could you share the source code .

    • @BleedAIAcademy
      @BleedAIAcademy  11 месяцев назад

      drive.google.com/drive/folders/1xpKpajJ85tS2iNSxCHBC1dCo2Z935H0F?usp=sharing

  • @manjupriyap7764
    @manjupriyap7764 11 месяцев назад

    codes are not available ,can u reupload that?

  • @vijaysrinivasan2586
    @vijaysrinivasan2586 10 месяцев назад

    Hello , I got an email for subscription and after I did that I got a link to the source code but it is not available inside the link.

    • @jianingyin4660
      @jianingyin4660 10 месяцев назад

      I meet the same problem, have you solved this?

    • @jianingyin4660
      @jianingyin4660 10 месяцев назад

      Oh! I find three weeks ago vishwarajasekar6319 asked this question and got the answer!😄And the link is still available! drive.google.com/drive/folders/1xpKpajJ85tS2iNSxCHBC1dCo2Z935H0F

  • @asmmahim1691
    @asmmahim1691 2 года назад

    Hello Sir, how can i make it detect landmarks on multiple people.. Please help

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      Hi, this particular model is only able to detect poses for a single person in a frame, you can combine it with person detection for multiple people or alternatively use a multi-pose detection model.

    • @hamsanandkv1586
      @hamsanandkv1586 Год назад

      If you had done on multi people detection please help me with the code...

  • @Kishi1969
    @Kishi1969 2 года назад

    Please in the website you mention i cant see it ..The website you displaced ...

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      Hi, Benya not sure what you mean

    • @Krishana_007
      @Krishana_007 2 года назад

      @@BleedAIAcademy the mediapipe course link is not working and the code link is also not accessible mentioned in the description

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад +1

      @@Krishana_007 You need to open this link in a browser where adblock is disabled: ruclips.net/user/redirect?event=video_description&redir_token=QUFFLUhqbE5BOHNPMzVuOEFhcjJ1NWsxTUFkYWw5VkR0QXxBQ3Jtc0tsZFVSOTZ1Q3lhNS1sNUNUYmlpMTlLemdxS2FNRVc1aUx6LVNZb2hGcVZkak5fU0FFQ2xVZHFVQnlGc1g1YXZaZ1BjNGp1MGRtal9tT0hic0N0MC1TUHhoVU1wa3pUYjlHNmVDdmgzZXR0Z0t6RmtfNA&q=https%3A%2F%2Fapp.monstercampaigns.com%2Fc%2Fkalfyxphljhqu1zouums%2F
      Also the mediapipe course sign up link: app.monstercampaigns.com/c/gbpbgnzbsex4ynffbs5j/

  • @syahromigibran6484
    @syahromigibran6484 2 года назад

    why me eror in pose detection on real time webcam

  • @RaselAhmed-ix5ee
    @RaselAhmed-ix5ee 2 года назад

    How can i contact you ,please help me out, its my final project

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      You can book a meeting with me here: pensight.com/x/tahaatbleedai

  • @lushankshambharkar124
    @lushankshambharkar124 Год назад

    Getting Error :
    line 43
    if (time2 - time1) > 0:
    ^
    SyntaxError: invalid syntax
    ⚠⚠⚠⚠⚠⚠⚠

  • @abrarrahman6119
    @abrarrahman6119 2 года назад

    can you please give me the code your website is not working

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад

      app.monstercampaigns.com/c/kalfyxphljhqu1zouums/ You can download the code from here. Make sure to disable adblock

  • @jackrobin9829
    @jackrobin9829 6 месяцев назад

    三哥这口音真无法吐槽。。。😂😂

  • @sharmilaj3510
    @sharmilaj3510 2 года назад

    How to download the code

    • @BleedAIAcademy
      @BleedAIAcademy  2 года назад +1

      Hi, download link is present in youtube description

    • @sharmilaj3510
      @sharmilaj3510 2 года назад +1

      @@BleedAIAcademy yeah..but it couldn't download for me..

  • @muhammadraza1374
    @muhammadraza1374 Год назад

    No code available ..

    • @BleedAIAcademy
      @BleedAIAcademy  Год назад

      Code Download Link: drive.google.com/drive/folders/1xpKpajJ85tS2iNSxCHBC1dCo2Z935H0F?usp=sharing

    • @muhammadraza1374
      @muhammadraza1374 Год назад

      @@BleedAIAcademy Salute ! Thank You for Giving Me Your Valuable Time in very Busy life

  • @marianionita3282
    @marianionita3282 2 года назад +1

    Speak much more slowly, please. English with an Indian accent is hard.