blob: 6a13381abe83dbc35c0af611a7141fb1d14bd1bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
#include <math.h>
#include <string.h>
#define EXPORT_API __declspec(dllexport)
using namespace cv;
using namespace std;
class Utils
{
public:
Utils();
~Utils();
static Rect cropRect(Rect rect, Size size);
static Scalar getRectMeanColor(Mat image, Rect rect);
};
|