Created
December 24, 2020 21:13
-
-
Save penut85420/72b4f3277b85c0c8dde3db9f6780719d to your computer and use it in GitHub Desktop.
Ubuntu OpenPose Installation Script
This file contains 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
#!/bin/bash | |
export SOFTWARE_INSTALL_DIR=/usr/local/soft | |
# Prerequisites Installation | |
sudo apt update | |
sudo apt full-upgrade -y | |
sudo apt autoremove -y | |
sudo apt install gcc g++ make autoconf git libtool curl unzip python3-pip cmake-qt-gui caffe-cpu libopencv-dev python-dev libgoogle-glog-dev libboost-all-dev libhdf5-dev libatlas-base-dev -y | |
sudo apt clean | |
pip3 install -U pip numpy opencv-python | |
# Directory Configuration | |
sudo mkdir -p $SOFTWARE_INSTALL_DIR | |
cd $SOFTWARE_INSTALL_DIR | |
sudo chown -R $USERNAME:$USERNAME $SOFTWARE_INSTALL_DIR | |
# Protocol Buffers Installation | |
git clone https://github.com/protocolbuffers/protobuf.git | |
cd protobuf | |
git submodule update --init --recursive | |
./autogen.sh | |
./configure | |
make | |
make check | |
sudo make install | |
sudo ldconfig | |
# OpenPose Installation | |
cd $SOFTWARE_INSTALL_DIR | |
git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose | |
cd openpose | |
git submodule update --init --recursive --remote | |
sudo mkdir build/ | |
cd build/ | |
sudo cmake-gui .. | |
make -j`nproc` | |
# Running Example | |
# cd $SOFTWARE_INSTALL_DIR/openpose | |
# ./build/examples/openpose/openpose.bin --video examples/media/video.avi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment