Nirkin Face Segmentation
0.9.0
Deep face segmentation based on fully connected convolutional neural network.
|
This class provided deep face segmentation using Caffe with a fully connected convolutional neural network. More...
#include <face_seg.h>
Public Member Functions | |
FaceSeg (const std::string &deploy_file, const std::string &model_file, bool with_gpu=true, int gpu_device_id=0) | |
Construct FaceSeg instance. More... | |
cv::Mat | process (const cv::Mat &img) |
Do face segmentation. More... | |
This class provided deep face segmentation using Caffe with a fully connected convolutional neural network.
face_seg::FaceSeg::FaceSeg | ( | const std::string & | deploy_file, |
const std::string & | model_file, | ||
bool | with_gpu = true , |
||
int | gpu_device_id = 0 |
||
) |
Construct FaceSeg instance.
deploy_file | Network definition file for deployment (.prototxt). |
model_file | Network weights model file (.caffemodel). |
with_gpu | Toggle GPU. |
gpu_device_id | Set the GPU's device id. |
cv::Mat face_seg::FaceSeg::process | ( | const cv::Mat & | img | ) |
Do face segmentation.
img | BGR color image. |