基于openpose对人体姿势识别
代码来源GitHub: camera-openpose-keras 这个openpose模型是keras版,模型参数文件约为200M,实现代码在demo_camera.py文件中,预测摄像头捕获的画面: import argparse import cv2 import math import time import numpy as np import util from config_reader import config_reader from scipy . ndimage . filters import gaussian_filter from model import get_testing_model tic = 0 # find connection in the specified sequence, center 29 is in the position 15 limbSeq = [ [ 2 , 3 ] , [ 2 , 6 ] , [ 3 , 4 ] , [ 4 , 5 ] , [ 6 , 7 ] , [ 7 , 8 ] , [ 2 , 9 ] , [ 9 , 10 ] , \ [ 10 , 11 ] , [ 2 , 12 ] , [ 12 , 13 ] , [ 13 , 14 ] , [ 2 , 1 ] , [ 1 , 15 ] , [ 15 , 17