目录
安装mediapipe
pip install mediapipe --user
onnx 人脸关键点 测试
img_path=r'D:\data\val_result\1212\test\1\2\02370_1.jpg'
img=cv2.imread(img_path)
img_o = cv2.resize(img, (192, 192))
img=cv2.cvtColor(img_o,cv2.COLOR_BGR2RGB)
img = img.astype(np.float32)
# img=img-127.5
img/=255.0
# dummy_input = np.ones([1, 192, 192, 3], dtype=np.float32)
dummy_input = np.array([img])
model_path = r'E:\project\angle_net\xuanzhuan_detect\ncnn-20220420-windows-vs2017\x64\bin/model_float32.onnx&#