Weyne

Pasos para Instalación de Opencv-Python en Windows

May 15th, 2017
3,075
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. Video: https://youtu.be/7fEguWHxnkg
  2. Autor: Weyne
  3. Canal: https://www.youtube.com/weyne
  4.  
  5. Descargar OpenCV:
  6.  
  7. https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.1.0/opencv-3.1.0.exe/download
  8.  
  9. Descargar python:
  10.  
  11. 64 bits: https://www.python.org/ftp/python/2.7.12/python-2.7.12.amd64.msi
  12.  
  13. 32 bits: https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi
  14.  
  15.  
  16. Una vez instalado python y opencv, ingresar al directorio:
  17.  
  18. C:\opencv\build\python\2.7
  19.  
  20. (dependiendo de la arquitectura de SO 64 o 32 bits) y copiar el archivo cv2.pyd
  21.  
  22. pegar el archivo en la siguiente ruta:
  23.  
  24. C:\Python27\Lib\site-packages
  25.  
  26.  
  27. 1.agregar python y pip al PATH (Equipo -> click derecho Propiedades -> Configuración Avanzada del sistema ->
  28.  
  29. Variables de Entorno -> Path -> Editar):
  30.  
  31. ;C:\Python27\;C:\Python27\Scripts\
  32.  
  33.  
  34. ahora mediante la consola de windows usar los siguiente comandos
  35.  
  36. 2.actualizar pip:
  37.  
  38. python -m pip install --upgrade pip
  39.  
  40.  
  41. 3.Instalar numpy:
  42.  
  43. pip install numpy
  44.  
  45.  
  46.  
  47. 4.matplot:
  48.  
  49.  
  50. python -m pip install -U pip setuptools
  51. python -m pip install matplotlib
  52.  
  53.  
  54. 5.instalar imutils:
  55.  
  56. pip install imutils
  57.  
  58.  
  59. NOTA:
  60.  
  61. Cuando se programa un script que trabaja con lectura de un archivo de video, se necesita copiar una DLL a la
  62.  
  63. carpeta donde se encuentra el script y el video:
  64.  
  65. opencv_ffmpeg310_64.dll (64 bits) o opencv_ffmpeg310.dll (32 bits)
  66.  
  67. el archivo se puede encontrar dentro de la carpeta de OpenCV: C:\opencv\build\bin
Add Comment
Please, Sign In to add comment