CPC G01S 13/08 (2013.01) [G01S 13/867 (2013.01); G06V 40/172 (2022.01); G08C 17/02 (2013.01); H01Q 21/08 (2013.01)] | 10 Claims |
1. An electronic device, comprising:
a first antenna array;
a second antenna array;
a communication circuit;
a camera;
at least one hardware processor, and
memory, wherein the memory stores instructions that, when executed by the at least one hardware processor, cause the electronic device to:
control the communication circuit to output a first signal through the first antenna array,
receive, through the second antenna array, a first reflection signal of the first signal reflected by an object,
determine a distance between the object and the electronic device based on the first reflection signal,
based on the distance, determine whether the distance is less than a first threshold distance,
based on the distance being equal to or less than the first threshold distance:
determine whether an angle of incidence of the first reflection signal is equal to or less than a threshold angle, wherein the angle of incidence of the first reflection signal includes a maximum angle among angles of incidence detected with respect to the camera,
when the angle of incidence of the first reflection signal is equal to or less than the threshold angle, determine an output period of a second signal as a first output period,
set a mode of the electronic device to a gesture recognition mode configured to identify a gesture of the object, after determining the first output period of the second signal, and
output the second signal based on the first output period of the second signal in the gesture recognition mode,
based on the distance being greater than the first threshold distance:
determine whether the distance is less than a second threshold distance longer than the first threshold distance,
based on the distance is equal to or less than the second threshold distance, determine whether the object corresponds to a face of a user,
based on the object corresponding to the face of the user, determine the output period of the second signal as a second output period shorter than the first output period,
set the mode of the electronic device to an authentication mode configured to identify the face of the user, after determining the second output period of the second signal, and
output the second signal based on the second output period of the second signal in the authentication mode.
|