#include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include #include #include #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); };