Typing over a serial number, an address from a poster or a line from a book is the kind of chore the iPhone can skip.
Apple’s support page covers two places. In the Camera app, point the iPhone at text and tap the Live Text button. This also works in the camera inside apps such as Notes or Reminders. In Photos, open a picture, touch and hold a word, drag the grab points to adjust the selection and tap Copy. Select All grabs everything. For a video you pause it first.
From the same Live Text button you can also translate, call a phone number or write to an email address that it found. Look Up with a single word opens the dictionary.
If nothing happens, check Settings, General, Language & Region and make sure Live Text is on.
It works on iPhone XS, iPhone XR and later with iOS 15 or later, and on video from iOS 16 on.
The caveat is the supported languages and regions. Apple points to a separate availability page for that list, and it changes over time, so check it before you rely on Live Text for something in a language you do not read yourself. Handwriting and curved or blurry text are also where I would not expect miracles, so look at the result before you paste it into anything important.
Further reading: Apple Support: Copy and translate text from photos on your iPhone or iPad
Going deeper: Guide: Immich on Unraid, back up the photos on your iPhone automatically