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

Method print

deps/tesseract/ccstruct/werd.cpp:266–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264 */
265
266void WERD::print() {
267 tprintf("Blanks= %d\n", blanks);
268 bounding_box().print();
269 tprintf("Flags = %d = 0%o\n", flags.val, flags.val);
270 tprintf(" W_SEGMENTED = %s\n", flags.bit(W_SEGMENTED) ? "TRUE" : "FALSE ");
271 tprintf(" W_ITALIC = %s\n", flags.bit(W_ITALIC) ? "TRUE" : "FALSE ");
272 tprintf(" W_BOL = %s\n", flags.bit(W_BOL) ? "TRUE" : "FALSE ");
273 tprintf(" W_EOL = %s\n", flags.bit(W_EOL) ? "TRUE" : "FALSE ");
274 tprintf(" W_NORMALIZED = %s\n",
275 flags.bit(W_NORMALIZED) ? "TRUE" : "FALSE ");
276 tprintf(" W_SCRIPT_HAS_XHEIGHT = %s\n",
277 flags.bit(W_SCRIPT_HAS_XHEIGHT) ? "TRUE" : "FALSE ");
278 tprintf(" W_SCRIPT_IS_LATIN = %s\n",
279 flags.bit(W_SCRIPT_IS_LATIN) ? "TRUE" : "FALSE ");
280 tprintf(" W_DONT_CHOP = %s\n", flags.bit(W_DONT_CHOP) ? "TRUE" : "FALSE ");
281 tprintf(" W_REP_CHAR = %s\n", flags.bit(W_REP_CHAR) ? "TRUE" : "FALSE ");
282 tprintf(" W_FUZZY_SP = %s\n", flags.bit(W_FUZZY_SP) ? "TRUE" : "FALSE ");
283 tprintf(" W_FUZZY_NON = %s\n", flags.bit(W_FUZZY_NON) ? "TRUE" : "FALSE ");
284 tprintf("Correct= %s\n", correct.string());
285 tprintf("Rejected cblob count = %d\n", rej_cblobs.length());
286 tprintf("Script = %d\n", script_id_);
287}
288
289
290/**

Callers 15

fixspace_dbgFunction · 0.45
BeginWordMethod · 0.45
set_doneMethod · 0.45
SubAndSuperscriptFixMethod · 0.45
ReassignDiacriticsMethod · 0.45
ReportXhtFixResultMethod · 0.45
check_debug_ptMethod · 0.45
MaximallyChopWordMethod · 0.45

Calls 3

bounding_boxFunction · 0.70
stringMethod · 0.45
lengthMethod · 0.45

Tested by 3

test_underlineFunction · 0.36
TestCompatibleCandidatesFunction · 0.36
TestDiacriticsMethod · 0.36