--I wanted to perform image processing with Python3 and OpenCV3 environment, but when I executed cv2.imshow, I was troubled with the following error.
The function is not implemented. Rebuild the library with Windows,
GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian,
install libgtk2.0-dev and pkg-config,
then re-run cmake or configure script in function cvShowImage
――However, it seems that it has been solved recently by updating Homebrew's OpenCV. ――It seems that there were repositories for OpenCV 2 and 3 respectively, but the package name is OpenCV, but it seems that the contents are only OpenCV3. Along with that, it seems that Python is also only 3 series.
――I don't have to do anything special, but I will leave it as a memo.
brew update && upgrade
brew uninstall --force opencv
brew uninstall --force opencv3
brew uninstall --ignore-dependencies python
brew uninstall --force python
brew uninstall --ignore-dependencies python3
brew uninstall --force python3
brew install opencv
pip3 install --upgrade pip setuptools wheel
Python 3.6.2 (default, Jul 17 2017, 16:44:47)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'3.3.0'
――This update has returned my motivation, so I would like to play around with it.
Recommended Posts