ShiqiYu / libfacedetection

An open source library for face detection in images. The face detection speed can reach 1000FPS.
Other
12.27k stars 3.05k forks source link

where is the code to resize the input image to specific shape just same as prototxt? #138

Closed BT123 closed 4 years ago

BT123 commented 5 years ago

Is the model you used to detect faces in images same as the caffe/tengine model in ./models? The models need an image which shape is (320,240), but I don't find any code to resize the input image to the specific size. Can Dr. Yu give me some advise? Thank you!

feiliuzhixia1000m commented 5 years ago

I have the same question。

XuejianLiu commented 5 years ago

resize(image, image, Size(320,240));

HosseynGT commented 4 years ago

resize(image, image, Size(320,240)); check line 138 in yu_facedetection.cpp

cv::resize(img, resize_img, cv::Size(img_w, img_h), 0, 0,cv::INTER_NEAREST);