Quiet output of cv::error in Java tests

Introduced new Java API
void org.opencv.core.Core.setErrorVerbosity(boolean verbose)
used to suppress output to stderr from OpenCV's asserts
This commit is contained in:
Andrey Kamaev
2013-01-23 12:27:30 +04:00
parent 5eabcf8e4f
commit caa2c06e50
5 changed files with 51 additions and 23 deletions

View File

@@ -439,7 +439,7 @@ void error( const Exception& exc )
exc.func.c_str() : "unknown function", exc.file.c_str(), exc.line );
fprintf( stderr, "%s\n", buf );
fflush( stderr );
# ifdef ANDROID
# ifdef __ANDROID__
__android_log_print(ANDROID_LOG_ERROR, "cv::error()", "%s", buf);
# endif
}