Where can I find the camera matrix params derived from the model for a given frame?
Tetsujinfr opened this issue · 2 comments
Tetsujinfr commented
thanks
Tetsujinfr commented
Ok so I guess this is
self._get_camera_matrix = partial(self._interpreter.get_tensor,
output_details[0]["index"])
in BaseTFLiteFaceAlignment ?
1996scarlet commented
Yes, we can get the camera_matrix R
directly from the model output.
Dense-Head-Pose-Estimation/service/TFLiteFaceAlignment.py
Lines 29 to 30 in 60a5bdf
Dense-Head-Pose-Estimation/service/TFLiteFaceAlignment.py
Lines 75 to 82 in 60a5bdf
Then, we can decompose matrix to ruler angle
Dense-Head-Pose-Estimation/service/__init__.py
Lines 101 to 111 in 60a5bdf