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