An electronic device includes a lens, an optical filter asymmetric to an optical axis of the lens, and an image sensor including a visible light image sensor and a non-visible light image sensor. The optical filter has an opening and is configured to transmit visible light and block at least one type of non-visible light. The visible light image sensor is configured to sense the visible light and the non-visible light image sensor is configured to sense the at least one type of non-visible light.