Ask Your Question

How to draw 3D objects in camerabridgeviewbase for Augmented Reality (Android + Opencv + Opengl)

asked 2014-10-31 15:17:21 -0500

Kevin A gravatar image

updated 2020-11-03 08:30:15 -0500

I'm making an Augmented Reality app for android, at the moment my app make the camera calibration, recognize an specific marker, classify it by ID and draw a 3D line. Now I have to draw a more complex 3d object like persons, cars etc... I know that it's necessary to use OpenGL, but I do not know nothing about it and all examples that I found don't show how to implements OpenGL in OpenCV images.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-02 14:11:02 -0500

From what I understand you can' t draw with openGL on an opencv Mat. You may draw in opengl and somehow put the openCV image as a background (and i don' t really know enough openGL to suggest how to do it) but the other way around seems not so plausible : a 3d canvas such openGL may embed a 2d canvas such as the openCv Mat datastructure but not the other way around.

edit flag offensive delete link more


Thanks bro, you helped me a lot, I found the way to put the openCV image as a background.

Kevin A gravatar imageKevin A ( 2014-11-04 09:19:18 -0500 )edit

After you figured it out, would you share your experience?

JCrasher gravatar imageJCrasher ( 2014-11-20 03:30:07 -0500 )edit

Question Tools

1 follower


Asked: 2014-10-31 15:17:21 -0500

Seen: 1,866 times

Last updated: Nov 02 '14