[ocrfeeder] Pass the boxes adjustments settings to LayoutAnalysis when instantiating it
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Pass the boxes adjustments settings to LayoutAnalysis when instantiating it
- Date: Tue, 27 Jul 2010 22:14:54 +0000 (UTC)
commit fb3564745eec99d9c688740548151588d75a5e93
Author: Joaquim Rocha <jrocha igalia com>
Date: Wed Jul 14 11:03:55 2010 +0200
Pass the boxes adjustments settings to LayoutAnalysis when instantiating it
studio/widgetModeler.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/studio/widgetModeler.py b/studio/widgetModeler.py
index 3aab421..28d8a6f 100644
--- a/studio/widgetModeler.py
+++ b/studio/widgetModeler.py
@@ -440,13 +440,20 @@ class ImageReviewer_Controler:
column_min_width = self.configuration_manager.column_min_width
if column_min_width == 'auto':
column_min_width = None
+ adjust_boxes_bounds = \
+ self.configuration_manager.adjust_boxes_bounds
+ adjustment_size = self.configuration_manager.bounds_adjustment_size
+ if adjustment_size == 'auto':
+ adjustment_size = None
clean_text = self.configuration_manager.clean_text
layout_analysis = LayoutAnalysis(self.__getConfiguredOcrEngine(),
window_size,
improve_column_detection,
column_min_width,
- clean_text)
+ clean_text,
+ adjust_boxes_bounds,
+ adjustment_size)
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]