snowzach / hassio-addons Goto Github PK
View Code? Open in Web Editor NEWHass.IO Repository for snowzach's add-ons.
License: MIT License
Hass.IO Repository for snowzach's add-ons.
License: MIT License
Dear Zach,
I am begging you to teach me where i should put a custom model files (tflite & txt). I can not find folder 'models' in my HaOS((
I tried to put them in "share" folder and write new path in configuration but no luck.
2023-09-17 20:50:23,204 - doods.doods - ERROR - Could not create detector tflite/default: Could not open 'share/coco_ssd_mobilenet_v1_1.0_quant.tflite'.
First of all, thanks your work: this addon that can really help in integrating computer vision with home automation.
I'm using DOODS as addon in hassio with mobilenetSSDv2 models derived from google examples.
I am facing some problem (with edgetpu quantized models and also tflite models) with my PCB that has installed a coral pcie, because it is not recognized while a coral usb.
The log reports:
2021-12-16T22:04:01.771Z ERROR detector/detector.go:74 Could not initialize detector default: could not initialize edgetpu /dev/apex_0 {"package": "detector"}
2021-12-16T22:04:01.771Z FATAL detector/detector.go:84 No detectors configured {"package": "detector"}
I wonder if there is some setting I can use for allowing the container to see the device. I've also tested the models with a coral USB and it works (very fast actually with the edgetpu model), even if it is necessary (very often) to restart the container (but I pretend to be able to manage it..)
Thanks for you help !
The project is sooo awesome it deserves a cool icon
plz add one 💯 🥇
:D
Love the addon :)
After rebooting Hassio Doods needs to be started manually. Here is the log:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x14 pc=0x5eaa00]
goroutine 1 [running]:
github.com/snowzach/doods/detector/tflite.(*InterpreterOptions).AddDelegate.func1(0x3410968, 0x0, 0x0)
/build/detector/tflite/tflite.go:82 +0x14
github.com/snowzach/doods/detector/tflite.(*InterpreterOptions).AddDelegate(0x3410968, 0x0, 0x0)
/build/detector/tflite/tflite.go:82 +0x2c
github.com/snowzach/doods/detector/tflite.New(0x356c660, 0x0, 0x0, 0x0)
/build/detector/tflite/detector.go:102 +0x77c
github.com/snowzach/doods/detector.New(0x2)
/build/detector/detector.go:62 +0x67c
github.com/snowzach/doods/cmd.glob..func1(0xca7f20, 0x3570100, 0x0, 0x2)
/build/cmd/api.go:25 +0x14
github.com/spf13/cobra.(*Command).execute(0xca7f20, 0x35700f0, 0x2, 0x2, 0xca7f20, 0x35700f0)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:830 +0x1f4
github.com/spf13/cobra.(*Command).ExecuteC(0xca8060, 0x1, 0x1a52c, 0x345e070)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:914 +0x230
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:864
github.com/snowzach/doods/cmd.Execute()
/build/cmd/root.go:57 +0x20
main.main()
/build/main.go:8 +0x14
Hello,
I'm getting the above error message when I tried to install this software. Here are my steps:
FYI, here are my setup:
Is there an available documentation that could help me to resolve this issue? Thank you in advance.
-- | --
Hello, I very often have the problem of the memory allocated to Doods, which rises to more than 30%, and my Raspberry 4 4GB does not like this with a used memory of almost 80% because of Doods.
Some days, the memory used by Doods does not exceed 10% but this is rare.
I don't know where to look to resolve this issue.
If I restart the addon, it's better for a few minutes, but usually I have to restart Home Assistant to resolve this.
As of today, restarting HA does not resolve the problem.
Do you have an idea ? THANKS
Hi there,
Unfortunately, I'm completely new to the Home Assistant. I now wanted to install doods via Hass.io and cannot use this because port 8080 is already being used by facebox. Can I move the port to 8181?
Unfortunately I don't know what the name of the config file should be and whether it should be in "/ home-assistant / share"?
After updating the HA Supervisor (from 2021.01.7 to 2021.02.5), I get the following warnings in the supervisor logging.
Can you please have a look at this?
(hope to have reported this in the correct repository)
WARNING (MainThread) [supervisor.addons.validate] Add-on config 'startup' with 'before' is deprecated. Please report this to the maintainer of DOODS-amd64
WARNING (MainThread) [supervisor.addons.validate] Add-on config 'devices' use a deprecated format, the new format uses a list of paths only. Please report this to the maintainer of DOODS-amd64
WARNING (MainThread) [supervisor.addons.validate] Add-on config 'startup' with 'before' is deprecated. Please report this to the maintainer of DOODS-cuda
WARNING (MainThread) [supervisor.addons.validate] Add-on config 'devices' use a deprecated format, the new format uses a list of paths only. Please report this to the maintainer of DOODS-cuda
WARNING (MainThread) [supervisor.addons.validate] Add-on config 'startup' with 'before' is deprecated. Please report this to the maintainer of DOODS
WARNING (MainThread) [supervisor.addons.validate] Add-on config 'devices' use a deprecated format, the new format uses a list of paths only. Please report this to the maintainer of DOODS
Just like the title says, if possible, it will be a lot easier to backup when migrating !
Hi,
FYI - For whatever reason - Hass.io now needs .yaml
file - not .json
.
https://developers.home-assistant.io/docs/add-ons/repository/
I had to fork this rep and change the json file to yaml, and now I can add it to my Home Assistant.
Maybe just run both json+yaml as people change version?
You should be able to set the config in there with
{
"server": {
"port": "8080"
},
......
I don't use hassio a bunch but that should get it.
I tried to do this but the server does not start, I have no errors in the logs. But when I do a port scan nothing is running on the port I specified (e.g. 8081).
How can I go forward? Any suggestions?
Originally posted by @snowzach in #6 (comment)
I tried to link models in /share/doods folder following the example:
"name": "tensorflow",
"type": "tensorflow",
"modelFile": "/share/doods/faster_rcnn_inception_v2_coco_2018_01_28.pb",
"labelFile": "/share/doods/coco_labels1.txt",
"hwAccel": false
but when i access the ui interface at doods port 8080, it is not recognized
Hi @snowzach , i'v got a question for you...
i'm working on a RTSP client for android, taking an RTSP stream from my synology, but i always get "404 stream not found" , below is a debug
The url i used was like :
rtsp://xxx.yyy@IP:554/Sms=24.unicast
If i then use your addon and i proxy the url , so it becomes like:
rtsp://xxx:yyy@IP:5554/Synology
Then using that new url above coming from your addon, the stream works, i'm trying to understand the difference?
First log = error 404, stream directly from synology
Second log = OK , stream taken from your proxy , but same source
2022-11-17 10:53:10.377 8756-8756/com.alexvas.rtsp.demo V/LiveFragment: onResume()
2022-11-17 10:53:10.377 8756-8756/com.alexvas.rtsp.demo V/LiveViewModel: loadParams()
2022-11-17 10:53:10.465 8756-8779/com.alexvas.rtsp.demo D/DecorView: onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@2ab9e98[MainActivity]
2022-11-17 10:53:12.117 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: OPTIONS rtsp://xxx:554/Sms=24.unicast RTSP/1.0
2022-11-17 10:53:12.117 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: CSeq: 1
2022-11-17 10:53:12.117 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG:
2022-11-17 10:53:12.183 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: 200 OK
2022-11-17 10:53:12.183 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Status code: 200
2022-11-17 10:53:12.184 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: CSeq: 1
2022-11-17 10:53:12.186 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Date: Thu, Nov 17 2022 09:53:13 GMT
2022-11-17 10:53:12.190 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
2022-11-17 10:53:12.191 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: DESCRIBE rtsp://xxx:554/Sms=24.unicast RTSP/1.0
2022-11-17 10:53:12.191 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: Accept: application/sdp
2022-11-17 10:53:12.191 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: CSeq: 2
2022-11-17 10:53:12.191 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG:
2022-11-17 10:53:12.234 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: 401 Unauthorized
2022-11-17 10:53:12.234 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Status code: 401
2022-11-17 10:53:12.235 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: CSeq: 2
2022-11-17 10:53:12.236 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Date: Thu, Nov 17 2022 09:53:13 GMT
2022-11-17 10:53:12.238 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: WWW-Authenticate: Digest realm="LIVE555 Streaming Media", nonce="72b15d45870dbf0423832c0adf8f5bda"
2022-11-17 10:53:12.248 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: DESCRIBE rtsp://xxx:554/Sms=24.unicast RTSP/1.0
2022-11-17 10:53:12.249 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: Accept: application/sdp
2022-11-17 10:53:12.249 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: Authorization: Digest username="syno", realm="LIVE555 Streaming Media", nonce="72b15d45870dbf0423832c0adf8f5bda", uri="rtsp://xxx:554/Sms=24.unicast", response="9c4e5e25c60a9b4421c46920074ab554"
2022-11-17 10:53:12.249 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: CSeq: 3
2022-11-17 10:53:12.249 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG:
2022-11-17 10:53:12.304 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: 200 OK
2022-11-17 10:53:12.304 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Status code: 200
2022-11-17 10:53:12.305 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: CSeq: 3
2022-11-17 10:53:12.306 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Date: Thu, Nov 17 2022 09:53:13 GMT
2022-11-17 10:53:12.307 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Content-Base: rtsp://192.168.0.14/devType=1&devId=24/1,24_medium.unicast/
2022-11-17 10:53:12.308 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Content-Type: application/sdp
2022-11-17 10:53:12.308 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Content-Length: 486
2022-11-17 10:53:12.309 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: v=0
o=- 1665059400530465 1 IN IP4 192.168.0.14
s=Session streamed by "ssrtspd"
i=1,24_medium.unicast
t=0 0
a=tool:LIVE555 Streaming Media v2015.05.03
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "ssrtspd"
a=x-qt-text-inf:1,24_medium.unicast
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001E;sprop-parameter-sets=Z0IAHpY1QWB7TcBAQECA,aM48gA==
a=control:track1
2022-11-17 10:53:12.310 8756-9296/com.alexvas.rtsp.demo I/RtspClient: Video: H264
2022-11-17 10:53:12.328 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: SETUP rtsp://xxx:554/Sms=24.unicast/track1 RTSP/1.0
2022-11-17 10:53:12.328 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: Transport: RTP/AVP/TCP;unicast;interleaved=0-1
2022-11-17 10:53:12.328 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: Authorization: Digest username="syno", realm="LIVE555 Streaming Media", nonce="72b15d45870dbf0423832c0adf8f5bda", uri="rtsp://xxx:554/Sms=24.unicast/track1", response="344a3ecee92a597167b5068d557cc7b3"
2022-11-17 10:53:12.328 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: CSeq: 4
2022-11-17 10:53:12.328 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG:
2022-11-17 10:53:12.372 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: 200 OK
2022-11-17 10:53:12.372 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Status code: 200
2022-11-17 10:53:12.372 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: CSeq: 4
2022-11-17 10:53:12.372 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Date: Thu, Nov 17 2022 09:53:13 GMT
2022-11-17 10:53:12.373 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Transport: RTP/AVP/TCP;unicast;destination=xx.xxx.xx.xxx;source=192.168.0.14;interleaved=0-1
2022-11-17 10:53:12.373 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Session: 6BE8A4EE
2022-11-17 10:53:12.378 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: PLAY rtsp://xxx:554/Sms=24.unicast RTSP/1.0
2022-11-17 10:53:12.378 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: Range: npt=0.000-
2022-11-17 10:53:12.378 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: Authorization: Digest username="syno", realm="LIVE555 Streaming Media", nonce="72b15d45870dbf0423832c0adf8f5bda", uri="rtsp://xxx:554/Sms=24.unicast", response="a7c0b3af848507dd09d561a47bf20453"
2022-11-17 10:53:12.378 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: CSeq: 5
2022-11-17 10:53:12.378 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG: Session: 6BE8A4EE
2022-11-17 10:53:12.378 8756-9296/com.alexvas.rtsp.demo I/RtspClient DBG:
2022-11-17 10:53:12.412 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: 404 Stream Not Found
2022-11-17 10:53:12.413 8756-9296/com.alexvas.rtsp.demo D/RtspClient DBG: Status code: 404
2022-11-17 10:53:12.413 8756-9296/com.alexvas.rtsp.demo W/System.err: java.io.IOException: Invalid status code 404
2022-11-17 10:53:12.413 8756-9296/com.alexvas.rtsp.demo W/System.err: at com.alexvas.rtsp.RtspClient.checkStatusCode(RtspClient.java:570)
2022-11-17 10:53:12.413 8756-9296/com.alexvas.rtsp.demo W/System.err: at com.alexvas.rtsp.RtspClient.execute(RtspClient.java:463)
2022-11-17 10:53:12.413 8756-9296/com.alexvas.rtsp.demo W/System.err: at com.alexvas.rtsp.widget.RtspSurfaceView$RtspThread.run(RtspSurfaceView.kt:228)
2022-11-17 10:53:12.495 8756-8756/com.alexvas.rtsp.demo V/ViewRootImpl: The specified message queue synchronization barrier token has not been posted or has already been removed
2022-11-17 10:53:12.517 8756-8756/com.alexvas.rtsp.demo W/Choreographer: Already have a pending vsync event. There should only be one at a time.
2022-11-17 14:36:51.116 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: OPTIONS from rtsp://192.168.0.17:5554/Synology RTSP/1.0
2022-11-17 14:36:51.116 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: CSeq: 1
2022-11-17 14:36:51.116 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG:
2022-11-17 14:36:51.143 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: 200 OK
2022-11-17 14:36:51.143 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Status code: 200
2022-11-17 14:36:51.144 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: CSeq: 1
2022-11-17 14:36:51.145 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Date: Thu, Nov 17 2022 13:36:52 GMT
2022-11-17 14:36:51.149 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
2022-11-17 14:36:51.150 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: DESCRIBE from rtsp://192.168.0.17:5554/Synology RTSP/1.0
2022-11-17 14:36:51.151 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: Accept: application/sdp
2022-11-17 14:36:51.151 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: CSeq: 2
2022-11-17 14:36:51.151 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG:
2022-11-17 14:36:51.173 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: 401 Unauthorized
2022-11-17 14:36:51.173 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Status code: 401
2022-11-17 14:36:51.173 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: CSeq: 2
2022-11-17 14:36:51.173 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Date: Thu, Nov 17 2022 13:36:52 GMT
2022-11-17 14:36:51.174 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: WWW-Authenticate: Digest realm="LIVE555 Streaming Media", nonce="a36e29ecb9ce7d2f0170ba22756ac8e2"
2022-11-17 14:36:51.181 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: DESCRIBE from rtsp://192.168.0.17:5554/Synology RTSP/1.0
2022-11-17 14:36:51.181 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: Accept: application/sdp
2022-11-17 14:36:51.181 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: Authorization: Digest username="username", realm="LIVE555 Streaming Media", nonce="a36e29ecb9ce7d2f0170ba22756ac8e2", uri="from rtsp://192.168.0.17:5554/Synology", response="d6eb784d2a1b406250d033837b4d7e2b"
2022-11-17 14:36:51.181 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: CSeq: 3
2022-11-17 14:36:51.181 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG:
2022-11-17 14:36:51.204 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: 200 OK
2022-11-17 14:36:51.204 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Status code: 200
2022-11-17 14:36:51.205 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: CSeq: 3
2022-11-17 14:36:51.207 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Date: Thu, Nov 17 2022 13:36:52 GMT
2022-11-17 14:36:51.209 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Content-Base: rtsp://172.30.33.3:5554/Synology/
2022-11-17 14:36:51.211 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Content-Type: application/sdp
2022-11-17 14:36:51.212 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Content-Length: 619
2022-11-17 14:36:51.213 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: v=0
o=- 1668692047528439 1 IN IP4 172.30.33.3
s=LIVE555 Streaming Media v2020.03.06
i=LIVE555 Streaming Media v2020.03.06
t=0 0
a=tool:LIVE555 Streaming Media v2020.03.06
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:LIVE555 Streaming Media v2020.03.06
a=x-qt-text-inf:LIVE555 Streaming Media v2020.03.06
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001E;sprop-parameter-sets=Z0IAHpY1QWB7TcBAQECA,aM48gA==
a=control:track1
m=audio 0 RTP/AVP 97
c=IN IP4 0.0.0.0
b=AS:64
a=rtpmap:97 PCMU/8000
a=control:track2
2022-11-17 14:36:51.215 2295-2554/com.alexvas.rtsp.demo I/RtspClient: Video: H264
2022-11-17 14:36:51.216 2295-2554/com.alexvas.rtsp.demo W/RtspClient: Unknown audio codec "PCMU"
2022-11-17 14:36:51.216 2295-2554/com.alexvas.rtsp.demo I/RtspClient: Audio: n/a, sample rate: 8000 Hz, channels: 1
2022-11-17 14:36:51.232 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: SETUP from rtsp://192.168.0.17:5554/Synology/track1 RTSP/1.0
2022-11-17 14:36:51.232 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: Transport: RTP/AVP/TCP;unicast;interleaved=0-1
2022-11-17 14:36:51.233 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: Authorization: Digest username="username", realm="LIVE555 Streaming Media", nonce="a36e29ecb9ce7d2f0170ba22756ac8e2", uri="from rtsp://192.168.0.17:5554/Synology/track1", response="f1aff749d8bafda1634c5cdf48ab008c"
2022-11-17 14:36:51.233 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: CSeq: 4
2022-11-17 14:36:51.233 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG:
2022-11-17 14:36:51.255 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: 200 OK
2022-11-17 14:36:51.255 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Status code: 200
2022-11-17 14:36:51.256 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: CSeq: 4
2022-11-17 14:36:51.256 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Date: Thu, Nov 17 2022 13:36:52 GMT
2022-11-17 14:36:51.258 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Transport: RTP/AVP/TCP;unicast;destination=10.8.0.3;source=172.30.33.3;interleaved=0-1
2022-11-17 14:36:51.258 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Session: B888637B;timeout=65
2022-11-17 14:36:51.268 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: PLAY from rtsp://192.168.0.17:5554/Synology RTSP/1.0
2022-11-17 14:36:51.268 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: Range: npt=0.000-
2022-11-17 14:36:51.268 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: Authorization: Digest username="username", realm="LIVE555 Streaming Media", nonce="a36e29ecb9ce7d2f0170ba22756ac8e2", uri="from rtsp://192.168.0.17:5554/Synology", response="48e3de1db499e23c07e64c5a7f72eb35"
2022-11-17 14:36:51.268 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: CSeq: 5
2022-11-17 14:36:51.268 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG: Session: B888637B
2022-11-17 14:36:51.268 2295-2554/com.alexvas.rtsp.demo I/RtspClient DBG:
2022-11-17 14:36:51.294 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: 200 OK
2022-11-17 14:36:51.294 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Status code: 200
2022-11-17 14:36:51.294 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: CSeq: 5
2022-11-17 14:36:51.294 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Date: Thu, Nov 17 2022 13:36:52 GMT
2022-11-17 14:36:51.295 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Range: npt=0.000-
2022-11-17 14:36:51.295 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: Session: B888637B
2022-11-17 14:36:51.297 2295-2554/com.alexvas.rtsp.demo D/RtspClient DBG: RTP-Info: url=rtsp://172.30.33.3:5554/Synology/track1;seq=24197;rtptime=3886467331,url=rtsp://172.30.33.3:5554/Synology/track2;seq=0;rtptime=0
2022-11-17 14:36:51.297 2295-2554/com.alexvas.rtsp.demo I/RtspSurfaceView: Starting video decoder with mime type "video/avc"
thanks for creating this addon,however it seems to not provide a way to pass the device to the doods instance for Coral EdgeTPU
Hey there! I recently tried converting yolov5m to a tflite model and loading it in my RPi4, however I get the below exception when I try to run detection
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/base.py", line 30, in coro
await self.app(scope, request.receive, send_stream.send)
File "/usr/local/lib/python3.8/dist-packages/starlette/exceptions.py", line 82, in __call__
raise exc
File "/usr/local/lib/python3.8/dist-packages/starlette/exceptions.py", line 71, in __call__
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 656, in __call__
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 259, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 61, in app
response = await func(request)
File "/usr/local/lib/python3.8/dist-packages/fastapi/routing.py", line 226, in app
raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.8/dist-packages/fastapi/routing.py", line 159, in run_endpoint_function
return await dependant.call(**values)
File "/opt/doods/api.py", line 47, in detect
detect_response = self.doods.detect(detect_request)
File "/opt/doods/doods.py", line 137, in detect
ret = detector.detect(image)
File "/opt/doods/detectors/tflite.py", line 78, in detect
input_data = (np.float32(self.input_data) - input_mean) / input_std
AttributeError: 'TensorflowLite' object has no attribute 'input_data'
The steps to convert the model are documented here: ultralytics/yolov5#251
Any ideas are much appreciated :)
I can't seem to figure out how to enable the /bus/usb forwarding to the DOODS container via hassio. From what I understand, I'd have to edit the Dockerfile for DOODS, but how do I do that in a "legal", reboot-safe and halfway portable way? Sorry if this is an extremely stupid question, but I'm really kinda stumped and I just want detection with Coral :)
Hi,
I get this error in the logs when I try to start the addon:
[FATAL tini (7)] exec /opt/doods/doods failed: Exec format error
Version installed on Raspberry Pi 4 running Home Assistant OS v2022.2.9:
DOODS-amd64
Current version: 2 (Changelog)
Any help is appreciated.
First of all, thanks for sharing your work. I am having this error message in home assistant:
Logger: homeassistant.components.image_processing
Source: components/doods/image_processing.py:83
Integration: Processamento de imagem (documentation, issues)
First occurred: 9:30:16 (1 occurrences)
Last logged: 9:30:16
Error while setting up doods platform for image_processing
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.7/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/local/lib/python3.7/http/client.py", line 966, in send
self.connect()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x6d401f10>: Failed to establish a new connection: [Errno 110] Operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.0.6', port=8080): Max retries exceeded with url: /detectors (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x6d401f10>: Failed to establish a new connection: [Errno 110] Operation timed out'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/doods/image_processing.py", line 83, in setup_platform
doods = PyDOODS(url, auth_key, timeout)
File "/usr/local/lib/python3.7/site-packages/pydoods/init.py", line 13, in init
self.get_detectors()
File "/usr/local/lib/python3.7/site-packages/pydoods/init.py", line 20, in get_detectors
response = requests.get(self.url + "/detectors", **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.0.6', port=8080): Max retries exceeded with url: /detectors (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x6d401f10>: Failed to establish a new connection: [Errno 110] Operation timed out'))
This is my HA config:
camera:
image_processing:
I rebooted many times but no luck.
Running it on a docker container in a W10 notebook.
Have any idea what could that be?
Cheers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.