Skip to content
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

Disable model updating ? #192

Open
chacha21 opened this issue Sep 29, 2020 · 2 comments
Open

Disable model updating ? #192

chacha21 opened this issue Sep 29, 2020 · 2 comments
Assignees

Comments

@chacha21
Copy link

chacha21 commented Sep 29, 2020

I would like to test the BGS library for post-processing some short very static sequences.

When I do that with OpenCV, I usually :
-make a first pass with an auto-learning rate on the sequence (or a set of images matching the learning "time window" of the algorithm)
-then I can pick images randomly in my sequence, and "apply()" the algorithmn with a special value for the learning rate (0) to prevent the bg model from being updated any more. (https://docs.opencv.org/master/d7/df6/classcv_1_1BackgroundSubtractor.html#aa735e76f7069b3fa9c3f32395f9ccd21)
This way, I have reproducible results that do not depend on the order I look at the images.

There seem to be no such "learningRate" abstraction for the BGS library, and I cannot "disable" the BG model updating.

Did I miss something ?

@andrewssobral andrewssobral self-assigned this Jul 24, 2022
@andrewssobral
Copy link
Owner

Hi @chacha21 , sorry for my delayed feedback to you.
Yes, currently the bgslibrary doesn't have this feature, I will work on it.
Thanks,
Andrews

@andrewssobral
Copy link
Owner

@chacha21 , for info, I just released a new version of the BGSLibrary, now v3.1.0.
I tested it on Windows, Mac and Linux, both compiling the C++ library on OpenCV 3.4.7, 3.4.16 and 4.6.0.
I also tested its respective Python wrapper and GT user interface.
Please feel free to get back to me if you have any issues,
Andrews

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants