Last active
October 27, 2018 20:37
-
-
Save yedehrab/c0f97083758dcc27c378e1cc5275fee5 to your computer and use it in GitHub Desktop.
Python3 için OpenCV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Yunus Emre tarafından derlenmiştir. | |
# Orjinal link: http://cyaninfinite.com/tutorials/installing-opencv-in-ubuntu-for-python-3/ | |
# Paketleri güncelleme | |
sudo apt-get update | |
# Gerekli yazılımların yüklenmesi | |
sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev | |
# Geliştirici paketinin yüklenmesi | |
sudo apt-get install python3.5-dev | |
# Yapılandırma dosyasını oluşturma | |
python3.5-config --includes | |
# Örnek çıktı | |
# -I/usr/include/python3.5m -I/usr/include/x86_64-linux-gnu/python3.5m | |
# Yapılandırmayı gerekli yere taşıma | |
sudo cp /usr/include/x86_64-linux-gnu/python3.5m/pyconfig.h /usr/include/python3.5m/ | |
# Yeni dizin oluşturma ve içien openCV indirme | |
mkdir OpenCV-tmp | |
cd OpenCV-tmp | |
git clone https://github.com/Itseez/opencv.git | |
# Dosyaları oluşturma | |
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ./opencv-3 | |
# Dosyaları derleme | |
make -j $(nproc --all) | |
# Dosyaları yükleme | |
sudo make install | |
# Python3 kontrolü | |
python3 | |
import cv2 | |
exit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment