From d91df9856b642adaa24125ac400cfabb79be7d08 Mon Sep 17 00:00:00 2001 From: Ray Smith Date: Wed, 13 May 2015 17:10:23 -0700 Subject: [PATCH] Fixed crash on debugging classifier with a shapetable present --- classify/tessclassifier.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classify/tessclassifier.cpp b/classify/tessclassifier.cpp index 4b6cad0196..7eaad37fe2 100644 --- a/classify/tessclassifier.cpp +++ b/classify/tessclassifier.cpp @@ -69,8 +69,9 @@ int TessClassifier::DisplayClassifyAs( const TrainingSample& sample, Pix* page_pix, int unichar_id, int index, PointerVector* windows) { int shape_id = unichar_id; - if (GetShapeTable() != NULL) - shape_id = BestShapeForUnichar(sample, page_pix, unichar_id, NULL); + // TODO(rays) Fix this so it works with both flat and real shapetables. + // if (GetShapeTable() != NULL) + // shape_id = BestShapeForUnichar(sample, page_pix, unichar_id, NULL); if (shape_id < 0) return index; if (UnusedClassIdIn(classify_->PreTrainedTemplates, shape_id)) { tprintf("No built-in templates for class/shape %d\n", shape_id);