Perspective correction with Qt

I'm developing an OCR app for Sailfish OS called Textractor. There was a clear need for a cropping feature. Cropping itself isn't very useful considering the OCR process but what if we combine perspective correction with it? I didn't want to add new dependencies (OpenCV) to the project (there are