Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Install
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PET Computação
Install
Commits
41ddda36
There was a problem fetching the pipeline summary.
Commit
41ddda36
authored
7 years ago
by
mmc16
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
009f9b68
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install-opencv.sh
+65
-0
65 additions, 0 deletions
install-opencv.sh
with
65 additions
and
0 deletions
install-opencv.sh
0 → 100644
+
65
−
0
View file @
41ddda36
# KEEP UBUNTU OR DEBIAN UP TO DATE
sudo
apt-get
-y
update
sudo
apt-get
-y
upgrade
sudo
apt-get
-y
dist-upgrade
sudo
apt-get
-y
autoremove
# INSTALL THE DEPENDENCIES
# Build tools:
sudo
apt-get
install
-y
build-essential cmake
# GUI (if you want to use GTK instead of Qt, replace 'qt5-default' with 'libgtkglext1-dev' and remove '-DWITH_QT=ON' option in CMake):
sudo
apt-get
install
-y
qt5-default libvtk6-dev
# Media I/O:
sudo
apt-get
install
-y
zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev libopenexr-dev libgdal-dev
# Video I/O:
sudo
apt-get
install
-y
libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev yasm libopencore-amrnb-dev libopencore-amrwb-dev libv4l-dev libxine2-dev
# Parallelism and linear algebra libraries:
sudo
apt-get
install
-y
libtbb-dev libeigen3-dev
# Python:
sudo
apt-get
install
-y
python-dev python-tk python-numpy python3-dev python3-tk python3-numpy
# Java:
sudo
apt-get
install
-y
ant default-jdk
# Documentation:
sudo
apt-get
install
-y
doxygen
# INSTALL THE LIBRARY (YOU CAN CHANGE '3.2.0' FOR THE LAST STABLE VERSION)
sudo
apt-get
install
-y
unzip wget
cd
~
git clone https://github.com/Itseez/opencv.git
cd
opencv
git checkout 3.2.0
cd
~
git clone https://github.com/Itseez/opencv_contrib.git
cd
opencv_contrib
git checkout 3.2.0
cd
~/opencv
mkdir
build
cd
build
cmake
-D
CMAKE_BUILD_TYPE
=
RELEASE
\
-D
CMAKE_INSTALL_PREFIX
=
/usr/local
\
-D
INSTALL_C_EXAMPLES
=
OFF
\
-D
INSTALL_PYTHON_EXAMPLES
=
ON
\
-D
OPENCV_EXTRA_MODULES_PATH
=
~/opencv_contrib/modules
\
-D
BUILD_EXAMPLES
=
ON ..
make
-j4
sudo
make
install
sudo
ldconfig
# EXECUTE SOME OPENCV EXAMPLES AND COMPILE A DEMONSTRATION
# To complete this step, please visit 'http://milq.github.io/install-opencv-ubuntu-debian'.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment