Merge pull request #18438 from alalek:dnn_onnx_importer_error_reporting

This commit is contained in:
Alexander Alekhin 2020-09-29 13:49:02 +00:00
commit 969b55036f
2 changed files with 283 additions and 179 deletions

View File

@ -39,7 +39,7 @@ public:
CV_Assert(params.has("zoom_factor_x") && params.has("zoom_factor_y"));
}
interpolation = params.get<String>("interpolation");
CV_Assert(interpolation == "nearest" || interpolation == "opencv_linear" || interpolation == "bilinear");
CV_Check(interpolation, interpolation == "nearest" || interpolation == "opencv_linear" || interpolation == "bilinear", "");
alignCorners = params.get<bool>("align_corners", false);
}

File diff suppressed because it is too large Load Diff