Skip to content

It is not possible to redirect some error printed directly to cerr #23994

@sbellus

Description

@sbellus

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions