-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
It is not possible to redirect some error printed directly to cerr #23994
Copy link
Copy link
Closed
Description
System Information
Problem in source code at any platform
https://github.com/opencv/opencv/blob/4.x/modules/imgcodecs/src/loadsave.cpp#L440
and on other places
Detailed description
The code uses direct print to std::cerr (e.g. https://github.com/opencv/opencv/blob/4.x/modules/imgcodecs/src/loadsave.cpp#L440)
Then it is not possible to redirect via cv::redirectError.
Steps to reproduce
See code https://github.com/opencv/opencv/blob/4.x/modules/imgcodecs/src/loadsave.cpp#L440
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files (videos, images, onnx, etc)
Reactions are currently unavailable