diff --git a/thirdparty/Tesseract-OCR/ambiguous_words.exe b/thirdparty/Tesseract-OCR/ambiguous_words.exe index 577ad84575..6d94188201 100755 Binary files a/thirdparty/Tesseract-OCR/ambiguous_words.exe and b/thirdparty/Tesseract-OCR/ambiguous_words.exe differ diff --git a/thirdparty/Tesseract-OCR/classifier_tester.exe b/thirdparty/Tesseract-OCR/classifier_tester.exe index 2a52d65a08..ad23428152 100755 Binary files a/thirdparty/Tesseract-OCR/classifier_tester.exe and b/thirdparty/Tesseract-OCR/classifier_tester.exe differ diff --git a/thirdparty/Tesseract-OCR/cntraining.exe b/thirdparty/Tesseract-OCR/cntraining.exe index e54f8927a4..5e7a6c8faf 100755 Binary files a/thirdparty/Tesseract-OCR/cntraining.exe and b/thirdparty/Tesseract-OCR/cntraining.exe differ diff --git a/thirdparty/Tesseract-OCR/combine_lang_model.exe b/thirdparty/Tesseract-OCR/combine_lang_model.exe new file mode 100644 index 0000000000..38329e45bc Binary files /dev/null and b/thirdparty/Tesseract-OCR/combine_lang_model.exe differ diff --git a/thirdparty/Tesseract-OCR/combine_tessdata.exe b/thirdparty/Tesseract-OCR/combine_tessdata.exe index 4426dda4d5..73f5508c81 100755 Binary files a/thirdparty/Tesseract-OCR/combine_tessdata.exe and b/thirdparty/Tesseract-OCR/combine_tessdata.exe differ diff --git a/thirdparty/Tesseract-OCR/dawg2wordlist.exe b/thirdparty/Tesseract-OCR/dawg2wordlist.exe index dca15eaf05..a6440e05d3 100755 Binary files a/thirdparty/Tesseract-OCR/dawg2wordlist.exe and b/thirdparty/Tesseract-OCR/dawg2wordlist.exe differ diff --git a/thirdparty/Tesseract-OCR/doc/AUTHORS b/thirdparty/Tesseract-OCR/doc/AUTHORS index 4d9c75c4aa..633bf02848 100755 --- a/thirdparty/Tesseract-OCR/doc/AUTHORS +++ b/thirdparty/Tesseract-OCR/doc/AUTHORS @@ -35,6 +35,8 @@ Jim Regan (Maintainer) James R Barlow Amit Dovev Martin Ettl +Shree Devi Kumar +Noah Metzger Tom Morris Tobias Müller Egor Pugin diff --git a/thirdparty/Tesseract-OCR/doc/COPYING b/thirdparty/Tesseract-OCR/doc/COPYING deleted file mode 100755 index be5ebaedcf..0000000000 --- a/thirdparty/Tesseract-OCR/doc/COPYING +++ /dev/null @@ -1,21 +0,0 @@ -This package contains the Tesseract Open Source OCR Engine. -Originally developed at Hewlett Packard Laboratories Bristol and -at Hewlett Packard Co, Greeley Colorado, all the code -in this distribution is now licensed under the Apache License: - -** Licensed under the Apache License, Version 2.0 (the "License"); -** you may not use this file except in compliance with the License. -** You may obtain a copy of the License at -** http://www.apache.org/licenses/LICENSE-2.0 -** Unless required by applicable law or agreed to in writing, software -** distributed under the License is distributed on an "AS IS" BASIS, -** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -** See the License for the specific language governing permissions and -** limitations under the License. - - -Other Dependencies and Licenses: -================================ - -Tesseract uses Leptonica library (http://leptonica.com/) which essentially -uses a BSD 2-clause license. (http://leptonica.com/about-the-license.html) diff --git a/thirdparty/Tesseract-OCR/doc/LICENSE b/thirdparty/Tesseract-OCR/doc/LICENSE new file mode 100644 index 0000000000..d645695673 --- /dev/null +++ b/thirdparty/Tesseract-OCR/doc/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/thirdparty/Tesseract-OCR/doc/README b/thirdparty/Tesseract-OCR/doc/README deleted file mode 100755 index 48024a9080..0000000000 --- a/thirdparty/Tesseract-OCR/doc/README +++ /dev/null @@ -1,43 +0,0 @@ -How to run UNLV tests. - -The scripts in this directory make it possible to duplicate the tests -published in the Fourth Annual Test of OCR Accuracy. -See http://www.isri.unlv.edu/downloads/AT-1995.pdf -but first you have to get the tools and data from UNLV: - -Step 1: to download the images goto -http://www.isri.unlv.edu/ISRI/OCRtk -and get 3b.tgz, Bb.tgz, Mb.tgz and Nb.tgz. - -Step 2: extract the files. It doesn't really matter where -in your filesystem you put them, but they must go under a common -root so you have directories 3, B, M and N in, for example, -/users/me/ISRI-OCRtk. - -Step 3: Reorg the files -The lack of tif extensions on the images is inconvenient, so there -is a script to reorganize the data to match the rest of the test -scripts. -cd to /users/me/ISRI-OCRtk or wherever 3, B, M and N ended up and run -/blah/blah/tesseract-ocr/testing/reorgdata.sh 3B -This makes directories doe3.3B, bus.3B, mag.3B and news.3B. -You can now get rid of 3, B, M, and N unless you want to get some of the -other scanning resolutions out of them. - -Step 4: Download the ISRI toolkit from: -http://www.isri.unlv.edu/downloads/ftk-1.0.tgz - -Step 5: If they work for you, use the binaries directly from the bin -directory and put them in tesseract-ocr/testing/unlv -otherwise build the tools for yourself and put them there. - -Step 6: cd back to your main tesseract-ocr dir and Build tesseract. - -Step 7: run testing/runalltests.sh with the root data dir and testname: -testing/runalltests.sh /users/me/ISRI-OCRtk tess2.0 -and go to the gym, have lunch etc. - -Step 8: There should be a file -testing/reports/tess2.0.summary that contains the final summarized accuracy -report and comparison with the 1995 results. - diff --git a/thirdparty/Tesseract-OCR/doc/README.md b/thirdparty/Tesseract-OCR/doc/README.md new file mode 100644 index 0000000000..de2ec6fbcd --- /dev/null +++ b/thirdparty/Tesseract-OCR/doc/README.md @@ -0,0 +1,111 @@ +# Tesseract OCR + +[![Build Status](https://travis-ci.org/tesseract-ocr/tesseract.svg?branch=master)](https://travis-ci.org/tesseract-ocr/tesseract) +[![Build status](https://ci.appveyor.com/api/projects/status/miah0ikfsf0j3819/branch/master?svg=true)](https://ci.appveyor.com/project/zdenop/tesseract/)
+[![Coverity Scan Build Status](https://scan.coverity.com/projects/tesseract-ocr/badge.svg)](https://scan.coverity.com/projects/tesseract-ocr) +[![Code Quality: Cpp](https://img.shields.io/lgtm/grade/cpp/g/tesseract-ocr/tesseract.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/tesseract-ocr/tesseract/context:cpp) +[![Total Alerts](https://img.shields.io/lgtm/alerts/g/tesseract-ocr/tesseract.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/tesseract-ocr/tesseract/alerts)
+[![GitHub license](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://raw.githubusercontent.com/tesseract-ocr/tesseract/master/LICENSE) +[![Downloads](https://img.shields.io/badge/download-all%20releases-brightgreen.svg)](https://github.com/tesseract-ocr/tesseract/releases/) + +## About + +This package contains an **OCR engine** - `libtesseract` and a **command line program** - `tesseract`. +Tesseract 4 adds a new neural net (LSTM) based OCR engine which is focused +on line recognition, but also still supports the legacy Tesseract OCR engine of +Tesseract 3 which works by recognizing character patterns. Compatibility with +Tesseract 3 is enabled by using the Legacy OCR Engine mode (--oem 0). +It also needs traineddata files which support the legacy engine, for example +those from the tessdata repository. + +The lead developer is Ray Smith. The maintainer is Zdenko Podobny. +For a list of contributors see [AUTHORS](https://github.com/tesseract-ocr/tesseract/blob/master/AUTHORS) +and GitHub's log of [contributors](https://github.com/tesseract-ocr/tesseract/graphs/contributors). + +Tesseract has **unicode (UTF-8) support**, and can **recognize more than 100 languages** "out of the box". + +Tesseract supports **various output formats**: plain text, hOCR (HTML), PDF, invisible-text-only PDF, TSV. The master branch also has experimental support for ALTO (XML) output. + +You should note that in many cases, in order to get better OCR results, you'll need to **[improve the quality](https://github.com/tesseract-ocr/tesseract/wiki/ImproveQuality) of the image** you are giving Tesseract. + +This project **does not include a GUI application**. If you need one, please see the [3rdParty](https://github.com/tesseract-ocr/tesseract/wiki/User-Projects-%E2%80%93-3rdParty) wiki page. + +Tesseract **can be trained to recognize other languages**. See [Tesseract Training](https://github.com/tesseract-ocr/tesseract/wiki/TrainingTesseract) for more information. + +## Brief history + +Tesseract was originally developed at Hewlett-Packard Laboratories Bristol and +at Hewlett-Packard Co, Greeley Colorado between 1985 and 1994, with some +more changes made in 1996 to port to Windows, and some C++izing in 1998. +In 2005 Tesseract was open sourced by HP. Since 2006 it is developed by Google. + +The latest (LSTM based) stable version is **[4.0.0](https://github.com/tesseract-ocr/tesseract/releases/tag/4.0.0)**, released on October 29, 2018. Latest source code for 4.0 is available from [master branch on GitHub](https://github.com/tesseract-ocr/tesseract/tree/master). Open issues can be found in [issue tracker](https://github.com/tesseract-ocr/tesseract/issues), and [Planning wiki](https://github.com/tesseract-ocr/tesseract/wiki/Planning#400). + +The latest 3.5 version is **[3.05.02](https://github.com/tesseract-ocr/tesseract/releases/tag/3.05.02)**, released on June 19, 2018. Latest source code for 3.05 is available from [3.05 branch on GitHub](https://github.com/tesseract-ocr/tesseract/tree/3.05). There is no development for this version, but it can be used for special cases (e.g. see [Regression of features from 3.0x](https://github.com/tesseract-ocr/tesseract/wiki/Planning#regression-of-features-from-30x)). + +See **[Release Notes](https://github.com/tesseract-ocr/tesseract/wiki/ReleaseNotes)** and **[Change Log](https://github.com/tesseract-ocr/tesseract/blob/master/ChangeLog)** for more details of the releases. + +## Installing Tesseract + +You can either [Install Tesseract via pre-built binary package](https://github.com/tesseract-ocr/tesseract/wiki) or [build it from source](https://github.com/tesseract-ocr/tesseract/wiki/Compiling). + +Supported Compilers are: + +* GCC 4.8 and above +* Clang 3.4 and above +* MSVC 2015, 2017 + +Other compilers might work, but are not officially supported. + +## Running Tesseract + +Basic **[command line usage](https://github.com/tesseract-ocr/tesseract/wiki/Command-Line-Usage)**: + + tesseract imagename outputbase [-l lang] [--oem ocrenginemode] [--psm pagesegmode] [configfiles...] + +For more information about the various command line options use `tesseract --help` or `man tesseract`. + +Examples can be found in the [wiki](https://github.com/tesseract-ocr/tesseract/wiki/Command-Line-Usage#simplest-invocation-to-ocr-an-image). + +## For developers + +Developers can use `libtesseract` [C](https://github.com/tesseract-ocr/tesseract/blob/master/src/api/capi.h) or [C++](https://github.com/tesseract-ocr/tesseract/blob/master/src/api/baseapi.h) API to build their own application. If you need bindings to `libtesseract` for other programming languages, please see the [wrapper](https://github.com/tesseract-ocr/tesseract/wiki/AddOns#tesseract-wrappers) section on AddOns wiki page. + +Documentation of Tesseract generated from source code by doxygen can be found on [tesseract-ocr.github.io](http://tesseract-ocr.github.io/). + +## Support + +Before you submit an issue, please review **[the guidelines for this repository](https://github.com/tesseract-ocr/tesseract/blob/master/CONTRIBUTING.md)**. + +For support, first read the [Wiki](https://github.com/tesseract-ocr/tesseract/wiki), particularly the [FAQ](https://github.com/tesseract-ocr/tesseract/wiki/FAQ) to see if your problem is addressed there. If not, search the [Tesseract user forum](https://groups.google.com/d/forum/tesseract-ocr), the [Tesseract developer forum](https://groups.google.com/d/forum/tesseract-dev) and [past issues](https://github.com/tesseract-ocr/tesseract/issues), and if you still can't find what you need, ask for support in the mailing-lists. + +Mailing-lists: +* [tesseract-ocr](https://groups.google.com/d/forum/tesseract-ocr) - For tesseract users. +* [tesseract-dev](https://groups.google.com/d/forum/tesseract-dev) - For tesseract developers. + +Please report an issue only for a **bug**, not for asking questions. + +## License + + The code in this repository is licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +**NOTE**: This software depends on other packages that may be licensed under different open source licenses. + +Tesseract uses [Leptonica library](http://leptonica.com/) which essentially +uses a [BSD 2-clause license](http://leptonica.com/about-the-license.html). + +## Latest Version of README + +For the latest online version of the README.md see: + +https://github.com/tesseract-ocr/tesseract/blob/master/README.md diff --git a/thirdparty/Tesseract-OCR/doc/eurotext.tif b/thirdparty/Tesseract-OCR/doc/eurotext.tif deleted file mode 100755 index 92791da4d2..0000000000 Binary files a/thirdparty/Tesseract-OCR/doc/eurotext.tif and /dev/null differ diff --git a/thirdparty/Tesseract-OCR/doc/phototest.tif b/thirdparty/Tesseract-OCR/doc/phototest.tif deleted file mode 100755 index adac046dba..0000000000 Binary files a/thirdparty/Tesseract-OCR/doc/phototest.tif and /dev/null differ diff --git a/thirdparty/Tesseract-OCR/icudata51.dll b/thirdparty/Tesseract-OCR/icudata57.dll old mode 100755 new mode 100644 similarity index 65% rename from thirdparty/Tesseract-OCR/icudata51.dll rename to thirdparty/Tesseract-OCR/icudata57.dll index a497c0d5b8..5ddff72464 Binary files a/thirdparty/Tesseract-OCR/icudata51.dll and b/thirdparty/Tesseract-OCR/icudata57.dll differ diff --git a/thirdparty/Tesseract-OCR/icui18n51.dll b/thirdparty/Tesseract-OCR/icui18n51.dll deleted file mode 100755 index 3fbb91a28b..0000000000 Binary files a/thirdparty/Tesseract-OCR/icui18n51.dll and /dev/null differ diff --git a/thirdparty/Tesseract-OCR/icui18n57.dll b/thirdparty/Tesseract-OCR/icui18n57.dll new file mode 100644 index 0000000000..8b33fe88a2 Binary files /dev/null and b/thirdparty/Tesseract-OCR/icui18n57.dll differ diff --git a/thirdparty/Tesseract-OCR/icuuc51.dll b/thirdparty/Tesseract-OCR/icuuc51.dll deleted file mode 100755 index e1f90486d4..0000000000 Binary files a/thirdparty/Tesseract-OCR/icuuc51.dll and /dev/null differ diff --git a/thirdparty/Tesseract-OCR/icuuc57.dll b/thirdparty/Tesseract-OCR/icuuc57.dll new file mode 100644 index 0000000000..6ea08a0a6d Binary files /dev/null and b/thirdparty/Tesseract-OCR/icuuc57.dll differ diff --git a/thirdparty/Tesseract-OCR/java/ScrollView.jar b/thirdparty/Tesseract-OCR/java/ScrollView.jar deleted file mode 100755 index 75ea5c1a7c..0000000000 Binary files a/thirdparty/Tesseract-OCR/java/ScrollView.jar and /dev/null differ diff --git a/thirdparty/Tesseract-OCR/libcairo-2.dll b/thirdparty/Tesseract-OCR/libcairo-2.dll index b251fe90d3..6f67936c32 100755 Binary files a/thirdparty/Tesseract-OCR/libcairo-2.dll and b/thirdparty/Tesseract-OCR/libcairo-2.dll differ diff --git a/thirdparty/Tesseract-OCR/libexpat-1.dll b/thirdparty/Tesseract-OCR/libexpat-1.dll index d154a5205a..c04a277151 100755 Binary files a/thirdparty/Tesseract-OCR/libexpat-1.dll and b/thirdparty/Tesseract-OCR/libexpat-1.dll differ diff --git a/thirdparty/Tesseract-OCR/libfontconfig-1.dll b/thirdparty/Tesseract-OCR/libfontconfig-1.dll index 677c58dd65..373c9f9ce3 100755 Binary files a/thirdparty/Tesseract-OCR/libfontconfig-1.dll and b/thirdparty/Tesseract-OCR/libfontconfig-1.dll differ diff --git a/thirdparty/Tesseract-OCR/libfreetype-6.dll b/thirdparty/Tesseract-OCR/libfreetype-6.dll index 6898506917..be3d8f4c04 100755 Binary files a/thirdparty/Tesseract-OCR/libfreetype-6.dll and b/thirdparty/Tesseract-OCR/libfreetype-6.dll differ diff --git a/thirdparty/Tesseract-OCR/libgcc_s_sjlj-1.dll b/thirdparty/Tesseract-OCR/libgcc_s_sjlj-1.dll index 3326dc2757..874a5ce22a 100755 Binary files a/thirdparty/Tesseract-OCR/libgcc_s_sjlj-1.dll and b/thirdparty/Tesseract-OCR/libgcc_s_sjlj-1.dll differ diff --git a/thirdparty/Tesseract-OCR/libgif-4.dll b/thirdparty/Tesseract-OCR/libgif-4.dll deleted file mode 100755 index d6826ff501..0000000000 Binary files a/thirdparty/Tesseract-OCR/libgif-4.dll and /dev/null differ diff --git a/thirdparty/Tesseract-OCR/libgif-7.dll b/thirdparty/Tesseract-OCR/libgif-7.dll new file mode 100644 index 0000000000..1773926190 Binary files /dev/null and b/thirdparty/Tesseract-OCR/libgif-7.dll differ diff --git a/thirdparty/Tesseract-OCR/libglib-2.0-0.dll b/thirdparty/Tesseract-OCR/libglib-2.0-0.dll index 8207e84bcd..e7abeab499 100755 Binary files a/thirdparty/Tesseract-OCR/libglib-2.0-0.dll and b/thirdparty/Tesseract-OCR/libglib-2.0-0.dll differ diff --git a/thirdparty/Tesseract-OCR/libgobject-2.0-0.dll b/thirdparty/Tesseract-OCR/libgobject-2.0-0.dll index 14ff68e4b7..c9bc24e943 100755 Binary files a/thirdparty/Tesseract-OCR/libgobject-2.0-0.dll and b/thirdparty/Tesseract-OCR/libgobject-2.0-0.dll differ diff --git a/thirdparty/Tesseract-OCR/libgomp-1.dll b/thirdparty/Tesseract-OCR/libgomp-1.dll index 9f5006e83e..4fb6a12050 100755 Binary files a/thirdparty/Tesseract-OCR/libgomp-1.dll and b/thirdparty/Tesseract-OCR/libgomp-1.dll differ diff --git a/thirdparty/Tesseract-OCR/libharfbuzz-0.dll b/thirdparty/Tesseract-OCR/libharfbuzz-0.dll index c3518ae081..3d65ea9400 100755 Binary files a/thirdparty/Tesseract-OCR/libharfbuzz-0.dll and b/thirdparty/Tesseract-OCR/libharfbuzz-0.dll differ diff --git a/thirdparty/Tesseract-OCR/libintl-8.dll b/thirdparty/Tesseract-OCR/libintl-8.dll index f81748e448..f62cd95957 100755 Binary files a/thirdparty/Tesseract-OCR/libintl-8.dll and b/thirdparty/Tesseract-OCR/libintl-8.dll differ diff --git a/thirdparty/Tesseract-OCR/libjpeg-8.dll b/thirdparty/Tesseract-OCR/libjpeg-8.dll index 0512178f98..6872a7291d 100755 Binary files a/thirdparty/Tesseract-OCR/libjpeg-8.dll and b/thirdparty/Tesseract-OCR/libjpeg-8.dll differ diff --git a/thirdparty/Tesseract-OCR/liblept-5.dll b/thirdparty/Tesseract-OCR/liblept-5.dll index 5d24f68eed..854e308397 100755 Binary files a/thirdparty/Tesseract-OCR/liblept-5.dll and b/thirdparty/Tesseract-OCR/liblept-5.dll differ diff --git a/thirdparty/Tesseract-OCR/liblzma-5.dll b/thirdparty/Tesseract-OCR/liblzma-5.dll index c660284d69..9415d56d20 100755 Binary files a/thirdparty/Tesseract-OCR/liblzma-5.dll and b/thirdparty/Tesseract-OCR/liblzma-5.dll differ diff --git a/thirdparty/Tesseract-OCR/libopenjp2.dll b/thirdparty/Tesseract-OCR/libopenjp2.dll index c5cab0242f..da350c147b 100755 Binary files a/thirdparty/Tesseract-OCR/libopenjp2.dll and b/thirdparty/Tesseract-OCR/libopenjp2.dll differ diff --git a/thirdparty/Tesseract-OCR/libpango-1.0-0.dll b/thirdparty/Tesseract-OCR/libpango-1.0-0.dll index 6f25a00e3b..af3ece944c 100755 Binary files a/thirdparty/Tesseract-OCR/libpango-1.0-0.dll and b/thirdparty/Tesseract-OCR/libpango-1.0-0.dll differ diff --git a/thirdparty/Tesseract-OCR/libpangocairo-1.0-0.dll b/thirdparty/Tesseract-OCR/libpangocairo-1.0-0.dll index 46ee9f5b0b..b904a5156d 100755 Binary files a/thirdparty/Tesseract-OCR/libpangocairo-1.0-0.dll and b/thirdparty/Tesseract-OCR/libpangocairo-1.0-0.dll differ diff --git a/thirdparty/Tesseract-OCR/libpangoft2-1.0-0.dll b/thirdparty/Tesseract-OCR/libpangoft2-1.0-0.dll index 271c295731..9aa3fccd90 100755 Binary files a/thirdparty/Tesseract-OCR/libpangoft2-1.0-0.dll and b/thirdparty/Tesseract-OCR/libpangoft2-1.0-0.dll differ diff --git a/thirdparty/Tesseract-OCR/libpangowin32-1.0-0.dll b/thirdparty/Tesseract-OCR/libpangowin32-1.0-0.dll index eb7a29b195..58b8a04379 100755 Binary files a/thirdparty/Tesseract-OCR/libpangowin32-1.0-0.dll and b/thirdparty/Tesseract-OCR/libpangowin32-1.0-0.dll differ diff --git a/thirdparty/Tesseract-OCR/libpcre-1.dll b/thirdparty/Tesseract-OCR/libpcre-1.dll new file mode 100644 index 0000000000..b83c683ebf Binary files /dev/null and b/thirdparty/Tesseract-OCR/libpcre-1.dll differ diff --git a/thirdparty/Tesseract-OCR/libpixman-1-0.dll b/thirdparty/Tesseract-OCR/libpixman-1-0.dll index 787bdd44a9..5f8373a8ba 100755 Binary files a/thirdparty/Tesseract-OCR/libpixman-1-0.dll and b/thirdparty/Tesseract-OCR/libpixman-1-0.dll differ diff --git a/thirdparty/Tesseract-OCR/libpng16-16.dll b/thirdparty/Tesseract-OCR/libpng16-16.dll index 59732d39d6..b1f1c08e12 100755 Binary files a/thirdparty/Tesseract-OCR/libpng16-16.dll and b/thirdparty/Tesseract-OCR/libpng16-16.dll differ diff --git a/thirdparty/Tesseract-OCR/libstdc++-6.dll b/thirdparty/Tesseract-OCR/libstdc++-6.dll index 960516bb45..ebf0edbccd 100755 Binary files a/thirdparty/Tesseract-OCR/libstdc++-6.dll and b/thirdparty/Tesseract-OCR/libstdc++-6.dll differ diff --git a/thirdparty/Tesseract-OCR/libtesseract-3.dll b/thirdparty/Tesseract-OCR/libtesseract-3.dll deleted file mode 100755 index 39a68d7c64..0000000000 Binary files a/thirdparty/Tesseract-OCR/libtesseract-3.dll and /dev/null differ diff --git a/thirdparty/Tesseract-OCR/libtesseract-4.dll b/thirdparty/Tesseract-OCR/libtesseract-4.dll index 3b1e9cacd7..3fb2de3290 100755 Binary files a/thirdparty/Tesseract-OCR/libtesseract-4.dll and b/thirdparty/Tesseract-OCR/libtesseract-4.dll differ diff --git a/thirdparty/Tesseract-OCR/libtiff-5.dll b/thirdparty/Tesseract-OCR/libtiff-5.dll index 7afd592b72..fbe7d3dbaa 100755 Binary files a/thirdparty/Tesseract-OCR/libtiff-5.dll and b/thirdparty/Tesseract-OCR/libtiff-5.dll differ diff --git a/thirdparty/Tesseract-OCR/libwebp-5.dll b/thirdparty/Tesseract-OCR/libwebp-5.dll deleted file mode 100755 index be1464e382..0000000000 Binary files a/thirdparty/Tesseract-OCR/libwebp-5.dll and /dev/null differ diff --git a/thirdparty/Tesseract-OCR/libwebp-7.dll b/thirdparty/Tesseract-OCR/libwebp-7.dll new file mode 100644 index 0000000000..64cc19f587 Binary files /dev/null and b/thirdparty/Tesseract-OCR/libwebp-7.dll differ diff --git a/thirdparty/Tesseract-OCR/libwinpthread-1.dll b/thirdparty/Tesseract-OCR/libwinpthread-1.dll index 3c8ca45732..1d7f127add 100755 Binary files a/thirdparty/Tesseract-OCR/libwinpthread-1.dll and b/thirdparty/Tesseract-OCR/libwinpthread-1.dll differ diff --git a/thirdparty/Tesseract-OCR/lstmeval.exe b/thirdparty/Tesseract-OCR/lstmeval.exe index 9a097fc375..e96aa408dd 100755 Binary files a/thirdparty/Tesseract-OCR/lstmeval.exe and b/thirdparty/Tesseract-OCR/lstmeval.exe differ diff --git a/thirdparty/Tesseract-OCR/lstmtraining.exe b/thirdparty/Tesseract-OCR/lstmtraining.exe index 37eecaf413..ecad7f713b 100755 Binary files a/thirdparty/Tesseract-OCR/lstmtraining.exe and b/thirdparty/Tesseract-OCR/lstmtraining.exe differ diff --git a/thirdparty/Tesseract-OCR/merge_unicharsets.exe b/thirdparty/Tesseract-OCR/merge_unicharsets.exe new file mode 100644 index 0000000000..353999e42c Binary files /dev/null and b/thirdparty/Tesseract-OCR/merge_unicharsets.exe differ diff --git a/thirdparty/Tesseract-OCR/mftraining.exe b/thirdparty/Tesseract-OCR/mftraining.exe index 6eb14c27f3..3f65260208 100755 Binary files a/thirdparty/Tesseract-OCR/mftraining.exe and b/thirdparty/Tesseract-OCR/mftraining.exe differ diff --git a/thirdparty/Tesseract-OCR/set_unicharset_properties.exe b/thirdparty/Tesseract-OCR/set_unicharset_properties.exe index 3637db6a1a..fee71e2306 100755 Binary files a/thirdparty/Tesseract-OCR/set_unicharset_properties.exe and b/thirdparty/Tesseract-OCR/set_unicharset_properties.exe differ diff --git a/thirdparty/Tesseract-OCR/shapeclustering.exe b/thirdparty/Tesseract-OCR/shapeclustering.exe index eb245c2a9b..65eefe7bf7 100755 Binary files a/thirdparty/Tesseract-OCR/shapeclustering.exe and b/thirdparty/Tesseract-OCR/shapeclustering.exe differ diff --git a/thirdparty/Tesseract-OCR/tar.exe b/thirdparty/Tesseract-OCR/tar.exe deleted file mode 100755 index 66ba66b468..0000000000 Binary files a/thirdparty/Tesseract-OCR/tar.exe and /dev/null differ diff --git a/thirdparty/Tesseract-OCR/tessdata/ScrollView.jar b/thirdparty/Tesseract-OCR/tessdata/ScrollView.jar new file mode 100644 index 0000000000..3be29a6b36 Binary files /dev/null and b/thirdparty/Tesseract-OCR/tessdata/ScrollView.jar differ diff --git a/thirdparty/Tesseract-OCR/tessdata/configs/alto b/thirdparty/Tesseract-OCR/tessdata/configs/alto new file mode 100644 index 0000000000..0dd12a7a70 --- /dev/null +++ b/thirdparty/Tesseract-OCR/tessdata/configs/alto @@ -0,0 +1 @@ +tessedit_create_alto 1 diff --git a/thirdparty/Tesseract-OCR/tessdata/configs/get.images b/thirdparty/Tesseract-OCR/tessdata/configs/get.images new file mode 100644 index 0000000000..7d00b613ff --- /dev/null +++ b/thirdparty/Tesseract-OCR/tessdata/configs/get.images @@ -0,0 +1 @@ +tessedit_write_images T diff --git a/thirdparty/Tesseract-OCR/tessdata/configs/hocr b/thirdparty/Tesseract-OCR/tessdata/configs/hocr index 9f63e41ebe..5ab372eaf8 100755 --- a/thirdparty/Tesseract-OCR/tessdata/configs/hocr +++ b/thirdparty/Tesseract-OCR/tessdata/configs/hocr @@ -1,3 +1,2 @@ tessedit_create_hocr 1 -tessedit_pageseg_mode 1 hocr_font_info 0 diff --git a/thirdparty/Tesseract-OCR/tessdata/configs/lstmbox b/thirdparty/Tesseract-OCR/tessdata/configs/lstmbox new file mode 100644 index 0000000000..a6f2cedc50 --- /dev/null +++ b/thirdparty/Tesseract-OCR/tessdata/configs/lstmbox @@ -0,0 +1 @@ +tessedit_create_lstmbox 1 diff --git a/thirdparty/Tesseract-OCR/tessdata/configs/lstmdebug b/thirdparty/Tesseract-OCR/tessdata/configs/lstmdebug new file mode 100644 index 0000000000..3fa3dee71a --- /dev/null +++ b/thirdparty/Tesseract-OCR/tessdata/configs/lstmdebug @@ -0,0 +1,4 @@ +stopper_debug_level 1 +classify_debug_level 1 +segsearch_debug_level 1 +language_model_debug_level 3 diff --git a/thirdparty/Tesseract-OCR/tessdata/configs/pdf b/thirdparty/Tesseract-OCR/tessdata/configs/pdf index 0d5f0f14cd..59645d71ce 100755 --- a/thirdparty/Tesseract-OCR/tessdata/configs/pdf +++ b/thirdparty/Tesseract-OCR/tessdata/configs/pdf @@ -1,2 +1 @@ tessedit_create_pdf 1 -tessedit_pageseg_mode 1 diff --git a/thirdparty/Tesseract-OCR/tessdata/configs/tsv b/thirdparty/Tesseract-OCR/tessdata/configs/tsv index 11cd6fc97a..dc52478177 100755 --- a/thirdparty/Tesseract-OCR/tessdata/configs/tsv +++ b/thirdparty/Tesseract-OCR/tessdata/configs/tsv @@ -1,2 +1 @@ tessedit_create_tsv 1 -tessedit_pageseg_mode 1 diff --git a/thirdparty/Tesseract-OCR/tessdata/configs/unlv b/thirdparty/Tesseract-OCR/tessdata/configs/unlv index 87c111bdf4..d2e22f5b93 100755 --- a/thirdparty/Tesseract-OCR/tessdata/configs/unlv +++ b/thirdparty/Tesseract-OCR/tessdata/configs/unlv @@ -1,2 +1,2 @@ tessedit_write_unlv 1 -tessedit_pageseg_mode 6 +unlv_tilde_crunching T diff --git a/thirdparty/Tesseract-OCR/tessdata/configs/wordstrbox b/thirdparty/Tesseract-OCR/tessdata/configs/wordstrbox new file mode 100644 index 0000000000..38cd41cd60 --- /dev/null +++ b/thirdparty/Tesseract-OCR/tessdata/configs/wordstrbox @@ -0,0 +1 @@ +tessedit_create_wordstrbox 1 diff --git a/thirdparty/Tesseract-OCR/tessdata/eng.traineddata b/thirdparty/Tesseract-OCR/tessdata/eng.traineddata index 561883fac8..bbef467505 100755 Binary files a/thirdparty/Tesseract-OCR/tessdata/eng.traineddata and b/thirdparty/Tesseract-OCR/tessdata/eng.traineddata differ diff --git a/thirdparty/Tesseract-OCR/tessdata/eng.user-patterns b/thirdparty/Tesseract-OCR/tessdata/eng.user-patterns new file mode 100644 index 0000000000..5daba44df8 --- /dev/null +++ b/thirdparty/Tesseract-OCR/tessdata/eng.user-patterns @@ -0,0 +1,2 @@ +1-\d\d\d-GOOG-411 +www.\n\\\*.com diff --git a/thirdparty/Tesseract-OCR/tessdata/eng.user-words b/thirdparty/Tesseract-OCR/tessdata/eng.user-words new file mode 100644 index 0000000000..e0c5a63021 --- /dev/null +++ b/thirdparty/Tesseract-OCR/tessdata/eng.user-words @@ -0,0 +1,5 @@ +the +quick +brown +fox +jumped diff --git a/thirdparty/Tesseract-OCR/tessdata/jaxb-api-2.3.1.jar b/thirdparty/Tesseract-OCR/tessdata/jaxb-api-2.3.1.jar new file mode 100644 index 0000000000..4565865471 Binary files /dev/null and b/thirdparty/Tesseract-OCR/tessdata/jaxb-api-2.3.1.jar differ diff --git a/thirdparty/Tesseract-OCR/tessdata/osd.traineddata b/thirdparty/Tesseract-OCR/tessdata/osd.traineddata new file mode 100644 index 0000000000..527457ca8f Binary files /dev/null and b/thirdparty/Tesseract-OCR/tessdata/osd.traineddata differ diff --git a/thirdparty/Tesseract-OCR/java/piccolo2d-core-3.0.jar b/thirdparty/Tesseract-OCR/tessdata/piccolo2d-core-3.0.jar old mode 100755 new mode 100644 similarity index 100% rename from thirdparty/Tesseract-OCR/java/piccolo2d-core-3.0.jar rename to thirdparty/Tesseract-OCR/tessdata/piccolo2d-core-3.0.jar diff --git a/thirdparty/Tesseract-OCR/java/piccolo2d-extras-3.0.jar b/thirdparty/Tesseract-OCR/tessdata/piccolo2d-extras-3.0.jar old mode 100755 new mode 100644 similarity index 100% rename from thirdparty/Tesseract-OCR/java/piccolo2d-extras-3.0.jar rename to thirdparty/Tesseract-OCR/tessdata/piccolo2d-extras-3.0.jar diff --git a/thirdparty/Tesseract-OCR/tessdata/tessconfigs/batch b/thirdparty/Tesseract-OCR/tessdata/tessconfigs/batch index 619b64675e..a681e4a443 100755 --- a/thirdparty/Tesseract-OCR/tessdata/tessconfigs/batch +++ b/thirdparty/Tesseract-OCR/tessdata/tessconfigs/batch @@ -1,2 +1 @@ # No content needed as all defaults are correct. - diff --git a/thirdparty/Tesseract-OCR/tesseract-uninstall.exe b/thirdparty/Tesseract-OCR/tesseract-uninstall.exe index 077aba19e0..5772def1a1 100755 Binary files a/thirdparty/Tesseract-OCR/tesseract-uninstall.exe and b/thirdparty/Tesseract-OCR/tesseract-uninstall.exe differ diff --git a/thirdparty/Tesseract-OCR/tesseract.exe b/thirdparty/Tesseract-OCR/tesseract.exe index 2df2e035c1..ef7c2161c2 100755 Binary files a/thirdparty/Tesseract-OCR/tesseract.exe and b/thirdparty/Tesseract-OCR/tesseract.exe differ diff --git a/thirdparty/Tesseract-OCR/text2image.exe b/thirdparty/Tesseract-OCR/text2image.exe index 5466039e72..c30ae33407 100755 Binary files a/thirdparty/Tesseract-OCR/text2image.exe and b/thirdparty/Tesseract-OCR/text2image.exe differ diff --git a/thirdparty/Tesseract-OCR/unicharset_extractor.exe b/thirdparty/Tesseract-OCR/unicharset_extractor.exe index 440b840538..b8c555cd13 100755 Binary files a/thirdparty/Tesseract-OCR/unicharset_extractor.exe and b/thirdparty/Tesseract-OCR/unicharset_extractor.exe differ diff --git a/thirdparty/Tesseract-OCR/wordlist2dawg.exe b/thirdparty/Tesseract-OCR/wordlist2dawg.exe index 4a1706e14b..2f787278c2 100755 Binary files a/thirdparty/Tesseract-OCR/wordlist2dawg.exe and b/thirdparty/Tesseract-OCR/wordlist2dawg.exe differ diff --git a/thirdparty/Tesseract-OCR/zlib1.dll b/thirdparty/Tesseract-OCR/zlib1.dll index fb6747146e..2be8fc70dc 100755 Binary files a/thirdparty/Tesseract-OCR/zlib1.dll and b/thirdparty/Tesseract-OCR/zlib1.dll differ