xucong-zhang / ETH-XGaze

Official implementation of ETH-XGaze dataset baseline
185 stars 33 forks source link

How to calculate the rvec and tvec? Are they calculated by solvepnp, which paras are face_model_3d_coordinates and ldmk68s from csv? #19

Open exploreTiny opened 2 years ago

exploreTiny commented 2 years ago

I got rvec, tvec calculated by the func below, but the result is not correspond with rvec, tvec from the lable csv.

_, rvec, tvec = cv2.solvePnP(face_model_3d_coordinates, ldmk50, camera_matrix, distortion_coefficients, rvec, tvec, useExtrinsicGuess=True, flags=cv2.SOLVEPNP_ITERATIVE)