chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cache commodid and stallid in Perl
[ypp-sc-tools.db-live.git]
/
pctb
/
ocr.c
diff --git
a/pctb/ocr.c
b/pctb/ocr.c
index 37ca7d28ed284de9b70c1cc29b1f528a20d24a12..92b09031c5c53ccde0029c0b7a26343db68645c6 100644
(file)
--- a/
pctb/ocr.c
+++ b/
pctb/ocr.c
@@
-397,7
+397,7
@@
static DatabaseNode *findchar_1ctx(const FindCharArgs *fca,
int x= fca->x;
for (;;) {
int x= fca->x;
for (;;) {
- debug_flush();
+
if (DEBUGP(ocr))
debug_flush();
debugf(" | x=%d",x);
if (x > fca->w) break;
Pixcol cv= fca->cols[x];
debugf(" | x=%d",x);
if (x > fca->w) break;
Pixcol cv= fca->cols[x];
@@
-531,7
+531,7
@@
OcrResultGlyph *ocr(OcrReader *rd, OcrCellType ct, int w,
x=0;
for (;;) {
x=0;
for (;;) {
- debug_flush();
+
if (DEBUGP(ocr))
debug_flush();
/* skip spaces */
if (x>=w)
break;
/* skip spaces */
if (x>=w)
break;
@@
-597,7
+597,6
@@
OcrReader *ocr_init(int h) {
if (o_flags & ff_dict_fetch) {
char *fetchfile= masprintf("char%d",h);
if (o_flags & ff_dict_fetch) {
char *fetchfile= masprintf("char%d",h);
- progress("Updating %s...",fetchfile);
fetch_with_rsync(fetchfile);
free(fetchfile);
}
fetch_with_rsync(fetchfile);
free(fetchfile);
}