mtcnn_facenet_cpp_tensorRT icon indicating copy to clipboard operation
mtcnn_facenet_cpp_tensorRT copied to clipboard

opencv resize.cpp:!ssize.empty() in function 'resize'

Open that-learner opened this issue 3 years ago • 2 comments

I put my picture in ../imgs and run ./mtcnn_facenet_cpp_tensorRT, error :opencv resize.cpp:!ssize.empty() in function 'resize'

that-learner avatar Jul 26 '22 12:07 that-learner

sometimes it no errors,sometimes it gets the error,strange

that-learner avatar Jul 27 '22 02:07 that-learner

already solved,maybe the frame of camera is empty at first, i add if judge code in mtcnn.cpp as follows:(line 122) if(image(temp).empty()){continue;}//add this resize(image(temp), secImage, cv::Size(24, 24), 0, 0, cv::INTER_LINEAR);

that-learner avatar Jul 27 '22 03:07 that-learner