Amit D
a4a84c4c92
lstmrecognizer.cpp: Call OutputStats() only when 'invert' is true ( #3387 )
...
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2021-04-08 17:55:23 +02:00
Amit Dovev
e6ce048426
Change message from 'Found SSE' to 'Found SSE4.1'
2021-04-08 17:51:09 +02:00
Stefan Weil
63f4463028
Add const attribute to some functions (API change)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-08 10:43:21 +02:00
Stefan Weil
253751c331
Simplify class REJ by replacing two std::bitset<16> by one std::bitset<32>
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-08 10:43:21 +02:00
Stefan Weil
2fbcca783b
Make more functions in class REJ inline
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-08 10:43:21 +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
7fe5248d91
Format public API files with modified rules for clang-format
...
Disable clang-format for version.h.in because it destroys
several macro definitions.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-07 18:53:48 +02:00
Stefan Weil
83cdcd0c01
clang-format: Clean formatting rules
...
- Remove duplicate entry
- Try to use either "google" or default style settings
- Use default column with 80
- Order settings and add more comments
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-07 18:53:24 +02:00
Stefan Weil
2fa96b765b
Modernize and optimize list_rec a little bit
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-07 17:30:33 +02:00
Stefan Weil
7fd90498ca
Modernize code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-07 17:30:33 +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
Egor Pugin
edfce72340
Refactor microfeatures a bit.
2021-04-07 17:29:46 +03:00
Egor Pugin
47715e576a
Replace microfeatures from oldlist to std::forward_list.
2021-04-07 17:10:16 +03:00
Egor Pugin
2e17ee7327
Correct template args.
2021-04-07 13:28:57 +03:00
Stefan Weil
10255d013a
Fix new / delete class mismatch
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-07 09:25:37 +02:00
Egor Pugin
b1731b6e73
Add missing TESS_API.
2021-04-07 00:59:36 +03:00
Egor Pugin
6e3259593a
Reorder list templates.
2021-04-07 00:29:07 +03:00
Egor Pugin
409aa5296f
Misc.
2021-04-07 00:17:04 +03:00
Egor Pugin
9d40512ade
[elist2] Convert macros to template. Remove source file macro ELIST2IZE.
2021-04-07 00:15:01 +03:00
Egor Pugin
03435adca0
[elist] Rework macro into template and small macro. Move common iterator template into 'list_iterator.h'.
2021-04-07 00:04:30 +03:00
Egor Pugin
b9329e599f
Misc.
2021-04-06 23:45:28 +03:00
Egor Pugin
746b87363b
Remove unused methods.
2021-04-06 23:45:22 +03:00
Egor Pugin
29e75d0f51
[elist] Remove unused macros QUOTE_IT.
2021-04-06 23:40:56 +03:00
Egor Pugin
539f4b8255
[clist] Remove unused methods.
2021-04-06 23:40:35 +03:00
Egor Pugin
18e61d10ce
Rework big clist macro into template and small macro. Remove unused macros QUOTE_IT and CLISTIZE (source file macro).
2021-04-06 23:37:14 +03:00
Egor Pugin
0c189908ec
Merge pull request #3382 from Shreeshrii/windows
...
Actions CI: Build Tesseract on Windows using cmake
2021-04-06 21:33:49 +03:00
Shree Devi Kumar
efc2a035cd
Actions CI: Windows cmake build
2021-04-06 17:28:55 +00:00
Shree Devi Kumar
2e076e6b1b
Actions CI: Windows cmake build
2021-04-06 17:15:08 +00:00
Raf Schietekat
6bbfef7c85
RAII: TessBaseAPI::GetIterator()
...
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2021-04-06 17:57:23 +02:00
Raf Schietekat
d71413f4aa
RAII: TessBaseAPI::AnalyseLayout()
...
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2021-04-06 17:46:26 +02:00
Stefan Weil
897e59613d
Clean code for hOCR renderer
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-06 16:36:23 +02:00
Egor Pugin
6479aaa0bc
Merge pull request #3380 from stweil/gridsearch
...
Optimize Gridsearch and proprietary list classes
2021-04-06 17:31:29 +03:00
Stefan Weil
3705989c94
Optimize length method for ELIST, ELIST2
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-06 15:57:12 +02:00
Stefan Weil
4104876b08
Add const attribute to some methods of ELIST, ELIST2 and related classes
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-06 15:48:18 +02:00
Stefan Weil
fb904d2265
Remove redundant debug code for CLIST
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-06 15:26:04 +02:00
Stefan Weil
b47ce5643b
Modernize CLIST code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-06 15:16:57 +02:00
Stefan Weil
fd187b0c18
Optimize CLIST
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-06 15:08:35 +02:00
Stefan Weil
4a628729b2
Delete assignment and copy constructor for ELIST
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-05 19:59:31 +02:00
Stefan Weil
b0b5600c30
Delete assignment and copy constructor for ELIST2, ELIST2_LINK
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-05 19:59:00 +02:00
Stefan Weil
24f91fab0b
Delete assignment and copy constructor for CLIST, CLIST_LINK
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-05 19:42:01 +02:00
Stefan Weil
eeb67e8ae8
Replace find / insert by insert on unordered set to optimize GridSearch
...
Both find and insert can be slow for a large unordered set.
Instead of using both methods, it is sufficient to simply try only
the insert method which returns whether the insertion was possible
or not.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-05 18:11:33 +02:00
Egor Pugin
50aec308b3
Remove unnecessary pointer hasher for uset.
2021-04-04 14:00:46 +03:00
Stefan Weil
23ed59bd7b
Fix CI and update package list before installation
...
Run `apt-get update` before installing packages because otherwise
the installation can fail.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-03 23:06:53 +02:00
Egor Pugin
5cfdb2fa8a
Merge pull request #3376 from stweil/master
...
Disable more code with GRAPHICS_DISABLED
2021-04-02 17:55:45 +03: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
Egor Pugin
7a73875bd1
Merge pull request #3375 from amitdo/viewer
...
Disable more code with GRAPHICS_DISABLED
2021-04-02 12:27:24 +03:00
Amit Dovev
6d94b22c80
Disable more code with GRAPHICS_DISABLED
2021-04-02 11:12:38 +03:00
Stefan Weil
bfe1616b4e
Create new pre-release 5.0.0-alpha-20210401
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-01 21:41:15 +02:00
Egor Pugin
34e0d017ab
Add Image::operator&=().
2021-04-01 19:15:58 +03:00
Egor Pugin
9e3da4a724
Add Image::operator|=().
2021-04-01 19:10:48 +03:00