L大,求助下,以下是报错
注册人脸服务 2018-10-26T13:27:35.799877641Z 2018-10-26 13:27:35 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=百度人脸识别, message=人脸数据注册失败>
查询人脸数据服务 2018-10-26T13:25:42.671184596Z Exception in thread Thread-12: 2018-10-26T13:25:42.671439238Z Traceback (most recent call last): 2018-10-26T13:25:42.671539141Z File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner 2018-10-26T13:25:42.671628148Z self.run() 2018-10-26T13:25:42.671704473Z File "/usr/local/lib/python3.6/threading.py", line 864, in run 2018-10-26T13:25:42.671797674Z self._target(*self._args, **self._kwargs) 2018-10-26T13:25:42.671880565Z File "/config/custom_components/image_processing/baidu_face_indentify.py", line 205, in userinfo 2018-10-26T13:25:42.672116729Z if resultjson['result_num'] == 0: 2018-10-26T13:25:42.672258421Z KeyError: 'result_num' 2018-10-26T13:25:42.672367368Z
人脸检测【颜值】服务 2018-10-26T13:21:39.733945529Z 2018-10-26 13:21:39 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]> 2018-10-26T13:21:40.263815183Z Exception in thread Thread-11: 2018-10-26T13:21:40.446182522Z Traceback (most recent call last): 2018-10-26T13:21:40.446446691Z File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner 2018-10-26T13:21:40.446581431Z self.run() 2018-10-26T13:21:40.446660522Z File "/usr/local/lib/python3.6/threading.py", line 864, in run 2018-10-26T13:21:40.446749307Z self._target(*self._args, **self._kwargs) 2018-10-26T13:21:40.446830744Z File "/config/custom_components/image_processing/baidu_face_indentify.py", line 277, in detect 2018-10-26T13:21:40.447038227Z if resultjson['result_num'] == 0: 2018-10-26T13:21:40.447148205Z KeyError: 'result_num' 2018-10-26T13:21:40.447247210Z
|