Object Detection  5.0
Image Processing Using Qt and Opencv
utils.h
1 #ifndef UTILS_H
2 #define UTILS_H
3 
4 #include <QObject>
5 #include "headers.h"
6 #include <QColor>
7 #include <QImage>
8 namespace Utilities {
9  class Utils;
10 }
11 using namespace Utilities;
12 class Utilities::Utils : public QObject
13 {
14  Q_OBJECT
15 public:
16  explicit Utils(QObject *parent = nullptr);
17  static cv::Scalar toScalar(QColor color);
18  static std::tuple<cv::Scalar, cv::Scalar> toRange(QColor color);
19  static QImage toImage(const cv::Mat &m);
20 signals:
21 
22 public slots:
23 };
24 
25 #endif // UTILS_H