ubuntu18.04编译openpose的python接口

ubuntu18.04系统的cmake要从源码编译!!!!!!!!!!!!

ubuntu18.04系统的cmake要从源码编译!!!!!!!!!!!!

ubuntu18.04系统的cmake要从源码编译!!!!!!!!!!!!

ubuntu18.04系统的cmake要从源码编译!!!!!!!!!!!!

否则在执行命令make -j`nproc`时,会报如下错误

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

Please set them or make sure they are set and tested correctly in the CMake files:

CUDA_cublas_device_LIBRARY (ADVANCED)

    linked by target "caffe" in directory /home/jakebmalis/Documents/openpose/3rdparty/caffe/src/caffe

 

这是因为ubuntu18和cmake的问题,需要源码编译cmake

cmake源码编译cmake过程 https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/prerequisites.md

Ubuntu 18: Download and compile CMake-gui from source. The default CMake-gui version (3.10) installed via sudo apt-get install cmake-qt-gui provokes some compiling errors. Required CMake version >= 3.12.

* Uninstall your current Cmake-gui version by running sudo apt purge cmake-qt-gui.

* Run sudo apt-get install qtbase5-dev.

* Download the Latest Release of CMake Unix/Linux Source from the CMake download website, called cmake-X.X.X.tar.gz.

* Unzip it and go inside that folder from the terminal.

* Run ./configure --qt-gui. Make sure no error occurred.

* Run ./bootstrap && make -j`nproc` && sudo make install -j`nproc` . Make sure no error occurred.

* Assuming your CMake downloaded folder is in {CMAKE_FOLDER_PATH}, everytime these instructions mentions cmake-gui, you will have to replace that line by {CMAKE_FOLDER_PATH}/bin/cmake-gui.

 

openpose python API整体编译步骤参考

https://medium.com/pixel-wise/real-time-pose-estimation-in-webcam-using-openpose-python-2-3-opencv-91af0372c31c

到第7步就可以结束,openpose位于build/python目录下,需要拷贝openpose文件夹到指定虚拟环境目录下

import方式

from openpose import pyopenpose as op

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值