MCPcopy Create free account
hub / github.com/creatale/node-dv / ReportXhtFixResult

Method ReportXhtFixResult

deps/tesseract/ccmain/control.cpp:1387–1402  ·  view source on GitHub ↗

Helper to report the result of the xheight fix.

Source from the content-addressed store, hash-verified

1385
1386// Helper to report the result of the xheight fix.
1387void Tesseract::ReportXhtFixResult(bool accept_new_word, float new_x_ht,
1388 WERD_RES* word, WERD_RES* new_word) {
1389 tprintf("New XHT Match:%s = %s ",
1390 word->best_choice->unichar_string().string(),
1391 word->best_choice->debug_string().string());
1392 word->reject_map.print(debug_fp);
1393 tprintf(" -> %s = %s ",
1394 new_word->best_choice->unichar_string().string(),
1395 new_word->best_choice->debug_string().string());
1396 new_word->reject_map.print(debug_fp);
1397 tprintf(" %s->%s %s %s\n",
1398 word->guessed_x_ht ? "GUESS" : "CERT",
1399 new_word->guessed_x_ht ? "GUESS" : "CERT",
1400 new_x_ht > 0.1 ? "STILL DOUBT" : "OK",
1401 accept_new_word ? "ACCEPTED" : "");
1402}
1403
1404// Run the x-height fix-up, based on min/max top/bottom information in
1405// unicharset.

Callers

nothing calls this directly

Calls 2

stringMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected