Mike, Can you tell me where I can read up on netsend. I have tried to follow your code but I still get a compile error. I tried this: #include "u_pdsend.h" char* host = "localhost"; int port = 8779; char* protocol = "tcp"; char str[1024]; Then I use pdsend_init(host, port, protocol); then I use it the way you do by: sprintf(str,"%d (%d,%d)", i, iMeanx, iMeany); pdsend_message(str); but I get this compile error: /usr/bin/ld: Undefined symbols: pdsend_init(char*, int, char*) pdsend_message(char*) collect2: ld returned 1 exit status Anyway I have been looking for instructions online without success. If you can point the way to a webpage that would be great. Alain
From: Mike Wozniewski mike@mikewoz.com Date: 2007/05/29 Tue PM 04:55:35 EDT To: nosehair911@bellsouth.net CC: pd-list@iem.at Subject: Re: [PD] opencv motion tracker external HELP!
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 necessary.
Hope this helps, -Mike
P.S. my blobtracker code is meant for use with a live camera, not with .avi files.
Hallo,
just a little reminder: For these kinds of C-programming oriented developer questions we also have the pd-dev@iem.at list. Maybe you want to take over this discussion there.
Frank
nosehair911@bellsouth.net hat gesagt: // nosehair911@bellsouth.net wrote:
Mike, Can you tell me where I can read up on netsend. I have tried to follow your code but I still get a compile error. I tried this: #include "u_pdsend.h" char* host = "localhost"; int port = 8779; char* protocol = "tcp"; char str[1024]; Then I use pdsend_init(host, port, protocol); then I use it the way you do by: sprintf(str,"%d (%d,%d)", i, iMeanx, iMeany); pdsend_message(str); but I get this compile error: /usr/bin/ld: Undefined symbols: pdsend_init(char*, int, char*) pdsend_message(char*) collect2: ld returned 1 exit status Anyway I have been looking for instructions online without success. If you can point the way to a webpage that would be great. Alain
From: Mike Wozniewski mike@mikewoz.com Date: 2007/05/29 Tue PM 04:55:35 EDT To: nosehair911@bellsouth.net CC: pd-list@iem.at Subject: Re: [PD] opencv motion tracker external HELP!
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 necessary.
Hope this helps, -Mike
P.S. my blobtracker code is meant for use with a live camera, not with .avi files.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Sorry, you are right. I just signed up over there yesterday and I
just started receiving email from there. I know all my questions
lately that have been littering this mailing list are about things
more appropriate to the pd-dev but I just found out about the pd-dev
yesterday.
Alain
On May 30, 2007, at 3:19 PM, Frank Barknecht wrote:
Hallo,
just a little reminder: For these kinds of C-programming oriented developer questions we also have the pd-dev@iem.at list. Maybe you want to take over this discussion there.
Ciao
Frank
nosehair911@bellsouth.net hat gesagt: // nosehair911@bellsouth.net
wrote:Mike, Can you tell me where I can read up on netsend. I have tried to
follow your code but I still get a compile error. I tried this: #include "u_pdsend.h" char* host = "localhost"; int port = 8779; char* protocol = "tcp"; char str[1024]; Then I use pdsend_init(host, port, protocol); then I use it the
way you do by: sprintf(str,"%d (%d,%d)", i, iMeanx, iMeany); pdsend_message(str); but I get this compile error: /usr/bin/ld: Undefined symbols: pdsend_init(char*, int, char*) pdsend_message(char*) collect2: ld returned 1 exit status Anyway I have been looking for instructions online without
success. If you can point the way to a webpage that would be great. Alain