简体   繁体   English

Android Studio-推荐的图像处理库,可与Android Studio完美配合

[英]Android Studio - Advisable Image Processing Library that works well with Android Studio

I feel like there is a necessity to ask this question because of the migration of Android Development from Eclipse to Android Studio. 我觉得有必要提出这个问题,因为Android开发已从Eclipse迁移到Android Studio。 A good number of libraries (eg AChartEngine for Graphing in Android, among other graphing libraries for Android) also made their libraries available for Maven Dependencies in addition to the the old .jar file libraries that were used for Eclipse. 除了用于Eclipse的旧.jar文件库外,大量的库(例如,用于Android的AChartEngine,以及用于Android的其他图形库)还使其库可用于Maven Dependencies。

However, the situation is not the same for Image Processing Libraries as most of them are still using jars and are a bit of a trouble when you need to import them to Android Studio. 但是,图像处理库的情况并不相同,因为它们中的大多数仍在使用jar,因此当您需要将其导入Android Studio时会有些麻烦。

A famous open source library for image processing is OpenCV. 一个著名的用于图像处理的开源库是OpenCV。 I managed to import it to my Android Studio project thanks to some Stack Overflow answers. 由于一些Stack Overflow的答案,我设法将其导入到Android Studio项目中。 However, it seems as if statically initializing OpenCV for Android Studio is not that straightforward. 但是,似乎静态初始化适用于Android Studio的OpenCV并不是那么简单。 Also, the import guide of OpenCV to Android Studio seem to be "outdated" as some of them call to create a folder under your "app" folder in Android Studio but I can't seem to make that. 另外,OpenCV到Android Studio的导入指南似乎已“过时”,因为其中一些人要求在Android Studio中的“ app”文件夹下创建一个文件夹,但我似乎做不到。 The case simply is that OpenCV requires a lot of work to import to Android Studio. 情况很简单,OpenCV需要大量工作才能导入Android Studio。 Another issue is that there seems to be a lack of tutorial/guides on how to develop applications using OpenCV in Android. 另一个问题是,似乎缺少有关如何在Android中使用OpenCV开发应用程序的教程/指南。

Another Library I found was AndroidFastImageProcessing. 我发现的另一个库是AndroidFastImageProcessing。 It is another library for Image Processing that is available in Android but I can't import it to Android Studio as I needed Android Support Repository which wasn't available in Android Studio's SDK Manager (I only had the Support Library). 这是Android中可用的另一个图像处理库,但是由于需要Android Support Repository (我只有支持库)而无法使用Android Support Repository ,因此无法将其导入Android Studio。 And I am once again stunted in my progress as I can't seem to properly import an Image Processing Library Properly. 由于无法正确导入图像处理库,我的进度再次受到阻碍。

Now, I may be doing things wrong in importing - so if there's a new and updated way of importing OpenCV to Android Studio, kindly do place that in the answers, I'd be grateful. 现在,我可能在导入时做错了-因此,如果有将OpenCV导入Android Studio的新方法和更新方法,请将其放入答案中,我将不胜感激。 The same goes for AndroidFastImageProcessing - if there's a way to import it successfully in Android Studio, I'd love to know. AndroidFastImageProcessing也是如此-如果有一种方法可以在Android Studio中成功将其导入,我很想知道。

My main question is this: is there an Image Processing Library that can be easily imported to Android Studio? 我的主要问题是:是否有可以轻松导入Android Studio的图像处理库? A tutorial/great documentation will merit plus points. 教程/出色的文档将加分。

There are many native image processing libs available for android, but problem is lack of examples and tutorials , but you can certainly find many libs: 有许多可用于android的本机图像处理库,但是问题是缺少示例和教程,但是您当然可以找到许多库:

List of few most used : 1. AndroidJniBitmapOperations 2. javacv 3. Opencv 几个最常用的列表:1. AndroidJniBitmapOperations 2. javacv 3. Opencv

If u wanna work on NDK https://github.com/julienr/libpng-android 如果您想在NDK上工作https://github.com/julienr/libpng-android

by far best is JAVACV - a java wapper for native opancv, this is growing well and with few useful tutorials and bunch of documentation you can start image processing like me in javacv ;) 到目前为止,最好的是JAVACV-一个用于本机opancv的Java包装器,它发展得很好,并且几乎没有有用的教程和大量文档,您可以像我一样在javacv中开始图像处理;)

https://github.com/bytedeco/javacv https://github.com/bytedeco/javacv

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM