Coder Social home page Coder Social logo

Comments (4)

domisjustanumber avatar domisjustanumber commented on June 2, 2024

Hi @EZUR11 this is an odd one for sure! It sounds like it's failing to start your webcam for some reason. The component currently only works with a 720p webcam. Can you confirm if your webcam supports that resolution and/or if the component
works with any other webcam sources if you have them?

A quick test is in a new project to drop a video device in top down, select your webcam, and see what resolution options you get.

Let us know if those things don't work, and we can think some more

from mediapipe-touchdesigner.

torinmb avatar torinmb commented on June 2, 2024

Another thing to try. Could you open up the TextPort in TouchDesigner and attach a screenshot of the logs?

from mediapipe-touchdesigner.

EZUR11 avatar EZUR11 commented on June 2, 2024

Ok it is all figured out! Just had to refollow the exact steps given in the install tutorial, and realized I had forgotten a crucial piece: connecting the video device input as SpoutCam. With SpoutCam downloaded and running with the right settings (aka the suiting FrameRate for my TouchDesigner version (mine was 30 fps), set the starting resolution (1280x720), and add the right "Starting Sender" input ("TDSyphonSpoutOut"), then registering these parameters). Also, made sure to have the latest release of both your MediaPipe plugin (20.2) and Touchdesigner (2022.33910). It works! Great work!
Now that I ghot to play around with the hand tracking module, I have a few other questions haha!

First, is SpoutCam the only video input that can be selected to work with mediapipe? In other words, could I use the video feed from a NDI TOP node connected to a phone camera for example across the network?

Secondly, any way to have any additional data about the hands positions relative to itself? for example, the distance between the tip of the ring finger and the thumb, or the distance between the ring finger of each hands - the output CHOP data seems to be limited to one hand and one finger at a time. Would like to create an interactive shape building from hands tracking (e.i. a rectangular shapes adjusting its dimensions in real time to the distance between fingers).

Finally, could be very interesting to combine these trained models tools with depth sensors of modern video input gadgets, such as the most modern SmartPhones.
In short, any way to use your wonderful plugin with other video inputs than SpoutCam?
Many thanks!

from mediapipe-touchdesigner.

domisjustanumber avatar domisjustanumber commented on June 2, 2024

Glad you got it working @EZUR11!

You can absolutely use it with other sources - the only caveat is that source has to appear as a webcam. If you install NDI Tools, there are 4 virtual NDI webcams you can use. You configure which NDI source each one will have in NDI Tools, then select the relevant one in the Media Pipe component.

For your hands questions, yes as well. You get an xyz coordinate for each joint in your hand, so you can use a select chop to get the points you want to measure the distance between, then feed them into an Object CHOP and select distance. It will output the distance (or bearing or other things) between the 2 points.

If you just want the horizontal distance, you can also select just the x coordinates for the 2 points and use a math chop to figure out the distance between them.

And if you want to figure out the distance between hands, there's already a CHOP outlut for that, and you can also open up the hand tracking component and take a look at how that is calculated and modify it for your own use. Just be aware if you modify anything within the tox, you’ll have to save it individually as well as the main toe file.

from mediapipe-touchdesigner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.