<div dir="ltr"><div><div><div><div><div><div>Thanks for your reply!<br><br></div>I have also looked a bit at the Leap Motion, but what I would like to know more about, is something that could be implemented on a "smart device" using the in build camera as sensor. For the same reason the reactable solution is a bit outside my scope.<br><br></div>I have already looked at the openv_contours_boundingrect, but it is marked "deprecated" in the help file, so I thought I would not spent time on making that work. Any thoughts on what the problem is and if it would be possible to use anyway?<br></div><div>Your suggestion on using pdmd is intriguing, but I cannot understand how to make use of it (perhaps since I have hardly used pdmd at all). <br></div><div><br></div>With the different setups I have it seems possible to make solutions to detect x-axis and depth. With the y-axis I have a problem since I am also detecting the arm, which disrupts the motion tracking. At the moment this is my biggest issue.<br></div>Any suggestions except waring long black sleeves are most welcome!<br><br></div><div>Hints about other pd projects detecting hands with web cam would also be great.<br></div><div><br></div>cheers<br></div>Jonathan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 5, 2014 at 12:39 PM, peter venus <span dir="ltr"><<a href="mailto:news@petervenus.de" target="_blank">news@petervenus.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Jonathan!<br>
<br>
as i understand it, you want to track only a hand.<br>
<br>
i don´t know if you know about the Leap Motion Controller[1].<br>
This one is specialized to detect hands and from what i read in your mail, could really fit.<br>
i have to admit, i havent played with it myself yet...but there is support for pd available [2].<br>
<br>
if you want to stick to the pix_openCV library, have a look in the pix_opencv_example<br>
01_opencv_contrours_<u></u>boundingrect+pmpd_ambient.pd<br>
if you leave out the physical modelling stuff, it is quite usable to track people, maybe hands as well.<br>
<br>
If you want to or have to stick to a camera based tracking system, i could see some possible improvements:<br>
as you say<span class=""><br>
> The idea is to detect hands from an up-facing webcam in order to simulate a<br>
> camera on a touch pad.<br></span>
if you really want to simulate the hand being tracked on a touchlike surface, why not add a semi-transparent plexiglass layer and place a camera underneath it, similar to the concept behind the reactable.<br>
<br>
[1] <a href="https://www.leapmotion.com" target="_blank">https://www.leapmotion.com</a><br>
[2] <a href="http://puredatajapan.info/?page_id=1514" target="_blank">http://puredatajapan.info/?<u></u>page_id=1514</a><br>
<br>
regards,<br>
peter<br>
<br>
<br>
Am 05.12.14 01:12, schrieb Jonathan Aardestrup:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hello,<br>
<br>
I am working on a university project using Pure Data for computer vision in<br>
order to investigate possible advantages or disadvantages in a music<br>
related interaction context.<br>
The idea is to detect hands from an up-facing webcam in order to simulate a<br>
camera on a touch pad.<br>
<br>
I've spend some weeks to get familiar with the objects in Gem namely pix<br>
and pix_opencv, but even with objects such as pix_opencv_bgstats or<br>
pix_opencv_bgsubstract, alone or in combination with other objects, have I<br>
been able to get a clear binary image to detect motion from.<br>
<br>
If you could possibly have a look at my code and give me some hints to how<br></span>
I could improve it I would *really* appreciate it! Other suggestions are<span class=""><br>
also most welcome!<br>
<br>
What I want it to do is detect hand (preferably without arm?) and give me<br>
the following readings:<br>
x-pos, y-pos, x-direction, y-direction,  x-acceleration, y-acceleration and<br>
blob size. x and y being for the center of the detected hand. Multiple<br>
blobs would also be great but I can't really understand how to use it so<br>
far.<br>
<br>
I've attached one out of many attempts for the right solution.<br>
<br>
<br>
I am using some objects from pix_opencv library which (in case you don't<br>
already have it) can be found here:<br>
<br>
<a href="http://giss.tv/wiki/index.php/Opencv_for_PD#DOWNLOAD_.26_INSTALL" target="_blank">http://giss.tv/wiki/index.php/<u></u>Opencv_for_PD#DOWNLOAD_.26_<u></u>INSTALL</a><br></span>
<<a href="https://mail.aau.dk/owa/redir.aspx?C=AfeyM9F6NEuKyXWfCaqyUJjUEYZM49EIDcxZaejZJa5vTByqA8HawMFTHijqhA-X2zxf8U4Y1A4.&URL=http%3a%2f%2fgiss.tv%2fwiki%2findex.php%2fOpencv_for_PD%23DOWNLOAD_.26_INSTALL" target="_blank">https://mail.aau.dk/owa/<u></u>redir.aspx?C=<u></u>AfeyM9F6NEuKyXWfCaqyUJjUEYZM49<u></u>EIDcxZaejZJa5vTByqA8HawMFTHijq<u></u>hA-X2zxf8U4Y1A4.&URL=http%3a%<u></u>2f%2fgiss.tv%2fwiki%2findex.<u></u>php%2fOpencv_for_PD%<u></u>23DOWNLOAD_.26_INSTALL</a>><br>
<br>
The best<br>
<br>
Jonathan<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
</blockquote></div><br></div>