OpenCV 4.10.0
开源计算机视觉
|
命名空间 | |
命名空间 | cv |
磁盘上与文件关联的文件存储的"黑盒"表示。 | |
命名空间 | cv::utils::logging::internal |
类 | |
结构体 | cv::utils::logging::LogTagAuto |
宏 | |
#define | CV_LOG_DEBUG(tag, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_DEBUG, , , __VA_ARGS__) |
#define | CV_LOG_ERROR(tag, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_ERROR, , , __VA_ARGS__) |
#define | CV_LOG_FATAL(tag, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_FATAL, , , __VA_ARGS__) |
#define | CV_LOG_IF_DEBUG(tag, logging_cond, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_DEBUG, , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#define | CV_LOG_IF_ERROR(tag, logging_cond, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_ERROR, , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#define | CV_LOG_IF_FATAL(tag, logging_cond, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_FATAL, , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#define | CV_LOG_IF_INFO(tag, logging_cond, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_INFO, , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#define | CV_LOG_IF_VERBOSE(tag, v, logging_cond, ...) CV_LOG_WITH_TAG(tag, (cv::utils::logging::LOG_LEVEL_VERBOSE + (int)(v)), , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#define | CV_LOG_IF_VERBOSE(tag, v, logging_cond, ...) |
#define | CV_LOG_IF_WARNING(tag, logging_cond, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_WARNING, , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#define | CV_LOG_INFO(tag, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_INFO, , , __VA_ARGS__) |
#define | CV_LOG_LEVEL_DEBUG 5 |
调试信息。在“发布”构建中禁用。 | |
#define | CV_LOG_LEVEL_ERROR 2 |
错误信息。 | |
#define | CV_LOG_LEVEL_FATAL 1 |
致命(关键)错误(不可恢复的内部错误) | |
#define | CV_LOG_LEVEL_INFO 4 |
信息信息。 | |
#define | CV_LOG_LEVEL_SILENT 0 |
用于在 setLogLevel() 调用中使用 | |
#define | CV_LOG_LEVEL_VERBOSE 6 |
详细信息(跟踪)信息。需要详细级别。在“发布”构建中禁用。 | |
#define | CV_LOG_LEVEL_WARN 3 |
警告信息。 | |
#define | CV_LOG_ONCE_DEBUG(tag, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_DEBUG, CV__LOG_ONCE_CHECK_PRE, CV__LOG_ONCE_CHECK_POST, __VA_ARGS__) |
#define | CV_LOG_ONCE_ERROR(tag, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_ERROR, CV__LOG_ONCE_CHECK_PRE, CV__LOG_ONCE_CHECK_POST, __VA_ARGS__) |
#define | CV_LOG_ONCE_INFO(tag, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_INFO, CV__LOG_ONCE_CHECK_PRE, CV__LOG_ONCE_CHECK_POST, __VA_ARGS__) |
#define | CV_LOG_ONCE_VERBOSE(tag, v, ...) CV_LOG_WITH_TAG(tag, (cv::utils::logging::LOG_LEVEL_VERBOSE + (int)(v)), CV__LOG_ONCE_CHECK_PRE, CV__LOG_ONCE_CHECK_POST, __VA_ARGS__) |
#define | CV_LOG_ONCE_VERBOSE(tag, v, ...) |
#define | CV_LOG_ONCE_WARNING(tag, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_WARNING, CV__LOG_ONCE_CHECK_PRE, CV__LOG_ONCE_CHECK_POST, __VA_ARGS__) |
#define | CV_LOG_STRIP_LEVEL CV_LOG_LEVEL_VERBOSE |
#define | CV_LOG_VERBOSE(tag, v, ...) CV_LOG_WITH_TAG(tag, (cv::utils::logging::LOG_LEVEL_VERBOSE + (int)(v)), , , __VA_ARGS__) |
#define | CV_LOG_makeConstraints(tag, v, ...) |
#define | CV_LOG_WARNING(tag, ...) CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_WARNING, , , __VA_ARGS__) |
#define | CV_LOG_WITH_TAG(tag, msgLevel, extra_check0, extra_check1, ...) |
#define | CV_LOGTAG_EXPAND_NAME(tag) tag |
#define | CV_LOGTAG_FALLBACK nullptr |
#define | CV_LOGTAG_GLOBAL cv::utils::logging::internal::getGlobalLogTag() |
#define | CV_LOGTAG_PTR_CAST(expr) static_cast<const cv::utils::logging::LogTag*>(expr) |
#define | CV_TRACE_ARG(arg_id) |
用于跟踪参数值的宏。 | |
#define | CV_TRACE_ARG_VALUE(arg_id, arg_name, value) |
用于跟踪参数值(展开版本)。 | |
#define | CV_TRACE_FUNCTION() |
用于跟踪函数的宏。 | |
#define | CV_TRACE_FUNCTION_SKIP_NESTED() |
#define | CV_TRACE_REGION(name_as_static_string_literal) |
#define | CV_TRACE_REGION_NEXT(name_as_static_string_literal) |
函数 | |
LogLevel | cv::utils::logging::getLogLevel () |
cv::utils::logging::LogLevel | cv::utils::logging::getLogTagLevel (const char *tag) |
void | cv::utils::logging::registerLogTag (cv::utils::logging::LogTag *plogtag) |
LogLevel | cv::utils::logging::setLogLevel (LogLevel logLevel) |
void | cv::utils::logging::setLogTagLevel (const char *tag, cv::utils::logging::LogLevel level) |
#define CV_LOG_DEBUG | ( | tag, | |
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_DEBUG, , , __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_ERROR | ( | tag, | |
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_ERROR, , , __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_FATAL | ( | tag, | |
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_FATAL, , , __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_IF_DEBUG | ( | tag, | |
logging_cond, | |||
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_DEBUG, , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_IF_ERROR | ( | tag, | |
logging_cond, | |||
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_ERROR, , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_IF_FATAL | ( | tag, | |
logging_cond, | |||
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_FATAL, , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_IF_INFO | ( | tag, | |
logging_cond, | |||
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_INFO, , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_IF_VERBOSE | ( | tag, | |
v, | |||
logging_cond, | |||
... | |||
) | CV_LOG_WITH_TAG(tag, (cv::utils::logging::LOG_LEVEL_VERBOSE + (int)(v)), , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_IF_VERBOSE | ( | tag, | |
v, | |||
logging_cond, | |||
... | |||
) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_IF_WARNING | ( | tag, | |
logging_cond, | |||
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_WARNING, , CV__LOG_IF_CHECK(logging_cond), __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_INFO | ( | tag, | |
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_INFO, , , __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_LEVEL_DEBUG 5 |
#include <opencv2/core/utils/logger.defines.hpp>
调试信息。在“发布”构建中禁用。
#define CV_LOG_LEVEL_ERROR 2 |
#include <opencv2/core/utils/logger.defines.hpp>
错误信息。
#define CV_LOG_LEVEL_FATAL 1 |
#include <opencv2/core/utils/logger.defines.hpp>
致命(关键)错误(不可恢复的内部错误)
#define CV_LOG_LEVEL_INFO 4 |
#include <opencv2/core/utils/logger.defines.hpp>
信息信息。
#define CV_LOG_LEVEL_SILENT 0 |
#include <opencv2/core/utils/logger.defines.hpp>
用于在 setLogLevel() 调用中使用
#define CV_LOG_LEVEL_VERBOSE 6 |
#include <opencv2/core/utils/logger.defines.hpp>
详细信息(跟踪)信息。需要详细级别。在“发布”构建中禁用。
#define CV_LOG_LEVEL_WARN 3 |
#include <opencv2/core/utils/logger.defines.hpp>
警告信息。
#define CV_LOG_ONCE_DEBUG | ( | tag, | |
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_DEBUG, CV__LOG_ONCE_CHECK_PRE, CV__LOG_ONCE_CHECK_POST, __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_ONCE_ERROR | ( | tag, | |
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_ERROR, CV__LOG_ONCE_CHECK_PRE, CV__LOG_ONCE_CHECK_POST, __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_ONCE_INFO | ( | tag, | |
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_INFO, CV__LOG_ONCE_CHECK_PRE, CV__LOG_ONCE_CHECK_POST, __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_ONCE_VERBOSE | ( | tag, | |
v, | |||
... | |||
) | CV_LOG_WITH_TAG(tag, (cv::utils::logging::LOG_LEVEL_VERBOSE + (int)(v)), CV__LOG_ONCE_CHECK_PRE, CV__LOG_ONCE_CHECK_POST, __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_ONCE_VERBOSE | ( | tag, | |
v, | |||
... | |||
) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_ONCE_WARNING | ( | tag, | |
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_WARNING, CV__LOG_ONCE_CHECK_PRE, CV__LOG_ONCE_CHECK_POST, __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_STRIP_LEVEL CV_LOG_LEVEL_VERBOSE |
#include <opencv2/core/utils/logger.hpp>
定义CV_LOG_STRIP_LEVEL=CV_LOG_LEVEL_[DEBUG|INFO|WARN|ERROR|FATAL|SILENT],以编译出在该日志级别及以下的所有内容
#define CV_LOG_VERBOSE | ( | tag, | |
v, | |||
... | |||
) | CV_LOG_WITH_TAG(tag, (cv::utils::logging::LOG_LEVEL_VERBOSE + (int)(v)), , , __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_VERBOSE | ( | tag, | |
v, | |||
... | |||
) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_WARNING | ( | tag, | |
... | |||
) | CV_LOG_WITH_TAG(tag, cv::utils::logging::LOG_LEVEL_WARNING, , , __VA_ARGS__) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOG_WITH_TAG | ( | tag, | |
msgLevel, | |||
extra_check0, | |||
extra_check1, | |||
... | |||
) |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOGTAG_EXPAND_NAME | ( | tag | ) | tag |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOGTAG_FALLBACK nullptr |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOGTAG_GLOBAL cv::utils::logging::internal::getGlobalLogTag() |
#include <opencv2/core/utils/logger.hpp>
#define CV_LOGTAG_PTR_CAST | ( | expr | ) | static_cast<const cv::utils::logging::LogTag*>(expr) |
#include <opencv2/core/utils/logger.hpp>
#define CV_TRACE_ARG | ( | arg_id | ) |
#include <opencv2/core/utils/trace.hpp>
用于跟踪参数值的宏。
#define CV_TRACE_ARG_VALUE | ( | arg_id, | |
arg_name, | |||
value | |||
) |
#include <opencv2/core/utils/trace.hpp>
用于跟踪参数值(展开版本)。
#define CV_TRACE_FUNCTION | ( | ) |
#include <opencv2/core/utils/trace.hpp>
用于跟踪函数的宏。
#define CV_TRACE_FUNCTION_SKIP_NESTED | ( | ) |
#include <opencv2/core/utils/trace.hpp>
#define CV_TRACE_REGION | ( | 静态字符串字面量名称 | ) |
#define CV_TRACE_REGION_NEXT | ( | 静态字符串字面量名称 | ) |
#include <opencv2/core/utils/trace.hpp>
标记当前打开区域的完成状态并创建一个新区域
LogLevel cv::utils::logging::getLogLevel | ( | ) |
#include <opencv2/core/utils/logger.hpp>
获取全局日志级别
cv::utils::logging::LogLevel cv::utils::logging::getLogTagLevel | ( | const char * | tag | ) |
#include <opencv2/core/utils/logger.hpp>
void cv::utils::logging::registerLogTag | ( | cv::utils::logging::LogTag * | plogtag | ) |
#include <opencv2/core/utils/logger.hpp>
void cv::utils::logging::setLogTagLevel | ( | const char * | tag, |
cv::utils::logging::LogLevel | level | ||
) |
#include <opencv2/core/utils/logger.hpp>