Python binding for BackgroundSubtractorMOG2 (Feature #2812)

Added by Anatoliy Kats over 4 years ago. Updated over 3 years ago.

Status:Done Start date:2013-02-18
Priority:Normal Due date:
Assignee:Andrey Pavlenko % Done:


Category:python bindings
Target version:Next Hackathon
Difficulty: Pull request:


Could we add the python bindings for the second version of the background subtractor?


Updated by Anna Kogan over 4 years ago

Hello Anatoliy,

I think such bindings wold be welcomed in OpenCV. If you could implement such functionality, a patch or pull request in the GitHub repo: would be highly appreciated!

  • Assignee deleted (Vadim Pisarevsky)
  • Target version set to 3.0

Updated by abid rahman about 4 years ago


It is present in master branch.

mog2 = cv2.createBackgroundSubtractorMOG2()

So I think its status can be changed to "Done".

Updated by Steven Puttemans about 4 years ago

Actually as far as I know, it should have been pushed to branch 2.4 and then auto merged in master. So if it is available in master, it is weird that it isn't in the 2.4 branch.

Maybe let it open to have the attention of devs at this?

Updated by Sergei Nosov about 4 years ago

Roman, do we need a PR on 2.4 branch?

  • Assignee set to Roman Donchenko

Updated by Roman Donchenko almost 4 years ago

Well, if anyone submits one, we can accept it. New bindings are usually fine on 2.4.

I don't think this issue belongs to me though, I don't really do bindings...

  • Target version changed from 3.0 to 2.4.7
  • Assignee changed from Roman Donchenko to Andrey Pavlenko

Updated by Alexander Smorkalov over 3 years ago

@Andrey Pavlenko, any comments from your side?

Updated by Alexander Smorkalov over 3 years ago

  • Target version changed from 2.4.7 to Next Hackathon

Updated by Andrey Pavlenko over 3 years ago

  • Status changed from Open to Done

Also available in: Atom PDF