-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Object Tracking #39
Comments
Hmm seems like this should be an option directly in BI... but according to blueiris.pdf, it maybe can be done externally? "/admin?camera=x&ptz=n PTZ command n on camera x (short name). n=0,1... for |
Just below that is also:
It would be nice if there was an option to specify the step size but I guess you're left to the camera default. Which isn't horrible. |
Sorry for the suggestion of this feature creep, but this would be a killer app for extremely cheap PTZ cameras like the Amcrest ProHD. |
I'm seriously considering renaming my username to 'FeatureCreep' :) So how would this work? Lets say a detection was at lower left of camera. How do I know how many downs and lefts to take to make the detection in the center? And how to revert back to original location? |
Well, returning to the original location is easy. If the object is no longer detected or hasn't moved in X number of snapshots, return to home position: For tracking I'd recommend percentage. Calculate the objects 2D percentage from center. Always start with (in your example) one down and one left if it's outside the defined center deadzone. (analyze another snapshot). Then recalculate the percentage from center and compare it to the original percentage from center. Then apply an approximated number of movements as a function of the percentage delta (using a minimum of 0 and a maximum of (user defined). i.e. Object was originally 20%down & 10%left. Now is 10%down and 0%left so apply 1 Down and 0 Left movements. If you have to switch direction (object was left of center. is now right of center((&outside of dead zone)), revert back to 1 movement. It sounds so easy it's basically writing its-self! 😅 |
Change mask removal to be time based
I think that with the dynamic mask stuff you guys are working on, it would also be possible to use that same information to enable smart object tracking with a PTZ camera. Exciting Stuff!
The text was updated successfully, but these errors were encountered: