简体   繁体   中英

Render 3D A Object On Top of The OpenCV Camera

Is it possible when I detect an object with the haar cascade classifier, to render a 3d object over the detected area?

Lets say I detect a face and I want to render super mario in the area of the face. I know I have to use OpenGL ES for rendering objects.

Should it be something with SurfaceTexture? An advice would be useful too! Thank you in advance!

Here is the code for the work I did: MotionDetectionAR If the face detection gives you the size of the face then you will be able to scale a 3D object in the exact location. However, I would be worried about the orientation aspects - if say the person is not looking directly at the camera then will you be able to detect that angle (both the left/right and up/down angles)? The 3D Object would need to be oriented in the same way and would not look right if its not taken into account.

You might like to look at this face superposition technique - I thought this was impressive; I don't think its Android but may give you some ideas.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM