基于tf的pose-estimation
依赖:
•python3
•tensorflow 1.4.1+
•opencv3, protobuf, python3-tk
•slim
•slidingwindow
安装:
1、安装依赖包
pip3 install -r requirements.txt
在安装ast时会报错: FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users.....
不用管,Python已经有ast了,所以把ast删掉,再pip install一遍。
2、build post processing的C++库
$ cd tf_pose/pafprocess
$ swig -python -c++ pafprocess.i && python3 setup.py build_ext --inplace
3、安装tf-pose
$ cd tf-openpose
$ python setup.py install
4、单个图像demo
$ python run.py --model=mobilenet_thin --resize=432x368 --image=./images/p1.jpg
5、摄像头demo
Realtime Webcam
$ python run_webcam.py --model=mobilenet_thin --resize=432x368 --camera=0
6、检测本地视频:
python src/run_video.py --model=mobilenet_thin --resolution=432x368 --video=child.mp4