[ocrfeeder] Add the clean text option to LayoutAnalysis in the ImageReviewer_Controler



commit 57c2828def3d0b38332e8bd59674d146e99e6489
Author: Joaquim Rocha <jrocha igalia com>
Date:   Tue Jul 13 18:26:19 2010 +0200

    Add the clean text option to LayoutAnalysis in the ImageReviewer_Controler

 studio/widgetModeler.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/studio/widgetModeler.py b/studio/widgetModeler.py
index d20364d..21d890e 100644
--- a/studio/widgetModeler.py
+++ b/studio/widgetModeler.py
@@ -440,11 +440,13 @@ class ImageReviewer_Controler:
         column_min_width = self.configuration_manager.column_min_width
         if column_min_width == 'auto':
             column_min_width = None
+        clean_text = self.configuration_manager.clean_text
 
         layout_analysis = LayoutAnalysis(self.__getConfiguredOcrEngine(),
                                          window_size,
                                          improve_column_detection,
-                                         column_min_width)
+                                         column_min_width,
+                                         clean_text)
         return layout_analysis.recognize(image_reviewer.path_to_image,
                                          image_reviewer.page.resolution[1])
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]