You can add shortcuts to quickly copy, share, view and use text from an image. You can add it from PhotoCopyThis app or Shortcuts app.
In the shortcuts app, you can use PhotoCopyThis shortcuts to automate your task with "Copy This" and "Copy latest text" actions. To learn more about shortcuts, please check out Shortcuts User Guide from Apple's support document.