Darknet/YOLO v3.0-177-gfa2353b
Object Detection Framework
 
Loading...
Searching...
No Matches
darknet_format_and_colour.hpp File Reference
Include dependency graph for darknet_format_and_colour.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  Darknet
 The namespace for the C++ Darknet API.
 

Enumerations

enum  Darknet::EColour {
  Darknet::kNormal = 0 ,
  Darknet::kBlack ,
  Darknet::kRed ,
  Darknet::kGreen ,
  Darknet::kBrown ,
  Darknet::kBlue ,
  Darknet::kMagenta ,
  Darknet::kCyan ,
  Darknet::kLightGrey ,
  Darknet::kDarkGrey ,
  Darknet::kBrightRed ,
  Darknet::kBrightGreen ,
  Darknet::kYellow ,
  Darknet::kBrightBlue ,
  Darknet::kBrightMagenta ,
  Darknet::kBrightCyan ,
  Darknet::kBrightWhite
}
 

Functions

void Darknet::display_error_msg (const std::string &msg)
 Display the given message in bright red (if colour is enabled). The message is not linefeed terminated.
 
void Darknet::display_warning_msg (const std::string &msg)
 Display the given message in yellow (if colour is enabled). The message is not linefeed terminated.
 
std::string Darknet::format_in_colour (const float &f, const EColour &colour, const size_t &len)
 
std::string Darknet::format_in_colour (const float &f, const size_t &len, const bool inverted=false)
 
std::string Darknet::format_in_colour (const int &i, const EColour &colour, const size_t &len)
 
std::string Darknet::format_in_colour (const size_t &st, const EColour &colour, const size_t &len)
 
std::string Darknet::format_in_colour (const std::string &str, const EColour &colour, const int &len)
 
std::string Darknet::format_layer_summary (const size_t idx, const Darknet::CfgSection &section, const Darknet::Layer &l)
 
std::string Darknet::format_loss (const double &loss)
 Format the loss combined with ANSI colours.
 
std::string Darknet::format_map_accuracy (const float &accuracy)
 Format the mAP% accuracy with ANSI colours.
 
std::string Darknet::format_map_confusion_matrix_values (const int class_id, std::string name, const float &average_precision, const int &tp, const int &fn, const int &fp, const int &tn, const float &accuracy, const float &error_rate, const float &precision, const float &recall, const float &specificity, const float &false_pos_rate)
 
std::string Darknet::format_time (const double &seconds_remaining)
 The time used by Darknet is a double, generated from what_time_is_it_now().
 
std::string Darknet::format_time_remaining (const float &seconds_remaining)
 Format the time remaining using simple-to-read text. The time must be in seconds.
 
std::string Darknet::in_colour (const EColour colour)
 
std::string Darknet::in_colour (const EColour colour, const double d)
 
std::string Darknet::in_colour (const EColour colour, const float f)
 
std::string Darknet::in_colour (const EColour colour, const int i)
 
std::string Darknet::in_colour (const EColour colour, const std::string &msg)