18

I am developing an appication, wher I'm using opencv to detect shapes in a camera image and want to display 3D objects rendered by metaio on those shapes. How can this be achieved? I have tried custom rendering, but 'onNewCameraFrame' method is not being called.

I have to convert each camera frame that we get in 'onNewCameraFrame()' method to Mat object for shape detection logic. But it's not being called. I have even added call to 'requestCameraImage()' method of metaio sdk.

halfer
  • 19,824
  • 17
  • 99
  • 186
Shweta24
  • 197
  • 5

1 Answers1

2

Start with the Hello world example by metaio: http://dev.metaio.com/sdk/tutorials/hello-world/ There you can see the example code how to e.g. render a figure on a marker

But metaio and OpenVC are not for the rendering part, well metaio a little bit more then OpenCV but they do the computer vision part of your application. To render something you have to write OpenGL code yourself, or you conect the tracking of metaio to some more complex rendering engine like jMonkey, libGDX etc.

Simon
  • 13,173
  • 14
  • 66
  • 90
  • I have gone through basic tutorials of metaio. Metaio free version does not support edge detection, which can be done by openCV. So, I was wondering, how both(OpenCV and Metaio) can be combined => like what I did was detected basic shapes using edge detection in openCV. And now I want to add 3d object on detected shape using metaio. How can this be done. – Shweta24 May 13 '14 at 06:08
  • I think you can't do it, read the terms of use, I think you are not allowed to use both OpenCV and metaio computer vision methods at the same time – Simon May 13 '14 at 14:29
  • What you can do is use something like the droidar marker tracker: https://code.google.com/p/droidar/wiki/Markerdetection and https://www.youtube.com/watch?v=w5BrHLnG4no , but this would mean that you need to write some tracking logic with opencv yourself – Simon May 13 '14 at 14:58