I'm not sure if you can, but I can suggest something to try.
If the pics were deleted on a memory card, it would be straightforward to undelete them. You would put the card into a card reader attached to a computer and use an undelete program. There is such a program, free to download, that is especially good on card readers and other USB drives.
It is possible that this program will see your camera as a USB memory drive if you connect it with a USB cable. You must remove any memory card in the camera first, or the computer will see the card instead of the internal memory. Then run the undelete program and have it look for files on the drive that is your camera (if it can see it). If you did a format, you will have to use the "surface scan" function to find deleted files.
You can get the program from
THIS LINK
Did you remove the memory card before connecting?
×