Patent attributes
An electronic device 1 includes a proximity sensor 18, a camera 13, and a controller 11 configured to switch between gesture detection based on a value output from the proximity sensor 18 and gesture detection based on a value output from the camera 13, in accordance with a state in which a user uses the electronic device. The controller 11 may determine the state of the electronic device based on an environment of the electronic device being used by the user. The controller 11 may determine the state of the electronic device based on a state of the electronic device. The controller 11 may determine the state of the electronic device based on a distance between the user and the electronic device. The controller 11 may determine the state of the electronic device based on a user operation.