bgslibrary icon indicating copy to clipboard operation
bgslibrary copied to clipboard

How to get long term and short term background model

Open AOOOOOA opened this issue 4 years ago • 4 comments

Hi: I'm using the python wrapper of bgslibrary on Ubuntu 18.04 now. In demo2.py, the bgmodel is generated by algorithm.getBackgroundModel(). However, I want to get a short term and a long term background model now. Which is similar to the opencv function shown in img 2. In opencv, I can set different learning rate. Does there any parameter in bgslibrary python that I can change? Thank you so much!

Screenshot from 2020-05-19 15-47-33

Screenshot from 2020-05-19 15-50-33

AOOOOOA avatar May 19 '20 07:05 AOOOOOA

After I read the source code, I find out that u set the learning rate in .h file and users cannot set it as a parameter. Do i have other method to set it?

AOOOOOA avatar Jul 07 '20 06:07 AOOOOOA

Hi @AOOOOOA , I am sorry for my delayed feedback to you, I'm currently very busy at work. Thank you for opening this issue. Yes, unfortunately there's no a python function to update the parameters. This is in my TODO list, I hope to have time to work on it this summer, and I let you updated when it's done. Thanks, Andrews

andrewssobral avatar Jul 07 '20 11:07 andrewssobral

Thank you. Wish you have a good day!

AOOOOOA avatar Jul 08 '20 01:07 AOOOOOA

阅读源代码后,我发现您在.h文件中设置了学习率,用户无法将其设置为参数。我还有其他设置方法吗? Hello! I want to know how to adjust the learning rate? Can you be specific? thank you!

momo-github-1984 avatar Jan 31 '21 09:01 momo-github-1984