nwesem / mtcnn_facenet_cpp_tensorRT

Face Recognition on NVIDIA Jetson (Nano) using TensorRT
GNU General Public License v3.0
203 stars 72 forks source link

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

Open that-learner opened 2 years ago

that-learner commented 2 years ago

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

that-learner commented 2 years ago

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

that-learner commented 2 years ago

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