Ask Your Question

picaso's profile - activity

2017-04-05 05:29:17 -0600 received badge  Enthusiast
2017-03-26 00:34:46 -0600 commented answer How to use MOG in python openCV 3.2.0 version

The question was solved. When downloading opencv_contrib the previous version have being downloaded in a partial manner.... With the full version it can build successfully...

2017-03-25 23:22:17 -0600 commented answer How to use MOG in python openCV 3.2.0 version

i removed all the opencv packages.. and started installing them from the scratch....lets see..By the way thanks for advices.. means alot..

2017-03-25 22:28:35 -0600 commented answer How to use MOG in python openCV 3.2.0 version

thats what i am worried about.... it says bgsegm is in to be build section even.. isthere a way to uninstall opencv fully

2017-03-25 03:51:52 -0600 commented answer How to use MOG in python openCV 3.2.0 version

@berak I have included that output inside the question...hope it would help..thanks in advance

2017-03-25 03:32:59 -0600 commented answer How to use MOG in python openCV 3.2.0 version

@berak when i check the cv2.__version__ it returned 3.2.0

and the cmake code was

 cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -DBUILD_opencv_legacy=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_bgsegm=ON -DBUILD_opencv_line_descriptor=OFF -DWITH_QT=ON ../../OpenCV
2017-03-24 23:43:28 -0600 received badge  Editor (source)
2017-03-24 23:42:47 -0600 commented answer How to use MOG in python openCV 3.2.0 version

sorry it should be 3.2.0 I did download the opencv_contrib, and build the package using cmake even. But the result is same... Any idea...

2017-03-24 11:43:35 -0600 asked a question How to use MOG in python openCV 3.2.0 version
Traceback (most recent call last):
  File "ex1.py", line 6, in <module>
    fgbg = cv2.bgsegm.createBackgroundSubtractorMOG()
AttributeError: 'module' object has no attribute 'bgsegm'

I even build the opencv_contrib files as well. but still when i type

python
import cv2
help(cv2)

the bgsegm module not seems to be there. cmake output

-- Detected version of GNU GCC: 54 (504)
-- FP16: Feature disabled
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") 
-- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
-- Checking for module 'gstreamer-base-1.0'
--   No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
--   No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'
--   No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
--   No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
--   No package 'gstreamer-pbutils-1.0' found
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Checking for module 'libavresample'
--   No package 'libavresample' found
-- Checking for module 'libgphoto2'
--   No package 'libgphoto2' found
-- Found TBB: /usr/lib/x86_64-linux-gnu/libtbb.so
-- found IPP (ICV version): 9.0.1 [9.0.1]
-- at: /home/ruwiniopatha/OpenCV/build/3rdparty/ippicv/ippicv_lnx
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Could NOT find Atlas (missing:  Atlas_CLAPACK_INCLUDE_DIR) 
-- Found apache ant 1.9.6: /usr/bin/ant
-- Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
-- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

-- Found VTK ver. 6.2.0 (usefile: /usr/lib/cmake/vtk-6.2/UseVTK.cmake)
-- Caffe:   NO
-- Protobuf:   YES
-- Glog:   YES
-- Looking for tiny_dnn.h
-- Looking for tiny_dnn.h - found
-- Found tiny-dnn in: /usr/local/include
-- C++11 support has been enabled by default.
-- freetype2:   YES
-- harfbuzz:    YES
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Found installed version of gflags: /usr/local/lib/cmake/gflags
-- Detected gflags version: 2.2.0
-- Checking SFM deps... TRUE
-- CERES support is disabled. Ceres Solver for reconstruction API is required.
-- freetype2:   YES
-- harfbuzz:    YES
-- Looking for tiny_dnn.h
-- Looking for tiny_dnn.h ...
(more)
2017-03-23 12:58:00 -0600 commented question Linking CXX executables returns an error mentioning cannot find..

@berak thank you...sorry for the inconvenient formatting..hope for a solution...first time here

2017-03-23 12:41:09 -0600 commented question Installation on Ubuntu 16.04 with Anaconda for python 3.5

for me it work when I export the anaconda directory before i use python scripts...hope it helps

2017-03-23 12:37:22 -0600 asked a question Linking CXX executables returns an error mentioning cannot find..
  [ 50%] Linking CXX executable
----------
 milestone2 /usr/bin/ld: cannot find
 -lQt5::Core /usr/bin/ld: cannot find -lQt5::Gui /usr/bin/ld: cannot find -lQt5::Widgets /usr/bin/ld: cannot find -lQt5::Test /usr/bin/ld: cannot
 find -lQt5::Concurrent /usr/bin/ld:
 cannot find -lQt5::OpenGL collect2:
 error: ld returned 1 exit status
 CMakeFiles/milestone2.dir/build.make:125:
 recipe for target 'milestone2' failed
 make[2]: *** [milestone2] Error 1
 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/milestone2.dir/all' failed make[1]: ***
 [CMakeFiles/milestone2.dir/all] Error
 2 Makefile:83: recipe for target 'all'
 failed make: *** [all] Error 2