libfacedetection icon indicating copy to clipboard operation
libfacedetection copied to clipboard

Using objectdetect_cnn instead of facedetect_cnn

Open amir-saniyan opened this issue 4 years ago • 1 comments

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);

amir-saniyan avatar Oct 01 '20 15:10 amir-saniyan

@ShiqiYu don't you think the std::vector API is better for returning data collection rather than mangling with this (pResults + 1)) + 16*i ?

pszemus avatar Jun 27 '23 15:06 pszemus