Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
olena
Commits
6b9bc50e
Commit
6b9bc50e
authored
Aug 27, 2013
by
Roland Levillain
Browse files
Display Scribo errors on std::cerr, not std::cout.
* scribo/scribo/text/merging.hh, * scribo/scribo/text/recognition.hh: Here.
parent
a2d5c260
Changes
3
Hide whitespace changes
Inline
Side-by-side
scribo/ChangeLog
View file @
6b9bc50e
2013-08-27 Roland Levillain <roland@lrde.epita.fr>
Display Scribo errors on std::cerr, not std::cout.
* scribo/scribo/text/merging.hh,
* scribo/scribo/text/recognition.hh:
Here.
2013-08-27 Roland Levillain <roland@lrde.epita.fr>
Remove Scribo debug code making side effects on streams.
...
...
scribo/scribo/text/merging.hh
View file @
6b9bc50e
...
...
@@ -787,7 +787,7 @@ namespace scribo
else
// FIXME: Remove! since included in a non-text-line, so not drawn, so inclusion impossible!!!!!!!!!!
{
std
::
c
out
<<
"error: should NOT happen (a text line included in a NON-text-line (so not drawn!!!)"
<<
std
::
endl
;
std
::
c
err
<<
"error: should NOT happen (a text line included in a NON-text-line (so not drawn!!!)"
<<
std
::
endl
;
++
count_txtline_IN_junk
;
// a non-text-line (probably a drawing or a frame) includes a text line
...
...
scribo/scribo/text/recognition.hh
View file @
6b9bc50e
...
...
@@ -308,7 +308,7 @@ namespace scribo
tesseract
::
TessBaseAPI
tess
;
if
(
tess
.
Init
(
NULL
,
language
,
tesseract
::
OEM_DEFAULT
)
==
-
1
)
{
std
::
c
out
<<
"Error: cannot initialize tesseract!"
<<
std
::
endl
;
std
::
c
err
<<
"Error: cannot initialize tesseract!"
<<
std
::
endl
;
abort
();
}
tess
.
SetPageSegMode
(
tesseract
::
PSM_SINGLE_LINE
);
...
...
@@ -396,7 +396,7 @@ namespace scribo
tesseract
::
TessBaseAPI
tess
;
if
(
tess
.
Init
(
NULL
,
language
,
tesseract
::
OEM_DEFAULT
)
==
-
1
)
{
std
::
c
out
<<
"Error: cannot initialize tesseract!"
<<
std
::
endl
;
std
::
c
err
<<
"Error: cannot initialize tesseract!"
<<
std
::
endl
;
abort
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment