Commit Graph

2191 Commits

Author SHA1 Message Date
zdenop
a8e8bac621 Merge pull request #666 from solomennikm/err-err_exit
err -> err_exit
2017-01-23 21:51:04 +01:00
zdenop
65b3ddeb68 Merge pull request #675 from stweil/macos-simd-detect
Implement SIMD detection on macOS-gcc; complain if no SIMD detection
2017-01-23 21:26:53 +01:00
James R. Barlow
fa677f1ba1 Implement SIMD detection on macOS-gcc; complain if no SIMD detection
Change SIMD detection to instead check for compilers with __get_cpuid.
Verified that this compiles and runs on macOS El Capitan with homebrew gcc.

Also added an #error if SIMD checking is missing. Compilers that have no
SIMD should make that explicit.

[sw: Merged original commits and slightly polished the commit message]
[sw: Removed test for __MINGW32__ which is no longer needed]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-01-23 13:41:03 +01:00
zdenop
c768b5867d Merge pull request #668 from Wikinaut/chg-textonly-pdf-parameter-description
Improve textonly_pdf parameter description
2017-01-21 16:29:06 +01:00
Wikinaut
c03299e2b4 Improve textonly_pdf parameter description 2017-01-21 16:18:53 +01:00
Egor Pugin
1602234cd3 Merge pull request #671 from stweil/warnings
Fix some compiler warnings (unused variables)
2017-01-21 14:58:11 +03:00
Egor Pugin
ef708652c1 Merge pull request #669 from Wikinaut/fix-typo-in-parameter-description
fix typo in parameter description
2017-01-21 14:56:54 +03:00
Stefan Weil
465e2def7b lstm: Remove unused constant and unused local variables
This fixes three compiler warnings.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-01-21 12:32:06 +01:00
Stefan Weil
134a253758 ccstruct: Remove unused local variable
This fixes a compiler warning.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-01-21 12:32:06 +01:00
Wikinaut
98df78ca8a fix typo in parameter description 2017-01-21 10:48:25 +01:00
Zdenko Podobný
8ce58ac458 Fix C-API 2017-01-21 07:40:54 +01:00
zdenop
3d9fb3bf14 Merge pull request #667 from jbarlow83/slash-xobject
Fix PDF syntax error: "XObject" instead of "/XObject" when textonly_pdf=false
2017-01-21 07:37:54 +01:00
James R. Barlow
bf638b9202 Fix PDF syntax error: "XObject" instead of "/XObject" when textonly_pdf=false 2017-01-20 13:36:38 -08:00
Zdenko Podobný
effa5741e6 Implement invisible text only for PDF 2017-01-20 21:26:34 +01:00
Mikhail Solomennik
e2974cf953 err -> err_exit 2017-01-20 18:50:47 +03:00
Jeff Breidenbach
a979494897 fix #665 process file list 2017-01-19 15:19:35 +01:00
zdenop
170573f044 Merge pull request #662 from amitdo/remove-hashfn2
Remove code that is no longer needed
2017-01-16 08:27:53 +01:00
Egor Pugin
080eb73ac6 Update cppan.yml 2017-01-16 10:17:13 +03:00
Egor Pugin
1920288a9e Update appveyor.yml 2017-01-16 09:43:30 +03:00
amitdo
5d627aacae Remove code that is no longer needed
The code in ccutil/hashfn.h was needed for some old compilers. Now that we support MSVC >= 2010 and compilers that has good support for C++11, we can drop this code.

As a result of this file removal, we now use:
  std::unordered_map
  std::unordered_set
  std::unique_ptr
directly in the codebase with '#include' for the needed headers.
2017-01-16 01:49:17 +02:00
Egor Pugin
e2ee78061a Uncomment silent options for cppan. 2017-01-13 22:16:17 +03:00
zdenop
fd835d3ed4 Merge pull request #658 from Wikinaut/patch-1
2 typo corrections "specific"
2017-01-13 08:19:12 +01:00
Wikinaut
f06ef543fc typo correction "specific" 2017-01-13 04:24:16 +01:00
Wikinaut
39274d8000 typo correction "specific" 2017-01-13 04:17:32 +01:00
Egor Pugin
89f33c5ad7 Update appveyor.yml 2017-01-12 12:24:33 +03:00
Egor Pugin
809e49afc4 Update appveyor.yml 2017-01-12 03:33:41 +03:00
Egor Pugin
a79d0c936d Update appveyor.yml 2017-01-12 03:31:23 +03:00
Egor Pugin
ef9932ad7c Update appveyor.yml 2017-01-12 03:30:53 +03:00
Egor Pugin
d2bcd00463 Update appveyor.yml 2017-01-12 03:17:26 +03:00
Egor Pugin
f02027d4e4 Update appveyor.yml 2017-01-11 21:48:05 +03:00
Egor Pugin
dc97e924bc Merge branch 'master' of github.com-egorpugin:tesseract-ocr/tesseract 2017-01-11 21:28:12 +03:00
Egor Pugin
7156a7e288 Add text2image binary when building with cppan. 2017-01-11 21:27:45 +03:00
Egor Pugin
429347b3b8 Update appveyor.yml 2017-01-11 20:48:42 +03:00
Egor Pugin
9bdb7110df Update appveyor.yml 2017-01-11 20:48:31 +03:00
Egor Pugin
4d9609dab3 Update appveyor.yml 2017-01-11 20:37:28 +03:00
Egor Pugin
6b3f20b4b9 Update appveyor.yml 2017-01-11 20:13:20 +03:00
Egor Pugin
30e68f995a Update appveyor.yml 2017-01-11 19:31:56 +03:00
Egor Pugin
5b45e5a236 Update cppan.yml 2017-01-09 17:57:40 +03:00
zdenop
8fd8cc758a Merge pull request #643 from amitdo/autoconf-non-cpp11-error
configure.ac: Exit if compiler does not have c++11 support
2017-01-08 19:20:56 +01:00
Amit D
e6829546ae configure.ac: Exit if compiler does not have c++11 support 2017-01-08 19:00:58 +02:00
Egor Pugin
263a4d2601 Update README.md 2017-01-07 19:46:06 +03:00
Egor Pugin
6f83ba0dae Add include dirs to cppan config. 2017-01-02 03:08:55 +03:00
Egor Pugin
2a5a9151f1 Add training tool deps. 2017-01-02 02:12:50 +03:00
Egor Pugin
3817aa3079 Fix windows dll build. 2016-12-28 23:32:52 +03:00
zdenop
e6ccfb2fe2 Merge pull request #625 from stweil/lstm
Move AVX / SSE messages to function PrintVersionInfo (crash fix)
2016-12-28 14:06:00 +01:00
Stefan Weil
534a237015 Move AVX / SSE messages to function PrintVersionInfo (crash fix)
This information is not needed for normal runs, so it is sufficient
to show it on request (like versions and OpenCL information).

This also fixes a crash caused by undefined order of global constructors:

When the global variable SIMDDetect::detector is initialized before the
global variable debug_file, the first tprintf call in simddetect.cpp
crashes because of a NULL pointer in debug_file. This was only seen when
running with a shared library (libtesseract.so).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-12-28 13:35:44 +01:00
zdenop
38033cebb7 Merge pull request #618 from stweil/lstm
lstm: Move class SIMDDetect to new source file and improve code
2016-12-27 14:13:19 +01:00
Stefan Weil
19616b07ba lstm: Move class SIMDDetect to new source file and improve code
Modify also the code to use a singleton. This simplifies the code as
no locking is needed. It also slightly improves the performance because
no check whether the architecture was tested is needed.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-12-27 13:25:08 +01:00
zdenop
e949812e63 Merge pull request #617 from stweil/lept
Remove code for old versions of Leptonica
2016-12-27 12:05:16 +01:00
Stefan Weil
680bfddb4f Remove code for old versions of Leptonica
Those versions are no longer supported.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-12-27 11:57:44 +01:00