CN111857901A - Data processing method, method for generating session background, electronic device and medium - Google Patents

Data processing method, method for generating session background, electronic device and medium Download PDF

Info

Publication number
CN111857901A
CN111857901A CN201910354903.2A CN201910354903A CN111857901A CN 111857901 A CN111857901 A CN 111857901A CN 201910354903 A CN201910354903 A CN 201910354903A CN 111857901 A CN111857901 A CN 111857901A
Authority
CN
China
Prior art keywords
user
picture
data
background
pictures
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.)
Granted
Application number
CN201910354903.2A
Other languages
Chinese (zh)
Other versions
CN111857901B (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.)
Shanghai Zhangmen Science and Technology Co Ltd
Original Assignee
Shanghai Zhangmen Science and Technology 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 Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN201910354903.2A priority Critical patent/CN111857901B/en
Publication of CN111857901A publication Critical patent/CN111857901A/en
Application granted granted Critical
Publication of CN111857901B publication Critical patent/CN111857901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a data processing method, a method for generating a session background, electronic equipment and a medium. One specific implementation of the data processing method comprises the following steps: acquiring social data between a first user and a second user, wherein the social data comprises at least one of picture data and video data between the first user and the second user; extracting at least one picture suitable for being used as a conversation background from social data to obtain a candidate background picture of an interface of a conversation between a first user and a second user; and sending the candidate background picture or the description information of the candidate background picture to the terminal used by the first user and/or the second user. According to the embodiment, the background of the chat session can be automatically generated by the social platform according to footprints or using habits of both users participating in the chat on the social platform.

Description

