I'm having some trouble adding OpenCV to a new Android project

后端 未结 3 1311
一个人的身影
一个人的身影 2021-01-05 07:28

I have made modifications to several example OpenCV projects within Android, however I am having some issues with using OpenCV successfully in a new Android project.

<
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-05 08:18

    I had this problem when I pulled in the jni_part.cpp file from a sample project. I forgot to change the names of the functions to fit the package name of the class I was using them from:

    JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial3_Sample3Native_FindFeatures ->
    
    JNIEXPORT void JNICALL Java___
    

    Hope this helps someone.

提交回复
热议问题