Stefan Weil
021237ad2c
Add assertion for IntCastRounded
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-10 15:08:31 +01:00
Stefan Weil
209c1df599
Fix some format strings
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-08 18:49:21 +01:00
Egor Pugin
8cb1c62259
More std::vector.
2021-01-07 15:13:59 +03:00
Egor Pugin
8d6cad1acc
Misc.
2021-01-07 14:33:45 +03:00
Egor Pugin
4f5bd1c562
Move unicodes into files where they are used.
2021-01-07 14:33:02 +03:00
Egor Pugin
8aa5492262
Misc.
2021-01-07 14:14:40 +03:00
Egor Pugin
9cc7bdeaa6
Use std::bitset<16> instead of custom BITS16.
2021-01-07 14:14:27 +03:00
Egor Pugin
9710bc0465
More std::vector.
2021-01-07 13:57:57 +03: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
Egor Pugin
8e947a98b5
Remove emalloc. Replace it with malloc. To be replaced with new later.
2021-01-06 00:30:52 +03:00
Egor Pugin
af4ebaa943
Alloc on stack.
2021-01-05 18:07:40 +03:00
Egor Pugin
d3729cb34e
Rmove unused members.
2021-01-05 18:07:10 +03:00
Egor Pugin
40aca00559
Remove unused var.
2021-01-05 17:56:39 +03:00
Egor Pugin
14cf6adda2
More std::vector.
2021-01-05 17:53:05 +03:00
Egor Pugin
a44d107e94
Misc.
2021-01-05 17:45:34 +03:00
Egor Pugin
6e94564152
[training] More unique ptrs.
2021-01-05 17:03:26 +03:00
Egor Pugin
4415209fd6
Remove tessopt. This fixes mastertrainer test in shared build.
2021-01-05 17:00:27 +03:00
Egor Pugin
c946a5610c
Remove unused header.
2021-01-05 16:45:24 +03:00
Egor Pugin
8950e49a5d
Remove unused var.
2021-01-05 16:45:07 +03:00
Egor Pugin
5160426400
Misc.
2021-01-05 16:31:09 +03:00
Egor Pugin
fb98b9b2f5
Use unique_ptr.
2021-01-05 16:00:22 +03:00
Egor Pugin
aa80aa5de1
More std::vector.
2021-01-05 15:54:30 +03:00
Egor Pugin
4f8f8e3d58
More std::vector. Simplify.
2021-01-05 15:49:53 +03:00
Egor Pugin
ca514ad91e
[test] Return early on error.
2021-01-05 15:37:43 +03:00
Egor Pugin
4ed601956e
More std::vector.
2021-01-05 14:46:11 +03:00
Egor Pugin
0c7139ce09
A better fix to read unichars. Imbue C locale always since on different systems, default locale will give different results.
2021-01-04 20:36:21 +03:00
Egor Pugin
0364832ab8
Correctly read cutoff classes.
2021-01-04 20:20:17 +03:00
Egor Pugin
71f578a198
Do not swap endian elements with size == 1.
2021-01-04 20:00:46 +03:00
Egor Pugin
4e59d964dc
Use templates for serialize/deserialize.
2021-01-04 20:00:25 +03:00
Egor Pugin
4162e37e8c
Use std::vector.
2021-01-04 19:54:51 +03:00
Egor Pugin
3aae46d53d
Remove noisy message.
2021-01-04 18:11:16 +03:00
Stefan Weil
40ba25acbb
Remove functions which are only used locally from scanedg.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-04 15:49:15 +01:00
Stefan Weil
709acf74fe
Remove functions which are only used locally from fpchop.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-03 21:41:56 +01:00
Stefan Weil
bb6dbd2cd8
Fix autotoools build with --disable-legacy
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-03 20:28:30 +01:00
Egor Pugin
fd8907471c
Improve C API. Add tests.
...
1. Add simple C API test in C++ program.
2. Add simple C API test in C program.
3. Fix including capi.h in C++ files.
2021-01-02 03:57:25 +03:00
Egor Pugin
bee90f7835
[capi] Remove unused functions.
...
Those functions were undef ifdef for C++ mode. Since in C++ mode noone uses them, they can be safely removed.
2021-01-02 02:59:31 +03:00
Egor Pugin
52f5e5b8fb
Restore building of C API. Simplify.
...
1. Delete useless ifdefs.
2. Move C++ includes into source file. C code does not care about any C++ headers.
3. Replace TESS_CAPI_INCLUDE_BASEAPI with simple __cplusplus macro.
4. In capi.cpp remove enclosing namespace tesseract, so symbols have their according decls back.
In capi.cpp we
- put capi.h after all C++ headers, so we can remove some typedefs later,
- put using namespace tesseract between them, so C++ symbols are visible to functions in the file without namespace.
2021-01-02 02:53:33 +03:00
Egor Pugin
664a718a63
Rename platform.h to export.h.
2021-01-01 00:18:36 +03:00
Egor Pugin
2c84c4beb2
[cmake] Make pango include dirs public.
2020-12-31 20:47:34 +03:00
Egor Pugin
9eb52625cd
Merge branch 'master' of github.com-egorpugin:tesseract-ocr/tesseract
2020-12-31 20:33:48 +03:00
Egor Pugin
32cb90f114
[cmake] Make pango deps public.
2020-12-31 20:33:01 +03:00
Stefan Weil
061f088b77
Replace C headers by C++ headers and remove old unused C code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 18:26:33 +01:00
Stefan Weil
c0db7b7e93
Remove unused code from matchdefs.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 18:23:38 +01:00
Egor Pugin
0cdb718835
Remove deleted util.h header.
2020-12-31 20:16:20 +03:00
Egor Pugin
9e1e6305b2
[cmake] Fix build.
2020-12-31 19:56:55 +03:00
Egor Pugin
7b8a78045d
Merge branch 'master' of github.com-egorpugin:tesseract-ocr/tesseract
2020-12-31 19:32:09 +03:00
Egor Pugin
6306393c91
[cmake] Implement shared builds.
2020-12-31 19:32:03 +03:00
Stefan Weil
43791c6520
Replace GenericVector<SetOfModels> by std::vector<SetOfModels>
...
This fixes commit cad0eb4d26
.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 17:01:12 +01:00
Egor Pugin
07a1533a01
Move training lib sources into their own dirs.
2020-12-31 18:27:03 +03:00
Egor Pugin
1a53ca099a
[cmake] tessopt is a static library.
2020-12-31 18:26:33 +03:00