Skeleton Detection in Caffe2
This respository aims to provide a caffe2 version in python of the work:
This version needs caffe2, Opencv and scipy to work.The versions i have try are:
Then clone this repository:
git clone https://github.com/pazagra/SkeletonCaffe2
After that you need to download and convert the pretrained models:
cd model
chmod +x get_model.sh
./get_model.sh
This will populate the model folder.
You can launch the Test provided:
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).
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.