Comments (4)
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.
Another thing to try. Could you open up the TextPort in TouchDesigner and attach a screenshot of the logs?
from mediapipe-touchdesigner.
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.
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)
- VideoDeviceIn not running HOT 46
- Fixed: Sometimes ML not running. HOT 2
- Infinite Loading HOT 10
- SpoutCam not working in Mediapipe tox HOT 11
- Not saving anything I've added HOT 2
- How to close the green line and red points of the track? HOT 2
- Top input HOT 1
- file load version conflict HOT 18
- Mediapipe tox is empty HOT 12
- Num Poses HOT 1
- Spoutcam not showing up on the Mediapipe container HOT 4
- OBS Virtual Camera Not Working HOT 6
- No info from face_tracking blend_shapes HOT 3
- detecting 2 hands only HOT 1
- Crop/modify webrender's input HOT 12
- face tracking sample issues HOT 1
- Mac 2020 m1 webcam HOT 1
- Webcam picture visible, but models not working HOT 1
- Webcam initalization assumption HOT 7
- Multiple poses not outputting HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediapipe-touchdesigner.