tzutalin / dlib-android-app

:dragon: Android app to demo dlib-android(https://github.com/tzutalin/dlib-android). Use the prebuilt shared-lib built from dlib-android
Apache License 2.0
683 stars 246 forks source link

Errors:no member named 'nc' in 'cv::Mat' #41

Open Xavier-Zeng opened 6 years ago

Xavier-Zeng commented 6 years ago

Hi, I use Android Studio 2.2 to integrate Dlib 19.1 and OpenCV 3.1.0,but there are so many problems, like: Error:error: no member named 'to_string' in namespace 'std' Error:error: reference to 'rectangle' is ambiguous Error:error: reference to 'rectangle' is ambiguous Error:error: implicit instantiation of undefined template 'dlib::image_traits' Error:error: no member named 'nc' in 'cv::Mat' Error:error: no member named 'nr' in 'cv::Mat' Error:error: implicit instantiation of undefined template 'dlib::image_traits' Error:error: use of undeclared identifier 'image_data' Error:error: use of undeclared identifier 'width_step' Error:error: use of undeclared identifier 'num_rows' Error:error: use of undeclared identifier 'num_columns' Error:error: implicit instantiation of undefined template 'dlib::image_traits' Error:error: no matching function for call to 'num_rows' Error:error: implicit instantiation of undefined template 'dlib::image_traits' Error:error: implicit instantiation of undefined template 'dlib::image_traits' Error:error: no matching function for call to 'num_columns' Error:error: no matching function for call to 'num_rows' Error:Execution failed for task ':app:ndkBuild'.

Process 'command 'D:/Android/SDK/ndk-bundle/ndk-build.cmd'' finished with non-zero exit value 2

Cany anyone help me? Thanks.