BackgroundSubtractorMOG not working (Bug #4367)


Added by Thiago Matias Martins almost 10 years ago. Updated almost 10 years ago.


Status:Cancelled Start date:2015-05-28
Priority:High Due date:
Assignee:- % Done:

0%

Category:-
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Linux
Difficulty: HW Platform:x64
Pull request:

Description

Hey!

I'm trying to use BackgroundSubtractorMOG function, but for some reason it is not working.

erro message:
fgbg = cv2.BackgroundSubtractorMOG()
AttributeError: 'module' object has no attribute 'BackgroundSubtractorMOG'

What I had tried:

createBackgroundSubtractorMOG() Didn't work.
BackgroundSubtractorMOG2() It worked fine, but I didn't like the result.
BackgroundSubtractorGMG() Didn't work.

I'm really interested to use MOG, all other functions looks bad to what I'm looking for.

Extra: I am using OpenCV 3.0.0, Eclipse + Python Interpreter, Linux (Ubuntu x64).

Thank you guys!


History

Updated by Vadim Pisarevsky almost 10 years ago

BackgroundSubtractorMOG has been superseded by BackgroundSubtractorMOG2: cv2.createBackgroundSubtractorMOG2

  • Status changed from New to Cancelled

Also available in: Atom PDF