- The downside: Every rotation takes 0.5 seconds, the images are scanned in a fairly reasonable high resolution (2000 width x 3000 height), and the resolution is definitely needed for the OCR process.
Sure, but the high resolution is probably not needed in order to analyze the white lines.
I would recommend trying to shrink or crop the image (to a smaller copy) before the first angle determination, and use the low resolution version consistently until the angle is determined. Then swap back to the large resolution image for the final rotation and for the OCR.