Perspective recovery of text using transformed ellipses. See full writeup at https://mzucker.github.io/2016/10/11/unprojecting-text-with-ellipses.html
- Python 2 or 3
- NumPy
- SciPy
- cv2 (from OpenCV 3.0 or later)
- matplotlib
Try running
python unproject_text.py deskew0.jpg