CN108173742B - Image data processing method and device - Google Patents

Image data processing method and device Download PDF

Info

Publication number
CN108173742B
CN108173742B CN201711296981.9A CN201711296981A CN108173742B CN 108173742 B CN108173742 B CN 108173742B CN 201711296981 A CN201711296981 A CN 201711296981A CN 108173742 B CN108173742 B CN 108173742B
Authority
CN
China
Prior art keywords
target
group
target user
avatar
head portrait
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.)
Active
Application number
CN201711296981.9A
Other languages
Chinese (zh)
Other versions
CN108173742A (en
Inventor
黄平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201711296981.9A priority Critical patent/CN108173742B/en
Publication of CN108173742A publication Critical patent/CN108173742A/en
Application granted granted Critical
Publication of CN108173742B publication Critical patent/CN108173742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership

Abstract

The embodiment of the invention discloses an image data processing method and device, wherein the method comprises the following steps: the server acquires a group head portrait acquisition request sent by the terminal equipment, determines a target group requested by the group head portrait acquisition request, and acquires the total number of users in the target group; if the total number of the users is larger than the target number threshold, selecting a target user in the target group according to the avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to a target number threshold; and sending the head portrait of the target user to the terminal equipment so that the terminal equipment synthesizes the head portrait of the target user into a group head portrait corresponding to the target group. By adopting the invention, the display speed of the head portraits of the group can be improved, and the waste of terminal flow can be avoided.

Description

Image data processing method and device
Technical Field
The invention relates to the technical field of internet, in particular to an image data processing method and device.
Background
With the development of the internet, more and more users can use the instant messaging application to chat, and the instant messaging application can also create a group for a plurality of users, so that all the users in the group can receive the messages sent out in the group, and therefore, the functions of multi-user chat, multi-user video and the like can be realized through the group.
The current group may also generate a group avatar through the avatars of the users in the group, for example, if a user wants to display the group avatar on a terminal, the terminal of the user needs to load the avatars of all the users in the group first, and randomly select a plurality of avatars (for example, 9 avatars) from the avatars of all the users to compose the group avatar. When the number of the users in the group is huge, it will take a long time to load the head portraits of all the users in the group, and further the speed of displaying the head portraits of the group is affected; and the group avatar does not contain the avatars of all users in the group, so loading the avatars of all users causes waste of terminal traffic.
Disclosure of Invention
The embodiment of the invention provides an image data processing method and device, which can improve the display speed of a group head portrait and avoid waste of terminal flow.
One aspect of the present invention provides an image data processing method, including:
the method comprises the steps that a server obtains a group head portrait obtaining request sent by terminal equipment, determines a target group requested by the group head portrait obtaining request, and obtains the total number of users in the target group;
if the total number of the users is larger than a target number threshold, selecting a target user in the target group according to an avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to the target number threshold;
and sending the target user head portrait to the terminal equipment so that the terminal equipment synthesizes the target user head portrait into a group head portrait corresponding to the target group.
Selecting a target user in the target group according to the avatar selection rule, and acquiring a target user avatar corresponding to the target user, including:
acquiring group entering time corresponding to each user in the target group according to the avatar selection rule;
sequencing all users in the target group according to the sequence of the group entering time;
and selecting target users in sequence from all the sorted users, and acquiring the head portraits of the target users corresponding to the target users.
Selecting a target user in the target group according to the avatar selection rule, and acquiring a target user avatar corresponding to the target user, including:
according to the avatar selection rule, acquiring the avatar size corresponding to each user in the target group;
sequencing all users in the target group according to the sequence of the sizes of the head images of the users;
and selecting target users in sequence from all the sorted users, and acquiring the head portraits of the target users corresponding to the target users.
Selecting a target user in the target group according to the avatar selection rule, and acquiring a target user avatar corresponding to the target user, including:
acquiring the group liveness corresponding to each user in the target group according to the avatar selection rule;
sequencing all users in the target group according to the sequence of the group liveness;
and selecting target users in sequence from all the sorted users, and acquiring the head portraits of the target users corresponding to the target users.
The sending the target user avatar to the terminal device so that the terminal device synthesizes the target user avatar into a group avatar corresponding to the target group includes:
adjusting the size of the head portrait of the target user to a target size to obtain an adjusted head portrait of the target user;
and converting the format of the adjusted target user head portrait into a progressive picture format, and sending the adjusted target user head portrait in the progressive picture format to the terminal equipment in a layered manner, so that the terminal equipment loads the adjusted target user head portrait in the progressive picture format layer by layer, and synthesizes the loaded adjusted target user head portrait into a group head portrait corresponding to the target group.
Another aspect of the present invention provides an image data processing method, including:
the method comprises the steps that terminal equipment sends a group head portrait acquisition request to a server, so that the server determines a target group requested by the group head portrait acquisition request and acquires the total number of users in the target group, and if the total number of the users is larger than a target number threshold, a target user is selected in the target group according to a head portrait selection rule, and a target user head portrait corresponding to the target user is acquired; the number of target users is equal to the target number threshold;
and the terminal equipment receives the head portrait of the target user and synthesizes the head portrait of the target user into a group head portrait corresponding to the target group.
The receiving, by the terminal device, the target user avatar, and synthesizing the target user avatar into a group avatar corresponding to the target group, includes:
the terminal equipment asynchronously loads the head portrait of the target user and creates a plurality of independent unit display windows in a group head portrait display area; the number of independent unit display windows is equal to the target number threshold;
adding the head portrait of the target user which is loaded first to the corresponding independent unit display window for preferential display, and performing blank display on the independent unit display window corresponding to the unloaded head portrait of the target user;
and when all the target user head portraits are added to the corresponding independent unit display windows, determining a group head portraits display area containing all the target user head portraits as the group head portraits corresponding to the target groups.
Wherein, the creating a plurality of independent unit display windows in the group avatar display area specifically includes:
creating a plurality of independent unit display windows, determining the placing position of each independent unit display window in the group head portrait display area according to head portrait placing rules, and respectively adding each independent unit display window to the corresponding placing position in the group head portrait display area.
After the synthesizing the target user avatar into the group avatar corresponding to the target group, the method further includes:
if the terminal display interface does not contain the group head portrait corresponding to the target group, deleting the head portrait of the target user in the memory;
and if a group head portrait display request corresponding to the target group is detected on the terminal display interface, acquiring the head portrait of the target user in a cache according to the group head portrait display request, and re-synthesizing the head portrait of the target user into the group head portrait corresponding to the target group.
Another aspect of the present invention provides an image data processing apparatus comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a group head portrait acquisition request sent by terminal equipment, determining a target group requested by the group head portrait acquisition request and acquiring the total number of users in the target group;
the selecting module is used for selecting a target user in the target group according to an avatar selection rule and acquiring an avatar of the target user corresponding to the target user if the total number of the users is greater than a target number threshold; the number of target users is equal to the target number threshold;
and the head portrait sending module is used for sending the head portrait of the target user to the terminal equipment so as to enable the terminal equipment to synthesize the head portrait of the target user into a group head portrait corresponding to the target group.
Wherein the selection module comprises:
the time acquisition unit is used for acquiring the group entering time corresponding to each user in the target group according to the avatar selection rule;
the first sequencing unit is used for sequencing all the users in the target group according to the sequence of the group entering time;
and the first selection unit is used for sequentially selecting target users from all the sorted users and acquiring the head portraits of the target users corresponding to the target users.
Wherein the selection module comprises:
the size obtaining unit is used for obtaining the head portrait size of each user in the target group according to the head portrait selection rule;
the second sorting unit is used for sorting all the users in the target group according to the order of the sizes of the head images of the users;
and the second selection unit is used for sequentially selecting target users from all the sorted users and acquiring the head portraits of the target users corresponding to the target users.
Wherein the selection module comprises:
the liveness obtaining unit is used for obtaining the group liveness corresponding to each user in the target group according to the avatar selection rule;
a third sorting unit, configured to sort all users in the target group according to the order of the group liveness;
and the third selection unit is used for sequentially selecting target users from all the sorted users and acquiring the head portraits of the target users corresponding to the target users.
Wherein, the head portrait sending module comprises:
the adjusting unit is used for adjusting the size of the head portrait of the target user to a target size to obtain an adjusted head portrait of the target user;
and the conversion sending unit is used for converting the format of the adjusted target user head portrait into a progressive picture format, and sending the adjusted target user head portrait in the progressive picture format to the terminal equipment in a layered manner, so that the terminal equipment loads the adjusted target user head portrait in the progressive picture format layer by layer, and synthesizes the loaded adjusted target user head portrait into a group head portrait corresponding to the target group.
Another aspect of the present invention provides an image data processing apparatus comprising:
a request sending module, configured to send a group avatar acquisition request to a server, so that the server determines a target group requested by the group avatar acquisition request, and acquires a total number of users in the target group, and if the total number of users is greater than a target number threshold, selects a target user in the target group according to an avatar selection rule, and acquires a target user avatar corresponding to the target user; the number of target users is equal to the target number threshold;
and the receiving and synthesizing module is used for receiving the head portrait of the target user and synthesizing the head portrait of the target user into a group head portrait corresponding to the target group.
Wherein the receive synthesis module comprises:
the loading and creating unit is used for asynchronously loading the head portrait of the target user and creating a plurality of independent unit display windows in the display area of the group head portrait; the number of independent unit display windows is equal to the target number threshold;
the display unit is used for adding the head portrait of the target user which is loaded first to the corresponding independent unit display window for preferential display and performing blank display on the independent unit display window corresponding to the unloaded head portrait of the target user;
and the determining unit is used for determining a group head portrait display area containing all the head portraits of the target users as the group head portraits corresponding to the target groups when all the head portraits of the target users are added to the corresponding independent unit display windows.
The loading creating unit is specifically configured to asynchronously load the avatar of the target user, create a plurality of independent unit display windows, determine a placement position of each independent unit display window in the group avatar display area according to an avatar placement rule, and add each independent unit display window to a corresponding placement position in the group avatar display area.
Wherein, still include:
the deleting module is used for deleting the head portrait of the target user in the memory if the terminal display interface does not contain the group head portrait corresponding to the target group;
and the re-synthesis module is used for acquiring the head portrait of the target user in a cache according to the group head portrait display request and re-synthesizing the head portrait of the target user into the group head portrait corresponding to the target group if the group head portrait display request corresponding to the target group is detected on the terminal display interface.
Another aspect of the present invention provides an image data processing apparatus comprising: a processor, a memory, and a network interface;
the processor is connected to the memory and the network interface, respectively, where the network interface is used for connecting to a terminal device, the memory is used for storing program codes, and the processor is used for calling the program codes to execute the method according to an aspect of the embodiment of the present invention.
Another aspect of the present invention provides an image data processing apparatus comprising: a processor, a memory, and a network interface;
the processor is connected to the memory and the network interface, respectively, wherein the network interface is used for connecting to a server, the memory is used for storing program codes, and the processor is used for calling the program codes to execute the method in another aspect of the embodiment of the invention.
Another aspect of the present invention provides a computer storage medium storing a computer program comprising program instructions that, when executed by a processor, perform a method as in an aspect of an embodiment of the present invention.
Another aspect of the present invention provides a computer storage medium storing a computer program comprising program instructions which, when executed by a processor, perform a method as in another aspect of an embodiment of the present invention.
The embodiment of the invention obtains a group head portrait obtaining request sent by terminal equipment through a server, determines a target group requested by the group head portrait obtaining request, and obtains the total number of users in the target group; if the total number of the users is larger than the target number threshold, selecting a target user in the target group according to the avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to a target number threshold; and then sending the head portrait of the target user to the terminal equipment so that the terminal equipment synthesizes the head portrait of the target user into a group head portrait corresponding to the target group. Therefore, the terminal equipment only needs to load the head portraits of the target users needed to synthesize the group head portraits, namely the terminal equipment does not need to load the head portraits of all the users in the target group, so that the flow is saved, only the head portraits of the target users are loaded, the head portraits loading time is shortened, and the display speed of the group head portraits is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention;
FIG. 2 is a scene schematic diagram of a group avatar generation and display process according to an embodiment of the present invention;
FIG. 3 is a timing diagram illustrating an image data processing method according to an embodiment of the present invention;
FIG. 4 is a timing diagram illustrating another image data processing method according to an embodiment of the present invention;
FIGS. 4 a-4 d are schematic diagrams of a group avatar display interface according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating an image data processing method according to an embodiment of the present invention;
FIG. 6 is a flow chart illustrating another image data processing method according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an image data processing apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of another image data processing apparatus according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of another image data processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another image data processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention. The network architecture may include a server 100 and a plurality of terminal devices (as shown in fig. 1, specifically, including a terminal device 200a, a terminal device 200b, and a terminal device 200c), where the server 100 may communicate with each terminal device through a network, each terminal device may install an instant messaging application (e.g., a WeChat), and the server 100 may be a background server corresponding to the instant messaging application, so that each terminal device may communicate with the server 100 through a client corresponding to the instant messaging application, and for example, each terminal device may perform instant chat through other terminal devices of the server. The terminal device may include a mobile phone, a tablet computer, a notebook computer, a handheld computer, a Mobile Internet Device (MID), a Point Of Sale (POS) machine, and a wearable device (e.g., a smart watch, a smart bracelet, etc.). Each terminal device can create a group in the instant messaging application, wherein a group can be understood as a platform for bringing together people with the same hobbies or characteristics to chat and communicate. Taking the terminal device 200a as an example, the terminal device 200a may pull a plurality of buddies to the same wechat group (i.e., group), and when the terminal device 200a sends a message in the wechat group, the terminal devices of other users in the wechat group may all receive the message through the server 100, so as to implement multi-user co-chat.
The embodiment of the present invention provides a method for generating and displaying a group avatar with high efficiency, and specifically, refer to fig. 2, which is a scene diagram of a group avatar generation and display process provided by the embodiment of the present invention. As shown in fig. 2, in this scenario, taking the terminal device 200a and the server 100 in fig. 1 as an example, after the WeChat interface is opened, the terminal device 200a first displays message columns corresponding to "basketball group", "subscription number", and "dad" in the terminal display interface, and at this time, no avatar is displayed in the group avatar display area 300 of "basketball group", so that the terminal device 200a can send a group avatar acquisition request to the server 100 to request the "basketball group" avatar. The server 100 may determine that the group to be requested is a "basketball group" according to the group avatar obtaining request, the server 100 further counts the number of users in the "basketball group", and if the upper limit of the number of user avatars that can be displayed in the group avatar is 9 and the number of users in the "basketball group" is greater than 9, information of all users in the "basketball group" may be obtained in the database of the server 100 to form a group member information set, and information of each user in the group member information set may include information of user group entering time, user avatar size, user group liveness, and the like. If the server 100 selects the user avatars for synthesizing the group avatars based on the user affiliation time, the server 100 may sort the user affiliation time of each user in the group member information set in order from morning to evening, and select the first 9 users from the user affiliation time, the server 100 further obtains the user avatars corresponding to the selected 9 users in the avatar database, which are avatar 1, avatar 2, … …, avatar 8, and avatar 9, respectively, and the server 100 may perform asynchronous transmission on the 9 avatars. As shown in fig. 2, the terminal device 200a may asynchronously load the 9 avatars, and before asynchronously loading the 9 avatars, the terminal device 200a may create 9 independent unit display windows in the group avatar display area 300 of the "basketball group", where the independent unit display windows may be views (views) as shown in fig. 2, and the views may be visual representations of application program interfaces, so that after a single user avatar is added to one independent unit display window, the single user avatar may be directly displayed on the terminal display interface. The view can be obtained by packaging based on an open source component Fresco (which is an open source frame and is also an android picture loading library), and asynchronous loading and displaying of the user avatar can be realized through the Fresco. As shown in fig. 2, the terminal device 200a will first load the avatar 1, avatar 2, avatar 4 and avatar 7 through asynchronous loading, and adds the avatar 1, avatar 2, avatar 4 and avatar 7 to the corresponding views respectively, furthermore, the avatar 1, the avatar 2, the avatar 4 and the avatar 7 can be preferentially displayed in the group avatar display area 300, and the group avatar corresponding to the displayed "basketball group" is an incomplete group avatar, and thereafter, the terminal device 200a further loads the remaining avatars, and the remaining avatars are respectively added into the corresponding views, so that the displayed incomplete group avatars (namely the group avatars only comprising the avatar 1, the avatar 2, the avatar 4 and the avatar 7) gradually change into complete group avatars, the complete group avatar includes avatar 1, avatar 2, avatar 3, … …, avatar 8, and avatar 9. Therefore, the terminal device 200a only needs to load the user avatars needed to synthesize the group avatar, that is, the terminal device does not need to load the avatars of all users in the "basketball group", so that not only is traffic saved, but also only 9 user avatars used to synthesize the group avatar are loaded, thereby reducing avatar loading time and further improving the display speed of the group avatar. And the terminal device 200a can asynchronously load and display the user avatars by creating the independent unit display window, so that the situation that the group avatar display area 300 is in blank display for a long time due to the fact that the time for loading all the user avatars for synthesizing the group avatar is too long can be avoided, and the terminal device 200a can also display part of the user avatars in the group avatar display area 300 first (for example, the avatar 1, the avatar 2, the avatar 4 and the avatar 7 are preferentially displayed in fig. 2) under the condition that the network signal is poor, so that the avatar display effect is increased, and the user stickiness is increased.
Referring to fig. 3, a timing diagram of an image data processing method according to an embodiment of the present invention is shown, where the method includes:
s301, the terminal equipment sends a group head portrait acquisition request to a server;
specifically, when the terminal device opens an instant messaging application (e.g., a WeChat), the terminal display interface displays a target group in the instant messaging application (a group in which a group avatar is to be generated is referred to as a target group), and at this time, the terminal device may send a group avatar acquisition request to the server, where the group avatar acquisition request may include target group information (e.g., a group name).
S302, the server determines a target group requested by the group head portrait acquisition request and acquires the total number of users in the target group;
specifically, after receiving the group avatar acquisition request, the server may extract the target group information in the group avatar acquisition request, and may further acquire the total number of users in the target group indicated by the target group information. Where a group can be understood as a platform that brings together people with the same hobbies or characteristics to chat and communicate. Taking WeChat as an example, a user can pull a plurality of friends to the same WeChat group (i.e., a group), and when the user sends a message in the WeChat group, all other users in the WeChat group can receive the message, so as to realize multi-user common chat.
S303, if the total number of the users is greater than a target number threshold, the server selects a target user in the target group according to an avatar selection rule, and acquires a target user avatar corresponding to the target user; the number of target users is equal to the target number threshold;
specifically, if the total number of users is greater than the target number threshold, the server may select a plurality of target users in the target group according to the avatar selection rule, where the number of target users is equal to the target number threshold. For example, if the target number threshold is 9 and the number of users in the target group is 20, the server will select 9 users in the target group as the target users. After the target user is selected, a user head portrait corresponding to the target user can be further acquired in a head database in the server side, and the user head portrait corresponding to the target user is called a target user head portrait. The avatar selection rules may include a rule for selecting based on the time of the user entering the group, a rule for selecting based on the avatar size of the user, a rule for selecting based on the group activity of the user in the group, and so on. The avatar selection rules may also include rules for selecting based on other user parameters (such as age, geographical location, user permission level, etc. of the users in the group), and the user parameters are not limited herein.
If the avatar selection rule is a rule for selecting based on the user group entering time, the specific process of selecting the target user in the target group according to the avatar selection rule may be: and acquiring the group entering time corresponding to each user in the target group according to the avatar selection rule, sequencing all users in the target group according to the sequence of the group entering time, and selecting the target users in the sequenced all users in sequence. For example, there are 20 users in the target group, which are user 1, user 2, … …, and user 20, respectively, the group entry time of the 20 users is obtained, and the 20 users are sorted according to the order of the group entry time from morning to evening, where the 9 users from user 1 to user 9 are arranged in the first 9 digits, and then the 9 users from user 1 to user 9 can be used as target users (assuming that the target number threshold is 9).
If the avatar selection rule is a rule for selecting based on the avatar size of the user, the specific process of selecting the target user in the target group according to the avatar selection rule may be: according to the avatar selection rule, acquiring the user avatar size corresponding to each user in the target group, sorting all users in the target group according to the sequence of the user avatar sizes, and selecting the target user in the sorted all users in sequence. For example, there are 15 users in the target group, which are user 1, user 2, … …, and user 15, respectively, the user avatar sizes of the 15 users are obtained, and the 15 users are sorted according to the order of the user avatar sizes from small to large, where the 9 users from user 3 to user 11 are arranged in the top 9, and the 9 users from user 3 to user 11 can be regarded as target users (assuming that the target number threshold is 9).
If the avatar selection rule is a rule for selecting based on the group liveness of the user in the group, the specific process of selecting the target user in the target group according to the avatar selection rule may be: and according to the avatar selection rule, acquiring the group activity corresponding to each user in the target group, sequencing all users in the target group according to the sequence of the group activity, and selecting the target users in all the sequenced users in sequence. The group activity of a user may be determined by the number of times the user speaks in the target group and the speaking frequency, that is, the more actively the user speaks in the target group, the higher the corresponding group activity. For example, there are 30 users in the target group, which are user 1, user 2, … …, and user 30, respectively, the group activity degrees of the 30 users are obtained, and the 30 users are sorted in the order of the group activity degrees from high to low, where, users 11 to 19 are arranged in the top 9, and then the 9 users, that is, users 11 to 19, can be regarded as target users (assuming that the target number threshold is 9).
S304, the server sends the head portrait of the target user to the terminal equipment;
specifically, the server may send the acquired target user avatar to the terminal device, and may send each target user avatar to the terminal device in an asynchronous transmission manner.
S305, the terminal equipment synthesizes the head portrait of the target user into a group head portrait corresponding to the target group;
specifically, the terminal device may synthesize all the head portraits of the target users into a group head portrait corresponding to the target group after all the head portraits of the target users are loaded, and display the group head portrait.
The embodiment of the invention obtains a group head portrait obtaining request sent by terminal equipment through a server, determines a target group requested by the group head portrait obtaining request, and obtains the total number of users in the target group; if the total number of the users is larger than the target number threshold, selecting a target user in the target group according to the avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to a target number threshold; and then sending the head portrait of the target user to the terminal equipment so that the terminal equipment synthesizes the head portrait of the target user into a group head portrait corresponding to the target group. Therefore, the terminal equipment only needs to load the head portraits of the target users needed to synthesize the group head portraits, namely the terminal equipment does not need to load the head portraits of all the users in the target group, so that the flow is saved, only the head portraits of the target users are loaded, the head portraits loading time is shortened, and the display speed of the group head portraits is further improved.
Referring to fig. 4, a timing diagram of another image data processing method according to an embodiment of the present invention is shown, where the method includes:
s401, the terminal equipment sends a group head portrait acquisition request to a server;
s402, the server determines a target group requested by the group head portrait acquisition request and acquires the total number of users in the target group;
s403, if the total number of the users is greater than a target number threshold, the server selects a target user in the target group according to an avatar selection rule, and acquires a target user avatar corresponding to the target user; the number of target users is equal to the target number threshold;
the specific implementation manner of steps S401 to S403 may refer to steps S301 to S303 in the embodiment corresponding to fig. 3, which is not described herein again.
S404, the server sends the head portrait of the target user to the terminal equipment based on an asynchronous transmission mode;
specifically, the server does not need to issue all the target user avatars to the terminal device at the same time, for example, the server may sequentially send the target user avatars to the terminal device according to the sequence.
S405, the terminal equipment asynchronously loads the head portrait of the target user and creates a plurality of independent unit display windows in a group head portrait display area; the number of independent unit display windows is equal to the target number threshold;
specifically, the terminal device may asynchronously load each target user avatar (i.e., it is not necessary to load all target user avatars at the same time, for example, a part of the target user avatars may be loaded first, and then the rest of the target user avatars may be loaded), that is, the server and the terminal device may implement asynchronous transmission of the target user avatars. When the terminal device starts to load the target user avatar, the terminal device may create a plurality of independent unit display windows in the group avatar display area, where the number of the independent unit display windows is equal to the target number threshold. The independent unit display window can be a view (view), and the view can be a visual embodiment of an application program interface, so that after the image content is added to the independent unit display window, the added image can be directly displayed on the terminal display interface. The independent unit display window is specifically used for displaying a target user avatar, and one independent unit display window displays one target user avatar. The view can be obtained by packaging based on an open source component Fresco (which is an open source frame and is also an android picture loading library), and asynchronous loading and displaying of the head portrait of the target user can be realized through the Fresco.
S406, the terminal equipment adds the head portrait of the target user which is loaded first to the corresponding independent unit display window for preferential display, and performs blank display on the independent unit display window corresponding to the unloaded head portrait of the target user;
specifically, the terminal device may add the target user avatar that is loaded first to the corresponding independent unit display window for priority display, and perform blank display on the independent unit display window corresponding to the target user avatar that is not loaded, that is, the terminal device does not need to wait until all the target user avatars are combined into the group avatar to display the group avatar, for example, if there are 9 target user avatars and 3 target user avatars are loaded first, the 3 loaded target user avatars may be added to the corresponding independent unit display windows, at this time, the terminal device may display the incomplete group avatar first, the incomplete group avatar includes the 3 loaded target user avatars, and the incomplete group avatar further includes the remaining 6 independent unit display windows to which the target user avatars are not added, and the 6 independent unit display windows may be displayed in a blank form in the incomplete group avatar), after that, each target user avatar is loaded, the target user avatar is added to the corresponding independent unit display window, so that each target user avatar can be gradually displayed in the group avatar display area in the terminal equipment. Therefore, the terminal device can avoid that the group head portrait display area is in blank display for a long time due to the fact that the time for loading all the target user head portraits is too long by displaying the incomplete group head portraits including the content (namely, part of the target user head portraits) first, so that the terminal device can display part of the target user head portraits in the group head portrait display area first under the condition that the network signal is poor, the head portrait display effect is improved, and the user viscosity is increased.
The specific process of creating a plurality of independent unit display windows in the group avatar display area may be: creating a plurality of independent unit display windows, determining the placing position of each independent unit display window in the group head portrait display area according to head portrait placing rules, and respectively adding each independent unit display window to the corresponding placing position in the group head portrait display area. For example, if the number of the head portraits of the target user is 9, 9 independent unit display windows may be created, the group head portraits display area is divided into 9 areas according to the shape of the nine-square grid, and one independent unit display window is placed in each area, that is, the head portraits placement rule may be a rule of placing the head portraits according to the nine-square grid.
S407, when all the head portraits of the target users are added to the corresponding independent unit display windows, the terminal equipment determines a group head portraits display area containing all the head portraits of the target users as the group head portraits corresponding to the target groups;
specifically, when all the target user avatars are added to the corresponding independent unit display windows, the group avatar display area containing all the target user avatars is determined as the group avatar corresponding to the target group, and at this time, the terminal device can display the complete group avatar.
Further, please refer to fig. 4a to fig. 4c, which are schematic diagrams of a group head image display interface according to an embodiment of the present invention. As shown in fig. 4a, after the user opens the wechat in the terminal device, the message fields corresponding to the "parent group" and the "subscription number" are displayed on the wechat homepage, and the group avatar display area 400 of the "parent group" temporarily does not display an avatar yet, so the terminal device may request the server for a target user avatar for synthesizing the group avatar of the "parent group", and if 9 target user avatars selected by the server are present, the terminal device also creates 9 views (i.e., independent unit display windows) in the group avatar display area 400, where the 9 target user avatars are respectively avatar "1", avatar "2", avatar "3", avatar "4", avatar "5", avatar "6", avatar "7", avatar "8", and avatar "9". The terminal device may asynchronously load the 9 target user avatars, as shown in fig. 4b, the terminal device may load the avatar "1", the avatar "2", the avatar "3", and the avatar "4" first, and then the terminal device may preferentially add the avatar "1", the avatar "2", the avatar "3", and the avatar "4" to the corresponding views, respectively, at this time, the avatar "1", the avatar "2", the avatar "3", and the avatar "4" are displayed in the group avatar display area 400 in the application interface of the WeChat, and views to which the target user avatar is not added are displayed in a blank space. As shown in fig. 4c, the terminal device continues to load the remaining target user avatars, and adds the remaining avatars "5", "6", "7", "8", and "9" to the views that have not been used, at this time, avatars "1", "2", "3", "4", "5", "6", "7", "8", and "9" are displayed in the group avatar display area 400 in the application interface of the WeChat, that is, the group avatar displayed in the group avatar display area 400 in fig. 4c is a complete group avatar. For the user, the user first sees the group avatar of the blank "parent group", then the user sees the group avatar of the "parent group" gradually changing to the incomplete group avatar shown in fig. 4b (i.e. the group avatar containing avatar "1", avatar "2", avatar "3", avatar "4"), and finally sees the group avatar of the "parent group" gradually changing to the complete group avatar shown in fig. 4c (i.e. the group avatar containing 9 target user avatars).
Optionally, if the total number of the users in the target group is less than or equal to the target number threshold, the server may obtain the head portraits of all the users in the target group as the head portraits of the target users, transmit the head portraits of all the target users to the terminal device, and the terminal device synthesizes the head portraits of all the target users into the group head portraits of the target group.
Optionally, for different numbers of target user avatars, corresponding placing modes are also different, so that the placing positions of the target user avatars of various numbers can be determined through the placing rules. Please refer to fig. 4d together, which is a schematic diagram of another group avatar display interface according to an embodiment of the present invention, as shown in fig. 4d, the threshold of the target number is 9, and if the number of group members (i.e., the total number of users in the target group) is 1, 1 target user avatar (i.e., avatar "1") can be displayed in the middle of the group avatar display area (which may be a square); if the number of group members is 2, a row of 2 head portraits of the target users (namely head portraits "1" and head portraits "2") can be displayed in the middle of the display area of the head portraits of the group; if the number of the group members is 3, two rows of the head portraits of the target users can be displayed in the middle of the display area of the head portraits of the group, from top to bottom, the head portraits of the 1 target users are displayed in the first row, and the head portraits of the 2 target users are displayed in the second row (namely the head portraits '1', the head portraits '2' and the head portraits '3'); if the number of the group members is 4, two rows of the head portraits of the target users can be displayed in the middle of the display area of the head portraits of the group, and each row displays 2 head portraits of the target users (namely head portraits "1", head portraits "2", head portraits "3", and head portraits "4"); if the number of the group members is 5, displaying two rows of head portraits of the target users in the middle of the display area of the head portraits of the group, wherein the head portraits of the target users are displayed in the first row from top to bottom, and the head portraits of the target users are displayed in the second row (namely head portraits '1', head portraits '2', head portraits '3', head portraits '4' and head portraits '5'); if the number of the group members is 6, displaying two rows of head portraits of the target users in the middle of the display area of the head portraits of the group, and displaying 3 head portraits of the target users in each row (namely head portraits ' 1 ', 2 ', 3 ', 4 ', 5 ' and 6 '); if the number of the group members is 7, displaying three rows of the head portraits of the target users in the middle of the display area of the head portraits of the group, wherein from top to bottom, the first row displays 1 head portraits of the target users, the second row displays 3 head portraits of the target users, and the third row displays 3 head portraits of the target users (namely head portraits "1", head portraits "2", head portraits "3", head portraits "4", head portraits "5", head portraits "6", and head portraits "7"); if the number of the group members is 8, displaying three rows of the head portraits of the target users in the middle of the display area of the head portraits of the group, wherein from top to bottom, the first row displays 2 head portraits of the target users, the second row displays 3 head portraits of the target users, and the third row displays 3 head portraits of the target users (namely head portraits ' 1 ', 2 ', 3 ', 4 ', 5 ', 6 ', 7 ' and 8 '); if the number of group members is greater than or equal to 9, three rows of target user avatars are displayed in the middle of the group avatar display area, and 3 target user avatars are displayed in each row (i.e., avatar "1", avatar "2", avatar "3", avatar "4", avatar "5", avatar "6", avatar "7", avatar "8", avatar "9").
The embodiment of the invention obtains a group head portrait obtaining request sent by terminal equipment through a server, determines a target group requested by the group head portrait obtaining request, and obtains the total number of users in the target group; if the total number of the users is larger than the target number threshold, selecting a target user in the target group according to the avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to a target number threshold; and then sending the head portrait of the target user to the terminal equipment so that the terminal equipment synthesizes the head portrait of the target user into a group head portrait corresponding to the target group. Therefore, the terminal equipment only needs to load the head portraits of the target users needed to synthesize the group head portraits, namely the terminal equipment does not need to load the head portraits of all the users in the target group, so that the flow is saved, only the head portraits of the target users are loaded, the head portraits loading time is shortened, and the display speed of the group head portraits is further improved. And the terminal equipment can asynchronously load and display the head portraits of the target users by creating the display windows of the independent units, so that the situation that the display area of the group head portraits is in blank display for a long time due to the fact that all the head portraits of the target users are loaded for too long time can be avoided, and the terminal equipment can also display part of the head portraits of the target users in the display area of the group head portraits firstly under the condition that network signals are poor, so that the head portrayal display effect is improved, and the user viscosity is increased.
Referring to fig. 5, a flowchart of an image data processing method according to an embodiment of the present invention is shown, where the method includes:
s501, a server acquires a group head portrait acquisition request sent by terminal equipment, determines a target group requested by the group head portrait acquisition request, and acquires the total number of users in the target group;
s502, if the total number of the users is larger than a target number threshold, selecting a target user in the target group according to an avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to the target number threshold;
the specific implementation manner of steps S501 to S502 may refer to steps S301 to S303 in the embodiment corresponding to fig. 3, which is not described herein again.
S503, adjusting the size of the head portrait of the target user to a target size to obtain an adjusted head portrait of the target user;
specifically, after the server selects the target user avatar in the target group, the size of each target user avatar may be further adjusted to a target size, which is usually smaller than the size of the target user avatar, so that the data size of the adjusted target user avatar obtained after the target size is adjusted is smaller than the data size of the target user avatar, and thus the network traffic consumed for transmitting the adjusted target user avatar is smaller than the network traffic consumed for transmitting the target user avatar. Therefore, if the adjusted head portrait of the target user is transmitted to the terminal device, the consumption of network flow can be further reduced, the head portrait transmission time is also shortened, and the display efficiency of the head portrait of the group corresponding to the target group is further improved.
S504, converting the format of the adjusted target user head portrait into a progressive picture format, and sending the adjusted target user head portrait in the progressive picture format to the terminal equipment in a layered manner, so that the terminal equipment loads the adjusted target user head portrait in the progressive picture format layer by layer, and synthesizes the loaded adjusted target user head portrait into a group head portrait corresponding to the target group;
specifically, after the adjusted target user avatar is generated, the format of the adjusted target user avatar may be further converted into a progressive picture format, and the adjusted target user avatar in the progressive picture format is referred to as a target layered picture. The target layered picture may include base layer picture data and at least one enhancement layer picture data, the base layer picture data may refer to low quality picture data that may approximately display picture content, that is, the data amount of the base layer picture data is small so that the base layer picture data may be transmitted to the terminal device relatively quickly, and the enhancement layer picture data may refer to a difference amount between the high quality picture data and the base layer picture data, and thus, higher quality picture data may be obtained by overlapping the enhancement layer picture data and the base layer picture data. When a plurality of enhancement layer picture data exist, the quality of the picture can be improved by one level when one enhancement layer picture data is superposed, namely the picture is displayed in a gradual change process from fuzzy to clear. Therefore, the server can first send the base layer picture data in the target layered picture to the terminal device, wherein the time length for transmitting the base layer picture data is shorter because the data size of the base layer picture data is smaller (i.e. the jaggies of the picture content are more obvious). Moreover, the terminal device may further asynchronously load each target layered picture, so that a part of the target layered pictures may be displayed first, and then another part of the target layered pictures may be displayed, so as to further improve the avatar display speed (for a specific process of the asynchronous loading and displaying, see S405-S407 in the embodiment corresponding to fig. 4, which is not described herein again). Because the target layered pictures can be asynchronously loaded and displayed, the terminal device can quickly and preferentially display the loaded basic layer picture data on the group head portrait display area (namely, the fuzzy target user head portrait can be quickly displayed), and the group head portrait display area is prevented from being in a blank state for a long time. After the terminal equipment loads the base layer picture data, the base layer picture data can be displayed immediately, the terminal equipment can continue to load the enhancement layer picture data sent by the server, and the enhancement layer picture data and the base layer picture data are combined to obtain a clearer head portrait of the target user. Therefore, the head portraits of each target user in the group head portraits display area in the terminal equipment can be displayed in a progressive mode, and the head portraits display speed is improved. When all the target layered pictures are loaded, all the target layered pictures (namely all the target user avatars) are also displayed in the group avatar display area in the terminal equipment, the group avatar display area containing all the target user avatars is determined as the group avatar corresponding to the target group, and at the moment, the terminal equipment can display the complete group avatar.
The embodiment of the invention obtains a group head portrait obtaining request sent by terminal equipment through a server, determines a target group requested by the group head portrait obtaining request, and obtains the total number of users in the target group; if the total number of the users is larger than the target number threshold, selecting a target user in the target group according to the avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to a target number threshold; and then adjusting the size of the head portrait of the target user to a target size to obtain an adjusted head portrait of the target user, converting the format of the adjusted head portrait of the target user into a progressive picture format, sending the adjusted head portrait of the target user in the progressive picture format to the terminal equipment in a layered manner, so that the terminal equipment loads the adjusted head portrait of the target user in the progressive picture format layer by layer, and synthesizing the loaded adjusted head portrait of the target user into a group head portrait corresponding to the target group. Therefore, the terminal equipment only needs to load the head portraits of the target users needed to synthesize the group head portraits, namely the terminal equipment does not need to load the head portraits of all the users in the target group, so that the flow is saved, only the head portraits of the target users are loaded, the head portraits loading time is shortened, and the display speed of the group head portraits is further improved. The terminal equipment can also asynchronously load and display the head portraits of the adjusted target users, so that the phenomenon that the display area of the group head portraits is in blank display for a long time due to the fact that the head portraits of all the adjusted target users are loaded for too long time can be avoided, and the terminal equipment can also display part of the head portraits of the adjusted target users in the display area of the group head portraits firstly under the condition that network signals are poor, so that the head portrayal display effect is improved, and the user viscosity is increased; and the adjusted target user head portrait is set to be in a progressive picture format, so that the head portrait display speed can be further improved in the asynchronous loading and displaying process.
Referring to fig. 6, a schematic flow chart of another image data processing method according to an embodiment of the present invention is shown, where the method includes:
s601, the terminal equipment sends a group head portrait acquisition request to a server so that the server determines a target group requested by the group head portrait acquisition request and acquires the total number of users in the target group, and if the total number of users is greater than a target number threshold, a target user is selected in the target group according to a head portrait selection rule and a target user head portrait corresponding to the target user is acquired; the number of target users is equal to the target number threshold;
s602, the terminal equipment asynchronously loads the head portrait of the target user and creates a plurality of independent unit display windows in a group head portrait display area; the number of independent unit display windows is equal to the target number threshold;
s603, adding the head portrait of the target user which is loaded first to the corresponding independent unit display window for preferential display, and performing blank display on the independent unit display window corresponding to the head portrait of the target user which is not loaded;
s604, when all the head portraits of the target users are added to the corresponding independent unit display windows, determining a group head portraits display area containing all the head portraits of the target users as the group head portraits corresponding to the target groups;
the specific implementation manner of steps S601 to S604 may refer to steps S401 to S407 in the embodiment corresponding to fig. 4, which is not described herein again. Optionally, the server may further process the target user avatar into the target layered picture in the embodiment corresponding to fig. 5 as described above, and then the terminal device may perform asynchronous loading and displaying on the target layered picture (for a specific implementation manner of this process, see S504 in the embodiment corresponding to fig. 5, which is not described here again).
S605, if the terminal display interface does not contain the group head portrait corresponding to the target group, deleting the head portrait of the target user in the memory;
specifically, after the terminal device displays the group icon corresponding to the target group, the user further operates the terminal device and slides the terminal display interface of the terminal device, for example, slides down to view the back content in the instant messaging application. The terminal display interface after sliding no longer displays the group avatar corresponding to the target group, and the terminal device may further delete all the target user avatars in the Memory, and specifically delete the target user avatars corresponding to the group avatars that are not currently required to be displayed in the Memory through Fresco, so as to prevent Out of Memory (OOM) from occurring and improve the performance of the terminal system.
S606, if a group avatar display request corresponding to the target group is detected on the terminal display interface, acquiring the avatar of the target user in a cache according to the group avatar display request, and re-synthesizing the avatar of the target user into the group avatar corresponding to the target group;
specifically, after deleting the head portraits of the target users in the memory, if the user slides the terminal display interface again, so that the target group appears in the terminal display interface again, at this time, the terminal device may detect a group head portraits display request corresponding to the target group on the terminal display interface, obtain the head portraits of the target users in the cache according to the group head portraits display request, and re-synthesize the head portraits of the target users into the group head portraits corresponding to the target group. When deleting the target user avatar in the content, the terminal device does not delete the target user avatar in the cache, so that the target user avatar sent by the server can be prevented from being reloaded, the picture display speed is increased, and the waste of network traffic is reduced.
The embodiment of the invention obtains a group head portrait obtaining request sent by terminal equipment through a server, determines a target group requested by the group head portrait obtaining request, and obtains the total number of users in the target group; if the total number of the users is larger than the target number threshold, selecting a target user in the target group according to the avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to a target number threshold; and then adjusting the size of the head portrait of the target user to a target size to obtain an adjusted head portrait of the target user, converting the format of the adjusted head portrait of the target user into a progressive picture format, sending the adjusted head portrait of the target user in the progressive picture format to the terminal equipment in a layered manner, so that the terminal equipment loads the adjusted head portrait of the target user in the progressive picture format layer by layer, and synthesizing the loaded adjusted head portrait of the target user into a group head portrait corresponding to the target group. Therefore, the terminal equipment only needs to load the head portraits of the target users needed to synthesize the group head portraits, namely the terminal equipment does not need to load the head portraits of all the users in the target group, so that the flow is saved, only the head portraits of the target users are loaded, the head portraits loading time is shortened, and the display speed of the group head portraits is further improved. The terminal equipment can also asynchronously load and display the head portraits of the adjusted target users, so that the phenomenon that the display area of the group head portraits is in blank display for a long time due to the fact that the head portraits of all the adjusted target users are loaded for too long time can be avoided, and the terminal equipment can also display part of the head portraits of the adjusted target users in the display area of the group head portraits firstly under the condition that network signals are poor, so that the head portrayal display effect is improved, and the user viscosity is increased; and the adjusted target user head portrait is set to be in a progressive picture format, so that the head portrait display speed can be further improved in the asynchronous loading and displaying process. The terminal equipment can delete the head portraits of the target users corresponding to the head portraits of the group which do not need to be displayed currently in the memory through the Freeco so as to prevent OOM and improve the performance of a terminal system; meanwhile, when the terminal device deletes the target user avatar in the content, the target user avatar in the cache is not deleted, so that the target user avatar sent by the server can be prevented from being reloaded when the group avatar needs to be displayed next time, the image display speed is increased, and the waste of network flow is reduced.
Fig. 7 is a schematic structural diagram of an image data processing apparatus according to an embodiment of the present invention. As shown in fig. 7, the image data processing apparatus 1 may be applied to the server 100 in the corresponding embodiment of fig. 1, and the image data processing apparatus 1 may include: the head portrait acquiring system comprises an acquiring module 11, a selecting module 12 and a head portrait sending module 13;
an obtaining module 11, configured to obtain a group avatar obtaining request sent by a terminal device, determine a target group requested by the group avatar obtaining request, and obtain a total number of users in the target group;
a selecting module 12, configured to select a target user in the target group according to an avatar selection rule and obtain an avatar of the target user corresponding to the target user if the total number of users is greater than a target number threshold; the number of target users is equal to the target number threshold;
and an avatar sending module 13, configured to send the target user avatar to the terminal device, so that the terminal device synthesizes the target user avatar into a group avatar corresponding to the target group.
For specific functional implementation manners of the obtaining module 11, the selecting module 12, and the avatar sending module 13, reference may be made to S301 to S305 in the embodiment corresponding to fig. 3, which is not described herein again.
As shown in fig. 7, the selection module 12 may include: a time acquisition unit 121, a first sorting unit 122, a first selection unit 123, a size acquisition unit 124, a second sorting unit 125, a second selection unit 126, an activity acquisition unit 127, a third sorting unit 128, a third selection unit 129;
a time obtaining unit 121, configured to obtain, according to the avatar selection rule, an affiliation time corresponding to each user in the target group;
a first sorting unit 122, configured to sort all users in the target group according to the order of the group entry time;
the first selecting unit 123 is configured to sequentially select target users from all the sorted users, and acquire a head portrait of the target user corresponding to the target user.
A size obtaining unit 124, configured to obtain, according to the avatar selection rule, a user avatar size corresponding to each user in the target group;
a second sorting unit 125, configured to sort all users in the target group according to the order of the sizes of the user avatars;
the second selecting unit 126 is configured to select a target user in order from all sorted users, and obtain a head portrait of the target user corresponding to the target user.
The activity obtaining unit 127 is configured to obtain a group activity corresponding to each user in the target group according to the avatar selection rule;
a third sorting unit 128, configured to sort all users in the target group according to the order of the group liveness;
and a third selecting unit 129, configured to select target users in sequence from all the sorted users, and obtain a head portrait of the target user corresponding to the target user.
For specific functional implementation manners of the time obtaining unit 121, the first sorting unit 122, the first selecting unit 123, the size obtaining unit 124, the second sorting unit 125, the second selecting unit 126, the activity obtaining unit 127, the third sorting unit 128, and the third selecting unit 129, reference may be made to S303 in the corresponding embodiment of fig. 3, which is not described herein again. When the time acquiring unit 121, the first sorting unit 122 and the first selecting unit 123 perform the corresponding operations, the size acquiring unit 124, the second sorting unit 125, the second selecting unit 126, the activity acquiring unit 127, the third sorting unit 128 and the third selecting unit 129 suspend performing the operations. When the size acquiring unit 124, the second sorting unit 125, and the second selecting unit 126 are performing the respective operations, the time acquiring unit 121, the first sorting unit 122, the first selecting unit 123, the activity acquiring unit 127, the third sorting unit 128, and the third selecting unit 129 each suspend performing the operations. When the activity level acquiring unit 127, the third sorting unit 128, and the third selecting unit 129 are performing the respective operations, the time acquiring unit 121, the first sorting unit 122, the first selecting unit 123, the size acquiring unit 124, the second sorting unit 125, and the second selecting unit 126 each suspend performing the operations. The first selection unit 123, the second selection unit 126, and the third selection unit 129 may be combined into a same selection unit.
As shown in fig. 7, the avatar transmission module 13 may include: an adjusting unit 131, a conversion transmitting unit 132;
an adjusting unit 131, configured to adjust the size of the avatar of the target user to a target size, so as to obtain an adjusted avatar of the target user;
a conversion sending unit 132, configured to convert the format of the adjusted target user avatar into a progressive picture format, and send the adjusted target user avatar in the progressive picture format to the terminal device in a layered manner, so that the terminal device loads the adjusted target user avatar in the progressive picture format layer by layer, and synthesizes the loaded adjusted target user avatar into a group avatar corresponding to the target group.
The specific functional implementation manners of the adjusting unit 131 and the converting and sending unit 132 may refer to S503-S504 in the embodiment corresponding to fig. 5, which is not described herein again.
The embodiment of the invention obtains a group head portrait obtaining request sent by terminal equipment through a server, determines a target group requested by the group head portrait obtaining request, and obtains the total number of users in the target group; if the total number of the users is larger than the target number threshold, selecting a target user in the target group according to the avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to a target number threshold; and then adjusting the size of the head portrait of the target user to a target size to obtain an adjusted head portrait of the target user, converting the format of the adjusted head portrait of the target user into a progressive picture format, sending the adjusted head portrait of the target user in the progressive picture format to the terminal equipment in a layered manner, so that the terminal equipment loads the adjusted head portrait of the target user in the progressive picture format layer by layer, and synthesizing the loaded adjusted head portrait of the target user into a group head portrait corresponding to the target group. Therefore, the terminal equipment only needs to load the head portraits of the target users needed to synthesize the group head portraits, namely the terminal equipment does not need to load the head portraits of all the users in the target group, so that the flow is saved, only the head portraits of the target users are loaded, the head portraits loading time is shortened, and the display speed of the group head portraits is further improved. The terminal equipment can also asynchronously load and display the head portraits of the adjusted target users, so that the phenomenon that the display area of the group head portraits is in blank display for a long time due to the fact that the head portraits of all the adjusted target users are loaded for too long time can be avoided, and the terminal equipment can also display part of the head portraits of the adjusted target users in the display area of the group head portraits firstly under the condition that network signals are poor, so that the head portrayal display effect is improved, and the user viscosity is increased; and the adjusted target user head portrait is set to be in a progressive picture format, so that the head portrait display speed can be further improved in the asynchronous loading and displaying process.
Referring to fig. 8, an embodiment of the invention provides a schematic structural diagram of another image data processing apparatus. As shown in fig. 8, the image data processing apparatus 2 may be applied to any one of the terminal devices in the embodiment corresponding to fig. 1, and the image data processing apparatus 2 may include: a request sending module 21, a receiving and synthesizing module 22, a deleting module 23 and a re-synthesizing module 24;
a request sending module 21, configured to send a group avatar acquisition request to a server, so that the server determines a target group requested by the group avatar acquisition request, and acquires a total number of users in the target group, and if the total number of users is greater than a target number threshold, selects a target user in the target group according to an avatar selection rule, and acquires a target user avatar corresponding to the target user; the number of target users is equal to the target number threshold;
a receiving and synthesizing module 22, configured to receive the head portraits of the target users, and synthesize the head portraits of the target users into group head portraits corresponding to the target group;
a deleting module 23, configured to delete the target user avatar in the memory if the terminal display interface does not include the group avatar corresponding to the target group;
and a re-synthesizing module 24, configured to, if a group avatar display request corresponding to the target group is detected on the terminal display interface, obtain the target user avatar in a cache according to the group avatar display request, and re-synthesize the target user avatar into the group avatar corresponding to the target group.
The specific functional implementation manners of the request sending module 21 and the receiving and combining module 22 may refer to S301 to S305 in the embodiment corresponding to fig. 3, which is not described herein again. The specific functional implementation manners of the deleting module 23 and the re-synthesizing module 24 may refer to S605 to S606 in the embodiment corresponding to fig. 6, which is not described herein again.
As shown in fig. 8, the receiving and synthesizing module 22 may include: a load creation unit 221, a display unit 222, a determination unit 223;
a loading creation unit 221, configured to asynchronously load the avatar of the target user, and create a plurality of independent unit display windows in the group avatar display area; the number of independent unit display windows is equal to the target number threshold;
the loading creating unit 221 may be specifically configured to asynchronously load the avatar of the target user, create a plurality of independent unit display windows, determine a placement position of each independent unit display window in the group avatar display area according to an avatar placement rule, and add each independent unit display window to a corresponding placement position in the group avatar display area.
The display unit 222 is configured to add the target user avatar that is loaded first to the corresponding independent unit display window for priority display, and perform blank display on the independent unit display window corresponding to the unloaded target user avatar;
a determining unit 223, configured to determine, when all the target user avatars are added to the corresponding independent unit display windows, a group avatar display area including all the target user avatars as the group avatar corresponding to the target group.
For specific functional implementation manners of the load creating unit 221, the display unit 222, and the determining unit 223, reference may be made to S602 to S604 in the embodiment corresponding to fig. 6, which is not described herein again.
The embodiment of the invention obtains a group head portrait obtaining request sent by terminal equipment through a server, determines a target group requested by the group head portrait obtaining request, and obtains the total number of users in the target group; if the total number of the users is larger than the target number threshold, selecting a target user in the target group according to the avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to a target number threshold; and then adjusting the size of the head portrait of the target user to a target size to obtain an adjusted head portrait of the target user, converting the format of the adjusted head portrait of the target user into a progressive picture format, sending the adjusted head portrait of the target user in the progressive picture format to the terminal equipment in a layered manner, so that the terminal equipment loads the adjusted head portrait of the target user in the progressive picture format layer by layer, and synthesizing the loaded adjusted head portrait of the target user into a group head portrait corresponding to the target group. Therefore, the terminal equipment only needs to load the head portraits of the target users needed to synthesize the group head portraits, namely the terminal equipment does not need to load the head portraits of all the users in the target group, so that the flow is saved, only the head portraits of the target users are loaded, the head portraits loading time is shortened, and the display speed of the group head portraits is further improved. The terminal equipment can also asynchronously load and display the head portraits of the adjusted target users, so that the phenomenon that the display area of the group head portraits is in blank display for a long time due to the fact that the head portraits of all the adjusted target users are loaded for too long time can be avoided, and the terminal equipment can also display part of the head portraits of the adjusted target users in the display area of the group head portraits firstly under the condition that network signals are poor, so that the head portrayal display effect is improved, and the user viscosity is increased; and the adjusted target user head portrait is set to be in a progressive picture format, so that the head portrait display speed can be further improved in the asynchronous loading and displaying process. The terminal equipment can delete the head portraits of the target users corresponding to the head portraits of the group which do not need to be displayed currently in the memory through the Freeco so as to prevent OOM and improve the performance of a terminal system; meanwhile, when the terminal device deletes the target user avatar in the content, the target user avatar in the cache is not deleted, so that the target user avatar sent by the server can be prevented from being reloaded when the group avatar needs to be displayed next time, the image display speed is increased, and the waste of network flow is reduced.
Fig. 9 is a schematic structural diagram of another image data processing apparatus according to an embodiment of the present invention. As shown in fig. 9, the image data processing apparatus can be applied to the server 100 in the above-described embodiment corresponding to fig. 1. The image data processing apparatus 1000 may include: the processor 1001, the network interface 1004, and the memory 1005, and the image data processing apparatus 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1004 may optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 9, the memory 1004, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the image data processing apparatus 1000 shown in fig. 9, the network interface 1004 may provide a network communication function for communicating with a terminal device; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1004 to implement:
acquiring a group head portrait acquisition request sent by terminal equipment, determining a target group requested by the group head portrait acquisition request, and acquiring the total number of users in the target group;
if the total number of the users is larger than a target number threshold, selecting a target user in the target group according to an avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to the target number threshold;
and sending the target user head portrait to the terminal equipment so that the terminal equipment synthesizes the target user head portrait into a group head portrait corresponding to the target group.
Where a group can be understood as a platform that brings together people with the same hobbies or characteristics to chat and communicate. Taking WeChat as an example, a user can pull a plurality of friends to the same WeChat group (i.e., a group), and when the user sends a message in the WeChat group, all other users in the WeChat group can receive the message, so as to realize multi-user common chat.
In one embodiment, when the processor 1001 selects a target user in the target group according to an avatar selection rule and obtains a target user avatar corresponding to the target user, the following steps are specifically performed:
acquiring group entering time corresponding to each user in the target group according to the avatar selection rule;
sequencing all users in the target group according to the sequence of the group entering time;
and selecting target users in sequence from all the sorted users, and acquiring the head portraits of the target users corresponding to the target users.
For example, there are 20 users in the target group, which are user 1, user 2, … …, and user 20, respectively, the group entry time of the 20 users is obtained, and the 20 users are sorted according to the order of the group entry time from morning to evening, where the 9 users from user 1 to user 9 are arranged in the first 9 digits, and then the 9 users from user 1 to user 9 can be used as target users (assuming that the target number threshold is 9).
In one embodiment, when the processor 1001 selects a target user in the target group according to an avatar selection rule and obtains a target user avatar corresponding to the target user, the following steps are specifically performed:
according to the avatar selection rule, acquiring the avatar size corresponding to each user in the target group;
sequencing all users in the target group according to the sequence of the sizes of the head images of the users;
and selecting target users in sequence from all the sorted users, and acquiring the head portraits of the target users corresponding to the target users.
For example, there are 15 users in the target group, which are user 1, user 2, … …, and user 15, respectively, the user avatar sizes of the 15 users are obtained, and the 15 users are sorted according to the order of the user avatar sizes from small to large, where the 9 users from user 3 to user 11 are arranged in the top 9, and the 9 users from user 3 to user 11 can be regarded as target users (assuming that the target number threshold is 9).
In one embodiment, when the processor 1001 selects a target user in the target group according to an avatar selection rule and obtains a target user avatar corresponding to the target user, the following steps are specifically performed:
acquiring the group liveness corresponding to each user in the target group according to the avatar selection rule;
sequencing all users in the target group according to the sequence of the group liveness;
and selecting target users in sequence from all the sorted users, and acquiring the head portraits of the target users corresponding to the target users.
For example, there are 30 users in the target group, which are user 1, user 2, … …, and user 30, respectively, the group activity degrees of the 30 users are obtained, and the 30 users are sorted in the order of the group activity degrees from high to low, where, users 11 to 19 are arranged in the top 9, and then the 9 users, that is, users 11 to 19, can be regarded as target users (assuming that the target number threshold is 9).
In one embodiment, when the processor 1001 executes sending of the target user avatar to the terminal device to enable the terminal device to synthesize the target user avatar into a group avatar corresponding to the target group, the following steps are specifically executed:
adjusting the size of the head portrait of the target user to a target size to obtain an adjusted head portrait of the target user;
and converting the format of the adjusted target user head portrait into a progressive picture format, and sending the adjusted target user head portrait in the progressive picture format to the terminal equipment in a layered manner, so that the terminal equipment loads the adjusted target user head portrait in the progressive picture format layer by layer, and synthesizes the loaded adjusted target user head portrait into a group head portrait corresponding to the target group.
The embodiment of the invention obtains a group head portrait obtaining request sent by terminal equipment through a server, determines a target group requested by the group head portrait obtaining request, and obtains the total number of users in the target group; if the total number of the users is larger than the target number threshold, selecting a target user in the target group according to the avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to a target number threshold; and then adjusting the size of the head portrait of the target user to a target size to obtain an adjusted head portrait of the target user, converting the format of the adjusted head portrait of the target user into a progressive picture format, sending the adjusted head portrait of the target user in the progressive picture format to the terminal equipment in a layered manner, so that the terminal equipment loads the adjusted head portrait of the target user in the progressive picture format layer by layer, and synthesizing the loaded adjusted head portrait of the target user into a group head portrait corresponding to the target group. Therefore, the terminal equipment only needs to load the head portraits of the target users needed to synthesize the group head portraits, namely the terminal equipment does not need to load the head portraits of all the users in the target group, so that the flow is saved, only the head portraits of the target users are loaded, the head portraits loading time is shortened, and the display speed of the group head portraits is further improved. The terminal equipment can also asynchronously load and display the head portraits of the adjusted target users, so that the phenomenon that the display area of the group head portraits is in blank display for a long time due to the fact that the head portraits of all the adjusted target users are loaded for too long time can be avoided, and the terminal equipment can also display part of the head portraits of the adjusted target users in the display area of the group head portraits firstly under the condition that network signals are poor, so that the head portrayal display effect is improved, and the user viscosity is increased; and the adjusted target user head portrait is set to be in a progressive picture format, so that the head portrait display speed can be further improved in the asynchronous loading and displaying process.
It should be understood that the image data processing apparatus 1000 described in the embodiment of the present invention may perform the description of the image data processing method in the embodiment corresponding to any one of fig. 3, fig. 4, and fig. 5, and may also perform the description of the image data processing apparatus 1 in the embodiment corresponding to fig. 7, which is not repeated herein. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores the aforementioned computer program executed by the image data processing apparatus 1, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the image data processing method in any one of the embodiments corresponding to fig. 3 to fig. 5 can be executed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer storage medium to which the present invention relates, reference is made to the description of the method embodiments of the present invention.
Fig. 10 is a schematic structural diagram of another image data processing apparatus according to an embodiment of the present invention. As shown in fig. 10, the image data processing apparatus can be applied to any one of the terminal devices in the above-described embodiment corresponding to fig. 1. The image data processing apparatus 2000 may include: a processor 2001, a network interface 2004, and a memory 2005, and the image data processing apparatus 2000 may further include: a user interface 2003, and at least one communication bus 2002. The communication bus 2002 is used to implement connection communication between these components. The user interface 2003 may include a Display (Display) and a Keyboard (Keyboard), and the optional user interface 2003 may further include a standard wired interface and a standard wireless interface. The network interface 2004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 2004 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 2004 may alternatively be at least one memory device located remotely from the aforementioned processor 2001. As shown in fig. 10, the memory 2004, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the image data processing apparatus 2000 shown in fig. 10, the network interface 2004 may provide a network communication function for communicating with the server; and the user interface 2003 is primarily used to provide an interface for user input; and the processor 2001 may be used to invoke the device control application stored in the memory 2004 to implement:
sending a group head portrait acquisition request to a server so that the server determines a target group requested by the group head portrait acquisition request and acquires the total number of users in the target group, and if the total number of users is greater than a target number threshold, selecting a target user in the target group according to a head portrait selection rule and acquiring a target user head portrait corresponding to the target user; the number of target users is equal to the target number threshold;
and receiving the head portrait of the target user, and synthesizing the head portrait of the target user into a group head portrait corresponding to the target group.
In one embodiment, when the processor 2001 receives the head portrait of the target user and synthesizes the head portrait of the target user into a group head portrait corresponding to the target group, the following steps are specifically performed:
asynchronously loading the target user head portrait and creating a plurality of independent unit display windows in a group head portrait display area; the number of independent unit display windows is equal to the target number threshold;
adding the head portrait of the target user which is loaded first to the corresponding independent unit display window for preferential display, and performing blank display on the independent unit display window corresponding to the unloaded head portrait of the target user;
and when all the target user head portraits are added to the corresponding independent unit display windows, determining a group head portraits display area containing all the target user head portraits as the group head portraits corresponding to the target groups.
In one embodiment, when the processor 2001 performs creating a plurality of independent unit display windows in the group avatar display area, the following steps are specifically performed:
creating a plurality of independent unit display windows, determining the placing position of each independent unit display window in the group head portrait display area according to head portrait placing rules, and respectively adding each independent unit display window to the corresponding placing position in the group head portrait display area.
In one embodiment, the processor 2001, after performing synthesizing the target user avatar into the group avatar corresponding to the target group, may further perform the following steps:
if the terminal display interface does not contain the group head portrait corresponding to the target group, deleting the head portrait of the target user in the memory;
and if a group head portrait display request corresponding to the target group is detected on the terminal display interface, acquiring the head portrait of the target user in a cache according to the group head portrait display request, and re-synthesizing the head portrait of the target user into the group head portrait corresponding to the target group.
The embodiment of the invention obtains a group head portrait obtaining request sent by terminal equipment through a server, determines a target group requested by the group head portrait obtaining request, and obtains the total number of users in the target group; if the total number of the users is larger than the target number threshold, selecting a target user in the target group according to the avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to a target number threshold; and then adjusting the size of the head portrait of the target user to a target size to obtain an adjusted head portrait of the target user, converting the format of the adjusted head portrait of the target user into a progressive picture format, sending the adjusted head portrait of the target user in the progressive picture format to the terminal equipment in a layered manner, so that the terminal equipment loads the adjusted head portrait of the target user in the progressive picture format layer by layer, and synthesizing the loaded adjusted head portrait of the target user into a group head portrait corresponding to the target group. Therefore, the terminal equipment only needs to load the head portraits of the target users needed to synthesize the group head portraits, namely the terminal equipment does not need to load the head portraits of all the users in the target group, so that the flow is saved, only the head portraits of the target users are loaded, the head portraits loading time is shortened, and the display speed of the group head portraits is further improved. The terminal equipment can also asynchronously load and display the head portraits of the adjusted target users, so that the phenomenon that the display area of the group head portraits is in blank display for a long time due to the fact that the head portraits of all the adjusted target users are loaded for too long time can be avoided, and the terminal equipment can also display part of the head portraits of the adjusted target users in the display area of the group head portraits firstly under the condition that network signals are poor, so that the head portrayal display effect is improved, and the user viscosity is increased; and the adjusted target user head portrait is set to be in a progressive picture format, so that the head portrait display speed can be further improved in the asynchronous loading and displaying process. The terminal equipment can delete the head portraits of the target users corresponding to the head portraits of the group which do not need to be displayed currently in the memory through the Freeco so as to prevent OOM and improve the performance of a terminal system; meanwhile, when the terminal device deletes the target user avatar in the content, the target user avatar in the cache is not deleted, so that the target user avatar sent by the server can be prevented from being reloaded when the group avatar needs to be displayed next time, the image display speed is increased, and the waste of network flow is reduced.
It should be understood that the image data processing apparatus 2000 described in the embodiment of the present invention may perform the description of the image data processing method in the embodiment corresponding to any one of fig. 3, fig. 4, and fig. 6, and may also perform the description of the image data processing apparatus 2 in the embodiment corresponding to fig. 8, which is not repeated herein. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores the aforementioned computer program executed by the image data processing apparatus 2, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the image data processing method in any one of the embodiments corresponding to fig. 3, fig. 4, and fig. 6 can be executed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer storage medium to which the present invention relates, reference is made to the description of the method embodiments of the present invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (14)

