image-rotation

Detect if an OCR text image is upside down

Detect if an OCR text image is upside down Question: I have some hundreds of images (scanned documents), most of them are skewed. I wanted to de-skew them using Python. Here is the code I used: import numpy as np import cv2 from skimage.transform import radon filename = ‘path_to_filename’ # Load file, converting to grayscale …

Total answers: 3