demo.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:Lifting-from-the-Deep-release 作者: DenisTome 项目源码 文件源码
def main():
    image = cv2.imread(IMAGE_FILE_PATH)
    image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)  # conversion to rgb

    # create pose estimator
    image_size = image.shape

    pose_estimator = PoseEstimator(image_size, SESSION_PATH, PROB_MODEL_PATH)

    # load model
    pose_estimator.initialise()

    # estimation
    pose_2d, visibility, pose_3d = pose_estimator.estimate(image)

    # close model
    pose_estimator.close()

    # Show 2D and 3D poses
    display_results(image, pose_2d, visibility, pose_3d)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号