check this site from openCV its saying the version as "3.1-0-dev" , is this a different version than the one I have installed and if yes where can I download it or is it a matter of just the right CMAKE options ? the background subtraction functions they are showing are different from what I have , mine are in "cv2.bgsegm" and names are "createBackgroundSubtractorGMG" and "createBackgroundSubtractorMOG"
(http://docs.opencv.org/trunk/db/d5c/tutorial_py_bg_subtraction.html)
[root@hadoop1 build]# python
Python 3.3.3 (default, Nov 16 2016, 14:57:45)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'3.1.0'
>>>
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_NEW_PYTHON_SUPPORT=ON -DWITH_TBB=ON -DBUILD_TBB=ON -DWITH_OPENGL=ON -DWITH_EIGEN=ON -DFFMPEG_INCLUDE_DIR=/usr/local/include -DOPENCV_EXTRA_MODULES_PATH=/root/opencv_contrib/modules -DBUILD_opencv_legacy=OFF ..