This was created as part of an educational for the Western Founders Network computer vision and machine learning educational session.
The final demo can be seen here and below:
notebook.ipynb contains a full tutorial of basic computer vision and machine learning concepts, including:
Use the spec-file.txt provided, install identical packages
$ conda create -n [ENV_NAME] --file spec-file.txt # create new env with same packages
or, if you have an existing environment
$ conda install -n [ENV_NAME] --file spec-file.txt # install packages into an existing env
Then activate the environment
$ activate cv
Install OpenCV3 (https://opencv.org/)
Download whl file https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
Download “opencv_python 3.4.0+contrib cp35 cp35m win32.whl” or “opencv_python 3.4.0+contrib cp35 cp35m win_amd64.whl” for 32bit and 64bit respectively
Install package
$ pip install [file path]
Using the environment.yml file provided, run
$ conda create -n cv --file environment.yml
or, if you have an existing environment
$ conda install -n [ENV_NAME] --file environment.yml # install packages into an existing env
Activate the environment
$ activate cv
Install OpenCV3 (https://opencv.org/)
Download whl file https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
Download “opencv_python 3.4.0+contrib cp35 cp35m win32.whl” or “opencv_python 3.4.0+contrib cp35 cp35m win_amd64.whl” for 32bit and 64bit respectively
Install the package
$ pip install [file path]
Create and activate a Python 3.5 conda environment called cv.
$ conda create -n cv python=3.5
$ activate cv
Install Numpy (http://www.numpy.org/)
$ conda install numpy
Install Matplotlib (https://matplotlib.org/)
$ conda install matplotlib
Install Keras (https://keras.io/)
$ conda install keras
Install h5py (http://www.h5py.org/)
$ conda install h5py
Install OpenCV3 (https://opencv.org/)
Download whl file https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
Download “opencv_python 3.4.0+contrib cp35 cp35m win32.whl” or “opencv_python 3.4.0+contrib cp35 cp35m win_amd64.whl” for 32bit and 64bit respectively
Install package
$ pip install [file path]
Install Jupyter Notebook (http://jupyter.org/)
$ conda install jupyter notebook
Install IPython (https://ipython.org/)
$ conda install ipython
For Miniconda, open terminal and navigate to the directory you downloaded Miniconda3-latest-MacOSX-x86_64.sh to and run:
$ bash Miniconda3-latest-MacOSX-x86_64.sh
For Anaconda, double click the Anaconda3-5.0.1-MacOSX-x86_64.pkg file you downloaded
For Miniconda, open a terminal and navigate to the directory you downloaded Miniconda3-latest-MacOSX-x86_64.sh to and run:
$ bash Miniconda3-latest-MacOSX-x86_64.sh
For Anaconda, open a terminal and navigate to the directory you downloaded Miniconda3-latest-MacOSX-x86_64.sh to and run:
$ bash Anaconda3-5.0.1-Linux-x86_64.sh
Create and activate a Python 3.5 conda environment called cv.
$ conda create -n cv python=3.5
$ source activate cv
Install Numpy (http://www.numpy.org/)
$ conda install numpy
Install Matplotlib (https://matplotlib.org/)
$ conda install matplotlib
Install Keras (https://keras.io/)
$ conda install keras
Install h5py (http://www.h5py.org/)
$ conda install h5py
Install Jupyter Notebook (http://jupyter.org/)
$ conda install jupyter notebook
Install IPython (https://ipython.org/)
$ conda install ipython
Install OpenCV3 (https://opencv.org/)
$ conda install -c conda-forge opencv
if the import cv2
does not work with this install, try instead:
$ conda install -c https://conda.anaconda.org/menpo opencv3
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。