Skip to content

Instantly share code, notes, and snippets.

@penut85420
Created December 24, 2020 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save penut85420/72b4f3277b85c0c8dde3db9f6780719d to your computer and use it in GitHub Desktop.
Save penut85420/72b4f3277b85c0c8dde3db9f6780719d to your computer and use it in GitHub Desktop.
Ubuntu OpenPose Installation Script
#!/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