For the last 2 weeks I have been trying to write a motion tracking external using the blob motion
tracker in opencv. I had success with writing a program that recieves a path to an avi and motion
tracks the blobs and prints their position. Now I am writing the set of Pd externals using the same
code with very little success. I need someone that knows what they are doing to look at my Pd code
and show me what I am doing wrong. I have read and followed IOhannes guide on external writing.
Also, I have looked at the zexy and pdp sorce code in order to learn but still I am not getting it to work.
The externals are based on the already working code I was able to frankenstein together. I am
calling it FTIR_Tools. It consist of the following (if I ever get them to work!):
you can also turn on and off visuals for center point and bounding box. 4. FTIR_Window: displays frames in an X11 window.
Please look at my code and show me how to fix it. I am getting nowhere. In the cvBloblib.zip is the
program I put together called Tracker and the code called Tracker.cpp. If you want to see how it
works drag it to terminal and follow it with a path to an .avi. You must have opencv and fink installed.
If you have ploblems installing opencv post and I will be glad to help.
Thanks,
Alain
I haven't looked at this yet, and have no external coding experience.
However, I'm wondering if it would be an easier task to port this library to mimic the pix_* objects in Gem? Maybe you could look at the Gem source and figure out how to do this. Or better yet, compare the code you have here with the pix_multiblob, and try to correct the algorithms as was suggested earlier.
Good luck!!!
~Kyle
On 5/27/07, nosehair911@bellsouth.net nosehair911@bellsouth.net wrote:
For the last 2 weeks I have been trying to write a motion tracking external using the blob motion tracker in opencv. I had success with writing a program that recieves a path to an avi and motion tracks the blobs and prints their position. Now I am writing the set of Pd externals using the same code with very little success. I need someone that knows what they are doing to look at my Pd code and show me what I am doing wrong. I have read and followed IOhannes guide on external writing. Also, I have looked at the zexy and pdp sorce code in order to learn but still I am not getting it to work. The externals are based on the already working code I was able to frankenstein together. I am calling it FTIR_Tools. It consist of the following (if I ever get them to work!):
- FTIR_Cam: detects webcam and sends out frames to outlet.
- FTIR_VPlayer: reads quicktimes from path and sends out frames to outlet.
- FTIR_Tracker: tracks blobs, sends out "matrix blob# position" to outlet2 and frames to outlet 1.
you can also turn on and off visuals for center point and bounding box. 4. FTIR_Window: displays frames in an X11 window.
Please look at my code and show me how to fix it. I am getting nowhere. In the cvBloblib.zip is the program I put together called Tracker and the code called Tracker.cpp. If you want to see how it works drag it to terminal and follow it with a path to an .avi. You must have opencv and fink installed. If you have ploblems installing opencv post and I will be glad to help. Thanks, Alain
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi Alain,
wouldn't it be a lot easier to take the system that you already have and use OSC or FIDO to send the values (that you were printing) to PD for further processing?
I am greatly in favour of using different systems for different jobs
and letting
a protocol like OSC or fido (netsend) connect them together.
I could easily help you with that problem, if the code is running
already.
Cheers,
tim
On 27/05/2007, at 10:35 PM, nosehair911@bellsouth.net
nosehair911@bellsouth.net wrote:
For the last 2 weeks I have been trying to write a motion tracking
external using the blob motion tracker in opencv. I had success with writing a program that
recieves a path to an avi and motion tracks the blobs and prints their position. Now I am writing the
set of Pd externals using the same code with very little success. I need someone that knows what they
are doing to look at my Pd code and show me what I am doing wrong. I have read and followed
IOhannes guide on external writing. Also, I have looked at the zexy and pdp sorce code in order to
learn but still I am not getting it to work. The externals are based on the already working code I was able to
frankenstein together. I am calling it FTIR_Tools. It consist of the following (if I ever get
them to work!):
- FTIR_Cam: detects webcam and sends out frames to outlet.
- FTIR_VPlayer: reads quicktimes from path and sends out frames to
outlet. 3. FTIR_Tracker: tracks blobs, sends out "matrix blob# position" to
outlet2 and frames to outlet 1. you can also turn on and off visuals for center point and bounding
box. 4. FTIR_Window: displays frames in an X11 window.Please look at my code and show me how to fix it. I am getting
nowhere. In the cvBloblib.zip is the program I put together called Tracker and the code called
Tracker.cpp. If you want to see how it works drag it to terminal and follow it with a path to an .avi. You
must have opencv and fink installed. If you have ploblems installing opencv post and I will be glad to
help. Thanks, Alain <FTIR_Tools(src).zip> <cvBloblib.zip> _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list