Preprocessing text
Original image to be processed

Our region of interest. It is tilted. Unfortunately, I could not get the mogrify code to work, so all the images are titled.

FT of ROI

FT of the image correlated with the filter

Black and white of the image at threshold value of 0.2

inverse of the black and white image

after dilation and erosion

this should be an image of the file that is not tilted. But since mogrify somehow doesn't work, this will have to do.

Black and white at threshold of 0,4

inverse of the black and white image

Description image used

score: 7/10. late posting yet again