Group avatar generation method, device, equipment and storage medium
By obtaining and matching key information in the group information, the group avatar is generated, which solves the problem of monotonous avatars in the existing technology and achieves a more vivid and intuitive group avatar generation effect.
Patent Information
- Application Number
- CN202110328404.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-03-26
AI Technical Summary
When the existing group avatar generation method is used to create a group, the generated avatar is monotonous, cannot effectively reflect more information about the group, and the generation effect is poor.
By obtaining the name, type information or member attribute information in the group information, match candidate text and generate an avatar, including selecting candidate text and style information to improve the vividness and clarity of the avatar.
The generated avatars are more vivid, can clearly and intuitively reflect the nature of the group, improve the generation effect, and reduce user operations and power consumption.
Smart Images

Figure CN113064981B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a group avatar generation method, device, equipment and storage medium. Background Art
[0002] With the development of computer technology, users can quickly contact and communicate through the Internet in life or work to achieve efficient work or efficient interaction. In order to facilitate communication among multiple users, groups can be established. Members of the group can speak in the group and see the speeches of other members, achieving more effective communication.
[0003] In the related art, the group avatar generation method is usually to generate a group avatar according to the names of the group members when the group is established, and the avatar contains the names of the group members. However, this group generation method is relatively monotonous, and the generated avatar cannot reflect more information of the group, and the generation effect is relatively poor. Summary of the invention
[0004] The present disclosure provides a group avatar generation method, device, equipment and storage medium, which can generate more vivid avatars and improve the generation effect. The technical solution of the present disclosure is as follows.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for generating a group avatar is provided, comprising:
[0006] In response to an instruction to generate an avatar for a target group, acquiring group information of the target group, the group information including at least one of a group name of the target group, type information of the target group, or attribute information of members in the target group;
[0007] Acquire, according to the group information of the target group, at least one candidate text corresponding to the group information;
[0008] In the text candidate area of the avatar setting interface, displaying the at least one candidate text;
[0009] In response to an instruction to select any candidate text, an avatar of the target group is generated according to the selected candidate text, wherein the avatar includes the selected candidate text.
[0010] In some embodiments, acquiring at least one candidate text corresponding to the group information according to the group information of the target group includes:
[0011] The group information of the target group is matched with the candidate texts in the candidate text library to obtain at least one candidate text corresponding to the group information.
[0012] In some embodiments, matching the group information of the target group with the candidate texts in the candidate text library to obtain at least one candidate text corresponding to the group information includes any of the following:
[0013] In response to the group information being the group name of the target group, performing semantic analysis on the group name of the target group to determine a matching degree between the group name of the target group and candidate texts in the candidate text library; based on the matching degree, obtaining at least one candidate text corresponding to the group name of the target group from the candidate text library;
[0014] In response to the group information being type information of the target group, acquiring, from the candidate text library, at least one candidate text corresponding to the type information as at least one candidate text corresponding to the group information;
[0015] In response to the group information being attribute information of a member in the target group, at least one candidate text corresponding to the attribute information is acquired from the candidate text library as at least one candidate text corresponding to the group information.
[0016] In some embodiments, displaying the at least one candidate text in the text candidate area of the avatar setting interface includes:
[0017] Determining a display order of the at least one candidate text according to a matching degree between the group information and the at least one candidate text;
[0018] In the text candidate area of the avatar setting interface, the at least one candidate text is displayed in the display order.
[0019] In some embodiments, generating the avatar of the target group according to the selected candidate text includes:
[0020] Determining the text content and position in the avatar of the target group according to the selected candidate text;
[0021] Based on the text content and position, an avatar of the target group is generated.
[0022] In some embodiments, the method further comprises:
[0023] In the avatar setting interface, displaying at least one candidate style information;
[0024] The step of generating an avatar of the target group based on the text content and the position includes:
[0025] In response to a selection operation on any candidate style information, an avatar of the target group is generated based on the text content and position and in accordance with the selected candidate style information.
[0026] In some embodiments, the method further comprises:
[0027] In response to the instruction to create the target group, create the target group;
[0028] Displaying a modification control for the group name in the dialog interface of the target group;
[0029] In response to a touch operation on the modification control of the group name, displaying a group name setting interface, wherein the group name setting interface displays an avatar generation control;
[0030] In response to a touch operation on the avatar generation control, acquiring group information of the target group;
[0031] Generate an avatar of the target group according to the group information.
[0032] In some embodiments, in response to the avatar generation instruction for the target group, obtaining the group information of the target group includes:
[0033] In response to a touch operation on a group setting control, displaying a setting interface of the target group, wherein the setting interface displays an avatar generation control;
[0034] In response to a touch operation on the avatar generation control, group information of the target group is acquired.
[0035] In some embodiments, the attribute information includes at least one of organizational information, position, and age.
[0036] According to a second aspect of an embodiment of the present disclosure, there is provided a group avatar generating device, including:
[0037] an acquisition unit, configured to execute, in response to an instruction to generate an avatar for a target group, acquisition of group information of the target group, the group information including at least one of a group name of the target group, type information of the target group, or attribute information of members in the target group;
[0038] The acquisition unit is further configured to acquire at least one candidate text corresponding to the group information according to the group information of the target group;
[0039] A display unit is configured to display the at least one candidate text in a text candidate area of the avatar setting interface;
[0040] The generating unit is configured to execute, in response to a selection instruction for any candidate text, generate an avatar of the target group according to the selected candidate text, wherein the avatar includes the selected candidate text.
[0041] In some embodiments, the acquisition unit is configured to match the group information of the target group with candidate texts in a candidate text library to obtain at least one candidate text corresponding to the group information.
[0042] In some embodiments, the acquisition unit is configured to perform any of the following:
[0043] In response to the group information being the group name of the target group, performing semantic analysis on the group name of the target group to determine a matching degree between the group name of the target group and candidate texts in the candidate text library; based on the matching degree, obtaining at least one candidate text corresponding to the group name of the target group from the candidate text library;
[0044] In response to the group information being type information of the target group, acquiring, from the candidate text library, at least one candidate text corresponding to the type information as at least one candidate text corresponding to the group information;
[0045] In response to the group information being attribute information of a member in the target group, at least one candidate text corresponding to the attribute information is acquired from the candidate text library as at least one candidate text corresponding to the group information.
[0046] In some embodiments, the display unit is configured to perform:
[0047] Determining a display order of the at least one candidate text according to a matching degree between the group information and the at least one candidate text;
[0048] In the text candidate area of the avatar setting interface, the at least one candidate text is displayed in the display order.
[0049] In some embodiments, the generating unit is configured to perform:
[0050] Determining the text content and position in the avatar of the target group according to the selected candidate text;
[0051] Based on the text content and position, an avatar of the target group is generated.
[0052] In some embodiments, the display unit is further configured to display at least one candidate style information in the avatar setting interface;
[0053] The generating unit is configured to generate, in response to a selection operation on any candidate style information, an avatar of the target group based on the text content and position and in accordance with the selected candidate style information.
[0054] In some embodiments, the apparatus further comprises:
[0055] an establishing unit, configured to execute, in response to an establishing instruction of the target group, establishing the target group;
[0056] The display unit is further configured to execute a modification control for displaying a group name in the dialog interface of the target group;
[0057] The display unit is further configured to execute a touch operation on the modification control of the group name, and display a group name setting interface, wherein the group name setting interface displays an avatar generation control;
[0058] The acquisition unit is further configured to execute, in response to a touch operation on the avatar generation control, acquisition of group information of the target group;
[0059] The generating unit is further configured to generate an avatar of the target group according to the group information.
[0060] In some embodiments, the acquisition unit is configured to perform:
[0061] In response to a touch operation on a group setting control, displaying a setting interface of the target group, wherein the setting interface displays an avatar generation control;
[0062] In response to a touch operation on the avatar generation control, group information of the target group is acquired.
[0063] In some embodiments, the attribute information includes at least one of organizational information, position, and age.
[0064] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0065] one or more processors;
[0066] one or more memories for storing said processor executable program code;
[0067] The one or more processors are configured to execute the program code to implement the above-mentioned group avatar generation method.
[0068] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When a program code in the storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned group avatar generation method.
[0069] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the above-mentioned group avatar generation method is implemented.
[0070] The disclosed embodiment provides a flexible group avatar generation method, in which new reference factors are added, and avatars that are more vivid and can better reflect the nature of the group can be generated. In this generation method, the name, type information or attribute information of the group is specifically used as a factor for reference in avatar generation. Based on these factors, candidate texts that match them are obtained and recommended to users. The candidate texts selected in this way are used as display elements in the avatar. The generated avatar can clearly and intuitively know the above-mentioned properties of the group, and the generation effect is better.
[0071] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0073] Figure 1 is a structural block diagram of a group avatar generation system according to an exemplary embodiment;
[0074] Figure 2 is a flow chart of a method for generating a group avatar according to an exemplary embodiment;
[0075] Figure 3 is a flow chart of a method for generating a group avatar according to an exemplary embodiment;
[0076] Figure 4 is a schematic diagram of a terminal interface according to an exemplary embodiment;
[0077] Figure 5 is a schematic diagram of a terminal interface according to an exemplary embodiment;
[0078] Figure 6 is a schematic diagram of a terminal interface according to an exemplary embodiment;
[0079] Figure 7 is a schematic diagram of a terminal interface according to an exemplary embodiment;
[0080] Figure 8 is a schematic diagram of a terminal interface according to an exemplary embodiment;
[0081] Fig. 9 is a schematic diagram of a terminal interface according to an exemplary embodiment;
[0082] Fig.10 is a schematic diagram of a terminal interface according to an exemplary embodiment;
[0083] Fig.11 is a schematic diagram of a terminal interface according to an exemplary embodiment;
[0084] Fig.12 is a block diagram of a group portrait generating device according to an exemplary embodiment;
[0085] Fig.13 is a block diagram of an electronic device according to an exemplary embodiment;
[0086] Fig.14 is a block diagram of a terminal according to an exemplary embodiment;
[0087] Fig.15 It is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION
[0088] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0089] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0090] The following is an exemplary description of the hardware environment of the embodiment of the present disclosure.
[0091] Figure 1 1 is a structural block diagram of a group avatar generation system according to an exemplary embodiment. The group avatar generation system includes: an electronic device 101 and a group avatar generation platform 110 .
[0092] The electronic device 101 is connected to the group avatar generation platform 110 via a wireless network or a wired network. The electronic device 101 can be at least one of a smart phone, a desktop computer, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player or an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 4) player and a laptop computer.
[0093] The electronic device 101 has installed and runs an application that supports group avatar generation. The application may be an office application, a social application, a multimedia application, etc. Exemplarily, the electronic device 101 is a terminal used by a user, and a user account is logged into the application. The electronic device 101 is connected to the group avatar generation platform 110 via a wireless network or a wired network.
[0094] The group avatar generation platform 110 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. The group avatar generation platform 110 is used to provide background services for applications. Optionally, in the process of generating group avatars, the group avatar generation platform 110 and the electronic device 101 work together. For example, the group avatar generation platform 110 undertakes the main work and the electronic device 101 undertakes the secondary work; or, the group avatar generation platform 110 undertakes the secondary work and the electronic device 101 undertakes the main work; or, the group avatar generation platform 110 or the electronic device 101 undertakes the work separately.
[0095] Optionally, the group avatar generation platform 110 includes at least one server 1101 and a database 1102, and the database 1102 is used to store data. In the embodiment of the present disclosure, the database 1102 can store system avatars, candidate texts or the group avatars generated this time, providing data services for at least one server 1021.
[0096] The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to these.
[0097] Those skilled in the art will appreciate that the number of electronic devices 101 may be more or less. For example, there may be only one electronic device 101, or there may be dozens or hundreds of electronic devices 101, or a greater number, in which case the group avatar generation system may further include other electronic devices. The disclosed embodiments do not limit the number and type of electronic devices.
[0098] Figure 2 FIG. 1 is a flow chart of a method for generating a group avatar according to an exemplary embodiment. Figure 2 As shown, the group avatar generation method includes the following steps.
[0099] In step S21, the electronic device obtains group information of the target group in response to an instruction to generate an avatar for the target group, where the group information includes at least one of a group name of the target group, type information of the target group, or attribute information of members in the target group.
[0100] In step S22, the electronic device obtains at least one candidate text corresponding to the group information according to the group information of the target group.
[0101] In step S23, the electronic device displays the at least one candidate text in the text candidate area of the avatar setting interface.
[0102] In step S24, in response to an instruction to select any candidate text, the electronic device generates an avatar of the target group according to the selected candidate text, wherein the avatar includes the selected candidate text.
[0103] The disclosed embodiment provides a flexible group avatar generation method, in which new reference factors are added, and avatars that are more vivid and can better reflect the nature of the group can be generated. In this generation method, the name, type information or attribute information of the group is specifically used as a factor for reference in avatar generation. Based on these factors, candidate texts that match them are obtained and recommended to users. The candidate texts selected in this way are used as display elements in the avatar. The generated avatar can clearly and intuitively know the above-mentioned properties of the group, and the generation effect is better.
[0104] In some embodiments, obtaining at least one candidate text corresponding to the group information according to the group information of the target group includes:
[0105] The group information of the target group is matched with the candidate texts in the candidate text library to obtain at least one candidate text corresponding to the group information.
[0106] In some embodiments, the group information of the target group is matched with the candidate texts in the candidate text library to obtain at least one candidate text corresponding to the group information, including any of the following:
[0107] In response to the group information being the group name of the target group, performing semantic analysis on the group name of the target group to determine a matching degree between the group name of the target group and candidate texts in the candidate text library; based on the matching degree, obtaining at least one candidate text corresponding to the group name of the target group from the candidate text library;
[0108] In response to the group information being type information of the target group, acquiring at least one candidate text corresponding to the type information from the candidate text library as at least one candidate text corresponding to the group information;
[0109] In response to the group information being attribute information of a member in the target group, at least one candidate text corresponding to the attribute information is acquired from the candidate text library as at least one candidate text corresponding to the group information.
[0110] In some embodiments, displaying the at least one candidate text in the text candidate area of the avatar setting interface includes:
[0111] Determining a display order of the at least one candidate text according to a matching degree between the group information and the at least one candidate text;
[0112] In the text candidate area of the avatar setting interface, the at least one candidate text is displayed in the display order.
[0113] In some embodiments, generating an avatar of the target group according to the selected candidate text includes:
[0114] Determine the text content and position in the avatar of the target group according to the selected candidate text;
[0115] Based on the text content and location, an avatar of the target group is generated.
[0116] In some embodiments, the method further comprises:
[0117] In the avatar setting interface, at least one candidate style information is displayed;
[0118] The generating of the avatar of the target group based on the text content and the position includes:
[0119] In response to a selection operation on any candidate style information, an avatar of the target group is generated based on the text content and position and in accordance with the selected candidate style information.
[0120] In some embodiments, the method further comprises:
[0121] In response to the instruction to create the target group, create the target group;
[0122] Displaying a modification control for the group name in the dialog interface of the target group;
[0123] In response to a touch operation on the modification control of the group name, a group name setting interface is displayed, wherein the group name setting interface displays an avatar generation control;
[0124] In response to a touch operation on the avatar generation control, obtaining group information of the target group;
[0125] Generate an avatar of the target group based on the group information.
[0126] In some embodiments, in response to the avatar generation instruction for the target group, obtaining the group information of the target group includes:
[0127] In response to a touch operation on a group setting control, displaying a setting interface of the target group, the setting interface displaying an avatar generation control;
[0128] In response to a touch operation on the avatar generation control, group information of the target group is obtained.
[0129] In some embodiments, the attribute information includes at least one of organizational information, position, and age.
[0130] Figure 3 1 is a flow chart of a method for generating a group avatar according to an exemplary embodiment. The method can be executed by an electronic device, which can be an electronic device or a server. Figure 3 , the method comprises the following steps.
[0131] In step S31 , the electronic device establishes the target group in response to the instruction to establish the target group.
[0132] In the disclosed embodiment, a user can log in to a user account on an electronic device, and can establish a group through the user account, thereby communicating with electronic devices where other user accounts in the group are located.
[0133] The electronic device may be a terminal such as a computer or a tablet computer, or a mobile terminal such as a smart phone. In some embodiments, a target application may be installed on the electronic device, and the target application is used to support the electronic device to establish a target group with other electronic devices and to conduct a conversation in the target group. For example, the target application may be an office application or a social application.
[0134] In a specific possible embodiment, the establishment of the target group can be achieved through a server. The electronic device can respond to the target group establishment instruction and send a target group establishment request to the server, and the server responds to the establishment request to establish the target group, and then sends the establishment result to the electronic device and the electronic devices where other user accounts in the target group are located. The electronic device that receives the establishment result can add the target group to the logged-in user account, and the electronic device can also respond to the entry instruction to the target group and display the dialogue interface of the target group.
[0135] For example, a user logs in to a user account in a target application on an electronic device, and performs a group creation operation in the target application to trigger an instruction to create the target group. For example, the group creation operation may be a touch operation on a group creation control, and the electronic device displays a group creation interface in response to the touch operation on the group creation control. The user can select other user accounts and perform a touch operation on the confirmation creation control. The electronic device can then execute the above-mentioned target group creation steps, create a target group, and display the target group in the default display interface of the target application (such as a home page). The user can click on the target group, and the electronic device can then display a dialog interface for the target group. For example, the dialog interface for the target group can be as shown below. Figure 4 As shown. Figure 4 As shown, the conversation interface may display the group name 401 of the target group, may display the number 402 of members in the target group, may also display a conversation content display area 403 and an input area 404 .
[0136] In step S32, the electronic device displays a modification control for the group name in the dialog interface of the target group.
[0137] After the electronic device establishes the target group, the relevant information of the target group and the controls or display areas required for the conversation can be displayed in the conversation interface of the target group. For example, the group name of the target group can be displayed in the conversation interface, and the number of members in the target group can also be displayed. The conversation content display area and the input area can also be displayed. In this way, the client can operate in the input area to enter the conversation content. After sending the conversation content, the conversation content sent by the current user account can be displayed in the conversation content display area. Of course, if the conversation content sent by other user accounts is received, it can also be displayed in the conversation content.
[0138] The dialog interface may also display a control for modifying the relevant information of the target group, such as a control for modifying the group name, through which the user can enter the group name setting interface to set the group name. Specifically, when the target group is established, the electronic device can generate a default group name based on the name of the user account of the target group. If the user wants to set a group name by himself, the user can touch the control for modifying the group name to enter the group name setting interface and complete the group name setting operation in the group name setting interface.
[0139] It should be noted that the group name modification control may be displayed when the target group is created, and as the conversation content increases, the group name modification control may no longer be displayed. Figure 4 As shown, the modification control for the group name may be a “set group name” control 405 .
[0140] In some embodiments, a group setting control may also be displayed in the dialogue interface. By touching the group setting control, the electronic device may display the group setting interface, and the group setting interface may provide a setting function for the relevant information of the group. For example, a group name setting function, an avatar generation function, a notification or privacy setting function, etc. In some embodiments, the group setting interface may include a variety of group setting controls, such as a group name setting control, an avatar generation control, a notification setting control, a privacy setting control, a display setting control for the names of members in the target group, etc. The controls displayed in the group setting interface may be set by relevant technical personnel according to needs. The embodiments of the present disclosure are not limited to this, and they are not listed here one by one. For example, for group setting controls, such as Figure 4 As shown, a group setting control 406 may be displayed in the dialogue interface.
[0141] In step S33, the electronic device displays a group name setting interface in response to the touch operation on the modification control of the group name, and the group name setting interface displays an avatar generation control.
[0142] If the user wants to set the group name of the target group, the user can touch the modification control of the group name. In response to the touch operation, the electronic device can jump the interface to the group name setting interface, so that the user can enter the group name they want to set in the group name setting interface, and the electronic device can set the group name based on the user's input.
[0143] In some embodiments, a group name input box may be displayed in the group name setting interface, and the user may input content in the group name input box, and the electronic device may obtain the content in the group name input box as the group name of the target group.
[0144] In some embodiments, a method for synchronously generating an avatar when setting a group name is provided. Specifically, an avatar generation control may be displayed in the group name setting interface, and the user may touch the avatar generation control to trigger the electronic device to generate an avatar. Figure 4 As shown, when the user clicks the "Set Group Name" control 405 in the dialogue interface, the electronic device can jump to the interface as shown in FIG. Figure 5 The group name setting interface shown in the figure may display a group name input box 501 and an avatar generation control 502. For example, the avatar generation control 502 may be a check option. If the user checks the avatar generation control 502, the electronic device will perform the avatar generation step; if the user does not check the avatar generation control 502, the electronic device may set the group name without performing the avatar generation step.
[0145] In step S34, the electronic device obtains the group information of the target group in response to the touch operation on the avatar generation control.
[0146] If the user touches the avatar generation control, it means that the user wants to synchronously generate an avatar for the target group. The electronic device can obtain the group information of the target group, use the group information as a reference factor for avatar generation, and generate an avatar that matches the nature of the target group.
[0147] In some embodiments, the group information includes at least one of the group name of the target group, the type information of the target group, or the attribute information of the members in the target group. That is, in some embodiments, the group information may include the group name of the target group. In other embodiments, the group information may include the type information of the target group. In other embodiments, the group information may include the attribute information of the members in the target group. In other embodiments, the group information may include any two of the above three types of information, such as the group name of the target group and the type information of the target group, and the type information of the target group and the attribute information of the members in the target group, and the group name of the target group and the attribute information of the members in the target group. In other embodiments, the group information may include the above three types of information, that is, the group information may include the group name of the target group, the type information of the target group, and the attribute information of the members in the target group.
[0148] In some embodiments, the group information is a group name set by the user, that is, in step S34, the electronic device can obtain the content in the group name input box (that is, the group name of the target group) as the group information to perform the subsequent avatar generation step. Of course, the electronic device can also set the content in the group name input box as the group name of the target group.
[0149] In some embodiments, the type information of the target group can be used to indicate the type of the target group, for example, the type of the target group is a work project group, and for another example, the type of the target group is an entertainment and leisure group. The type information of the target group can be selected by the user when the target group is established, or it can be automatically determined by the electronic device according to the attribute information of the members in the target group. The type information of the group can be set by relevant technical personnel according to needs. The disclosed embodiment does not specifically limit what types of information the group includes and the attribute information of the target group.
[0150] In some embodiments, the attribute information includes at least one of organizational information, position, and age. The organizational information may be, for example, the department to which the member belongs, or the project group to which the member belongs. Of course, it may also be other organizational information, such as information about other groups to which the member belongs, which is not limited in the embodiments of the present disclosure. For the attribute information of the members in the above-mentioned target group, the attribute information is used to indicate the attributes of the members and can describe the characteristics of the members to a certain extent. By analyzing the attribute information of the members to determine the content in the avatar, the generated avatar can reflect the attribute information of the members in the target group, be more consistent with the members of the target group, and can more clearly, intuitively, and vividly reflect the nature of the target group, resulting in a better generation effect.
[0151] In step S35, the electronic device generates an avatar of the target group according to the group information.
[0152] After the electronic device obtains the group information of the target group, it can generate a corresponding avatar based on the group information. In this way, the avatar is generated based on the group information and contains some information in the group information, which can better reflect the nature of the target group and have a better generation effect.
[0153] In some embodiments, in response to the group information being the group name of the target group, the electronic device may use the group name of the target group, keywords in the group name, or a target number of words that are ranked first in the group name as text content in the avatar, and then generate an image containing the text content as the avatar of the target group.
[0154] For example, Figure 5As shown, the avatar generation control 502 can be "also set as group avatar". If the user checks the avatar generation control 502, the electronic device can set the content in the group name input box 501 as the group name, and generate an image containing the first 4 characters of the group name as the avatar. In some embodiments, the electronic device can generate a preview avatar, and then display the preview avatar in the group name setting interface. If the user sees the preview image and thinks it meets his expectations, he can touch the save control, and the electronic device can jump the interface back to the dialogue interface. At this time, the group name displayed in the dialogue interface is modified to the group name entered by the user. And if the interface is switched back to the default display interface of the target application, the avatar of the target group is changed to the generated avatar. For example, if Figure 5 As shown, when the user checks the avatar generation control 502, the electronic device can generate and display a preview avatar 503.
[0155] In a specific example, when the target group is established, the electronic device generates a default group name and a default avatar based on the members of the target group, and then the above steps S32 to S35 are the process of modifying the group name or avatar of the target group. In this process, the user can choose to modify the group name, the user can also choose to modify the avatar, and the user can also choose to modify both the group name and the avatar. Correspondingly, the steps performed by the electronic device are different. For example, the electronic device modifies the group name of the target group to the content entered in the group name input box. For another example, the electronic device modifies the avatar of the target group to the generated avatar. For another example, the electronic device can modify the group name of the target group to the content entered in the group name input box, and modify the avatar of the target group to the generated avatar. In different situations, the electronic device can display different prompt information when jumping the interface back to the dialogue interface. For example, if the user enters the group name as "AAAAA" but does not check the avatar generation control 502, the electronic device can jump the interface back to the dialogue interface. Figure 6 In the dialog interface shown, the group name 601 in the dialog interface has been changed to "AAAAA", and a prompt message 602 may be displayed in the content display area: You changed the group name to "AAAAA". For another example, if the user does not re-enter the group name, but uses the default group name and checks the avatar generation control 502, the electronic device may jump back to the interface as shown in the figure. Figure 7 In the dialog interface shown, the group name 701 in the dialog interface remains unchanged, still "XXX", and a prompt message 702 may be displayed in the content display area: You have modified the group avatar. For another example, if the user enters the group name "AAAAA" and checks the avatar generation control 502, the electronic device may jump back to the interface as shown in FIG. Figure 8In the dialogue interface shown, the group name 801 has been changed to "AAAAA", and a prompt message 802 may be displayed in the content display area: you have changed the group name to "AAAAA" and you have changed the group avatar.
[0156] In some embodiments, the electronic device may also generate the avatar according to the style information when generating it. For example, the style information may include the background color of the avatar, or may include at least one of the font of the text, whether it is bold, the font size, the text layout, etc. The disclosed embodiment does not limit what the style information specifically includes. Specifically, in this step S35, the electronic device may obtain the style information in the current avatar generation setting information, and generate the avatar of the target group according to the style information. Alternatively, the electronic device may randomly select a candidate style information from the candidate style information, and generate the avatar of the target group according to the candidate style information.
[0157] If the above group information is other information, the electronic device can generate different avatars. For example, in response to the group information being the type information of the target group, assuming that the type information of the target group is a work project group, the electronic device can generate an avatar for it containing information such as product projects. Assuming that the type information of the target group is an entertainment and leisure group, the electronic device can generate an avatar for it containing words such as entertainment and leisure. For another example, in response to the group information being the attribute information of the members in the target group, such as the attribute information being age, the ages of the members in the target group are all between 18 and 25 years old, that is, they are all young people, and therefore, the electronic device can generate an avatar containing words such as youth and young. For another example, if the attribute information is a position or a department to which a member belongs, assuming that the members in the target group all belong to the product design department, the electronic device can generate an avatar containing words such as product design.
[0158] In other embodiments, in step S35, the client can also obtain at least one candidate text corresponding to the group information based on the group information, and then display the at least one candidate text in the text candidate area of the avatar setting interface, and then based on the selection instruction of any candidate text, execute the above-mentioned avatar generation step based on the selected candidate text. For details, please refer to the following steps S38 to S40, which will not be explained in detail here.
[0159] Through the above-mentioned steps S31 and S35, a shortcut for setting the group name and avatar of the target group can be provided when the target group is established. After the target group is generated, the user can quickly jump to the group name setting interface through the modification control of the group name displayed in the dialogue interface, and can generate an avatar while setting the group name. The group name and avatar of the target group can be modified quickly and efficiently through a few simple operations. Therefore, the avatar generation efficiency is high and the generation effect is good.
[0160] In step S36, the electronic device displays a setting interface of the target group in response to the touch operation on the group setting control, and the setting interface displays an avatar generation control.
[0161] In addition to being able to set the group name and avatar of the target group when the target group is established, the electronic device also provides an avatar generation method to support generating an avatar of the target group at any time. In the avatar generation method, a group setting control is provided, and by touching the group setting control, a group setting function can be triggered. Among them, avatar generation is a group setting function.
[0162] If the user wants to set some information of the group, such as the group name or avatar, etc., the user can touch the group setting control. In response to the touch operation on the group setting control, the electronic device can display the setting interface of the target group, and the setting interface of the target group can display an avatar generation control, which is used to trigger the generation of the avatar. Of course, other controls can also be displayed in the setting interface of the target group, such as group name settings, notification settings, or member name display settings, etc., which are not limited in the embodiments of the present disclosure.
[0163] In some embodiments, the group setting control may be displayed in the dialog interface of the target group, or may be displayed in the setting interface of the target application, which is not limited in the embodiments of the present disclosure.
[0164] In step S37, the electronic device obtains the group information of the target group in response to the touch operation on the avatar generation control.
[0165] If the user wants to set, modify or change the avatar of the target group, the user can perform a touch operation on the avatar generation control, and the electronic device can obtain the group information required to generate the avatar in response to the touch operation on the avatar generation control.
[0166] Steps S36 and S37 are processes for obtaining group information of the target group in response to an instruction to generate an avatar for the target group. In this process, the instruction to generate an avatar is triggered by a touch operation on an avatar generation control. The group information has been described in step S34. In the disclosed embodiment, the electronic device can determine at least one candidate text for recommendation based on the group information. The recommended candidate text is determined based on the group information and naturally conforms to the properties of the target group. In this way, an avatar conforming to the properties of the target group can be generated based on the candidate text.
[0167] In step S38, the electronic device obtains at least one candidate text corresponding to the group information according to the group information of the target group.
[0168] After the electronic device obtains the group message of the target group, it can obtain at least one candidate text based on the group information, and the candidate text is used as the text content displayed in the avatar.
[0169] In some embodiments, the at least one candidate text can be screened from a candidate text library based on the group information. Specifically, the electronic device can match the group information of the target group with the candidate text in the candidate text library to obtain at least one candidate text corresponding to the group information. By matching the group information with the candidate text in the candidate text library, the candidate text that matches the group information can be determined, and the candidate text determined in this way can better highlight the nature of the target group, so that the user is more likely to select such a candidate text, that is, the probability of the candidate text being selected or applied is higher, and then the user can directly select the candidate text without manually entering the text to generate the avatar. Therefore, the candidate text obtained in this way is more accurate, can more effectively reduce user operations, and improve the efficiency of avatar generation.
[0170] In some embodiments, when the group information is different, the process of the electronic device acquiring at least one candidate text may also be different. Several possible situations are provided below, and the electronic device may adopt any one of the following situations or a combination of any multiple situations to acquire at least one candidate text.
[0171] Case 1: In response to the group information being the group name of the target group, the electronic device performs semantic analysis on the group name of the target group to determine a degree of match between the group name of the target group and candidate texts in the candidate text library; based on the degree of match, obtains at least one candidate text corresponding to the group name of the target group from the candidate text library.
[0172] In this case one, the electronic device can obtain recommended candidate texts based on the group name. When obtaining the candidate texts, the group name can be semantically analyzed to determine the candidate texts that are semantically identical or similar to the group name. When determining the candidate texts based on the semantic analysis, the group name and the candidate texts can be matched based on the results of the semantic analysis, and the degree of matching can be used as a criterion to determine which candidate texts are more consistent with the group name. For example, if the group name is "XX Product Design Research Discussion Group", the electronic device performs a semantic analysis on the group name and can determine that the target group is used to discuss the product design aspects of XX products. Therefore, the candidate texts "Product Design" or "Product Design Discussion" etc. can be determined from the candidate text library.
[0173] In some embodiments, the semantic analysis process may be: the electronic device performs semantic analysis on the group name of the target group to obtain semantic features of the group name; and matches the semantic features of the group name with semantic features of candidate texts in a candidate text library to obtain a degree of match between them.
[0174] Among them, the semantic features of the group name are used to characterize the semantics of the group name. In some embodiments, the process of acquiring the semantic features can be: the electronic device embeds the group name to obtain the word vector of each character, and then determines the semantic features of the character based on the word vector of each character and the word vectors of the characters before and after the character, and then uses the semantic features of all characters as the semantic features of the group name. A method for acquiring the semantic features of a group name is provided herein, and the process can also be implemented in other ways, for example, performing word segmentation on the group name, matching the word segmentation results with candidate phrases, and using the matched candidate phrases as the semantic features of the group name. The embodiments of the present disclosure are not limited to this.
[0175] In some embodiments, when obtaining at least one candidate text based on the matching degree, at least one candidate text with a matching degree greater than a matching degree threshold may be obtained, or a target number of candidate texts with the maximum matching degree may be obtained, which is not limited in the embodiments of the present disclosure.
[0176] Case 2: In response to the group information being type information of the target group, the electronic device obtains at least one candidate text corresponding to the type information from the candidate text library as at least one candidate text corresponding to the group information.
[0177] In the second case, the electronic device can obtain the recommended candidate text according to the type information of the target group. In this way, the recommended candidate text can more intuitively and vividly represent the type of the target group. For example, if the type information of the target group is the work project type, when the electronic device matches it with the candidate text in the candidate text library, the matching degree of candidate texts such as "project discussion" and "product project" may be relatively high.
[0178] Case 3: In response to the group information being attribute information of a member in the target group, the electronic device obtains at least one candidate text corresponding to the attribute information from the candidate text library as at least one candidate text corresponding to the group information.
[0179] In this case three, the electronic device can obtain recommended candidate texts based on the attribute information of the members in the target group. Such recommended candidate texts can more intuitively and vividly characterize the characteristics of the members of the target group. For example, the attribute information is age, and the ages of the members in the target group are all between 18 and 25 years old, that is, they are all young people. Therefore, when the electronic device matches the candidate texts in the candidate text library, the matching degree of "youth circle", "youth club", etc. may be relatively high. For another example, the attribute information is the department to which they belong, and most of the members in the target group belong to the product design department. When the electronic device matches the candidate texts in the candidate text library, the matching degree of "product design", "product design discussion", etc. may be relatively high.
[0180] In step S39, the electronic device displays the at least one candidate text in the text candidate area of the avatar setting interface.
[0181] After the electronic device obtains at least one candidate text, it can recommend it to the user for selection. The recommended candidate text can be displayed in the text candidate area, and the displayed candidate text supports the user's selection operation. In this way, the user can see the candidate text automatically recommended by the electronic device in the avatar setting interface. If the user wants to generate an image based on a candidate text, the candidate text can be selected.
[0182] In some embodiments, the number of at least one candidate text determined by the electronic device is one or more. If the number is more than one, the electronic device can also determine the display order of the multiple candidate texts, and display them in a certain display order. Specifically, the electronic device can determine the display order of the at least one candidate text based on the matching degree between the group information and the at least one candidate text, and then display the at least one candidate text in the text candidate area of the avatar setting interface according to the display order. For example, the ones with high matching degrees are displayed in front, and the ones with low matching degrees are displayed in the back. In this way, according to such a display order, the user can quickly see the more suitable candidate text, and then select it to generate an avatar, which can improve the display efficiency of the candidate text, further improve the probability of the candidate text being selected, and improve the efficiency of avatar generation.
[0183] In step S40, in response to an instruction to select any candidate text, the electronic device generates an avatar of the target group according to the selected candidate text, wherein the avatar includes the selected candidate text.
[0184] The user can select any candidate text recommended by the electronic device to trigger a selection instruction. When the electronic device receives the selection instruction, it can generate an avatar based on the selected candidate text. The avatar is a text avatar, and the candidate text selected by the user will be used as the text content in the avatar.
[0185] In some embodiments, when generating an avatar, the text content and the position of the text content in the avatar can be determined based on the selected candidate text, and then the avatar is generated. Specifically, the electronic device determines the text content and position in the avatar of the target group based on the selected candidate text, and then generates the avatar of the target group based on the text content and position. For example, if the candidate text selected by the user is "product design", the electronic device can determine that the text content in the avatar is "product design" and determine the position of each word in the text content. For example, these four words are respectively located at the upper left, lower left, upper right, and lower right positions in the avatar, and then the electronic device generates an image containing the text content and the text content conforms to the above positions as the avatar.
[0186] In some embodiments, the avatar can also be generated in a certain style. Specifically, the electronic device can display at least one candidate style information in the avatar setting interface. The at least one candidate style information is used to provide the user with selection, and the user can select according to his own needs or preferences. In this step S40, the electronic device can also respond to the selection operation of any candidate style information, based on the text content and position, and according to the selected candidate style information, generate the avatar of the target group. Among them, the candidate style information can be at least one of the background color of the avatar, the font of the text content, and the font size. The user can adjust the display style of the text content in the avatar more carefully by selecting the candidate style information, generate an avatar that better meets the user's needs, and generate a better effect. For example, if the candidate style information is the background color and the user selects orange, the electronic device can generate an avatar with a background color of orange and a text content of the candidate text.
[0187] In some embodiments, the avatar setting interface may also include a text input box, in which the user may input the required text as the text content in the avatar. The electronic device may respond to the text input operation, obtain the text input in the text input box, and generate the avatar of the target group based on the text.
[0188] In some embodiments, other avatar generation controls may be displayed in the avatar setting interface, providing other ways to generate avatars. For example, a shooting control may be displayed in the avatar setting interface, and the electronic device may shoot an image in response to a touch operation on the shooting control, and use the captured image as the avatar of the target group. For another example, an image library control may be displayed in the avatar setting interface, and the electronic device may jump to the image library in response to a touch operation on the image library control. The user may select any image in the image library, and the electronic device may use the selected image as the avatar of the target group. For another example, an avatar library control may be displayed in the avatar setting interface, and the electronic device may jump to the avatar library in response to a touch operation on the avatar library control, and the user may select any avatar in the avatar library, and the electronic device may use the selected avatar as the avatar of the target group. The avatar library may be pre-set by relevant technical personnel.
[0189] In a specific example, the electronic device may be Figure 4 The dialog interface shown in FIG. 1 shows a group setting control 406. If the user clicks the group setting control 406, the electronic device can jump to the interface as shown in FIG. Fig. 9The target group setting interface shown in FIG. 1 may display relevant information of the group, such as a group avatar 901, an avatar generation control 902, group member information 903, a group name setting control 904, and other group setting controls 905. If the user clicks the avatar generation control 902 in the setting interface, the electronic device may jump to the interface as shown in FIG. Fig.10 The avatar setting interface shown in the figure may display a text input box 1001, a text candidate area 1002, candidate style information 1003, a shooting control 1004, an image library control 1005 and an avatar library control 1006. In the text candidate area 1002, at least one candidate text acquired by the electronic device may be displayed. The user may select any candidate text, or may select one from the candidate style information 1003 to generate a preview avatar, which may be displayed in the avatar preview area 1007 in the avatar setting interface. If the preview image meets expectations, the user may click the save control, and the electronic device may use the preview avatar as the avatar of the target group. Alternatively, the user may also enter text in the text input box 1001 to generate an avatar. Alternatively, as Fig.11 As shown, if the user clicks on the avatar library control 1006, the electronic device can display the candidate avatars in the avatar library in the form of a pop-up window, and if the user selects one, the electronic device can set it as the avatar of the target group.
[0190] The disclosed embodiment provides a flexible group avatar generation method, in which new reference factors are added, and avatars that are more vivid and can better reflect the nature of the group can be generated. In this generation method, the name, type information or attribute information of the group is specifically used as a factor for reference in avatar generation. Based on these factors, candidate texts that match them are obtained and recommended to users. The candidate texts selected in this way are used as display elements in the avatar. The generated avatar can clearly and intuitively know the above-mentioned properties of the group, and the generation effect is better.
[0191] Furthermore, the group avatars generated by the above method meet the user's expectations, which can avoid the user's dissatisfaction and repeated adjustment or generation of group avatars, thereby reducing the number of times group avatars are generated, improving the efficiency of group avatar generation, and also reducing the power consumption of electronic devices to a certain extent.
[0192] Fig.12 FIG. 1 is a block diagram of a device for generating a group portrait according to an exemplary embodiment. Fig.12 , the device comprises:
[0193] The acquisition unit 1201 is configured to execute, in response to the avatar generation instruction for the target group, acquire group information of the target group, the group information including at least one of the group name of the target group, type information of the target group, or attribute information of members in the target group;
[0194] The acquisition unit 1201 is further configured to acquire at least one candidate text corresponding to the group information according to the group information of the target group;
[0195] The display unit 1202 is configured to display the at least one candidate text in the text candidate area of the avatar setting interface;
[0196] The generating unit 1203 is configured to execute, in response to an instruction to select any candidate text, generate an avatar of the target group according to the selected candidate text, wherein the avatar includes the selected candidate text.
[0197] In some embodiments, the acquisition unit 1201 is configured to match the group information of the target group with candidate texts in a candidate text library to obtain at least one candidate text corresponding to the group information.
[0198] In some embodiments, the acquisition unit 1201 is configured to perform any of the following:
[0199] In response to the group information being the group name of the target group, performing semantic analysis on the group name of the target group to determine a matching degree between the group name of the target group and candidate texts in the candidate text library; based on the matching degree, obtaining at least one candidate text corresponding to the group name of the target group from the candidate text library;
[0200] In response to the group information being type information of the target group, acquiring at least one candidate text corresponding to the type information from the candidate text library as at least one candidate text corresponding to the group information;
[0201] In response to the group information being attribute information of a member in the target group, at least one candidate text corresponding to the attribute information is acquired from the candidate text library as at least one candidate text corresponding to the group information.
[0202] In some embodiments, the display unit 1202 is configured to perform:
[0203] Determining a display order of the at least one candidate text according to a matching degree between the group information and the at least one candidate text;
[0204] In the text candidate area of the avatar setting interface, the at least one candidate text is displayed in the display order.
[0205] In some embodiments, the generating unit 1203 is configured to perform:
[0206] Determine the text content and position in the avatar of the target group according to the selected candidate text;
[0207] Based on the text content and location, an avatar of the target group is generated.
[0208] In some embodiments, the display unit 1202 is further configured to display at least one candidate style information in the avatar setting interface;
[0209] The generating unit 1203 is configured to generate an avatar of the target group in response to a selection operation on any candidate style information, based on the text content and position and in accordance with the selected candidate style information.
[0210] In some embodiments, the apparatus further comprises:
[0211] an establishing unit, configured to execute, in response to an establishing instruction of the target group, establishing the target group;
[0212] The display unit 1202 is also configured to execute a modification control for displaying a group name in the dialog interface of the target group;
[0213] The display unit 1202 is further configured to execute a touch operation in response to a modification control of the group name, and display a group name setting interface, wherein the group name setting interface displays an avatar generation control;
[0214] The acquisition unit 1201 is further configured to execute a touch operation on the avatar generation control to acquire group information of the target group;
[0215] The generating unit 1203 is further configured to generate an avatar of the target group according to the group information.
[0216] In some embodiments, the acquisition unit 1201 is configured to perform:
[0217] In response to a touch operation on a group setting control, displaying a setting interface of the target group, the setting interface displaying an avatar generation control;
[0218] In response to a touch operation on the avatar generation control, group information of the target group is obtained.
[0219] In some embodiments, the attribute information includes at least one of organizational information, position, and age.
[0220] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0221] Fig.13 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. The electronic device 1300 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1301 and one or more memories 1302, wherein the memory 1302 stores at least one computer program, and the at least one computer program is loaded and executed by the processor 1301 to implement the group avatar generation method provided by the above-mentioned various method embodiments. The electronic device may also include other components for implementing device functions, for example, the electronic device may also have components such as a wired or wireless network interface and an input and output interface for input and output. The embodiments of the present disclosure are not described in detail here.
[0222] The electronic device in the above method embodiment can be implemented as a terminal. For example, Fig.14 1400 is a block diagram of a terminal provided by an embodiment of the present disclosure. The terminal 1400 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer or a desktop computer. The terminal 1400 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0223] Typically, the terminal 1400 includes a processor 1401 and a memory 1402 .
[0224] The processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1401 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1401 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0225] The memory 1402 may include one or more computer-readable storage media, which may be non-transitory. The memory 1402 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is used to store at least one instruction, which is used to be executed by the processor 1401 to implement the group avatar generation method provided in the method embodiment of the present disclosure.
[0226] In some embodiments, the terminal 1400 may also optionally include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402 and the peripheral device interface 1403 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1403 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1404, a display screen 1405, a camera assembly 1406, an audio circuit 1407, a positioning assembly 1408 and a power supply 1409.
[0227] The peripheral device interface 1403 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, the memory 1402, and the peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral device interface 1403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0228] The radio frequency circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1404 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1404 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1404 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1404 may also include circuits related to NFC (Near Field Communication), which is not limited in the embodiments of the present disclosure.
[0229] The display screen 1405 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to collect touch signals on the surface or above the surface of the display screen 1405. The touch signal can be input to the processor 1401 as a control signal for processing. At this time, the display screen 1405 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1405 can be one, set on the front panel of the terminal 1400; in other embodiments, the display screen 1405 can be at least two, respectively set on different surfaces of the terminal 1400 or in a folding design; in other embodiments, the display screen 1405 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 1400. Even, the display screen 1405 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1405 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0230] The camera assembly 1406 is used to capture images or videos. Optionally, the camera assembly 1406 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1406 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0231] The audio circuit 1407 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1401 for processing, or input them into the radio frequency circuit 1404 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1400. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1401 or the radio frequency circuit 1404 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1407 may also include a headphone jack.
[0232] The positioning component 1408 is used to locate the current geographical location of the terminal 1400 to implement navigation or LBS (Location Based Service). The positioning component 1408 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system or Russia's Galileo system.
[0233] The power supply 1409 is used to power various components in the terminal 1400. The power supply 1409 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1409 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0234] In some embodiments, the terminal 1400 further includes one or more sensors 1410 , including but not limited to: an acceleration sensor 1411 , a gyroscope sensor 1412 , a pressure sensor 1413 , a fingerprint sensor 1414 , an optical sensor 1415 , and a proximity sensor 1416 .
[0235] The acceleration sensor 1411 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1400. For example, the acceleration sensor 1411 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1401 can control the display screen 1405 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1411. The acceleration sensor 1411 can also be used for collecting game or user motion data.
[0236] The gyro sensor 1412 can detect the body direction and rotation angle of the terminal 1400, and the gyro sensor 1412 can cooperate with the acceleration sensor 1411 to collect the user's 3D actions on the terminal 1400. The processor 1401 can implement the following functions based on the data collected by the gyro sensor 1412: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0237] The pressure sensor 1413 may be provided at the side frame of the terminal 1400 and / or the lower layer of the display screen 1405. When the pressure sensor 1413 is provided at the side frame of the terminal 1400, it may detect the user's holding signal of the terminal 1400, and the processor 1401 may perform left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1413. When the pressure sensor 1413 is provided at the lower layer of the display screen 1405, the processor 1401 may control the operability control on the UI interface according to the user's pressure operation on the display screen 1405. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0238] The fingerprint sensor 1414 is used to collect the user's fingerprint, and the processor 1401 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1414, or the fingerprint sensor 1414 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1401 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1414 can be set on the front, back, or side of the terminal 1400. When a physical button or a manufacturer logo is set on the terminal 1400, the fingerprint sensor 1414 can be integrated with the physical button or the manufacturer logo.
[0239] The optical sensor 1415 is used to collect the ambient light intensity. In one embodiment, the processor 1401 can control the display brightness of the display screen 1405 according to the ambient light intensity collected by the optical sensor 1415. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1405 is increased; when the ambient light intensity is low, the display brightness of the display screen 1405 is reduced. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera component 1406 according to the ambient light intensity collected by the optical sensor 1415.
[0240] The proximity sensor 1416, also called a distance sensor, is usually disposed on the front panel of the terminal 1400. The proximity sensor 1416 is used to collect the distance between the user and the front of the terminal 1400. In one embodiment, when the proximity sensor 1416 detects that the distance between the user and the front of the terminal 1400 is gradually decreasing, the processor 1401 controls the display screen 1405 to switch from the screen-on state to the screen-off state; when the proximity sensor 1416 detects that the distance between the user and the front of the terminal 1400 is gradually increasing, the processor 1401 controls the display screen 1405 to switch from the screen-off state to the screen-on state.
[0241] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the terminal 1400, and the terminal 1400 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0242] The electronic device in the above method embodiment can be implemented as a server. For example, Fig.15 1 is a schematic diagram of the structure of a server provided by an embodiment of the present disclosure. The server 1500 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1501 and one or more memories 1502, wherein the memory 1502 stores at least one computer program, and the at least one computer program is loaded and executed by the processor 1501 to implement the group avatar generation method provided by the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be described in detail here.
[0243] In an exemplary embodiment, a storage medium including a program code is also provided, such as a memory including the program code, and the program code can be executed by a processor of an electronic device to complete the above-mentioned group avatar generation method. Optionally, the storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium can be a read-only memory (Read-Only Memory, referred to as: ROM), a random access memory (Random Access Memory, referred to as: RAM), a compact disc read-only memory (Compact Disc Read-Only Memory, referred to as: CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0244] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program includes one or more program codes, and the one or more program codes are stored in a computer-readable storage medium. One or more processors of an electronic device can read the one or more program codes from the computer-readable storage medium, and the one or more processors execute the one or more program codes, so that the electronic device can perform the above-mentioned group avatar generation method.
[0245] The user information involved in the present disclosure may be information authorized by the user or fully authorized by all parties.
[0246] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0247] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for generating a group avatar, characterized in that: The group avatar generation method comprises: In response to an instruction to generate an avatar for a target group, acquiring group information of the target group, the group information including a group name of the target group, type information of the target group, and attribute information of members in the target group; Perform semantic analysis on the group name of the target group to determine the degree of match between the group name of the target group and candidate texts in a candidate text library; based on the degree of match, obtain at least one candidate text corresponding to the group name of the target group from the candidate text library; obtain at least one candidate text corresponding to the type information from the candidate text library as at least one candidate text corresponding to the group information; obtain at least one candidate text corresponding to the attribute information from the candidate text library as at least one candidate text corresponding to the group information, wherein the at least one candidate text corresponding to the group information includes: candidate text having the same or similar semantics as the group name, candidate text representing the type information of the target group, and candidate text representing the characteristics of members in the target group; In the text candidate area of the avatar setting interface, displaying the at least one candidate text; In response to an instruction to select any candidate text, an avatar of the target group is generated according to the selected candidate text, wherein the avatar includes the selected candidate text.
2. The method for generating a group avatar according to claim 1, characterized in that: The displaying of the at least one candidate text in the text candidate area of the avatar setting interface includes: Determining a display order of the at least one candidate text according to a matching degree between the group information and the at least one candidate text; In the text candidate area of the avatar setting interface, the at least one candidate text is displayed in the display order.
3. The method for generating a group avatar according to claim 1, characterized in that: Generating the avatar of the target group according to the selected candidate text includes: Determining the text content and position in the avatar of the target group according to the selected candidate text; Based on the text content and the position, an avatar of the target group is generated.
4. The method for generating a group avatar according to claim 1, characterized in that: The group avatar generation method further includes: In the avatar setting interface, displaying at least one candidate style information; The step of generating an avatar of the target group based on the text content and the position includes: In response to a selection operation on any candidate style information, an avatar of the target group is generated based on the text content and position and in accordance with the selected candidate style information.
5. The method for generating a group avatar according to claim 1, characterized in that: The group avatar generation method further includes: In response to the instruction to create the target group, create the target group; Displaying a modification control for the group name in the dialog interface of the target group; In response to a touch operation on the modification control of the group name, displaying a group name setting interface, wherein the group name setting interface displays an avatar generation control; In response to a touch operation on the avatar generation control, acquiring group information of the target group; Generate an avatar of the target group according to the group information.
6. The method for generating a group avatar according to claim 1, characterized in that: The step of obtaining group information of the target group in response to the instruction to generate an avatar for the target group includes: In response to a touch operation on a group setting control, displaying a setting interface of the target group, wherein the setting interface displays an avatar generation control; In response to a touch operation on the avatar generation control, group information of the target group is acquired.
7. The method for generating a group avatar according to any one of claims 1 to 6, characterized in that: The attribute information includes at least one of organizational information, position, and age.
8. A group portrait generating device, characterized in that: The group portrait generating device comprises: an acquisition unit, configured to execute, in response to an instruction to generate an avatar for a target group, acquire group information of the target group, the group information including a group name of the target group, type information of the target group, and attribute information of members in the target group; The acquisition unit is further configured to perform semantic analysis on the group name of the target group, determine the degree of match between the group name of the target group and the candidate texts in the candidate text library; based on the degree of match, acquire at least one candidate text corresponding to the group name of the target group from the candidate text library; acquire at least one candidate text corresponding to the type information from the candidate text library as at least one candidate text corresponding to the group information; acquire at least one candidate text corresponding to the attribute information from the candidate text library as at least one candidate text corresponding to the group information, wherein the at least one candidate text corresponding to the group information includes: candidate text having the same or similar semantics as the group name, candidate text representing the type information of the target group, and candidate text representing the characteristics of members in the target group; A display unit is configured to display the at least one candidate text in a text candidate area of the avatar setting interface; The generating unit is configured to execute, in response to a selection instruction for any candidate text, generate an avatar of the target group according to the selected candidate text, wherein the avatar includes the selected candidate text.
9. The group portrait generating device according to claim 8, characterized in that: The display unit is configured to perform: Determining a display order of the at least one candidate text according to a matching degree between the group information and the at least one candidate text; In the text candidate area of the avatar setting interface, the at least one candidate text is displayed in the display order.
10. The group portrait generating device according to claim 8, characterized in that: The generation unit is configured to perform: Determining the text content and position in the avatar of the target group according to the selected candidate text; Based on the text content and the position, an avatar of the target group is generated.
11. The group portrait generating device according to claim 8, characterized in that: The display unit is further configured to display at least one candidate style information in the avatar setting interface; The generating unit is configured to generate, in response to a selection operation on any candidate style information, an avatar of the target group based on the text content and position and in accordance with the selected candidate style information.
12. The group portrait generating device according to claim 8, characterized in that: The group portrait generating device further comprises: an establishing unit, configured to execute, in response to an establishing instruction of the target group, establishing the target group; The display unit is further configured to execute a modification control for displaying a group name in the dialog interface of the target group; The display unit is further configured to execute a touch operation on the modification control of the group name, and display a group name setting interface, wherein the group name setting interface displays an avatar generation control; The acquisition unit is further configured to execute, in response to a touch operation on the avatar generation control, acquisition of group information of the target group; The generating unit is further configured to generate an avatar of the target group according to the group information.
13. The group portrait generating device according to claim 8, characterized in that: The acquisition unit is configured to perform: In response to a touch operation on a group setting control, displaying a setting interface of the target group, wherein the setting interface displays an avatar generation control; In response to a touch operation on the avatar generation control, group information of the target group is acquired.
14. The group portrait generating device according to any one of claims 8 to 13, characterized in that: The attribute information includes at least one of organizational information, position, and age.
15. An electronic device, characterized in that: include: one or more processors; one or more memories for storing the one or more processor executable program codes; The one or more processors are configured to execute the program code to implement the group avatar generation method as described in any one of claims 1 to 7.
16. A computer-readable storage medium, characterized in that: When the program code in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the group avatar generation method as described in any one of claims 1 to 7.
17. A computer program product, characterized in that The method comprises at least one computer program, which, when executed by a processor, implements the group avatar generation method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for analyzing semanteme of spoken language text information
CN105786793A
Group relationship type identification method and apparatus
CN108280458A
Group head portrait generation method and device
CN110634168A
Text matching method and device, electronic equipment and storage medium
CN112182166A
