From 98af698a806e41904368c0114f9d8d9f377d9c09 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 27 Dec 2024 17:54:31 +0530 Subject: Minor refactor --- cpp/libchelleport.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cpp/libchelleport.cpp') 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 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 extractTextMatches(const char *imagePath) { std::vector results; -- cgit v1.3.1