Digital cameras and scanners can both be used to put images of photos or documents into the computer.
Digital cameras input photos into the computer.
The printer is an output device. Images/Documents captured by the scanner/camera come out as hard copies on the printer. All output devises transfer information in the computer out of the computer.
The scanner inputs documents/images into the computer by capturing an image and processing it to the computer.