Ask Your Question

cs's profile - activity

2017-11-06 07:06:04 -0600 received badge  Notable Question (source)
2017-04-03 11:53:23 -0600 received badge  Popular Question (source)
2016-07-22 15:22:31 -0600 received badge  Nice Answer (source)
2015-09-18 04:52:57 -0600 received badge  Enthusiast
2015-09-17 06:27:53 -0600 received badge  Teacher (source)
2015-09-16 08:31:12 -0600 received badge  Self-Learner (source)
2015-09-16 08:28:30 -0600 answered a question Windows Python opencv_contrib install doesn't work

The first problem was that I forgot enable BUILD_opencv_python2. It's required to enable these value, because it will build your Python opencv file.

The second problem was that I choosen VS2013 x64 in CMake, because I installed these version. But the correct VS version for Python 2.7.xx is VS2013 x86, because Python is 32bit and not 64bit.

After I changed the VS2013 type everthing went well and I could install OpenCV_contrib without problems.

Thank you for your help ;)

2015-09-10 05:57:52 -0600 commented question Windows Python opencv_contrib install doesn't work

Could you find out if Python Version 2.7.10 is to advanced for building the opencv3-contrib version?

2015-09-09 10:05:42 -0600 commented question Windows Python opencv_contrib install doesn't work

After I runned INSTALL in release mode, unfortunately nothing has changed. ALL_BUILD and INSTALL throw Errors like this one:

1>cv2.obj : error LNK2019: unresolved external symbol __imp_PyType_IsSubtype referenced in function "struct _object * __cdecl pyopencv_cv_xfeatures2d_xfeatures2d_SURF_setNOctaves(struct _object *,struct _object *,struct _object *)" (?pyopencv_cv_xfeatures2d_xfeatures2d_SURF_setNOctaves@@YAPEAU_object@@PEAU1@00@Z)

And the project didn't build... It's always either Error LNK2001 or Error LNK2019. Should I asked a new question and tag these one as solved?

2015-09-09 09:51:17 -0600 commented question Windows Python opencv_contrib install doesn't work

I suppose the problem was that i didn't checked in the value BUILD_opencv_python2. Now Python is enabled:

Python 2:

Interpreter:                 C:/Python27/python.exe (ver 2.7.10)

Libraries:                   C:/Python27/libs/python27.lib (ver 2.7.10+)

numpy:                       C:/Python27/lib/site-packages/numpy/core/include (ver 1.8.0)

packages path:               C:/Python27/Lib/site-packages

But I've got a new problem, now I can't build the ALL_BUILD because of 68 errors...

2015-09-09 09:40:33 -0600 commented question Windows Python opencv_contrib install doesn't work

Yes I'm using the cmake-gui. I already added the paths manually as you can see in the recently attached image above. Nevertheless python2 is disabled.. Do I need to add more paths?

2015-09-09 09:30:23 -0600 commented question Windows Python opencv_contrib install doesn't work

Thank you very much! I attached the configuration output to the question. I suppose there is a problem because of python version 2.7.10 ("Could NOT find PythonInterp.....") but for my project I can't use python 3.x

2015-09-09 09:25:36 -0600 received badge  Editor (source)
2015-09-09 07:12:20 -0600 commented question Windows Python opencv_contrib install doesn't work

I checked all build logs, all the entries are like that one (no errors): Up-to-date: C:/opencv/build/install/include/opencv2/cvconfig.h and finished with that line: 1>Done Building Project "C:\opencv\build\INSTALL.vcxproj" (Build target(s)). And my cv2.getBuildInformation() is the same after the installation, it's still the prebuild binaries one. I would like to copy it manually, but the INSTALL didn't create the cv2.pyd file. Should I send you the logs? Or is there any chance to download the cv2.pyd file with included xfeatures2d?

2015-09-09 06:46:45 -0600 commented question Windows Python opencv_contrib install doesn't work

Done again.... But nothing has changed. The INSTALL didn't any copying. It only changed the opencv/build folder but nothing in the python folder... What could I do? Do I have to change something in the project? Thank you

