The deleted photos of Apple iPhone can only be restored if they are backed up. There are usually two ways to restore them.
The first method: If the "Enable photo stream" option is turned on in the settings of iCloud for an iPhone with a system version of iOS 5.0 or above, the phone will automatically back up the photos taken to the cloud without making other choices. Even if you delete photos from your mobile phone, you can download them from iCloud as long as you log in with your own account name.
The second method: Back up the photos in the mobile phone to the computer through iTunes, but this method requires connecting the original backup computer to restore the photos.