Data processing method, method for generating session background, electronic device and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method, a method of generating a session background, an electronic device, and a medium.
Background
With the development of the internet, a social platform or a social application becomes an indispensable network communication mode in the life of people, and the social platform or the social application can be used on fixed equipment such as a personal computer and the like and can also be used on mobile terminals such as a mobile phone and the like, so that the daily communication and exchange of people are greatly facilitated.
Typically, a social platform or social application will expose a default chat context. When the user wants to change the chat background, the user can manually designate a picture as the chat background from the local or network.
Disclosure of Invention
The embodiment of the application provides a data processing method, a method for generating a session background, electronic equipment and a medium.
In a first aspect, some embodiments of the present application provide a data processing method, which is applied to a server, and the method includes: acquiring social data between a first user and a second user, wherein the social data comprises at least one of picture data and video data between the first user and the second user; extracting at least one picture suitable for being used as a conversation background from social data to obtain a candidate background picture of an interface of a conversation between a first user and a second user; and sending the candidate background picture or the description information of the candidate background picture to the terminal used by the first user and/or the second user.
In a second aspect, some embodiments of the present application provide a method for generating a session context, which is applied to a terminal held by a first user, the method including: selecting a background picture of a conversation between a first user and a second user from candidate background pictures for the conversation between the first user and the second user on a social platform, wherein the candidate background pictures are from social data between the first user and the second user; and generating the background of the conversation interface between the first user and the second user based on the selected background picture.
In a third aspect, some embodiments of the present application provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon which, when executed by one or more processors, cause the one or more processors to implement the method as described in the first aspect or the second method.
In a fourth aspect, some embodiments of the present application provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a method as described in the first or second aspect.
According to the data processing method, the method for generating the session background, the electronic device and the medium, the social data including the picture data and/or the video data between the first user and the second user are obtained, the at least one picture suitable for being used as the session background is extracted from the social data, and then the candidate background picture or the description information of the candidate background picture is sent to the user terminal, so that the background of the chat session can be generated by the social platform automatically according to footprints or using habits of two parties of the users participating in the chat on the social platform.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a data processing method according to the present application;
FIG. 3 is a flow diagram for one embodiment of a method of generating a session context in accordance with the present application;
FIGS. 4A and 4B are schematic diagrams of an application scenario of a method of generating a session context according to the present application;
FIG. 5 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the data processing method or the method of generating a session context of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminals 101, 102, 103, a network 104, and a server 105. The network 104 serves to provide a medium for communication links between the terminals 101, 102, 103 and the server 105. The network 104 may include various connection types, such as a wireless local area network, a mobile network, and so on.
The user may use the terminals 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminals 101, 102, 103 may have various communication client applications installed thereon, such as social platform software, instant messaging tools, browser applications, shopping applications, search applications, mailbox clients, and the like.
The terminals 101, 102, 103 may be hardware or software. When the terminals 101, 102, 103 are hardware, they may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, Personal Digital Assistants (PDAs), laptop portable computers, desktop computers, and the like. When the terminals 101, 102, 103 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for social platform software running on the terminals 101, 102, 103. The background server may analyze and perform other processing on the received data such as the picture data and the video data, and feed back a processing result (e.g., a candidate background picture) to the terminals 101, 102, and 103.
It should be noted that the data processing method provided in the embodiment of the present application is generally executed by the server 105, and the method for generating a session context provided in the embodiment of the present application is generally executed by the terminals 101, 102, and 103.
It should be noted that the system architecture 100 may not include the server 105. When the system architecture 100 does not include the server 105, the terminals 101, 102, 103 may obtain social data between users from local.
It should be understood that the number of terminals, networks and servers in fig. 1 is merely illustrative. There may be any suitable number of terminals, networks, and servers, as desired for an implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a data processing method according to the present application is shown. The data processing method can be applied to a server and comprises the following steps 201-203:
Step 201, social data between a first user and a second user is obtained.
In this embodiment, an executing entity (e.g., the server 105 shown in fig. 1) of the data processing method may acquire social data between the first user and the second user. The second user may be a user who has a conversation (or chat) with the first user through the social platform. For example, the second user may be a social friend of the first user. The social data may include at least one of picture data, video data for interaction between the first user and the second user. As an example, the social data may include a picture in a chat log between the first user and the second user.
In some optional implementation manners of this embodiment, step 201 may specifically include: and acquiring the session message of the picture type and/or the view type from the historical session message between the first user and the second user as at least part of the social data. For example, a picture-type message may be selected from the chat records of zhang san and lie si as social data between zhang san and lie si. For another example, a picture type message and a video type message may be selected from the chat records of zhang san and lie si, and collectively used as social data between zhang san and lie si.
In some optional implementation manners of this embodiment, step 201 may specifically include: and acquiring picture data and/or video data of the interaction between the first user and the second user as at least partial data of the social data. As an example, a picture that is praised, commented and forwarded by zhangsi may be selected from zhangsi circle of friends as social data between zhangsi and zhangsi.
Optionally, the obtaining of the picture data and/or the video data with interaction between the first user and the second user may specifically include the following steps: acquiring picture data and/or video data which are issued by a first user and operated by a second user in a preset mode; and/or acquiring picture data and/or video data published by the second user and operated by the first user in a preset manner. Here, the preset manner may include, but is not limited to, at least one of the following: and clicking praise, commenting and forwarding.
By way of example, the pictures and videos which are praised, commented and forwarded by Zhang III and published friend circles can be selected firstly, then the pictures and videos which are praised, commented and forwarded by Zhang III and published friend circles are selected, and finally the obtained pictures and videos are taken as social data between Zhang III and Zhang IV.
Although the above examples describe obtaining social data from friend circle content posted by the first user and/or the second user, the present application is not so limited. It should be understood that social data may also be obtained from other multimedia type contents published by the first user and/or the second user, for example, public content, link content, etc., and those skilled in the art may set the social data according to the needs of the actual application scenario.
At least one picture suitable for being used as a conversation background is extracted from the social data to obtain a candidate background picture of an interface of a conversation between the first user and the second user in step 202.
In this embodiment, an executing entity of the data processing method (for example, the server 105 shown in fig. 1) may extract at least one picture suitable for being used as a session background from the social data acquired in step 201, so as to obtain a candidate background picture of an interface for a session between a first user and a second user. The pictures suitable for use as a background for the conversation may be any suitable type of picture, such as landscape pictures, architectural pictures, etc. In addition, the picture suitable for use as the session background may also be a picture having an appropriate resolution, for example, a picture greater than or equal to the resolution of the terminal device.
In some optional implementations of this embodiment, step 202 may specifically include the following steps:
first, the screen resolution of a terminal held by a first user (or a second user) is acquired. For example, the screen resolution of the terminal held by the first user is m × n.
Then, pictures with the resolution greater than or equal to the screen resolution are obtained from the social data obtained in step 201, so as to obtain a first picture set.
And finally, dividing the first picture set into at least one second picture set according to the type of the picture content.
Optionally, when the social data obtained in step 201 includes picture data, obtaining a picture greater than or equal to the screen resolution from the social data may specifically include: and screening out pictures with the screen resolution which is greater than or equal to the screen resolution of the terminal held by the first user (or the second user) from the picture data to be used as the first pictures.
Optionally, when the social data obtained in step 201 includes video data, obtaining a picture greater than or equal to the screen resolution from the social data may specifically include: and extracting key frames from the video data in the social data, and screening out the key frames which are greater than or equal to the screen resolution of the terminal held by the first user (or the second user) from the extracted key frames to serve as the first picture. Here, the key frame may refer to an image frame containing the most image information among a plurality of image frames adjacent to each other. For example, a key frame may be an image frame (also referred to as a fully encoded image frame) in a video that can be independently decoded without reference to other image frames.
Optionally, dividing the first picture set into at least one second picture set according to the type of the picture content may specifically include:
firstly, image recognition is carried out on each of a plurality of first pictures in a first picture set, and a content type corresponding to each first picture is determined based on a recognition result. Here, the type corresponding to the picture may include, but is not limited to, a character type, a building type, a landscape type, a delicatessen type, and the like. As an example, when the recognition result of the first picture is "three, li four", "child", "soldier", or the like, it may be determined that the first picture is a character type picture. When the recognition result of the first picture is "flower", "tree", "sunset", or the like, it can be determined that the first picture is a landscape type picture.
Then, the first pictures with the same content type are divided into the same second picture set. For example, a first picture of a person type is divided into a first second set of pictures, a first picture of a landscape type is divided into a second set of pictures, a first picture of a building type is divided into a third second set of pictures, … …, and so on.
In some optional implementations of this embodiment, step 202 may further include: and combining the second pictures in each second picture set (for example, combining in a time sequence, randomly combining, and the like) to generate a carousel picture set corresponding to each second picture set, so that the background pictures are switched according to the combination sequence when the carousel picture set is used as a session background, and the user experience is improved.
Step 203, sending the candidate background picture or the description information of the candidate background picture to the terminal used by the first user and/or the second user.
In this embodiment, the execution subject of the data processing method (e.g., the server 105 shown in fig. 1) may send the candidate background picture (or description information of the candidate background picture) obtained in step 202 to the user terminal (e.g., the terminals 101, 102, 103 shown in fig. 1). Here, the user terminal may be a terminal where the user allows the system to automatically generate a session context according to social data between users (i.e., authorize the social application to change the session context). When the first user turns on authorization, the execution body may transmit the candidate background picture (or description information of the candidate background picture) to a terminal held by the first user. When the second user turns on the authorization, the execution body may transmit the candidate background picture (or the description information of the candidate background picture) to a terminal held by the second user. When the first user and the second user simultaneously turn on the authorization, the execution main body may simultaneously transmit the candidate background picture (or the description information of the candidate background picture) to the terminal held by the first user and the terminal held by the second user.
Since the candidate background picture may include several background pictures or a plurality of second picture sets, before the session background picture is not determined, the execution subject may send only the description information of the candidate background picture, so as to reduce the amount of data to be transmitted and reduce network overhead.
According to the data processing method provided by the embodiment of the application, the social data which are between the first user and the second user and comprise the picture data and/or the video data are obtained, at least one picture suitable for being used as the session background is extracted from the social data, and then the candidate background picture or the description information of the candidate background picture is sent to the terminal equipment, so that the background of the chat session can be generated by the social platform automatically according to footprints or using habits of two parties of the users participating in the chat on the social platform.
With continued reference to FIG. 3, a flow 300 of one embodiment of a method of generating a session context in accordance with the present application is shown. The method for generating the session background can be applied to a terminal device held by a first user (or a second user), and can comprise the following steps 301-302:
step 301, selecting a background picture of a conversation between a first user and a second user from candidate background pictures for the conversation between the first user and the second user on a social platform.
In this embodiment, an executing subject (for example, the terminals 101, 102, 103 shown in fig. 1) of the method for generating a session context may select a context picture of a session between a first user and a second user from candidate context pictures for the session between the first user and the second user on a social platform. Wherein the candidate background picture may be from social data between the first user and the second user. For example, the candidate background picture may be at least one picture extracted from social data between the first user and the second user that is suitable for use as a session background. The social data may include at least one of picture data, video data for interaction between the first user and the second user. As an example, the social data may include a picture in a chat log between the first user and the second user.
In some optional implementations of this embodiment, the social data between the first user and the second user may be obtained by: and acquiring the session message of the picture type and/or the view type from the historical session message between the first user and the second user as at least part of the social data. For example, a picture-type message may be selected from the chat records of zhang san and lie si as social data between zhang san and lie si. For another example, a picture type message and a video type message may be selected from the chat records of zhang san and lie si, and collectively used as social data between zhang san and lie si.
In some optional implementations of this embodiment, the social data between the first user and the second user may be obtained by: and acquiring picture data and/or video data of the interaction between the first user and the second user as at least partial data of the social data. As an example, a picture that is praised, commented and forwarded by zhangsi may be selected from zhangsi circle of friends as social data between zhangsi and zhangsi.
Optionally, the obtaining of the picture data and/or the video data with interaction between the first user and the second user may specifically include the following steps: acquiring picture data and/or video data which are issued by a first user and operated by a second user in a preset mode; and/or acquiring picture data and/or video data published by the second user and operated by the first user in a preset manner. Here, the preset manner may include, but is not limited to, at least one of the following: and clicking praise, commenting and forwarding.
In this embodiment, the candidate background picture may be any suitable type of picture, such as a landscape picture, a building picture, and the like. In addition, the candidate background picture may also be a picture having an appropriate resolution, for example, a picture greater than or equal to the resolution of the terminal device.
In some optional implementations of this embodiment, the candidate background picture may be obtained by:
first, the screen resolution of a terminal held by a first user (or a second user) is acquired. For example, the screen resolution of the terminal held by the first user is m × n.
And then, obtaining pictures with the resolution ratio larger than or equal to the screen resolution ratio from social data between the first user and the second user to obtain a first picture set.
And finally, dividing the first picture set into at least one second picture set according to the type of the picture content.
Optionally, when the social data between the first user and the second user includes picture data, obtaining a picture greater than or equal to the screen resolution from the social data may specifically include: and screening out pictures with the screen resolution which is greater than or equal to the screen resolution of the terminal held by the first user (or the second user) from the picture data to be used as the first pictures.
Optionally, when the social data between the first user and the second user includes video data, obtaining a picture greater than or equal to the screen resolution from the social data may specifically include: and extracting key frames from the video data in the social data, and screening out the key frames which are greater than or equal to the screen resolution of the terminal held by the first user (or the second user) from the extracted key frames to serve as the first picture.
Optionally, dividing the first picture set into at least one second picture set according to the type of the picture content may specifically include:
firstly, image recognition is carried out on each of a plurality of first pictures in a first picture set, and a content type corresponding to each first picture is determined based on a recognition result. Here, the type corresponding to the picture may include, but is not limited to, a character type, a building type, a landscape type, a delicatessen type, and the like.
Then, the first pictures with the same content type are divided into the same second picture set.
In some optional implementation manners of this embodiment, the step of obtaining the candidate background picture may further include: and combining the second pictures in each second picture set (for example, combining in a time sequence, randomly combining, and the like) to generate a carousel picture set corresponding to each second picture set, so that the background pictures are switched according to the combination sequence when the carousel picture set is used as a session background, and the user experience is improved.
In this embodiment, the social data between the first user and the second user may be obtained when the first user and the second user have a conversation, or may be obtained when the first user and the second user have no conversation (for example, obtained offline).
Likewise, the candidate background picture may be obtained when the first user has a conversation with the second user, or may be obtained when the first user has no conversation with the second user (for example, obtained offline). When the first user and the second user do not have a conversation, the social data and the candidate background picture between the first user and the second user are obtained, so that on one hand, the system expenditure during conversation between the first user and the second user can be reduced, and on the other hand, the efficiency of selecting the background picture can be improved.
Although the above implementation describes that social data and candidate background pictures are acquired by a terminal, the present embodiment is not limited thereto. Those skilled in the art will appreciate that the social data and the candidate background picture may also be obtained by the server and sent to the terminal.
In some optional implementation manners of this embodiment, step 301 may specifically include: and randomly selecting a picture from the candidate background pictures as a background picture of the conversation between the first user and the second user.
In some optional implementations of this embodiment, step 301 may specifically include the following steps:
first, a type to which session content between a first user and a second user belongs is determined. As an example, the session content between the first user and the second user may be obtained first, and then the type of the session content between the first user and the second user may be determined according to the session content. For example, when the conversation content between the first user and the second user includes keywords such as "plantations", "peonies", and the like, it may be determined that the type to which the conversation content between the first user and the second user belongs is a landscape type.
Then, a picture matching the type to which the conversation content belongs is selected from the candidate background pictures as a background picture of the conversation between the first user and the second user. As an example, when it is determined that the type to which the session content between the first user and the second user belongs is a landscape type, the second picture set of the landscape type (or the carousel picture set corresponding to the second picture set) may be selected from the candidate background pictures as the background pictures of the session between the first user and the second user.
Step 302, generating a background of a conversation interface between the first user and the second user based on the selected background picture.
In this embodiment, an executing body (e.g., the terminals 101, 102, 103 shown in fig. 1) of the method for generating a session background may generate a background of a session interface between the first user and the second user based on the background picture selected in step 301. For example, the background picture selected in step 301 may be applied as a background of a session interface between the first user and the second user after being processed, such as being tiled, stretched, or semi-transparent.
In the embodiment, the system can automatically generate the matched background picture according to the social data of the user without manually setting the session background by the user, so that the operation of the user can be simplified, the user experience can be improved, and the system can be simultaneously applied to session interfaces of both parties of the session.
With continued reference to fig. 4A and 4B, one application scenario of a method of generating a session context according to the present application is illustrated. In the application scenario of fig. 4A, the server 401 first obtains picture messages, video messages, and friend likes, comments, forwarded pictures and videos between the first user and the second user as social data between the first user and the second user, and then extracts candidate background pictures offline. The extraction process is as follows: the server 401 first screens out pictures with resolution not less than mxn from the picture data of the social data, and screens out key frames with resolution not less than mxn from the key frames extracted from the video data of the social data, and the screened pictures and key frames form a picture set 403. Subsequently, the server 401 performs image recognition on each picture in the picture set 403, and divides the image set 403 into four second image sets 404 according to the image recognition result, namely a person picture set, a building picture set, a landscape picture set and a gourmet picture set. Thereafter, in the application scenario of fig. 4B, the holding user of the handset 402 (i.e., the first user) has a conversation with a second user (not shown) via the social platform. After the server 401 acquires the session content, it determines that the session content type is a food type, and then selects a food picture set from the four second image sets 404, and randomly combines the pictures in the food picture set to generate a food picture carousel set 405, and sends the food picture carousel set 405 to the mobile phone 402. After receiving the gouge picture carousel set 405, the cell phone 402 applies the gouge picture carousel set 405 as a background of a session interface between the first user and the second user.
According to the method for generating the conversation background, the background picture of the conversation between the first user and the second user is selected from the candidate background pictures of the social data between the first user and the second user, and the background of the conversation interface between the first user and the second user is generated, so that the background of the chat conversation can be generated by the social platform automatically according to footprints or using habits of the two parties of the users participating in the chat on the social platform.
Referring now to fig. 5, a schematic diagram of an electronic device (e.g., the terminal 101, 102, 103 or the server 105 shown in fig. 1) 500 suitable for implementing embodiments of the present application is shown. The electronic device 500 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following devices may be connected to the I/O interface 505 in general: input devices 506 including, for example, a mouse, keyboard, touch screen, keys, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; a storage device 508 including, for example, a hard disk, a memory card, or the like; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 5 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program, when executed by the processing device 501, performs the above-described functions defined in the methods of embodiments of the present disclosure. It should be noted that the computer readable medium in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be included in the server or the terminal; or may exist separately and not be assembled into the server or terminal. The computer readable medium carries one or more programs which, when executed by the server, cause the server to: acquiring social data between a first user and a second user, wherein the social data comprises at least one of picture data and video data between the first user and the second user; extracting at least one picture suitable for being used as a conversation background from social data to obtain a candidate background picture of an interface of a conversation between a first user and a second user; and sending the candidate background picture or the description information of the candidate background picture to the terminal used by the first user and/or the second user. The one or more programs, when executed by the terminal, cause the terminal to: selecting a background picture of a conversation between a first user and a second user from candidate background pictures for the conversation between the first user and the second user on a social platform, wherein the candidate background pictures are from social data between the first user and the second user; and generating the background of the conversation interface between the first user and the second user based on the selected background picture.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept as defined above. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (13)

