Commit Graph

6111 Commits

Author SHA1 Message Date
zdenop
5f297dc0b8
Merge pull request #3967 from stweil/coverity
Fix a number of performance issues (reported by Coverity Scan)
2022-11-21 07:03:46 +01:00
Stefan Weil
a9c1be658e Fix a number of performance issues (reported by Coverity Scan)
Coverity Scan reports "Unnecessary object copies can affect performance"
and suggests using the auto keyword with an &.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-11-20 19:00:51 +01:00
Stefan Weil
4c0051d533 Add const attribute to several compare operators
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-11-19 21:09:24 +01:00
Egor Pugin
1751fba623
[sw] Do a lightweight build during PRs. 2022-11-15 15:24:50 +03:00
Stefan Weil
adbefa8316 Fix AMD64 detection with autobuild on FreeBSD (#3964)
Tesseract for FreeBSD was built without support for SSE4.1, AVX,
AVX2 or FMA because it uses a different value for `host_cpu`.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-11-14 18:30:42 +01:00
Robert Sachunsky
8f4aae70b8 lstm.train: allow .box from .raw.png too 2022-11-12 21:11:22 +01:00
zdenop
78bcc0d84c
Update cmake.yml
github action cmake macos: add setting for compilers to find icu4c
2022-11-10 08:58:02 +01:00
Stefan Weil
fd83f3dc61
Merge pull request #3959 from amitdo/amitdo-pdf-Ignore-non-text-blocks
pdfrenderer.cpp: Ignore non-text blocks
2022-11-10 07:57:04 +01:00
Stefan Weil
c01ddc033c Remove remaining references to deprecated LGTM (fix for #3958)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-11-10 07:54:24 +01:00
Zdenko Podobný
7d073f24fb github action/cmake: fix macos icu linking 2022-11-09 12:40:48 +01:00
Amit Dovev
c1964560b6 pdfrenderer.cpp: Ignore non-text blocks
Fix #3957.
2022-11-08 08:02:09 +02:00
zdenop
490611e4c6 cmake: fix linux&mac build 2022-11-06 18:11:22 +01:00
zdenop
4ab09a63b2 fix typo in variable 2022-11-06 17:43:53 +01:00
Amit D
7cdf87c4d3
README.md: Show CodeQL alerts
#3958 (again).
2022-11-06 09:07:15 +02:00
Amit D
41503a8264
README.md: Make CodeQL badge clickable
This is a better fix for issue #3958.
2022-11-06 08:29:05 +02:00
Amit D
ce84a4cac7
README.md: Add CodeQL badge
Remove LGTM badges (Fix #3958).
2022-11-06 08:11:44 +02:00
zdenop
b593a57676 show dropped unrendable words 2022-11-01 18:54:48 +01:00
zdenop
41c480d4f2 cmake: install common_training and unicharset_training libs 2022-11-01 18:54:37 +01:00
zdenop
954c5413c1 cmake: we can build training tools without PkgConfig 2022-11-01 18:54:19 +01:00
Stefan Weil
64de12c857
Merge pull request #3951 from doraeric/patch-1
Fix broken links in CONTRIBUTING.md
2022-10-26 14:55:57 +02:00
Eric Hsieh
1f3e45f069
Fix broken links in CONTRIBUTING.md 2022-10-26 20:04:27 +08:00
Stefan Weil
6c772e4501
Merge pull request #3950 from Saibamen/patch-1
* Fix Markdownlint
* Apply suggestions from code review
2022-10-24 20:58:39 +02:00
Adam Stachowicz
51a43b4fd9
Apply suggestions from code review 2022-10-24 20:50:44 +02:00
Adam Stachowicz
21e7f1b34b
Fix Markdownlint 2022-10-24 17:02:53 +02:00
Amit D
e3c06d1bcc
Update codeql-analysis.yml 2022-10-24 17:41:08 +03:00
Amit D
bcd9d57ce5
Update sw.yml 2022-10-24 15:18:44 +03:00
Amit D
1eed087472
Update codeql-analysis.yml
v1 -> v2

https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/
2022-10-24 11:08:47 +03:00
Stefan Weil
23613c5c24 Fix regression (broken unit tests)
Fixes: 95019a8c ("fix issue #3940 - remove colormap before thresholding")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-10-24 06:40:11 +02:00
Stefan Weil
1ae0ec9a82 Restore comment
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-10-24 06:25:21 +02:00
zdenop
bca0a7fe82 Fix memory leaks in ImageThresholder::ThresholdToPix 2022-10-23 20:19:54 +02:00
Zdenko Podobný
14e2517d6d remove src.destroy(); 2022-10-21 15:58:58 +02:00
Amit D
82e400d655
Update autotools-macos.yml
Remove maoOS 10.15. Use macOS 12 instead.
2022-10-20 22:39:17 +03:00
Egor Pugin
0819ec9948
Merge pull request #3948 from rettinghaus/update-action
Update checkout action to version 3
2022-10-20 13:15:47 +03:00
Egor Pugin
19d12b8810
Merge pull request #3949 from rettinghaus/update-upload
Update upload-artifact action
2022-10-20 13:15:16 +03:00
Klaus Rettinghaus
5c70ae820c
update upload action 2022-10-20 10:48:21 +02:00
Klaus Rettinghaus
6ba5391cfe
update checkout to version 3 2022-10-20 10:29:05 +02:00
zdenop
c039bba518
Merge pull request #3942 from zdenop/main
fix issue #3940 - remove colormap before thresholding
2022-10-19 13:16:39 +02:00
Amit D
718a4eac6c
Update autotools-macos.yml
Disable g++-11 until we figure out how to make it work.
2022-10-19 07:28:22 +03:00
Amit D
ebbd498e32
Update autotools-macos.yml
Try to fix the failing g++ 11 job.
2022-10-18 20:40:00 +03:00
zdenop
95019a8cf3 fix issue #3940 - remove colormap before thresholding 2022-10-15 00:11:58 +02:00
Amit D
a873553593
Update autotools.yml
https://github.com/actions/runner-images/issues/6002

Drop Ubuntu 18.04.
2022-10-09 11:16:47 +03:00
Amit D
a1a342db7b
Update unittest.yml
https://github.com/actions/runner-images/issues/6002

Drop 18.04. Add 22.04.
2022-10-09 10:56:09 +03:00
Amit D
ce8376ba72
Update autotools-openmp.yml
https://github.com/actions/runner-images/issues/6002

Drop 18.04. Add 22.04.
2022-10-09 10:46:39 +03:00
zdenop
f682bae3eb
Update cmake-win64.yml
try to use the latest release of tiff instead of the latest code
2022-10-08 14:25:33 +02:00
Egor Pugin
97a1a3e10f
Merge pull request #3938 from Gitoffthelawn/patch-1
Fixed 2 errors
2022-10-06 13:57:08 +03:00
Gitoffthelawn
d086c075b3
Fixed 2 errors 2022-10-06 03:53:11 -07:00
Stefan Weil
b5ee0816da
Merge pull request #3935 from nicholasz2510/main
Update README.md
2022-10-03 04:40:04 +02:00
Stefan Weil
aee19fcf8e
Merge pull request #3930 from jeroen/patch-1
Fix tesseract.pc from cmake to match autotools
2022-09-23 12:26:21 +02:00
Jeroen Ooms
9ac78f94d9
Fix tesseract.pc from cmake to match autotools 2022-09-23 12:21:15 +02:00
Amit D
1d07dfdd94
Update .mailmap 2022-09-22 01:45:15 +03:00