I tried doing something similar on Windows, and realized that PowerToys[1], a Microsoft project I already had installed, actually contains a very good OCR tool[2]. Just press Win+Shift+T and select the area to scan, and the text will be copied to the clipboard.
[1] https://learn.microsoft.com/en-us/windows/powertoys/
[2] https://learn.microsoft.com/en-us/windows/powertoys/text-ext...