参考:
https://ai.google.dev/edge/mediapipe/solutions/vision/face_detector/python?hl=zh-cn#image_1
https://colab.research.google.com/github/googlesamples/mediapipe/blob/main/examples/face_detector/python/face_detector.ipynb?hl=zh-cn#scrollTo=tzXuqyIBlXer
mediapipe
0.10.14
tensorflow
2.10.1
模型下载:
https://storage.googleapis.com/mediapipe-models/face_detector/blaze_face_short_range/float16/1/blaze_face_short_range.tflite
代码:
import numpy as np
import mediapipe as mp
from mediapipe.tasks import python
from mediapipe.tasks.python import vision
from typing