~vcs-imports/tesseract-ocr/trunk

« back to all changes in this revision

Viewing changes to ccmain/pgedit.cpp

  • Committer: theraysmith at gmail
  • Date: 2013-11-08 20:30:56 UTC
  • Revision ID: svn-v4:d0cd1f9f-072b-0410-8dd7-cf729c803f20:trunk:904
Refactorerd control functions to enable parallel blob classification

Show diffs side-by-side

added added

removed removed

Lines of Context:
731
731
BOOL8 Tesseract::word_bln_display(BLOCK* block, ROW* row, WERD_RES* word_res) {
732
732
  TWERD *bln_word = word_res->chopped_word;
733
733
  if (bln_word == NULL) {
734
 
    word_res->SetupForTessRecognition(unicharset, this, BestPix(), false,
735
 
                                      textord_use_cjk_fp_model,
736
 
                                      poly_allow_detailed_fx,
737
 
                                      row, block);
 
734
    word_res->SetupForRecognition(unicharset, this, BestPix(),
 
735
                                  tessedit_ocr_engine_mode, NULL,
 
736
                                  classify_bln_numeric_mode,
 
737
                                  textord_use_cjk_fp_model,
 
738
                                  poly_allow_detailed_fx,
 
739
                                  row, block);
738
740
    bln_word = word_res->chopped_word;
739
741
  }
740
742
  bln_word_window_handle()->Clear();
963
965
  if (word != NULL) {
964
966
    WERD_RES word_res(word);
965
967
    word_res.x_height = row->x_height();
966
 
    word_res.SetupForTessRecognition(unicharset, this, BestPix(), false,
967
 
                                     textord_use_cjk_fp_model,
968
 
                                     poly_allow_detailed_fx,
969
 
                                     row, block);
 
968
    word_res.SetupForRecognition(unicharset, this, BestPix(),
 
969
                                 tessedit_ocr_engine_mode, NULL,
 
970
                                 classify_bln_numeric_mode,
 
971
                                 textord_use_cjk_fp_model,
 
972
                                 poly_allow_detailed_fx,
 
973
                                 row, block);
970
974
    TWERD* bln_word = word_res.chopped_word;
971
975
    TBLOB* bln_blob = bln_word->blobs[0];
972
976
    INT_FX_RESULT_STRUCT fx_info;