Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
that-learner opened this issue Jul 26, 2022 · 2 comments
Open

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

that-learner opened this issue Jul 26, 2022 · 2 comments

Comments

@that-learner
Copy link

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

@that-learner
Copy link
Author

that-learner commented Jul 27, 2022

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

@that-learner
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant