bgslibrary
bgslibrary copied to clipboard
How to get long term and short term background model
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!
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?
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
Thank you. Wish you have a good day!
阅读源代码后,我发现您在.h文件中设置了学习率,用户无法将其设置为参数。我还有其他设置方法吗? Hello! I want to know how to adjust the learning rate? Can you be specific? thank you!