A method in an electronic device for controlling a function of the electronic device, the method comprising: when an event for controlling the function of the electronic device using a feature occurs, acquiring images being input in real-time using a camera; wherein the feature is any one of a face form, eyes, an eyeball, a pupil, a nose, a mouth, and eyebrows; recognizing an image being input in real-time from the camera; extracting the feature within the user face from the image; determining a position of the extracted feature within the image as a reference position; determining a region of the image within a threshold distance from the reference position as a reference region; and changing the reference position according to the position of the feature moved within the reference region, and changing the reference region in response to the changing of the reference position wherein the changing of the reference position comprises: continuously analyzing an image being input from the camera in real-time; counting a preset time; after the preset time expires, determining whether the position of the feature within the image being input in real-time is comprised within the reference region; and if the position of the feature is determined to be comprised within the reference region, changing the reference position into the position of the feature comprised within the reference region; and if the position of the feature is determined to not be comprised within the reference region, performing a preset function of the electronic device corresponding to a region to which the feature has moved. when an event for controlling the function of the electronic device using a feature occurs, acquiring images being input in real-time using a camera; wherein the feature is any one of a face form, eyes, an eyeball, a pupil, a nose, a mouth, and eyebrows; recognizing an image being input in real-time from the camera; extracting the feature within the user face from the image; determining a position of the extracted feature within the image as a reference position; determining a region of the image within a threshold distance from the reference position as a reference region; and changing the reference position according to the position of the feature moved within the reference region, and changing the reference region in response to the changing of the reference position wherein the changing of the reference position comprises: continuously analyzing an image being input from the camera in real-time; counting a preset time; after the preset time expires, determining whether the position of the feature within the image being input in real-time is comprised within the reference region; and if the position of the feature is determined to be comprised within the reference region, changing the reference position into the position of the feature comprised within the reference region; and if the position of the feature is determined to not be comprised within the reference region, performing a preset function of the electronic device corresponding to a region to which the feature has moved. continuously analyzing an image being input from the camera in real-time; counting a preset time; after the preset time expires, determining whether the position of the feature within the image being input in real-time is comprised within the reference region; and if the position of the feature is determined to be comprised within the reference region, changing the reference position into the position of the feature comprised within the reference region; and if the position of the feature is determined to not be comprised within the reference region, performing a preset function of the electronic device corresponding to a region to which the feature has moved. <EOS>