-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tesseract] update to 5.2.0 (#26114)
* [tesseract] update to 5.2.0 * x-add-version * fix windows build error * version * fix opencv4 build error * version * conflict * version * fix opencv build error on uwp * version * fix linux build error * version * fix * version * version
- Loading branch information
1 parent
69296c1
commit 69e4d02
Showing
11 changed files
with
69 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/modules/text/cmake/init.cmake b/modules/text/cmake/init.cmake | ||
index 254757e..73194ec 100644 | ||
--- a/modules/text/cmake/init.cmake | ||
+++ b/modules/text/cmake/init.cmake | ||
@@ -4,6 +4,8 @@ OCV_OPTION(WITH_TESSERACT "Include Tesseract OCR library support" (NOT CMAKE_CRO | ||
if(NOT HAVE_TESSERACT | ||
AND (WITH_TESSERACT OR OPENCV_FIND_TESSERACT) | ||
) | ||
+ find_package(Tesseract CONFIG REQUIRED) | ||
+ set(Tesseract_LIBRARIES Tesseract::libtesseract) | ||
if(NOT Tesseract_FOUND) | ||
find_package(Tesseract QUIET) # Prefer CMake's standard locations (including Tesseract_DIR) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index bd2649d..f932913 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -792,7 +792,8 @@ if(OpenCL_FOUND) | ||
target_link_libraries(libtesseract PUBLIC OpenCL::OpenCL) | ||
endif() | ||
if(LibArchive_FOUND) | ||
- target_link_libraries(libtesseract PUBLIC ${LibArchive_LIBRARIES}) | ||
+ find_package(LibArchive REQUIRED) | ||
+ target_link_libraries(libtesseract PRIVATE LibArchive::LibArchive) | ||
endif(LibArchive_FOUND) | ||
if(CURL_FOUND) | ||
if(NOT CURL_LIBRARIES) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters