Ask Your Question
0

Class bgsegm question

asked 2018-02-02 06:01:16 -0600

updated 2018-02-02 06:16:46 -0600

berak gravatar image

Hi everybody,

I am only able to call the following methods with Python 3.5 + OpenCv 3.1.0
class cv::bgsegm::BackgroundSubtractorGMG class cv::bgsegm::BackgroundSubtractorMOG via cv2.bgsegm.BackgroundSubtractorGMG() or cv2.bgsegm.BackgroundSubtractorMOG().

What about the following? class cv::bgsegm::BackgroundSubtractorCNT class cv::bgsegm::BackgroundSubtractorGSOC class cv::bgsegm::BackgroundSubtractorLSBP class cv::bgsegm::BackgroundSubtractorLSBPDesc class cv::bgsegm::SyntheticSequenceGenerator Are there additional modules to load or those functions are only available for c++ environment?

Thanks for your help, Michele

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-02-02 06:12:51 -0600

berak gravatar image

updated 2018-02-02 06:19:36 -0600

you need to rebuild with https://github.com/opencv/opencv_contrib, to use those. also 3.1.0 only has GMG and MOG

( update both main opencv and opencv_contrib to latest master, and follow instructions here )

edit flag offensive delete link more

Comments

I'm using Anaconda and there is only a Python IDE Spyder. How can I update main opencv and opencv_contrib?

mikelem gravatar imagemikelem ( 2018-02-02 07:37:14 -0600 )edit

sorry, can't help with any of that.

berak gravatar imageberak ( 2018-02-02 07:47:58 -0600 )edit

Question Tools

Stats

Asked: 2018-02-02 06:01:16 -0600

Seen: 296 times

Last updated: Feb 02 '18