1. An image data processing method characterized by comprising:
the method comprises the steps that a server obtains a group head portrait obtaining request sent by terminal equipment, determines a target group requested by the group head portrait obtaining request, and obtains the total number of users in the target group;
if the total number of the users is larger than a target number threshold, selecting a target user in the target group according to an avatar selection rule, and acquiring an avatar of the target user corresponding to the target user; the number of target users is equal to the target number threshold;
asynchronously transmitting the target user head portrait to the terminal equipment so that the terminal equipment asynchronously loads the target user head portrait, creating a plurality of independent unit display windows in a group head portrait display area, adding the target user head portrait which is loaded first to the corresponding independent unit display window for preferential display, performing blank display on the independent unit display window corresponding to the unloaded target user head portrait, and determining the group head portrait display area containing all the target user head portraits as the group head portrait corresponding to the target group when all the target user head portraits are added to the corresponding independent unit display windows; the number of independent unit display windows is equal to the target number threshold; a separate unit display window displays a target user avatar.
2. The method of claim 1, wherein the selecting a target user in the target group according to an avatar selection rule and obtaining a target user avatar corresponding to the target user comprises:
acquiring group entering time corresponding to each user in the target group according to the avatar selection rule;
sequencing all users in the target group according to the sequence of the group entering time;
and selecting target users in sequence from all the sorted users, and acquiring the head portraits of the target users corresponding to the target users.
3. The method of claim 1, wherein the selecting a target user in the target group according to an avatar selection rule and obtaining a target user avatar corresponding to the target user comprises:
according to the avatar selection rule, acquiring the avatar size corresponding to each user in the target group;
sequencing all users in the target group according to the sequence of the sizes of the head images of the users;
and selecting target users in sequence from all the sorted users, and acquiring the head portraits of the target users corresponding to the target users.
4. The method of claim 1, wherein the selecting a target user in the target group according to an avatar selection rule and obtaining a target user avatar corresponding to the target user comprises:
acquiring the group liveness corresponding to each user in the target group according to the avatar selection rule;
sequencing all users in the target group according to the sequence of the group liveness;
and selecting target users in sequence from all the sorted users, and acquiring the head portraits of the target users corresponding to the target users.
5. The method of claim 1, wherein the sending the target user avatar to the terminal device to enable the terminal device to synthesize the target user avatar into a group avatar corresponding to the target group comprises:
adjusting the size of the head portrait of the target user to a target size to obtain an adjusted head portrait of the target user;
and converting the format of the adjusted target user head portrait into a progressive picture format, and sending the adjusted target user head portrait in the progressive picture format to the terminal equipment in a layered manner, so that the terminal equipment loads the adjusted target user head portrait in the progressive picture format layer by layer, and synthesizes the loaded adjusted target user head portrait into a group head portrait corresponding to the target group.
6. An image data processing method characterized by comprising:
the method comprises the steps that terminal equipment sends a group head portrait acquisition request to a server, so that the server determines a target group requested by the group head portrait acquisition request and acquires the total number of users in the target group, and if the total number of the users is larger than a target number threshold, a target user is selected in the target group according to a head portrait selection rule, and a target user head portrait corresponding to the target user is acquired; the number of target users is equal to the target number threshold;
the terminal equipment receives the head portrait of the target user and synthesizes the head portrait of the target user into a group head portrait corresponding to the target group;
the receiving, by the terminal device, the target user avatar, and synthesizing the target user avatar into a group avatar corresponding to the target group, includes:
the terminal equipment asynchronously loads the head portrait of the target user and creates a plurality of independent unit display windows in a group head portrait display area; the number of independent unit display windows is equal to the target number threshold; an independent unit display window displays a target user avatar;
adding the head portrait of the target user which is loaded first to the corresponding independent unit display window for preferential display, and performing blank display on the independent unit display window corresponding to the unloaded head portrait of the target user;
and when all the target user head portraits are added to the corresponding independent unit display windows, determining a group head portraits display area containing all the target user head portraits as the group head portraits corresponding to the target groups.
7. The method of claim 6, wherein creating a plurality of independent unit display windows in the group avatar display area comprises:
creating a plurality of independent unit display windows, determining the placing position of each independent unit display window in the group head portrait display area according to head portrait placing rules, and respectively adding each independent unit display window to the corresponding placing position in the group head portrait display area.
8. The method of claim 6, wherein after the synthesizing the target user avatar into the group avatar corresponding to the target group, further comprising:
if the terminal display interface does not contain the group head portrait corresponding to the target group, deleting the head portrait of the target user in the memory;
and if a group head portrait display request corresponding to the target group is detected on the terminal display interface, acquiring the head portrait of the target user in a cache according to the group head portrait display request, and re-synthesizing the head portrait of the target user into the group head portrait corresponding to the target group.
9. An image data processing apparatus applied to a server, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a group head portrait acquisition request sent by terminal equipment, determining a target group requested by the group head portrait acquisition request and acquiring the total number of users in the target group;
the selecting module is used for selecting a target user in the target group according to an avatar selection rule and acquiring an avatar of the target user corresponding to the target user if the total number of the users is greater than a target number threshold; the number of target users is equal to the target number threshold;
the head portrait sending module is used for asynchronously transmitting the head portrait of the target user to the terminal equipment so as to enable the terminal equipment to asynchronously load the head portrait of the target user, create a plurality of independent unit display windows in a group head portrait display area, add the head portrait of the target user which is loaded first to the corresponding independent unit display window for preferential display, perform blank display on the independent unit display window corresponding to the head portrait of the target user which is not loaded, and determine the group head portrait display area containing all the head portraits of the target user as the group head portrait corresponding to the target group when all the head portraits of the target user are added to the corresponding independent unit display windows; the number of independent unit display windows is equal to the target number threshold; a separate unit display window displays a target user avatar.
10. An image data processing apparatus applied to a terminal device, comprising:
a request sending module, configured to send a group avatar acquisition request to a server, so that the server determines a target group requested by the group avatar acquisition request, and acquires a total number of users in the target group, and if the total number of users is greater than a target number threshold, selects a target user in the target group according to an avatar selection rule, and acquires a target user avatar corresponding to the target user; the number of target users is equal to the target number threshold;
the receiving and synthesizing module is used for asynchronously loading the head portraits of the target users and establishing a plurality of independent unit display windows in the display area of the group head portraits; the number of independent unit display windows is equal to the target number threshold; an independent unit display window displays a target user avatar;
the receiving and synthesizing module is also used for adding the target user head portrait which is loaded first to the corresponding independent unit display window for preferential display and performing blank display on the independent unit display window corresponding to the unloaded target user head portrait;
the receiving and synthesizing module is further configured to determine a group avatar display area containing all target user avatars as the group avatar corresponding to the target group when all target user avatars are added to the corresponding independent unit display windows.
11. An image data processing apparatus characterized by comprising: a processor, a memory, and a network interface;
the processor is connected with the memory and the network interface respectively, wherein the network interface is used for connecting terminal equipment, the memory is used for storing program codes, and the processor is used for calling the program codes to execute the method according to any one of claims 1-5.
12. An image data processing apparatus characterized by comprising: a processor, a memory, and a network interface;
the processor is connected with the memory and the network interface respectively, wherein the network interface is used for connecting a server, the memory is used for storing program codes, and the processor is used for calling the program codes to execute the method according to any one of claims 6-8.
13. A computer storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 1-5.
14. A computer storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 6-8.
CN201711296981.9A 2017-12-08 2017-12-08 Image data processing method and device Active CN108173742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711296981.9A CN108173742B (en) 2017-12-08 2017-12-08 Image data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711296981.9A CN108173742B (en) 2017-12-08 2017-12-08 Image data processing method and device

