You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @peijason , sorry for my delayed feedback to you.
In c++: bgs->process(img_input, img_mask, img_bkgmodel); img_mask and img_bkgmodel are references to be filled by the process method.
In python the behavior is different.
img_output = algorithm.apply(frame)
img_output is equivalent to img_mask (but it returns by value instead of reference)
and img_bkgmodel can be given by:
img_bkgmodel = algorithm.getBackgroundModel()
Hope this helps you.
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.
Thanks,
Andrews
Tested both c++ and python.
In c++:
bgs->process(img_input, img_mask, img_bkgmodel);
we can input a img_mask.
In python:
from
demo.py
anddemo2.py
.img_output = algorithm.apply(frame)
it looks there is nowhere for me to input an mask image?
Any suggestions?
The text was updated successfully, but these errors were encountered: