『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 4257|回复: 4

[求助] 配置Dlib+安卓手机IPcam,HA连接中断

[复制链接]

3

主题

45

帖子

273

积分

论坛分享达人

积分
273
金钱
228
HASS币
0
发表于 2018-11-30 15:25:09 | 显示全部楼层 |阅读模式
在HA中配置了Dlib和安卓手机IPcam,两个一起用的时候HA一直报连接中断,有大神知道原因吗?如果手机端不开启IPcam APP,HA不会断开连接;
如果把image_processing注释掉,使用IPcam的时候HA也不会断开连接,HA上的图像显示正常;
两个一起用的时候,只要手机打开APP,HA就断开连接,然后尝试连接,连上后马上又断开,一直循环

1111.png
222222.png

另外,配置dlib_face_identify的时候,会出现下面这种报错,这个又是为什么?
33333.png
44444.png

回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2018-12-1 08:24:39 | 显示全部楼层
1、断开连接看日志。

2、如果你不是 hassio ,请自行解决 dlib的运行环境问题。

http://dlib.net/
https://bbs.hassbian.com/thread-1604-1-1.html
Nero
回复

使用道具 举报

3

主题

45

帖子

273

积分

论坛分享达人

积分
273
金钱
228
HASS币
0
 楼主| 发表于 2018-12-5 09:56:52 | 显示全部楼层
neroxps 发表于 2018-12-1 08:24
1、断开连接看日志。

2、如果你不是 hassio ,请自行解决 dlib的运行环境问题。

断开时候的log如下:
2018-12-05 01:53:57 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=95 from 2018-12-05 01:53:11.059957)
2018-12-05 01:53:58 WARNING (MainThread) [homeassistant.loader] You are using a custom component for switch.pptv which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-12-05 01:53:58 WARNING (MainThread) [homeassistant.loader] You are using a custom component for image_processing.dlib_face_detect which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-12-05 01:54:00 ERROR (MainThread) [pydroid_ipcam] Failed to communicate with IP Webcam: Cannot connect to host 192.168.1.108:8080 ssl:None [Connection refused]
2018-12-05 01:54:00 ERROR (MainThread) [homeassistant.components.device_tracker] Unable to load /config/known_devices.yaml: Config file not found: /config/known_devices.yaml
2018-12-05 01:54:00 ERROR (SyncWorker_0) [homeassistant.components.notify.ios] The notify.ios platform was loaded but no devices exist! Please check the documentation at https://home-assistant.io/ecosystem/ios/notifications/ for more information
2018-12-05 01:54:05 ERROR (SyncWorker_2) [homeassistant.components.light.yeelight] Failed to connect to bulb 192.168.1.106, Desk Light: Bulb closed the connection.
2018-12-05 01:54:07 ERROR (MainThread) [homeassistant.components.camera.mjpeg] Error getting new camera image: Cannot connect to host 192.168.1.108:8080 ssl:None [Connection refused]
2018-12-05 01:54:07 ERROR (MainThread) [homeassistant.components.camera.mjpeg] Error getting new camera image: Cannot connect to host 192.168.1.108:8080 ssl:None [Connection refused]
2018-12-05 01:54:11 ERROR (MainThread) [pydroid_ipcam] Failed to communicate with IP Webcam: Cannot connect to host 192.168.1.108:8080 ssl:None [Connection refused]
2018-12-05 01:54:11 ERROR (MainThread) [homeassistant.components.camera.mjpeg] Error getting new camera image: Cannot connect to host 192.168.1.108:8080 ssl:None [Connection refused]
2018-12-05 01:54:11 ERROR (MainThread) [homeassistant.components.image_processing] Error on receive image from entity: Unable to get image


另外我用的是hassio,在hassio下dlib有问题吗?
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2018-12-5 15:43:22 | 显示全部楼层
qqq34242615 发表于 2018-12-5 09:56
断开时候的log如下:
2018-12-05 01:53:57 WARNING (Recorder) [homeassistant.components.recorder] End ...

Error getting new camera image: Cannot connect to host 192.168.1.108:8080 ssl:None

你的摄像头拒绝你的连接。
Nero
回复

使用道具 举报

3

主题

45

帖子

273

积分

论坛分享达人

积分
273
金钱
228
HASS币
0
 楼主| 发表于 2018-12-5 16:42:33 | 显示全部楼层
本帖最后由 qqq34242615 于 2018-12-5 16:45 编辑
neroxps 发表于 2018-12-5 15:43
Error getting new camera image: Cannot connect to host 192.168.1.108:8080 ssl:None

你的摄像头拒 ...

但是如果不配置dlib,打开摄像头没问题,连接很正常;配置了dlib一开启摄像头HA就断开连接,就出现报错,这是为什么?
用OpenCV也没问题

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 03:46 , Processed in 0.279795 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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