diff options
Diffstat (limited to '')
| -rw-r--r-- | cpp/libchelleport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/libchelleport.cpp b/cpp/libchelleport.cpp index 5845bc4..53ba64e 100644 --- a/cpp/libchelleport.cpp +++ b/cpp/libchelleport.cpp @@ -13,12 +13,12 @@ extern "C" OCRMatch *findWordCoordinates(const char *image_path, int *size) { OCRMatchSet matches; MEASURE("OCR", { matches = extractTextMatches(image_path); }); - std::cout << "Match count: " << matches.size() << std::endl; - static OCRMatch *ptr = new OCRMatch[matches.size()]; std::copy(matches.begin(), matches.end(), ptr); *size = matches.size(); + std::cout << "Match count: " << *size << std::endl; + return ptr; } |
