Segmentation Fault OpenCV / Facedetect.c / CentOS 6 64Bit
I am now trying for several days to run this code ...
http://opencv.willowgarage.com/wiki/FaceDetection
... but without success.
1) I am using CentOS 6 64Bit on a VM with 2GHz and 1GB RAM.
2) I have tried it on several versions of the OS, even on different distros, till I finally found a package (I think it is 2.0.9 OpenCV for 64Bit), which has all needed software in it.
3) I installed everything, and compiled all samples in /samples/c with success using build_all.sh, only the facedetect.c and people...c. did not compiled. So I searched for an other facedetect code, and found the one in the link obove, and it did compile! But when trying to call the binary from the terminal, I got : "Segmentation Fault (Core Dumped)".
I have no clue about c++ (I am a PHP/JS Developer), and after some research, I found out, that the error has something to do with the code itself, and probably not with the environment.
I only need the coordinates of the face, the source is a normal image file and I am searching only for the "biggest" face (most dominant on the picture). So the code could be drastically reduced. Unfortunately, I have no clue about C++. I only need the coordinates of one face of a normal image, so that I can further p开发者_运维问答rocess those coordinates with PHP.
Perhaps you have also an alternative code (C/C++/Pyhton ... doesnt matter). I have tried a native PHP implementation, but the data file is not as good as that of OpenCV.
Thanks in advance. :)
I looked into this yesterday. (See OpenCV (CvHaarClassifierCascade*) cvLoad doesn't load , unable to load xml file.) It seems that the tutorial on the wiki isn't compatible with the current version of haarcascade_frontalface_alt_tree.xml
. Try this OpenCV 2 tutorial instead.
精彩评论