TX2入门教程软件篇-安装openpose(jetpack3.3)
TX2入门教程软件篇-安装openpose(jetpack3.3)
说明:
- 介绍如何在tx2下安装安装openpose
- 测试环境:jetpack3.3
步骤:
- 下载源码
mkdir -p ~/dl/
cd ~/dl/
git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose
安装一:
- 同时安装caffe和openpose
cd ~/dl/openpose
bash ./scripts/ubuntu/install_caffe_and_openpose_JetsonTX2_JetPack3.3.sh
安装二:
- 如果网络不稳定,这个导致安装一的方法不成功,可以分步安装
- 先安装caffe,具体流程参考:TX2入门教程软件篇-安装caffe(jetpack3.3)
cd ~/dl/openpose/3rdparty
git clone https://github.com/CMU-Perceptual-Computing-Lab/caffe.git caffe
cd caffe
./install_caffe_JetsonTX2_JetPack3.3.sh
- 再安装openpose并下载模型
cd ~/dl/openpose
sudo bash scripts/ubuntu/install_openpose_JetsonTX2_JetPack3.3.sh
- 编译Caffe、Openpose、下载Caffe models,运行完成后会在./build_release 目录中生成相关运行文件
./build/examples/openpose/openpose.bin
测试:
- 加载环境
export LC_ALL=en_US.UTF-8
export LD_LIBRARY_PATH=$PWD/3rdparty/caffe/build/lib/:$LD_LIBRARY_PATH
- 运行openpose,测试视频
./build/examples/openpose/openpose.bin --video ./examples/media/video.avi --model_folder ./models/
- 运行openpose,相机测试
- 先接usb摄像头,确保相机能正常使用
./build/examples/openpose/openpose.bin -camera_resolution 640x480 -net_resolution 128x96
获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号