Patent attributes
An electronic device including an optical sensor for optically sensing an image of an input object such as a user's fingerprint is provided. The electronic device includes a display layer, a detector, a pinhole layer, a cover layer and an illuminator. The display layer is configured to generate light within a visible light spectrum. The detector is configured to be sensitive to a wavelength of light. The pinhole layer is located above both the display layer and the detector. The cover layer is located above the pinhole layer, and the illuminator is configured to illuminate a sensing region of the cover layer with the wavelength of light. Further, the pinhole layer has an array of pinhole apertures formed in a material substantially transparent to the light generated by the display layer and substantially opaque to the wavelength of light from the illuminator.