관리 메뉴

Hee'World

OpenCV 패키지 설치 [Windows] 본문

Programming/Python

OpenCV 패키지 설치 [Windows]

Jonghee Jeon 2016. 6. 7. 10:11


<OpenCV Python 설치 [Windows]>



  1. Below Python packages are to be downloaded and installed to their default locations.

    1.1. Python-2.7.x.

    1.2. Numpy.

    1.3. Matplotlib (Matplotlib is optional, but recommended since we use it a lot in our tutorials).

  2. Install all packages into their default locations. Python will be installed to C:/Python27/.

  3. After installation, open Python IDLE. Enter import numpy and make sure Numpy is working fine.

  4. Download latest OpenCV release from sourceforge site and double-click to extract it.

  1. Goto opencv/build/python/2.7 folder.

  2. Copy cv2.pyd to C:/Python27/lib/site-packeges.

  3. Open Python IDLE and type following codes in Python terminal.

    >>> import cv2
    >>> print cv2.__version__



1. https://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.13/ 에 들어가서 OpenCV 파일을 다운로드 합니다.




2. 다운로드한 파일을 압축해제 합니다.



3. 압축해제한 폴더 아래에 build 폴더에 들어갑니다.


4. build아래 python 폴더아래로 들어갑니다.


5. python폴더 아래 2.7폴더로 들어갑니다.


6. 2.7폴더 아래에서 자신의 머신 버전에 맞는 폴더에 들어갑니다. 저는 64비트 폴더로 들어갔습니다.


7. x64폴더아래 cv2.pyd라는 파일이 존재합니다. 이 파일을 복사하여 Python이 설치된 폴더에 lib => site-packages폴더 아래에 복사합니다.


8. cv2.pyd 파일을 복사하였으면 Python에서 import cv2를 하여 설치를 확인합니다.


<끝>




 - http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_setup/py_setup_in_windows/py_setup_in_windows.html#install-opencv-python-in-windows

'Programming > Python' 카테고리의 다른 글

Anaconda3 Windows Opencv3 install  (0) 2016.06.09
TensorFlow 설치  (0) 2016.06.07
머신러닝 인 액션 2.2.2 예제 에러  (0) 2016.04.24
module 불러오기  (0) 2015.08.08
[펌]데이터 분석을 위한 파이썬 라이브러리  (0) 2014.10.20
Comments