Hello! I am new with Jitter and I am doing a research project about it. I am wondering: is there any possible way that I can lock blobs into the objects so that the blobs can follow the assigned object?
Please help me with that. I really appreciate.
Can I make it clearer I would like to make a blob follow an object seen through webcam. For example: I raise my hand phone in front of the web cam, it creates one blob, now I want that blob just follow the hand phone. Is there any way to do that? Please help ! I would be very thankful!
Well, you don’t really mention whether you’ve got your tracking software running. If you do, it’s likely to retun you with a 2d coordinate of the object.
Now i’d make an object (any jitter 3d object will do, easier to work with GL than pure matrices) and set it’s position to the returned coordinate. Then, scale it to match your screen coordinates and you’re set.
There’s lots more to be said about this, but you really need to be more specific about what you’re running into. A setup like this is very possible, of course…
Actually, I am using jit.grab to capture images through my webcam, and cv.jit.blobs with the threshold to detect objects that seen through webcam, i.e it can detect my hand and drawing some blobs onto the screen. Now I would like to track a blob and make that blob follow my hand. What should I do to make that happen? Sorry that I did not explain it clear enough. And thank you for your reply!