为什么这个简单的Android OpenCV NDK代码失败了?

时间:2018-06-13 23:23:02

标签: java android opencv

我有这个:

getDuration()

并在 @Override public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) { frame = inputFrame.rgba(); donothing(frame.getNativeObjAddr(), output.getNativeObjAddr()); return output; } 我有:

native-lib.cpp

由于我没有做任何事情,我应该把框架拿回来......

但是我收到了这个错误:

    #include <jni.h>
    #include <opencv2/core/core.hpp>
    #include <opencv2/imgproc/imgproc.hpp>
    #include <opencv2/features2d/features2d.hpp>
    #include <opencv2/calib3d.hpp>

using namespace cv;

extern "C" {

JNIEXPORT void JNICALL Java_com_foo_bar_MainActivity_detector(JNIEnv *env,
                                                                           jobject,
                                                                           jlong queryImage,
                                                                           jlong target) {

    Mat &query = *(Mat *) queryImage;
    Mat &image = *(Mat *) target;

} 

0 个答案:

没有答案