Include OpenCV in Android App Package

I need to work on detecting edges from an image, for this I use the Canny algorithm. Since OpenCV for android is available in 2.4.2, while I'm trying to run the examples it says. "OpenCV Manager is not installed, try installing it." after installation from the market, it works fine.

But if I want the user to install my application, so that they do not need to install another .apk to use my application.

-> How to use openCV without requesting another application, that is, the box must be pre-installed.?

-> Is there a way I can use the Canny algorithm to detect an edge without OpenCV of any good android tutorials to implement in android.?

+7
source share
2 answers

You can find information about this on the OpenCV webpage. This suggests that it is out of date, and OpenCV advises against doing this in production. The manager actually allows the user to download the OpenCV library once for all. Then your application will be much smaller!

That OpenCV is not used, you can try FastCV (as Aaron suggested), but it seems redundant for your application (and it requires that you are familiar with the development of NDK). On the other hand, with OpenCV you can code in either java (by the way, see JavaCV ) or using the NDK.

Finally, if you only need a Canny Edge detector and you do not want to use the library, you can try to write it yourself. The appropriate Wikipedia page should be enough for this (I could have done this a few years ago as an exercise).

+1
source

Have you looked at Qualcomm FastCV? It offers some of the most common image processing algorithms offered by libraries such as OpenCV. They also have a pretty cool augmented reality API called Vuforia.

Fair warning, support documentation is not so useful and requires that you are familiar with the development of NDK.

https://developer.qualcomm.com/mobile-development/mobile-technologies/computer-vision-fastcv

0
source

All Articles