Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Reaching CascadeClassfier XMLs from full Native C++ Android App

Hello all,

I'm trying to build Native C++ Android app but i am having difficulties to load, for example, lbpcascade_frontalface.xml file from cpp file.

I have examined the samples but what i want to do is, simply something like this;

/* CascadeClassifier face_cascade; face_cascade.load("lbpcascade_frontalface.xml"); while (1) { std::vector<rect> faces; face_cascade.detectMultiScale( image, faces, 1.1f, 4, CASCADE_FIND_BIGGEST_OBJECT, Size(40, 40) ); } */

The problem here is the path of the XML File, what should it be? The XML file can be on Assets folder or anything else in the project.

Thanks in advance.

Reaching CascadeClassfier XMLs from full Native C++ Android App

Hello all,

I'm trying to build Native C++ Android app but i am having difficulties to load, for example, lbpcascade_frontalface.xml file from cpp file.

I have examined the samples but what i want to do is, simply something like this;

/* /*

CascadeClassifier face_cascade;
face_cascade.load("lbpcascade_frontalface.xml");
while (1)
{
    std::vector<rect> std::vector<Rect> faces;
    face_cascade.detectMultiScale( image, faces, 1.1f, 4, CASCADE_FIND_BIGGEST_OBJECT,  Size(40, 40) );
}

*/

The problem here is the path of the XML File, what should it be? The XML file can be on Assets folder or anything else in the project.

Thanks in advance.