Ask Your Question
1

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 (http://docs.opencv.org/platforms/andr...), but from http://docs.opencv.org/index.html, 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

Comments

  • "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
0

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

Comments

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: http://answers.opencv.org/question/18...http://answers.opencv.org/question/20...

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
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 1,245 times

Last updated: Apr 17 '15