On a related note, I recently discovered that the MacOS video player lets you select and copy text from any video you're watching. It's ridiculously cool. I wonder how it works though.
Yes, Apple calls this “Live text”. It is also available on iOS (I think since iOS 15?). You can copy text from photos or videos right from the Photos app.