2015-09-09 05:59:38 -0600 commented question Windows Python opencv_contrib install doesn't work

I followed the readme and did exactly what is written there. I configured/generated it with CMake, I followed these instruction link text, as well as I added OPENCV_EXTRA_MODULES_PATH like explained in the readme. Then I built it with VS13 (ALL_BUILD) and I buitl the install project (INSTALL) like explained in the instructions. But it didn't change anything to my Python folder, just to the opencv/build folder. And now I don't know how to install it correctly to Python with the .pyd file. But even though thank you for your fast reply

2015-09-08 11:00:32 -0600 asked a question Windows Python opencv_contrib install doesn't work

Hey everyone,

I've got following problem, I want to use sift/surf feature detection with Python OpenCV 3.

I followed the install-guide for installing "OpenCV from source" and built the ALL_BUILD and the INSTALL project. But nothing happened to my Python27 directory (no errors in the builds, everything was successful).

My question is: how can I install the INSTALL project to my python directory or how can I get the new cv2.pyd file which I could copy to the python directory? Or is there a known problem with a python-opencv3-contrib installation?

I deleted the cv2.pyd file which I copied to the python directory in a previous installation (prebuild binaries installation) before and after a INSTALL build but nothing changed. If I delete the file, following error will occur: "ImportError: No module named cv2".

Thank you for your help!


Looking for Mfapi.h
Looking for Mfapi.h - found
Could NOT find PythonInterp: Found unsuitable version "2.7.10", but required is at least "3.4" (found C:/Python27/python.exe)
Could NOT find PythonInterp: Found unsuitable version "2.7.10", but required is at least "3.2" (found C:/Python27/python.exe)
Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
ERROR: 
The system was unable to find the specified registry key or value.

ERROR: 
The system was unable to find the specified registry key or value.

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) 
Tesseract:   NO
  videoio: Removing WinRT API headers by default

General configuration for OpenCV 3.0.0 =====================================
  Version control:               unknown

  Platform:
    Host:                        Windows 6.2 AMD64
    CMake:                       3.3.1
    CMake generator:             Visual Studio 12 2013 Win64
    CMake build tool:            C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe
    MSVC:                        1800

  C/C++:
    Built as dynamic libs?:      NO
    C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe  (ver 18.0.21005.1)
    C++ flags (Release):         /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /wd4324 /MP8  /MT /O2 /Ob2 /D NDEBUG  /Zi
    C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /wd4324 /MP8  /D_DEBUG /MTd /Zi /Ob0 /Od /RTC1 
    C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe
    C flags (Release):           /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi    /MP8  /MT /O2 /Ob2 /D NDEBUG  /Zi
    C flags (Debug):             /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi    /MP8  /D_DEBUG /MTd /Zi /Ob0 /Od /RTC1 
    Linker flags (Release):      /machine:x64  /NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcrtd.lib /INCREMENTAL:NO  /debug /NODEFAULTLIB:libcmtd.lib
    Linker flags (Debug):        /machine:x64  /NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcrtd.lib /debug /INCREMENTAL  /NODEFAULTLIB:libcmt.lib
    Precompiled headers:         YES
    Extra dependencies:          comctl32 gdi32 ole32 setupapi ws2_32 vfw32
    3rdparty dependencies:       zlib libjpeg libwebp libpng libtiff libjasper IlmImf

  OpenCV modules:
    To be built:                 hal core ...
(more)
2015-09-08 11:00:32 -0600 commented question Windows Python opencv_contrib Install

Hey everyone, I've got the same problem (want to use sift/surf) I followed the install-guide for installing OpenCV from source and build the ALL_BUILD and the INSTALL project. But nothing happened to my Python27 directory (no errors in the builds, everything was successful). My question is: how can I install the INSTALL project to my python directory or how can I get the new cv2.pyd file which I could copy to the python directory? I deleted the cv2.pyd file which I copied to the python directory in a previous installation (prebuild binaries installation) before and after a INSTALL build but nothing changed. If I delete the file, following error will occur: "ImportError: No module named cv2". Thank you for your help!

2015-09-08 10:50:55 -0600 received badge  Supporter (source)