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

Function fixspace_dbg

deps/tesseract/ccmain/fixspace.cpp:795–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793} // namespace tesseract
794
795void fixspace_dbg(WERD_RES *word) {
796 TBOX box = word->word->bounding_box();
797 BOOL8 show_map_detail = FALSE;
798 inT16 i;
799
800 box.print();
801 tprintf(" \"%s\" ", word->best_choice->unichar_string().string());
802 tprintf("Blob count: %d (word); %d/%d (rebuild word)\n",
803 word->word->cblob_list()->length(),
804 word->rebuild_word->NumBlobs(),
805 word->box_word->length());
806 word->reject_map.print(debug_fp);
807 tprintf("\n");
808 if (show_map_detail) {
809 tprintf("\"%s\"\n", word->best_choice->unichar_string().string());
810 for (i = 0; word->best_choice->unichar_string()[i] != '\0'; i++) {
811 tprintf("**** \"%c\" ****\n", word->best_choice->unichar_string()[i]);
812 word->reject_map[i].full_print(debug_fp);
813 }
814 }
815
816 tprintf("Tess Accepted: %s\n", word->tess_accepted ? "TRUE" : "FALSE");
817 tprintf("Done flag: %s\n\n", word->done ? "TRUE" : "FALSE");
818}
819
820
821/**

Callers

nothing calls this directly

Calls 7

cblob_listMethod · 0.80
NumBlobsMethod · 0.80
full_printMethod · 0.80
bounding_boxMethod · 0.45
printMethod · 0.45
stringMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected