采用OPENCV开启摄像头,定时抓取截图,以BASE64形式向百度AI人脸识别接口发送图片,返还面部识别信息
$ git clone https://github.com/RodgerLai/FaceDetect
$ cd FaceDetect
$ pip3 install opencv-python
$ pip3 install pillow
$ python webcam_cv3
- 待续
- 百度API支持分析七种表情: angry:愤怒 disgust:厌恶 fear:恐惧 happy:高兴 sad:伤心 surprise:惊讶 neutral:无情绪