-
Notifications
You must be signed in to change notification settings - Fork 23
Installation
Yossi edited this page Oct 30, 2016
·
7 revisions
Make sure everything is up to date
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential
$ sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev libjasper-dev python2.7-dev
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
pip install numpy
$ cd ~
$ git clone https://github.com/Itseez/opencv.git
$ cd opencv
$ git checkout 3.1.0
$ cd ~/opencv
$ mkdir build
$ cd build
$ cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local ..
$ make -j4
4 is the number of available cores on your processor
$ sudo make install
$ sudo ldconfig
$ python
>>> import cv2
>>>> cv2.__version__
'3.1.0'
$ cd ~
$ git clone https://github.com/CardiganCam/Cardigan.git
$ cd Cardigan
python ~/Cardigan/main.py
$ sudo nano /etc/rc.local
Add this 2 lines
node /home/Dride/dride-ws/server/app.js
python /home/Dride/mainPi.py
Cardigan is a platform for creating the next car apps!