aboutsummaryrefslogtreecommitdiff
path: root/include/libchelleport.h
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-12-24 18:51:17 +0530
committerAkshay Nair <phenax5@gmail.com>2024-12-24 18:51:17 +0530
commit70e3920556496e5fecb5fedddf1067b2522fcac7 (patch)
tree7e4e88023bdcd5b13dde738f7afedd533a6d7fcd /include/libchelleport.h
parentdfdf1600ba251f6b3cfef85f6904d79a1c60b49d (diff)
downloadchelleport-70e3920556496e5fecb5fedddf1067b2522fcac7.tar.gz
chelleport-70e3920556496e5fecb5fedddf1067b2522fcac7.zip
Add setup for ocr with tesseract
Diffstat (limited to 'include/libchelleport.h')
-rw-r--r--include/libchelleport.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libchelleport.h b/include/libchelleport.h
new file mode 100644
index 0000000..8a9a17e
--- /dev/null
+++ b/include/libchelleport.h
@@ -0,0 +1,12 @@
+#include <string>
+
+// NOTE: Remember to update size and alignment in ocr hs module on change
+struct OCRMatch {
+ int startX, startY;
+ int endX, endY;
+ const char *text;
+};
+
+extern "C" {
+OCRMatch *findWordCoordinates(const char *image_path, /* returns */ int *size);
+}