Python OpenCV Build Info
Python: OpenCV
To get the current version of your opencv
build, you can use the REPL
:
import cv2
print cv2.getBuildInformation()
General configuration for OpenCV 2.4.9 ===================================== Version control: unknown
Platform: Host: Darwin 13.4.0 x86_64 CMake: 3.1.0 CMake generator: Unix Makefiles CMake build tool: /usr/local/Library/ENV/4.3/gmake Configuration: None
C/C++: Built as dynamic libs?: YES C++ Compiler: /usr/local/Library/ENV/4.3/clang++ (ver 6.0.0.6000056) C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -fno-omit-frame-pointer -msse -msse2 -mavx -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -fno-omit-frame-pointer -msse -msse2 -mavx -g -O0 -DDEBUG -D_DEBUG C Compiler: /usr/local/Library/ENV/4.3/clang C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -fno-omit-frame-pointer -msse -msse2 -mavx -O3 -DNDEBUG -DNDEBUG C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -fno-omit-frame-pointer -msse -msse2 -mavx -g -O0 -DDEBUG -D_DEBUG Linker flags (Release): Linker flags (Debug): Precompiled headers: NO
OpenCV modules: To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib python stitching superres ts videostab Disabled: world Disabled by dependency: - Unavailable: androidcamera dynamicuda java viz
GUI: QT: NO Cocoa: YES OpenGL support: NO VTK support: NO
Media I/O: ZLib: /usr/lib/libz.dylib (ver 1.2.5) JPEG: /usr/local/opt/jpeg/lib/libjpeg.dylib (ver 80) PNG: /usr/local/lib/libpng.dylib (ver 1.6.16) TIFF: /usr/local/lib/libtiff.dylib (ver 42 - 4.0.3) JPEG 2000: NO OpenEXR: /usr/local/lib/libImath.dylib /usr/local/lib/libIlmImf.dylib /usr/local/lib/libIex.dylib /usr/local/lib/libHalf.dylib /usr/local/lib/libIlmThread.dylib (ver 2.1.0)
Video I/O: DC1394 1.x: NO DC1394 2.x: NO FFMPEG: NO codec: NO format: NO util: NO swscale: NO gentoo-style: NO OpenNI: NO OpenNI PrimeSensor Modules: NO PvAPI: NO GigEVisionSDK: NO QuickTime: NO QTKit: YES V4L/V4L2: NO/NO
Other third-party libraries: Use IPP: NO Use Eigen: YES (ver 3.2.3) Use TBB: NO Use OpenMP: NO Use GCD YES Use Concurrency NO Use C=: NO Use Cuda: NO Use OpenCL: YES
OpenCL: Version: static libraries: -framework OpenCL Use AMD FFT: NO Use AMD BLAS: NO
Python: Interpreter: /usr/bin/python (ver 2.7.5) Libraries: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib (ver 2.7.5) numpy: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include (ver 1.6.2) packages path: lib/python2.7/site-packages
Java: ant: NO JNI: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include/darwin /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include Java tests: NO
Documentation: Build Documentation: NO Sphinx: NO PdfLaTeX compiler: NO
Tests and samples: Tests: NO Performance tests: NO C/C++ Examples: NO
Install path: /usr/local/Cellar/opencv/2.4.9
cvconfig.h is in: /tmp/opencv-I2OYd0/opencv-2.4.9/macbuild
brew install gpac
brew install x264
brew install ffmpeg --with-openjpeg --with-rtmpdump
brew install opencv --with-ffmpeg --with-gstreamer
If you already installed ffmpeg
or opencv
you can always reinstall the bottle:
brew install ffmpeg --with-openjpeg --with-rtmpdump
brew reinstall opencv --with-ffmpeg --with-gstreamer
Also, if you have opencv installed with brew, you can check with what dependencies:
brew info opencv
import cv Traceback (most recent call last): File "
", line 1, in ImportError: No module named cv import cv2 Traceback (most recent call last): File " ", line 1, in ImportError: No module named cv2
OpenCV output:
General configuration for OpenCV 2.4.10.1 ===================================== Version control: unknown
Platform: Host: Darwin 13.4.0 x86_64 CMake: 3.1.1 CMake generator: Unix Makefiles CMake build tool: /usr/local/Library/ENV/4.3/gmake Configuration: None
C/C++: Built as dynamic libs?: YES C++ Compiler: /usr/local/Library/ENV/4.3/clang++ (ver 6.0.0.6000056) C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -fno-omit-frame-pointer -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -fno-omit-frame-pointer -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -g -O0 -DDEBUG -D_DEBUG C Compiler: /usr/local/Library/ENV/4.3/clang C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -fno-omit-frame-pointer -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -O3 -DNDEBUG -DNDEBUG C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -fno-omit-frame-pointer -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -g -O0 -DDEBUG -D_DEBUG Linker flags (Release): Linker flags (Debug): Precompiled headers: NO
OpenCV modules: To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib python stitching superres ts videostab Disabled: world Disabled by dependency: - Unavailable: androidcamera dynamicuda java viz
GUI: QT: NO Cocoa: YES OpenGL support: NO VTK support: NO
Media I/O: ZLib: /usr/lib/libz.dylib (ver 1.2.5) JPEG: /usr/local/opt/jpeg/lib/libjpeg.dylib (ver 80) PNG: /usr/local/lib/libpng.dylib (ver 1.6.16) TIFF: /usr/local/lib/libtiff.dylib (ver 42 - 4.0.3) JPEG 2000: NO OpenEXR: /usr/local/lib/libImath.dylib /usr/local/lib/libIlmImf.dylib /usr/local/lib/libIex.dylib /usr/local/lib/libHalf.dylib /usr/local/lib/libIlmThread.dylib (ver 2.1.0)
Video I/O: DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES codec: YES (ver Unknown) format: YES (ver Unknown) util: YES (ver Unknown) swscale: YES (ver Unknown) gentoo-style: YES GStreamer: base: YES (ver 1.4.5) video: YES (ver 1.4.5) app: YES (ver 1.4.5) riff: YES (ver 1.4.5) pbutils: YES (ver 1.4.5) OpenNI: NO OpenNI PrimeSensor Modules: NO PvAPI: NO GigEVisionSDK: NO QuickTime: NO QTKit: YES V4L/V4L2: NO/NO XIMEA: NO
Other third-party libraries: Use IPP: NO Use Eigen: YES (ver 3.2.3) Use TBB: NO Use OpenMP: NO Use GCD YES Use Concurrency NO Use C=: NO Use Cuda: NO Use OpenCL: YES
OpenCL: Version: static libraries: -framework OpenCL Use AMD FFT: NO Use AMD BLAS: NO
Python: Interpreter: /usr/local/bin/python2 (ver 2.7.9) Libraries: /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib (ver 2.7.9) numpy: /usr/local/lib/python2.7/site-packages/numpy/core/include (ver 1.9.1) packages path: lib/python2.7/site-packages
Java: ant: NO JNI: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include/darwin /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include Java tests: NO
Documentation: Build Documentation: YES (only HTML and without math expressions) Sphinx: /usr/local/bin/sphinx-build (ver 1.2.3) PdfLaTeX compiler: NO
Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: NO
Install path: /usr/local/Cellar/opencv/2.4.10.1