Stefan Weil
d1d176a280
Remove TessTruthCallback from public API
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 15:44:44 +01:00
Stefan Weil
588ac3fed2
Remove TessTruthCallback from public API
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 15:38:11 +01:00
Stefan Weil
deec8ef46f
Replace std::list by std::vector
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 07:10: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
03884c370c
Replace STRING by std::string in ResultIterator
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
a007cbeb57
Replace STRING by std::string
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
d37a9319ec
Remove unused TessBaseAPIInit from capi.h
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
2369aa5604
Use std::vector, std::string in baseapi.h
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
72663a9a81
Use std::vector, std::string in baseapi.h
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
fec9c11c8c
Use std::vector, std::string in baseapi.h
...
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
f462389673
renderer for TessPDFRenderer
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
d55e5f4803
Replace more GenericVector by std::vector
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
4a28d33c58
Replace GenericVector by std::vector in strngs.h and more places
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
3ddc88cccb
Use std::vector in TessPDFRenderer
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
7c679e777d
Use std::vector for allowed_scripts
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
32d53479ae
Use std::vector for vars_vec, vars_values
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
085f6b2572
Use std::list for paragraph models
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
4ebba72919
Use std::vector for paragraph models
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
524fc67165
Fix tesseract --list-langs
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Egor Pugin
a98d6d9e8e
Better symbol visibility fix for unit test.
2020-12-28 04:58:14 +03:00
Egor Pugin
f51a945e26
Make symbol visible to fix unit test.
2020-12-28 04:31:00 +03:00
Egor Pugin
0c19e1e14d
Allow to construct STRING from nullptr.
2020-12-28 01:10:15 +03:00
Egor Pugin
7519cbe175
Use resize() instead of reserve() in resize_no_init() to match std::vector behavior. Using memory after reserve() is UB.
2020-12-28 01:09:57 +03:00
Egor Pugin
b2b2d02167
Another msvc/macos fix attempt.
2020-12-26 15:09:03 +03:00
Egor Pugin
f7c78f97a1
Fix macos build. Add missing header.
2020-12-26 15:00:43 +03:00
Egor Pugin
560560eb35
Try to fix macos build.
2020-12-26 13:40:27 +03:00
Egor Pugin
c8b8d266d6
Fix some of vector<bool> cases for msvc.
2020-12-26 04:17:13 +03:00
Egor Pugin
6b22972bc2
Fix linux build.
2020-12-26 04:15:42 +03:00
Egor Pugin
c3e04abe1e
Inherit STRING from std::string.
2020-12-26 03:48:35 +03:00
Egor Pugin
b4495a6bb5
Call base vector::insert() explicitly.
2020-12-26 03:37:21 +03:00
Egor Pugin
4fc467a922
Inherit GenericVector from std::vector. Inherit kdpairs from std::pair. Rewrite some move ctors to modern C++ style.
2020-12-26 03:23:09 +03:00
Egor Pugin
79a86f2582
Move all tesseract symbols into tesseract namespace. Fix include order in many places.
2020-12-26 00:55:30 +03:00
Egor Pugin
a905e8c1ef
Reorder includes.
2020-12-25 18:11:37 +03:00
Stefan Weil
fbc4c809d9
Replace STRING by std::string
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-10-31 14:08:39 +01:00
Stefan Weil
fe76142a3d
Remove GenericVector::scale() again
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-10-28 16:24:59 +01:00
Robin Watts
872816897a
Rejig intsimdmatrix to reduce FP ops.
...
Avoid 1) floating point division by 127, 2) conversion of
bias to double, 3) FP addition, in favour of 1) integer
multiplication by 127, and 2) integer addition.
(Also costs extra work in the serialisation/deserialisation of
the scale values, and conversion of weights to int formats, but
these are all one offs).
2020-10-12 04:30:46 -07:00
Stefan Weil
8137cf35a6
Use const char* for filename parameters
...
This replaces the proprietary STRING data type
(801 instead of 838 lines remaining).
It also removes STRING from osdetect.h and serialis.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-07-07 14:20:09 +02:00
Stefan Weil
a06d0d8449
Add missing include statements for config_auto.h
...
They are required to get the macro DISABLED_LEGACY_ENGINE.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-05-22 16:34:28 +02:00
Stefan Weil
9173e6e3f7
Add TessBaseAPI::GetPageRes again
...
It is now added unconditionally, so it is always available for the unittest.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-05-04 14:03:39 +02:00
Stefan Weil
1188e0a516
Remove old code which was used for Ocropus
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-04-27 16:33:34 +02:00
Stefan Brechtken
b3649b9fb2
TableFind: Api access, reskew and y inversion of the resulting TBOXes
2020-02-19 12:36:22 +01:00
Stefan Weil
6f2f310fdf
Remove redundant method from class GenericVector
...
length() is not needed: it can be replaced by size().
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-01-18 11:30:14 +01:00
Stefan Weil
fc84f84b5b
Remove Emacs C modeline in comment line 1
...
Those files are C++, and the wrong modeline is not needed at all.
Remove also some empty descriptions and old history in the comments.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-12-05 13:57:50 +01:00
Stefan Weil
420cbac876
Clean public API for renderers
...
- Remove unused type definitions for TessTextRenderer, ... in capi.h
(they were only used in capi.cpp which now no longer needs them)
- Fix typo in comment
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-12-03 12:23:58 +01:00
Stefan Weil
56df8e6e19
Fix some typos in comments (most of them found by codespell)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-12-02 14:30:13 +01:00
Stefan Weil
90db9b5224
Format API header files
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-11-02 07:54:55 +01:00
Stefan Weil
29dcfb081a
Use relative includes for API headers in API headers
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-11-02 07:54:55 +01:00
Egor Pugin
2a37f5dd62
Update includes to use <>.
2019-10-29 14:50:11 +03:00
Stefan Weil
7ef20bb0e6
Use flat make for include/tesseract
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-10-29 12:01:51 +01:00
Stefan Weil
061eccd6ae
Rename tesseract/tess_version.h -> tesseract/version.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-10-29 11:47:31 +01:00
amitdo
2f8884a64e
Fix autotools build
2019-10-28 21:23:58 +02:00
amitdo
e1bae15547
Fix #include path of public headers
2019-10-28 19:10:30 +02:00
amitdo
dfede8ac01
Move all public headers to include/tesseract
2019-10-28 18:50:31 +02:00
zdenop@gmail.com
ced5ed8092
files relevant for windows build moved to vs2008
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@474 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-09-29 22:04:44 +00:00
zdenop@gmail.com
68baf257be
correction of ambigs.train;
...
win32: update of leptonica library to 1.66, update of tessdll.dll to recent build
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@462 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-09-27 09:00:37 +00:00
joregan
bd7015e0e9
remove gettext.h; not worth the licensing hassle
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@420 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-07-19 02:12:34 +00:00
joregan
53f44ac6bf
add gettext.h; this is GPL v2, but we need to exercise the right to use it under the GPL3 for Apache compatibility
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@417 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-07-18 23:44:44 +00:00
theraysmith
b8621e7818
Udated leptonica includes to 1.62
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@329 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-05-19 18:11:41 +00:00
theraysmith
530fa19672
Changes to include for 3.00
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@295 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2009-07-11 02:24:22 +00:00