Make the BoxEditor's text view's wrap the lines
widgetPresenter.BoxEditor: Set the text view's wrap mode to be WRAP_WORD because the text should now have less line breaks which would result in long lines in the text view.
View ArticleRefactor ConfigurationManager
configuration.ConfigurationManager: Changed the creation of vars by evaluating/executing code and use a "static" dictionary-based configuration which is more safe and clean.
View ArticleUse the color values directly when creating color buttons for preferences
widgetPresenter.PreferencesDialog: Adapt the color button generator function so it uses the configured color values directly instead of converting them from string to tuples.
View ArticleCreate the columns' detection preferences
widgetPresenter.PreferencesDialog: Add the method to create the columns' detection preferences.
View ArticleAdd the columns' detection preferences to the preferences dialog
widgetPresenter.PreferencesDialog: Add the mentioned preferences and change the current preferences notebook tabs and respective methods' names.
View ArticleSet the columns' detection and width value dependent on the preferences
widgetModeler.ImageReviewer_Controler: Use the configurations' values to tell the LayoutAnalysis if it should perform the columns' detection improvement algorithm
View ArticleAdd the clean text variable to the LayoutAnalysis
layoutAnalysis.LayoutAnalysis: Add the mentioned variable and set the cleaning of the text dependent on it.
View ArticleMake the boxes adjustments dependent on the LayoutAnalysis's settings
layoutAnalysis.LayoutAnalysis: Add the adjust_boxes_bounds and the adjustment_size settings; Use the adjustment_size for the boxes' adjustment and only perform this operation if the...
View ArticleClear the reviewer's contents only after the recognition has finished
widgetModeler.Reviewer_Controler: Move the clearance of the content areas and editors from the method that calls the document's recognition to the finish callback. This avoids losing the contents if...
View ArticleRefactor the way to add an image and include an image pre-processor
widgetModeler.ImageReviewer_Controler: Refactor the code to be simpler and add an image pre-processing method with the image deskewer on it; studio.StudioBuilder: Adapt to the new...
View ArticleFind the unpaper executable path instead of using a hardcoded one
The above is done for the configuration
View ArticleAdd unpaper to the pre-processor method
Also, make it and the deskew dependent on the settings
View Article