找回密码
 立即注册
搜索
楼主: lidicn

[插件集成] 百度人脸识别【更新V126】【适配HA0.73】

 火... [复制链接]

3

主题

155

回帖

679

积分

高级会员

积分
679
金钱
521
HASS币
10
发表于 2018-11-7 02:48:09 | 显示全部楼层
enterTang96 发表于 2018-11-3 13:42
更新0.81提示未识别到人脸的解决办法:设置HA登录方式为Legacy API Password

您好,想请教一下按照出现这个错误是怎么回事?
2018-11-06 18:46:03 WARNING (MainThread) [custom_components.image_processing] Updating baidu_face_indentify image_processing took longer than the scheduled update interval 0:00:01
2018-11-06 18:46:03 ERROR (Thread-7) [custom_components.image_processing.baidu_face_indentify] 百度人脸识别连接错误
2018-11-06 18:46:03 ERROR (MainThread) [homeassistant.helpers.entity] Update for image_processing.facerec fails
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
    await self.async_device_update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 347, in async_device_update
    await self.async_update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/image_processing/__init__.py", line 134, in async_update
    await self.async_process_image(image.content)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/.homeassistant/custom_components/image_processing/baidu_face_indentify.py", line 455, in process_image
    result = json.loads(r.text)
UnboundLocalError: local variable 'r' referenced before assignment
回复

使用道具 举报

9

主题

257

回帖

1340

积分

金牌会员

积分
1340
金钱
1074
HASS币
0
发表于 2018-11-9 23:54:50 | 显示全部楼层
学习学习
回复

使用道具 举报

0

主题

73

回帖

393

积分

中级会员

积分
393
金钱
320
HASS币
0
发表于 2018-11-10 22:24:54 | 显示全部楼层
sadcscscsxscsxcscscsa
回复

使用道具 举报

5

主题

133

回帖

2007

积分

金牌会员

积分
2007
金钱
1869
HASS币
0
发表于 2018-11-11 21:03:58 | 显示全部楼层
感谢大神!!!!
回复

使用道具 举报

1

主题

43

回帖

167

积分

注册会员

积分
167
金钱
123
HASS币
0
发表于 2018-11-11 23:07:17 来自手机 | 显示全部楼层
学习一下
回复

使用道具 举报

1

主题

26

回帖

202

积分

论坛分享达人

积分
202
金钱
175
HASS币
0
发表于 2018-11-12 11:31:49 | 显示全部楼层
感谢分享
回复

使用道具 举报

2

主题

204

回帖

855

积分

论坛积极会员

积分
855
金钱
649
HASS币
0
发表于 2018-11-14 21:55:37 | 显示全部楼层
厉害,谢谢分享!
回复

使用道具 举报

4

主题

211

回帖

493

积分

中级会员

积分
493
金钱
278
HASS币
0
发表于 2018-11-19 20:18:03 | 显示全部楼层
xbox3600 发表于 2018-11-2 09:09
請問您的人臉辨識是使用(ip camera 還是 usb camera) 可否分享一下型號  謝謝

我的是usb camera,但是上传总是失败,路径把我都弄糊涂了,总是提示上传路径失败
回复

使用道具 举报

7

主题

284

回帖

1041

积分

金牌会员

积分
1041
金钱
749
HASS币
0
发表于 2018-11-20 01:02:32 来自手机 | 显示全部楼层
谢谢大佬
回复

使用道具 举报

8

主题

732

回帖

4772

积分

论坛元老

积分
4772
金钱
4027
HASS币
40
QQ
发表于 2018-11-20 14:43:28 | 显示全部楼层
感谢分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-6-23 09:48 , Processed in 0.250590 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表