Stefan Weil
66b77e6639
Prepare using float instead of double for LSTM calculations
...
The new header file ccutils/tesstypes.h also prepares support
for larger images by introducing a new data type for image
size and coordinates (still unused).
FloatToDouble is now a local function.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-07-24 13:59:37 +02:00
Stefan Weil
4df822a3fc
Revert "Merge pull request #3330 from Sintun/master" ( #3505 )
...
This reverts commit 122daf1d64
, reversing
changes made to 4cd56dc5f5
.
Those changes caused two regressions which resulted in an assertion
or a segmentation fault.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-07-22 09:04:23 +03:00
Stefan Weil
f0fb6809e3
Use SIMD instructions for DotProductNative
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-07-14 19:13:01 +02:00
Stefan Weil
93348a83a3
Remove scripts for training
...
They were replaced by Python3 scripts (part of the tesstrain repository).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-05-18 10:47:44 +02:00
Stefan Weil
bf3421ff12
Fix autoconf build for latest MacOS (Intel and M1)
...
On latest MacOS 11.3 the system header file "ostream" includes a file
named "version".
The macro DEFAULT_INCLUDES adds the source root to the list of include
directories by default. As MacOS uses a case insensitive file system,
the compiler finds and includes the file "VERSION" there which causes
compiler errors and a failing build process.
Setting an empty DEFAULT_INCLUDES fixes that, but requires moving
config_auto.h to another directory in the include search path.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-05-13 17:22:58 +02:00
Stefan Weil
14505484c1
automake: Add build rule for fuzzer-api-512x256
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-11 10:44:43 +02:00
Stefan Weil
a74bbb6032
Remove bits16.h and BITS16 data type
...
Add also const attribute to some functions.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-08 10:43:21 +02:00
Stefan Weil
6ddceac538
Remove mfdefs.cpp from CMakeLists.txt and Makefile.am
...
That file was removed in commit 47715e576a
.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-07 17:27:08 +02:00
Stefan Weil
0611c892b6
Disable more code with GRAPHICS_DISABLED
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-02 16:43:26 +02:00
Stefan Weil
3f0ac1185c
Add new files ccstruct/image.cpp and ccstruct/image.h to Makefile
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-01 14:00:08 +02:00
Stefan Weil
2e349dbba5
Fix compilation for Tensorflow code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-29 16:19:06 +02:00
Stefan Weil
7d70ed4b41
Modernize code for OTSU and reduce public API further
...
Remove thresholder.h from the public API.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-23 08:59:04 +01:00
Stefan Weil
7fdf79aff4
Move function ExtractFontName to baseapi.cpp
...
It is only used there, so now a local function.
This also allows removing blobclass.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-18 08:57:36 +01:00
Stefan Brechtken
d856acba56
Change License to Apache V2, add new file to Makefile.am, change file name to .h ending
2021-03-16 14:16:02 +01:00
Stefan Weil
e51fcb2d31
Remove last usage of STRING
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-15 09:11:41 +01:00
Egor Pugin
d7823a71c2
Remove unused file.
2021-03-15 09:47:04 +03:00
Stefan Weil
58304cbfdd
Don't compile OpenCL code when OpenCL is disabled
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-02-26 15:40:23 +01:00
Stefan Weil
b3d48ea7b9
Fix build for flat unittest (CPPFLAGS for abseil and gtest)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-27 09:03:11 +01:00
Stefan Weil
971c6e6d6b
automake: Flat build for unittest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-24 18:21:37 +01:00
Stefan Weil
b6787749e3
Remove rests from vs2010
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-20 13:36:59 +01:00
Stefan Weil
7c5415a2c1
automake: Fix flat build for doc
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-13 15:57:04 +01:00
Stefan Weil
e1b9f1b446
automake: Flat build for doc
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-11 21:58:45 +01:00
Christopher Degawa
d7f44d4150
Makefile.am: remove unicode files
...
Signed-off-by: Christopher Degawa <ccom@randomderp.com>
2021-01-07 18:28:43 +00:00
Stefan Weil
dd8ee23fa2
Remove remaining parts of emalloc (fix autotools build)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-05 23:29:08 +01:00
Stefan Weil
66128429e5
Fix include statement for allheaders.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-05 23:18:39 +01:00
Stefan Weil
7757bde818
Sort entries in Makefile.am
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-05 23:17:06 +01:00
Stefan Weil
d000df7e00
Remove remaining parts of tessopt (fix autotools build)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-05 23:06:17 +01:00
Stefan Weil
8571cd26f8
Add missing OpenMP flags for fuzzer-api
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-03 19:59:56 +01:00
Egor Pugin
b4a9bcffe9
Rename platform.h -> export.h in more places.
2021-01-01 03:00:15 +03:00
Stefan Weil
19213e23a0
Fix broken autotools build for unittest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 17:53:01 +01:00
Stefan Weil
615a224c56
Fix broken autotools build
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 17:46:28 +01:00
Stefan Weil
72a9dc1448
Make automake builds less noisy by default
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 10:04:53 +01:00
Stefan Weil
fc4002dda8
Remove helpers.h from public API
...
Remove also outdated references to apitypes.h which no longer exists.
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-31 09:06:16 +01:00
Stefan Weil
c722671713
Add missing dependencies for dawg_test
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 18:58:44 +01:00
Stefan Weil
1305ac8185
Fix dependency for fuzzer-api
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 11:33:29 +01:00
Stefan Weil
f4e380f64a
Remove serialis.h from public API
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-29 11:28:50 +01:00
Stefan Weil
90af3e7b5c
Remove strngs.h from public API
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
64e902ddf7
Remove genericvector.h from public API
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
190be30a96
Remove src/ccutil/doubleptr.h from Makefile.am (fix build regression)
...
That header file was moved to unittest in
commit 3187f2ef08
.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-28 10:23:07 +01:00
Stefan Weil
421ebf0418
Fix installation of training tools for flat training build
...
Builds which were configured with --enable-shared did install the wrong files.
Using libtool fixes that.
Add also other flags which are used by the automake default install.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-21 18:34:32 +01:00
Stefan Weil
3efedabda3
automake: Flat build for src/training
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-19 15:25:21 +01:00
amitdo
b378ebff2e
Improve disabled legacy engine build
2020-10-10 04:49:52 +03:00
Stefan Weil
ac14ab32c6
Remove dummy functions from globaloc.cpp and related code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-10-04 12:24:26 +02:00
Stefan Weil
2db2223b39
Always use NEON by default for ARMv8
...
Signed-off-by: Stefan Weil <stefan.weil@bib.uni-mannheim.de>
2020-07-10 15:27:09 +02:00
Stefan Weil
62b085cb8d
ScrollView: Remove C API callcpp.{cpp,h}
...
Use C++ class ScrollView directly instead of using an intermediate C API.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-22 09:14:26 +02:00
amitdo
eb5ad74665
Disabled legacy build: Don't compile permdawg.cpp
2020-06-18 18:24:17 +03:00
Robin Watts
f79e52a7cc
NEON SIMD code.
...
In tests on my pi3b+, a release build of my ghostscript integration
takes 2 minutes 27 seconds to render a PDF and OCR it with the
vanilla sources. With this NEON coded added the time drops to 37
seconds.
I have not tested the configure/Makefile changes as I'm not using
them.
2020-05-20 18:54:42 +01:00
Stefan Weil
87841e9ace
Remove more relicts from cppan build (fixes make dist
)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-12-05 07:59:35 +01:00
Jörg Mechnich
d14bca4f19
Makefile.am: fixed fuzzer-api target ( #2802 )
2019-12-04 22:20:25 +01:00
Stefan Weil
39cc7b5808
automake: Improve build rules
...
- Use less noinst_LTLIBRARIES (saves build time and disk space)
- Move DISABLED_LEGACY_ENGINE from compiler flags to config_auto.h
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-12-03 12:22:47 +01:00