找不到针对org.opencv.core.Core.rotate_0的实现 [英] No implementation found for void org.opencv.core.Core.rotate_0
本文介绍了找不到针对org.opencv.core.Core.rotate_0的实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我构建由此处,并在OpenCVLib中完成了必要的工作,以调用
I build the OpenCVLib taught by here and done necessarily stuff in the OpenCVLib to call this in mavenLocal.
然后我将其发布为mavenLocal,但是由于我已经有了mavenLocal,所以我没有将这些库放到我的应用程序文件夹中.
Then I publish it as mavenLocal but I didn't take the libs to put into my app folder as I already have mavenLocal.
我尝试将位图转换为mat没问题.
I have tried converting bitmap to mat without a problem.
但是我不能旋转垫子.
But I can't rotate the Mat.
public Bitmap rotateMat(Bitmap bitmap, int i){
Mat mat = helper.bitmapToMat(bitmap);
switch (i) {
case 1:
Core.rotate(mat, mat, 0);
break;
case 2:
Core.rotate(mat, mat, 2);
break;
case 3:
Core.rotate(mat, mat, 1);
break;
default:
System.out.println("================= No Rotation");
}
return helper.matToBitmap(mat);
}
E/zygote64: No implementation found for void org.opencv.core.Core.rotate_0(long, long, int) (tried Java_org_opencv_core_Core_rotate_10 and Java_org_opencv_core_Core_rotate_10__JJI)
这是由Core.rotate(mat, mat, 0);
推荐答案
解决方案
- 将这些库添加到OpenCV库中,并将其重命名为jniLibs
- 最后,将其发布为MavenLocal
这篇关于找不到针对org.opencv.core.Core.rotate_0的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文