Coral Edge USB not operating/recognised #657
Replies: 6 comments
-
After posting this, I've switched over to another of my cameras, and that one seems to operate without errors, so I'm hoping that its a problem unique to the rtsp stream from the first camera. The second camera I tried didnt have the frame rate set to the same as the config in Viseron, which lead to some errors and a slow motion recording - syncing the frame rates seems to have fixed both those problems. Still not entirely sure its utilizing the Coral - ffmpeg is sitting at around 20% cpu utilisation both with and without -v /dev/bus/usb:/dev/bus/usb --privileged , but then again, I dont know whether this is symptomatic of a not operating Coral - definitely not an expert here :) |
Beta Was this translation helpful? Give feedback.
-
Your first error is not related to the Coral, your FFmpeg does not use the Coral, it is only the |
Beta Was this translation helpful? Give feedback.
-
Ahhh. Thank you for your assistance! I've made the correction and its stopped the infinite throwing of errors. But it seems to be really insensitive in detecting a person - it will... but only when I'm 2-3 metres away from the camera, if I'm 7-8 metres away it misses me and doesnt trigger a recording. I've tried increasing the sensitivity, but it doesnt seem to solve that problem (and causes others). At the moment for the config below, it triggers a record, but never actually stops recording, even long after I've left the scene [2023-08-09 20:33:33] [INFO ] [viseron.components.nvr.nvr.camera_2] - Stopping recording in: 8 config is... ffmpeg:
darknet:
mog2: nvr: Is there something wrong with this config? the idea is that when the motion detector detects movement, it doesnt turn on recording, but instead the object detector turns on. IF the object detector records a person, then an actual recording is made. At least thats the plan... |
Beta Was this translation helpful? Give feedback.
-
Sorry i have been away on vacation. If you enable debug logging for darknet and mog2 it will be a bit easier to figure out what is going on. You can add debug logging to specific components like this: logger:
logs:
viseron.components.mog2: debug
viseron.components.darknet: debug
viseron.components.nvr: debug |
Beta Was this translation helpful? Give feedback.
-
No rush to reply, I appreciate your help. Here is the log of a couple of attempts - from inspection, it looks as if walking in front of the camera actually causes a termination, then docker restarts the container. No recording is every written to disk... maybe it gets written to memory and then exits before writing out to disk. I'm running the docker container as root, so priviledges shouldnt be a problem. |
Beta Was this translation helpful? Give feedback.
-
I just noticed that you are using the Since the container seems to restart, i am thinking it could be a memory issue. |
Beta Was this translation helpful? Give feedback.
-
So my new Coral Edge USB TPU has arrived, I changed the docker command to add the line -v /dev/bus/usb:/dev/bus/usb --privileged , eagerly hoping that it would be virtually plug and play.
My linux version shown by lsb_release -d gives result Ubuntu 22.04.3 LTS
But Ive got an ugly stream of repeating errors
[2023-08-08 19:08:46] [ERROR ] [viseron.components.ffmpeg.stream.camera_2] - [hevc @ 0x55fbb27a21c0] Could not find ref with POC 20
[2023-08-08 19:08:46] [ERROR ] [viseron.components.ffmpeg.stream.camera_2] - [hevc @ 0x55fbb27a21c0] Failed to end picture decode issue: 23 (internal decoding error).
[2023-08-08 19:08:46] [ERROR ] [viseron.components.ffmpeg.stream.camera_2] - [hevc @ 0x55fbb27a21c0] hardware accelerator failed to decode picture
[2023-08-08 19:08:46] [ERROR ] [viseron.components.ffmpeg.stream.camera_2] - Error while decoding stream #0:0: Input/output error
The first part of my config is as below
ffmpeg:
camera:
camera_2: # This value has to be unique across all cameras
name: Driveway
host: 192.168.1.80
port: 554
path: rtsp://192.168.1.80:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
username: username
password: password
recorder:
retain: 2
Does anyone have any tips about how this might be addressed? Looks like the Coral is not being recognised and/or definitely not working :(
Beta Was this translation helpful? Give feedback.
All reactions