How to Setup OpenCV in Python 3.6 Virtual Environment | Windows 7
Facebook:
www.facebook.com/clueple
Part 1
I am shooting this video
just to remind myself
how to install OpenCV
in Python 3.6 Virtual Environment
First of all
we need to download the OpenCV wheel file
From Christoph Kolhke's website
we can find out the OpenCV wheel file by
pressing Ctrl + F
Simply doubleclick the version that fits your Python
and you're good to go
It's going to take a while to download
Just be patient
Remember the location that you saved the wheel file
we need the path later for installation
Part 2
If you haven't setup your Python virtual environment
you can watch from the 9th second to 1 min 16 of this clip
for the setup
Part 3
Once we've setup virtualenv
we move on to creating the details
First of all
go to the command prompt
Let's say our virtual environment folder sits inside D drive
In D drive
we create a folder called "graphics"
The folder name can be anything
Since I am using this environment for graphics
I just name it "graphics"
Here
we need to go to the "graphics" folder
simply type
CD graphics
Inside the graphics folder
we install our virtual environment with the name
"testGraphics"
so
we type
virtualenv --no-site-packages testGraphics
Hit [Enter]
and it starts downloading
Now
we're ready to setup OpenCV
Part 4
Before we setup the OpenCV
we need to activate our virtual environment
Go back to command prompt
Go to D drive
where our environment sits
and type
.\graphics\testGraphics\Scripts\activate.bat
Get to the OpenCV wheel file location
which is Downloads in F drive
Simply type
cd Downloads
Click back to the Downloads folder
and look for wheel file's name
Then go back to command prompt
and type
pip install "opencv_python-3.2.0-cp36-cp36m-win_amd64.whl"
Hit [Enter]
and the installation process begins
Once we get OpenCV setup
we can test our environment
Go back to command prompt
type CD\ to go back to top of D drive
then type
python -m idlelib.idle
to get to the command prompt
Remember we also need
matplotlib and numpy
simply pip install them respectively
Once we get that done
go back to Python idle
and import
cv2
matplotlib
and numpy
If you don't see error message
then you're good to go
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to Setup OpenCV in Python 3.6 Virtual Environment | Windows 7», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.