1. A data processing method is applied to a server side, and is characterized in that the method comprises the following steps:
acquiring social data between a first user and a second user, wherein the social data comprises at least one of picture data and video data between the first user and the second user;
extracting at least one picture suitable for being used as a conversation background from the social data to obtain a candidate background picture of an interface of the first user for conversation with the second user;
and sending the candidate background picture or the description information of the candidate background picture to a terminal used by the first user and/or the second user.
2. The method of claim 1, wherein obtaining social data between the first user and the second user comprises:
and acquiring a picture type and/or video type conversation message between the first user and the second user as at least partial data of the social data.
3. The method of claim 2, wherein obtaining social data between the first user and the second user further comprises:
and acquiring picture data and/or video data of the interaction between the first user and the second user as at least partial data of the social data.
4. The method of claim 3, wherein obtaining picture data and/or video data for which there is an interaction between the first user and the second user comprises:
acquiring picture data and/or video data which are issued by the first user and operated by the second user in a preset mode; and/or
Acquiring picture data and/or video data issued by the second user and operated by the first user in the preset mode;
wherein the preset mode comprises at least one of the following modes: and clicking praise, commenting and forwarding.
5. The method of claim 1, wherein extracting at least one picture from the social data suitable for use as a session context comprises:
acquiring the screen resolution of a terminal held by the first user or the second user;
obtaining pictures with resolution ratio larger than or equal to the screen resolution ratio from the social data to obtain a first picture set;
and dividing the first picture set into at least one second picture set according to the type of the picture content.
6. The method of claim 5, wherein obtaining pictures at or above the screen resolution from the social data to obtain a first set of pictures comprises:
screening out pictures with the resolution ratio larger than or equal to that of the screen from picture data in the social data as first pictures; and/or
And extracting key frames from the video data in the social data, and screening out the key frames with the resolution greater than or equal to the screen resolution from the extracted key frames to serve as a first picture.
7. The method of claim 5, wherein dividing the first set of pictures into at least one second set of pictures according to types of picture content comprises:
Performing image recognition on each first picture in a plurality of first pictures in the first picture set, and determining a content type corresponding to each first picture based on a recognition result;
the first pictures with the same content type are divided into the same second picture set.
8. The method of claim 5, wherein extracting at least one picture from the social data suitable for use as a session context further comprises:
and generating a carousel picture set corresponding to each second picture set.
9. A method for generating a session context for a terminal held by a first user, the method comprising:
selecting a background picture of a conversation between a first user and a second user from candidate background pictures for the conversation between the first user and the second user on a social platform, wherein the candidate background picture is from social data between the first user and the second user;
and generating the background of the conversation interface between the first user and the second user based on the selected background picture.
10. The method of claim 9, wherein selecting the background picture of the conversation between the first user and the second user from the candidate background pictures comprises:
Randomly selecting a picture from the candidate background pictures as a background picture of the conversation between the first user and the second user.
11. The method of claim 9, wherein selecting the background picture of the conversation between the first user and the second user from the candidate background pictures comprises:
determining a type to which session content between the first user and the second user belongs;
and selecting a picture matched with the type of the conversation content from the candidate background pictures as a background picture of the conversation between the first user and the second user.
12. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-11.
13. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-11.
CN201910354903.2A 2019-04-29 2019-04-29 Data processing method, method for generating session background, electronic device and medium Active CN111857901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910354903.2A CN111857901B (en) 2019-04-29 2019-04-29 Data processing method, method for generating session background, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910354903.2A CN111857901B (en) 2019-04-29 2019-04-29 Data processing method, method for generating session background, electronic device and medium

