Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I was online searching about Face recognition on Andoid and and found this project >>> https://github.com/Ajay191191/Opencv-Face-Recognition I have fixed lots of errors including configurations but stacked here. In the JNI part of the project in the jni_part.cpp class on line 131 and 132 Iam having an error.

        vector<Mat> images;//Vector of Mat image declared
            ...
        int im_width = images[0].cols;//line 131 and its trying to access column of images matrix
        int im_height = images[0].rows;//line 132 and trying to access rows of Mat images

And the error i am having is "Field 'Cols' couldnot be resolved" and "Field 'rows' could not be resolved".I think its trying to access the rows and columns of the Mat image 'images' which is a vector and i am not sure this is whether the right way to access the Mat of an Image file on Android. Can any one help by pointing to the right way on how to access the rows and columns of an image with Vector images declaration?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.