Publications (2)

Publication Number Publication Date
CN108173742A CN108173742A (en) 2018-06-15
CN108173742B true CN108173742B (en) 2021-08-24

Family

ID=62525587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711296981.9A Active CN108173742B (en) 2017-12-08 2017-12-08 Image data processing method and device

Country Status (1)

Country Link
CN (1) CN108173742B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110634168B (en) * 2018-06-21 2023-09-12 钉钉控股(开曼)有限公司 Method and device for generating cluster head portraits
CN109448074A (en) * 2018-09-11 2019-03-08 北京达佳互联信息技术有限公司 Generation method, device, electronic equipment and the storage medium of group's head portrait
CN109768914A (en) * 2018-12-29 2019-05-17 论客科技(广州)有限公司 A kind of discussion group's head image information amending method and system
CN109828816B (en) * 2019-01-23 2022-08-12 北京达佳互联信息技术有限公司 Information presentation method, information presentation apparatus, and computer-readable storage medium
CN112581934A (en) * 2019-09-30 2021-03-30 北京声智科技有限公司 Voice synthesis method, device and system
CN111049735B (en) * 2019-12-23 2022-07-22 北京达佳互联信息技术有限公司 Group head portrait display method, device, equipment and storage medium
CN114095469B (en) * 2020-08-07 2023-07-11 腾讯科技(深圳)有限公司 Information processing method, device, equipment and storage medium
CN114205318B (en) * 2020-08-31 2023-12-08 荣耀终端有限公司 Head portrait display method and electronic equipment
CN114040253A (en) * 2021-11-04 2022-02-11 广州博冠信息科技有限公司 Live broadcast display method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217533B (en) * 2007-12-26 2011-05-11 中兴通讯股份有限公司 A synchronous big head portrait method and cluster server and terminal for the method
CN104951500A (en) * 2015-04-24 2015-09-30 小米科技有限责任公司 Head portrait display method, head portrait display device and terminal
CN105681057A (en) * 2016-02-22 2016-06-15 北京橙鑫数据科技有限公司 Group head portrait update method and device
CN106209574A (en) * 2016-06-17 2016-12-07 广州爱九游信息技术有限公司 Group's head portrait display system based on instant communication software, method and electronic equipment
CN106534485A (en) * 2016-10-12 2017-03-22 乐视控股(北京)有限公司 Method and device for setting group head portrait

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101677390A (en) * 2008-09-19 2010-03-24 佛山普立华科技有限公司 Digital photographic arrangement and head portrait picture shooting method thereof
CN101360109A (en) * 2008-09-25 2009-02-04 腾讯科技(深圳)有限公司 Image management system and method
US8661353B2 (en) * 2009-05-29 2014-02-25 Microsoft Corporation Avatar integrated shared media experience
CN102651001B (en) * 2011-02-28 2016-07-27 腾讯科技(深圳)有限公司 A kind of method of picture browsing and device
CN104699363B (en) * 2013-12-10 2018-09-21 阿里巴巴集团控股有限公司 A kind of window interface shows method and system
CN104809116B (en) * 2014-01-24 2018-10-19 腾讯科技(深圳)有限公司 A kind of method, apparatus and terminal of collection content
CN105141507A (en) * 2015-08-26 2015-12-09 努比亚技术有限公司 Method and device for displaying head portrait for social application
CN105681818B (en) * 2016-01-07 2019-01-08 中国联合网络通信集团有限公司 A kind of picture cloud storage method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217533B (en) * 2007-12-26 2011-05-11 中兴通讯股份有限公司 A synchronous big head portrait method and cluster server and terminal for the method
CN104951500A (en) * 2015-04-24 2015-09-30 小米科技有限责任公司 Head portrait display method, head portrait display device and terminal
CN105681057A (en) * 2016-02-22 2016-06-15 北京橙鑫数据科技有限公司 Group head portrait update method and device
CN106209574A (en) * 2016-06-17 2016-12-07 广州爱九游信息技术有限公司 Group's head portrait display system based on instant communication software, method and electronic equipment
CN106534485A (en) * 2016-10-12 2017-03-22 乐视控股(北京)有限公司 Method and device for setting group head portrait

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
移动跨平台即时通讯系统的设计与实现;李俊佐;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160415;全文 *

