MCPcopy Create free account
hub / github.com/PaddlePaddle/PaddleOCR / level_string

Function level_string

deploy/cpp_infer/src/utils/ilogger.cc:96–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94using namespace std;
95
96const char *level_string(LogLevel level) {
97 switch (level) {
98 case LogLevel::Debug:
99 return "debug";
100 case LogLevel::Verbose:
101 return "verbo";
102 case LogLevel::Info:
103 return "info";
104 case LogLevel::Warning:
105 return "warn";
106 case LogLevel::Error:
107 return "error";
108 case LogLevel::Fatal:
109 return "fatal";
110 default:
111 return "unknown";
112 }
113}
114
115std::tuple<uint8_t, uint8_t, uint8_t> hsv2bgr(float h, float s, float v) {
116 const int h_i = static_cast<int>(h * 6);

Callers 1

__log_funcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected