Open changtimwu opened 7 years ago
http://www.pyimagesearch.com/2016/12/19/install-opencv-3-on-macos-with-homebrew-the-easy-way/
opencv:
pip3 install opencv-python
test if this really works
import cv2
do not use
https://github.com/conda/conda/issues/2448conda
since its opencv is still broken
http://zulko.github.io/moviepy/install.html
pip3 install moviepy pygame
pip3 install scipy scikit-image scikit-video
even though it says The software FFMPEG should be automatically downloaded/installed (by imageio) during your first use of MoviePy (it takes a few seconds).
from moviepy.editor import VideoFileClip
still fails on my env.
Please manually install ffmpeg
brew install ffmpeg
if conda installation of tensorflow doesn't work
pip3 install tensorflow
pip3 install tensorflow-gpu
be familiar with numpy since ndarray is the default image type. https://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray
>>> import matplotlib.image as mpimg
>>> import numpy as np
>>> import cv2
>>> image = mpimg.imread('exit-ramp.jpg')
>>> image.dtype
dtype('uint8')
>>> image.shape
(540, 960, 3)
OSX:
python3
Anaconda on python3
Be patient on the anaconda. It saves lots of time even though it requires some tweaks. https://github.com/udacity/CarND-Term1-Starter-Kit/blob/master/doc/configure_via_anaconda.md
python notebook on python3