This disclosure relates to artificial intelligence (AI) systems and applications thereof that utilize machine learning algorithms such as deep learning. Specifically, the electronic device includes a display, a user input unit, and a communication unit, a processor electrically connected to the display, the user input unit, and the communication unit, and a memory for storing at least one program executed by the processor. The processor controls the display to provide an image, and receives a user input for selecting a partial region in the image through a user input. If the selected region is a first region, the control unit controls the display to provide a first search result obtained from an external search server using first text information describing the object in the first region obtained from the image using a learned model. If the selected region is the second region, the control unit controls the display to provide a second search result obtained from the external search server using second text information describing an object in the second region obtained from the image using the learned model.
ELECTRONIC DEVICE AND METHOD FOR CONTROLLING THE ELECTRONIC DEVICE THEREOF