Since you have not mentioned that you want to recover deleted photos from a Mac computer or an iPhone, I will tell you how to do it on both devices. Data recovery is possible only if the deleted files aren't wiped with new data and the hard drive does not get dagame. If you have a backup of the deleted photos, the data recovery task is as easy as ABC. Just access the backup and restore the desired photos directly. But if you have no backup, data recovery software is worth a shot.
For macOS devices, I recommend you free download and install iBoysoft Data Recovery Software, which has helped me scan for the lost folders successfully. If you desire the deleted photos, try this software to initialize photo recovery.
For iPhone devices, go to Google or Safari and download the top-recommended data recovery software to complete the photo recovery task.
Remember do not place the data recovery utility to the volume or partition where you store the deleted photos, or the photos will get overwritten, making it impossible to restore them back!
Good luck~