Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Video: https://youtu.be/7fEguWHxnkg
- Autor: Weyne
- Canal: https://www.youtube.com/weyne
- Descargar OpenCV:
- https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.1.0/opencv-3.1.0.exe/download
- Descargar python:
- 64 bits: https://www.python.org/ftp/python/2.7.12/python-2.7.12.amd64.msi
- 32 bits: https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi
- Una vez instalado python y opencv, ingresar al directorio:
- C:\opencv\build\python\2.7
- (dependiendo de la arquitectura de SO 64 o 32 bits) y copiar el archivo cv2.pyd
- pegar el archivo en la siguiente ruta:
- C:\Python27\Lib\site-packages
- 1.agregar python y pip al PATH (Equipo -> click derecho Propiedades -> Configuración Avanzada del sistema ->
- Variables de Entorno -> Path -> Editar):
- ;C:\Python27\;C:\Python27\Scripts\
- ahora mediante la consola de windows usar los siguiente comandos
- 2.actualizar pip:
- python -m pip install --upgrade pip
- 3.Instalar numpy:
- pip install numpy
- 4.matplot:
- python -m pip install -U pip setuptools
- python -m pip install matplotlib
- 5.instalar imutils:
- pip install imutils
- NOTA:
- Cuando se programa un script que trabaja con lectura de un archivo de video, se necesita copiar una DLL a la
- carpeta donde se encuentra el script y el video:
- opencv_ffmpeg310_64.dll (64 bits) o opencv_ffmpeg310.dll (32 bits)
- el archivo se puede encontrar dentro de la carpeta de OpenCV: C:\opencv\build\bin
Add Comment
Please, Sign In to add comment