When Apple's macOS Monterey launches, it will have a "Live Text" feature. This will allow you to extract the text in any picture. It's a really neat feature but has very limited functionality.

In this video, I'll demonstrate even better functionality using Cleanshot X. Cleanshot allows you to capture any text on your screen that is not selectable for any reason. Capture text from videos, photos, websites, and any other application. If it's on your screen, you can snag it.