By stage.satge2013
on Tue, 04/02/2013 - 11:40
Hi,
i want to change the tracking part of Image Target sample.The tracking will be based on detection :every frame i detect the face then i put my 3d model.So i'm not using any trackable as it's done in the original sample of the ImageTarget.My problem now is to show the 3D model. i know that i have to set the ModelViewMatrix but i don't know how can i change the result->getPose()getpose()? how can i show the 3D model related to the coordinate of the detected face?is there any function to convert detected point of the face and used it to show the 3d model?
QCAR::Matrix44F modelViewMatrix = QCAR::Tool::convertPose2GLMatrix(result->getPose());
How to set the modelViewMatrix
Hi,
what does you face detection provides ? does it provide a pose with respect to the camera ?
a 3D point in the camera reference frame ? (and if yes, how are the cmera axis defined ?)
How to set the modelViewMatrix
the detection return a MatofRect for face .i haven't understood what do you mean by
How to set the modelViewMatrix
I think that 'pose w/ respect to the camera' means that the position is defined in relation to the camera position, where the camera is at 0,0,0.
How to set the modelViewMatrix
then my answer will be no, it return the Matrix of rectangle independently from the position of the camera.i can just get the points of the returned rectangle.
How to set the modelViewMatrix
how can i made my points in relation to the camera pose.
How to set the modelViewMatrix
See :
https://developer.vuforia.com/resources/dev-guide/pose-matrix-explained
https://developer.vuforia.com/resources/dev-guide/getting-camera-position
https://developer.vuforia.com/resources/dev-guide/projection-matrix-explained
How to set the modelViewMatrix
How to set the modelViewMatrix
Hi,
if the reference frame is as you describe, then it is the same as the one used by Vuforia (note: Vuforia also uses a reference frame which is like OpenGL but rotated 180 degrees around X, which makes the Z axis to "enter the screen");
How to set the modelViewMatrix
i have done it already :
How to set the modelViewMatrix
Yes, but have you done the extra steps that I highlight in the code:
How to set the modelViewMatrix
thank you.i forget that i gave to the faceposeX and faceposeY a constant value.now i have just to search how to get the faceposeZ value.
How to set the modelViewMatrix
Good. Let me know how it goes with the facePosZ....
How to set the modelViewMatrix
hi again,
i tried to find the poseZ but with no result. so i wounder can i integrate a 2d image in the video frame and use it as target to make my 3d object track this target?is it possible? really i don't know how can i make my 3d model track my face.
How to set the modelViewMatrix
Hi, the problem with 3D tracking is that you really need to have the depth information ("faceZ"), otherwise it is not a 3D problem, it becomes 2D, but then you loose your ability to work and reason with 3D objects.
How to set the modelViewMatrix
i done it but the teapot became too big just when my face is in the camera direction (i translate my face in the camera direction the teapot becomes away from my face and big)else there is no change or may be it is not remarquable.may be i still have to guess the value.
How to set the modelViewMatrix
Keep in mind that the Teapot mesh in the ImageTargets sample is defined so to look fine when displayed on a 20 - 30 cm targets (with size expressed in millimeters) using an object scale factor of 3 (see kObjectScale variable).
How to set the modelViewMatrix
i have found a solution for the facePoseZ but my model doesn't rotate it seams like the faceposeX and the face poseY are false in my case so can i get the rotation and translation matrix extrinsic parameters of the calibration).i know that to project a P(X,Y,Z) into Q(x,y) we pass par the cal
How to set the modelViewMatrix
Hi, in computer graphics we usually talk about ModelView matrix for the 3D transformation part (rotation, translation and scaling), and "Projection" matrix for the projective transformation (for instance the camera perspective).