Publications (2)

Publication Number Publication Date
CN111857901A true CN111857901A (en) 2020-10-30
CN111857901B CN111857901B (en) 2024-05-17

Family

ID=72966255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910354903.2A Active CN111857901B (en) 2019-04-29 2019-04-29 Data processing method, method for generating session background, electronic device and medium

Country Status (1)

Country Link
CN (1) CN111857901B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597320A (en) * 2020-12-09 2021-04-02 上海掌门科技有限公司 Social information generation method, device and computer readable medium
CN115396391A (en) * 2022-08-23 2022-11-25 北京字跳网络技术有限公司 Method, device, equipment and storage medium for presenting session message

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251754A1 (en) * 2004-05-05 2005-11-10 Padgett Allan P User interface including a preview
US20140236953A1 (en) * 2009-02-11 2014-08-21 Jeffrey A. Rapaport Methods using social topical adaptive networking system
CN104125326A (en) * 2013-04-28 2014-10-29 上海鼎讯电子有限公司 Method and terminal for setting message background
CN105791098A (en) * 2016-04-29 2016-07-20 广州灵光信息科技有限公司 Chat background presenting method based on instant communication software
CN109474512A (en) * 2018-09-30 2019-03-15 深圳市彬讯科技有限公司 Background update method, terminal device and the storage medium of instant messaging

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251754A1 (en) * 2004-05-05 2005-11-10 Padgett Allan P User interface including a preview
US20140236953A1 (en) * 2009-02-11 2014-08-21 Jeffrey A. Rapaport Methods using social topical adaptive networking system
CN104125326A (en) * 2013-04-28 2014-10-29 上海鼎讯电子有限公司 Method and terminal for setting message background
CN105791098A (en) * 2016-04-29 2016-07-20 广州灵光信息科技有限公司 Chat background presenting method based on instant communication software
CN109474512A (en) * 2018-09-30 2019-03-15 深圳市彬讯科技有限公司 Background update method, terminal device and the storage medium of instant messaging

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597320A (en) * 2020-12-09 2021-04-02 上海掌门科技有限公司 Social information generation method, device and computer readable medium
CN115396391A (en) * 2022-08-23 2022-11-25 北京字跳网络技术有限公司 Method, device, equipment and storage medium for presenting session message
CN115396391B (en) * 2022-08-23 2024-05-03 北京字跳网络技术有限公司 Method, apparatus, device and storage medium for session message presentation

Also Published As

Publication number Publication date
CN111857901B (en) 2024-05-17

Similar Documents

Publication Publication Date Title
US10873769B2 (en) Live broadcasting method, method for presenting live broadcasting data stream, and terminal
US20190342241A1 (en) Systems and methods for manipulating and/or concatenating videos
CN117121470A (en) Presenting participant dialogues within a virtual conference system
CN112311841B (en) Information pushing method and device, electronic equipment and computer readable medium
JP2017526074A (en) System and method for generating a user facial expression library for messaging and social networking applications
US20150117513A1 (en) Bandwidth reduction system and method
CN110460510B (en) Method, device, electronic equipment and medium for establishing multi-person session
US20240119969A1 (en) Video processing method and apparatus, electronic device and storage medium
CN110634220B (en) Information processing method and device
CN110472558B (en) Image processing method and device
US20160127292A1 (en) Method and system for controlling polling in message conversations across multiple devices
CN111460049A (en) Content sharing method and device, electronic equipment and computer readable storage medium
CN111857901B (en) Data processing method, method for generating session background, electronic device and medium
CN111447191B (en) Information interaction method and device and electronic equipment
CN110505072B (en) Method, terminal device and computer readable medium for backing up chat records
CN112817671A (en) Image processing method, device, equipment and computer readable storage medium
CN112016280B (en) File editing method and device and computer readable medium
US9354697B2 (en) Detecting active region in collaborative computing sessions using voice information
CN111262778B (en) Invitation link information processing method and device, electronic equipment and readable medium
CN109995543B (en) Method and apparatus for adding group members
CN115793936A (en) Information processing method and device and electronic equipment
CN111143740B (en) Information processing method and device and electronic equipment
US11006076B1 (en) Methods and systems for configuring multiple layouts of video capture
CN110213061B (en) Synchronous communication method, synchronous communication device, synchronous communication apparatus, and medium
US9479470B2 (en) Method and system of providing an instant messaging service

Legal Events

Date Code Title Description
PB01 Publication
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