[Libface-general] Getting started issue
Status: Beta
Brought to you by:
leshiy_uk
|
From: Martitza M. <mar...@gm...> - 2011-10-10 17:32:51
|
Hi. I just started reading the OpenCV book, so my questions are simple. My computer is running Ubuntu Lucid x64 and has OpenCV 2.1 (2.1.0-3ubuntu1 packages) installed. I built libface-0.1 on Ubuntu Karmic, including -DBUILD_EXAMPLES, -DBUILD_EXAMPLES_GUI and -DBUILD_DOCUMENTATION. No errors. Yeah! So I launched the GUI and loaded an image. When I clicked "Detect Faces" I get an error (in my shell): Cascade directory located as : /usr/share/opencv/haarcascades opened ERROR: Could not load classifier cascade. I discovered that /usr/share/opencv was almost completely empty! (Actually, it has one file: OpenCVConfig.cmake.) So I went looking for the Haar filters and found them gzip'ed in /usr/share/doc/opencv-doc/examples/haarcascades/haarcascades. SO I copied and unzipped all of them into /usr/share/opencv/haarcascades (where the libfaceGUI expects to find them). Now when I run libfaceGUI, it does recognize faces. Yeah! But each time it recognizes a face, it prints several lines like this: ERROR: Could not load classifier cascade. ERROR: Could not load classifier cascade. ERROR: Could not load classifier cascade. ERROR: Could not load classifier cascade. ERROR: Could not load classifier cascade. These appear to come in blocks of 5, i.e. 5 or 10 or 15 at a time. I've just started looking in the source code. If anyone has any friendly advice to help ease my learning curve, I will appreciate your comments. Thanks! ~M |