aboutsummaryrefslogtreecommitdiff
path: root/include/recognizer.h
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-12-31 11:43:49 +0530
committerAkshay Nair <phenax5@gmail.com>2025-01-01 11:51:46 +0530
commit5262d942c4c2c36529fbe704e7de165044e6dc99 (patch)
tree9fb782f19e564bdc9c7ab6852238e12a6b6f85f3 /include/recognizer.h
parent2f35bbd272d7b1414003bf437cc6ad675fe81400 (diff)
downloadchelleport-5262d942c4c2c36529fbe704e7de165044e6dc99.tar.gz
chelleport-5262d942c4c2c36529fbe704e7de165044e6dc99.zip
Add timing measurement for each section of screen
Diffstat (limited to 'include/recognizer.h')
-rw-r--r--include/recognizer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/recognizer.h b/include/recognizer.h
index 3b13fdc..260a139 100644
--- a/include/recognizer.h
+++ b/include/recognizer.h
@@ -23,8 +23,10 @@ class Recognizer {
bool failed = false;
public:
- Recognizer(int x, int y, int width, int height)
- : x(x), y(y), width(width), height(height) {
+ const char *id;
+
+ Recognizer(const char *id, int x, int y, int width, int height)
+ : id(id), x(x), y(y), width(width), height(height) {
initializeTesseract();
}