Group head portrait generation method, system, device and medium
By obtaining and utilizing default and personalized configuration information, combined with group member interaction times and activity information, the position and frame of the group avatar are dynamically adjusted, which solves the problem of the lack of personalization and interest of group avatars in the existing technology, and achieves a better match User habits and the effect of improving user experience.
Patent Information
- Application Number
- CN202410712806.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing technology, group avatars lack personalized customization, lack of interest and pertinence, and cannot better match the user's usage habits.
By obtaining the default configuration information and personalized configuration information, confirm the placement and size specifications of the person's avatar in the group avatar, and dynamically adjust the avatar position and frame type based on the number of group member interactions and activity information to generate a more personalized and interesting group avatar.
The generated group avatar can better match the user's usage habits, improve interest and pertinence, and provide a personalized and dynamic user experience.
Smart Images

Figure CN118691698A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a group avatar generation method, system, device and medium. Background Art
[0002] With the development of communication technology, smart terminals have become an indispensable communication tool in people's daily lives. When multiple people need to chat using smart terminal software, they usually communicate in the form of a group, which is convenient for multiple people to communicate at the same time. When a group is generated, a group avatar is automatically generated.
[0003] In the prior art, group avatars are usually generated based on the avatars of the people when the group is created. Specifically, the avatars of the people who create the group are collected and arranged in a certain order, and the group avatars are generated according to the system's default number of people and arrangement. Although generating according to the avatars of the people will make the final avatars of each group different, it can be convenient for users to distinguish to a certain extent, but this type of group avatar lacks personalized customization for users, lacks fun and pertinence, and the above problems need to be solved. Summary of the invention
[0004] In order to make the generated group avatars more compatible with the user's usage habits and improve the interest and pertinence of the generated group avatars, the present application provides a group avatar generation method, system, device and medium, which adopt the following technical solutions:
[0005] In a first aspect, the present application provides a group avatar generation method, comprising:
[0006] Obtaining default configuration information and personalized configuration information, and determining the placement position of person portraits in the group portrait based on the default configuration information and personalized configuration information;
[0007] Acquire group member portraits and user portraits, generate information according to placement positions, place group member portraits and user portraits, and obtain group portrait images.
[0008] Preferably, it also includes:
[0009] The set size specifications of the group avatar are confirmed according to the default configuration information and the personalized configuration information, and the size and shape of the group avatar image are adjusted according to the set size specifications.
[0010] Preferably, the specific steps of generating information of the placement position of the person portraits in the group portrait according to the default configuration information and the personalized configuration information are:
[0011] The same items of the default configuration information are replaced according to the personalized configuration information, the placement shape of the person's avatars in the group avatar is confirmed according to the default configuration information that replaces the same items, and the placement position generation information is confirmed based on the placement shape.
[0012] Preferably, it also includes:
[0013] The information on the number of interactions among group members is obtained, and the information on the number of interactions among group members is sorted in descending order to obtain the top several group members with the highest information on the number of interactions among group members as the group member avatars for generating the group avatar image.
[0014] Preferably, it also includes:
[0015] The group activity information is obtained, the group activity information is divided into several levels, background color information is set corresponding to the levels of the group activity information, and the background color of the group avatar image is changed according to the background color information.
[0016] Preferably, it also includes:
[0017] According to the group activity information, the positions of the group member avatars and user avatars in the group avatar image are adjusted in real time.
[0018] Preferably, it also includes:
[0019] The border type is set corresponding to the level of the group activity information, and the border of the group avatar image is replaced according to the border type.
[0020] In a second aspect, the present application provides a group avatar generation system, comprising:
[0021] A position generation module is used to obtain default configuration information and personalized configuration information, and to determine the placement position generation information of the person's avatar in the group avatar according to the default configuration information and the personalized configuration information;
[0022] The avatar generation module is used to obtain group member avatars and user avatars, generate information according to the placement position, and place the group member avatars and user avatars to obtain a group avatar image.
[0023] In a third aspect, the present application provides a group portrait generation device, including a memory and a processor, the memory storing a computer program, and the processor being configured to run the computer program to execute the group portrait generation method as described above.
[0024] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the group avatar generation method as described above when running.
[0025] In summary, compared with the prior art, the technical solution provided by this application has at least the following beneficial effects:
[0026] The present application generates appropriate placement position generation information through the set default configuration information and the later set personalized configuration information, then obtains group member avatars and user avatars, and places the user avatar and several group member avatars at appropriate positions of the placement position generation information to obtain group avatar images. The generated group avatars can better match the user's usage habits and enhance the interest and pertinence of the generated group avatars. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flowchart of a method for generating a group portrait described in an embodiment of the present application.
[0028] Figure 2 It is a module diagram of a group portrait generation system described in an embodiment of the present application.
[0029] Description of reference numerals:
[0030] 1. Position generation module; 2. Avatar generation module. DETAILED DESCRIPTION
[0031] The following combination Figure 1-Figure 2 The present application is described in further detail. The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to be limiting.
[0032] Reference Figure 1 , a group avatar generation method involved in this application specifically includes:
[0033] Step S1: Obtaining default configuration information and personalized configuration information, and determining placement position generation information of person portraits in a group portrait according to the default configuration information and the personalized configuration information;
[0034] Step S2: Acquire group member portraits and user portraits, generate information based on placement positions, place group member portraits and user portraits, and obtain a group portrait image.
[0035] Specifically, the embodiment of the present application generates appropriate placement position generation information through the set default configuration information and the later set personalized configuration information. The default configuration information is the system default pre-set group avatar generation restriction conditions that meet the needs of the public. The setting items include whether to arrange by default, the size specifications of the avatar, the arrangement layout of the group member avatars in the avatar, the number of people allowed to be placed in the group avatar, etc., and then obtain a certain number of group member avatars and user avatars according to the restriction conditions. The group member avatars are obtained according to the member avatar address URL or the resource library used to generate the group avatars. The user avatar and several group member avatars are placed in the appropriate positions of the placement position generation information to obtain the group avatar image. The generated group avatar can better match the user's usage habits and improve the fun and pertinence of the generated group avatar.
[0036] As one implementation method, the specific steps of generating information for determining the placement position of person portraits in a group portrait according to the default configuration information and the personalized configuration information are as follows:
[0037] The same items of the default configuration information are replaced according to the personalized configuration information, the placement shape of the person's avatars in the group avatar is confirmed according to the default configuration information that replaces the same items, and the placement position generation information is confirmed based on the placement shape.
[0038] Specifically, the personalized configuration information includes some adjustable setting items of the default configuration information. When the setting contents of the same items of the personalized configuration information and the default configuration information are different, the contents of the default configuration information are changed according to the personalized configuration information. That is, the placement position generation information and the generation of the group avatar image are based on the default configuration information. Each user's device has an initial default configuration information. The personalized configuration information is the restriction conditions input by the user according to the needs, which is used to replace the same items in the default configuration information, thereby updating the generation information of the group avatar.
[0039] As one implementation manner, the set size specification of the group avatar is confirmed according to the default configuration information and the personalized configuration information, and the size and shape of the group avatar image are adjusted according to the set size specification.
[0040] Specifically, the default configuration information includes common settings for the system or group, such as the default avatar size and shape. Personalized configuration information may involve some parameters customized by the user or group, such as the maximum allowed avatar size, whether special shapes are allowed, etc. Determine the set size specifications for the group avatar by comprehensively considering the default configuration and personalized configuration. It can be a specific value of the width, height or aspect ratio. For example, it can be set to a square, circle or other custom shape. Adjust the group avatar image according to the determined set size specifications. It may involve scaling, cropping or filling operations on the image to make it meet the predetermined size specifications. If a specific shape is specified, such as a circle, the original image needs to be cropped to the corresponding shape, or the background needs to be filled outside the image to adapt to the specified shape.
[0041] As one implementation method, information on the number of interactions among group members is obtained, the information on the number of interactions among group members is sorted in descending order, and the top several group members with the highest information on the number of interactions among group members are obtained as avatars of group members for generating group avatar images.
[0042] Specifically, in order to enable users to intuitively recognize the group when seeing the group avatar when using the software, the information on the number of interactions among group members is obtained, and the group members with the closest relationship to the user are confirmed through the information on the number of interactions among group members. The specific number to be obtained is determined according to the number specified in the default configuration information. After the placement position generation information is confirmed, several positions in the placement position generation information are sorted, and the avatars of these group members are obtained in order from high to low relevance and placed in the specified positions of the placement position generation information, so that users can identify the group avatars and pay attention to which group members they have been in close contact with recently.
[0043] The information on the number of interactions among group members is determined by the number of message interleavings, the number of similar words and sentences other than conventional words, the number of mutual citations, the length of interactive sentences, the fixed degree of message sending time, the number of interactive expressions used, the number of link sharing clicks, the number of joint activities, the number of voice or video calls in the same group, the response interval, and the number of common friends in the group, and the weight of the above reference information is set in the default configuration information. The more conventional the reference items, the lower the weight because the data is often large, such as the number of message interleavings, the number of similar words and sentences other than conventional words, the number of mutual citations, the length of interactive sentences, etc. The reference items that require specific operations to achieve have a larger weight, such as the number of joint activities, the number of voice or video calls in the same group, etc.
[0044] As one implementation method, group activity information is obtained, the group activity information is divided into several levels, background color information is set corresponding to the levels of the group activity information, and the background color of the group avatar image is changed according to the background color information.
[0045] Specifically, when building a group chat, an initial group avatar is initially generated. This avatar can be an image automatically generated based on information such as the group name and group members, or it can be a picture uploaded by the user. When the user's personal configuration information selects to adjust the background color based on activity, the group chat activity will be collected and the background color will be adjusted accordingly. The background color can also be a background picture. The background picture here can be a number of default pictures, a specific background gallery, or a specified picture uploaded by the user.
[0046] The system obtains group activity information periodically or as needed. This can be evaluated by analyzing the number of messages, interaction frequency, online time, and other data of group members. Based on the obtained group activity information, the system will classify the group activity into several levels. These levels can be divided according to specific needs, such as low, medium, and high, or more levels can be divided according to more data dimensions. For each activity level, the system will pre-set the corresponding background color information. These colors can be pre-defined or user-defined. Generally, groups with higher activity may correspond to brighter or more lively colors, while groups with lower activity may correspond to softer or more elegant colors. Once the background color information corresponding to each activity level is determined, the system will automatically select the corresponding background color information based on the current group activity level. The system will then apply this selected background color information to the background color in the group avatar image, thereby changing the background color of the group avatar. This process can be real-time or periodic, depending on the design and implementation of the system and the frequency of activity information update. Through this process, the background color of the group avatar will change dynamically according to the activity of the group, providing users with an intuitive way to perceive the activity level of the group, allowing users to obtain a personalized group avatar that is more in line with their usage habits and enhance the fun.
[0047] As one implementation method, the positions of group member avatars and user avatars in the group avatar image are adjusted in real time according to the group activity information.
[0048] Specifically, since the positions of the person avatars in the group avatars are arranged in order, the positions of the group person avatars and the user avatars in the group avatar image are adjusted in real time according to the group activity information. Use the obtained group activity information to determine how to adjust the position of the avatar. For example, a group with higher activity can make the member avatars more concentrated in the center of the image, while a group with lower activity can make the avatars scattered around the image. Or the user's own avatar is centered to facilitate the user to identify the group, and then the avatars of other group members are arranged in order of activity. Adjusting the position of the avatar in real time according to the activity information may include determining the relative offset or specific coordinate value of each member avatar and the user avatar. The strategy may be linear or nonlinear, depending on the restrictions set in the personality configuration information. In order to make the adjustment process smoother, animation effects can be added to make the transition of the avatar position adjustment natural and not abrupt, which is achieved by applying a gradient or easing function in the process of gradually changing the position of the avatar. Provide user customization options so that users can customize or turn off this real-time position adjustment function. Different users may have different preferences, so allowing them to customize their experience is a good design practice. Through the above steps, the positions of group member avatars and user avatars in the group avatar image can be adjusted in real time according to the group activity information, providing a more vivid and dynamic group experience. Users can intuitively see the ranking of active members in the group, so as to better understand the activity and member participation of the group chat. By adjusting the avatar position in real time, the group avatar image can be made more vivid and interesting, and the user participation and stickiness can be improved. Through the animation transition effect, the avatar position adjustment can be made smoother, improving the user experience. Providing user customization options allows users to adjust the avatar position according to their preferences, enhancing the user's personalized experience.
[0049] As one implementation method, a border type is set corresponding to the level of the group activity information, and the border of the group avatar image is replaced according to the border type.
[0050] Specifically, the level of group activity can be classified according to indicators such as message sending frequency and member online time. For example, it is divided into three levels: low, medium and high. Select the corresponding border type for each activity level. It can be a predefined set of borders, or allow users to customize borders. The default library can provide some common borders, and users can also upload customized border images by modifying the borders in the personal configuration information. Establish a mapping relationship to associate each activity level with the corresponding border type. For example, low activity corresponds to a simple border, medium activity corresponds to a medium-complexity border, and high activity corresponds to a more colorful or specially designed border. After the group avatar is generated, the corresponding border type is applied to the entire avatar according to the overall activity level of the group. This can be achieved through image processing technology, superimposing the border layer on the avatar. If a personalized border is required, consider applying a specific border to the avatar of a single user based on the activity of the individual user. This can be determined by indicators such as the user's speaking frequency and participation. Allow users to choose their favorite border type within a certain range, or upload their own designed border image. It can increase user participation and personalized experience. Through different border types, users can intuitively understand the overall activity level of the group, thereby promoting more interaction and participation. Personalized border selection and customization functions can stimulate users' interest and increase their activity in the group.
[0051] Reference Figure 2 , an embodiment of the present application provides a group avatar generation system, the system comprising:
[0052] Position generation module 1, used to obtain default configuration information and personalized configuration information, and to determine the placement position generation information of the person's avatar in the group avatar according to the default configuration information and the personalized configuration information;
[0053] The avatar generation module 2 is used to obtain group member avatars and user avatars, generate information according to the placement position, and place the group member avatars and user avatars to obtain a group avatar image.
[0054] An embodiment of the present application provides a group portrait generation device, including a memory and a processor, the memory storing a computer program, and the processor being configured to run the computer program to execute the group portrait generation method as described above.
[0055] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the group avatar generation method as described above when running.
[0056] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and product can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0057] In several embodiments provided in this application, it should be understood that the disclosed methods, systems, devices and program products may be implemented in other ways.
[0058] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0059] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for generating a group avatar, characterized in that: include: Obtaining default configuration information and personalized configuration information, and determining the placement position of person portraits in the group portrait based on the default configuration information and personalized configuration information; Acquire group member avatars and user avatars, and place the group member avatars and user avatars according to the placement position generation information to obtain a group avatar image.
2. The group avatar generation method according to claim 1, characterized in that: Also includes: The set size specifications of the group avatar are confirmed according to the default configuration information and the personalized configuration information, and the size and shape of the group avatar image are adjusted according to the set size specifications.
3. The group avatar generation method according to claim 1, characterized in that: The specific steps of generating information for determining the placement position of the person portraits in the group portrait according to the default configuration information and the personalized configuration information are as follows: The same items of the default configuration information are replaced according to the personalized configuration information, the placement shape of the person's avatars in the group avatar is confirmed according to the default configuration information that replaces the same items, and the placement position generation information is confirmed based on the placement shape.
4. The group avatar generation method according to claim 1, characterized in that: Also includes: The information on the number of interactions among group members is obtained, and the information on the number of interactions among group members is sorted in descending order to obtain the top several group members with the highest information on the number of interactions among group members as the group member avatars for generating the group avatar image.
5. The group avatar generation method according to claim 1, characterized in that: Also includes: The group activity information is obtained, the group activity information is divided into several levels, background color information is set corresponding to the levels of the group activity information, and the background color of the group avatar image is changed according to the background color information.
6. The group avatar generation method according to claim 5, characterized in that: Also includes: According to the group activity information, the positions of the group member avatars and user avatars in the group avatar image are adjusted in real time.
7. The method for generating a group portrait according to claim 5, characterized in that: Also includes: The border type is set corresponding to the level of the group activity information, and the border of the group avatar image is replaced according to the border type.
8. A group avatar generation system, characterized in that: include: A position generation module is used to obtain default configuration information and personalized configuration information, and to determine the placement position generation information of the person's avatar in the group avatar according to the default configuration information and the personalized configuration information; The avatar generation module is used to obtain group member avatars and user avatars, and place the group member avatars and user avatars according to the placement position generation information to obtain a group avatar image.
9. A group portrait generation device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the group avatar generation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the group avatar generation method according to any one of claims 1 to 7 when running.
