From 70e3920556496e5fecb5fedddf1067b2522fcac7 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 24 Dec 2024 18:51:17 +0530 Subject: Add setup for ocr with tesseract --- include/libchelleport.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/libchelleport.h (limited to 'include') 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 + +// 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); +} -- cgit v1.3.1