1. An electronic apparatus, comprising: a housing; a display unit installed in the housing, and having a display area on a front surface of the housing to display either a photographing image or a menu image; a sensing unit installed in the housing, and having a first camera and a second camera which are on a side of the housing adjacent to the display area of the display unit and have a virtual area including an object over the front surface of the housing; and a controller installed in the housing, and configured to control the first camera in a photographing mode and the second camera in a sensing mode according to a user selection, wherein the controller is configured in the photographing mode to control the first camera to photograph the virtual area including the object, to generate a first photographing image of the virtual area, and to control the display unit to display the first photographing image in the display area of the display unit; wherein the controller is configured in the sensing mode to control the second camera to photograph the virtual area including the object, which is disposed over the displayed menu image, to generate a second photographing image of the virtual area, to extract the object from the second photograph image of the virtual area as a sensed image, to control the display unit to display the sensed image in the displayed menu image of the display area of the display unit, to determine a state of the sensed image corresponding to the extracted object as a user input to the displayed menu image, and to perform a function of the electronic apparatus according to the displayed menu image and the determined user input.