diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-12-24 18:51:17 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-12-24 18:51:17 +0530 |
| commit | 70e3920556496e5fecb5fedddf1067b2522fcac7 (patch) | |
| tree | 7e4e88023bdcd5b13dde738f7afedd533a6d7fcd /include | |
| parent | dfdf1600ba251f6b3cfef85f6904d79a1c60b49d (diff) | |
| download | chelleport-70e3920556496e5fecb5fedddf1067b2522fcac7.tar.gz chelleport-70e3920556496e5fecb5fedddf1067b2522fcac7.zip | |
Add setup for ocr with tesseract
Diffstat (limited to 'include')
| -rw-r--r-- | include/libchelleport.h | 12 |
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); +} |
