Scalling images for tesseract