Replies: 5 comments 4 replies
-
many cameras don't implement enough information to try this, and the ones that do don't actually tell you a preset that it is at so in most cases this would just not work well. |
Beta Was this translation helpful? Give feedback.
-
We answered this recently for a reddit user here: https://www.reddit.com/r/frigate_nvr/comments/1f9rtd9/zones_that_support_ptz/ |
Beta Was this translation helpful? Give feedback.
-
Well, here are two implementations that Frigate could include. One is easy, one is hard...maybe it's hard and very hard as I'm not a programmer. For both implementations, Frigate is the primary source of a PTZ camera state. "Easy" implementation: "Hard" implementation: |
Beta Was this translation helpful? Give feedback.
-
The onvif standard has a Additionally, PTZ stepper motors have varying quality. A 1000 USD PTZ performs better than my 150 USD PTZ, which sometimes just can't put the camera back in the exact location it was in. It's not impossible to write this code, but with varying support for the onvif standard and the varying quality of camera hardware, it would be impossible to support and be reliable for thousands of users. So for all practical intents and purposes, yes, this is impossible, and as of right now, we do not plan to implement it. |
Beta Was this translation helpful? Give feedback.
-
The only thing Frigate needs to know from a PTZ camera is the name of a preset. Anything else is either controlled by Frigate or ignored. All logic would be internal to Frigate. So under suggestion 1, if I moved a PTZ through a 3rd party app then nothing happens (current behavior). Suggestion 2 could work by checking the object recognition tags after Frigate moves the camera. These suggestions don't rely on any information from the camera other than the name of the preset. I've also been graced with a work experience (think live televised enchantments for sports) that has even taught me there is a third way to implement this. However, this falls under an extremely hard implementation. |
Beta Was this translation helpful? Give feedback.
-
Since zones and PTZ camera's aren't fully integrated yet, how about:
Have frigate have a separate set of zones depending on what PTZ preset the camera is in.
For example, if I have a Garage PTZ camera (called Garage_PTZ), and I set up a preset with a view to the left (view_left) and to the right (view_right). In my instance, the left view has a different area of interest due to trees and other things. So to have different zones for different presets, would the following config and supporting code changes work:
Example: (coordinates are randomized )
Garage_PTZ
.
.
zones:
front_walk_zone:
coordinates: 653,141,155,222,180,426,241,720,1122,720,1236,347,1237,0,817,0
preset: left_view
car_approach_zone:
coordinates: 153,41,55,22,180,426,241,720,1122,720,236,347,237,0,817,0
preset: right_view
Beta Was this translation helpful? Give feedback.
All reactions