Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tesseract not working fine with arabic #791

Closed
wants to merge 138 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
44717c4
opencl: Fix wrong implementation of function getNumDeviceWithEmptyScore
stweil Nov 5, 2016
663ca26
opencl: Add missing argument for L_WARNING
stweil Nov 5, 2016
5919916
opencl: Remove unused function getNumDeviceWithEmptyScore
stweil Nov 7, 2016
c4dbc0e
Fix crash caused by undefined value of local variable
stweil Nov 7, 2016
c5fdba5
allow combination of enable/disable
zdenop Nov 11, 2016
0518bb5
opencl: Fix type of parameter for clGetContextInfo
stweil Nov 12, 2016
c097dd3
opencl: Fix type of parameter for clGetProgramInfo
stweil Nov 12, 2016
f8cac77
backport from 4.00: issue #242 - different results when same image is…
zdenop Nov 25, 2016
67fa73c
training: Fix compiler warnings (deprecated register keyword)
stweil Nov 13, 2016
07ce98b
add option "make training-uninstall"
zdenop Feb 12, 2016
e5a86c4
Fix a typo in tesseract(1) man page
ciupicri Nov 8, 2016
56dc7d1
Fix typo in documentation
stweil Nov 3, 2016
b04a910
opencl: Fix typo in name of local variable
zdenop Nov 25, 2016
b0a2189
ccutil/ambigs: Optimize tesseract::UnicharIdArrayUtils::compare
stweil Nov 12, 2016
4f3cc9c
Fixed failed merge of memory leak
theraysmith Nov 22, 2016
054205f
Fix compiler warning (-Wmaybe-uninitialized)
stweil Nov 22, 2016
f8e1c7e
AUTHORS - Add community contributors
amitdo Nov 24, 2016
e8d5152
Increase version number in VS2010 and fix year
zdenop Nov 25, 2016
057b932
backport from 4.00: add missing License information
zdenop Nov 25, 2016
e9785a0
downgrade to leptonica 1.73
zdenop Nov 25, 2016
e5743fd
backport style changes from 4.00 for better identification of fixes a…
zdenop Nov 25, 2016
90651e1
backport style changes from 4.00 for better identification of fixes a…
zdenop Nov 25, 2016
8e7e272
Merge branch '3.05' of https://github.com/tesseract-ocr/tesseract int…
zdenop Nov 25, 2016
bf0f901
add license info to autogen.sh
zdenop Nov 25, 2016
6dcafe6
revert TessHashMap to hash_map in training/stringrenderer.h from 9065…
zdenop Nov 27, 2016
0dccbed
AUTHORS: Add more contributors
amitdo Nov 26, 2016
6d47e90
use leptonica from master git repository (1.74)
zdenop Nov 27, 2016
fe9fa88
Missing pdf font file from previous sync
theraysmith Nov 28, 2016
8a7de59
Fixed the memory leak/double free cleanly
theraysmith Nov 28, 2016
7169545
fix code style
zdenop Nov 29, 2016
d01dd0b
backport from 4.00: show PSM 11-13
zdenop Nov 29, 2016
c8e2be6
backport from 4.00: fix pdfrenderer
zdenop Nov 29, 2016
aa9be09
add License info to cmake files
zdenop Nov 29, 2016
01cf9c2
increase GENERIC_MINOR_VERSION
zdenop Nov 29, 2016
c778cd5
backport from 4.00: changes in scrollviewer
zdenop Nov 29, 2016
493312c
backport from 4.00: fix of destroy_nodes (oldlist.cpp)
zdenop Nov 29, 2016
382fdd5
backport from 4.00: changes in cube
zdenop Nov 30, 2016
70ed782
style fix
zdenop Nov 30, 2016
6234da6
backport from 4.00: changes in wordrec + FakeWordFromRatings
zdenop Nov 30, 2016
5882261
backport from 4.00: use "const TBOX&" instead of "TBOX box" in textord
zdenop Nov 30, 2016
ed0c60b
backport from 4.00: use ".empty()" instead of ".size() > 0"
zdenop Nov 30, 2016
e3236f4
backport from 4.00: changes in textord
zdenop Nov 30, 2016
57d38b9
backport from 4.00: changes in Android.mk
zdenop Nov 30, 2016
3b77715
backport from 4.00: changes in classify
zdenop Nov 30, 2016
9d1db80
backport from 4.00: changes from ccstruct excluding imagedata
zdenop Nov 30, 2016
0cbbbe6
backport from 4.00: SkipDeSerialize and changes in ccutil
zdenop Nov 30, 2016
5750e72
use TessHashMap instead of hash_map, unordered_map
zdenop Nov 30, 2016
775a108
backport from 4.00: enable selection of OCR engine mode from command …
zdenop Dec 2, 2016
2f8c1e7
backport from 4.00: split Dict::Load to SetupForLoad, Load and Finish…
zdenop Dec 2, 2016
af1d856
backport from 4.00: code improvements
zdenop Dec 2, 2016
fc3d07b
backport from 4.00: api changes
zdenop Dec 2, 2016
948689b
Merge branch '3.05' of https://github.com/tesseract-ocr/tesseract int…
zdenop Dec 2, 2016
9ccda80
backport from 4.00: training shell scripts
zdenop Dec 2, 2016
53152e4
change VS2010 lib project name
zdenop Dec 2, 2016
7099358
backport from 4.00: training
zdenop Dec 4, 2016
c1d3712
backport from 4.00: imagedata
zdenop Dec 7, 2016
46a84e7
opencl: Clean whitespace issues in OpenCL kernel code
stweil Nov 25, 2016
4ade275
opencl: Format OpenCL kernel code
stweil Nov 25, 2016
892c007
opencl: Fix OpenCL kernel code assertion for newer versions
stweil Nov 25, 2016
c73f21a
Simplify calls of free
stweil Nov 13, 2016
743eb81
Simplify delete operations
stweil Nov 23, 2016
2940b44
Missing pdf font file from previous sync
theraysmith Nov 28, 2016
e9be858
Fixed the memory leak/double free cleanly
theraysmith Nov 28, 2016
f9253c1
Fix build for Mingw-w64 (120a5dbdab78) and non C++11 build (VS2010)
zdenop Dec 7, 2016
ca6e64e
mingw-w64: Fix compiler warnings caused by macro redefinition
stweil Nov 29, 2016
a74c6aa
cube: Simplify delete operations
stweil Nov 28, 2016
a2fa9ca
cube/char_bigrams: Fix some memory leaks
stweil Nov 28, 2016
73c0649
cube/char_samp: Fix some memory leaks
stweil Nov 28, 2016
b169ef5
Correcting link for 3rd party wiki pages
Nov 30, 2016
82529e3
Formatting changes from clang_tidy on latest pull
zdenop Dec 7, 2016
5307204
Added std:: to vector
zdenop Dec 7, 2016
257d6e8
cube: Simplify new operations
stweil Nov 30, 2016
4789ca2
Simplify new operations
stweil Nov 30, 2016
9984077
Change tesseract parameter -oem to --oem
stweil Nov 30, 2016
6933b06
Change tesseract parameter -psm to --psm
stweil Nov 30, 2016
1aaff88
opencl: Remove unneeded and potentially bad type casts
zdenop Dec 7, 2016
98d50f6
cube: Fix use after free regression
stweil Dec 2, 2016
8a02c4f
cube: Fix coverity warning caused by unneeded null pointer check
stweil Dec 2, 2016
d009c4f
opencl: Add missing checks for OpenCL failures
stweil Dec 3, 2016
4535d24
Remove extra semicolons after member function definitions
stweil Dec 4, 2016
2298bdd
Fixed damage to binary images when processing PDFs, issue #535
theraysmith Dec 6, 2016
ddef7d4
training: Update Makefile for current Mingw-w64
stweil May 15, 2016
e34ab8c
doc: Fix line endings
stweil Dec 4, 2016
f60bfbe
fix typo
zdenop Dec 7, 2016
f29abea
tesseract: Disable Leptonica messages
stweil Dec 4, 2016
d969ed1
Produce warning for invalid resolution. Fix #453
jbreiden Dec 7, 2016
59ba80b
More clang-tidy from previous commits
zdenop Dec 8, 2016
ba5a17b
Remove duplicate destructor
pnordhus Jun 17, 2016
bdb690b
Implement a new orientation and script detection API for C and C++
Dec 7, 2016
66c03c9
Revise after code review
Dec 8, 2016
23a08b0
Remove unused code.
alankila Dec 9, 2016
2452051
Remove 'listio.cpp' and 'listio.h' from vs2010 vcxproj
amitdo Dec 9, 2016
71269e7
Fix two typos in comments
stweil Dec 10, 2016
d045aaa
java: Improve build rules
stweil Dec 11, 2016
8af3629
openmp: Fix OpenMP support
stweil Dec 11, 2016
da50e56
Merge pull request #564 from stweil/3.05
zdenop Dec 12, 2016
7f4831b
increase min autoconf version (2.59)
zdenop Dec 23, 2016
092c7d5
require leptonica 1.74 or higher
zdenop Dec 26, 2016
245eebd
Multi-page TIFF buffering is broken - fix #233
zdenop Dec 7, 2016
0889940
fix removal of AC_CHECK_LIB([lept])
zdenop Dec 26, 2016
3df54a4
remove (fake) OPENMP support
zdenop Dec 26, 2016
73890c3
Update cppan.yml
egorpugin Jan 6, 2017
aaf49f7
leptonica 1.74.1 is needed for cppan
zdenop Jan 6, 2017
d500231
fix #665 process file list
jbreiden Jan 19, 2017
1999aa1
fix appveyor
zdenop Jan 19, 2017
45fd3ed
fix #712: Ghostscript mangling Tesseract-produced PDFs
zdenop Feb 13, 2017
a912d70
Backport cppan fixes.
egorpugin Feb 13, 2017
43f3b5f
Merge branch '3.05' of github.aaakk.us.kg-egorpugin:tesseract-ocr/tesseract i…
egorpugin Feb 13, 2017
77ff650
Backport cmake fixes.
egorpugin Feb 13, 2017
16563b4
Add .cppan to ignore list.
egorpugin Feb 15, 2017
db87e21
3.05.00 release
zdenop Feb 16, 2017
998d473
3.05.00 release
zdenop Feb 16, 2017
2ca5d0a
Merge branch '3.05' of https://github.com/tesseract-ocr/tesseract int…
zdenop Feb 16, 2017
e85a7e2
replace nullptr with NULL to enable non c++11 build (fixes #727)
zdenop Feb 19, 2017
40dc280
Rename cppan/cmake targets.
egorpugin Feb 23, 2017
183ee56
Correct reading config files with \r\n
solomennikm Mar 1, 2017
6fbd9d2
Use camel case for GitHub in README.md
stweil Dec 22, 2016
697c3dc
Fix indentation after conditional [-Wmisleading-indentation]
zdenop Mar 10, 2017
efb89f8
[`autogen.sh`:] Abstract the absolute path of `libtoolize` or `glibt…
RandomDSdevel Mar 7, 2017
ed49959
[`autogen.sh`:] Reduce in-script comment block width to 80 characters.
RandomDSdevel Mar 9, 2017
3671de0
[`autogen.sh`:] Clarify `libtoolize`/`glibtoolize` existence check e…
RandomDSdevel Mar 9, 2017
d9a9876
[`autogen.sh`:] Improve `libtoolize` invocation message.
RandomDSdevel Mar 9, 2017
35a9334
Add the packaging metadata to build the tesseract snap
Feb 3, 2017
6fcfcc8
Use portable data types #709
stweil Mar 10, 2017
ec8d52b
fix --disable-graphics build
zdenop Mar 10, 2017
2c203e6
fix --enable-visibility build (including training tools)
zdenop Mar 10, 2017
5806259
Fix some typos in comments (found by codespell)
zdenop Mar 10, 2017
a692cca
Update appveyor.yml
egorpugin Mar 14, 2017
ffea3fa
Disable warnings on Appveyor.
egorpugin Mar 14, 2017
eea6d67
Update CMakeLists.txt
egorpugin Mar 14, 2017
f30cac4
libtiff is needed for windows build of tesseract executable
zdenop Mar 17, 2017
4925e6c
Add item to ChangeLog for options writing to stdout instead of stderr
cjmayo Mar 20, 2017
51d0bbe
Merge pull request #776 from cjmayo/stdoutput
zdenop Mar 21, 2017
09acc4f
Update README.md heading markdown
wilsonmar Mar 18, 2017
f80c3b2
Fix windows build.
egorpugin Mar 22, 2017
088186f
Update appveyor.yml
egorpugin Mar 22, 2017
d0951da
Update appveyor.yml
egorpugin Mar 22, 2017
9c1034d
Update appveyor.yml
egorpugin Mar 23, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix indentation after conditional [-Wmisleading-indentation]
The indentation is wrong since commit
fd0683f and results in a gcc warning:

api/baseapi.cpp: In member function 'bool tesseract::TessBaseAPI::ProcessPagesMultipageTiff(const l_uint8*, size_t, const char*, const char*, int, tesseract::TessResultRenderer*, int)':
api/baseapi.cpp:986:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (tessedit_page_number >= 0)
     ^~
api/baseapi.cpp:988:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
       pix = (data) ? pixReadMemFromMultipageTiff(data, size, &offset)
       ^~~

Signed-off-by: Stefan Weil <[email protected]>
zdenop committed Mar 10, 2017
commit 697c3dc4daf8d7921dba46a5393edc8e4b6a8111
5 changes: 2 additions & 3 deletions api/baseapi.cpp
Original file line number Diff line number Diff line change
@@ -1039,9 +1039,8 @@ bool TessBaseAPI::ProcessPagesMultipageTiff(const l_uint8 *data,
od.pixReadTiffCl(filename, page);
} else {
#endif // USE_OPENCL
pix = (data) ?
pixReadMemFromMultipageTiff(data, size, &offset) :
pixReadFromMultipageTiff(filename, &offset);
pix = (data) ? pixReadMemFromMultipageTiff(data, size, &offset)
: pixReadFromMultipageTiff(filename, &offset);
#ifdef USE_OPENCL
}
#endif // USE_OPENCL