1. A pinhole camera system for optically imaging an object comprising: a detection device located in a detection plane; a pinhole aperture configured in accordance with a pinhole camera principle to image an object located in an object plane onto the detection device; an illumination device for illuminating the object; and an optical attenuation element arranged between the illumination device and the object plane, which optical attenuation element is configured to substantially compensate for system-inherent imaging defects caused by the pinhole aperture.