Ask Your Question

Super resolution on Android

asked 2015-04-17 20:24:53 -0500

pursang gravatar image

Hi there,

I am fairly new to using OpenCV and was wondering:

There seems to be an OpenCV4Android API reference (, but from, the super resolution is in another scope, namely the OpenCV API reference.

So can I use OpenCV for super-resolution on Android without having to code in C++ ? Or do I write C++ code and put it in a library that in its turn can be used in an Android activity?

More specific, I don't want to use OpenCV for capturing frames, that is already done in the main application (yuv420sp format from Android). How do I perform super resolution on this type of image?

Also, I read on this Q&A forum that real-time super resolution is not really feasible on mobile devices.. Is this true?

I much appreciate any response !!

edit retag flag offensive close merge delete


  • "can I use OpenCV for super-resolution on Android without having to code in C++"

    no, unfortunately, you will have to come up with your own jni wrapping.

berak gravatar imageberak ( 2015-04-18 02:39:39 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-05-08 17:08:09 -0500

beniroquai gravatar image

Bad question though, but how do I actually build this jni? Would I just take one of the Android OpenCV Native Tutorials on the web, replace the C-Code with the Superresolution code, build header and compile? I would love to see something in my Java code like .. video.superresolution(Input, Output, params) Is there a good tutorial which shows this procdure? I'm familiar with NDK though, but Android Studio is hard to work with..

Thank you!

edit flag offensive delete link more


Hi there! I've done some more research and I've come up with following observations:

It's hard to find just any tutorial that shows what you (and I) want.

Use JNI to create a native (C++) method. Download OpenCV4Android and include the necessary headers etc. I want to be able to do void superResolution(input, output) or <type output=""> superResolution(input).

Code for this JNI method has to be something like this:

My problem is that I have several yuv images, byte [ ], that act as low res input images. One thing I've seen is that frameSource needs a video as input. This is where I am stuck at the moment.

Any help is much appreciated

pursang gravatar imagepursang ( 2015-05-15 08:21:48 -0500 )edit

Question Tools

1 follower


Asked: 2015-04-17 20:24:53 -0500

Seen: 1,457 times

Last updated: Apr 17 '15