I need to warp an image of an image in Python using my Raspberry Pi 4. Well, unwarp I should say. I'm writing a script to solve CAPTCHA codes to automate a task. All of the CAPTCHA codes are made of 4 letters and numbers in the same font, and are all warped the same way, in the sape of a giant sideways "S". What I'm needing to do is unwarp the image to make it more flat for the captcha to read it. Any suggestions on how to go about this? I apologize, I'm completely stumped and have no idea how to even begin with this task. I've tried installing OpenCV but no matter what I try I cant get it to work on my Raspberry Pi 4 (running Raspbian).
*side note, to test and make sure the warp theory would work, I took a few of the captcha codes to photoshop and warped them in the same pattern, and it flattened them out enough my Pytesseract script was able to read it just fine. Also, will upload pictures of several of the captcha codes.
Thanks in advance for any help!