Electronic device and method for managing information for creating avatar of electronic device
A method for managing information for creating an avatar, and an electronic device thereof. The electronic device may include a communication module, a display, a memory, and at least one processor. The at least one processor may, in response to an avatar creation request, recognize an image displayed on the display and create an avatar on the basis of a recognition result of the image and mapping information. The at least one processor may, when the mapping information needs to be updated, transmit, to a designated server, characteristic information related to a user of the electronic device and receive, from the server, mapping information corresponding to the characteristic information related to the user. Various other embodiments are also possible.
1 . An electronic device comprising:
a communication module comprising communication circuitry;
a display;
a camera;
memory storing executable instructions and mapping information for avatar generation, wherein the mapping information comprises first mapping information corresponding to first feature information related to a face of an object and second mapping information corresponding to second feature information related to components constituting the face, wherein the mapping information includes information representing mapping relationship related to the first feature information and the second feature information which are mapped with graphical data for generating an avatar; and
at least one processor comprising processing circuitry,
wherein the instructions, when executed individually and/or collectively by the least one processor, cause the electronic device to:
in response to an avatar generation request, recognize an image displayed on the display by acquiring third feature information related to a face region of an object in the image and fourth feature information related to components constituting the face region; and
generate an avatar based on the first mapping information corresponding to the third feature information and the second mapping information corresponding to the fourth feature information, and
wherein the at least one processor is further configured to:
identify whether a current version of the mapping information is a latest version; and
in a case that the current version of the mapping information is not the latest version:
transmit characteristic information regarding a user of the electronic device to a designated server;
receive, from the designated server, the latest version of the mapping information corresponding to the characteristic information, wherein the characteristic information comprises identification information associated with at least one of the electronic device or the user and includes a model name of the electronic device, account information of the user, and avatar generation history information;
identify at least a portion of graphical data related to the image to be updated, based on a result of the recognition of the image and the latest version of mapping information, wherein the at least a portion of graphical data is used to generate an avatar related to the image;
receive, from the designated server, the latest version of graphical data corresponding to the at least a portion of the graphical data; and
generate the avatar based on at least the latest version of the graphical data.
2 . The electronic device of claim 1 , wherein the characteristic information further comprises country information; or event information.
3 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
select a face base model based on the first feature information regarding the face region of the object included in the image;
select graphical data corresponding to facial components configuring the face region, respectively; and
configure a face part of the avatar at least by arranging the selected graphical data in the selected face base model.
4 . The electronic device of claim 1 ,
wherein the instructions, when executed by the at least one processor, cause the electronic device to periodically and/or aperiodically identify whether the mapping information is updated.
5 . The electronic device of claim 4 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
before generating the avatar, identify through the designated server whether the mapping information is updated;
in case that the mapping information is updated, download the latest version of the mapping information from the designated server and store the latest version of the mapping information in the memory;
based on the latest version of the mapping information, identify whether at least a portion of the latest version of graphical data to be downloaded exists; and
download the at least a portion of the latest version of graphical data to be downloaded from the designated server and store the downloaded portion of the latest version of graphical data in the memory.
6 . The electronic device of claim 1 ,
wherein the characteristic information further comprises country information, and event information.
7 . A method of an electronic device, the method comprising:
based on a request for avatar generation, recognizing an image displayed on a display, wherein mapping information stored in memory of the electronic device comprises first mapping information corresponding to first feature information related to a face of an object and second mapping information corresponding to second feature information related to components constituting the face, wherein the mapping information includes information representing mapping relationship related to the first feature information and the second feature information which are mapped with graphical data for generating an avatar, and wherein the image is recognized by acquiring third feature information related to a face region of an object in the image and fourth feature information related to components constituting the face region;
generating an avatar based on the first mapping information corresponding to the first feature information and the second mapping information corresponding to the fourth feature information, and
wherein the method further comprising:
identifying whether a current version of the mapping information is a latest version;
in case that the current version of the mapping information is not the latest version:
transmitting characteristic information regarding a user of the electronic device to a designated server;
receiving, from the designated server, the latest version of mapping information corresponding to the characteristic information, wherein the characteristic information comprises identification information associated with at least one of the electronic device or the user and includes a model name of the electronic device, account information of the user, and avatar generation history information;
identifying at least a portion of graphical data related to the image to be updated, based on a result of the recognition of the image and the latest version of mapping information;
receiving, from the designated server, the latest version of graphical data corresponding to the at least a portion of the graphical data; and
generating the avatar based on at least the latest version of the graphical data.
8 . The method of claim 7 ,
wherein the characteristic information further comprises country information, or event information.
9 . The method of claim 7 , wherein the recognizing of the displayed image comprises extracting feature information of a face of an object included in the image and feature information of components constituting the face, and
wherein the generating of the avatar comprises:
selecting a face base model based on the first feature information regarding the face region of the object included in the image;
selecting graphical data corresponding to facial components configuring the face region, respectively; and
configuring a face part of the avatar by arranging the selected graphical data in the selected face base model.
10 . The method of claim 7 ,
wherein the identifying of whether a current version of the mapping information is the latest version comprises identifying periodically and/or aperiodically whether the mapping information is updated.
11 . The method of claim 10 , wherein receiving the latest version of graphical data comprises:
based on the latest version of the mapping information, identifying whether at least a portion of the latest version of graphical data to be downloaded exists; and
downloading the at least a portion of the latest version of graphical data to be downloaded from the designated server and storing the downloaded portion of the latest version of graphical data in the memory.