Also Published As

Publication number Publication date
CN108173742A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN108173742B (en) Image data processing method and device
CN109525853B (en) Live broadcast room cover display method and device, terminal, server and readable medium
JP5419654B2 (en) Information processing apparatus and information processing system
US20190065135A1 (en) Dynamic Server-Side Image Sizing For Fidelity Improvements
US9814979B2 (en) Data provision system, provision apparatus, execution apparatus, control method, and recording medium
US20120260215A1 (en) Push notifications for updating multiple dynamic icon panels
CN106911943B (en) Video display method and device and storage medium
CN109845250B (en) Method and system for sharing effect of image
US11491406B2 (en) Game drawer
US10887195B2 (en) Computer system, remote control notification method and program
EP3076588A1 (en) Communication management system, communication terminal, communication system, communication control method, and carrier means
CN108665510B (en) Rendering method and device of continuous shooting image, storage medium and terminal
JP7007168B2 (en) Programs, information processing methods, and information processing equipment
CN110109594B (en) Drawing data sharing method and device, storage medium and equipment
CN112817671A (en) Image processing method, device, equipment and computer readable storage medium
CN111796826A (en) Bullet screen drawing method, device, equipment and storage medium
US8717375B1 (en) Graphics display coordination
CN111857515B (en) Image processing method, device, storage medium and electronic equipment
CN113938696A (en) Live broadcast interaction method and system based on user-defined virtual gift and computer equipment
CN111191143B (en) Application recommendation method and device
CN114697568B (en) Special effect video determining method and device, electronic equipment and storage medium
CN108540726B (en) Method and device for processing continuous shooting image, storage medium and terminal
CN112614049A (en) Image processing method, image processing device, storage medium and terminal
CN110601958A (en) Chat information display method and device in mobile phone game and server
CN114330403B (en) Graphic code processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant