retinaface人脸姿态
抛转引玉: up down还能准,侧脸时,up和down是混乱的:有时不准 适合只有一个人脸,多人脸不行,不是特别准,大部分准。 这个讲的不错 https://blog.csdn.net/u014090429/article/details/100762308 # encoding=utf8 import os import numpy as np import cv2 # from test import * import math def drawResult(img, yaw, pitch, roll, save_dir): # img = cv2.imread(imgpath) draw = img.copy() cv2.putText(img, "Yaw:" + str(yaw), (20, 40), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0)) cv2.putText(img, "Pitch:" + str(pitch), (20, 80), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0)) cv2.putText(img, "Roll:" + str(roll), (20, 120), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0)) last_status=