On iOS, tap to open a photo in the media viewer, then tap the text icon to isolate words from the background. The macOS app automatically detects text in photos – ready for you to select with your cursor.
This secure image recognition is handled entirely on your device.