aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libchelleport.h5
-rw-r--r--include/recognizer.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/include/libchelleport.h b/include/libchelleport.h
index b69466e..c022975 100644
--- a/include/libchelleport.h
+++ b/include/libchelleport.h
@@ -16,9 +16,8 @@
std::chrono::duration_cast<std::chrono::microseconds>(end - start); \
std::cout << label << ": " << duration.count() / 1000.0 << " ms" << std::endl;
-extern "C" {
-OCRMatch *findWordCoordinates(const char *image_path, /* returns */ int *size);
-}
+extern "C" OCRMatch *findWordCoordinates(const char *image_path,
+ /* returns */ int *size);
std::vector<OCRMatch> extractTextMatches(const char *imagePath);
diff --git a/include/recognizer.h b/include/recognizer.h
index c6e26da..3b13fdc 100644
--- a/include/recognizer.h
+++ b/include/recognizer.h
@@ -10,7 +10,7 @@
#define MIN_CHARACTER_COUNT 3
const tesseract::PageIteratorLevel ITER_LEVEL = tesseract::RIL_WORD;
-// NOTE: Remember to update size and alignment in ocr hs module on change
+// NOTE: Remember to update size and alignment in hs type on change
struct OCRMatch {
int startX, startY;
int endX, endY;