Last active
December 17, 2015 06:28
-
-
Save jeremyfelt/5565120 to your computer and use it in GitHub Desktop.
Steps to install Webcam Pulse Detector in OS X 10.8.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Starting with... | |
# OS X 10.8.3 | |
# python 2.7.2 // python --version | |
# c++ 4.0 // c++ --version | |
# g++ 4.2 // g++ --version | |
# | |
# Update/Install XCode command line utils | |
# c++ 4.2 // c++ --version | |
# | |
# Doing all my work in ~/Development | |
cd ~/Development | |
# Update brew packages | |
brew update | |
# Install Python Package Index | |
sudo easy_install pip | |
# Install NumPy - was already installed for me | |
sudo pip install numpy | |
# Verify that NumPy is available to Python | |
python | |
import numpy | |
quit() | |
# Would see a file import error if not successful | |
# SciPy requires a Fortran compiler, available via brew | |
brew install gfortran | |
# Install SciPy | |
sudo pip install scipy | |
# Verify that SciPy is available to Python | |
python | |
import scipy | |
quit() | |
# Would see a file import error if not successful | |
# Install matplotlib | |
sudo pip install matplotlib | |
# OpenCV 2.4.5 | |
# | |
# Download tar file for Mac/Linux from http://opencv.org/downloads.html | |
# to ~/Development | |
tar -xvf opencv-2.4.5.tar.gz | |
cd opencv-2.4.5 | |
mkdir release | |
cd release | |
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON .. | |
make | |
make install | |
# OpenCV was still not available to Python until I added | |
# it to the PYTHONPATH variable | |
PYTHONPATH="/usr/local/python-2.7.2" | |
export PYTHONPATH | |
# Verify that cv2 is available to Python | |
python | |
import cv2 | |
quit() | |
# Would see a file import error if not successful | |
# OpenMDAO 0.6.0 | |
# | |
# Download go-openmdao.py from http://openmdao.org/downloads-2/recent/ | |
# to ~/Development | |
python go-openmdao.py | |
# Clone Webcam Pulse Detector repo | |
git clone git://github.com/thearn/webcam-pulse-detector.git | |
# Launch OpenMDAO terminal | |
. openmdao-0.6.0/bin/activate | |
# Launch Webcam Pulse Detector | |
cd webcam-pulse-detector | |
python get_pulse.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment