Performance Metrics#
-
class PerformanceMetrics#
Public Types
-
using Clock = std::chrono::steady_clock#
-
using Ms = std::chrono::duration<double, std::ratio<1, 1000>>#
-
using Sec = std::chrono::duration<double, std::ratio<1, 1>>#
Public Functions
-
void update(TimePoint lastRequestStartTime, const cv::Mat &frame, cv::Point position = {15, 30}, int fontFace = cv::FONT_HERSHEY_COMPLEX, double fontScale = 0.75, cv::Scalar color = {200, 10, 10}, int thickness = 2, MetricTypes metricType = ALL)#
-
void paintMetrics(const cv::Mat &frame, cv::Point position = {15, 30}, int fontFace = cv::FONT_HERSHEY_COMPLEX, double fontScale = 0.75, cv::Scalar color = {200, 10, 10}, int thickness = 2, MetricTypes metricType = ALL) const#
Paints metrics over provided mat
- Parameters:
frame – frame to paint over
position – left top corner of text block
fontScale – font scale
color – font color
thickness – font thickness
-
void logTotal() const#
Private Members
-
bool firstFrameProcessed#
-
struct Metrics#
-
struct Statistic#
-
using Clock = std::chrono::steady_clock#