DFT-based text image rotation correction using OpenCV