Ask Your Question
0

opencv face detection

asked 2013-04-04 08:57:38 -0600

pocahentez gravatar image

hi I want to convert the detected face rectangle (the original face detection sample)into a 3D coordinates . I have the intrinsic parameters of my camera, how can I determine the depth Z? using the projection equation? how can i get the face depth ?

x = fx X / Z + u

y = fy Y / Z + v

I understand that fx fy and u v are intrinsic parameters, x y are given by the detected face rectangle.what does the X,Y represents?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-04-04 10:01:17 -0600

Basically you did not listen to me in previous posts. In order to define depth from a 2D image, you need to use the idea of stereo vision which gives you the projection matrix. There is no simple formula to deform your rectangle into a 3D location based on a single bounding box...

Go read these documentations:

edit flag offensive delete link more
Login/Signup to Answer

Stats

Asked: 2013-04-04 08:57:38 -0600

Seen: 264 times

Last updated: Apr 04 '13