界面没有出现人脸检测,摄像头能正常显示
然后通用中检查配置出现图片提示
文件路径:/usr/share/hassio/homeassistant/custom_components/baidu_face/sensor.py
config配置内容如下:
sensor:
# Weather prediction
- platform: yr
#百度人脸识别
- platform: baidu_face
api_key: "MNVag5cbzWb"
secret_key: "TLWAhRgVHohuGcBL8"
group_list: "['test1', 'zpin']"
camera_entity_id: "camera.faceRec"
token: "eyJ0eXAiOiJKV1QNiJ9.eyJpc3MiOiJhY2QxNTIwYmMwYmQ0OWMwYjllNTc0NTYzMzI0ZDcwYSIsImlhdCI6MTU1ODI0NjkzOCwiZXhwIjoxODczNjA2OTM4fQ.O7Z8tPg1HtfF-1JKVwMKpiocQJRQrolu4WcEuoggXn8"
# liveness: "NORMAL"
# name: "ren lian shi bie"
# port: 8123
# pic_url: "网络、本地图片地址"
scan_interval: 2
#----摄像头配置----
camera:
- platform: ffmpeg
input: -rtsp_transport tcp -i [url]rtsp://admin:[email protected]/Streaming/Channels/1[/url]
ffmpeg_bin: /usr/bin/avconv
extra_arguments: -pred 1 -q:v 2 -s 720x480
name: faceRec
|