diff options
Diffstat (limited to 'megapixels/app/processors/face_pose.py')
| -rw-r--r-- | megapixels/app/processors/face_pose.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/megapixels/app/processors/face_pose.py b/megapixels/app/processors/face_pose.py index 8bc95f8d..5ac510ec 100644 --- a/megapixels/app/processors/face_pose.py +++ b/megapixels/app/processors/face_pose.py @@ -25,6 +25,12 @@ class FacePoseDLIB: def pose(self, landmarks, dim): + '''Returns face pose information + :param landmarks: (list) of 68 (int, int) xy tuples + :param dim: (tuple|list) of image (width, height) + :returns (dict) of pose attributes + ''' + # computes pose using 6 / 68 points from dlib face landmarks # based on learnopencv.com and # https://github.com/jerryhouuu/Face-Yaw-Roll-Pitch-from-Pose-Estimation-using-OpenCV/ |
