OpenCV error: approval failed (channels () == CV_MAT_CN (dtype))

I have a lot of time trying to solve this problem. This is an error in my log file (Android)

error()﹕ OpenCV Error: Assertion failed (channels() == CV_MAT_CN(dtype)) in void cv::Mat::copyTo(cv::OutputArray) const, file /home/reports/ci/slave_desktop/50-SDK/opencv/modules/core/src/copy.cpp, line 212

I am completely at a dead end. Java code passes the long values ​​generated by calls to .getNativeObjAddr ().

Does anyone know about this error? I can not track the error (jni C ++) in android.

+4
source share

All Articles