WO2020119540A1 - Group profile picture generation method and device - Google Patents
Group profile picture generation method and device Download PDFInfo
- Publication number
- WO2020119540A1 WO2020119540A1 PCT/CN2019/122924 CN2019122924W WO2020119540A1 WO 2020119540 A1 WO2020119540 A1 WO 2020119540A1 CN 2019122924 W CN2019122924 W CN 2019122924W WO 2020119540 A1 WO2020119540 A1 WO 2020119540A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- group
- avatar
- group chat
- chat
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/52—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
Definitions
- the embodiments of the present application relate to the field of computer technology, and in particular to a method and device for generating a group chat avatar.
- chat sessions With the rapid development of the mobile Internet, various applications are emerging. Among them, social applications account for a large part. Generally, users of social applications can establish chat sessions with one or more other users. Among them, a chat session established by a user of a social application and multiple other users may be referred to as a group chat session, or group chat for short.
- the existing group chat avatar generation method generally obtains the avatars of the first 9 users who enter the group, and generates a 9-square grid thumbnail as the group chat avatar. Among them, all the avatars in the group chat avatar occupy the same size display area.
- the embodiment of the present application proposes a method and a device for generating a group chat avatar.
- an embodiment of the present application provides a method for generating a group chat avatar.
- the method includes: obtaining an avatar set related to a group chat avatar of a target group chat, where the avatar set includes a group owner of the target group chat Avatar and the avatar of at least one group member in the target group chat; based on the avatar set, a group chat avatar of the target group chat is generated, where the group chat avatar includes the group owner's avatar and the at least one group member's avatar when presented , And the display area of the group owner's avatar in the group chat avatar is larger than the display area of the at least one group member's avatar.
- an embodiment of the present application provides a method for generating a group chat avatar, which is applied to a first device.
- the method includes: acquiring an avatar set related to a group chat avatar of a target group chat, where the avatar set includes The avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat; send the avatar set to the second device, so that the second device generates the group chat avatar of the target group chat based on the avatar set, where,
- the group chat avatar includes the group avatar and the at least one group member avatar when presented, and the display area of the group chat avatar of the group chat avatar is larger than the display area of the at least one group member avatar.
- an embodiment of the present application provides an apparatus for generating a group chat avatar.
- the apparatus includes: an acquiring unit configured to acquire an avatar set related to a group chat avatar of a target group chat, where the avatar set includes The avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat; the generating unit is configured to generate the group chat avatar of the target group chat based on the avatar set, wherein the group chat avatar includes the group when presented The avatar of the owner and the avatar of the at least one group member, and the display area of the avatar of the group owner in the group chat avatar is larger than the display area of the avatar of the at least one group member.
- an embodiment of the present application provides an apparatus for generating a group chat avatar, which is applied to a first device.
- the apparatus includes: an acquiring unit configured to acquire an avatar set related to a group chat avatar of a target group chat , Where the avatar set includes the avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat; the sending unit is configured to send the avatar set to the second device, so that the second device is based on the avatar set , Generate a group chat avatar of the target group chat, where the group chat avatar includes the group avatar and the avatar of the at least one group member when presented, and the display area of the group avatar of the group chat avatar is larger than the at least one The display area of the group member's avatar.
- an embodiment of the present application provides a computer device, the computer device includes: one or more processors; a storage device, on which one or more programs are stored; when the one or more programs are Or executed by multiple processors, so that the one or more processors implement the method described in any one of the implementation manners of the first aspect and the second aspect.
- an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, a method as described in any one of the implementation manners of the first aspect and the second aspect is implemented.
- the method and device for generating a group chat avatar provided by the above embodiments of the present application, by acquiring an avatar set related to the group chat avatar of the target group chat, where the avatar set includes the avatar of the group owner of the target group chat and the target group An avatar of at least one group member in the chat, so as to generate a group chat avatar of the target group chat based on the avatar set, wherein the group chat avatar includes the group owner's avatar and the at least one group member's avatar when presented, and the The display area of the group owner's avatar in the group chat avatar is larger than the display area of the at least one group member's avatar.
- the solution provided by the above embodiments of the present application realizes targeted information generation. Allowing the group owner's avatar to occupy a larger display area in the group chat avatar can make the group owner's avatar better displayed.
- FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application can be applied;
- FIG. 2 is a flowchart of an embodiment of a method for generating a group chat avatar according to the present application
- FIG. 3a is a schematic diagram of a group chat avatar including a group owner’s avatar and a group member’s avatar;
- FIG. 3b is a schematic diagram of a group chat avatar including the group avatar and two group members’ avatars;
- FIG. 3c is a schematic diagram of a group chat avatar including a group owner’s avatar and three group members’ avatars;
- FIG. 3d is a schematic diagram of a group chat avatar including a group owner’s avatar and four group members’ avatars;
- FIG. 3e is a schematic diagram of a group chat avatar including a group owner’s avatar and five group members’ avatars;
- FIG. 4 is a flowchart of another embodiment of a method for generating a group chat avatar according to the present application.
- FIG. 5 is a flowchart of still another embodiment of a method for generating a group chat avatar according to the present application
- FIG. 6 is a schematic structural diagram of a computer system suitable for implementing computer devices of some embodiments of the present application.
- FIG. 1 shows an exemplary system architecture 100 to which an embodiment of the method for generating a group chat avatar of the present application can be applied.
- the system architecture 100 may include devices 101, 102, 103, 105, and a network 104.
- the network 104 is a medium used to provide a communication link between the devices 101, 102, 103 and the device 105.
- the network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
- the devices 101, 102, 103, 105 may be hardware devices or software that support network connections to provide various network services.
- the device When the device is hardware, it may be various electronic devices, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, servers, and so on.
- a hardware device it can be implemented as a distributed device group composed of multiple devices or as a single device.
- the device When the device is software, it can be installed in the electronic devices listed above.
- software it may be implemented as, for example, multiple software or software modules for providing distributed services, or may be implemented as a single software or software module. There is no specific limit here.
- the device can provide corresponding network services by installing corresponding client applications or server applications.
- client application After the client application is installed on the device, it can be embodied as a client in network communication.
- server application after the server application is installed, it can be embodied as a server in network communication.
- the devices 101, 102, and 103 are embodied as clients, and the device 105 is embodied as a server.
- the devices 101, 102, and 103 may be clients installed with social applications.
- the device 105 may be a background server that supports the social application.
- the user can establish a group chat through the social application, and the device 101, 102, 103, and/or device 105 can perform a corresponding operation on the group chat avatar of the group chat.
- the method for generating a group chat avatar provided by some embodiments of the present application may be executed by the device 101, 102, 103, or may be executed by the device 105.
- FIG. 1 It should be understood that the number of devices and networks in FIG. 1 are only schematic. According to the implementation needs, there can be any number of devices and networks.
- a flow 200 of an embodiment of a method for generating a group chat avatar according to the present application is shown.
- the process 200 of the method for generating a group chat avatar includes the following steps:
- Step 201 Acquire an avatar set related to the group chat avatar of the target group chat.
- the execution subject of the method for generating a group chat avatar may be the first device (for example, the device 105 shown in FIG. 1), or may be the second device that is in communication with the first device (for example, FIG. 1 Shown devices 101, 102, 103).
- a social application supported by the first device may be installed on the second device.
- the target group chat may be a group chat created by a user to whom the second device belongs to through the social application request.
- the above-mentioned target group chat may include a group owner and a group member.
- the group owner can refer to a user who has the management authority of the group chat.
- the owner of the group chat is generally the user who requested to create the group chat.
- the group members in this embodiment are non-group owners;
- the social application in this embodiment refers to an application with a social function, and the social application may have functions other than social.
- the social The main functions of the application are non-social functions.
- the execution subject may obtain an avatar set related to the group chat avatar of the target group chat.
- the execution subject may determine that the avatar set includes the group avatar and all groups Member's avatar.
- the upper limit of the number of avatars may be 6 or 9, for example. It should be understood that the upper limit of the number of avatars can be set according to actual needs, and is not specifically limited here.
- the execution subject may select at least one of the group members of the target group chat Group members, and determine that the above-mentioned avatar set includes the group owner's avatar and at least one selected group member's avatar.
- the execution subject may randomly select at least one group member from the group members of the target group chat, for example.
- the number of at least one group member selected by the execution subject is not greater than the difference between the upper limit of the number of avatars and the preset natural number.
- the upper limit of the number of avatars is 6, and the difference between the upper limit of the number of avatars and the preset natural number 1 is 5. If the number of the group owner and the group members of the target group chat exceeds 6, the execution subject may select 5 group members from the group members of the target group chat.
- the preset natural number usually indicates the number of group owners.
- the first device may combine information from the second device to obtain an avatar set related to the group chat avatar of the target group chat ; If the above execution subject is a second device (such as the devices 101, 102, and 103 shown in FIG. 1), the second device may combine information from the first device to obtain an avatar set related to the group chat avatar of the target group chat .
- Step 202 Based on the avatar set, generate a group chat avatar of the target group chat.
- the execution subject may generate the group chat avatar of the target group chat based on the avatar set.
- the group chat avatar may include the group owner's avatar and the at least one group member's avatar when presented, and the display area of the group chat's avatar of the group chat avatar may be larger than the display of the at least one group member's avatar area.
- the group chat avatar generated by the execution subject may be as shown in FIG. 3a, for example. If the above-mentioned avatar set includes the avatar A of the group owner and the avatars B and C of the two group members, the group chat avatar generated by the execution subject may be shown in FIG. 3b, for example. If the above avatar set includes the head A of the group owner and the heads B, C, and D of the three group members, the group chat avatar generated by the above-mentioned execution subject may be shown in FIG. 3c, for example.
- the group chat avatar generated by the execution subject may be shown in FIG. 3d, for example. If the above avatar set includes the head A of the group owner and the heads B, C, D, E, and F of the five group members, the group chat avatar generated by the above-mentioned execution subject may be shown in FIG. 3e, for example.
- this embodiment does not limit the position of the group owner's avatar and the group member's avatar in the group chat avatar.
- the execution subject may store a group chat avatar template set.
- Each group chat avatar template can correspond to the number of avatars. Among them, the number of avatars is not greater than the upper limit of the number of avatars.
- the execution subject may select a group chat avatar template corresponding to the number of avatars included in the above avatar set from the group chat avatar template set as the target group chat avatar template. Then, the execution subject may generate the group chat avatar of the target group chat based on the avatar set and the target group chat avatar template.
- each group chat avatar template may include a first area for placing the group owner's avatar.
- the group chat avatar template corresponding to the number of avatars greater than 1 includes at least one second area for placing group members' avatars while including the first area.
- the range of the first area is larger than the range of the second area.
- the execution subject may place the head of the group owner in the avatar set in the first area of the target group chat avatar template, and place the head of the group member in the avatar set in the second area of the target group chat avatar template .
- the above-mentioned execution subject may generate the group chat avatar of the target group chat from the target group chat avatar template after the avatar is placed. It should be noted that, for example, the execution subject may randomly place the avatar of the group member in the avatar set to the second area in the target group chat avatar template.
- the second area in the group chat avatar template may also correspond to a serial number in advance.
- the execution subject may obtain the attribute values of the set attributes of the at least one group member, and then sort the avatars of the at least one group member based on the acquired attribute values, and then according to the avatars of the at least one group member Sequence number, place the avatar in the corresponding second area in the target group chat avatar template.
- a set attribute of a group member can characterize the attribute of one dimension of the group member.
- the set attributes may include, for example, but not limited to group entry time, geographic location, avatar matching degree, group activity degree or group contribution degree, and so on.
- the avatar collocation degree can be used to characterize the gradation degree of the color tone and/or style between the group member avatar and the group owner avatar, for example.
- the first device may run a thread for real-time or periodic statistics of the attribute values of the set attributes of the group members of the group chat created by the social application. Therefore, the execution subject may obtain the attribute value of one or more set attributes of the group member of the target group chat from the data collected by the thread.
- the execution subject may sort the avatars of the at least one group member according to the order of the attribute value of the group joining time from early to late.
- the attribute is set to geographic location
- the execution subject obtains the attribute value of the geographic location of the at least one group member the attribute value of the geographic location of the group owner of the target group chat can also be acquired, and then based on the acquired
- the distance between the at least one group member and the group owner is calculated, and then the avatars of the at least one group member are sorted according to the distance from the closest to the farthest.
- the execution subject may sort the avatars of the at least one group member according to the order of the attribute values of the avatar collocation degree from high to low.
- the method provided in the above embodiment of the present application obtains an avatar set related to the group chat avatar of the target group chat, where the avatar set includes the avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat , So as to generate a group chat avatar of the target group chat based on the avatar set, wherein the group chat avatar includes the group avatar and the at least one group member avatar when presented, and the group avatar of the group chat avatar
- the display area is larger than the display area of the at least one group member's avatar.
- FIG. 4 shows a flow 400 of one embodiment of a method for generating a group chat avatar.
- the process 400 of the method for generating a group chat avatar includes the following steps:
- Step 401 If the number of the group owner and the group members of the target group chat exceeds the upper limit of the number of avatars that can be displayed by the group chat avatar of the target group chat, the attribute value of the set attribute of the group member of the target group chat is obtained.
- the execution subject of the method for generating a group chat avatar may be the first device (for example, the device 105 shown in FIG. 1), or may be a second device (for example, as shown in FIG. 1) that is in communication with the first device Shown devices 101, 102, 103).
- a social application supported by the first device may be installed on the second device.
- the target group chat may be a group chat created by a user to whom the second device belongs to through the social application request.
- the above-mentioned target group chat may include a group owner and a group member.
- the group owner may refer to a user who has the management authority of the group chat.
- the owner of the group chat is generally the user who requested to create the group chat.
- the group members in the embodiments of the present application are non-group owners; the social application in this embodiment refers to an application with a social function, and the social application may have functions other than social.
- the The main functions of social applications are non-social functions.
- the execution subject may obtain the attribute value of the set attribute of the group member of the target group chat.
- the set attributes may include, for example, but not limited to group entry time, geographic location, avatar collocation degree, group activity degree or group contribution degree, and so on.
- the avatar collocation degree can be used to characterize the collocation degree of the color tone and/or style between the group member's avatar and the group owner's avatar. For the explanation of setting attributes, please refer to the relevant description in the embodiment shown in FIG. 2, which will not be repeated here.
- Step 402 Select at least one group member from the group members of the target group chat based on the acquired attribute value.
- the execution subject may select at least one group member from the group members of the target group chat based on the acquired attribute value.
- the number of the at least one group member is not greater than the difference between the upper limit of the number of avatars and the preset natural number.
- the upper limit of the number of avatars is 6, and the difference between the upper limit of the number of avatars and the preset natural number 1 is 5. If the number of the group owner and the group members of the target group chat exceeds 6, the execution subject may select 5 group members from the group members of the target group chat.
- the preset natural number usually indicates the number of group owners.
- the execution subject may select at least one group member from the group members of the target group chat according to the order of the property value of the group joining time from early to late. For example, if the upper limit of the number of avatars is 6, and the preset natural number is 1, the execution subject may select 5 group members with the earliest group joining time from the group members of the target group chat. If the attribute is set to the avatar collocation degree, the above-mentioned execution subject may select at least one group member from the group members of the target group chat according to the order of the attribute values of the avatar collocation degree from high to low.
- the attribute value of the geographic location of the group owner of the target group chat can also be obtained, and then based on the obtained Calculate the distance between the group member of the target group chat and the group owner, and then select at least one group member from the group members of the target group chat according to the order of distance from near to far.
- the above-mentioned execution subject may divide the group members of the target group chat based on the acquired attribute value of the geographic location, and then from the group members located in the divided gathering places Select at least one group member.
- the method of setting the attribute and selecting at least one group member from the group members of the target group chat based on the attribute value of the setting attribute can be adjusted according to actual needs, and is not specifically limited herein.
- Step 403 Generate an avatar set including the avatar of the group owner of the target group chat and the avatar of the selected at least one group member.
- the execution subject may generate an avatar set including the avatar of the group owner of the target group chat and the avatar of at least one selected group member.
- the execution subject may obtain the avatar of the group owner of the target group chat and the avatar of at least one selected group member, and then form the acquired avatar to form the above-mentioned avatar set.
- Step 404 Based on the avatar set, generate a group chat avatar of the target group chat.
- the execution subject may generate a group chat avatar of the target group chat based on the avatar set.
- the group chat avatar may include a group owner's avatar and at least one selected group member's avatar when presented, and the group chat avatar's avatar's avatar display area in the group chat avatar may be larger than the selected at least one group member Display area of your avatar.
- step 404 reference may be made to the relevant description of step 202 in the embodiment shown in FIG. 2, which will not be repeated here.
- the process 400 of the method for generating a group chat avatar in this embodiment highlights the acquisition of the avatar set related to the group chat avatar of the target group chat Method of expanding steps. Therefore, the solution described in this embodiment can realize the diversity of information processing, and the head of the group chat and the group member's avatar of the target group chat can be better displayed.
- the execution subject of the method for generating a group chat avatar generates a target group based on the avatar set After the group chat avatar, you can detect whether the group owner of the target group chat has changed in real time. Generally, when the group owner requests to quit the above-mentioned target group chat, and when the group owner requests to transfer the management authority of the target group chat, the change of the group owner can be triggered. In response to detecting that the group owner of the target group chat has changed, the execution subject may replace the group owner's avatar before the change in the target group chat's group chat avatar with the changed group owner's avatar.
- the above-mentioned execution subject may also detect that the avatar is included in the group chat avatar of the target group chat in real time Whether the members of the target group quit the above target group chat.
- the execution subject may receive a corresponding exit group notification, for example.
- the execution subject may respond to detecting that the target group member exits the target group chat, and the number of group owners and group members of the target group chat is less than the upper limit of the number of avatars that can be displayed by the group chat avatar of the target group chat. Remove the avatar of the target group member from the group chat avatar of group chat.
- the execution subject may also respond to the target group member exiting the target group chat in response to detecting that the avatar is included in the group chat avatar of the target group chat, and the number of the group owner and group members of the target group chat is not less than the above Maximum number of avatars, remove the avatar of the target group member from the group chat avatar of the above target group chat, and select at least one group member from the group member of the above target group chat The avatar is added to the group chat avatar of the above target group chat.
- the execution subject may select at least one group member from the group members of the target group chat based on the number of the target group members. The number of the at least one group member may be the same as the number of the target group member.
- the execution subject may randomly select at least one group member from the group member of the target group chat.
- the execution subject may also obtain the attribute value of the set attribute of the group member of the target group chat, and based on the acquired attribute value , Select at least one group member from the group members in the above target group chat.
- the setting attributes here may include, for example, but not limited to group entry time, geographic location, avatar matching degree, group activity degree or group contribution degree, and so on.
- the activity within the group can be used to characterize the activity of the group members in the target group chat.
- the intra-group activity can be calculated based on, for example, at least one of the following: the frequency and/or duration of opening the chat window of the target group chat, the number of chats in the chat window, the number of chat words, the chat frequency, and/or The length of the chat.
- the chat duration can be estimated based on the time when a group member publishes a chat message. If a group member publishes a new chat message within the first set duration (for example, 1 minute or 2 minutes, etc.) after publishing a chat message, you can Determine that the group members are in chat.
- the duration of the chat can also be calculated based on the time when the screen of the device used by the group member is unlocked and the chat window is opened. It should be understood that the intra-group activity can be calculated based on any parameter used to determine whether the group members are active, and is not specifically limited here.
- the group contribution can be used to characterize the contribution of group members to the target group chat.
- the group contribution can be calculated based on at least one of the following: the number of invitations to invite others to join the above-mentioned target group chat, the group activity and/or group contribution after the invited others join the above-mentioned target group chat, in the above
- the number and/or frequency of resources sent in the target group chat the number of files uploaded in the target group chat and/or the number of uploaded files downloaded, and so on.
- the resources include virtual items that can be distributed through the Internet.
- the resources may include, but are not limited to, red envelopes, coupons, and coupons.
- the number of resources sent in the above target group chat can refer to the total number or total amount of resources after joining the group, or it can refer to the total number of resources within the latest second set duration (such as one week, half month, or one month, etc.) or total amount.
- the method for selecting group members may refer to the relevant description in step 402, and will not be repeated here. If the attribute is set to the intra-group activity, the execution subject may select at least one group member from the group members of the target group chat in order of the attribute value of the intra-group activity from high to low. If the attribute is set to the group contribution degree, the execution subject may select at least one group member from the group members of the target group chat in order of the attribute value of the group contribution degree from high to low.
- the above-mentioned execution subject may perform the following update operation in response to determining that the current time reaches the target time: from the above Select at least one group member among the group members of the target group chat; determine whether the selected at least one group member is consistent with the group member associated with the group chat avatar of the above target group chat, where the group associated with the group chat avatar
- the members are group members whose avatars are included in the group chat avatar; if they are inconsistent, the group chat avatar of the target group chat is updated based on the selected at least one group member's avatar.
- the target time may be, for example, a specific time point such as daily, weekly, or monthly, or the time interval between the time point when the above update operation was last performed and the third set duration At this time, there is no specific limit here.
- the third set duration can be set according to actual needs.
- the execution subject when the execution subject performs the update operation, if the number of the group owner and group members of the target group chat does not exceed the upper limit of the number of avatars, the execution subject may select all group members of the target group chat. If the number of the group owner and group members of the target group chat exceeds the upper limit of the number of avatars, the execution subject may randomly select at least one group member from the group members of the target group chat, or use the embodiment shown in FIG. 4 The implementation manners shown in step 401 and step 402 in FIG. 2 select at least one group member from the group members in the target group chat.
- the above-mentioned executive body may adopt various update methods, Based on the selected avatar of at least one group member, the group chat avatar of the target group chat is updated.
- the above-mentioned executive body may add the avatars of group members other than all group members associated with the group chat avatar of the target group chat among the selected at least one group member to the target group chat group Chat avatar.
- the execution subject may select the group chat avatar from the target group chat Remove the avatars of at least some of the group members that are not included in the above, and add the avatars of group members that are not included in the group members associated with the group chat avatar of the target group chat among the selected at least one group member to the above Group chat avatar for target group chat.
- the above-mentioned execution subject may determine the above-mentioned target group after reaching the target time in response to determining that the current time Whether the group member of the chat has changed, if it is determined that the change has occurred, the above update operation is performed.
- the execution subject may locally store a group member list related to the target group chat and capable of being updated in real time. If the current group member list is inconsistent with the group member list viewed when the group member of the target group chat was determined last time, the execution subject may determine that the group member of the target group chat has changed.
- FIG. 5 shows a flow 500 of yet another embodiment of a method for generating a group chat avatar.
- the method for generating a group chat avatar applied to a first device includes the following steps:
- Step 501 Acquire an avatar set related to the group chat avatar of the target group chat.
- the second device (for example, the devices 101, 102, and 103 shown in FIG. 1) communicatively connected to the first device may be installed with a social application supported by the first device.
- the target group chat may be a group chat created by a user to whom the second device belongs to through the social application request.
- the above-mentioned target group chat may include a group owner and a group member.
- the group owner may refer to a user who has the management authority of the group chat.
- the owner of the group chat is generally the user who requested to create the group chat.
- the group members in this embodiment are non-group owners;
- the social application in this embodiment refers to an application with a social function, and the social application may have functions other than social.
- the social The main functions of the application are non-social functions.
- the first device may obtain an avatar set related to the group chat avatar of the target group chat.
- the method of acquiring the avatar set please refer to the relevant descriptions in the embodiments shown in FIG. 2 and FIG. 4 respectively, which will not be repeated here.
- Step 502 Send the avatar set to the second device, so that the second device generates a group chat avatar of the target group chat based on the avatar set.
- the first device may send the avatar set to the second device, so that the second device generates the group chat avatar of the target group chat based on the avatar set.
- the group chat avatar may include the group owner's avatar and the at least one group member's avatar when presented, and the display area of the group chat's avatar of the group chat avatar may be larger than the display of the at least one group member's avatar area.
- the first device may respond to detecting that the group owner of the target group chat occurs Change, generate first indication information including the group owner's avatar after the target group chat is changed, and send the first indication information to the second device.
- the first indication information may be used to instruct to replace the group owner's avatar before the change with the group owner's avatar after the change in the group chat avatar of the target group chat.
- the first device may respond to detecting that the avatar is included in the target group chat
- the target group members in the group chat avatar quit the above target group chat, and the number of group owners and group members of the above target group chat is less than the upper limit of the number of avatars that the group chat avatar of the target group chat can display, generating second indication information, And sending second indication information to the second device.
- the second indication information may be used to instruct to remove the avatar of the target group member from the group chat avatar of the target group chat.
- the first device may exit the target group in response to detecting that the target group member Chat, and the number of the group owner and group members of the above target group chat is not less than the maximum number of avatars that can be displayed by the group chat avatar of the above target group chat, select at least one group member from the group members of the above target group chat to generate The third indication information including the selected avatar of at least one group member, and sending the third indication information to the second device.
- the third indication information may be used to instruct to remove the avatar of the target group member from the group chat avatar of the target group chat, and add the selected avatar of at least one group member to the group chat avatar of the target group chat .
- the first device may also perform the following in response to determining that the current time reaches the target time First processing operation: select at least one group member from the group members of the target group chat; determine whether the selected at least one group member is consistent with the group member associated with the group chat avatar of the target group chat; if not, Then, the avatar of the selected at least one group member is sent to the second device, so that the second device updates the group chat avatar of the target group chat based on the received avatar.
- the first device may also execute the following in response to determining that the current time reaches the target time Second processing operation: select at least one group member from the group members of the target group chat; determine whether the selected at least one group member is consistent with the group member associated with the group chat avatar of the target group chat; if not, Then, based on the selected avatar of at least one group member, generate fourth indication information, and send the fourth indication information to the second device.
- the first device may determine that the fourth indication information includes the avatar of the group member except all group members associated with the group chat avatar of the target group chat among the selected at least one group member .
- the fourth instruction information may be used to instruct the group avatars of the group members other than all group members associated with the group chat avatar of the target group chat among the selected at least one group member to join the group chat of the target group chat Avatar.
- the execution subject may determine that the fourth instruction information includes the selected at least one The group member's avatar is not included in the group member associated with the group chat avatar of the target group chat.
- the fourth indication information may be used to instruct to remove the unavailable at least part of the group member's avatar from the group chat avatar of the target group chat, and to include the selected at least one group member not included in the target
- the group avatar of the group member in the group member associated with the group chat avatar of the group chat is added to the group chat avatar of the above target group chat.
- the first device may determine whether the group member of the target group chat has changed, and if the change occurs, execute the first The processing operation or the above-mentioned second processing operation.
- the method provided in the above embodiment of the present application obtains an avatar set related to the group chat avatar of the target group chat through the first device, where the avatar set includes the avatar of the group owner of the target group chat and at least one group in the target group chat The avatar of the member, so as to send the avatar set to the second device, so that the second device generates a group chat avatar of the target group chat based on the avatar set, where the group chat avatar includes the avatar of the group owner and the at least one A group member's avatar, and the display area of the group owner's avatar in the group chat avatar is larger than the display area of the at least one group member's avatar.
- the solution provided by the above-mentioned embodiments of the present application realizes targeted information generation through interaction between the first device and the second device, and can also achieve diversity in information processing. Allowing the group owner's avatar to occupy a larger display area in the group chat avatar can make the group owner's avatar better displayed.
- FIG. 6 shows a schematic structural diagram of a computer system 600 suitable for implementing computer devices (eg, devices 101, 102, 103, 105 shown in FIG. 1) of the embodiments of the present application.
- the computer device shown in FIG. 6 is only an example, and should not impose any limitation on the functions and use scope of the embodiments of the present application.
- the computer system 600 includes a central processing unit (CPU) 601 that can be loaded into a random access memory (RAM) 603 from a program stored in a read-only memory (ROM) 602 or from a storage section 608 Instead, perform various appropriate actions and processing.
- RAM random access memory
- ROM read-only memory
- RAM storage section 608
- various programs and data necessary for the operation of the system 600 are also stored.
- the CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604.
- An input/output (I/O) interface 605 is also connected to the bus 604.
- the following components are connected to the I/O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 608 including a hard disk, etc. ; And a communication section 609 including a network interface card such as a LAN card, a modem, etc.
- the communication section 609 performs communication processing via a network such as the Internet.
- the driver 610 is also connected to the I/O interface 605 as needed.
- a removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed on the drive 610 as necessary, so that the computer program read out therefrom is installed into the storage section 608 as needed.
- the process described above with reference to the flowchart may be implemented as a computer software program.
- embodiments of the present disclosure include a computer program product that includes a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart.
- the computer program may be downloaded and installed from the network through the communication section 609, and/or installed from the removable medium 611.
- CPU central processing unit
- the computer-readable medium shown in this application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
- the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
- the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
- the computer-readable signal medium may include a data signal that is propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. .
- the program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the foregoing.
- the computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, the programming languages including object-oriented programming languages-such as Java, Smalltalk, C++, as well as conventional Procedural programming language-such as "C" language or similar programming language.
- the program code may be executed entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
- the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, through an Internet service provider Internet connection).
- LAN local area network
- WAN wide area network
- Internet service provider Internet connection for example, AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
- each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the above-mentioned module, program segment, or part of code contains one or more for implementing a prescribed logical function Executable instructions.
- the functions noted in the block may occur out of the order noted in the figures. For example, two blocks represented in succession may actually be executed in parallel, and they may sometimes be executed in reverse order, depending on the functions involved.
- each block in the block diagram or flowchart, and a combination of blocks in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be used It is realized by a combination of dedicated hardware and computer instructions.
- the units described in the embodiments of the present application may be implemented in software or hardware.
- the described unit may also be provided in the processor.
- a processor includes an acquiring unit and a generating unit.
- a processor includes an acquiring unit and a sending unit.
- the names of these units do not constitute a limitation on the unit itself.
- the obtaining unit may also be described as “a unit that obtains an avatar set related to the group chat avatar of the target group chat”.
- the present application also provides a computer-readable medium, which may be included in the computer device described in the foregoing embodiments; or may exist alone without being assembled into the computer device in.
- the computer-readable medium carries one or more programs.
- the computer device is caused to: obtain an avatar set related to the group chat avatar of the target group chat, where the avatar The collection may include the avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat; based on the avatar collection, a group chat avatar of the target group chat is generated, where the group chat avatar may include the group owner's The avatar and the at least one group member's avatar, and the display area of the group owner's avatar in the group chat avatar may be larger than the display area of the at least one group member's avatar.
- the computer device may be caused to: obtain an avatar set related to the group chat avatar of the target group chat, where the avatar set may include the avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat; Sending the set of avatars to the second device, so that the second device generates a group chat avatar of the target group chat based on the set of avatars, where the group chat avatar may include the avatar of the group owner and the avatar of the at least one group member when presented , And the display area of the group owner's avatar in the group chat avatar may be larger than the display area of the at least one group member's avatar.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
本申请实施例涉及计算机技术领域,具体涉及用于生成群聊头像的方法和设备。The embodiments of the present application relate to the field of computer technology, and in particular to a method and device for generating a group chat avatar.
随着移动互联网的飞速发展,各种各样的应用层出不穷。其中,社交应用占据了很大一部分。通常,社交应用的用户可以与一个或多个其他用户建立聊天会话。其中,社交应用的用户与多个其他用户建立的聊天会话可以被称作群聊天会话,简称群聊。With the rapid development of the mobile Internet, various applications are emerging. Among them, social applications account for a large part. Generally, users of social applications can establish chat sessions with one or more other users. Among them, a chat session established by a user of a social application and multiple other users may be referred to as a group chat session, or group chat for short.
目前,一个新的群聊被建立时,通常需要为该群聊生成相应的群聊头像。现有的群聊头像生成方法一般是获取前9个入群的用户的头像,生成9宫格缩略图作为群聊头像。其中,群聊头像中的所有头像占据同样大小的显示区域。Currently, when a new group chat is created, it is usually necessary to generate a corresponding group chat avatar for the group chat. The existing group chat avatar generation method generally obtains the avatars of the first 9 users who enter the group, and generates a 9-square grid thumbnail as the group chat avatar. Among them, all the avatars in the group chat avatar occupy the same size display area.
发明内容Summary of the invention
本申请实施例提出了用于生成群聊头像的方法和设备。The embodiment of the present application proposes a method and a device for generating a group chat avatar.
第一方面,本申请实施例提供了一种用于生成群聊头像的方法,该方法包括:获取与目标群聊的群聊头像有关的头像集合,其中,头像集合包括目标群聊的群主的头像以及目标群聊中至少一位群成员的头像;基于头像集合,生成目标群聊的群聊头像,其中,群聊头像在呈现时包括群主的头像以及该至少一位群成员的头像,且群聊头像中群主的头像的显示区域大于该至少一位群成员的头像的显示区域。In a first aspect, an embodiment of the present application provides a method for generating a group chat avatar. The method includes: obtaining an avatar set related to a group chat avatar of a target group chat, where the avatar set includes a group owner of the target group chat Avatar and the avatar of at least one group member in the target group chat; based on the avatar set, a group chat avatar of the target group chat is generated, where the group chat avatar includes the group owner's avatar and the at least one group member's avatar when presented , And the display area of the group owner's avatar in the group chat avatar is larger than the display area of the at least one group member's avatar.
第二方面,本申请实施例提供了一种用于生成群聊头像的方法,应用于第一设备,该方法包括:获取与目标群聊的群聊头像有关的头像集合,其中,头像集合包括目标群聊的群主的头像以及目标群聊中至少一位群成员的头像;将头像集合发送至第二设备,以使第二设备基于头像集合,生成目标群聊的群聊 头像,其中,群聊头像在呈现时包括群主的头像以及该至少一位群成员的头像,且群聊头像中群主的头像的显示区域大于该至少一位群成员的头像的显示区域。In a second aspect, an embodiment of the present application provides a method for generating a group chat avatar, which is applied to a first device. The method includes: acquiring an avatar set related to a group chat avatar of a target group chat, where the avatar set includes The avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat; send the avatar set to the second device, so that the second device generates the group chat avatar of the target group chat based on the avatar set, where, The group chat avatar includes the group avatar and the at least one group member avatar when presented, and the display area of the group chat avatar of the group chat avatar is larger than the display area of the at least one group member avatar.
第三方面,本申请实施例提供了一种用于生成群聊头像的装置,该装置包括:获取单元,被配置成获取与目标群聊的群聊头像有关的头像集合,其中,头像集合包括目标群聊的群主的头像以及目标群聊中至少一位群成员的头像;生成单元,被配置成基于头像集合,生成目标群聊的群聊头像,其中,群聊头像在呈现时包括群主的头像以及该至少一位群成员的头像,且群聊头像中群主的头像的显示区域大于该至少一位群成员的头像的显示区域。In a third aspect, an embodiment of the present application provides an apparatus for generating a group chat avatar. The apparatus includes: an acquiring unit configured to acquire an avatar set related to a group chat avatar of a target group chat, where the avatar set includes The avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat; the generating unit is configured to generate the group chat avatar of the target group chat based on the avatar set, wherein the group chat avatar includes the group when presented The avatar of the owner and the avatar of the at least one group member, and the display area of the avatar of the group owner in the group chat avatar is larger than the display area of the avatar of the at least one group member.
第四方面,本申请实施例提供了一种用于生成群聊头像的装置,应用于第一设备,该装置包括:获取单元,被配置成获取与目标群聊的群聊头像有关的头像集合,其中,头像集合包括目标群聊的群主的头像以及目标群聊中至少一位群成员的头像;发送单元,被配置成将头像集合发送至第二设备,以使第二设备基于头像集合,生成目标群聊的群聊头像,其中,群聊头像在呈现时包括群主的头像以及该至少一位群成员的头像,且群聊头像中群主的头像的显示区域大于该至少一位群成员的头像的显示区域。According to a fourth aspect, an embodiment of the present application provides an apparatus for generating a group chat avatar, which is applied to a first device. The apparatus includes: an acquiring unit configured to acquire an avatar set related to a group chat avatar of a target group chat , Where the avatar set includes the avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat; the sending unit is configured to send the avatar set to the second device, so that the second device is based on the avatar set , Generate a group chat avatar of the target group chat, where the group chat avatar includes the group avatar and the avatar of the at least one group member when presented, and the display area of the group avatar of the group chat avatar is larger than the at least one The display area of the group member's avatar.
第五方面,本申请实施例提供了一种计算机设备,该计算机设备包括:一个或多个处理器;存储装置,其上存储有一个或多个程序;当该一个或多个程序被该一个或多个处理器执行,使得该一个或多个处理器实现如第一方面和第二方面中任一实现方式描述的方法。In a fifth aspect, an embodiment of the present application provides a computer device, the computer device includes: one or more processors; a storage device, on which one or more programs are stored; when the one or more programs are Or executed by multiple processors, so that the one or more processors implement the method described in any one of the implementation manners of the first aspect and the second aspect.
第六方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面和第二方面中任一实现方式描述的方法。According to a sixth aspect, an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, a method as described in any one of the implementation manners of the first aspect and the second aspect is implemented.
本申请的上述实施例提供的用于生成群聊头像的方法和设备,通过获取与目标群聊的群聊头像有关的头像集合,其中,头像集合包括目标群聊的群主的头像以及目标群聊中至少一位群成员的头像,以便基于头像集合,生成目标群聊的群聊头像,其中,该群聊头像在呈现时包括群主的头像以及该至少一位群成员的头像,且该群聊头像中群主的头像的显示区域大于该至少一位群成员的头像的显示区域。本申请的上述实施例提供的方案实现了富于针对性的信息生 成。让群聊头像中群主的头像占据较大的显示区域,可以使群主的头像获得更好的展示。The method and device for generating a group chat avatar provided by the above embodiments of the present application, by acquiring an avatar set related to the group chat avatar of the target group chat, where the avatar set includes the avatar of the group owner of the target group chat and the target group An avatar of at least one group member in the chat, so as to generate a group chat avatar of the target group chat based on the avatar set, wherein the group chat avatar includes the group owner's avatar and the at least one group member's avatar when presented, and the The display area of the group owner's avatar in the group chat avatar is larger than the display area of the at least one group member's avatar. The solution provided by the above embodiments of the present application realizes targeted information generation. Allowing the group owner's avatar to occupy a larger display area in the group chat avatar can make the group owner's avatar better displayed.
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:By reading the detailed description of the non-limiting embodiments made with reference to the following drawings, other features, objects, and advantages of the present application will become more apparent:
图1是本申请的一些实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application can be applied;
图2是根据本申请的用于生成群聊头像的方法的一个实施例的流程图;2 is a flowchart of an embodiment of a method for generating a group chat avatar according to the present application;
图3a是包括群主的头像以及一位群成员的头像的群聊头像的示意图;FIG. 3a is a schematic diagram of a group chat avatar including a group owner’s avatar and a group member’s avatar;
图3b是包括群主的头像以及两位群成员的头像的群聊头像的示意图;FIG. 3b is a schematic diagram of a group chat avatar including the group avatar and two group members’ avatars;
图3c是包括群主的头像以及三位群成员的头像的群聊头像的示意图;FIG. 3c is a schematic diagram of a group chat avatar including a group owner’s avatar and three group members’ avatars;
图3d是包括群主的头像以及四位群成员的头像的群聊头像的示意图;FIG. 3d is a schematic diagram of a group chat avatar including a group owner’s avatar and four group members’ avatars;
图3e是包括群主的头像以及五位群成员的头像的群聊头像的示意图;FIG. 3e is a schematic diagram of a group chat avatar including a group owner’s avatar and five group members’ avatars;
图4是根据本申请的用于生成群聊头像的方法的又一个实施例的流程图;4 is a flowchart of another embodiment of a method for generating a group chat avatar according to the present application;
图5是根据本申请的用于生成群聊头像的方法的再一个实施例的流程图;5 is a flowchart of still another embodiment of a method for generating a group chat avatar according to the present application;
图6是适于用来实现本申请的一些实施例的计算机设备的计算机系统的结构示意图。6 is a schematic structural diagram of a computer system suitable for implementing computer devices of some embodiments of the present application.
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be described in further detail below with reference to the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other if there is no conflict. The application will be described in detail below with reference to the drawings and in conjunction with the embodiments.
图1示出了可以应用本申请的用于生成群聊头像的方法的实施例的示例性系统架构100。FIG. 1 shows an
如图1所示,系统架构100可以包括设备101、102、103、105,和网络104。网络104用以在设备101、102、103和设备105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆 等等。As shown in FIG. 1, the
设备101、102、103、105可以是支持网络连接从而提供各种网络服务的硬件设备或软件。当设备为硬件时,其可以是各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机、台式计算机和服务器等等。这时,作为硬件设备,其可以实现成多个设备组成的分布式设备群,也可以实现成单个设备。当设备为软件时,可以安装在上述所列举的电子设备中。这时,作为软件,其可以实现成例如用来提供分布式服务的多个软件或软件模块,也可以实现成单个软件或软件模块。在此不做具体限定。The
实践中,设备可以通过安装相应的客户端应用或服务端应用来提供相应的网络服务。设备在安装了客户端应用之后,其可以在网络通信中体现为客户端。相应地,在安装了服务端应用之后,其可以在网络通信中体现为服务端。In practice, the device can provide corresponding network services by installing corresponding client applications or server applications. After the client application is installed on the device, it can be embodied as a client in network communication. Correspondingly, after the server application is installed, it can be embodied as a server in network communication.
作为示例,在图1中,设备101、102、103体现为客户端,而设备105体现为服务端。具体地,设备101、102、103可以是安装有社交应用的客户端。设备105可以是对该社交应用提供支持的后台服务端。用户可以通过该社交应用建立群聊,设备101、102、103和/或设备105可以针对该群聊的群聊头像执行相应的操作。As an example, in FIG. 1, the
需要说明的是,本申请的一些实施例提供的用于生成群聊头像的方法可以由设备101、102、103执行,也可以由设备105执行。It should be noted that the method for generating a group chat avatar provided by some embodiments of the present application may be executed by the
应该理解,图1中的设备和网络的数目仅仅是示意性的。根据实现需要,可以具有任意数目的设备和网络。It should be understood that the number of devices and networks in FIG. 1 are only schematic. According to the implementation needs, there can be any number of devices and networks.
继续参考图2,示出了根据本申请的用于生成群聊头像的方法的一个实施例的流程200。该用于生成群聊头像的方法的流程200,包括以下步骤:With continued reference to FIG. 2, a
步骤201,获取与目标群聊的群聊头像有关的头像集合。Step 201: Acquire an avatar set related to the group chat avatar of the target group chat.
在本实施例中,用于生成群聊头像的方法的执行主体可以是第一设备(例如图1所示的设备105),也可以是与第一设备通信连接的第二设备(例如图1所示的设备101、102、103)。In this embodiment, the execution subject of the method for generating a group chat avatar may be the first device (for example, the
上述第二设备上可以安装有上述第一设备所支持的社交应用。上述目标群聊可以是上述第二设备所归属的用户通过该社交应用请求创建的群聊。这里,上述目标群聊可以包括群主和群成员。其中,群主可以指具有所在的群聊的管 理权限的用户。对于一个新建的群聊,该群聊的群主一般是请求创建该群聊的用户。需要指出的是,本实施例中的群成员为非群主;本实施例的社交应用指具有社交功能的应用,该社交应用可以具有除社交以外的其他功能,在一些实施例中,该社交应用的主要功能为非社交功能。A social application supported by the first device may be installed on the second device. The target group chat may be a group chat created by a user to whom the second device belongs to through the social application request. Here, the above-mentioned target group chat may include a group owner and a group member. Among them, the group owner can refer to a user who has the management authority of the group chat. For a newly created group chat, the owner of the group chat is generally the user who requested to create the group chat. It should be noted that the group members in this embodiment are non-group owners; the social application in this embodiment refers to an application with a social function, and the social application may have functions other than social. In some embodiments, the social The main functions of the application are non-social functions.
当上述第二设备所归属的用户通过上述社交应用新建上述目标群聊时,上述执行主体可以获取与上述目标群聊的群聊头像有关的头像集合。作为示例,若上述目标群聊的群主以及群成员的数量不超过上述目标群聊的群聊头像能够显示的头像数量上限,则上述执行主体可以确定上述头像集合包括群主的头像以及所有群成员的头像。其中,上述头像数量上限例如可以是6或9等。应该理解,上述头像数量上限是可以根据实际需要设置的,在此不做具体限定。When the user to which the second device belongs belongs to create the target group chat through the social application, the execution subject may obtain an avatar set related to the group chat avatar of the target group chat. As an example, if the number of the group owner and the group members of the target group chat does not exceed the upper limit of the number of avatars that can be displayed by the group chat avatar of the target group chat, the execution subject may determine that the avatar set includes the group avatar and all groups Member's avatar. The upper limit of the number of avatars may be 6 or 9, for example. It should be understood that the upper limit of the number of avatars can be set according to actual needs, and is not specifically limited here.
在本实施例的一些可选的实现方式中,若上述目标群聊的群主以及群成员的数量超过上述头像数量上限,则上述执行主体可以从上述目标群聊的群成员中选择至少一位群成员,并确定上述头像集合包括群主的头像以及所选择的至少一位群成员的头像。这里,上述执行主体例如可以随机地从上述目标群聊的群成员中选择至少一位群成员。In some optional implementations of this embodiment, if the number of the group owner and group members of the target group chat exceeds the upper limit of the number of avatars, the execution subject may select at least one of the group members of the target group chat Group members, and determine that the above-mentioned avatar set includes the group owner's avatar and at least one selected group member's avatar. Here, the execution subject may randomly select at least one group member from the group members of the target group chat, for example.
需要指出的是,上述执行主体所选择的至少一位群成员的数量不大于上述头像数量上限与预设自然数的差值。作为示例,假设上述头像数量上限为6,上述头像数量上限与预设自然数1的差值为5。若上述目标群聊的群主以及群成员的数量超过6,则上述执行主体可以从上述目标群聊的群成员中选择5位群成员。该预设自然数通常表示群主数量。It should be noted that the number of at least one group member selected by the execution subject is not greater than the difference between the upper limit of the number of avatars and the preset natural number. As an example, suppose that the upper limit of the number of avatars is 6, and the difference between the upper limit of the number of avatars and the preset natural number 1 is 5. If the number of the group owner and the group members of the target group chat exceeds 6, the execution subject may select 5 group members from the group members of the target group chat. The preset natural number usually indicates the number of group owners.
需要指出的是,若上述执行主体为第一设备(例如图1所示的设备105),该第一设备可能结合来自第二设备的信息以获取与目标群聊的群聊头像有关的头像集合;若上述执行主体为第二设备(例如图1所示的设备101、102、103),该第二设备可能结合来自第一设备的信息以获取与目标群聊的群聊头像有关的头像集合。It should be noted that if the above-mentioned execution subject is the first device (for example, the
步骤202,基于头像集合,生成目标群聊的群聊头像。Step 202: Based on the avatar set, generate a group chat avatar of the target group chat.
在本实施例中,上述执行主体可以基于上述头像集合,生成上述目标群聊的群聊头像。其中,该群聊头像在呈现时可以包括群主的头像以及上述至少一位群成员的头像,且该群聊头像中群主的头像的显示区域可以大于上述至少一 位群成员的头像的显示区域。In this embodiment, the execution subject may generate the group chat avatar of the target group chat based on the avatar set. Wherein, the group chat avatar may include the group owner's avatar and the at least one group member's avatar when presented, and the display area of the group chat's avatar of the group chat avatar may be larger than the display of the at least one group member's avatar area.
作为示例,若上述头像集合包括群主的头像A以及一位群成员的头像B,那么上述执行主体所生成的群聊头像例如可以如图3a所示。若上述头像集合包括群主的头像A以及两位群成员的头像B、C,那么上述执行主体所生成的群聊头像例如可以如图3b所示。若上述头像集合包括群主的头像A以及三位群成员的头像B、C、D,那么上述执行主体所生成的群聊头像例如可以如图3c所示。若上述头像集合包括群主的头像A以及四群成员的头像B、C、D、E,那么上述执行主体所生成的群聊头像例如可以如图3d所示。若上述头像集合包括群主的头像A以及五位群成员的头像B、C、D、E、F,那么上述执行主体所生成的群聊头像例如可以如图3e所示。As an example, if the set of avatars includes the avatar A of the group owner and the avatar B of a group member, the group chat avatar generated by the execution subject may be as shown in FIG. 3a, for example. If the above-mentioned avatar set includes the avatar A of the group owner and the avatars B and C of the two group members, the group chat avatar generated by the execution subject may be shown in FIG. 3b, for example. If the above avatar set includes the head A of the group owner and the heads B, C, and D of the three group members, the group chat avatar generated by the above-mentioned execution subject may be shown in FIG. 3c, for example. If the above avatar set includes the group avatar A and the four group members' avatars B, C, D, and E, the group chat avatar generated by the execution subject may be shown in FIG. 3d, for example. If the above avatar set includes the head A of the group owner and the heads B, C, D, E, and F of the five group members, the group chat avatar generated by the above-mentioned execution subject may be shown in FIG. 3e, for example.
需要强调的是,本实施例不对群聊头像中群主的头像以及群成员的头像的位置做任何限定。It should be emphasized that this embodiment does not limit the position of the group owner's avatar and the group member's avatar in the group chat avatar.
在本实施例中,上述执行主体可以存储有群聊头像模板集合。每个群聊头像模板可以对应头像数量。其中,头像数量不大于上述头像数量上限。上述执行主体可以从群聊头像模板集合中选取出与上述头像集合所包括的头像的数量对应的群聊头像模板作为目标群聊头像模板。而后上述执行主体可以基于上述头像集合和目标群聊头像模板,生成上述目标群聊的群聊头像。In this embodiment, the execution subject may store a group chat avatar template set. Each group chat avatar template can correspond to the number of avatars. Among them, the number of avatars is not greater than the upper limit of the number of avatars. The execution subject may select a group chat avatar template corresponding to the number of avatars included in the above avatar set from the group chat avatar template set as the target group chat avatar template. Then, the execution subject may generate the group chat avatar of the target group chat based on the avatar set and the target group chat avatar template.
这里,每个群聊头像模板可以包括用于放置群主的头像的第一区域。所对应的头像数量大于1的群聊头像模板在包括第一区域的同时,还包括至少一个用于放置群成员的头像的第二区域。其中,第一区域的范围大于第二区域的范围。上述执行主体可以将上述头像集合中的群主的头像放置到目标群聊头像模板中的第一区域,以及将上述头像集合中的群成员的头像放置到目标群聊头像模板中的第二区域。而后上述执行主体可以将经放置头像后的目标群聊头像模板生成上述目标群聊的群聊头像。需要说明的是,上述执行主体例如可以将上述头像集合中的群成员的头像随机地放置到目标群聊头像模板中的第二区域。Here, each group chat avatar template may include a first area for placing the group owner's avatar. The group chat avatar template corresponding to the number of avatars greater than 1 includes at least one second area for placing group members' avatars while including the first area. The range of the first area is larger than the range of the second area. The execution subject may place the head of the group owner in the avatar set in the first area of the target group chat avatar template, and place the head of the group member in the avatar set in the second area of the target group chat avatar template . Then, the above-mentioned execution subject may generate the group chat avatar of the target group chat from the target group chat avatar template after the avatar is placed. It should be noted that, for example, the execution subject may randomly place the avatar of the group member in the avatar set to the second area in the target group chat avatar template.
在本实施例的一些可选的实现方式中,为了使群成员的头像获得更好的展示,群聊头像模板中的第二区域还可以预先对应序号。上述执行主体可以获取上述至少一位群成员的设定属性的属性值,而后基于获取到的属性值,对上述至少一位群成员的头像进行排序,然后按照上述至少一位群成员的头像的顺序 号,将该头像放置到目标群聊头像模板中的相应的第二区域。In some optional implementations of this embodiment, in order to obtain a better display of the group member's avatar, the second area in the group chat avatar template may also correspond to a serial number in advance. The execution subject may obtain the attribute values of the set attributes of the at least one group member, and then sort the avatars of the at least one group member based on the acquired attribute values, and then according to the avatars of the at least one group member Sequence number, place the avatar in the corresponding second area in the target group chat avatar template.
其中,一位群成员的一项设定属性可表征该群成员的一个维度的属性。设定属性例如可以包括但不限于入群时间、地理位置、头像搭配度、群内活跃度或群贡献度等等。头像搭配度例如可以用于表征群成员的头像与群主的头像之间的色调和/或风格等的搭配度。需要指出的是,上述第一设备上可以运行着用于实时或定期地统计通过上述社交应用创建的群聊的群成员的设定属性的属性值的线程。因而,上述执行主体可以从该线程统计的数据中获取上述目标群聊的群成员的一项或多项设定属性的属性值。Among them, a set attribute of a group member can characterize the attribute of one dimension of the group member. The set attributes may include, for example, but not limited to group entry time, geographic location, avatar matching degree, group activity degree or group contribution degree, and so on. The avatar collocation degree can be used to characterize the gradation degree of the color tone and/or style between the group member avatar and the group owner avatar, for example. It should be noted that the first device may run a thread for real-time or periodic statistics of the attribute values of the set attributes of the group members of the group chat created by the social application. Therefore, the execution subject may obtain the attribute value of one or more set attributes of the group member of the target group chat from the data collected by the thread.
具体地,若设定属性为入群时间,则上述执行主体可以按照入群时间的属性值由早到晚的顺序,对上述至少一位群成员的头像进行排序。若设定属性为地理位置,则上述执行主体在获取上述至少一位群成员的地理位置的属性值时,还可以获取上述目标群聊的群主的地理位置的属性值,而后基于获取到的地理位置的属性值,计算出上述至少一位群成员与群主之间的距离,然后按照距离由近到远的顺序,对上述至少一位群成员的头像进行排序。若设定属性为头像搭配度,则上述执行主体可以按照头像搭配度的属性值由高到低的顺序,对上述至少一位群成员的头像进行排序。Specifically, if the attribute is set to the group joining time, the execution subject may sort the avatars of the at least one group member according to the order of the attribute value of the group joining time from early to late. If the attribute is set to geographic location, when the execution subject obtains the attribute value of the geographic location of the at least one group member, the attribute value of the geographic location of the group owner of the target group chat can also be acquired, and then based on the acquired Based on the attribute value of the geographic location, the distance between the at least one group member and the group owner is calculated, and then the avatars of the at least one group member are sorted according to the distance from the closest to the farthest. If the attribute is set to the avatar collocation degree, the execution subject may sort the avatars of the at least one group member according to the order of the attribute values of the avatar collocation degree from high to low.
应该理解,设定属性以及基于设定属性的属性值对上述至少一位群成员的头像进行排序的方法是可以根据实际需要调整的,在此不做具体限定。It should be understood that the method of setting attributes and sorting the avatars of the at least one group member based on the attribute values of the setting attributes can be adjusted according to actual needs, and is not specifically limited herein.
本申请的上述实施例提供的方法,通过获取与目标群聊的群聊头像有关的头像集合,其中,头像集合包括目标群聊的群主的头像以及目标群聊中至少一位群成员的头像,以便基于头像集合,生成目标群聊的群聊头像,其中,该群聊头像在呈现时包括群主的头像以及该至少一位群成员的头像,且该群聊头像中群主的头像的显示区域大于该至少一位群成员的头像的显示区域。本申请的上述实施例提供的方案实现了富于针对性的信息生成。让群聊头像中群主的头像占据较大的显示区域,可以使群主的头像获得更好的展示。The method provided in the above embodiment of the present application obtains an avatar set related to the group chat avatar of the target group chat, where the avatar set includes the avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat , So as to generate a group chat avatar of the target group chat based on the avatar set, wherein the group chat avatar includes the group avatar and the at least one group member avatar when presented, and the group avatar of the group chat avatar The display area is larger than the display area of the at least one group member's avatar. The solution provided by the above-mentioned embodiments of the present application realizes targeted information generation. Allowing the group owner's avatar to occupy a larger display area in the group chat avatar can make the group owner's avatar better displayed.
进一步参考图4,其示出了用于生成群聊头像的方法的一个实施例的流程400。该用于生成群聊头像的方法的流程400,包括以下步骤:With further reference to FIG. 4, it shows a
步骤401,若目标群聊的群主以及群成员的数量超过目标群聊的群聊头像能够显示的头像数量上限,则获取目标群聊的群成员的设定属性的属性值。Step 401: If the number of the group owner and the group members of the target group chat exceeds the upper limit of the number of avatars that can be displayed by the group chat avatar of the target group chat, the attribute value of the set attribute of the group member of the target group chat is obtained.
在本实施例中,用生成群聊头像的方法的执行主体可以是第一设备(例如图1所示的设备105),也可以是与第一设备通信连接的第二设备(例如图1所示的设备101、102、103)。In this embodiment, the execution subject of the method for generating a group chat avatar may be the first device (for example, the
上述第二设备上可以安装有上述第一设备所支持的社交应用。上述目标群聊可以是上述第二设备所归属的用户通过该社交应用请求创建的群聊。这里,上述目标群聊可以包括群主和群成员。其中,群主可以指具有所在的群聊的管理权限的用户。对于一个新建的群聊,该群聊的群主一般是请求创建该群聊的用户。需要指出的是,本申请实施例中的群成员为非群主;本实施例的社交应用指具有社交功能的应用,该社交应用可以具有除社交以外的其他功能,在一些实施例中,该社交应用的主要功能为非社交功能。A social application supported by the first device may be installed on the second device. The target group chat may be a group chat created by a user to whom the second device belongs to through the social application request. Here, the above-mentioned target group chat may include a group owner and a group member. The group owner may refer to a user who has the management authority of the group chat. For a newly created group chat, the owner of the group chat is generally the user who requested to create the group chat. It should be noted that the group members in the embodiments of the present application are non-group owners; the social application in this embodiment refers to an application with a social function, and the social application may have functions other than social. In some embodiments, the The main functions of social applications are non-social functions.
当上述第二设备所归属的用户通过上述社交应用新建上述目标群聊时,若上述目标群聊的群主以及群成员的数量超过上述目标群聊的群聊头像能够显示的头像数量上限,则上述执行主体可以获取上述目标群聊的群成员的设定属性的属性值。其中,设定属性例如可以包括但不限于入群时间、地理位置、头像搭配度、群内活跃度或群贡献度等等。其中,头像搭配度可以用于表征群成员的头像与群主的头像之间的色调和/或风格等的搭配度。对于设定属性的解释说明,可参看图2所示实施例中的相关说明,在此不再赘述。When a user belonging to the second device creates the target group chat through the social application, if the number of group owners and group members of the target group chat exceeds the upper limit of the number of avatars that can be displayed by the group chat avatar of the target group chat, then The execution subject may obtain the attribute value of the set attribute of the group member of the target group chat. The set attributes may include, for example, but not limited to group entry time, geographic location, avatar collocation degree, group activity degree or group contribution degree, and so on. The avatar collocation degree can be used to characterize the collocation degree of the color tone and/or style between the group member's avatar and the group owner's avatar. For the explanation of setting attributes, please refer to the relevant description in the embodiment shown in FIG. 2, which will not be repeated here.
步骤402,基于获取到的属性值,从目标群聊的群成员中选择至少一位群成员。Step 402: Select at least one group member from the group members of the target group chat based on the acquired attribute value.
在本实施例中,上述执行主体可以基于获取到的属性值,从上述目标群聊的群成员中选择至少一位群成员。其中,该至少一位群成员的数量不大于上述头像数量上限与预设自然数的差值。作为示例,假设上述头像数量上限为6,上述头像数量上限与预设自然数1的差值为5。若上述目标群聊的群主以及群成员的数量超过6,则上述执行主体可以从上述目标群聊的群成员中选择5位群成员。该预设自然数通常表示群主数量。In this embodiment, the execution subject may select at least one group member from the group members of the target group chat based on the acquired attribute value. Wherein, the number of the at least one group member is not greater than the difference between the upper limit of the number of avatars and the preset natural number. As an example, suppose that the upper limit of the number of avatars is 6, and the difference between the upper limit of the number of avatars and the preset natural number 1 is 5. If the number of the group owner and the group members of the target group chat exceeds 6, the execution subject may select 5 group members from the group members of the target group chat. The preset natural number usually indicates the number of group owners.
作为示例,若设定属性为入群时间,则上述执行主体可以按照入群时间的属性值由早到晚的顺序,从上述目标群聊的群成员中选择至少一位群成员。例如,若上述头像数量上限为6,预设自然数为1,则上述执行主体可以从上述目标群聊的群成员中选择入群时间最早的5位群成员。若设定属性为头像搭配度, 则上述执行主体可以按照头像搭配度的属性值由高到低的顺序,从上述目标群聊的群成员中选择至少一位群成员。As an example, if the attribute is set to the group joining time, the execution subject may select at least one group member from the group members of the target group chat according to the order of the property value of the group joining time from early to late. For example, if the upper limit of the number of avatars is 6, and the preset natural number is 1, the execution subject may select 5 group members with the earliest group joining time from the group members of the target group chat. If the attribute is set to the avatar collocation degree, the above-mentioned execution subject may select at least one group member from the group members of the target group chat according to the order of the attribute values of the avatar collocation degree from high to low.
若设定属性为地理位置,则上述执行主体在获取上述目标群聊的群成员的地理位置的属性值时,还可以获取上述目标群聊的群主的地理位置的属性值,而后基于获取到的地理位置的属性值,计算出上述目标群聊的群成员与群主之间的距离,然后按照距离由近到远的顺序,从上述目标群聊的群成员中选择至少一位群成员。或者,若设定属性为地理位置,则上述执行主体可以基于获取到的地理位置的属性值,对上述目标群聊的群成员进行聚集地划分,而后从位于划分出的聚集地中的群成员中选择至少一位群成员。If the attribute is set to geographic location, when the execution subject obtains the attribute value of the geographic location of the group member of the target group chat, the attribute value of the geographic location of the group owner of the target group chat can also be obtained, and then based on the obtained Calculate the distance between the group member of the target group chat and the group owner, and then select at least one group member from the group members of the target group chat according to the order of distance from near to far. Or, if the attribute is set to a geographic location, the above-mentioned execution subject may divide the group members of the target group chat based on the acquired attribute value of the geographic location, and then from the group members located in the divided gathering places Select at least one group member.
应该理解,设定属性以及基于设定属性的属性值从上述目标群聊的群成员中选择至少一位群成员的方法是可以根据实际需要调整的,在此不做具体限定。It should be understood that the method of setting the attribute and selecting at least one group member from the group members of the target group chat based on the attribute value of the setting attribute can be adjusted according to actual needs, and is not specifically limited herein.
步骤403,生成包括目标群聊的群主的头像以及所选择的至少一位群成员的头像的头像集合。Step 403: Generate an avatar set including the avatar of the group owner of the target group chat and the avatar of the selected at least one group member.
在本实施例中,上述执行主体在执行完步骤402后,便可以生成包括上述目标群聊的群主的头像以及所选择的至少一位群成员的头像的头像集合。例如,上述执行主体可以获取上述目标群聊的群主的头像以及所选择的至少一位群成员的头像,而后将获取到的头像组成上述头像集合。In this embodiment, after performing the
步骤404,基于头像集合,生成目标群聊的群聊头像。Step 404: Based on the avatar set, generate a group chat avatar of the target group chat.
在本实施例中,上述执行主体在生成上述头像集合之后,可以基于上述头像集合,生成目标群聊的群聊头像。其中,该群聊头像在呈现时可以包括群主的头像以及所选择的至少一位群成员的头像,且该群聊头像中群主的头像的显示区域可以大于所选择的至少一位群成员的头像的显示区域。针对步骤404的解释说明,可参看图2所示实施例中的步骤202的相关说明,在此不再赘述。In this embodiment, after generating the avatar set, the execution subject may generate a group chat avatar of the target group chat based on the avatar set. Wherein, the group chat avatar may include a group owner's avatar and at least one selected group member's avatar when presented, and the group chat avatar's avatar's avatar display area in the group chat avatar may be larger than the selected at least one group member Display area of your avatar. For the explanation of
从图4中可以看出,与图2对应的实施例相比,本实施例中的用于生成群聊头像的方法的流程400突出了对获取与目标群聊的群聊头像有关的头像集合的方法进行扩展的步骤。由此,本实施例描述的方案可以实现信息处理的多样性,以及可以使目标群聊的群主以及群成员的头像获得更好的展示。As can be seen from FIG. 4, compared with the embodiment corresponding to FIG. 2, the
在图2和图4分别对应的实施例提供的用于生成群聊头像的方法的一些可 选的实现方式中,该用于生成群聊头像的方法的执行主体在基于头像集合,生成目标群聊的群聊头像之后,可以实时地检测目标群聊的群主是否发生变更。通常,群主请求退出上述目标群聊时,以及群主请求转让上述目标群聊的管理权限时,均可以触发群主的变更。上述执行主体可以响应于检测到上述目标群聊的群主发生变更,将上述目标群聊的群聊头像中的变更之前的群主的头像替换为变更之后的群主的头像。In some optional implementations of the method for generating a group chat avatar provided in the embodiments corresponding to FIG. 2 and FIG. 4, respectively, the execution subject of the method for generating a group chat avatar generates a target group based on the avatar set After the group chat avatar, you can detect whether the group owner of the target group chat has changed in real time. Generally, when the group owner requests to quit the above-mentioned target group chat, and when the group owner requests to transfer the management authority of the target group chat, the change of the group owner can be triggered. In response to detecting that the group owner of the target group chat has changed, the execution subject may replace the group owner's avatar before the change in the target group chat's group chat avatar with the changed group owner's avatar.
在图2和图4分别对应的实施例提供的用于生成群聊头像的方法的一些可选的实现方式中,上述执行主体也可以实时地检测头像包含在上述目标群聊的群聊头像中的目标群成员是否退出上述目标群聊。这里,当有目标群成员退出上述目标群聊时,上述执行主体例如可以接收到相应的退群通知。上述执行主体可以响应于检测到目标群成员退出上述目标群聊,且上述目标群聊的群主以及群成员的数量少于上述目标群聊的群聊头像能够显示的头像数量上限,从上述目标群聊的群聊头像中移除该目标群成员的头像。In some optional implementations of the method for generating a group chat avatar provided in the embodiments corresponding to FIGS. 2 and 4, respectively, the above-mentioned execution subject may also detect that the avatar is included in the group chat avatar of the target group chat in real time Whether the members of the target group quit the above target group chat. Here, when a target group member exits the target group chat, the execution subject may receive a corresponding exit group notification, for example. The execution subject may respond to detecting that the target group member exits the target group chat, and the number of group owners and group members of the target group chat is less than the upper limit of the number of avatars that can be displayed by the group chat avatar of the target group chat. Remove the avatar of the target group member from the group chat avatar of group chat.
此外,上述执行主体还可以响应于检测到头像包含在上述目标群聊的群聊头像中的目标群成员退出上述目标群聊,且上述目标群聊的群主以及群成员的数量不少于上述头像数量上限,从上述目标群聊的群聊头像中移除该目标群成员的头像,以及从上述目标群聊的群成员中选择至少一位群成员,将所选择的至少一位群成员的头像加入上述目标群聊的群聊头像。这里,上述执行主体可以基于该目标群成员的数量,从上述目标群聊的群成员中选择至少一位群成员。该至少一位群成员的数量可以与该目标群成员的数量相同。In addition, the execution subject may also respond to the target group member exiting the target group chat in response to detecting that the avatar is included in the group chat avatar of the target group chat, and the number of the group owner and group members of the target group chat is not less than the above Maximum number of avatars, remove the avatar of the target group member from the group chat avatar of the above target group chat, and select at least one group member from the group member of the above target group chat The avatar is added to the group chat avatar of the above target group chat. Here, the execution subject may select at least one group member from the group members of the target group chat based on the number of the target group members. The number of the at least one group member may be the same as the number of the target group member.
需要说明的是,上述执行主体在从上述目标群聊的群聊头像中移除目标群成员的头像之后,可以从上述目标群聊的群成员中随机地选择至少一位群成员。或者,上述执行主体在从上述目标群聊的群聊头像中移除目标群成员的头像之后,也可以获取上述目标群聊的群成员的设定属性的属性值,以及基于获取到的属性值,从上述目标群聊的群成员中选择至少一位群成员。需要指出的是,此处的设定属性例如可以包括但不限于入群时间、地理位置、头像搭配度、群内活跃度或群贡献度等等。It should be noted that, after removing the avatar of the target group member from the group chat avatar of the target group chat, the execution subject may randomly select at least one group member from the group member of the target group chat. Alternatively, after removing the avatar of the target group member from the group chat avatar of the target group chat, the execution subject may also obtain the attribute value of the set attribute of the group member of the target group chat, and based on the acquired attribute value , Select at least one group member from the group members in the above target group chat. It should be noted that the setting attributes here may include, for example, but not limited to group entry time, geographic location, avatar matching degree, group activity degree or group contribution degree, and so on.
其中,群内活跃度可以用于表征群成员在上述目标群聊中的活跃程度。群内活跃度例如可以基于群成员的以下至少一项计算得到:打开上述目标群聊的 聊天窗口的频率和/或时长、在该聊天窗口内的聊天条数、聊天字数、聊天频率和/或聊天时长。聊天时长例如可以根据群成员发布聊天消息的时间估计,如若群成员在发布一条聊天消息后的第一设定时长(例如1分钟或2分钟等等)内又发布了一条新聊天消息,则可以判断群成员处于聊天状态。当然,聊天时长也可以根据群成员所使用的设备的屏幕未锁屏且打开该聊天窗口的时间计算等等。应该理解,群内活跃度可以基于任何用于判断群成员是否活跃的参数计算得到,在此不做具体限定。Among them, the activity within the group can be used to characterize the activity of the group members in the target group chat. The intra-group activity can be calculated based on, for example, at least one of the following: the frequency and/or duration of opening the chat window of the target group chat, the number of chats in the chat window, the number of chat words, the chat frequency, and/or The length of the chat. For example, the chat duration can be estimated based on the time when a group member publishes a chat message. If a group member publishes a new chat message within the first set duration (for example, 1 minute or 2 minutes, etc.) after publishing a chat message, you can Determine that the group members are in chat. Of course, the duration of the chat can also be calculated based on the time when the screen of the device used by the group member is unlocked and the chat window is opened. It should be understood that the intra-group activity can be calculated based on any parameter used to determine whether the group members are active, and is not specifically limited here.
群贡献度可以用于表征群成员对上述目标群聊的贡献程度。群贡献度可以基于群成员的以下至少一项计算得到:邀请他人加入上述目标群聊的邀请数量、所邀请的他人加入上述目标群聊后的群内活跃度和/或群贡献度、在上述目标群聊内发送资源的数量和/或频率、在上述目标群聊内上传文件的数量和/或上传的文件被下载的数量等等。这里,资源包括可以通过互联网分配的虚拟物品,例如,资源可以包括但不限于红包、优惠券、抵用券等。在上述目标群聊内发送资源的数量可以指入群后的资源总数或总金额,也可以指最近第二设定时长(例如一周、半个月或1个月等等)内的资源总数或总金额。The group contribution can be used to characterize the contribution of group members to the target group chat. The group contribution can be calculated based on at least one of the following: the number of invitations to invite others to join the above-mentioned target group chat, the group activity and/or group contribution after the invited others join the above-mentioned target group chat, in the above The number and/or frequency of resources sent in the target group chat, the number of files uploaded in the target group chat and/or the number of uploaded files downloaded, and so on. Here, the resources include virtual items that can be distributed through the Internet. For example, the resources may include, but are not limited to, red envelopes, coupons, and coupons. The number of resources sent in the above target group chat can refer to the total number or total amount of resources after joining the group, or it can refer to the total number of resources within the latest second set duration (such as one week, half month, or one month, etc.) or total amount.
若设定属性为入群时间、地理位置或头像搭配度,则群成员的选择方法可参看步骤402的相关说明,在此不再赘述。若设定属性为群内活跃度,则上述执行主体可以按照群内活跃度的属性值由高到低的顺序,从上述目标群聊的群成员中选择至少一位群成员。若设定属性为群贡献度,则上述执行主体可以按照群贡献度的属性值由高到低的顺序,从上述目标群聊的群成员中选择至少一位群成员。If the setting attribute is group joining time, geographic location or avatar matching degree, the method for selecting group members may refer to the relevant description in
在图2和图4分别对应的实施例提供的用于生成群聊头像的方法的一些可选的实现方式中,上述执行主体可以响应于确定当前时刻到达目标时刻,执行以下更新操作:从上述目标群聊的群成员中选择至少一位群成员;确定所选择的至少一位群成员和上述目标群聊的群聊头像所关联的群成员是否一致,其中,该群聊头像所关联的群成员为头像包含在该群聊头像内的群成员;若不一致,则基于所选择的至少一位群成员的头像,对上述目标群聊的群聊头像进行更新。需要说明的是,目标时刻例如可以是每天、每周或每月等的一个特定时间点,也可以是与上一次执行上述更新操作时的时间点之间的时间间隔达到第三设 定时长的时刻,在此不做具体限定。实践中,第三设定时长是可以根据实际需要设置的。In some alternative implementations of the method for generating a group chat avatar provided in the embodiments corresponding to FIGS. 2 and 4, respectively, the above-mentioned execution subject may perform the following update operation in response to determining that the current time reaches the target time: from the above Select at least one group member among the group members of the target group chat; determine whether the selected at least one group member is consistent with the group member associated with the group chat avatar of the above target group chat, where the group associated with the group chat avatar The members are group members whose avatars are included in the group chat avatar; if they are inconsistent, the group chat avatar of the target group chat is updated based on the selected at least one group member's avatar. It should be noted that the target time may be, for example, a specific time point such as daily, weekly, or monthly, or the time interval between the time point when the above update operation was last performed and the third set duration At this time, there is no specific limit here. In practice, the third set duration can be set according to actual needs.
需要说明的是,上述执行主体在执行上述更新操作时,若上述目标群聊的群主以及群成员的数量不超过上述头像数量上限,则上述执行主体可以选择上述目标群聊的所有群成员。若上述目标群聊的群主以及群成员的数量超过上述头像数量上限,则上述执行主体可以从上述目标群聊的群成员中随机地选择至少一位群成员,或者采用图4所示实施例中的步骤401和步骤402所示的实现方式从上述目标群聊的群成员中选择至少一位群成员。It should be noted that, when the execution subject performs the update operation, if the number of the group owner and group members of the target group chat does not exceed the upper limit of the number of avatars, the execution subject may select all group members of the target group chat. If the number of the group owner and group members of the target group chat exceeds the upper limit of the number of avatars, the execution subject may randomly select at least one group member from the group members of the target group chat, or use the embodiment shown in FIG. 4 The implementation manners shown in
实践中,上述执行主体在执行上述更新操作时,若确定所选择的至少一位群成员和上述目标群聊的群聊头像所关联的群成员不一致,则上述执行主体可以采用各种更新方法,基于所选择的至少一位群成员的头像,对上述目标群聊的群聊头像进行更新。In practice, when it is determined that the at least one selected group member and the group member associated with the group chat avatar of the target group chat are inconsistent when the above-mentioned executive body performs the above-mentioned update operation, the above-mentioned executive body may adopt various update methods, Based on the selected avatar of at least one group member, the group chat avatar of the target group chat is updated.
例如,若所选择的至少一位群成员包括上述目标群聊的群聊头像所关联的所有群成员,且所选择的至少一位群成员的数量大于上述目标群聊的群聊头像所关联的所有群成员的数量,则上述执行主体可以将所选择的至少一位群成员中的除上述目标群聊的群聊头像所关联的所有群成员以外的群成员的头像加入上述目标群聊的群聊头像。For example, if at least one selected group member includes all group members associated with the group chat avatar of the target group chat, and the number of at least one selected group member is greater than that associated with the group chat avatar of the target group chat The number of all group members, the above-mentioned executive body may add the avatars of group members other than all group members associated with the group chat avatar of the target group chat among the selected at least one group member to the target group chat group Chat avatar.
再例如,若上述目标群聊的群聊头像所关联的群成员中的至少部分群成员未包含在所选择的至少一位群成员中,则上述执行主体可以从上述目标群聊的群聊头像中移除未包含的上述至少部分群成员的头像,以及将所选择的至少一位群成员中的未包含在上述目标群聊的群聊头像所关联的群成员中的群成员的头像加入上述目标群聊的群聊头像。For another example, if at least some of the group members associated with the group chat avatar of the target group chat are not included in the selected at least one group member, the execution subject may select the group chat avatar from the target group chat Remove the avatars of at least some of the group members that are not included in the above, and add the avatars of group members that are not included in the group members associated with the group chat avatar of the target group chat among the selected at least one group member to the above Group chat avatar for target group chat.
在图2和图4分别对应的实施例提供的用于生成群聊头像的方法的一些可选的实现方式中,上述执行主体在响应于确定当前时刻到达目标时刻之后,还可以确定上述目标群聊的群成员是否发生变更,若确定发生变更,则执行上述更新操作。这里,上述执行主体本地可以存储有与上述目标群聊有关的、且能够被实时更新的群成员列表。若当前的群成员列表与上一次确定上述目标群聊的群成员是否发生变更时所查看的群成员列表不一致,则上述执行主体可以确定上述目标群聊的群成员发生变更。In some alternative implementations of the method for generating a group chat avatar provided in the embodiments corresponding to FIG. 2 and FIG. 4, respectively, the above-mentioned execution subject may determine the above-mentioned target group after reaching the target time in response to determining that the current time Whether the group member of the chat has changed, if it is determined that the change has occurred, the above update operation is performed. Here, the execution subject may locally store a group member list related to the target group chat and capable of being updated in real time. If the current group member list is inconsistent with the group member list viewed when the group member of the target group chat was determined last time, the execution subject may determine that the group member of the target group chat has changed.
进一步参考图5,其示出了用于生成群聊头像的方法的再一个实施例的流程500。该用于生成群聊头像的方法应用于第一设备(例如图1所示的设备105),包括以下步骤:With further reference to FIG. 5, it shows a
步骤501,获取与目标群聊的群聊头像有关的头像集合。Step 501: Acquire an avatar set related to the group chat avatar of the target group chat.
在本实施例中,与第一设备通信连接的第二设备(例如图1所示的设备101、102、103)上可以安装有第一设备所支持的社交应用。上述目标群聊可以是上述第二设备所归属的用户通过该社交应用请求创建的群聊。这里,上述目标群聊可以包括群主和群成员。其中,群主可以指具有所在的群聊的管理权限的用户。对于一个新建的群聊,该群聊的群主一般是请求创建该群聊的用户。需要指出的是,本实施例中的群成员为非群主;本实施例的社交应用指具有社交功能的应用,该社交应用可以具有除社交以外的其他功能,在一些实施例中,该社交应用的主要功能为非社交功能。In this embodiment, the second device (for example, the
当上述第二设备所归属的用户通过上述社交应用新建上述目标群聊时,上述第一设备可以获取与上述目标群聊的群聊头像有关的头像集合。这里,头像集合的获取方法可参看图2和图4分别所示的实施例中的相关说明,在此不再赘述。When the user to which the second device belongs belongs to create the target group chat through the social application, the first device may obtain an avatar set related to the group chat avatar of the target group chat. Here, for the method of acquiring the avatar set, please refer to the relevant descriptions in the embodiments shown in FIG. 2 and FIG. 4 respectively, which will not be repeated here.
步骤502,将头像集合发送至第二设备,以使第二设备基于头像集合,生成目标群聊的群聊头像。Step 502: Send the avatar set to the second device, so that the second device generates a group chat avatar of the target group chat based on the avatar set.
在本实施例中,上述第一设备可以将上述头像集合发送至上述第二设备,以使上述第二设备基于上述头像集合,生成上述目标群聊的群聊头像。其中,该群聊头像在呈现时可以包括群主的头像以及上述至少一位群成员的头像,且该群聊头像中群主的头像的显示区域可以大于上述至少一位群成员的头像的显示区域。这里,基于上述头像集合生成上述目标群聊的群聊头像的方法可参看图2和图4分别所示的实施例中的相关说明,在此不再赘述。In this embodiment, the first device may send the avatar set to the second device, so that the second device generates the group chat avatar of the target group chat based on the avatar set. Wherein, the group chat avatar may include the group owner's avatar and the at least one group member's avatar when presented, and the display area of the group chat's avatar of the group chat avatar may be larger than the display of the at least one group member's avatar area. Here, for the method of generating the group chat avatar of the target group chat based on the avatar set, reference may be made to the relevant description in the embodiments shown in FIG. 2 and FIG. 4 respectively, and details are not described herein again.
在本实施例的一些可选的实现方式中,在上述第二设备基于上述头像集合生成上述目标群聊的群聊头像之后,上述第一设备可以响应于检测到上述目标群聊的群主发生变更,生成包括上述目标群聊的变更之后的群主的头像的第一指示信息,以及将第一指示信息发送至上述第二设备。其中,第一指示信息可以用于指示将上述目标群聊的群聊头像中的变更之前的群主的头像替换为变 更之后的群主的头像。In some optional implementations of this embodiment, after the second device generates the group chat avatar of the target group chat based on the avatar set, the first device may respond to detecting that the group owner of the target group chat occurs Change, generate first indication information including the group owner's avatar after the target group chat is changed, and send the first indication information to the second device. The first indication information may be used to instruct to replace the group owner's avatar before the change with the group owner's avatar after the change in the group chat avatar of the target group chat.
在本实施例的一些可选的实现方式中,在上述第二设备基于上述头像集合生成上述目标群聊的群聊头像之后,上述第一设备可以响应于检测到头像包含在上述目标群聊的群聊头像中的目标群成员退出上述目标群聊,且上述目标群聊的群主以及群成员的数量少于上述目标群聊的群聊头像能够显示的头像数量上限,生成第二指示信息,以及向上述第二设备发送第二指示信息。其中,第二指示信息可以用于指示从上述目标群聊的群聊头像中移除上述目标群成员的头像。In some optional implementations of this embodiment, after the second device generates the group chat avatar of the target group chat based on the avatar set, the first device may respond to detecting that the avatar is included in the target group chat The target group members in the group chat avatar quit the above target group chat, and the number of group owners and group members of the above target group chat is less than the upper limit of the number of avatars that the group chat avatar of the target group chat can display, generating second indication information, And sending second indication information to the second device. The second indication information may be used to instruct to remove the avatar of the target group member from the group chat avatar of the target group chat.
在本实施例的一些可选的实现方式中,在上述第二设备基于上述头像集合生成上述目标群聊的群聊头像之后,上述第一设备可以响应于检测到上述目标群成员退出上述目标群聊,且上述目标群聊的群主以及群成员的数量不少于上述目标群聊的群聊头像能够显示的头像数量上限,从上述目标群聊的群成员中选择至少一位群成员,生成包括所选择的至少一位群成员的头像的第三指示信息,以及向上述第二设备发送第三指示信息。其中,第三指示信息可以用于指示从上述目标群聊的群聊头像中移除上述目标群成员的头像,以及将所选择的至少一位群成员的头像加入上述目标群聊的群聊头像。In some optional implementations of this embodiment, after the second device generates the group chat avatar of the target group chat based on the avatar set, the first device may exit the target group in response to detecting that the target group member Chat, and the number of the group owner and group members of the above target group chat is not less than the maximum number of avatars that can be displayed by the group chat avatar of the above target group chat, select at least one group member from the group members of the above target group chat to generate The third indication information including the selected avatar of at least one group member, and sending the third indication information to the second device. The third indication information may be used to instruct to remove the avatar of the target group member from the group chat avatar of the target group chat, and add the selected avatar of at least one group member to the group chat avatar of the target group chat .
在本实施例的一些可选的实现方式中,在上述第二设备基于上述头像集合生成上述目标群聊的群聊头像之后,上述第一设备还可以响应于确定当前时刻到达目标时刻,执行以下第一处理操作:从上述目标群聊的群成员中选择至少一位群成员;确定所选择的至少一位群成员和上述目标群聊的群聊头像所关联的群成员是否一致;若不一致,则将所选择的至少一位群成员的头像发送至上述第二设备,以使上述第二设备基于接收到的头像对上述目标群聊的群聊头像进行更新。In some optional implementations of this embodiment, after the second device generates the group chat avatar of the target group chat based on the avatar set, the first device may also perform the following in response to determining that the current time reaches the target time First processing operation: select at least one group member from the group members of the target group chat; determine whether the selected at least one group member is consistent with the group member associated with the group chat avatar of the target group chat; if not, Then, the avatar of the selected at least one group member is sent to the second device, so that the second device updates the group chat avatar of the target group chat based on the received avatar.
在本实施例的一些可选的实现方式中,在上述第二设备基于上述头像集合生成上述目标群聊的群聊头像之后,上述第一设备也可以响应于确定当前时刻到达目标时刻,执行以下第二处理操作:从上述目标群聊的群成员中选择至少一位群成员;确定所选择的至少一位群成员和上述目标群聊的群聊头像所关联的群成员是否一致;若不一致,则基于所选择的至少一位群成员的头像,生成第四指示信息,以及向上述第二设备发送第四指示信息。In some optional implementations of this embodiment, after the second device generates the group chat avatar of the target group chat based on the avatar set, the first device may also execute the following in response to determining that the current time reaches the target time Second processing operation: select at least one group member from the group members of the target group chat; determine whether the selected at least one group member is consistent with the group member associated with the group chat avatar of the target group chat; if not, Then, based on the selected avatar of at least one group member, generate fourth indication information, and send the fourth indication information to the second device.
作为示例,若所选择的至少一位群成员包括上述目标群聊的群聊头像所关联的所有群成员,且所选择的至少一位群成员的数量大于上述目标群聊的群聊头像所关联的所有群成员的数量,则上述第一设备可以确定第四指示信息包括所选择的至少一位群成员中的除上述目标群聊的群聊头像所关联的所有群成员以外的群成员的头像。此外,第四指示信息可以用于指示将所选择的至少一位群成员中的除上述目标群聊的群聊头像所关联的所有群成员以外的群成员的头像加入上述目标群聊的群聊头像。As an example, if at least one selected group member includes all group members associated with the group chat avatar of the target group chat, and the number of the selected at least one group member is greater than that associated with the group chat avatar of the target group chat The number of all group members of, the first device may determine that the fourth indication information includes the avatar of the group member except all group members associated with the group chat avatar of the target group chat among the selected at least one group member . In addition, the fourth instruction information may be used to instruct the group avatars of the group members other than all group members associated with the group chat avatar of the target group chat among the selected at least one group member to join the group chat of the target group chat Avatar.
若上述目标群聊的群聊头像所关联的群成员中的至少部分群成员未包含在所选择的至少一位群成员中,则上述执行主体可以确定第四指示信息包括所选择的至少一位群成员中的未包含在上述目标群聊的群聊头像所关联的群成员中的群成员的头像。此外,第四指示信息可以用于指示从上述目标群聊的群聊头像中移除未包含的上述至少部分群成员的头像,以及将所选择的至少一位群成员中的未包含在上述目标群聊的群聊头像所关联的群成员中的群成员的头像加入上述目标群聊的群聊头像。If at least part of the group members associated with the group chat avatar of the target group chat are not included in the selected at least one group member, the execution subject may determine that the fourth instruction information includes the selected at least one The group member's avatar is not included in the group member associated with the group chat avatar of the target group chat. In addition, the fourth indication information may be used to instruct to remove the unavailable at least part of the group member's avatar from the group chat avatar of the target group chat, and to include the selected at least one group member not included in the target The group avatar of the group member in the group member associated with the group chat avatar of the group chat is added to the group chat avatar of the above target group chat.
在本实施例的一些可选的实现方式中,上述第一设备在响应于确定当前时刻到达目标时刻之后,可以确定上述目标群聊的群成员是否发生变更,若发生变更,则执行上述第一处理操作或上述第二处理操作。In some optional implementations of this embodiment, after responding to the determination that the current time reaches the target time, the first device may determine whether the group member of the target group chat has changed, and if the change occurs, execute the first The processing operation or the above-mentioned second processing operation.
本申请的上述实施例提供的方法,通过第一设备获取与目标群聊的群聊头像有关的头像集合,其中,头像集合包括目标群聊的群主的头像以及目标群聊中至少一位群成员的头像,以便将头像集合发送至第二设备,以使第二设备基于头像集合,生成目标群聊的群聊头像,其中,群聊头像在呈现时包括群主的头像以及该至少一位群成员的头像,且群聊头像中群主的头像的显示区域大于该至少一位群成员的头像的显示区域。本申请的上述实施例提供的方案通过第一设备与第二设备之间的交互,实现了富于针对性的信息生成,还可以实现信息处理的多样性。让群聊头像中群主的头像占据较大的显示区域,可以使群主的头像获得更好的展示。The method provided in the above embodiment of the present application obtains an avatar set related to the group chat avatar of the target group chat through the first device, where the avatar set includes the avatar of the group owner of the target group chat and at least one group in the target group chat The avatar of the member, so as to send the avatar set to the second device, so that the second device generates a group chat avatar of the target group chat based on the avatar set, where the group chat avatar includes the avatar of the group owner and the at least one A group member's avatar, and the display area of the group owner's avatar in the group chat avatar is larger than the display area of the at least one group member's avatar. The solution provided by the above-mentioned embodiments of the present application realizes targeted information generation through interaction between the first device and the second device, and can also achieve diversity in information processing. Allowing the group owner's avatar to occupy a larger display area in the group chat avatar can make the group owner's avatar better displayed.
下面参考图6,其示出了适于用来实现本申请实施例的计算机设备(例如图1所示的设备101、102、103、105)的计算机系统600的结构示意图。图6示出的计算机设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带 来任何限制。Reference is made to FIG. 6 below, which shows a schematic structural diagram of a
如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, the
以下部件连接至I/O接口605:包括键盘、鼠标等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。The following components are connected to the I/O interface 605: an
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本申请的系统中限定的上述功能。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product that includes a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the
需要说明的是,本申请所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基 带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in this application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In this application, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device. In this application, the computer-readable signal medium may include a data signal that is propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. . The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言-诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言-诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)-连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。The computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, the programming languages including object-oriented programming languages-such as Java, Smalltalk, C++, as well as conventional Procedural programming language-such as "C" language or similar programming language. The program code may be executed entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In situations involving remote computers, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, through an Internet service provider Internet connection).
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the drawings illustrate the possible implementation architecture, functions, and operations of the system, method, and computer program product according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the above-mentioned module, program segment, or part of code contains one or more for implementing a prescribed logical function Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks represented in succession may actually be executed in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and a combination of blocks in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be used It is realized by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括获取单元和生成单元。或者,也可以描述为:一种处理 器包括获取单元和发送单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取单元还可以被描述为“获取与目标群聊的群聊头像有关的头像集合的单元”。The units described in the embodiments of the present application may be implemented in software or hardware. The described unit may also be provided in the processor. For example, it may be described as: a processor includes an acquiring unit and a generating unit. Or, it can be described as: a processor includes an acquiring unit and a sending unit. In some cases, the names of these units do not constitute a limitation on the unit itself. For example, the obtaining unit may also be described as “a unit that obtains an avatar set related to the group chat avatar of the target group chat”.
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的计算机设备中所包含的;也可以是单独存在,而未装配入该计算机设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该计算机设备执行时,使得该计算机设备:获取与目标群聊的群聊头像有关的头像集合,其中,头像集合可以包括目标群聊的群主的头像以及目标群聊中至少一位群成员的头像;基于头像集合,生成目标群聊的群聊头像,其中,群聊头像在呈现时可以包括群主的头像以及该至少一位群成员的头像,且群聊头像中群主的头像的显示区域可以大于该至少一位群成员的头像的显示区域。或者,也可以使得该计算机设备:获取与目标群聊的群聊头像有关的头像集合,其中,头像集合可以包括目标群聊的群主的头像以及目标群聊中至少一位群成员的头像;将头像集合发送至第二设备,以使第二设备基于头像集合,生成目标群聊的群聊头像,其中,群聊头像在呈现时可以包括群主的头像以及该至少一位群成员的头像,且群聊头像中群主的头像的显示区域可以大于该至少一位群成员的头像的显示区域。As another aspect, the present application also provides a computer-readable medium, which may be included in the computer device described in the foregoing embodiments; or may exist alone without being assembled into the computer device in. The computer-readable medium carries one or more programs. When the one or more programs are executed by one of the computer devices, the computer device is caused to: obtain an avatar set related to the group chat avatar of the target group chat, where the avatar The collection may include the avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat; based on the avatar collection, a group chat avatar of the target group chat is generated, where the group chat avatar may include the group owner's The avatar and the at least one group member's avatar, and the display area of the group owner's avatar in the group chat avatar may be larger than the display area of the at least one group member's avatar. Or, the computer device may be caused to: obtain an avatar set related to the group chat avatar of the target group chat, where the avatar set may include the avatar of the group owner of the target group chat and the avatar of at least one group member in the target group chat; Sending the set of avatars to the second device, so that the second device generates a group chat avatar of the target group chat based on the set of avatars, where the group chat avatar may include the avatar of the group owner and the avatar of the at least one group member when presented , And the display area of the group owner's avatar in the group chat avatar may be larger than the display area of the at least one group member's avatar.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only the preferred embodiment of the present application and the explanation of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, but should also cover the above technical features or without departing from the above inventive concept. Other technical solutions formed by arbitrary combinations of equivalent features. For example, a technical solution formed by replacing the above features with technical features disclosed in this application (but not limited to) but having similar functions.
Claims (12)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811502183.1 | 2018-12-10 | ||
| CN201811502183.1A CN109656656A (en) | 2018-12-10 | 2018-12-10 | Method and apparatus for generating group chat head portrait |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020119540A1 true WO2020119540A1 (en) | 2020-06-18 |
Family
ID=66113416
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/122924 Ceased WO2020119540A1 (en) | 2018-12-10 | 2019-12-04 | Group profile picture generation method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109656656A (en) |
| WO (1) | WO2020119540A1 (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111049735A (en) * | 2019-12-23 | 2020-04-21 | 北京达佳互联信息技术有限公司 | Group head portrait display method, device, equipment and storage medium |
| CN113918897A (en) * | 2021-10-28 | 2022-01-11 | 上海尚往网络科技有限公司 | Method, apparatus, and medium for displaying application in application open platform |
| CN114205318A (en) * | 2020-08-31 | 2022-03-18 | 荣耀终端有限公司 | Head portrait display method and electronic equipment |
| CN115086265A (en) * | 2022-06-30 | 2022-09-20 | 上海掌门科技有限公司 | Method and device for generating group avatar information |
| CN116506389A (en) * | 2023-04-27 | 2023-07-28 | 北京河图联合创新科技有限公司 | User information processing method, device, electronic device and readable storage medium |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109656656A (en) * | 2018-12-10 | 2019-04-19 | 上海掌门科技有限公司 | Method and apparatus for generating group chat head portrait |
| CN110677267B (en) * | 2019-10-09 | 2021-11-23 | 上海连尚网络科技有限公司 | Information processing method and device |
| CN110990099A (en) * | 2019-11-29 | 2020-04-10 | 深圳乐信软件技术有限公司 | Avatar display method, device, device and storage medium |
| CN114338588A (en) * | 2020-09-29 | 2022-04-12 | 华为技术有限公司 | Mail processing method and device |
| CN112291074B (en) * | 2020-10-16 | 2023-05-16 | 深圳市富途网络科技有限公司 | Method, terminal and server for creating group chat |
| CN115080168B (en) * | 2022-06-30 | 2025-05-06 | 抖音视界有限公司 | Group avatar updating method, device, equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105516296A (en) * | 2015-12-03 | 2016-04-20 | 阿里巴巴集团控股有限公司 | Configuration method and device of group identification image |
| CN105681175A (en) * | 2016-03-22 | 2016-06-15 | 浙江翼信科技有限公司 | Method and device of modifying contact person head portrait in instant messaging application |
| CN106209574A (en) * | 2016-06-17 | 2016-12-07 | 广州爱九游信息技术有限公司 | Group's head portrait display system based on instant communication software, method and electronic equipment |
| CN106411695A (en) * | 2016-08-29 | 2017-02-15 | 广州华多网络科技有限公司 | User characteristic information area pendant dynamic updating method and device and smart terminal |
| CN109656656A (en) * | 2018-12-10 | 2019-04-19 | 上海掌门科技有限公司 | Method and apparatus for generating group chat head portrait |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105430473A (en) * | 2015-11-30 | 2016-03-23 | 天脉聚源(北京)科技有限公司 | Method and device for displaying head portrait of supporter |
-
2018
- 2018-12-10 CN CN201811502183.1A patent/CN109656656A/en active Pending
-
2019
- 2019-12-04 WO PCT/CN2019/122924 patent/WO2020119540A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105516296A (en) * | 2015-12-03 | 2016-04-20 | 阿里巴巴集团控股有限公司 | Configuration method and device of group identification image |
| CN105681175A (en) * | 2016-03-22 | 2016-06-15 | 浙江翼信科技有限公司 | Method and device of modifying contact person head portrait in instant messaging application |
| CN106209574A (en) * | 2016-06-17 | 2016-12-07 | 广州爱九游信息技术有限公司 | Group's head portrait display system based on instant communication software, method and electronic equipment |
| CN106411695A (en) * | 2016-08-29 | 2017-02-15 | 广州华多网络科技有限公司 | User characteristic information area pendant dynamic updating method and device and smart terminal |
| CN109656656A (en) * | 2018-12-10 | 2019-04-19 | 上海掌门科技有限公司 | Method and apparatus for generating group chat head portrait |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111049735A (en) * | 2019-12-23 | 2020-04-21 | 北京达佳互联信息技术有限公司 | Group head portrait display method, device, equipment and storage medium |
| CN111049735B (en) * | 2019-12-23 | 2022-07-22 | 北京达佳互联信息技术有限公司 | Group head portrait display method, device, equipment and storage medium |
| CN114205318A (en) * | 2020-08-31 | 2022-03-18 | 荣耀终端有限公司 | Head portrait display method and electronic equipment |
| CN114205318B (en) * | 2020-08-31 | 2023-12-08 | 荣耀终端有限公司 | Head portrait display method and electronic equipment |
| CN113918897A (en) * | 2021-10-28 | 2022-01-11 | 上海尚往网络科技有限公司 | Method, apparatus, and medium for displaying application in application open platform |
| CN115086265A (en) * | 2022-06-30 | 2022-09-20 | 上海掌门科技有限公司 | Method and device for generating group avatar information |
| CN116506389A (en) * | 2023-04-27 | 2023-07-28 | 北京河图联合创新科技有限公司 | User information processing method, device, electronic device and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109656656A (en) | 2019-04-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020119540A1 (en) | Group profile picture generation method and device | |
| CN110807710A (en) | Invitation data management method and system for user to invite friends | |
| CN110032447A (en) | Method and apparatus for distributing resource | |
| CN109478266A (en) | Resource allocation for database provisioning | |
| JP2014525092A (en) | Methods for associating third-party content with online document signatures | |
| WO2025124378A1 (en) | Interaction methods, apparatuses, device, and storage medium | |
| CN110708358A (en) | Session message processing method, electronic device, and computer-readable storage medium | |
| US11843674B2 (en) | Virtual workspace experience visualization and optimization | |
| US11615363B2 (en) | Digital chat conversation and virtual agent analytics | |
| WO2021203919A1 (en) | Method and apparatus for evaluating joint training model | |
| CN104579854A (en) | Crowdsourcing test method | |
| CN109743245B (en) | Method and device for creating a group | |
| WO2020030072A1 (en) | Method for allocating resource, method for obtaining resource, method for publishing resource, and device | |
| CN111162993A (en) | Information fusion method and device | |
| CN114328132A (en) | State monitoring method, apparatus, device and medium for external data source | |
| US20130166414A1 (en) | Personalized Demo Environment Based on Software Configuration Information | |
| CN110097457B (en) | Information generation method, electronic device, and computer-readable medium | |
| CN112348197A (en) | Model generation method and device based on federated learning | |
| CN113378346A (en) | Method and device for model simulation | |
| CN110673886B (en) | Method and device for generating thermodynamic diagrams | |
| CN108540567B (en) | Method and device for pushing information | |
| CN110858817A (en) | Method and device for joining group chats and receiving resources | |
| WO2025093005A1 (en) | Information display method and apparatus, device, and storage medium | |
| CN109408716B (en) | Method and device for pushing information | |
| CN110061907B (en) | Method and device for receiving and allocating resources |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19896633 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19896633 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.12.2021) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19896633 Country of ref document: EP Kind code of ref document: A1 |