TECHNICAL FIELD

The disclosure relates to an electronic device and a control method therefor, and more particularly, to an electronic device for acquiring a user's facial image when a user is using an electronic device and providing the emotional state of the user to the user, or a control method therefor.

BACKGROUND ART

Recently, algorithms recognizing a user's face through various methods, and determining the emotional state (stress, the degree of happiness, the degree of fatigue, etc.) of the recognized face are being provided. Through the aforementioned various algorithms, a user may identify his or her emotional state, etc. in a photograph wherein his or her face is included.

However, in general, in case a facial photograph of a specific user is photographed, it often becomes artificial photographing. Also, it would be difficult to periodically photograph a user's face during a specific time period. That is, when taking a photograph for analyzing a user's emotion, if a specific behavior is demanded (e.g., a behavior such as taking a photograph by executing a camera application) to the user, it will be highly likely that the genuine emotional state of the user cannot be figured out.

Accordingly, there may be problems in determining by what method a photograph will be taken for analyzing a user's emotion in everyday life, and by what method the photographed picture will be analyzed and the analysis result will be provided.

DETAILED DESCRIPTION OF THE INVENTION

Technical Problem

The disclosure was devised for resolving the aforementioned problems, and relates to an electronic device which is cable of performing photographing when a preset event occurs, and providing the photographed picture, and a control method therefor.

Technical Solution

A control method for an electronic device according to an embodiment of the disclosure for achieving the aforementioned purpose includes the steps of, based on a preset event being detected, acquiring a user image by photographing a user, acquiring a facial image including the user's face from the photographed user image and storing the facial image, and based on a user input for identification of the facial image being received, providing the stored facial image on the basis of at least one of a time and a place.

Here, the control method may further include the step of analyzing the facial image and determining an emotion corresponding to the facial image among a plurality of emotions.

Here, the providing step may include the steps of, based on a user input for identification of an emotion corresponding to the facial image being received, classifying the plurality of determined emotions during a preset period, and providing the facial image corresponding to the classified emotions.

Here, the storing step may further include the step of, based on data related to the time that the user image is photographed being present, matching the photographed user image and the data and storing them.

Here, the storing step may include the step of matching location information corresponding to the photographed user image with the user image and storing them.

Here, the providing step may further include the step of, based on the stored facial image being present in a plural number, providing the plurality of facial images in the form of a panorama on the basis of at least one of a time and a place.

Here, the preset event may be at least one of a lock release event, a text message reception event, a phone call reception event, an application execution event, or a content viewing event of the electronic device.

Here, the lock release event may include at least one of iris recognition, face recognition, fingerprint recognition, or pattern recognition.

Meanwhile, an electronic device according to another embodiment of the disclosure for achieving the aforementioned purpose includes a camera, a display, a memory, and a processor configured to, based on a preset event being detected, acquire a user image by photographing a user by controlling the camera, and acquire a facial image including the user's face from the photographed user image and store the facial image in the memory, and based on a user input for identification of the facial image being received, control the display to provide the stored facial image on the basis of at least one of a time and a place.

Here, the processor may analyze the facial image and determine an emotion corresponding to the facial image among a plurality of emotions.

Here, the processor may, based on a user input for identification of an emotion corresponding to the facial image being received, classify the plurality of determined emotions during a preset period, and control the display to provide the facial image corresponding to the classified emotions.

Here, the processor may, based on data related to the time that the user image is photographed being present, match the photographed user image and the data and store them in the memory.

Here, the processor may match location information corresponding to the photographed user image with the user image and store them in the memory.

Here, the processor may, based on the stored facial image being present in a plural number, control the display to provide the plurality of facial images in the form of a panorama on the basis of at least one of a time and a place.

Here, the preset event may be at least one of a lock release event, a text message reception event, a phone call reception event, an application execution event, or a content viewing event of the electronic device.

Here, the lock release event may include at least one of iris recognition, face recognition, fingerprint recognition, or pattern recognition.

Effect of the Invention

According to the various embodiments of the disclosure as above, an electronic device can photograph a user's face naturally without demanding photographing to a user, and provide the facial image.

