Ask Your Question

fuco's profile - activity

2013-05-06 00:04:52 -0600 received badge  Student (source)
2013-05-05 23:22:48 -0600 asked a question Android samples: Face Detection cannot be compiled

I am trying OpenCV library (version 2.4.5). The Face detection sample for android is working on my device when installed as provided "example-face-detection.apk". But I cannot make it run from provided sources because of compiler error. The problem is in "DetectionBasedTracker_jni.cpp" at line:

((DetectionBasedTracker*)thiz)->getObjects(RectFaces);

The c++ compiler error:

Invalid arguments ' Candidates are: void getObjects(? &) '

After commenting the line, sample compiles well. But what is wrong with the argument?

DetectionBasedTracker declaration:

class DetectionBasedTracker
{
public:
    ...
    virtual void getObjects(std::vector<cv::Rect>& result) const;
    virtual void getObjects(std::vector<Object>& result) const;
    ...
}

RectFaces definition:

vector<Rect> RectFaces;