Python cmake生成后没有cv2.pyd文件

Python cmake生成后没有cv2.pyd文件,python,opencv,opencv-contrib,Python,Opencv,Opencv Contrib,我希望在opencv中使用opencv contrib中的附加算法。我正在尝试用contrib中的非自由算法构建opencv 我不熟悉使用cmake 我能够完成cmake构建中的配置/生成阶段,以构建opencv(附加配置)。当我使用Visual Studio构建时,没有生成cv2.pyd 不过我确实看到了一个cv2.cp37-win_amd64.pyd文件。当我pip安装从camke构建生成的.ee文件时,它已经在sitepackages文件夹中可用 以下是生成步骤的输出: 选择Window

我希望在opencv中使用opencv contrib中的附加算法。我正在尝试用contrib中的非自由算法构建opencv

我不熟悉使用cmake

我能够完成cmake构建中的配置/生成阶段,以构建opencv(附加配置)。当我使用Visual Studio构建时,没有生成cv2.pyd

不过我确实看到了一个cv2.cp37-win_amd64.pyd文件。当我pip安装从camke构建生成的.ee文件时,它已经在sitepackages文件夹中可用

以下是生成步骤的输出:


选择Windows SDK版本以针对Windows 10.0.16299。
libjpeg-turbo:VERSION=2.0.2,BUILD=opencv-4.1.0-dev-libjpeg-turbo
发现英特尔IPP(ICV版):2019.0.0[2019.0.0黄金版]
地址:/openCV/openCV master/build/3rdparty/ippicv/ippicv_-win/icv
找到“英特尔IPP集成包装器”来源:2019.0.0
地址:/openCV/openCV master/build/3rdparty/ippicv/ippicv_win/iw
找不到OpenBLAS include。关闭OpenBLAS_发现
找不到OpenBLAS库。关闭OpenBLAS_发现
找不到BLAS(缺少:BLAS_库)
拉帕克需要BLAS
找不到具有LAPACK API的库。请指定库位置。
找不到JNI(缺少:JAVA\u AWT\u库JAVA\u JVM\u库JAVA\u INCLUDE\u路径JAVA\u INCLUDE\u路径2 JAVA\u AWT\u INCLUDE\u路径)
找不到VTK。请将CMake中的-DVTK_DIR设置为VTK build目录,或使用VTKConfig.CMake文件设置为VTK install子目录
OpenCV Python:在开发过程中附加到PYTHONPATH:/OpenCV/OpenCV master/build/Python\u loader
从源文件列表中排除:modules/imgproc/src/corner.avx.cpp
从源文件列表中排除:modules/imgproc/src/imgwarp.avx2.cpp
从源文件列表中排除:modules/imgproc/src/imgwarp.sse4_1.cpp
从源文件列表中排除:modules/imgproc/src/resize.avx2.cpp
从源文件列表中排除:modules/imgproc/src/resize.sse4_1.cpp
从源文件列表中排除:modules/imgproc/src/sumpilxes.avx512_skx.cpp
注册hook'INIT_MODULE_SOURCES_opencv_dnn':/opencv/opencv master/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
opencv_dnn:过滤掉cuda4dnn源代码
从源文件列表中排除:/modules/dnn/layers/layers\u common.avx.cpp
从源文件列表中排除:/modules/dnn/layers/layers\u common.avx2.cpp
从源文件列表中排除:/modules/dnn/layers/layers\u common.avx512\u skx.cpp
从源文件列表中排除:modules/feature2d/src/fast.avx2.cpp
从源文件列表中排除:modules/calib3d/src/undistort.avx2.cpp
找不到Doxygen(缺少:Doxygen\u可执行文件)
已跳过OpenCL示例:需要OpenCL SDK
OpenCV 4.1.0-dev的一般配置=====================================
版本控制:未知
站台:
时间戳:2019-06-17T02:43:38Z
主机:Windows 10.0.16299 AMD64
CMake:3.15.0-rc1
CMake生成器:Visual Studio 14 2015
CMake生成工具:C:/Program Files(x86)/MSBuild/14.0/bin/MSBuild.exe
MSVC:1900
CPU/HW功能:
基线:SSE2
请求:SSE2
C/C++:
构建为动态库?:是
C++编译器:C//程序文件(x86)/微软VisualStudio 140/Vc/BI/C.EXE(VER 19.0.2427.1)
C++标志(释放):/dWi2/d4/d4/d//t/a,EHa,MD,/sIG/BigOb/OI/FP:FAST/ARC:SSE2/ARD/WD4127/WD4251/WD4324/WD4125/WD45 12/WD45 89/MP8/MD /O2/OB2/DNDECHG/ZI
c++标志(调试):/dWi2/d4/d/g/d,tt/d~(n/d1),非g/d~(n/d),ng/bigb/oi/fp:FAST/ARC++:SSE2/ARD/WD4127/WD4251/WD4324/WD4125/WD45 12/WD489/MP8/MDD/ZI/OB0/OD/RTC1,EHa
C编译器:C:/ProgramFiles(x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
C标志(发布):/DWIN32/D_WINDOWS/W3/D_CRT_SECURE_NO_DEPRECATE/D_CRT_nonsdc_NO_DEPRECATE/D_SCL_SECURE_NO_WARNINGS/Gy/bigobj/Oi/fp:fast/arch:SSE/arch:SSE2/MP8/MD/O2/Ob2/DNDEBUG/Zi
C标志(调试):/DWIN32/D_WINDOWS/W3/D_CRT_SECURE_NO_DEPRECATE/D_CRT_nonsdc_NO_DEPRECATE/D_SCL_SECURE_NO_WARNINGS/Gy/bigobj/Oi/fp:fast/arch:SSE/arch:SSE2/MP8/MDd/Zi/Ob0/Od/RTC1
链接器标志(发布):/machine:X86/INCREMENTAL:NO/debug
链接器标志(调试):/machine:X86/Debug/INCREMENTAL
卡切:没有
预编译头:是
额外依赖项:
第三方依赖关系:
OpenCV模块:
待构建:calib3d core dnn功能2D flann gapi highgui imgcodecs imgproc ml objdetect照片拼接ts视频
残疾人:世界
由依赖项禁用:-
不可用:java js Python 2 Python 3
应用程序:示例应用程序
文件:无
非自由算法:是
Windows RT支持:否
图形用户界面:
Win32用户界面:是的
VTK支持:否
媒体输入/输出:
ZLib:构建(1.2.11版)
JPEG:构建libjpeg turbo(版本2.0.2-62)
WEBP:生成(版本编码器:0x020e)
PNG:构建(版本1.6.37)
TIFF:构建(版本42-4.0.10)
JPEG 2000:内部版本(1.900.1版)
OpenEXR:build(版本2.3.0)
HDR:是的
孙:是的
PXM:是的
PFM:是的
视频输入/输出:
DC1394:没有
FFMPEG:是(预构建的二进制文件)
avcodec:是(58.35.100)
AVF格式:是(58.20.100)
avutil:是(56.22.100)
swscale:是(5.3.100)
avresample:是(4.0.0)
GStreamer:没有
DirectShow:是的
媒体基金会:是的
DXVA:没有
并行框架:并发
跟踪:是(使用英特尔ITT)
其他第三方图书馆:
英特尔IPP:2019.0.0黄金[2019.0.0]
地址:/openCV/openCV master/build/3rdparty/ippicv/ippicv_-win/icv
英特尔IPP IW:来源(2019.0.0)
地址:/openCV/openCV master/build/3rdparty/ippicv/ippicv_win/iw
拉帕克:没有
艾根:没有
海关哈尔:没有
Protobuf:构建(3.5.1)
OpenCL:是(NVD3D11)
包含路径:/openCV/openCV master/3rdparty/Include/opencl/1.2
链接库:动态加载
Python(用于构建):C:/Anaconda/Python.exe
爪哇:
蚂蚁:没有
JNI:没有
Java包装器:没有
Java测试:否
安装到:/openCV/openCV master/build/Install
配置完成
生成完成

我确实看到创建了一个.egg文件。但是,当我使用.egg文件安装时,附加的
Selecting Windows SDK version to target Windows 10.0.16299.
libjpeg-turbo: VERSION = 2.0.2, BUILD = opencv-4.1.0-dev-libjpeg-turbo
found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
at: /openCV/opencv-master/build/3rdparty/ippicv/ippicv_win/icv
found Intel IPP Integration Wrappers sources: 2019.0.0
at: /openCV/opencv-master/build/3rdparty/ippicv/ippicv_win/iw
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find BLAS (missing: BLAS_LIBRARIES) 
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
OpenCV Python: during development append to PYTHONPATH: /openCV/opencv-master/build/python_loader
Excluding from source files list: modules/imgproc/src/corner.avx.cpp
Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp
Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp
Excluding from source files list: modules/imgproc/src/sumpixels.avx512_skx.cpp
Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': /openCV/opencv-master/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
opencv_dnn: filter out cuda4dnn source code
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx.cpp
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx2.cpp
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp
Excluding from source files list: modules/features2d/src/fast.avx2.cpp
Excluding from source files list: modules/calib3d/src/undistort.avx2.cpp
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
OpenCL samples are skipped: OpenCL SDK is required

General configuration for OpenCV 4.1.0-dev =====================================
Version control: unknown

Platform:
Timestamp: 2019-06-17T02:43:38Z
Host: Windows 10.0.16299 AMD64
CMake: 3.15.0-rc1
CMake generator: Visual Studio 14 2015
CMake build tool: C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe
MSVC: 1900

CPU/HW features:
Baseline: SSE SSE2
requested: SSE2

C/C++:
Built as dynamic libs?: YES
C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe (ver 19.0.24215.1)
C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:fast /arch:SSE /arch:SSE2 /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8 /MD /O2 /Ob2 /DNDEBUG /Zi
C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:fast /arch:SSE /arch:SSE2 /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8 /MDd /Zi /Ob0 /Od /RTC1 
C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/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 /fp:fast /arch:SSE /arch:SSE2 /MP8 /MD /O2 /Ob2 /DNDEBUG /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 /fp:fast /arch:SSE /arch:SSE2 /MP8 /MDd /Zi /Ob0 /Od /RTC1 
Linker flags (Release): /machine:X86 /INCREMENTAL:NO /debug
Linker flags (Debug): /machine:X86 /debug /INCREMENTAL 
ccache: NO
Precompiled headers: YES
Extra dependencies:
3rdparty dependencies:

OpenCV modules:
To be built: calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo stitching ts video videoio
Disabled: world
Disabled by dependency: -
Unavailable: java js python2 python3
Applications: examples apps
Documentation: NO
Non-free algorithms: YES

Windows RT support: NO

GUI: 
Win32 UI: YES
VTK support: NO

Media I/O: 
ZLib: build (ver 1.2.11)
JPEG: build-libjpeg-turbo (ver 2.0.2-62)
WEBP: build (ver encoder: 0x020e)
PNG: build (ver 1.6.37)
TIFF: build (ver 42 - 4.0.10)
JPEG 2000: build (ver 1.900.1)
OpenEXR: build (ver 2.3.0)
HDR: YES
SUNRASTER: YES
PXM: YES
PFM: YES

Video I/O:
DC1394: NO
FFMPEG: YES (prebuilt binaries)
avcodec: YES (58.35.100)
avformat: YES (58.20.100)
avutil: YES (56.22.100)
swscale: YES (5.3.100)
avresample: YES (4.0.0)
GStreamer: NO
DirectShow: YES
Media Foundation: YES
DXVA: NO

Parallel framework: Concurrency

Trace: YES (with Intel ITT)

Other third-party libraries:
Intel IPP: 2019.0.0 Gold [2019.0.0]
at: /openCV/opencv-master/build/3rdparty/ippicv/ippicv_win/icv
Intel IPP IW: sources (2019.0.0)
at: /openCV/opencv-master/build/3rdparty/ippicv/ippicv_win/iw
Lapack: NO
Eigen: NO
Custom HAL: NO
Protobuf: build (3.5.1)

OpenCL: YES (NVD3D11)
Include path: /openCV/opencv-master/3rdparty/include/opencl/1.2
Link libraries: Dynamic load

Python (for build): C:/Anaconda/python.exe

Java: 
ant: NO
JNI: NO
Java wrappers: NO
Java tests: NO

Install to: /openCV/opencv-master/build/install


Configuring done
Generating done