Introduced new Java API void org.opencv.core.Core.setErrorVerbosity(boolean verbose) used to suppress output to stderr from OpenCV's assertspull/315/head
parent
5eabcf8e4f
commit
caa2c06e50
5 changed files with 54 additions and 26 deletions
@ -0,0 +1,15 @@ |
|||||||
|
#define LOG_TAG "org.opencv.core.Core" |
||||||
|
#include "common.h" |
||||||
|
|
||||||
|
static int quietCallback( int, const char*, const char*, const char*, int, void* ) |
||||||
|
{ |
||||||
|
return 0; |
||||||
|
} |
||||||
|
|
||||||
|
void cv::setErrorVerbosity(bool verbose) |
||||||
|
{ |
||||||
|
if(verbose) |
||||||
|
cv::redirectError(0); |
||||||
|
else |
||||||
|
cv::redirectError((cv::ErrorCallback)quietCallback); |
||||||
|
} |
Loading…
Reference in new issue