A CCD converts an optical image into electrical signals by creating charge packets corresponding to each pixel when photons strike the CCD. The charge packets are shifted through the CCD to an output amplifier. There are three main types of CCD chips used in cameras - interline transfer, frame transfer, and frame interline transfer - which differ in how they collect and transfer charge. A high-resolution CCD camera can have up to 4 million pixels or CCD elements.