Add a global image cleanup profile
Use the procedure in this topic to add a global image cleanup profile.
If you have one or more images that contain smudges or other elements that interfere with the recognition results, use the procedure in this topic to add an image cleanup profile to improve your extraction results.
-
On the
Project tab, in the
Configuration group, select
Project Settings.
- Select the Image Cleanup tab to view the image cleanup settings.
-
Click
Add.
The image cleanup profile properties window is displayed.
-
Select
Add.
The Add Image Cleanup Method window is displayed.
-
On the list, select the desired image cleanup method. For most profile types, no settings are required.
-
If you select
Advanced Despeckle configure the following additional settings are available.
Setting
Description
Mass (pixels)
Set the range of the minimum and maximum number of black pixels for an unwanted blob. By default, the value for the maximum number is set to 50 pixels to remove common noise and stray marks caused by scanning. Use this setting to remove blobs that are too small or large to be actual characters. For large blobs you only have to estimate the appropriate number of connected pixels for the minimum mass.
You should consider the resolution of the document when estimating the number of pixels. For example, a faxed document. When either the minimum or maximum value is set to 0, the mass is ignored. This means the pixel value has no effect on blob calculation.
Proportion (%)
Set the minimum and maximum proportion of dark pixels for a blob. The number of connected dark pixels is divided by the total number of pixels in the smallest rectangle that contains the entire blob. Use this setting to remove blobs that are unlikely to be a real character. A typical proportion for real characters is around 40%, depending on the font, so the value for the maximum proportion needs to be lower than this. However, if you want to remove larger blobs, you can use a minimum proportion of around 60%. When either the minimum or maximum value is set to 0, this value has no effect on the blob calculation.
Width (pixels)
Set the value for the minimum and maximum width by specifying the number of horizontal pixels of an unwanted blob.
Height (pixels)
Set the value for the minimum and maximum height by specifying the number of vertical pixels of an unwanted blob.
Separation (pixels)
Set the value for the minimum separation to define the minimum distance of a blob to any other dark pixel in the image. Blobs with a larger mass can typically be removed safely if they are distant from other marks.
Include diagonal connections
Select so diagonally adjacent pixels are connected to form one blob. If cleared, a one pixel thick diagonal line is treated as separate single-pixel speckles. (Default: Cleared)
-
If you select
Despeckle, configure the following additional settings.
Setting
Description
Width
Adjust the slider to the desired amount. A preview area below displays the width of the speckle. (Default: 4)
Height
Adjust the slider to the desired amount. The preview area displays the height of the speckle. (Default: 4)
-
If you select
Remove Lines, configure the following additional settings.
Horizontal tab.
Setting
Description
Remove horizontal lines
Removes horizontal lines from an image. (Default: Selected)
Min run length (mm)
Available only if the Remove horizontal lines setting is selected. Set this to the smallest size a run can be if a line is removed. Lines with smaller runs than this are not removed. (Default: 5.0)
Min line length (mm)
Available only if the Remove horizontal lines setting is selected. Set this to the smallest size a line can be if it is removed. Lines smaller than this are not removed. (Default: 10.0)
Max line thickness (mm)
Available only if the Remove horizontal lines setting is selected. Set this to the largest thickness a line can be if it is removed. Lines thicker than this are not removed. (Default: 30.0)
Vertical tab.
Setting
Description
Remove vertical lines
Removes vertical lines from an image. (Default: Selected)
Min run length (mm)
Available only if the Remove vertical lines setting is selected. Set this to the smallest size a run can be if a line is removed. Lines with smaller runs than this are not removed. (Default: 5)
Min line length (mm)
Available only if the Remove vertical lines setting is selected. Set this to the smallest size a line can be if it is removed. Lines smaller than this are not removed. (Default: 8.0)
Max line thickness (mm)
Available only if the Remove vertical lines setting is selected. Set this to the largest thickness a line can be if it is removed. Lines thicker than this are not removed. (Default: 30.0)
Special tab.
Setting
Description
Remove special horizontal lines
Removes horizontal lines that are not solid. (Default: Cleared)
Line types
Available only if the Remove special horizontal lines setting is selected. Select one or more of the following line types:
Dotted lines
Select if the lines you want to remove consist of a series of dots. (Default: Cleared)
Dashed lines
Select if the lines you want to remove consist of a series of dashes. (Default: Cleared)
Min run length (mm)
Available only if the Remove special horizontal lines setting is selected. Set this to the smallest dot or dash size. Items smaller than this are not removed. (Default: 6.0)
Min line length (mm)
Available only if the Remove special horizontal lines setting is selected. Set this to the smallest size a line can be if it is removed. Lines smaller than this are not removed. (Default: 14.0)
-
If you select
Advanced Despeckle configure the following additional settings are available.
- Click OK.
- Optional. Repeat steps 4 through 6 to add additional cleanup methods to this profile.
- Optional. Use the Move Up and Move Down buttons to rearrange the methods in the desirable order.
- Click OK to close the properties window.
- Optional. Rename the new profile.
- Optional. Select OK to close the Project Settings window.
- Save the changes to your project.