1. A method, performed in an electronic device, for connecting to a target device, comprising: capturing an image including a face of a target person associated with the target device; recognizing an indication of the target person; detecting the face of the target person in the image based on the indication; extracting at least one facial feature of the face in the image; and connecting to the target device based on the at least one facial feature.