Difference between revisions of "Installing OpenCV on NanoPI Neo"

From wiki.ferrari.mo.it
Jump to navigation Jump to search
Line 9: Line 9:
 
  apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
 
  apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
 
  apt-get install proto
 
  apt-get install proto
 +
 +
then, download OpenCV sources:
 +
 +
wget https://github.com/opencv/opencv/archive/3.4.2.zip
 +
unzip 3.4.2.zip
 +
 +
and
 +
 +
cd opencv-3.4.2
 +
mkdir build
 +
cd build
 +
 +
Then, begin the installation:
 +
 +
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
 +
make -j1
 +
 +
WARNING: If number of processes is greater than 1, you will have an out of memory subtle error.

Revision as of 12:18, 19 July 2018

Installing OpenCV on Nanopi Neo

Install Operating System from FriendlyElec. Username root password fa.

apt-get update
apt-get install build-essential
apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
apt-get install proto

then, download OpenCV sources:

wget https://github.com/opencv/opencv/archive/3.4.2.zip
unzip 3.4.2.zip

and

cd opencv-3.4.2
mkdir build
cd build

Then, begin the installation:

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
make -j1

WARNING: If number of processes is greater than 1, you will have an out of memory subtle error.