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

Method check_debug_pt

deps/tesseract/ccmain/control.cpp:1772–1852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1770}
1771
1772BOOL8 Tesseract::check_debug_pt(WERD_RES *word, int location) {
1773 BOOL8 show_map_detail = FALSE;
1774 inT16 i;
1775
1776 if (!test_pt)
1777 return FALSE;
1778
1779 tessedit_rejection_debug.set_value (FALSE);
1780 debug_x_ht_level.set_value(0);
1781
1782 if (word->word->bounding_box ().contains (FCOORD (test_pt_x, test_pt_y))) {
1783 if (location < 0)
1784 return TRUE; // For breakpoint use
1785 tessedit_rejection_debug.set_value (TRUE);
1786 debug_x_ht_level.set_value(2);
1787 tprintf ("\n\nTESTWD::");
1788 switch (location) {
1789 case 0:
1790 tprintf ("classify_word_pass1 start\n");
1791 word->word->print();
1792 break;
1793 case 10:
1794 tprintf ("make_reject_map: initial map");
1795 break;
1796 case 20:
1797 tprintf ("make_reject_map: after NN");
1798 break;
1799 case 30:
1800 tprintf ("classify_word_pass2 - START");
1801 break;
1802 case 40:
1803 tprintf ("classify_word_pass2 - Pre Xht");
1804 break;
1805 case 50:
1806 tprintf ("classify_word_pass2 - END");
1807 show_map_detail = TRUE;
1808 break;
1809 case 60:
1810 tprintf ("fixspace");
1811 break;
1812 case 70:
1813 tprintf ("MM pass START");
1814 break;
1815 case 80:
1816 tprintf ("MM pass END");
1817 break;
1818 case 90:
1819 tprintf ("After Poor quality rejection");
1820 break;
1821 case 100:
1822 tprintf ("unrej_good_quality_words - START");
1823 break;
1824 case 110:
1825 tprintf ("unrej_good_quality_words - END");
1826 break;
1827 case 120:
1828 tprintf ("Write results pass");
1829 show_map_detail = TRUE;

Callers

nothing calls this directly

Calls 7

full_printMethod · 0.80
FCOORDFunction · 0.50
set_valueMethod · 0.45
containsMethod · 0.45
bounding_boxMethod · 0.45
printMethod · 0.45
stringMethod · 0.45

Tested by

no test coverage detected