Using OpenCV solvePnP for Augmented Reality in OpenGL
问题 I'm trying to build an Augmented Reality application in Android using BoofCV (OpenCV alternative for Java) and OpenGL ES 2.0. I have a marker which I can get the image points of and "world to cam" transformation using BoofCV's solvePnP function. I want to be able to draw the marker in 3D using OpenGL. Here's what I have so far: On every frame of the camera, I call solvePnP Se3_F64 worldToCam = MathUtils.worldToCam(__qrWorldPoints, imagePoints); mGLAssetSurfaceView.setWorldToCam(worldToCam);