Go to Settings > Display & Brightness > Brightness > True Tone and toggle it on. This setting is switched on by default, but if you accidentally disabled it before, you can always find it in Settings.
Today's technological developments can allow you to directly extract text from images captured with a smartphone camera.