How to extract photos from iPhone backup files
Yes, there is, but all solutions are specific software products, which we are not allowed to recommend according to the rules of this site. Thus, I recommend that you Google “How to extract files from an iTunes backup” and you will find what you want. Some caveats, though, you should be aware of:
1. Apple has protected a lot of personal data folders in Mojave, preventing many applications from accessing certain folders. Thus, you should pay attention to what macOS you are using and the compatibility of the software you want to use.
2. You need also to check whether the software can extract a backup from iCloud if you need that. Some of them cannot do that, including the most used free option.