Ask Your Question
0

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
1

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

StevenPuttemans gravatar image StevenPuttemans flag of Belgium
8272 3 21 78
http://www.eavise.be/tobc...

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

Follow

subscribe to rss feed

Stats

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

Seen: 223 times

Last updated: Apr 04 '13