For the best possible quality of the results, negative influencing factors such as insufficient exposure of the scanned document or curvature or distortion in the image must be equalized. The image enhancement algorithms perform grayscale conversion and binarization for this purpose. In addition, procedures are used to remove curvature and other disturbing factors.