[PD] Computer Vision with Pure Data
Jonathan Aardestrup
jonastikov at gmail.com
Fri Dec 5 01:12:39 CET 2014
Hello,
I am working on a university project using Pure Data for computer vision in
order to investigate possible advantages or disadvantages in a music
related interaction context.
The idea is to detect hands from an up-facing webcam in order to simulate a
camera on a touch pad.
I've spend some weeks to get familiar with the objects in Gem namely pix
and pix_opencv, but even with objects such as pix_opencv_bgstats or
pix_opencv_bgsubstract, alone or in combination with other objects, have I
been able to get a clear binary image to detect motion from.
If you could possibly have a look at my code and give me some hints to how
I could improve it I would *really* appreciate it! Other suggestions are
also most welcome!
What I want it to do is detect hand (preferably without arm?) and give me
the following readings:
x-pos, y-pos, x-direction, y-direction, x-acceleration, y-acceleration and
blob size. x and y being for the center of the detected hand. Multiple
blobs would also be great but I can't really understand how to use it so
far.
I've attached one out of many attempts for the right solution.
I am using some objects from pix_opencv library which (in case you don't
already have it) can be found here:
http://giss.tv/wiki/index.php/Opencv_for_PD#DOWNLOAD_.26_INSTALL
<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>
The best
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20141205/77b8e0a8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test5.pd
Type: text/x-puredata
Size: 18420 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20141205/77b8e0a8/attachment-0001.bin>
More information about the Pd-list
mailing list