12.4: Average Point Hand Tracking - Kinect and Processing Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2025

ความคิดเห็น • 55

  • @FabianoMoraesKeyb
    @FabianoMoraesKeyb 4 ปีที่แล้ว +4

    Eu nem imaginava em me importar com o desenvolvimento em Kinect até assistir seus vídeos! Sua didática é incrível! Obrigado!

  • @弘睿甫
    @弘睿甫 4 ปีที่แล้ว +1

    Dude you're one of the best teacher I've ever seen

  • @danthemancasey
    @danthemancasey 5 ปีที่แล้ว +2

    WHY CANT I FIND THIS VIDEO UNDER YOUR PLAYLISTS???!!
    Another great awesome video BTW Thank you super lots!

  • @Person1873
    @Person1873 8 ปีที่แล้ว +14

    it's easy to find the highest pixel, just ask it if it wants Doritos
    awesome vidoes though dude, your passion has inspired me to get back into programming for fun

  • @mariaalez5643
    @mariaalez5643 8 ปีที่แล้ว +2

    you are amazing . I am Learning a lot of Cool things from you

  • @abbydergyderg
    @abbydergyderg 4 ปีที่แล้ว +1

    Hey Daniel! I'm having an issue. I can't get my particles to track to the ellipse. Initially, I had to take the 'mouse, mouseY' out of ps.addParticle(); because it wouldn't run with it in the parenthesis. I moved the location to the tabs Particle and ParticleSystem. I think it has something to do with then defining the location.x and location.y within those tabs but I can't figure it out. Any insight would help, thank you!

  • @1O3683e
    @1O3683e 8 ปีที่แล้ว +4

    It took me almost eight hours of watching you to finally notice that you have a hole on your shirt because of his colour

  • @dineshb4236
    @dineshb4236 4 ปีที่แล้ว

    Excellent content sir, can we use kinect and opencv to detect face?

  • @MangaK1d
    @MangaK1d 9 ปีที่แล้ว

    Hi Daniel, thank you for your videos - they've been super helpful and I've had fun learning from them!
    Might you be able to link up-to-date versions of the blob detection libraries you mentioned (at about 9:20 ish)?

    • @TheCodingTrain
      @TheCodingTrain  9 ปีที่แล้ว +1

      +MangaK1d Sure thing! Here are three:
      www.v3ga.net/processing/BlobDetection/
      sites.google.com/site/blobscanner/Download
      github.com/atduskgreg/opencv-processing

  • @danielo_amaya
    @danielo_amaya 7 ปีที่แล้ว

    Hi! How would you make the particles be visible only when they are insade de body area?
    I'm using Windows and Kinect v2 and therefore the library KinectPV2 that is able to find skeleton. I'm tracking this detected human body and drawing it's contour with openCV. Then, I'm placing the particle emitter each frame in a different joint. So I'm trying to find out how to build a boolean condition to allow the particles be visible only inside this contour. Any Idea?
    PD: Awesome video!
    Thanks!

  • @emroproduzioni
    @emroproduzioni 5 ปีที่แล้ว

    Hello Daniel and thanx for this awesome tutorial, how can I control position of ellipse? my shape seems to be tracked to pixels but with a wrong position offset so It's a bit far from my hand

  • @BDLabs2
    @BDLabs2 4 ปีที่แล้ว

    It can track particles and objects three dimensionally right? You only commanded them to move in the x and y positions.

  • @dastanmuhamad6418
    @dastanmuhamad6418 8 ปีที่แล้ว +2

    Hello Daniel,
    Awesome job as usual..!! I am working on a fun project of mine, which is creating a virtual keyboard using kinect1, and it works with reading the users steps or touches when they touch the area where the keyboard is projected on.
    For example, let's say we have a keyboard shape on a wall and when you press "a" the letter "a" will be written, and there will be a sound for the response.
    So, my questions are how do I make the Kinect recognize that spot of the letter, and how to make the Kinect press that key ( a ) when it reaches that spot? Do you have any guidance, recommendation, or any piece advice? Thank You very much, and wish you best of luck

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว

      +dastan muhamad Can you try asking at forum.processing.org? There's no quick answer to this question. Put a link here so I and others can follow the discussion.

    • @dastanmuhamad6418
      @dastanmuhamad6418 8 ปีที่แล้ว +1

      +Daniel Shiffman forum.processing.org/two/discussion/15970/virtual-interactive-keyboard-kinect-and-processing-3#latest

  • @ibrahimabbasi7674
    @ibrahimabbasi7674 7 ปีที่แล้ว

    can u tell how to control a video in processing via kinect ?
    please .....

  • @sanmathidangeti2025
    @sanmathidangeti2025 8 ปีที่แล้ว

    Hey Dan,
    Thank You for this video! It was really helpful. However like you said the closest point seems to be pretty unstable. Somehow my depth value keeps jumping between the 50 cm (closest point the kinect can detect) to the actual depth value.
    Do you think there is anything else I could do to stabilize this? I have tried the average hand tracking (which seems to work awesome between a threshold value) but I want to find like an average around the closest point. Not all the values below a threshold. The only way I can think of is to find a depth value and then run two other for loops to find the closest point. But this does nothing to stabilize the values. I'd appreciate any ideas?

  • @dop_ashwin
    @dop_ashwin 8 ปีที่แล้ว

    hi, Daniel i am new to image processing . what language are u using in these videos?

  • @katherineyang8951
    @katherineyang8951 7 ปีที่แล้ว

    Hey! I love your videos and you make coding very entertaining.
    I'm wondering how to make it such that the point indicated by the ellipse doesn't jump around, or rather, doesn't exist unless there's a hand within the threshold?

  • @pao_olea
    @pao_olea 8 ปีที่แล้ว

    Nice tutorial, but have you a example for a circle for every hand?

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +1

      Take a look at my blob detection videos: th-cam.com/video/ce-2l2wRqO8/w-d-xo.html

  • @Deane597
    @Deane597 7 ปีที่แล้ว

    Your videos are great and super helpful! Im trying to make a program that tracks the hand and allows you to move the mouse by moving your hand. Do you have any insight on this or if it even possible.
    Thanks -Deane

    • @TheCodingTrain
      @TheCodingTrain  7 ปีที่แล้ว +1

      Take a look at the Java Robot class.

    • @Deane597
      @Deane597 7 ปีที่แล้ว

      The Coding Train Got it working! It is however quite slow on the pi 2

  • @HeroOfHyrule
    @HeroOfHyrule 9 ปีที่แล้ว

    Daniel! Im struggling a little bit with this particular example. When I run the sketch in Processing it gives me a "Cannot find a class or type named "kinect"" error. I am using a kinect v1, btw, so I changed everything from kinect2 to kinect. Any suggestions?

    • @TheCodingTrain
      @TheCodingTrain  9 ปีที่แล้ว

      +Justin Rocha Do you have the Kinect library installed? Did you try running the examples that come with it? github.com/shiffman/OpenKinect-for-Processing

  • @cda4214
    @cda4214 9 ปีที่แล้ว

    Hi Daniel ,
    When I run the code appears " No device connected ! Can not find devices."
    I have a 1473 model Kinect, OpenKinect library is installed.
    There are several codes of the examples not run achievement, all about those who say kinect2 .
    Can you help me find the mistake ? Thank you!!

    • @TheCodingTrain
      @TheCodingTrain  9 ปีที่แล้ว

      +Cristian DAddario So sorry to hear, these bugs are difficult to diagnose. Did you try running the examples that come with the library? github.com/shiffman/OpenKinect-for-Processing/tree/master/OpenKinect-Processing/examples If you think you are experiencing a library bug, you can file an issue on github.

    • @cda4214
      @cda4214 9 ปีที่แล้ว

      Hi Daniel, thank you very much for your answer. I tell you that I could run some examples from the library, do not work are the ones with the kinect2 instruction, kinect say if they work.
      It is difficult to diagnose this but if you think of anything will be welcome. Thank you so much!

  • @zeetangled
    @zeetangled 9 ปีที่แล้ว

    Hello, I'm sorry for asking a lot! I tried to run the SimpleParticleSystem but it gave me the error "The Constructor Particel(PVector) does not exist" I tried checking the spelling of everything and the variables and their definitions but it still gives me the error.
    what do you think might be the problem?

    • @TheCodingTrain
      @TheCodingTrain  9 ปีที่แล้ว

      +Zaina Squid I adjusted the Particle class before making this example. You can see the code here: github.com/shiffman/Video-Lesson-Materials/tree/master/code_kinect/HandTrackingSortofParticles

    • @zeetangled
      @zeetangled 9 ปีที่แล้ว

      +Daniel Shiffman Thank you! it worked

  • @marjono123
    @marjono123 6 ปีที่แล้ว

    Hi
    This is a great program for Kinect.
    I try your code but could not find the library for:
    import org.openkinect.processing.*;
    Please help,
    Thank you,
    Benawi Santosa

  • @xiongyang7955
    @xiongyang7955 9 ปีที่แล้ว

    hey there Daniel, im having an issue and hope you can help me out. After altering the code for Kinect verson 1, i keep getting a Kinect doesnt exist error. Hope you can give me some advice, Thanks.

    • @TheCodingTrain
      @TheCodingTrain  9 ปีที่แล้ว

      +Xiong Yang Do you have the Kinect library installed? Did you try running the examples that come with it? github.com/shiffman/OpenKinect-for-Processing

    • @xiongyang7955
      @xiongyang7955 9 ปีที่แล้ว

      Yes, the installed library examples work but the code in this example when changed from kinect2 to kinect, displays the error

    • @TheCodingTrain
      @TheCodingTrain  9 ปีที่แล้ว

      +Xiong Yang I'll have to take a look and make a v1 version of this example. Most likely you are missing an import statement or something else that would be at the top of the code. Try comparing your code to some of the v1 examples that come with the library to see if you can find what is missing.

    • @xiongyang7955
      @xiongyang7955 9 ปีที่แล้ว

      Ok, thanks for looking into it

  • @milanroenhorst9561
    @milanroenhorst9561 5 ปีที่แล้ว

    Does anyone has any idea on how to detect multiple average points?

  • @JJRoach92
    @JJRoach92 7 ปีที่แล้ว

    Any way to get this working with processing.js?

  • @matthewloewen8644
    @matthewloewen8644 6 ปีที่แล้ว

    Has anyone found a solution for tracking both hands?

  • @phoenixtricks
    @phoenixtricks 8 ปีที่แล้ว

    Hi Daniel, I really enjoy your videos and really appreciate all the work you are putting into making the Kinect more accessible.
    I have a quick question that hopefully you can answer here. Is there a way to pull RGB data from perhaps the kinect.initVideo(); function so instead of my hands being purple they are just my regular skin color or color data pulled from the rgb camera?

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว

      +Aaron Pennington Yes, the data is there. With kinect v2 you can use the "registered image" to make sure the RGB pixels are aligned with the depth values. This is harder with v1 as this feature is not built in to the library.

    • @phoenixtricks
      @phoenixtricks 8 ปีที่แล้ว

      +Daniel Shiffman Thanks for the response. I was a little disheartened and thought I would have to give up on this project until I could get a v2 Kinect. But then I came across a function called PGraphic(). I haven't had the chance to try it yet but wouldn't be possible to draw kinect.getVideoImage() on one PGraphic and then the particle system graphics onto another one on top of it?

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว

      +Aaron Pennington Could be worth a try! Are you trying to do something like this? th-cam.com/video/PB2_qsyqr6o/w-d-xo.html I think if you add color from the video image to the particles it might work and be "close enough" even with the alignment issue. Good luck!

  • @thematrix4730
    @thematrix4730 8 ปีที่แล้ว

    Thanks for this amazing video .
    I changed this code from kinect v2 to kinect v1 , but I am getting the error "the global variable depthWidth and depthHeight don't exist
    How Can I get rid of this issue to be able to run the sketch?

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว

      +sepan alfauony This is my bad, I need to update the examples for Kinect v1. I believe it's just "width" and "height" for Kinect v1. This page has more documentation: shiffman.net/p5/kinect/

    • @pranavb104
      @pranavb104 7 ปีที่แล้ว

      Im having the same problem, did u find any fix?

  • @ERVISHAL1
    @ERVISHAL1 7 ปีที่แล้ว

    Hi daniel,
    Thanks for sparing time to make these videos to help guys like me who are zero in programming.
    I am the student of Mechatronics and it is the part of my major project which is to integrate Kinect with the robotic limbs so that the robot will be able to recognise the objects on the basis of colour and pattern.
    May I ask you for your personal email id if it's possible for you .

  • @ibrahimabbasi7674
    @ibrahimabbasi7674 7 ปีที่แล้ว

    can u provide this sketch in kv1 please because i tried a lot but i did not play this from kv1 i also change name from kinect2 to kinect ?
    help me please