1. A method of controlling a user interface using an input image, the method comprising: detecting a gesture from the input image; identifying a function which currently operates on an electronic device; identifying an operation executing information mapped to the detected gesture according to the function which is currently operating; and executing an operation of the operation executing information, wherein, when the operation executing information mapped on the detected gesture is identified and the operation of the operation executing information is executed, information for classification or search corresponding to the detected gesture is tagged to the input image.