mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed bug when image is missing
This commit is contained in:
@ -95,7 +95,6 @@ mat_cv *load_image_mat_cv(const char *filename, int flag)
|
||||
std::ofstream bad_list("bad.list", std::ios::out | std::ios::app);
|
||||
bad_list << shrinked_filename << std::endl;
|
||||
//if (check_mistakes) getchar();
|
||||
delete mat_ptr;
|
||||
return NULL;
|
||||
}
|
||||
cv::cvtColor(mat, mat, CV_RGB2BGR);
|
||||
|
Reference in New Issue
Block a user