[PD] opencv motion tracker external HELP!
mike at mikewoz.com
Wed May 30 23:24:10 CEST 2007
Yeah, I took the openCV blobtrack code from the examples and modified it
just slightly. I didn't document all the changes, because it was never
meant to last for more than one project. I simply added the pd netsend
stuff, added a few sliders to control parameters, added an automatic
background model refresher, and blacked out some areas of the image that
I didn't want processed.
Attached is the patch that I use to receive the blob data in Pd (also
with some customizations).
Nose Hair wrote:
> Sorry forgot to ask. Do you have a pd abstraction for this? If not I
> will see what I can cook up. I think iemmatrix might do the trick.
> On May 29, 2007, at 8:08 PM, Nose Hair wrote:
>> I see you have the ability to capture from an avi built in already:
>> avi_name = argv[i];
>> if (avi_name) pCap = cvCaptureFromFile(avi_name);
>> else pCap = cvCaptureFromCAM( 0 )
>> This is code looks great. I could figure it out from the code but if
>> you have any use instructions let me know. It would be great to get a
>> gui for this thing. I will try to figure that out.
>> Thank you,
>> On May 29, 2007, at 6:58 PM, Nose Hair wrote:
>>> Thanks Mike,
>>> Its awsome how helpful people in this community can be. I will check
>>> out you code and modify it if need be, like add the option to use an
>>> avi in order to be able to calibrate things and such and I will post
>>> it. I will also continue to figure out the external because I think
>>> that would be a neater approach and cause I dont accept defeat very
>>> On May 29, 2007, at 4:55 PM, Mike Wozniewski wrote:
>>>> Hi Alain,
>>>> I've used the OpenCV blobtracker with Pd before, and I simply send
>>>> blob positions and sizes over UDP using u_pdsend.c
>>>> I've attached my code and makefile... look in blobtrack.c and
>>>> search for where I use the pdsend_init() and pdsend_message()
>>>> functions... it's pretty simple.
>>>> Then you just use [netreceive] in Pd and parse the list as you deem
>>>> Hope this helps,
>>>> P.S. my blobtracker code is meant for use with a live camera, not
>>>> with .avi files.
>>> PD-list at iem.at <mailto:PD-list at iem.at> mailing list
>>> UNSUBSCRIBE and account-management ->
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Pd-list