在新的Android Studio 3.4中使用openCV吗? [英] Working with openCV in the new Android Studio 3.4?

查看:85
本文介绍了在新的Android Studio 3.4中使用openCV吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次从事与OpenCv有关的android项目,我的目标是阅读车辆的车牌并从服务器获取详细信息.阅读了几篇文章后,我知道这些文章似乎已经过时了,因为我正在使用新的Android Studio 3.4,因此添加模块依赖项的过程似乎有些不同,因此如果有人遇到过这种情况,请您指导我摆脱了这个问题.

这是我提到的文章:

https://android.jlelse.eu/a-beginners-guide-to-setting-up-opencv-android-library-on-android-studio-19794e220f3c

https://medium.com/easyread /integrating-your-android-app-with-opencv-library-266b2ea913d3

先谢谢了.

解决方案

我针对Android Studio 3.4和OpenCV 4.1的解决方案是从opencv/sdk目录中导入模块,而不是像大多数教程中所述的那样从opencv/sdk/java中导入模块. /p>

IDE建议使用:sdk"作为模块名称,但是您可以更改它.

现在可以在项目结构中添加opencv依赖项了.

This is the first time I'm working on an android project which deals with OpenCv , and my goal here is to read the number plate of vehicle and fetch the details from a server . After reading a couple of articles ,i came to know that the articles seems to be outdated since I'm working with the new Android Studio 3.4 the process of Adding the Module dependency seems a bit different so if anyone has encounter this could you please guide me out of this problem .

This is the articles that i mention about :

https://android.jlelse.eu/a-beginners-guide-to-setting-up-opencv-android-library-on-android-studio-19794e220f3c

https://medium.com/easyread/integrating-your-android-app-with-opencv-library-266b2ea913d3

Thanks in advance.

解决方案

My solution for Android Studio 3.4 and OpenCV 4.1 was to import module from opencv/sdk directory and not in opencv/sdk/java as described in most tutorials.

The IDE suggests ":sdk" as module name but you can change it.

Now it was possible to add opencv dependency in the project structure.

这篇关于在新的Android Studio 3.4中使用openCV吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