hello all pd-ers
not quite sure how to hrase this correctly. I need to be able to
dtermine direction of a string of bangs. more sinply, I need to know if they are being triggered in the same direction from which they started, or if they are bing triggered in the opposite. i need positive or negative numbers respectively. stripping what i have to the bone is this:
[ hslider ] [route 1 2 3 4 5 6 7 8] | | | | | | | | o o o o o o o o | [other things] } | } [that give me] } | } -----this stuff is all working well [positive numbers] } | } [independent of direction] } | [number]
I need to be able to tell direction the slider is being "slid" relative to the direction it started from.
hope i am being clear.
many thanks in advance
Ben Carney wrote:
I need to be able to tell direction the slider is being "slid" relative to the direction it started from.
((slider value) - (previous slider value)) > 0
slider
|
[t f f]
\ /
X
/
[- ]
|
[> 0]
|
[select 0 1]
| |
decrease increase
Hope this helps,
it looks good, but not working. I have made a fe assumptions in your sketch. does the big X represent the patch chords crossing to opposite inlets? also, i am assuming that the decrease and increase at the bottom are number boxes. with these assumptions, i am getting no change whatsoever in the number boxe at the bottom.
also, before sending this i looked back, connected a number box tot he outlet of [- ] and i am never getting a value above 0, therfore no change is occurring.
On 4/24/08, Claude Heiland-Allen claudiusmaximus@goto10.org wrote:
Ben Carney wrote:
I need to be able to tell direction the slider is being "slid" relative to the direction it started from.
((slider value) - (previous slider value)) > 0
slider | [t f f] \ / X /
[- ] | [> 0] | [select 0 1] | | decrease increaseHope this helps,
Claude
so I connected bangs instead of numbers to the bottom under select [0 1] getting bangs for increase and decrease. thank you very much. now is there a way I can get increase or decreases relative to the first direction that takes place? so maybe there could be some reset function and if the slider is on the right side, that way, moving left would be pos. and then moving back to the right could return negative vals.
any ideas?
by the way, i mention this alot but this list ****ing rules.
thank you all so much.
On 4/24/08, Ben Carney bfcarney@gmail.com wrote:
it looks good, but not working. I have made a fe assumptions in your sketch. does the big X represent the patch chords crossing to opposite inlets? also, i am assuming that the decrease and increase at the bottom are number boxes. with these assumptions, i am getting no change whatsoever in the number boxe at the bottom.
also, before sending this i looked back, connected a number box tot he outlet of [- ] and i am never getting a value above 0, therfore no change is occurring.
On 4/24/08, Claude Heiland-Allen claudiusmaximus@goto10.org wrote:
Ben Carney wrote:
I need to be able to tell direction the slider is being "slid" relative to the direction it started from.
((slider value) - (previous slider value)) > 0
slider | [t f f] \ / X /
[- ] | [> 0] | [select 0 1] | | decrease increaseHope this helps,
Claude
--
Ben C.
Looks like the decrease and increase represent bangs...
On 4/24/08, Ben Carney bfcarney@gmail.com wrote:
it looks good, but not working. I have made a fe assumptions in your sketch. does the big X represent the patch chords crossing to opposite inlets? also, i am assuming that the decrease and increase at the bottom are number boxes. with these assumptions, i am getting no change whatsoever in the number boxe at the bottom.
also, before sending this i looked back, connected a number box tot he outlet of [- ] and i am never getting a value above 0, therfore no change is occurring.
On 4/24/08, Claude Heiland-Allen claudiusmaximus@goto10.org wrote:
Ben Carney wrote:
I need to be able to tell direction the slider is being "slid" relative to the direction it started from.
((slider value) - (previous slider value)) > 0
slider | [t f f] \ / X /
[- ] | [> 0] | [select 0 1] | | decrease increaseHope this helps,
Claude
--
Ben C.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi there,
since i am experimenting quite a bit with the mapping- abstractions...in the last days
well, there is many times a solution for problems that i am facing
There is an object called "diff_n" which does simple differentiation,
and thats exactly what you are looking for..
maybe that helps
I have attached a patch...you dont need the mapping-abs in order to
see how its made and how it is working
Cheers Luigi

