| 793 | } // namespace tesseract |
| 794 | |
| 795 | void 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 | /** |
nothing calls this directly
no test coverage detected