If you're asking how to get photos off of a computer's trash or recycle bin, it's usually as easy as clicking on the "restore" button. If you're trying to extract photos from physical garbage, it may be more difficult. You could try sorting through the garbage by hand and looking for photos, or using a metal detector to find hidden photos.