roflcoopter / viseron

Self-hosted, local only NVR and AI Computer Vision software. With features such as object detection, motion detection, face recognition and more, it gives you the power to keep an eye on your home, office or any other place you want to monitor.
MIT License
1.5k stars 154 forks source link

Add camera for image feed #735

Open BliXem1 opened 2 months ago

BliXem1 commented 2 months ago

Hi,

Can you add a image feed within Home assistant? So every second the frame will be loaded? I don't have to have a live feed.

roflcoopter commented 2 months ago

I removed it earlier for some technical reasons, will look into adding it back.

In the meantime you can setup a generic mjpeg camera that points to the same url as the live view in the UI

BliXem1 commented 2 months ago

Hi,

Yes, I already did that, the problem I have is that the streams froze after 20-40 seconds. In my case if I see the stream via UI of HA and I go to another tab and get back after 1 min the feed is frozen. If I refresh it's working again but after 20-40 sec again frozen.

BliXem1 commented 2 months ago

Did you have that too?

roflcoopter commented 2 months ago

Hmm no i have not experienced that but i havent tested in a while. Will look at that when i get around to get the cameras back in Home Assistant

BliXem1 commented 2 months ago

Would be great. Let me know when it's added. I think this is then a restream feature right? With Frigate its all working perfect but I like your software more and less CPU load :)

roflcoopter commented 1 month ago

Re-streaming is another beast i believe. To send images to Home Assistant i will simply send the frames that are being read by Viseron.

Re-streaming is hard to expose to Home Assistant without a custom component that Viseron sadly doesnt have atm. I do plan on implementing re-streaming and improved live streaming soon tho

BliXem1 commented 1 month ago

Alright, keep me posted. Thanks for your work!