TIL that on macOS you can open an image with Quick Look by hitting Space bar and then just select all recognised text (โA) and copy it (โC) to your clipboard ๐คฏ.