项目作者: pazagra

项目描述 :
Skeleton Detection in Caffe2
高级语言: Python
项目地址: git://github.com/pazagra/SkeletonCaffe2.git
创建时间: 2018-05-31T09:37:26Z
项目社区:https://github.com/pazagra/SkeletonCaffe2

开源协议:GNU General Public License v3.0

下载


SkeletonCaffe2

This respository aims to provide a caffe2 version in python of the work:

Contents

  1. Installation
  2. Usage
  3. Limitations

Installation

This version needs caffe2, Opencv and scipy to work.The versions i have try are:

  • Opencv 3.4.1
  • Scipy 1.1.0
  • Sklearn 0.19.1
  • Numpy 1.14.3
  • OS Ubuntu 16.04

Then clone this repository:

  1. git clone https://github.com/pazagra/SkeletonCaffe2

After that you need to download and convert the pretrained models:

  1. cd model
  2. chmod +x get_model.sh
  3. ./get_model.sh

This will populate the model folder.

Usage

You can launch the Test provided:

  1. python TestC2.py

This should print the dictionary of the skeleton and show the image with the skeleton drawn.

The code for the skeleton is in the file CNNCafe2.py and it is encapsulate in the class skeleton. This class has a function call get_skeleton that receives a images and the scales that you want to use (the lower the scale is, the faster it will be but it will have less accuracy).

Limitations

For the moment, it is limited to output one skeleton for each image. The Bounding Box is calculated when more than one skeleton is found and the bigger one is return.