libfacedetection
libfacedetection copied to clipboard
Using objectdetect_cnn instead of facedetect_cnn
Why should I use facedetect_cnn
function while objectdetect_cnn
exists and has a better signature?
facedetect_cnn signature:
FACEDETECTION_EXPORT int * facedetect_cnn(unsigned char * result_buffer, //buffer memory for storing face detection results, !!its size must be 0x20000 Bytes!!
unsigned char * rgb_image_data, int width, int height, int step); //input image, it must be BGR (three channels) insteed of RGB image!
objectdetect_cnn signature:
vector<FaceRect> objectdetect_cnn(unsigned char * rgbImageData, int with, int height, int step);
@ShiqiYu don't you think the std::vector
API is better for returning data collection rather than mangling with this (pResults + 1)) + 16*i
?