Stefan Weil
c5030ea15a
Add missing include statement
...
Fixes: bc490ea7ab
("Ignore illegal TESSDATA_PREFIX [...]")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-07-28 20:56:47 +02:00
JKamlah
dd08a7aa6a
Fix confidence output for the PAGE XML renderer.
2024-07-25 11:29:45 +02:00
Stefan Weil
bc490ea7ab
Ignore illegal TESSDATA_PREFIX (not existing filesystem entry, issue #4277 )
...
Don't check for a directory, because a symbolic link is also allowed.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-07-03 20:47:55 +02:00
Zopolis4
2991d36a8b
Make regular usage of CMAKE_INSTALL_LIBDIR and GNUInstallDirs
2024-06-21 13:09:20 +02:00
Egor Pugin
93c9be7acf
Merge pull request #4271 from hglee/fix-static-linking-TARGET_PDB_FILE
...
Fix TARGET_PDB_FILE error for static linking.
2024-06-20 13:44:56 +03:00
Hyogeol Lee
1476a59131
Fix TARGET_PDB_FILE error for static linking.
2024-06-20 18:47:29 +09:00
Stefan Weil
b5f279ec75
Create new release 5.4.1
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-11 20:18:21 +02:00
Stefan Weil
130b8a1c1e
Remove unused variable assignments
...
This fixes some issues which were reported by Codacy.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-11 20:02:39 +02:00
Stefan Weil
08e9ba8b2e
Add double quotes to prevent globbing and word splitting
...
This fixes some issues which were reported by Codacy.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-11 20:02:39 +02:00
Stefan Weil
6cb49dcebd
Fix more code style issues (reported by Codacy)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-11 20:02:39 +02:00
zdenop
f251a0da39
use c++17 instead of c++11
2024-06-11 19:25:15 +02:00
Stefan Weil
96772c5761
Reduce scope of some local variables (reported by Codacy)
...
Apply also some smaller optimizations and add TODO comments
for local variables which require further examination.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-11 17:52:58 +02:00
Stefan Weil
560529332c
Fix more code style issues (reported by Codacy)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-11 17:52:58 +02:00
zdenop
ec829cd90f
cmake: remove config option from build to avoid GA wrong build
2024-06-11 17:02:23 +02:00
zdenop
694cd16cb8
cmake: add timestamp to artifacts
2024-06-11 16:59:48 +02:00
zdenop
a387624e9f
cmake: use RelWithDebInfo instead of Release
2024-06-11 14:14:21 +02:00
zdenop
09e003f8fb
cmake: improve png version handling
2024-06-11 14:13:50 +02:00
Zdenko Podobný
4bd125b032
cmake: install pdb files only for MSVC build
2024-06-10 12:43:33 +02:00
Egor Pugin
0f815d5dde
Merge pull request #4263 from stweil/codacy
...
Fix code style issues which were reported by Codacy
2024-06-10 13:12:05 +03:00
zdenop
3edf3b414d
Merge pull request #4262 from stweil/gh_actions
...
Update deprecated Node.js 16 GitHub actions
2024-06-10 07:17:10 +02:00
Stefan Weil
651f172c42
Fix more code style issues (reported by Codacy)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-10 07:12:23 +02:00
Stefan Weil
cde0576fb3
Fix small code style issues (reported by Codacy)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-10 06:59:09 +02:00
Stefan Weil
896f90537c
Remove unused .github/ISSUE_TEMPLATE.md
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-10 06:59:09 +02:00
Stefan Weil
59bda0853c
Update deprecated Node.js 16 GitHub actions
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-10 06:44:24 +02:00
zdenop
cb177c059d
cmake: msvc: install also pdb files
2024-06-09 19:27:04 +02:00
Stefan Weil
dac6b18a47
Avoid FP overflow in NormEvidenceOf (fixes issue #4257 )
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-09 13:11:26 +02:00
zdenop
b0a10bbe1a
Update cmake-win64.yml
...
Use libpng 1.6.43
2024-06-07 07:13:54 +02:00
zdenop
6db748d1fc
Update cmake-win64.yml
...
actions/upload-artifact@v3.1.1 is depreciated
2024-06-07 06:41:38 +02:00
Stefan Weil
1be261dc22
Create new release 5.4.0
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-06 15:29:45 +02:00
Stefan Weil
34693cd772
Make function Network::spec pure virtual
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-28 15:21:45 +02:00
Amit D
a7c0a952b0
Update issue-bug.yml
2024-05-27 05:40:06 +03:00
Stefan Weil
c5b0c2f421
Replace strcpy and strncpy by new inline helper function
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-24 15:24:35 +02:00
Egor Pugin
ea82f919a6
Merge pull request #4249 from stweil/codacy
...
Avoid redundant conversion from std::string to char * to std::string
2024-05-24 01:15:03 +03:00
Stefan Weil
6e73a80e10
Avoid redundant conversion from std::string to char * to std::string
...
This fixes two issues reported by Codacy.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-23 17:13:18 +02:00
Stefan Weil
5712e16957
Add nullptr check in for statement of function RecodeBeamSearch::ContinueContext
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-23 16:56:45 +02:00
Yu Xiao
cf7231f370
Fixes #4247 : remove unnecessary nullptr checks
2024-05-23 16:56:45 +02:00
Stefan Weil
5d5a633a5d
Fix compiler warnings [-Wdeprecated-declarations]
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-20 12:50:00 +02:00
Stefan Weil
bdc64229ca
Fix compiler warnings [-Wmaybe-uninitialized]
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-20 12:50:00 +02:00
Stefan Weil
f1a45db977
Remove unused xmlns:xlink from ALTO renderer
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-20 07:46:48 +02:00
Stefan Weil
0366613526
Avoid some float / double conversions in class Classify
...
This also fixes several compiler warnings ([-Wimplicit-float-conversion],
[-Wdouble-promotion]).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-20 07:46:07 +02:00
Stefan Weil
d0b3d0915e
Fix compiler warnings [-Wunused-but-set-variable]
...
- Use conditional compilation for variables which might be useful for debugging.
- Remove all other unused variables.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-20 07:46:07 +02:00
Stefan Weil
1644205d9e
Fix compiler warnings [-Wold-style-cast]
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-20 07:46:07 +02:00
Stefan Weil
24dd72603b
Fix compiler warnings [-Wunreachable-code-return]
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-20 07:46:07 +02:00
Stefan Weil
36d44a1497
Fix compiler warnings [-Wzero-as-null-pointer-constant]
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-20 07:46:07 +02:00
zdenop
531597fbea
Merge pull request #4244 from stweil/buildfix
...
Use AM_CPPFLAGS also for compilation of all sources
2024-05-19 20:47:31 +02:00
Stefan Weil
d72567ad45
Use AM_CPPFLAGS also for compilation of all sources
...
It was not used for all sources before. Therefore some parts of the
code (especially the code for training) used different compiler
options. For example NDEBUG was not defined, and so the training
code was built with debug assertions (resulting in potentially
slower execution).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-19 18:43:55 +02:00
Stefan Weil
9a30816783
Create new release 5.3.5-rc1
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-19 11:57:23 +02:00
Stefan Weil
74e4381696
Fix FP exception in Wordrec::angle_change (issue #4242 ) ( #4243 )
...
std::asin only allows arguments in [-1, 1], but rounding errors can
produce values which are slightly outside of this range and which
would cause a FP exception (or wrong calculation results).
Rename also the internally used function `TPOINT::length` to `TPOINT::length2`
because it calculates the square of the length.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-17 18:14:00 +03:00
Stefan Weil
bcfdd5e511
Fix setup of datadir on installations with Conda (issue #4230 )
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-05-15 16:56:23 +02:00
Egor Pugin
f3974d422c
Update sw.yml
2024-05-12 19:06:46 +03:00