Remove unavoidable print of CV error#15111
Remove unavoidable print of CV error#15111alalek merged 2 commits intoopencv:3.4from RealOrangeOne:patch-1
Conversation
|
All This patch should go into 3.4 branch first. We will merge changes from 3.4 into master regularly (weekly/bi-weekly). So, please:
Note: no needs to re-open PR, apply changes "inplace". |
The return value covers whether the device exists. This might be better hidden behind a debug flag, but I couldn't work out how to do that nicely.
|
@alalek implemented your suggestions. Although in hindsight, i'm not sure whether keeping the log message. It's really not one which should be handed by OpenCV, more by the downstream user. I'm reasonably sure |
The message becomes avoidable. Set environment variable |
This pullrequest changes
This PR removes a print which was impossible to hide. My use case is it's also printed in the Python bindings, and as brute-forcing the camera ids is the only reliable way to enumerate all cameras, it's annoying and noisy to print each time.
The return value covers whether the device exists. This might be better hidden behind a debug flag, but I couldn't work out how to do that nicely.