Ask Your Question

opencv face detection

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

pocahentez gravatar image pocahentez
35 1 6

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?

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

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

StevenPuttemans gravatar image StevenPuttemans flag of Belgium
8800 3 27 84

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:

link delete flag offensive edit

Login/Signup to Answer

Question tools


subscribe to rss feed


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

Seen: 254 times

Last updated: Apr 04 '13