insightface.transform
insightface.transform
Functions
| Name | Description |
|---|---|
| P2sRt | Decompose affine camera matrix into scale, rotation, translation. |
| estimate_affine_matrix_3d23d | Least-squares affine matrix from 3D points X to Y. |
| matrix2angle | Convert rotation matrix to pitch, yaw, roll in degrees. |
P2sRt
insightface.transform.P2sRt(P)Decompose affine camera matrix into scale, rotation, translation.
estimate_affine_matrix_3d23d
insightface.transform.estimate_affine_matrix_3d23d(X, Y)Least-squares affine matrix from 3D points X to Y.
matrix2angle
insightface.transform.matrix2angle(R)Convert rotation matrix to pitch, yaw, roll in degrees.