Files
2026-10-04 19:01:00 +00:00

54 lines
1.8 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
date: '2017-06-18T14:46:00+03:00'
lastmod: '2017-06-18T14:46:00+03:00'
draft: true
title: 'Подготовка окружения для работы OpenCV 3.2 на Python 3.6'
slug: 'podgotovka-okruzheniya-dlya-raboty-opencv-3-2-na-python-3-6'
categories:
- 'blog'
tags:
- 'blog'
cover:
image: "hero.svg"
alt: "Подготовка окружения для работы OpenCV 3.2 на Python 3.6"
---
Доброго дня, коллеги.
Потребовалось мне поднять веру в свои умственные способности путём реализации какое-либо проекта. Выбор пал на платформу компьютерного зрения OpenCV. Заодно решил счистить ржавчину со своих навыков работы с Python.
1. Ставим Python.
Дистрибутив берем с официального сайта https://www.python.org/downloads/windows/. Самая свежая версия на момент написания статьи 3.6.1. Установка в Windows не должна вызвать проблем.
2. Ставим PIP
Скрипт установки берём [https://bootstrap.pypa.io/get-pip.py](https://bootstrap.pypa.io/get-pip.py)
Запуск установки осуществляется командой:
>
python get-pip.py
3. Ставим пакеты Python
>
pip install numpy
pip install matplotlib
4. Ставим OpenCV
Качаем wheel файл под нужную разрядность [http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv](http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv).
Устанавливаем через pip
>
pip install opencv_python‑3.2.0‑cp36‑cp36m‑win_amd64.whl
5. Проверяем работу
import cv2
>