Ask Your Question
2

Need examples of Augmented Reality on Android with OpenCV

asked 2013-03-04 04:50:59 -0500

vespa gravatar image

updated 2013-03-06 07:49:49 -0500

Are there any examples with OpenCV Augmented reality on android? I have found one example for iOS and one real good example in c++. I am not that familiar yet with C++ or OpenCV so I'm looking for a nice example for Android I can follow. -What i mean by Augmented Reality is to simulate an object by putting it onto a pre-defined surface (not a marker). The app would use the camera frames to look for the surface and then draw the object onto the camera frame.-edited

Here you can find the C++ example. I haven't got it working yet so I can't say if it's working properly.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-03-04 06:55:25 -0500

Here you have a sample for Android. You can also used directly the code of C++ version, with native calls: doc.

edit flag offensive delete link more

Comments

That sample is just changing the whole frame it's not augmented reality or am i missing something?

vespa gravatar imagevespa ( 2013-03-05 03:21:12 -0500 )edit
1

Without entering in a complex (and useless?) discussion on what is or what is not ''augmented reality'', I (personally) think that the alien face is augmented reality. Nevertheless, let us know what ''kind'' of augmented reality you want and we can provided some resources.

Mathieu Barnachon gravatar imageMathieu Barnachon ( 2013-03-05 09:54:20 -0500 )edit
1

You are probably right of it being Augmented Reality. But i'm looking for a way to simulate/draw an object onto a surface that is pre-defined. As an example this picture: https://github.com/MasteringOpenCV/code/blob/master/Chapter3_MarkerlessAR/screenshot.png?raw=true

vespa gravatar imagevespa ( 2013-03-06 07:05:30 -0500 )edit
1

This code is easy to port to Android. The implementation is pure C++, and things you have to do are: 1) create a java canvas to see the results 2) use ORB/FAST instead of SIFT/SURF which are unfree and then slightly more complicated to exploit under Android plateform. 3) upload a picture of your object to track or create a java interface to take a picture and resize it to keep only the ''marker''.

Some of my students have do it recently, the performances aren't too bad, but the C++ OpenGL usage to display the cube isn't the best way in my opinion...

Enjoy and let us know!

Mathieu Barnachon gravatar imageMathieu Barnachon ( 2013-03-06 08:44:05 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-03-04 04:50:59 -0500

Seen: 4,990 times

Last updated: Mar 06 '13