Am 24.04.2008 um 22:21 schrieb Matthew Logan:
Looks like the decrease and increase represent bangs...
On 4/24/08, Ben Carney bfcarney@gmail.com wrote: it looks good, but not working. I have made a fe assumptions in
your sketch. does the big X represent the patch chords crossing to opposite inlets? also, i am assuming that the decrease and increase at the bottom are number boxes. with these assumptions, i am getting no change whatsoever in the number boxe at the bottom.also, before sending this i looked back, connected a number box tot he outlet of [- ] and i am never getting a value above 0, therfore no change is occurring.
On 4/24/08, Claude Heiland-Allen claudiusmaximus@goto10.org wrote:
Ben Carney wrote:
I need to be able to tell direction the slider is being "slid" relative to the direction it started from.
((slider value) - (previous slider value)) > 0
slider | [t f f] \ / X /
[- ] | [> 0] | [select 0 1] | | decrease increaseHope this helps,
Claude
--
Ben C.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
---------------------------------------<
Luigi Rensinghoff luigi.rensinghoff@freenet.de skype:gigischinke ichat:gigicarlo
I think this is what you're looking for... best,
J
On Thu, Apr 24, 2008 at 4:52 PM, Luigi Rensinghoff < luigi.rensinghoff@freenet.de> wrote:
Hi there, since i am experimenting quite a bit with the mapping-abstractions...in the last days
well, there is many times a solution for problems that i am facing
There is an object called "diff_n" which does simple differentiation, and thats exactly what you are looking for..
maybe that helps
I have attached a patch...you dont need the mapping-abs in order to see how its made and how it is working
Cheers Luigi
Am 24.04.2008 um 22:21 schrieb Matthew Logan:
Looks like the decrease and increase represent bangs...
On 4/24/08, Ben Carney bfcarney@gmail.com wrote:
it looks good, but not working. I have made a fe assumptions in your sketch. does the big X represent the patch chords crossing to opposite inlets? also, i am assuming that the decrease and increase at the bottom are number boxes. with these assumptions, i am getting no change whatsoever in the number boxe at the bottom.
also, before sending this i looked back, connected a number box tot he outlet of [- ] and i am never getting a value above 0, therfore no change is occurring.
On 4/24/08, Claude Heiland-Allen claudiusmaximus@goto10.org wrote:
Ben Carney wrote:
I need to be able to tell direction the slider is being "slid" relative to the direction it started from.
((slider value) - (previous slider value)) > 0
slider | [t f f] \ / X /
[- ] | [> 0] | [select 0 1] | | decrease increaseHope this helps,
Claude
--
Ben C.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
---------------------------------------<
Luigi Rensinghoff luigi.rensinghoff@freenet.de skype:gigischinke ichat:gigicarlo
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi all,
I started a new development for some OpenCV bindigs to PD, I have some
objects working but no time to test or implement newones ...
I want to encourage people to test them and report bugs, features
requests, experiences, etc ... and why not, to help coding ...
Please, note that this is alpha software with known bugs. It runs, and
works at least some of the time, but use at your own risk.... ;) i
mean, probably you will need to fight a bit to get them working ...
but you also will help a lot with feedback
ok, here is the URL : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv
enjoi & thanks, ll
This message was sent using IMP, the Internet Messaging Program.
This looks very useful. A quick question, do these objects provide
the raw tracking data?
We should get them included in the nightly builds when you are ready
for that, once the 0.40-extended is released.
.hc
On Apr 24, 2008, at 9:07 PM, lluisgomez@hangar.org wrote:
hi all,
I started a new development for some OpenCV bindigs to PD, I have some objects working but no time to test or implement newones ...
I want to encourage people to test them and report bugs, features requests, experiences, etc ... and why not, to help coding ...
Please, note that this is alpha software with known bugs. It runs, and works at least some of the time, but use at your own risk.... ;) i mean, probably you will need to fight a bit to get them working ... but you also will help a lot with feedback
ok, here is the URL : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv
enjoi & thanks, ll
This message was sent using IMP, the Internet Messaging Program.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Looking at things from a more basic level, you can come up with a
more direct solution... It may sound small in theory, but it in
practice, it can change entire economies. - Amy Smith
Hans-Christoph Steiner wrote:
This looks very useful. A quick question, do these objects provide
the raw tracking data?
they provide cool pixel based algorithms like more sophisticated blob operations, pattern recognition methods (like face recognition), and much much more! marius.
marius schebella marius.schebella@gmail.com ha escrito:
Hans-Christoph Steiner wrote:
This looks very useful. A quick question, do these objects provide
the raw tracking data?
yes, can do it.
opencv offers really huge number of functions and algorithms, take a
look here for more info :
http://www.seas.upenn.edu/~bensapp/opencvdocs/ref/opencvref_cv.htm
for now I started with contour detections (and tracking) and yes you
have raw data for them ... however contour detection needs a
prefiltered image to work well, i mean you need to well isolate the
contours you want to track before to use the objects ...
for example pdp_opencv_contours_convexity will send raw info of the
biggest contour detected and can be used (with ann) in pattern
recognition or something like this ...
they provide cool pixel based algorithms like more sophisticated blob operations, pattern recognition methods (like face recognition), and much much more! marius.
This message was sent using IMP, the Internet Messaging Program.
I hoped for such a long time that someone would start this. thanks 1000 times lluis! unfortunately I could not get it compiling on my os x box. I installed the opencv framework from http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port and then tried to find the correct directories to include but I think I still got a problem with the opencv package
nyc-calling:pix_opencv marius$ make
g++ -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math -Wall -W
-Wno-unused -Wno-parentheses -Wno-switch -DGEM_OPENCV_VERSION="0.1" -g
-I/Users/marius/devel/pd-rsync/pd-extended/pd/src -I.
-I/Users/marius/devel/pd-rsync/pd-extended/Gem/src
-I/Users/marius/devel/pd-rsync/pd-extended/pd/src -I/usr/local/include
-I/Users/marius/devel/opencv/OpenCV.framework/Versions/A pkg-config --cflags opencv
-o pix_opencv_edge.o -c pix_opencv_edge.cpp
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
In file included from pix_opencv_edge.cpp:18:
pix_opencv_edge.h:22:16: error: cv.h: No such file or directory
[.........]
make: *** [pix_opencv_edge.o] Error 1
does someone have experience with opencv on mac? thanks,
marius.
lluisgomez@hangar.org wrote:
hi all,
I started a new development for some OpenCV bindigs to PD, I have some
objects working but no time to test or implement newones ...I want to encourage people to test them and report bugs, features
requests, experiences, etc ... and why not, to help coding ...Please, note that this is alpha software with known bugs. It runs, and
works at least some of the time, but use at your own risk.... ;) i
mean, probably you will need to fight a bit to get them working ...
but you also will help a lot with feedbackok, here is the URL : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv
enjoi & thanks, ll
This message was sent using IMP, the Internet Messaging Program.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi marius,
today first time I have tried to compile this objects in macosx, i
marius schebella marius.schebella@gmail.com ha escrito:
I hoped for such a long time that someone would start this. thanks 1000 times lluis! unfortunately I could not get it compiling on my os x box. I installed the opencv framework from http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port and then tried to find the correct directories to include but I think I still got a problem with the opencv package
nyc-calling:pix_opencv marius$ make g++ -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -DGEM_OPENCV_VERSION="0.1" -g -I/Users/marius/devel/pd-rsync/pd-extended/pd/src -I. -I/Users/marius/devel/pd-rsync/pd-extended/Gem/src -I/Users/marius/devel/pd-rsync/pd-extended/pd/src -I/usr/local/include -I/Users/marius/devel/opencv/OpenCV.framework/Versions/A
pkg-config --cflags opencv
-o pix_opencv_edge.o -c pix_opencv_edge.cpp Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing `opencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found In file included from pix_opencv_edge.cpp:18: pix_opencv_edge.h:22:16: error: cv.h: No such file or directory [.........] make: *** [pix_opencv_edge.o] Error 1does someone have experience with opencv on mac? thanks,
marius.
lluisgomez@hangar.org wrote:
hi all,
I started a new development for some OpenCV bindigs to PD, I have
some objects working but no time to test or implement newones ...I want to encourage people to test them and report bugs, features
requests, experiences, etc ... and why not, to help coding ...Please, note that this is alpha software with known bugs. It runs,
and works at least some of the time, but use at your own risk....
;) i mean, probably you will need to fight a bit to get them
working ... but you also will help a lot with feedbackok, here is the URL : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv
enjoi & thanks, ll
This message was sent using IMP, the Internet Messaging Program.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
This message was sent using IMP, the Internet Messaging Program.
(sorry my last mail was incomplete)
hi marius,
today first time I have tried to compile this objects in macosx with
no success ;( but i had gone a little bit far than you ... i think we
are quite close.
first of all overwrite the Makefile you are using by the one i send
attached in this mail. the one you are using is only for linux.
As I saw you had problems with pkg-config I added two new variables in
the Makefile to fit manually with the CFLAGS and LIBS of openCV.
OPENCV_CFLAGS = -I/usr/local/include/opencv OPENCV_LIBS = -L/usr/local/lib -lcxcore -lcv -lhighgui -lcvaux -lml
As we are using the same openCv port I suppose you will not need to
modify them but ensure are correct values for you.
then do:
make clean make
and now the objects will compile with no problem in macosx.
However, when I try to load any of them PD gives me this error::
/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin:
dlopen(/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin,
10): Symbol not found: __ZN7GemBase10isRunnableEv
Referenced from:
/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin
Expected in: dynamic lookup
Seems a problem with the linkage of the library but I'm really a
neewbe in OSX compilations and don't know how to solve it,
maybe someone more experienced in it can put some light here?
thanks in advance, ll.
marius schebella marius.schebella@gmail.com ha escrito:
I hoped for such a long time that someone would start this. thanks 1000 times lluis! unfortunately I could not get it compiling on my os x box. I installed the opencv framework from http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port and then tried to find the correct directories to include but I think I still got a problem with the opencv package
nyc-calling:pix_opencv marius$ make g++ -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -DGEM_OPENCV_VERSION="0.1" -g -I/Users/marius/devel/pd-rsync/pd-extended/pd/src -I. -I/Users/marius/devel/pd-rsync/pd-extended/Gem/src -I/Users/marius/devel/pd-rsync/pd-extended/pd/src -I/usr/local/include -I/Users/marius/devel/opencv/OpenCV.framework/Versions/A
pkg-config --cflags opencv
-o pix_opencv_edge.o -c pix_opencv_edge.cpp Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing `opencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found In file included from pix_opencv_edge.cpp:18: pix_opencv_edge.h:22:16: error: cv.h: No such file or directory [.........] make: *** [pix_opencv_edge.o] Error 1does someone have experience with opencv on mac? thanks,
marius.
lluisgomez@hangar.org wrote:
hi all,
I started a new development for some OpenCV bindigs to PD, I have
some objects working but no time to test or implement newones ...I want to encourage people to test them and report bugs, features
requests, experiences, etc ... and why not, to help coding ...Please, note that this is alpha software with known bugs. It runs,
and works at least some of the time, but use at your own
risk.... ;) i mean, probably you will need to fight a bit to
get them working ... but you also will help a lot with feedbackok, here is the URL : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv
enjoi & thanks, ll
This message was sent using IMP, the Internet Messaging Program.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
This message was sent using IMP, the Internet Messaging Program.
This message was sent using IMP, the Internet Messaging Program.
got it working!
lluisgomez@hangar.org wrote:
However, when I try to load any of them PD gives me this error::
/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin: dlopen(/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin, 10): Symbol not found: __ZN7GemBase10isRunnableEv Referenced from: /Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin Expected in: dynamic lookup
I got this error too, but only when gem was not loaded. when gem is loaded, everything is fine.
In order to make the opencv objects work I always had to set colorspace RGB. otherwise, I did no see any effect. I think the default on osx is yuv. anyway, will test a little more. great stuff! marius.
marius schebella marius.schebella@gmail.com ha escrito:
got it working!
;)
lluisgomez@hangar.org wrote:
However, when I try to load any of them PD gives me this error::
/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin:
dlopen(/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin, 10):
Symbol not found: __ZN7GemBase10isRunnableEv Referenced from:
/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin Expected in: dynamic lookupI got this error too, but only when gem was not loaded. when gem is loaded, everything is fine.
please, can post what versions of (gem and pd) are you using?
In order to make the opencv objects work I always had to set colorspace RGB. otherwise, I did no see any effect. I think the default on osx is yuv. anyway, will test a little more. great stuff!
yes, this is the eternal colorspace problem ;) ...
openCV works in RGB mode.
As it has good color conversion rutines it's possible to convert all
frames passed as YUV to RGB inside the opencv objects, but this
aproach will be CPU unefficent (specially if you connect some nested
pix_opencv objects).
Anyway thanks for the report I updated online documentation with it.
marius, i have two strange behaviors with pix_opencv (probably bugs
but as my camera don't work with gem i can't test them well), can you
test them and report please ::
1.- strange behavior in pix_opencv_haarcascade, it uses the same code
as pdp_opencv_haarcascade but it doesn?t show the same result.
2.- pix_opencv_contours_boundingrect works only in RGBA pixes?
and ofcourse, as I see you have some experience in CV you will find
lots of features not implemented yet, so make a wishlist please ;)
This message was sent using IMP, the Internet Messaging Program.
lluisgomez@hangar.org wrote:
please, can post what versions of (gem and pd) are you using?
I am using cvs version from 04/16. do you want me to put it online? these dynamic lib errors seem to be new to gem? at least I did not notice them before. maybe some libraries are not statically linked? don't know.
marius, i have two strange behaviors with pix_opencv (probably bugs but as my camera don't work with gem i can't test them well), can you test them and report please ::
you're having problems on osx with the isight?
1.- strange behavior in pix_opencv_haarcascade, it uses the same code as pdp_opencv_haarcascade but it doesn?t show the same result.
I have not tested pdp_opencv yet, yesterday I only looked at pix_opencv, I tried to compile pdp_opencv, but again, get errors. gcc -I/Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include -DPD -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -O2 -funroll-loops -fomit-frame-pointer -ffast-math -g -freg-struct-return -Wstrict-prototypes -DPDP_CV_VERSION="0.0.1" -I. -I/usr/X11R6/include -I../include -I../../include -I/Users/marius/devel/pd-rsync/pd-extended/pd/src -I/usr/local/include/opencv/ -L/usr/local/lib -lcxcore -lcv -lhighgui -lcvaux -lml -o pdp_opencv_threshold.o -c pdp_opencv_threshold.c In file included from /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp.h:41, from pdp_opencv_threshold.c:28: /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_types.h:50: error: two or more data types in declaration specifiers /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_types.h:50: warning: useless type name in empty declaration In file included from /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp.h:41, from pdp_opencv_threshold.c:28: /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_types.h:51:1: warning: "true" redefined In file included from /usr/include/dlfcn.h:40, from pdp_opencv_threshold.c:26: /usr/lib/gcc/i686-apple-darwin9/4.0.1/include/stdbool.h:37:1: warning: this is the location of the previous definition In file included from /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp.h:41, from pdp_opencv_threshold.c:28: /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_types.h:52:1: warning: "false" redefined In file included from /usr/include/dlfcn.h:40, from pdp_opencv_threshold.c:26: /usr/lib/gcc/i686-apple-darwin9/4.0.1/include/stdbool.h:38:1: warning: this is the location of the previous definition In file included from /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp.h:80, from pdp_opencv_threshold.c:28: /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:25:27: error: gsl/gsl_block.h: No such file or directory /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:26:28: error: gsl/gsl_vector.h: No such file or directory /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:27:28: error: gsl/gsl_matrix.h: No such file or directory /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:28:26: error: gsl/gsl_blas.h: No such file or directory /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:29:29: error: gsl/gsl_linalg.h: No such file or directory In file included from /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp.h:80, from pdp_opencv_threshold.c:28: /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:44: error: syntax error before ‘gsl_block’ /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:44: warning: no semicolon at end of struct or union /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:45: warning: type defaults to ‘int’ in declaration of ‘vector’ /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:45: warning: data definition has no type or storage class /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:46: error: syntax error before ‘matrix’ /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:46: warning: type defaults to ‘int’ in declaration of ‘matrix’ /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:46: warning: data definition has no type or storage class /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:47: error: syntax error before ‘perm’ /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:47: warning: type defaults to ‘int’ in declaration of ‘perm’ /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:47: warning: data definition has no type or storage class /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:51: error: syntax error before ‘}’ token /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:51: warning: type defaults to ‘int’ in declaration of ‘t_matrix’ /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:51: warning: data definition has no type or storage class /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:65: error: syntax error before ‘TransA’ /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:65: warning: function declaration isn’t a prototype /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:80: error: syntax error before ‘TransA’ /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:82: warning: function declaration isn’t a prototype /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:84: error: syntax error before ‘TransA’ /Users/marius/devel/pd-rsync/pd-extended/externals/pdp/include/pdp_matrix.h:86: warning: function declaration isn’t a prototype In file included from /usr/local/include/opencv/cv.h:1233, from pdp_opencv_threshold.c:31: /usr/local/include/opencv/cvcompat.h: In function ‘cvMinAreaRect’: /usr/local/include/opencv/cvcompat.h:425: warning: statement with no effect make: *** [pdp_opencv_threshold.o] Error 1
2.- pix_opencv_contours_boundingrect works only in RGBA pixes?
hmm, yes, when I try it with pix_grey, pd crashes. marius.
S'està citant marius schebella marius.schebella@gmail.com:
lluisgomez@hangar.org wrote:
please, can post what versions of (gem and pd) are you using?
I am using cvs version from 04/16. do you want me to put it online?
no thanks, just to know ...
1.- strange behavior in pix_opencv_haarcascade, it uses the same
code as pdp_opencv_haarcascade but it doesn?t show the same result.
I already tested it and it was not a bug. it works quite well here.
I have not tested pdp_opencv yet, yesterday I only looked at pix_opencv, I tried to compile pdp_opencv, but again, get errors.
it will be more dificult to compile pdp_opencv in macosx than
pix_opencv ... but we are doing this in another thread (out of the pd
list) I will post when we success ...
2.- pix_opencv_contours_boundingrect works only in RGBA pixes?
hmm, yes, when I try it with pix_grey, pd crashes. marius.
also we founs another bug with Jack, pix_opencv_contours_boundingrect
:: the data outlet don't increment the number of the detected contour,
so it gives incorrect info. attached is the correct
ix_opencv_contours_boundingrect.cpp . I will overwrite it in the
online package soon...
follow ...
This message was sent using IMP, the Internet Messaging Program.
Hello PD users,
When i compile opencv, i get this error on macos X.4.11, G4 powerbook :
../../../otherlibs/highgui/cvcap_qt.cpp: In function int icvWriteFrame_QT(CvVideoWriter*, const IplImage*)': ../../../otherlibs/highgui/cvcap_qt.cpp:1183: warning: unused variable 'status' ../../../otherlibs/highgui/cvcap_qt.cpp: In function
CvVideoWriter*
cvCreateVideoWriter_QT(const char*, int, double, CvSize, int)':
../../../otherlibs/highgui/cvcap_qt.cpp:1425: error: jump to label
'exit'
../../../otherlibs/highgui/cvcap_qt.cpp:1310: error: from here
../../../otherlibs/highgui/cvcap_qt.cpp:1361: error: crosses
initialization of 'MediaType** video'
../../../otherlibs/highgui/cvcap_qt.cpp:1350: error: crosses
initialization of 'TrackType** video_track'
../../../otherlibs/highgui/cvcap_qt.cpp:1330: error: crosses
initialization of 'const __CFString* out_path'
make[3]: *** [cvcap_qt.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Any idea ? I followed the instructions from : http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port Thanx. ++
Jack
Le 26 avr. 08 à 06:17, marius schebella a écrit :
got it working!
lluisgomez@hangar.org wrote:
However, when I try to load any of them PD gives me this error::
/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin: dlopen(/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin, 10): Symbol not found: __ZN7GemBase10isRunnableEv Referenced from: /Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin Expected in: dynamic lookup
I got this error too, but only when gem was not loaded. when gem is loaded, everything is fine.
In order to make the opencv objects work I always had to set
colorspace RGB. otherwise, I did no see any effect. I think the default on osx is yuv. anyway, will test a little more. great stuff! marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
OK, now it works on PowerPC, MacOSX.4.11
Here the method :
• Download this three libraries with Fink : libjpeg + libpng3 + libtiff
• In Terminal : cvs -d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/cvsroot/ opencvlibrary login ----> then hit 'enter' on your keyboard cvs -z3 -d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/ cvsroot/opencvlibrary co -P opencv ----> download opencv sources
• with a text editor, open the file : cvcap_qt.cpp look for '__BEGIN__' and change it by '__BEGIN__{' look for '__END__' and change it by '}__END__' ----> save
• In Terminal
----> go to your opencv folder you just download and create a new
folder 'build' :
cd blabla/opencv
mkdir build
cd build
../configure CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib"
make
sudo make install
----> enter your password
• With you browser go to : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv ----> download pix_opencv-0.1a.tar.gz and decompress all : http://hangar.org/wikis/lab/pd/pix_opencv-0.1a.tar.gz ----> download PD-extended sources and decompress all : http://downloads.sourceforge.net/pure-data/Pd-0.39.3-extended.tar.bz2 ----> download the makefile for macosx : http://hangar.org/wikis/lab/pd/opencv/Makefile.darwin
• In the Finder :
----> change 'Makefile.darwin' by 'Makefile' and then overwrite the
'Makefile' in 'pix_opencv' folder you just download
• With a text editor :
----> open this new 'Makefile' and change :
PD_DIR = /*/Pd-0.39.3-extended/pd (enter the path of the 'pd' folder
in 'Pd-0.39.3-extended' folder you just download from sourceforge)
GEM_DIR = /*/Pd-0.39.3-extended/Gem (enter the path of the 'Gem'
folder in 'Pd-0.39.3-extended' folder you just download from
sourceforge)
----> save
• In Terminal : ----> go to the folder 'pix_opencv' with 'cd ' export MACOSX_DEPLOYMENT_TARGET=10.4 make clean make
• Then copy the '.pd_darwin' create in the 'pix_opencv' folder in
your '/Applications/Pd-0.40.3-extended-20080315.app/Contents/
Resources/extra/Gem/' for exemple
Hope it will help and hope i have not made mistake. Thx to Lluis for his help. ++
Jack
Le 28 avr. 08 à 12:29, Jack a écrit :
Hello PD users, When i compile opencv, i get this error on macos X.4.11, G4
powerbook : ../../../otherlibs/highgui/cvcap_qt.cpp: In functionint icvWriteFrame_QT(CvVideoWriter*, const IplImage*)': ../../../otherlibs/highgui/cvcap_qt.cpp:1183: warning: unused variable 'status' ../../../otherlibs/highgui/cvcap_qt.cpp: In function
CvVideoWriter* cvCreateVideoWriter_QT(const char*, int, double, CvSize, int)': ../../../otherlibs/highgui/cvcap_qt.cpp:1425: error: jump to label 'exit' ../../../otherlibs/highgui/cvcap_qt.cpp:1310: error: from here ../../../otherlibs/highgui/cvcap_qt.cpp:1361: error: crosses initialization of 'MediaType** video' ../../../otherlibs/highgui/cvcap_qt.cpp:1350: error: crosses initialization of 'TrackType** video_track' ../../../otherlibs/highgui/cvcap_qt.cpp:1330: error: crosses initialization of 'const __CFString* out_path' make[3]: *** [cvcap_qt.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2Any idea ? I followed the instructions from : http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port Thanx. ++
Jack
Le 26 avr. 08 à 06:17, marius schebella a écrit :
got it working!
lluisgomez@hangar.org wrote:
However, when I try to load any of them PD gives me this error::
/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin: dlopen(/Users/lluisgomezbigorda/pix_opencv/ pix_opencv_edge.pd_darwin, 10): Symbol not found: __ZN7GemBase10isRunnableEv Referenced from: /Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin Expected in: dynamic lookup
I got this error too, but only when gem was not loaded. when gem is loaded, everything is fine.
In order to make the opencv objects work I always had to set colorspace RGB. otherwise, I did no see any effect. I think the default on
osx is yuv. anyway, will test a little more. great stuff! marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Argghh, I didn't try the objects and they freeze (or sometime crash)
my PD.
The objects draw perfectly under PD but i got this error :
error: [pix_opencv_contours_convexity]: cannot handle this format
(1234567) !
or
[pix_opencv_haarcascade]: ERROR: Could not load classifier cascade
Why ?
Any idea ?
++
Jack
Le 30 avr. 08 à 19:57, Jack a écrit :
OK, now it works on PowerPC, MacOSX.4.11
Here the method :
• Download this three libraries with Fink : libjpeg + libpng3 +
libtiff• In Terminal : cvs -d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/cvsroot/ opencvlibrary login ----> then hit 'enter' on your keyboard cvs -z3 -d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/ cvsroot/opencvlibrary co -P opencv ----> download opencv sources
• with a text editor, open the file : cvcap_qt.cpp look for '__BEGIN__' and change it by '__BEGIN__{' look for '__END__' and change it by '}__END__' ----> save
• In Terminal ----> go to your opencv folder you just download and create a new
folder 'build' : cd blabla/opencv mkdir build cd build ../configure CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" make sudo make install ----> enter your password• With you browser go to : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv ----> download pix_opencv-0.1a.tar.gz and decompress all : http://hangar.org/wikis/lab/pd/pix_opencv-0.1a.tar.gz ----> download PD-extended sources and decompress all : http://downloads.sourceforge.net/pure-data/Pd-0.39.3-extended.tar.bz2 ----> download the makefile for macosx : http://hangar.org/wikis/lab/pd/opencv/Makefile.darwin
• In the Finder : ----> change 'Makefile.darwin' by 'Makefile' and then overwrite
the 'Makefile' in 'pix_opencv' folder you just download• With a text editor : ----> open this new 'Makefile' and change : PD_DIR = /*/Pd-0.39.3-extended/pd (enter the path of the 'pd'
folder in 'Pd-0.39.3-extended' folder you just download from
sourceforge) GEM_DIR = /*/Pd-0.39.3-extended/Gem (enter the path of the 'Gem'
folder in 'Pd-0.39.3-extended' folder you just download from
sourceforge) ----> save• In Terminal : ----> go to the folder 'pix_opencv' with 'cd ' export MACOSX_DEPLOYMENT_TARGET=10.4 make clean make
• Then copy the '.pd_darwin' create in the 'pix_opencv' folder in
your '/Applications/Pd-0.40.3-extended-20080315.app/Contents/ Resources/extra/Gem/' for exempleHope it will help and hope i have not made mistake. Thx to Lluis for his help. ++
Jack
Le 28 avr. 08 à 12:29, Jack a écrit :
Hello PD users, When i compile opencv, i get this error on macos X.4.11, G4
powerbook : ../../../otherlibs/highgui/cvcap_qt.cpp: In functionint icvWriteFrame_QT(CvVideoWriter*, const IplImage*)': ../../../otherlibs/highgui/cvcap_qt.cpp:1183: warning: unused variable 'status' ../../../otherlibs/highgui/cvcap_qt.cpp: In function
CvVideoWriter* cvCreateVideoWriter_QT(const char*, int, double, CvSize, int)': ../../../otherlibs/highgui/cvcap_qt.cpp:1425: error: jump to label 'exit' ../../../otherlibs/highgui/cvcap_qt.cpp:1310: error: from here ../../../otherlibs/highgui/cvcap_qt.cpp:1361: error: crosses initialization of 'MediaType** video' ../../../otherlibs/highgui/cvcap_qt.cpp:1350: error: crosses initialization of 'TrackType** video_track' ../../../otherlibs/highgui/cvcap_qt.cpp:1330: error: crosses initialization of 'const __CFString* out_path' make[3]: *** [cvcap_qt.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2Any idea ? I followed the instructions from : http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port Thanx. ++
Jack
Le 26 avr. 08 à 06:17, marius schebella a écrit :
got it working!
lluisgomez@hangar.org wrote:
However, when I try to load any of them PD gives me this error::
/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin: dlopen(/Users/lluisgomezbigorda/pix_opencv/ pix_opencv_edge.pd_darwin, 10): Symbol not found: __ZN7GemBase10isRunnableEv Referenced from: /Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin Expected in: dynamic lookup
I got this error too, but only when gem was not loaded. when gem is loaded, everything is fine.
In order to make the opencv objects work I always had to set colorspace RGB. otherwise, I did no see any effect. I think the default on
osx is yuv. anyway, will test a little more. great stuff! marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
S'està citant Jack jack@rybn.org:
Argghh, I didn't try the objects and they freeze (or sometime crash) my PD. The objects draw perfectly under PD but i got this error : error: [pix_opencv_contours_convexity]: cannot handle this format
(1234567) ! or [pix_opencv_haarcascade]: ERROR: Could not load classifier cascade Why ? Any idea ?
yes, the classifier cascade files are the XML's files you have in the
pix_opencv folder, the default ones is haarcascade_frontalface_alt.xml
and it must be in the same folder where you have your "pd_linux" or
"pd_darwin" files.
also the object [pix_opencv_haarcascade] has a message |load $1( to
load any xml file trained as classifier cascades. The default one I'm
using is trained to detect human faces but you can train one to detect
any object you want (it's not easy at all but it's possible).
you can download other "OpenSourced" haarcascades (fer example) here:
here:http://alereimondo.no-ip.org/OpenCV/34
and here you have some info on how to train one: http://note.sonots.com/SciSoftware/haartraining.html
salut, ll.
++
Jack
Le 30 avr. 08 à 19:57, Jack a écrit :
OK, now it works on PowerPC, MacOSX.4.11
Here the method :
? Download this three libraries with Fink : libjpeg + libpng3 + libtiff
? In Terminal : cvs
-d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/cvsroot/
opencvlibrary login ----> then hit 'enter' on your keyboard cvs -z3 -d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/
cvsroot/opencvlibrary co -P opencv ----> download opencv sources? with a text editor, open the file : cvcap_qt.cpp look for '__BEGIN__' and change it by '__BEGIN__{' look for '__END__' and change it by '}__END__' ----> save
? In Terminal ----> go to your opencv folder you just download and create a new
folder 'build' : cd blabla/opencv mkdir build cd build ../configure CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" make sudo make install ----> enter your password? With you browser go to : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv ----> download pix_opencv-0.1a.tar.gz and decompress all : http://hangar.org/wikis/lab/pd/pix_opencv-0.1a.tar.gz ----> download PD-extended sources and decompress all : http://downloads.sourceforge.net/pure-data/Pd-0.39.3-extended.tar.bz2 ----> download the makefile for macosx : http://hangar.org/wikis/lab/pd/opencv/Makefile.darwin
? In the Finder : ----> change 'Makefile.darwin' by 'Makefile' and then overwrite
the 'Makefile' in 'pix_opencv' folder you just download? With a text editor : ----> open this new 'Makefile' and change : PD_DIR = /*/Pd-0.39.3-extended/pd (enter the path of the 'pd'
folder in 'Pd-0.39.3-extended' folder you just download from
sourceforge) GEM_DIR = /*/Pd-0.39.3-extended/Gem (enter the path of the 'Gem'
folder in 'Pd-0.39.3-extended' folder you just download from
sourceforge) ----> save? In Terminal : ----> go to the folder 'pix_opencv' with 'cd ' export MACOSX_DEPLOYMENT_TARGET=10.4 make clean make
? Then copy the '.pd_darwin' create in the 'pix_opencv' folder in
your '/Applications/Pd-0.40.3-extended-20080315.app/Contents/
Resources/extra/Gem/' for exempleHope it will help and hope i have not made mistake. Thx to Lluis for his help. ++
Jack
Le 28 avr. 08 à 12:29, Jack a écrit :
Hello PD users, When i compile opencv, i get this error on macos X.4.11, G4 powerbook : ../../../otherlibs/highgui/cvcap_qt.cpp: In function
int icvWriteFrame_QT(CvVideoWriter*, const IplImage*)': ../../../otherlibs/highgui/cvcap_qt.cpp:1183: warning: unused variable 'status' ../../../otherlibs/highgui/cvcap_qt.cpp: In function
CvVideoWriter* cvCreateVideoWriter_QT(const char*, int, double, CvSize, int)': ../../../otherlibs/highgui/cvcap_qt.cpp:1425: error: jump to label 'exit' ../../../otherlibs/highgui/cvcap_qt.cpp:1310: error: from here ../../../otherlibs/highgui/cvcap_qt.cpp:1361: error: crosses initialization of 'MediaType** video' ../../../otherlibs/highgui/cvcap_qt.cpp:1350: error: crosses initialization of 'TrackType** video_track' ../../../otherlibs/highgui/cvcap_qt.cpp:1330: error: crosses initialization of 'const __CFString* out_path' make[3]: *** [cvcap_qt.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2Any idea ? I followed the instructions from : http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port Thanx. ++
Jack
Le 26 avr. 08 à 06:17, marius schebella a écrit :
got it working!
lluisgomez@hangar.org wrote:
However, when I try to load any of them PD gives me this error::
/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin: dlopen(/Users/lluisgomezbigorda/pix_opencv/ pix_opencv_edge.pd_darwin, 10): Symbol not found: __ZN7GemBase10isRunnableEv Referenced from: /Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin Expected in: dynamic lookup
I got this error too, but only when gem was not loaded. when gem is loaded, everything is fine.
In order to make the opencv objects work I always had to set colorspace RGB. otherwise, I did no see any effect. I think the default on osx is yuv. anyway, will test a little more. great stuff! marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/
listinfo/pd-list
This message was sent using IMP, the Internet Messaging Program.
Hola Lluis, now i got this error and i really don't know what it is :) error: [pix_opencv_haarcascade]: cannot handle this format (1234567) ! What does it mean ? Do you know where is the problem ? Thanx. ++
Jack
Le 5 mai 08 à 12:08, lluisgomez@hangar.org a écrit :
S'està citant Jack jack@rybn.org:
Argghh, I didn't try the objects and they freeze (or sometime
crash) my PD. The objects draw perfectly under PD but i got this error : error: [pix_opencv_contours_convexity]: cannot handle this
format (1234567) ! or [pix_opencv_haarcascade]: ERROR: Could not load classifier cascade Why ? Any idea ?yes, the classifier cascade files are the XML's files you have in
the pix_opencv folder, the default ones is
haarcascade_frontalface_alt.xml and it must be in the same folder
where you have your "pd_linux" or "pd_darwin" files.also the object [pix_opencv_haarcascade] has a message |load $1( to
load any xml file trained as classifier cascades. The default one
I'm using is trained to detect human faces but you can train one to
detect any object you want (it's not easy at all but it's possible).you can download other "OpenSourced" haarcascades (fer example)
here: here:http://alereimondo.no-ip.org/OpenCV/34and here you have some info on how to train one: http://note.sonots.com/SciSoftware/haartraining.html
salut, ll.
++
Jack
Le 30 avr. 08 à 19:57, Jack a écrit :
OK, now it works on PowerPC, MacOSX.4.11
Here the method :
? Download this three libraries with Fink : libjpeg + libpng3 +
libtiff? In Terminal : cvs -d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/ cvsroot/ opencvlibrary login ----> then hit 'enter' on your keyboard cvs -z3 -d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/
cvsroot/opencvlibrary co -P opencv ----> download opencv sources? with a text editor, open the file : cvcap_qt.cpp look for '__BEGIN__' and change it by '__BEGIN__{' look for '__END__' and change it by '}__END__' ----> save
? In Terminal ----> go to your opencv folder you just download and create a
new folder 'build' : cd blabla/opencv mkdir build cd build ../configure CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" make sudo make install ----> enter your password? With you browser go to : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv ----> download pix_opencv-0.1a.tar.gz and decompress all : http://hangar.org/wikis/lab/pd/pix_opencv-0.1a.tar.gz ----> download PD-extended sources and decompress all : http://downloads.sourceforge.net/pure-data/Pd-0.39.3- extended.tar.bz2 ----> download the makefile for macosx : http://hangar.org/wikis/lab/pd/opencv/Makefile.darwin
? In the Finder : ----> change 'Makefile.darwin' by 'Makefile' and then
overwrite the 'Makefile' in 'pix_opencv' folder you just download? With a text editor : ----> open this new 'Makefile' and change : PD_DIR = /*/Pd-0.39.3-extended/pd (enter the path of the 'pd'
folder in 'Pd-0.39.3-extended' folder you just download from
sourceforge) GEM_DIR = /*/Pd-0.39.3-extended/Gem (enter the path of the
'Gem' folder in 'Pd-0.39.3-extended' folder you just download
from sourceforge) ----> save? In Terminal : ----> go to the folder 'pix_opencv' with 'cd ' export MACOSX_DEPLOYMENT_TARGET=10.4 make clean make
? Then copy the '.pd_darwin' create in the 'pix_opencv' folder
in your '/Applications/Pd-0.40.3-extended-20080315.app/ Contents/ Resources/extra/Gem/' for exempleHope it will help and hope i have not made mistake. Thx to Lluis for his help. ++
Jack
Le 28 avr. 08 à 12:29, Jack a écrit :
Hello PD users, When i compile opencv, i get this error on macos X.4.11, G4
powerbook : ../../../otherlibs/highgui/cvcap_qt.cpp: In functionint icvWriteFrame_QT(CvVideoWriter*, const IplImage*)': ../../../otherlibs/highgui/cvcap_qt.cpp:1183: warning: unused variable 'status' ../../../otherlibs/highgui/cvcap_qt.cpp: In function
CvVideoWriter* cvCreateVideoWriter_QT(const char*, int, double, CvSize, int)': ../../../otherlibs/highgui/cvcap_qt.cpp:1425: error: jump to label 'exit' ../../../otherlibs/highgui/cvcap_qt.cpp:1310: error: from here ../../../otherlibs/highgui/cvcap_qt.cpp:1361: error: crosses initialization of 'MediaType** video' ../../../otherlibs/highgui/cvcap_qt.cpp:1350: error: crosses initialization of 'TrackType** video_track' ../../../otherlibs/highgui/cvcap_qt.cpp:1330: error: crosses initialization of 'const __CFString* out_path' make[3]: *** [cvcap_qt.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2Any idea ? I followed the instructions from : http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port Thanx. ++
Jack
Le 26 avr. 08 à 06:17, marius schebella a écrit :
got it working!
lluisgomez@hangar.org wrote:
However, when I try to load any of them PD gives me this error::
/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin: dlopen(/Users/lluisgomezbigorda/pix_opencv/
pix_opencv_edge.pd_darwin, 10): Symbol not found: __ZN7GemBase10isRunnableEv Referenced from: /Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin Expected in: dynamic lookupI got this error too, but only when gem was not loaded. when
gem is loaded, everything is fine.In order to make the opencv objects work I always had to set colorspace RGB. otherwise, I did no see any effect. I think the default
on osx is yuv. anyway, will test a little more. great stuff! marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http:// lists.puredata.info/ listinfo/pd-list
This message was sent using IMP, the Internet Messaging Program.
hi jack,
it seems more a problem on colorspace than a opencv one well, there is no line with this message in the pix_opencv code ...
, look at this :
http://lists.puredata.info/pipermail/pd-list/2003-03/010526.html
its a similar message, no?
pix object cannot handle this format (80e0) !
mmmm...
Quoting Jack jack@rybn.org:
Hola Lluis, now i got this error and i really don't know what it is :) error: [pix_opencv_haarcascade]: cannot handle this format (1234567) ! What does it mean ? Do you know where is the problem ? Thanx. ++
Jack
Le 5 mai 08 à 12:08, lluisgomez@hangar.org a écrit :
S'està citant Jack jack@rybn.org:
Argghh, I didn't try the objects and they freeze (or sometime
crash) my PD. The objects draw perfectly under PD but i got this error : error: [pix_opencv_contours_convexity]: cannot handle this format
(1234567) ! or [pix_opencv_haarcascade]: ERROR: Could not load classifier cascade Why ? Any idea ?yes, the classifier cascade files are the XML's files you have in
the pix_opencv folder, the default ones is
haarcascade_frontalface_alt.xml and it must be in the same folder
where you have your "pd_linux" or "pd_darwin" files.also the object [pix_opencv_haarcascade] has a message |load $1( to
load any xml file trained as classifier cascades. The default one
I'm using is trained to detect human faces but you can train one to
detect any object you want (it's not easy at all but it's possible).you can download other "OpenSourced" haarcascades (fer example)
here: here:http://alereimondo.no-ip.org/OpenCV/34and here you have some info on how to train one: http://note.sonots.com/SciSoftware/haartraining.html
salut, ll.
++
Jack
Le 30 avr. 08 à 19:57, Jack a écrit :
OK, now it works on PowerPC, MacOSX.4.11
Here the method :
? Download this three libraries with Fink : libjpeg + libpng3 + libtiff
? In Terminal : cvs
-d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/cvsroot/
opencvlibrary login ----> then hit 'enter' on your keyboard cvs -z3 -d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/
cvsroot/opencvlibrary co -P opencv ----> download opencv sources? with a text editor, open the file : cvcap_qt.cpp look for '__BEGIN__' and change it by '__BEGIN__{' look for '__END__' and change it by '}__END__' ----> save
? In Terminal ----> go to your opencv folder you just download and create a
new folder 'build' : cd blabla/opencv mkdir build cd build ../configure CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" make sudo make install ----> enter your password? With you browser go to : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv ----> download pix_opencv-0.1a.tar.gz and decompress all : http://hangar.org/wikis/lab/pd/pix_opencv-0.1a.tar.gz ----> download PD-extended sources and decompress all : http://downloads.sourceforge.net/pure-data/Pd-0.39.3-extended.tar.bz2 ----> download the makefile for macosx : http://hangar.org/wikis/lab/pd/opencv/Makefile.darwin
? In the Finder : ----> change 'Makefile.darwin' by 'Makefile' and then overwrite
the 'Makefile' in 'pix_opencv' folder you just download? With a text editor : ----> open this new 'Makefile' and change : PD_DIR = /*/Pd-0.39.3-extended/pd (enter the path of the 'pd'
folder in 'Pd-0.39.3-extended' folder you just download from
sourceforge) GEM_DIR = /*/Pd-0.39.3-extended/Gem (enter the path of the 'Gem'
folder in 'Pd-0.39.3-extended' folder you just download from
sourceforge) ----> save? In Terminal : ----> go to the folder 'pix_opencv' with 'cd ' export MACOSX_DEPLOYMENT_TARGET=10.4 make clean make
? Then copy the '.pd_darwin' create in the 'pix_opencv' folder in
your '/Applications/Pd-0.40.3-extended-20080315.app/Contents/
Resources/extra/Gem/' for exempleHope it will help and hope i have not made mistake. Thx to Lluis for his help. ++
Jack
Le 28 avr. 08 à 12:29, Jack a écrit :
Hello PD users, When i compile opencv, i get this error on macos X.4.11, G4 powerbook : ../../../otherlibs/highgui/cvcap_qt.cpp: In function
int icvWriteFrame_QT(CvVideoWriter*, const IplImage*)': ../../../otherlibs/highgui/cvcap_qt.cpp:1183: warning: unused variable 'status' ../../../otherlibs/highgui/cvcap_qt.cpp: In function
CvVideoWriter* cvCreateVideoWriter_QT(const char*, int, double, CvSize, int)': ../../../otherlibs/highgui/cvcap_qt.cpp:1425: error: jump to label 'exit' ../../../otherlibs/highgui/cvcap_qt.cpp:1310: error: from here ../../../otherlibs/highgui/cvcap_qt.cpp:1361: error: crosses initialization of 'MediaType** video' ../../../otherlibs/highgui/cvcap_qt.cpp:1350: error: crosses initialization of 'TrackType** video_track' ../../../otherlibs/highgui/cvcap_qt.cpp:1330: error: crosses initialization of 'const __CFString* out_path' make[3]: *** [cvcap_qt.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2Any idea ? I followed the instructions from : http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port Thanx. ++
Jack
Le 26 avr. 08 à 06:17, marius schebella a écrit :
got it working!
lluisgomez@hangar.org wrote: > > However, when I try to load any of them PD gives me this error:: > > /Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin: > dlopen(/Users/lluisgomezbigorda/pix_opencv/ pix_opencv_edge.pd_darwin, > 10): Symbol not found: __ZN7GemBase10isRunnableEv > Referenced from: > /Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin > Expected in: dynamic lookup
I got this error too, but only when gem was not loaded. when gem is loaded, everything is fine.
In order to make the opencv objects work I always had to set colorspace RGB. otherwise, I did no see any effect. I think the default on osx is yuv. anyway, will test a little more. great stuff! marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/ listinfo/pd-list
This message was sent using IMP, the Internet Messaging Program.
This message was sent using IMP, the Internet Messaging Program.
Jack wrote:
Hola Lluis, now i got this error and i really don't know what it is :) error: [pix_opencv_haarcascade]: cannot handle this format (1234567) ! What does it mean ? Do you know where is the problem ?
it can mean 2 things.
it _should_ mean, that you send an image in a certain colorspace to the object, which does not know how to deal with this colorspace. (e.g. a YUV image to an RGBA effect; and nobody has coded yet the YUV-part)
however, i believe here it is something different. if your _really_ get "1234567" as the format, then something else is wrong. usually, you should get the openGL colorspace ID here, e.g. "6408" for RGBA). there is no openGL-colorspace "12345678", so this number has to come from somewhere else. it turns out that it is used as a magic number in the GemList. you should never ever see it.
most likely you are trying to compile pix_opencv against a different version of Gem you are using. DO NOT DO THAT!
always make sure to use the same version of Gem for compiling and running, if you don't want to experience any crashes. (especially when using the CVS of Gem, where it might not be obvious that things have changed)
i guess i should introduce a kind of ABI check for 3rd party Gem-externals. but not before the next release.
fmadr IOhannes
Hello IOhannes, Lluis and PD users,
Le 6 mai 08 à 08:09, IOhannes m zmoelnig a écrit :
Jack wrote:
Hola Lluis, now i got this error and i really don't know what it is :) error: [pix_opencv_haarcascade]: cannot handle this format
(1234567) ! What does it mean ? Do you know where is the problem ?it can mean 2 things.
it _should_ mean, that you send an image in a certain colorspace to
the object, which does not know how to deal with this colorspace.
(e.g. a YUV image to an RGBA effect; and nobody has coded yet the
YUV-part)however, i believe here it is something different. if your _really_ get "1234567" as the format, then something else
is wrong. usually, you should get the openGL colorspace ID here,
e.g. "6408" for RGBA). there is no openGL-colorspace "12345678", so this number has to
come from somewhere else. it turns out that it is used as a magic
number in the GemList. you should never ever see it.most likely you are trying to compile pix_opencv against a
different version of Gem you are using. DO NOT DO THAT!
Ah ! OK, i tried to compile opencv with GEM 0.90 and i use GEM 0.91. Thanx, i will tell you if it's ok. ++
Jack
always make sure to use the same version of Gem for compiling and
running, if you don't want to experience any crashes. (especially when using the CVS of Gem, where it might not be
obvious that things have changed)i guess i should introduce a kind of ABI check for 3rd party Gem- externals. but not before the next release.
fmadr IOhannes
Hola ! from Madrid, Thanx for all, opencv works now on my macosx, powerbookG4. I use the Pd version 0.39.3-extended with the gem included. ++
Jack
Le 6 mai 08 à 13:21, Jack a écrit :
Hello IOhannes, Lluis and PD users,
Le 6 mai 08 à 08:09, IOhannes m zmoelnig a écrit :
Jack wrote:
Hola Lluis, now i got this error and i really don't know what it is :) error: [pix_opencv_haarcascade]: cannot handle this format
(1234567) ! What does it mean ? Do you know where is the problem ?it can mean 2 things.
it _should_ mean, that you send an image in a certain colorspace
to the object, which does not know how to deal with this
colorspace. (e.g. a YUV image to an RGBA effect; and nobody has
coded yet the YUV-part)however, i believe here it is something different. if your _really_ get "1234567" as the format, then something else
is wrong. usually, you should get the openGL colorspace ID here,
e.g. "6408" for RGBA). there is no openGL-colorspace "12345678", so this number has to
come from somewhere else. it turns out that it is used as a magic
number in the GemList. you should never ever see it.most likely you are trying to compile pix_opencv against a
different version of Gem you are using. DO NOT DO THAT!Ah ! OK, i tried to compile opencv with GEM 0.90 and i use GEM 0.91. Thanx, i will tell you if it's ok. ++
Jack
always make sure to use the same version of Gem for compiling and
running, if you don't want to experience any crashes. (especially when using the CVS of Gem, where it might not be
obvious that things have changed)i guess i should introduce a kind of ABI check for 3rd party Gem- externals. but not before the next release.
fmadr IOhannes
Thank you lluis! this is very usefull, you know! It was a littlebit hard compile it but ok (path's problems). I'll test it next weeks and try to help you but, what about pdp_v4l2 object that you can find in some of the pdp_opencv help files? with this object i could use finally my (integrated) isight, it should be great! salu2 Husk
lluisgomez@hangar.org wrote:
hi all,
I started a new development for some OpenCV bindigs to PD, I have some
objects working but no time to test or implement newones ...I want to encourage people to test them and report bugs, features
requests, experiences, etc ... and why not, to help coding ...Please, note that this is alpha software with known bugs. It runs, and
works at least some of the time, but use at your own risk.... ;) i
mean, probably you will need to fight a bit to get them working ...
but you also will help a lot with feedbackok, here is the URL : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv
enjoi & thanks, ll
This message was sent using IMP, the Internet Messaging Program.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi,
is it possible to use the built-in isight in gem? it's only v4l2.
pat
but, what about pdp_v4l2 object that you can find in some of the pdp_opencv help files? with this object i could use finally my (integrated) isight, it should be great! salu2 Husk
here:
http://hangar.org/wikis/lab/doku.php?id=start:puredata_pdvjtools
you have a patch for the pdp-0.12.5-test-7 sources. adding support
to some v4l2 devices. Actually only tested with a built-in iSight
camera on Ubuntu GNU/Linux.
S'està citant husk husk00@gmail.com:
Thank you lluis! this is very usefull, you know! It was a littlebit hard compile it but ok (path's problems). I'll test it next weeks and try to help you but, what about pdp_v4l2 object that you can find in some of the pdp_opencv help files? with this object i could use finally my (integrated) isight, it should be great! salu2 Husk
lluisgomez@hangar.org wrote:
hi all,
I started a new development for some OpenCV bindigs to PD, I have some objects working but no time to test or implement newones ...
I want to encourage people to test them and report bugs, features requests, experiences, etc ... and why not, to help coding ...
Please, note that this is alpha software with known bugs. It runs, and works at least some of the time, but use at your own risk.... ;) i mean, probably you will need to fight a bit to get them working ... but you also will help a lot with feedback
ok, here is the URL : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv
enjoi & thanks, ll
This message was sent using IMP, the Internet Messaging Program.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
This message was sent using IMP, the Internet Messaging Program.
Hi List ....
there is this well-written "tips and tricks" folder that desribes how
to create objects/abstractions by sending messages.
like...in folder #5: 2.create_new_abstract.pd..
First, thanks to who put that together, this is extremely helpful and
only documented here...
So my question is:
Is there a way to find out the indexnumber of the objects (the
creation-order-number), that is needed for the
| connect a b c d(
message ??
The scenario:
imagine you build many objects and easily want to connect them with a
little counter-like think.
"connect" ???
Which additional arguments can be send to which object ??
for example i would like to build a number-box, using the built-
in "send" and "recieve" mechanism... Is that possible ???
Thanks
Luigi
On Thu, Apr 24, 2008 at 7:03 PM, Luigi Rensinghoff < luigi.rensinghoff@freenet.de> wrote:
Hi List ....
there is this well-written "tips and tricks" folder that desribes how to create objects/abstractions by sending messages.
like...in folder #5: 2.create_new_abstract.pd..
First, thanks to who put that together, this is extremely helpful and only documented here...
So my question is:
Is there a way to find out the indexnumber of the objects (the creation-order-number), that is needed for the
Nope, you need to keep track of those yourself. It really shouldn't be all that hard. I have done a couple of things creating patches in this particular way, and I have found that it is a good idea to put the static objects in a patch first, and then anything that is "variable" would go in next, and then lastly, you wire them up.
| connect a b c d(
message ??
The scenario:
imagine you build many objects and easily want to connect them with a little counter-like think.
- How do you find out the number that needs to be given to
"connect" ???
Each object is referenced in the order in which they are added to the patch.
- Which additional arguments can be send to which object ??
Not really sure what you mean here, but the string used to create the object should have everything it needs to create that instance.
As far as I know, once you add an object to a patch, the only thing you can do with it is to pass its index to a connect message.
for example i would like to build a number-box, using the built-
in "send" and "recieve" mechanism... Is that possible ???
Yes, you just need to set those arguments when you add the objects to the patch. I am not really sure where it is, but there is a listing of each of the objects in PD and what arguments they can handle.
Hope this helped.
Mike
Thanks
Luigi
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Yes, you just need to set those arguments when you add the objects
to the patch. I am not really sure where it is, but there is a
listing of each of the objects in PD and what arguments they can
handle.
Oh yes i found it....
its just in the properties menu of the object - silly me....
Hope this helped.
Mike
Thanks
Luigi
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
-- Peace may sound simple—one beautiful word— but it requires
everything we have, every quality, every strength, every dream,
every high ideal. —Yehudi Menuhin (1916–1999), musician _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
---------------------------------------<
Luigi Rensinghoff luigi.rensinghoff@freenet.de skype:gigischinke ichat:gigicarlo