lolautoaccept/include/matcher.h

25 lines
397 B
C++

#pragma once
#include <opencv2/opencv.hpp>
class Matcher {
private:
cv::Mat templ;
public:
Matcher(const std::string& filename);
Matcher(const cv::Mat& templ);
~Matcher();
struct Match {
bool doesMatch = false;
int x = 0, y = 0;
int width = 0;
int height = 0;
bool operator==(const Match&) const;
bool operator!=(const Match&) const;
};
Match match(const cv::Mat& img);
};