aboutsummaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-12-27 17:54:31 +0530
committerAkshay Nair <phenax5@gmail.com>2024-12-27 17:54:31 +0530
commit98af698a806e41904368c0114f9d8d9f377d9c09 (patch)
treeb09e835b1cf4c678fe557b1ab01905e75ee3922f /cpp
parent3d461b234d0b30cb7085251390b264089f447a97 (diff)
downloadchelleport-98af698a806e41904368c0114f9d8d9f377d9c09.tar.gz
chelleport-98af698a806e41904368c0114f9d8d9f377d9c09.zip
Minor refactor
Diffstat (limited to '')
-rw-r--r--cpp/libchelleport.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/libchelleport.cpp b/cpp/libchelleport.cpp
index 67abb06..20c2d4f 100644
--- a/cpp/libchelleport.cpp
+++ b/cpp/libchelleport.cpp
@@ -9,8 +9,7 @@
#include "../include/libchelleport.h"
#include "../include/recognizer.h"
-extern "C" {
-OCRMatch *findWordCoordinates(const char *image_path, int *size) {
+extern "C" OCRMatch *findWordCoordinates(const char *image_path, int *size) {
std::vector<OCRMatch> matches;
MEASURE("OCR", { matches = extractTextMatches(image_path); });
@@ -22,7 +21,6 @@ OCRMatch *findWordCoordinates(const char *image_path, int *size) {
*size = matches.size();
return ptr;
}
-}
std::vector<OCRMatch> extractTextMatches(const char *imagePath) {
std::vector<OCRMatch> results;