CPC H04N 5/33 (2013.01) [H04N 21/42204 (2013.01); H04N 21/42221 (2013.01)] | 22 Claims |
1. An electronic apparatus comprising:
an optical sensor; and
a processor configured to:
identify, based on an infrared (IR) signal having a signal section corresponding to a user key input and an idle section repeated on a predetermined cycle, an operation cycle of the optical sensor to be shorter than the idle section and to have at least a minimal length needed for the optical sensor to detect light according to a purpose for which the optical sensor is to be used and to obtain a detection value corresponding to the detected light,
control the optical sensor to switch to the identified operation cycle from a previous operation cycle of the optical sensor, and to repetitively perform a detection operation based on more than one pulse of the identified operation cycle occurring in a respective idle section of the IR signal while the IR signal is being received by or emitted from the electronic apparatus, to thereby obtain a plurality of detection values,
identify whether a respective detection value among the plurality of detection values is lower than a predetermined value,
when it is identified that a respective detection value among the plurality of detection values is lower than the predetermined value,
compensate the respective detection value based on the identified operation cycle, and
perform an operation based on the compensated detection value,
wherein the identified operation cycle has a shorter period than the previous operation cycle.
|