Background
Display devices, which may also be referred to as displays, or more generally as display screens, etc. A display device is a device that can output images or tactile information such as a braille display designed for the blind. If the input signal is an electronic signal, such a display device is called an electronic display device. Along with the continuous development of the artificial intelligence technology, the functions of the electronic display device are more powerful, and the design is more humanized.
However, in the process of implementing the technical solution in the embodiment of the present application, the inventor of the present application finds that the above prior art has at least the following technical problems:
in the prior art, the character characteristics of the user head portrait cannot be identified, so that the technical problem that the default head portrait information of the user cannot be automatically replaced exists.
Content of application
The embodiment of the application provides an avatar identification method and device based on a user ID, and aims to solve the technical problem that in the prior art, due to the fact that the character characteristics of an avatar of a user cannot be identified, default avatar information of the user cannot be automatically replaced. By acquiring the user ID information, the technical effects of identifying the character feature similarity in the default avatar information and the historical image information and replacing the default avatar information are achieved.
In order to solve the above problem, in a first aspect, an embodiment of the present application provides a method for identifying an avatar based on a user ID, which is applied to an electronic display device having an image collector, and is characterized in that the electronic display device includes a first usage form and a second usage form, where the first usage form is that the electronic display device stands on a usage desktop, and an included angle between a display surface of the electronic display device and the usage desktop is an obtuse angle; the second use form is that the electronic display device lies on the use desktop, and the display surface of the electronic display device is parallel to the use desktop, and the method comprises the following steps: judging whether the electronic display device is in a second use form; when the electronic display equipment is in the second use state, obtaining image information of a user according to the image collector; taking the image information as default head portrait information of the user; obtaining user ID information; acquiring historical image information according to the user ID information; comparing the default avatar information with the historical image information; and if the default avatar information and the characters in the historical image information are both the users, replacing the default avatar information with the historical image information.
Preferably, the obtaining of the historical image information according to the user ID information includes: acquiring a photo library of the user according to the user ID information; according to the photo library, acquiring a character feature set in the photo library; obtaining first human feature information of the default avatar information; obtaining second person characteristic information from the person characteristic set, wherein the second person characteristic information is the same as the first person characteristic information; and obtaining the historical image information according to the second person characteristic information.
Preferably, the obtaining a photo library of the user according to the user ID information includes: obtaining the storage access authority of the user ID information; if the storage access authority is allowed, obtaining the storage data of the user; and obtaining a photo library of the user according to the stored data of the user.
Preferably, the obtaining of the second personal characteristic information from the personal characteristic set, where the second personal characteristic information is the same as the first personal characteristic information, includes: judging whether the person feature information identical to the first person feature information exists in the person feature set or not; and if the person characteristic information identical to the first person characteristic information exists in the person characteristic set, obtaining second person characteristic information from the person characteristic set.
Preferably, the method further comprises: obtaining a team condition of the user; and replacing the default head portrait information of the users in the same team with the same image information according to the team condition of the users.
Preferably, the replacing default avatar information of a user in the same team with the same image information according to the team condition of the user includes: acquiring a historical image information set of users in the same team according to the team condition of the users; according to the historical image information set, obtaining resolution information of each piece of historical image information in the historical image information set; obtaining historical image information with the highest resolution according to the resolution information of each piece of historical image information; and uniformly replacing default head portrait information of users in the same team with the historical image information with the highest resolution.
In a second aspect, an embodiment of the present application further provides an avatar recognition apparatus based on a user ID, which is applied to an electronic display device, and the electronic display device has an image collector and a distance sensor, and is characterized in that the electronic display device includes a first usage form and a second usage form, where the first usage form is that the electronic display device stands on a usage desktop, and an included angle between a display surface of the electronic display device and the usage desktop is an obtuse angle; the second use form is that the electronic display device lies on the use desktop, and the display surface of the electronic display device is parallel to the use desktop, the apparatus includes:
the first judging unit is used for judging whether the electronic display equipment is in a second use state or not;
the first obtaining unit is used for obtaining image information of a user according to the image collector when the electronic display device is in the second using state;
a first as unit for taking the image information as default avatar information of the user;
a second obtaining unit configured to obtain user ID information;
a third obtaining unit configured to obtain history image information according to the user ID information;
a first comparison unit for comparing the default avatar information with the history image information;
a first replacing unit, configured to replace the default avatar information as the history image information if both the default avatar information and the person in the history image information are the user.
Preferably, the third obtaining unit includes:
a fourth obtaining unit, configured to obtain a photo library of the user according to the user ID information;
a fifth obtaining unit, configured to obtain a character feature set in the photo library according to the photo library;
a sixth obtaining unit configured to obtain first human feature information of the default avatar information;
a seventh obtaining unit, configured to obtain second personal feature information from the personal feature set, where the second personal feature information is the same as the first personal feature information;
an eighth obtaining unit configured to obtain the history image information according to the second person feature information.
Preferably, the fourth obtaining unit includes:
a ninth obtaining unit configured to obtain a storage access right of the user ID information;
a tenth obtaining unit, configured to obtain the storage data of the user if the storage access right is allowed;
an eleventh obtaining unit, configured to obtain a photo library of the user according to the stored data of the user.
Preferably, the seventh obtaining unit includes:
a second determination unit configured to determine whether there is character feature information in the character feature set that is the same as the first character feature information;
a twelfth obtaining unit, configured to obtain second personal feature information from the personal feature set if the same personal feature information as the first personal feature information exists in the personal feature set.
Preferably, the apparatus further comprises:
a thirteenth obtaining unit configured to obtain a team situation of the user;
and the second replacing unit is used for replacing default head portrait information of the users in the same team with the same image information according to the team conditions of the users.
Preferably, the second replacement unit includes:
a fourteenth obtaining unit, configured to obtain, according to a team situation of the user, a historical image information set of the user in the same team;
a fifteenth obtaining unit, configured to obtain, according to the historical image information set, resolution information of each piece of historical image information in the historical image information set;
a sixteenth obtaining unit, configured to obtain, according to resolution information of each piece of history image information, history image information with a highest resolution;
and the third replacing unit is used for uniformly replacing default head portrait information of users in the same team with the historical image information with the highest resolution.
In a third aspect, an embodiment of the present application further provides an avatar recognition apparatus based on a user ID, which is applied to an electronic display device, and the electronic display device has an image collector and a distance sensor, and is characterized in that the electronic display device includes a first usage form and a second usage form, where the first usage form is that the electronic display device stands on a usage desktop, and an included angle between a display surface of the electronic display device and the usage desktop is an obtuse angle; the second use form is that the electronic display device lies on the use desktop, and the display surface of the electronic display device is parallel to the use desktop, and the electronic display device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, and the processor executes the program to realize the following steps:
judging whether the electronic display device is in a second use form;
when the electronic display equipment is in the second use state, obtaining image information of a user according to the image collector;
taking the image information as default head portrait information of the user;
obtaining user ID information;
acquiring historical image information according to the user ID information;
comparing the default avatar information with the historical image information;
and if the default avatar information and the characters in the historical image information are both the users, replacing the default avatar information with the historical image information.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the following steps:
judging whether the electronic display device is in a second use form;
when the electronic display equipment is in the second use state, obtaining image information of a user according to the image collector;
taking the image information as default head portrait information of the user;
obtaining user ID information;
acquiring historical image information according to the user ID information;
comparing the default avatar information with the historical image information;
and if the default avatar information and the characters in the historical image information are both the users, replacing the default avatar information with the historical image information.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
the embodiment of the application provides a head portrait identification method and device based on a user ID, which are applied to an electronic display device, wherein the electronic display device is provided with an image collector, and is characterized in that the electronic display device comprises a first use form and a second use form, wherein the first use form is that the electronic display device stands on a use desktop, and an included angle between a display surface of the electronic display device and the use desktop is an obtuse angle; the second use form is that the electronic display device lies on the use desktop, and the display surface of the electronic display device is parallel to the use desktop, and the method comprises the following steps: judging whether the electronic display device is in a second use form; when the electronic display equipment is in the second use state, obtaining image information of a user according to the image collector; taking the image information as default head portrait information of the user; obtaining user ID information; acquiring historical image information according to the user ID information; comparing the default avatar information with the historical image information; and if the default avatar information and the characters in the historical image information are both the users, replacing the default avatar information with the historical image information. The method and the device are used for solving the technical problem that the default head portrait information of the user cannot be automatically replaced due to the fact that the character characteristics of the head portrait of the user cannot be identified in the prior art. By acquiring the user ID information, the technical effects of identifying the character feature similarity in the default avatar information and the historical image information and replacing the default avatar information are achieved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Detailed Description
The embodiment of the application provides a method and a device for identifying an avatar based on a user ID (identity), which are used for solving the technical problem that the default avatar information of a user cannot be automatically replaced due to the fact that the character characteristics of the avatar of the user cannot be identified in the prior art.
In order to solve the technical problems, the technical scheme provided by the application has the following general idea: judging whether the electronic display device is in a second use form; when the electronic display equipment is in the second use state, obtaining image information of a user according to the image collector; taking the image information as default head portrait information of the user; obtaining user ID information; acquiring historical image information according to the user ID information; comparing the default avatar information with the historical image information; and if the default avatar information and the characters in the historical image information are both the users, replacing the default avatar information with the historical image information. By acquiring the user ID information, the technical effects of identifying the character feature similarity in the default avatar information and the historical image information and replacing the default avatar information are achieved.
The technical solutions of the present application are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present application are detailed descriptions of the technical solutions of the present application, and are not limitations of the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.
Example one
Fig. 1 is a schematic flow chart of an avatar recognition method based on a user ID in an embodiment of the present invention, and as shown in fig. 1, the avatar recognition method based on the user ID provided in the embodiment of the present invention is applied to an electronic display device, and the electronic display device has an image collector and a distance sensor, and is characterized in that the electronic display device includes a first usage form and a second usage form, where the first usage form is that the electronic display device stands on a usage desktop, and an included angle between a display surface of the electronic display device and the usage desktop is an obtuse angle; the second use form is that the electronic display device lies on the use desktop, and the display surface of the electronic display device is parallel to the use desktop, and the method comprises the following steps:
step 110: judging whether the electronic display device is in a second use form;
step 120: when the electronic display equipment is in the second use state, obtaining image information of a user according to the image collector;
step 130: taking the image information as default head portrait information of the user;
step 140: obtaining user ID information;
step 150: acquiring historical image information according to the user ID information;
step 160: comparing the default avatar information with the historical image information;
step 170: and if the default avatar information and the characters in the historical image information are both the users, replacing the default avatar information with the historical image information.
Specifically, the method for identifying the head portrait based on the user ID is applied to an electronic display device, wherein the electronic display device is provided with an image collector, and the image collector is used for collecting the head portrait of the user using the electronic display device. The electronic display device comprises a first use form and a second use form, wherein the first use form is that the electronic display device stands on a use desktop, an included angle between a display surface of the electronic display device and the use desktop is an obtuse angle, the first use form is suitable for the situation that the number of users is small, one user is suitable, two to three users can use the electronic display device, when one user uses the electronic display device, the electronic display device can be obliquely stood on the use desktop, and under the condition that the display surface of the electronic display device and the use desktop form a certain angle, the user can more comfortably watch the electronic display device, and the eye fatigue is effectively relieved; the second use form does electronic display device lie in use on the desktop, just electronic display device's display surface is on a parallel with use the desktop, wherein, the second use form is applicable to the more condition of user's number, for example many people meeting, many people recreation etc. when more number the user is in use under the first use form during electronic display device, because it is a plurality of the user encloses simultaneously before electronic display device for be located edge or distance are far away the user sees clearly content on the electronic display device, and then make the meeting inefficiency, the experience when the user plays the recreation is greatly discounted. Therefore, an embodiment of the present application provides a display method for automatic identification of the electronic display device in the second usage form, where the method includes: firstly, whether the electronic display device is in a second use form needs to be judged, when the electronic display device is in the second use form, image information of the user is collected through the image collector, wherein the image information is face information of the user shot by the image collector, and then the image information is used as default head portrait information of the user. When a plurality of users use the electronic display device at the same time, the default avatar information of the users can enable other users to distinguish which default avatar information belongs to which user on the electronic display device, and the function of distinguishing the users is also achieved. If the user logs on a first control, wherein the first control can be APP such as WeChat, QQ, a landlord multiplayer game and the like, since the first control has a certain storage space after the user logs in ID information, wherein, the storage space can be a cloud space or a local space, the user can request to access the storage space and read the historical image information uploaded to the storage space, then comparing the default avatar information with the historical image information, identifying whether the person in the default avatar information and the person in the historical image information are the same user through a person feature identification technology, and the characters in the default avatar information and the custom avatar information are both the user himself, and at the moment, the default avatar information can be replaced by the historical image information. Further, by acquiring the user ID information, the technical effects of identifying the similarity of the character characteristics in the default avatar information and the historical image information and replacing the default avatar information are achieved.
Further, the obtaining of the historical image information according to the user ID information includes: acquiring a photo library of the user according to the user ID information; according to the photo library, acquiring a character feature set in the photo library; obtaining first human feature information of the default avatar information; obtaining second person characteristic information from the person characteristic set, wherein the second person characteristic information is the same as the first person characteristic information; and obtaining the historical image information according to the second person characteristic information.
Further, the obtaining a photo library of the user according to the user ID information includes: obtaining the storage access authority of the user ID information; if the storage access authority is allowed, obtaining the storage data of the user; and obtaining a photo library of the user according to the stored data of the user.
Further, the obtaining second person feature information from the person feature set, where the second person feature information is the same as the first person feature information, includes: judging whether the person feature information identical to the first person feature information exists in the person feature set or not; and if the person characteristic information identical to the first person characteristic information exists in the person characteristic set, obtaining second person characteristic information from the person characteristic set.
Specifically, after the user ID information is acquired, a storage access request may be issued to the storage space, and if the storage access authority is allowed, the storage data in the storage space may be accessed, so as to obtain the photo library of the user. According to the obtained photo library, a person feature recognition technology is used for obtaining a person feature set in the photo library, wherein the person feature recognition technology is called face recognition, or called face recognition, and is a biological recognition technology for carrying out identity recognition based on face feature information of a person, a camera or a camera is used for collecting images or video streams containing faces, the faces are automatically detected and tracked in the images, a series of related technologies of the faces are further carried out on the detected faces, the related technologies comprise face image collection, face positioning, face recognition preprocessing, memory storage and comparison recognition, the purpose of recognizing different person identities is achieved, then first person feature information of the default head portrait information is obtained through the person feature recognition technology, namely local components of eyes, a nose, a mouth, a chin and the like of the person in the default head portrait information are extracted, and the geometric features of the parts and the structural relationship between the parts are taken as the first person feature information, then whether person feature information which is the same as the first person feature information exists in the person feature set is judged, namely whether a user with the first person feature information exists is searched and searched in the person feature set, if the person feature information which is the same as the first person feature information exists in the person feature set, second person feature information is extracted from the person feature set, wherein the second person feature information which is the same as the first person feature information is matched with the second person feature information which is the same as the first person feature information in the person feature set, namely, the user which is the same as the person in the default head portrait information is obtained in the photo library, and finally, according to the second person characteristic information, obtaining the photos of the same user as the persons in the default avatar information from the photo library, and taking the photos as the historical image information of the user, namely the photos of the user. The technical effect of acquiring the historical image information of the user is further achieved.
Further, the method further comprises: obtaining a team condition of the user; and replacing the default head portrait information of the users in the same team with the same image information according to the team condition of the users.
Further, the replacing the default avatar information of the user in the same team with the same image information according to the team condition of the user includes: acquiring a historical image information set of users in the same team according to the team condition of the users; according to the historical image information set, obtaining resolution information of each piece of historical image information in the historical image information set; obtaining historical image information with the highest resolution according to the resolution information of each piece of historical image information; and uniformly replacing default head portrait information of users in the same team with the historical image information with the highest resolution.
Specifically, in addition to the aforementioned replacement of default avatar information of a single user, the embodiment of the present invention further provides a method for replacing default avatar information of a user in groups, which first needs to obtain a team situation of the user, that is, a grouping situation of users in a multiplayer game, and then replaces default avatar information of users in the same team with the same image information according to the team situation of the user, so as to facilitate identification and differentiation of teams, thereby preventing confusion of users and confusion of teammates and opponents of the users. For example, in a three-person fighting landowner game, two users are required to serve as a farmer role in a group, default avatar information of the two users is replaced by the farmer avatar, the remaining users serve as a lander role in a group, the default avatar information is replaced by the lander avatar, two groups play against each other, and the winning group wins the game after the cards in the hands of the group are all played. When replacing default head portrait information for a team, firstly, according to the team condition of the user, respectively obtaining historical image information of each user in the same team according to the method in step 150, collecting the historical image information of each user as a historical image information set of the team, further obtaining resolution information of each historical image information in the historical image information set, comparing the resolution information of each historical image information to obtain historical image information with the highest resolution, finally, uniformly replacing the default head portrait information of each user in the team with the historical image information with the highest resolution, further uniformly replacing the default head portrait information by the team, and achieving the technical effects of team identification, clear, convenience and quickness.
Example two
Based on the same inventive concept as the head portrait identification method based on the user ID in the foregoing embodiment, the invention further provides a head portrait identification device based on the user ID, which is applied to an electronic display device, and the electronic display device is provided with an image collector and a distance sensor, and is characterized in that the electronic display device comprises a first use form and a second use form, wherein the first use form is that the electronic display device stands on a use desktop, and an included angle between a display surface of the electronic display device and the use desktop is an obtuse angle; the second usage form is that the electronic display device lies on the usage desktop, and the display surface of the electronic display device is parallel to the usage desktop, as shown in fig. 2, the apparatus includes:
a first judging unit 11, wherein the first judging unit 11 is used for judging whether the electronic display device is in a second use mode;
a first obtaining unit 12, where the first obtaining unit 12 is configured to obtain image information of a user according to the image collector when the electronic display device is in the second usage form;
a first acting unit 13, the first acting unit 13 being configured to act as default avatar information of the user for the image information;
a second obtaining unit 14, the second obtaining unit 14 being configured to obtain user ID information;
a third obtaining unit 15, the third obtaining unit 15 being configured to obtain history image information according to the user ID information;
a first comparing unit 16, wherein the first comparing unit 16 is used for comparing the default head portrait information with the historical image information;
a first replacing unit 17, where the first replacing unit 17 is configured to replace the default avatar information as the history image information if both the default avatar information and the person in the history image information are the user.
Preferably, the third obtaining unit 15 includes:
a fourth obtaining unit, configured to obtain a photo library of the user according to the user ID information;
a fifth obtaining unit, configured to obtain a character feature set in the photo library according to the photo library;
a sixth obtaining unit configured to obtain first human feature information of the default avatar information;
a seventh obtaining unit, configured to obtain second personal feature information from the personal feature set, where the second personal feature information is the same as the first personal feature information;
an eighth obtaining unit configured to obtain the history image information according to the second person feature information.
Preferably, the fourth obtaining unit includes:
a ninth obtaining unit configured to obtain a storage access right of the user ID information;
a tenth obtaining unit, configured to obtain the storage data of the user if the storage access right is allowed;
an eleventh obtaining unit, configured to obtain a photo library of the user according to the stored data of the user.
Preferably, the seventh obtaining unit includes:
a second determination unit configured to determine whether there is character feature information in the character feature set that is the same as the first character feature information;
a twelfth obtaining unit, configured to obtain second personal feature information from the personal feature set if the same personal feature information as the first personal feature information exists in the personal feature set.
Preferably, the apparatus further comprises:
a thirteenth obtaining unit configured to obtain a team situation of the user;
and the second replacing unit is used for replacing default head portrait information of the users in the same team with the same image information according to the team conditions of the users.
Preferably, the second replacement unit includes:
a fourteenth obtaining unit, configured to obtain, according to a team situation of the user, a historical image information set of the user in the same team;
a fifteenth obtaining unit, configured to obtain, according to the historical image information set, resolution information of each piece of historical image information in the historical image information set;
a sixteenth obtaining unit, configured to obtain, according to resolution information of each piece of history image information, history image information with a highest resolution;
and the third replacing unit is used for uniformly replacing default head portrait information of users in the same team with the historical image information with the highest resolution.
Various changes and specific examples of the method for identifying an avatar based on a user ID in the first embodiment of fig. 1 are also applicable to the apparatus for identifying an avatar based on a user ID in the present embodiment, and those skilled in the art can clearly know the method for implementing the apparatus for identifying an avatar based on a user ID in the present embodiment through the foregoing detailed description of the method for identifying an avatar based on a user ID, so for the sake of brevity of the description, detailed descriptions thereof are omitted here.
EXAMPLE III
Based on the same inventive concept as the method for identifying the avatar based on the user ID in the foregoing embodiments, the present invention further provides an apparatus for identifying the avatar based on the user ID, on which a computer program is stored, which when executed by a processor implements the steps of any one of the methods for identifying the avatar based on the user ID described above.
Where in fig. 3 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 306 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
Example four
Based on the same inventive concept as the avatar identification method based on user ID in the foregoing embodiments, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of:
judging whether the electronic display device is in a second use form; when the electronic display equipment is in the second use state, obtaining image information of a user according to the image collector; taking the image information as default head portrait information of the user; obtaining user ID information; acquiring historical image information according to the user ID information; comparing the default avatar information with the historical image information; and if the default avatar information and the characters in the historical image information are both the users, replacing the default avatar information with the historical image information.
In a specific implementation, when the program is executed by a processor, any method step in the first embodiment may be further implemented.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
the embodiment of the application provides a head portrait identification method and device based on a user ID, which are applied to an electronic display device, wherein the electronic display device is provided with an image collector, and is characterized in that the electronic display device comprises a first use form and a second use form, wherein the first use form is that the electronic display device stands on a use desktop, and an included angle between a display surface of the electronic display device and the use desktop is an obtuse angle; the second use form is that the electronic display device lies on the use desktop, and the display surface of the electronic display device is parallel to the use desktop, and the method comprises the following steps: judging whether the electronic display device is in a second use form; when the electronic display equipment is in the second use state, obtaining image information of a user according to the image collector; taking the image information as default head portrait information of the user; obtaining user ID information; acquiring historical image information according to the user ID information; comparing the default avatar information with the historical image information; and if the default avatar information and the characters in the historical image information are both the users, replacing the default avatar information with the historical image information. The method and the device are used for solving the technical problem that the default head portrait information of the user cannot be automatically replaced due to the fact that the character characteristics of the head portrait of the user cannot be identified in the prior art. By acquiring the user ID information, the technical effects of identifying the character feature similarity in the default avatar information and the historical image information and replacing the default avatar information are achieved.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.