seydx / homebridge-camera-ui

Homebridge plugin for RTSP Cameras with HSV, motion detection support, Image Rekognition, Web UI to manage/watch streams and WebApp support
MIT License
644 stars 91 forks source link

Add ONVIF support #380

Closed codyc1515 closed 10 months ago

codyc1515 commented 2 years ago

Is your feature request related to a problem? Motion Detection for HKSV on low powered devices, such as Raspberry Pi, can consume 100% (or more) of CPU time.

Describe the solution you'd like Adding ONVIF support would entirely eliminate the need to detect motion by analysing each frame as ONVIF has motion detection support.

Describe alternatives you've considered It is possible to use a lesser quality stream (if available). However this still adds unnecessary overhead (5-10% CPU time for one camera) given that the camera is already doing the processing for motion detection anyway.

Additional context N/A

seydx commented 2 years ago

This is definitely planned. Just need to get a camera with the right ONVIF profile :P

codyc1515 commented 2 years ago

No problem at all. I have a TP-Link C200 which has support and more than happy to help with any prototyping requirements you might have. I would add the support but this is a fairly large programme and I am not familiar enough with it, sorry.

AssetBurned commented 2 years ago

There is a project to convert a Raspberry PI into on https://github.com/BreeeZe/rpos. Not really the best video on how to install it but one could be found here https://www.youtube.com/watch?v=uSIi94PUUDU.

Kai9555 commented 2 years ago

I didn't even dare to ask if ONVIF is planned in the future :) That's definitely a good thing and more reliable than frame-by-frame analysis. I think the TP Link Tapo 100 is very common and popular, as is the Tapo 200.

@seydx: Do you need a camera for implementation? If I can support you, I'll send you a Tapo c100. The Supports ONVIF Profile S.

thebalto2002 commented 2 years ago

Very excited for this feature. I am planning on using BlueIris to detect motion and alert via ONVIF. Please let me know if you want any help with implementation and testing with BlueIris.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

fade2metal commented 2 years ago

Maybe the code of this plugin could help you developing onvif integration for camera ui: https://github.com/koush/scrypted/tree/main/plugins/onvif

I would really like to get this feature because mail motion detection doesn't always work as expected (There is no "no motion" event)

mihailescu2m commented 2 years ago

Maybe this helps: https://github.com/kopiro/homebridge-tapo-camera/pull/12/commits

568 is related to this - I am using onvif2mqtt to publish onvif motion detection to mqtt, then have mqtt motion in camera.ui config. But currently HKSV only works with videoanalysis and ignores mqtt.

seydx commented 2 years ago

Hey thx all, currently working on the next major release with plugin support and much more

Just need a ring camera and a camera with onvif support to write a plugin for these cameras before releasing v6 😜

mihailescu2m commented 2 years ago

Just as a solution until this is implemented: You can use onvif2mqtt to publish motion detection messages from onvif to a mqtt topic, and use that topic in camera.ui. So you don't need video analysis to do motion detection anymore.

Melvin-P-NL commented 2 years ago

ONVIF support would be very welcome. We use the Hikvision DS-2CD2352-I, which supports that. It does not support HTTP Listening, unfortunately.

I’m currently using the video analysis in Camera UI, which works fine but asks a lot of the CPU indeed.

Also installed ‘Hikvision Nvr Events’ in HOOBS, but I don’t get it working.

I think video analyses works best for now, but I would certainly try ONVIF when availavle. Just let me know if I could test something for you.

seydx commented 2 years ago

The next major release is almost done, ring is also implemented, next one would be onvif

Just need a onvif capable camera to implement it 😅

Melvin-P-NL commented 2 years ago

I do have a couple (Hikvision) and can’t wait for ONVIF support. No problem to test for you and we could even work together with screen sharing. Even fine to perform Homebridge/Camera UI reinstalls if needed.

benjaminbogdanovic commented 2 years ago

Just as a solution until this is implemented:

You can use onvif2mqtt to publish motion detection messages from onvif to a mqtt topic, and use that topic in camera.ui. So you don't need video analysis to do motion detection anymore.

How reliable is onvif2mqtt proving to be? Are you running it on via docker or on baremetal?

emerbrito commented 2 years ago

The next major release is almost done, ring is also implemented, next one would be onvif

Just need a onvif capable camera to implement it 😅

Hey, were you able to get your hands on a onvif camera? If not I would be happy to help you get one as a contribution to the project. Lots of cheap/good options on Amazon.

Feel free to reach out and we will figure it out. Also let me know if you need beta testers for Onvif implementation.

codyc1515 commented 10 months ago

Looks like this project is abandoned. Closing.