Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.16 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.16 KB

Weathercock Nerf Gun Shield

Install OpenCV on MacOSX
brew tap homebrew/science
brew install pyenv-virtualenv pyenv-virtualenvwrapper opencv
sudo su
echo "/usr/local/lib/python2.7/site-packages/" > /Library/Python/2.7/site-packages/opencv.pth
echo "/usr/local/lib/python3.6/site-packages/" > /Library/Python/3.6/site-packages/opencv.pth
Install app dependencies on MacOSX
brew install cmake --with-python3
brew install boost-python --with-python3

pip install virtualenv virtualenvwrapper
mkvirtualenv cv -p python3
workon cv
pip install -r ../requirements.txt
Install app dependencies on Pi
workon cv
pip install -r ../requirements.txt
Encode portraits
python face_encoder.py /tmp/images encodings
Run
python main.py -h
python main.py --src_dir encodings --recognizer recognition --simulation  # Desktop
python main.py --src_dir encodings --recognizer detection --headless      # Pi