CN114710554B - Message processing method and device, electronic equipment and storage medium - Google Patents

Message processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114710554B
CN114710554B CN202210331354.9A CN202210331354A CN114710554B CN 114710554 B CN114710554 B CN 114710554B CN 202210331354 A CN202210331354 A CN 202210331354A CN 114710554 B CN114710554 B CN 114710554B
Authority
CN
China
Prior art keywords
picture
candidate
target
determining
push
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
CN202210331354.9A
Other languages
Chinese (zh)
Other versions
CN114710554A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202210331354.9A priority Critical patent/CN114710554B/en
Publication of CN114710554A publication Critical patent/CN114710554A/en
Application granted granted Critical
Publication of CN114710554B publication Critical patent/CN114710554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

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

Abstract

The application provides a message processing method, a message processing device, electronic equipment and a storage medium, and belongs to the technical field of Internet. According to the method, the meta information sent by the server side is obtained, and the meta information comprises a pushing theme and a picture tag; determining whether candidate pictures corresponding to the picture tags exist in a plurality of pictures stored in a local storage space; when a candidate picture corresponding to the picture tag exists, determining a first picture in the candidate picture; and combining the push theme and the first picture to obtain a push message, and pushing the push message to a push interface. According to the application, after the client receives the meta information sent by the server, the local picture corresponding to the picture tag in the meta information can be searched in the local storage space, and then the local picture and the pushing theme in the meta information are combined to obtain the pushing information, namely, when the pushing information needs to be sent, the server only needs to send the meta information, and the picture does not need to be sent at the same time, so that the bandwidth cost is reduced.

Description

Message processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a message processing method, a device, an electronic device, and a storage medium.
Background
Push technology (push technology) means that a long link is established between a client and a server, and the client can receive push messages (push messages) sent by the server at random. Push messages with pictures are often used because of the richer teletext information provided. However, since the server side generally sends Push messages to a large number of clients at a certain time point, when facing the Push messages with pictures, a large bandwidth cost is generated.
Disclosure of Invention
In order to solve the technical problem that the server side sends Push messages with pictures to a large number of clients simultaneously and generates large bandwidth cost, the application provides a message processing method, a message processing device, electronic equipment and a storage medium.
In a first aspect, a message processing method is provided, the method including:
Acquiring meta information sent by a server, wherein the meta information comprises a push theme and a picture label;
Determining whether candidate pictures corresponding to the picture tags exist in a plurality of pictures stored in a local storage space;
When a candidate picture corresponding to the picture tag exists, determining a first picture in the candidate picture;
and combining the push theme and the first picture to obtain a push message, and pushing the push message to a push interface.
In one possible embodiment, the method further comprises:
Obtaining a browsing record corresponding to a target application, wherein the target application is an application program installed in a local area, and the browsing record comprises a plurality of cache pictures;
Determining a cache picture meeting a preset condition as a target picture in a plurality of cache pictures, wherein when the picture source of the cache picture is a target source, the cache picture is determined to meet the preset condition;
And storing the target picture in the local storage space.
In one possible embodiment, the meta information further includes: the picture address is used to indicate the picture,
The method further comprises the steps of:
When the candidate pictures corresponding to the picture tags do not exist in the local storage space, requesting the server side to download the corresponding second pictures based on the picture addresses;
And combining the push theme and the second picture to obtain the push message.
In one possible embodiment, the method further comprises:
And storing the second picture into the local storage space.
In one possible embodiment, if the number of picture tags is one,
The determining a first picture in the candidate pictures comprises:
determining a first association degree of the candidate picture and the picture tag for any candidate picture;
and determining the candidate picture with the highest first association degree as the first picture.
In one possible embodiment, if the number of picture tags is a plurality,
The determining a first picture in the candidate pictures comprises:
Determining a target label corresponding to the candidate picture in a plurality of picture labels aiming at any candidate picture, and a second association degree between the candidate picture and the target label;
taking the product of the weight corresponding to the target label and the second association degree as the target association degree corresponding to the candidate picture;
and determining the candidate picture with the highest target association degree as the first picture.
In a possible implementation manner, before the combining the push theme and the first picture to obtain a push message, the method further includes:
Determining an interface size corresponding to the pushing interface, and determining at least one picture size corresponding to the first picture;
determining, for any one of at least one of the picture sizes, a size ratio of the picture size relative to the interface size;
Determining the size of the picture with the size proportion conforming to a preset proportion range as a target size;
The step of combining the push theme and the first picture to obtain a push message includes:
and combining the push subject and the first picture of the target size to obtain the push message.
In one possible embodiment, the method further comprises:
Determining the storage duration of any picture in the local storage space;
and deleting the picture in the local storage space when the storage time length is greater than a preset time length threshold value.
In a second aspect, there is provided a message processing apparatus, the apparatus comprising:
The acquisition module is used for acquiring meta information sent by the server side, wherein the meta information comprises a pushing theme and a picture label;
The first determining module is used for determining whether candidate pictures corresponding to the picture labels exist in a plurality of pictures stored in the local storage space;
A second determining module, configured to determine, when there is a candidate picture corresponding to the picture tag, a first picture in the candidate pictures;
and the combination module is used for combining the push theme and the first picture to obtain a push message and pushing the push message to a push interface.
In one possible embodiment, the apparatus further comprises a first storage module for:
Obtaining a browsing record corresponding to a target application, wherein the target application is an application program installed in a local area, and the browsing record comprises a plurality of cache pictures;
Determining a cache picture meeting a preset condition as a target picture in a plurality of cache pictures, wherein when the picture source of the cache picture is a target source, the cache picture is determined to meet the preset condition;
And storing the target picture in the local storage space.
In one possible embodiment, the meta information further includes: the picture address is used to indicate the picture,
The device also comprises a downloading module, wherein the downloading module is used for:
When the candidate pictures corresponding to the picture tags do not exist in the local storage space, requesting the server side to download the corresponding second pictures based on the picture addresses;
And combining the push theme and the second picture to obtain the push message.
In a possible embodiment, the apparatus further comprises a second storage module for:
And storing the second picture into the local storage space.
In one possible embodiment, if the number of picture tags is one,
The second determining module is further configured to:
determining a first association degree of the candidate picture and the picture tag for any candidate picture;
and determining the candidate picture with the highest first association degree as the first picture.
In one possible embodiment, if the number of picture tags is a plurality,
The second determining module is further configured to:
Determining a target label corresponding to the candidate picture in a plurality of picture labels aiming at any candidate picture, and a second association degree between the candidate picture and the target label;
taking the product of the weight corresponding to the target label and the second association degree as the target association degree corresponding to the candidate picture;
and determining the candidate picture with the highest target association degree as the first picture.
In one possible embodiment, the apparatus further comprises a target size determining module for:
Determining an interface size corresponding to the pushing interface, and determining at least one picture size corresponding to the first picture;
determining, for any one of at least one of the picture sizes, a size ratio of the picture size relative to the interface size;
Determining the size of the picture with the size proportion conforming to a preset proportion range as a target size;
The combination module is specifically configured to:
and combining the push subject and the first picture of the target size to obtain the push message.
In one possible implementation manner, the apparatus further includes a deletion module, where the deletion module is configured to:
Determining the storage duration of any picture in the local storage space;
and deleting the picture in the local storage space when the storage time length is greater than a preset time length threshold value.
In a third aspect, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
A processor for implementing the method steps of any of the first aspects when executing a program stored on a memory.
In a fourth aspect, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of the first aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the message processing methods described above.
The embodiment of the application has the beneficial effects that:
the embodiment of the application provides a message processing method, a device, electronic equipment and a storage medium, wherein in the application, firstly, meta information sent by a server side is obtained, and the meta information comprises a push theme and a picture label; then, determining whether candidate pictures corresponding to the picture tags exist in a plurality of pictures stored in a local storage space; when a candidate picture corresponding to the picture tag exists, determining a first picture in the candidate picture; and finally, combining the push theme and the first picture to obtain a push message, and pushing the push message to a push interface.
That is, according to the application, after receiving the meta information sent by the server, the client can search whether the candidate picture corresponding to the picture tag in the meta information exists in the local storage space, if so, the first picture can be determined in the candidate picture, and then the push subject in the first picture and the meta information is combined, so that the push message is obtained, that is, when the push message needs to be sent, the server only needs to send the meta information, and does not need to send the picture at the same time, thereby reducing the bandwidth cost.
Of course, it is not necessary for any one product or method of practicing the application to achieve all of the advantages set forth above at the same time.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow chart of a message processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of a message processing method according to another embodiment of the present application;
FIG. 3 is a flowchart of a message processing method according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The following will describe a message processing method provided in the embodiment of the present application in detail with reference to the specific implementation manner, as shown in fig. 1, the specific steps are as follows:
s101, acquiring meta information sent by a server side, wherein the meta information comprises a pushing theme and a picture label.
The message processing method provided by the application can be applied to pushing messages (push messages) with pictures to the display interface of a client (such as a mobile phone or a tablet personal computer, etc.), the execution body of the pushing messages is a message processing module which is generally preset in a certain application program, and after the client installs the application program, the message processing module in the application program can process the pushing messages corresponding to the application program according to the method.
Specifically, the message processing module may receive meta information for generating a push message sent by the server, where the meta information includes a push theme and a picture tag of a push picture.
Further, the picture tag is set manually through a preset rule, for example, if the picture is pushed to be a propaganda poster of "film a", the picture tag may be "film a".
S102, determining whether candidate pictures corresponding to the picture labels exist in a plurality of pictures stored in a local storage space.
In the embodiment of the application, a plurality of pictures are prestored in a local storage space of the client, and each picture is configured with a label in advance according to the preset rule, so that whether a candidate picture corresponding to the picture label exists can be determined by determining whether the picture consistent with the picture label in the meta information exists or not, wherein the candidate picture is the local picture capable of replacing the push picture.
S103, when a candidate picture corresponding to the picture tag exists, determining a first picture in the candidate pictures.
In the embodiment of the application, when the candidate picture corresponding to the picture tag exists in the local storage space, the local picture which can replace the push picture exists in the local storage space can be determined, and the first picture is determined in the candidate pictures.
S104, combining the push theme and the first picture to obtain a push message, and pushing the push message to a push interface.
In the embodiment of the application, the meta information further comprises a combination rule, the push message can be obtained by combining the push subject and the first picture according to the combination rule, and the push message is pushed to the push interface, namely the display interface of the client.
Further, the first picture may correspond to a plurality of picture sizes, in order to achieve a better viewing effect, a target size corresponding to the pushing interface may be determined in the plurality of picture sizes, and then the pushing theme and the first picture of the target size are combined to obtain the pushing message.
As one embodiment, the target size may be determined by: determining an interface size corresponding to the pushing interface, and determining at least one picture size corresponding to the first picture; determining, for any one of at least one of the picture sizes, a size ratio of the picture size relative to the interface size; and determining the size of the picture with the size proportion meeting the preset proportion range as a target size.
In this embodiment, the interface size of the push interface may be determined by the model of the client. If there are a plurality of picture sizes with the size ratio in the preset ratio range, one of the picture sizes may be selected randomly, or the picture size with the size ratio closest to the target ratio may be selected as the target size, where the preset ratio range may be a ratio range suitable for viewing by human eyes, and the target ratio may be a ratio best suitable for viewing by human eyes, for example, a golden ratio. According to the scheme, the first picture with the proper size relative to the pushing interface can be selected as the pushing picture, and the pushing picture is combined with the pushing theme to obtain the pushing message, so that the watching effect of the user is improved.
In the embodiment of the application, after receiving the meta information sent by the server, the client can search whether the candidate picture corresponding to the picture tag in the meta information exists in the local storage space, if so, the first picture can be determined in the candidate picture, and then the push subject in the first picture and the meta information is combined to obtain the push message, namely, when the push message is required to be sent, the server only needs to send the meta information, and does not need to send the picture at the same time, thereby reducing the bandwidth cost.
In yet another embodiment of the present application, as shown in fig. 2, the method may further include the steps of:
s201, acquiring a browsing record corresponding to a target application, wherein the target application is an application program installed in a local area, and the browsing record comprises a plurality of cache pictures.
S202, determining a cache picture meeting a preset condition as a target picture in a plurality of cache pictures, wherein when the picture source of the cache picture is the target source, the cache picture is determined to meet the preset condition.
And S203, storing the target picture in the local storage space.
In the embodiment of the present application, the target application is a local (i.e., client) installed application program, and the message processing module is pre-installed in the application program. The browsing record is a record generated when the user browses the target application, and comprises a plurality of cache pictures generated in the process of browsing the target application.
Further, the browsing record includes an official picture (such as a movie poster picture) uploaded by the target application platform side and an unofficial picture (such as an expression chart uploaded by the user in the comment area) uploaded by the platform user, and the official picture uploaded by the platform side can be used for replacing the push picture due to the fact that the picture quality of the official picture uploaded by the platform side is guaranteed.
Specifically, the message processing module may acquire a browsing record generated by the user browsing the target application every a preset time period, and determine, from a plurality of cached pictures included in the browsing record, the cached picture with the picture source being the target source (i.e. the official picture) as the target picture, and further store the target picture in the local storage space for replacing the push picture subsequently.
Further, in order to avoid matching a picture unsuitable for pushing, when the platform side uploads the official picture in advance, the platform side can mark whether the picture can be used for pushing, and the official picture marked as being available for pushing can be used for replacing the pushed picture in the follow-up process, so that the pushing effect is ensured.
In the embodiment of the application, the corresponding browsing record of the target application in the time period can be acquired every other preset time period, and the official picture with better picture quality is determined in the cached pictures generated by the target application, so that the official picture is stored in the local storage space. Therefore, after the subsequent client receives the meta information sent by the server, the local picture for replacing the push picture can be searched in the local storage space, and the download of the push picture is not required to be requested to the server, so that the download resource is saved, and the network pressure is reduced.
In yet another embodiment of the present application, the method may further comprise the steps of:
Step one, when the candidate pictures corresponding to the picture tags do not exist in the local storage space, requesting the server to download the corresponding second pictures based on the picture addresses.
And step two, combining the push subject and the second picture to obtain the push message.
In the embodiment of the present application, the meta information may further include a picture address (such as a picture url address), and when the candidate picture corresponding to the picture tag does not exist in the local storage space, the downloading of the corresponding second picture may be requested to the server based on the picture address, and the push subject and the second picture may be combined according to a preset combination rule, so as to obtain a complete push message.
In the embodiment of the application, when the local picture capable of replacing the pushed picture does not exist in the local storage space, the corresponding second picture (i.e. the pushed picture) is requested to be downloaded from the server based on the picture address in the meta information, and then the pushed subject and the second picture are combined to obtain the complete pushed message, so that incomplete pushed message (lack of picture) is prevented from being pushed, the user experience is influenced, and the pushing effect is ensured.
In yet another embodiment of the present application, the second picture may also be stored in the local storage space. The method is used for replacing the push picture as the local picture, so that the download resource is saved when the push message is sent subsequently, and the network pressure is reduced.
In yet another embodiment of the present application, the step S103 may include the steps of:
Step one, for any candidate picture, determining a first association degree between the candidate picture and the picture tag.
And step two, determining the candidate picture with the highest first association degree as the first picture.
In the embodiment of the application, the association degree between the picture and the label is configured while the label is configured for the picture according to the preset rule, wherein a plurality of labels can be configured for each picture, and the association degree between the picture and the label is used for representing the association degree between the label and the picture.
In this embodiment, only one number of picture tags is included in the meta information, for each candidate picture, a tag that is consistent with a picture tag is determined among a plurality of tags configured for the candidate picture, a degree of association corresponding to the tag is determined as a first degree of association between the candidate picture and the picture tag, and a candidate picture with the highest first degree of association is determined as a first picture.
In the embodiment of the application, the candidate picture with the highest association degree with the picture tag can be directly determined as the first picture, and the scheme has simple calculation process and can be used for rapidly matching the local picture suitable for replacing the pushed picture, thereby ensuring the pushing efficiency and pushing effect.
In yet another embodiment of the present application, as shown in fig. 3, the step S103 may further include the following steps:
S301, determining a target label corresponding to the candidate picture in a plurality of picture labels according to any candidate picture, and determining a second association degree between the candidate picture and the target label.
In the embodiment of the application, for each candidate picture, a picture label consistent with the label of the candidate picture is determined as a target label corresponding to the candidate picture, and then a second association degree of the candidate picture and the target label is determined according to the association degree of the pre-configured candidate picture and each label.
For example, the labels corresponding to the candidate picture 1 include "movie a", "actor B", and "actor C", where the association degree of "movie a" and the candidate picture 1 is 0.6, the association degree of "actor B" and the candidate picture 1 is 0.2, the association degree of "actor C" and the candidate picture 1 is 0.2, and the meta-information includes "movie a" and "actress" in the picture labels, and the "movie a" is the target label, and the association degree of "movie a" and the candidate picture 1 (i.e., 0.6) is the second association degree.
S302, taking the product of the weight corresponding to the target label and the second association degree as the target association degree corresponding to the candidate picture.
In the embodiment of the application, the number of the picture tags in the meta information is multiple, and the weight corresponding to each picture tag is preconfigured and used for representing the correlation degree between the picture tag and the push picture.
Specifically, if only one target label is used, taking the product of the weight corresponding to the target label and the second association degree as the target association degree corresponding to the candidate picture. If a plurality of target labels exist, calculating the product of the target label and the corresponding second association degree aiming at each target label, and further adding the products corresponding to each target label to obtain the target association degree corresponding to the candidate picture.
And S303, determining the candidate picture with the highest target association degree as the first picture.
In the embodiment of the application, the candidate pictures can be ranked according to the target association degree from high to low, and the candidate picture with the highest target association degree is determined as the first picture.
According to the scheme, the local picture with the highest relativity with the pushed picture can be matched in the plurality of candidate pictures to replace the pushed picture, so that the pushing effect is ensured.
In yet another embodiment of the present application, the method may further comprise the steps of:
step one, determining the storage duration of any picture in the local storage space.
And step two, deleting the picture in the local storage space when the storage time length is greater than a preset time length threshold value.
In the embodiment of the application, the storage time length of each picture in the local storage space can be determined at intervals of preset intervals, and pictures with the storage time length greater than the threshold value of the preset time length are deleted from the local storage space. Thereby reducing the storage pressure of the local storage space.
Based on the same technical concept, the embodiment of the application further provides a message processing device, as shown in fig. 4, which includes:
The obtaining module 401 is configured to obtain meta information sent by a server, where the meta information includes a push topic and a picture tag;
a first determining module 402, configured to determine whether a candidate picture corresponding to the picture tag exists in a plurality of pictures stored in a local storage space;
A second determining module 403, configured to determine, when there is a candidate picture corresponding to the picture tag, a first picture in the candidate pictures;
and the combining module 404 is configured to combine the push theme and the first picture to obtain a push message, and push the push message to a push interface.
In one possible embodiment, the apparatus further comprises a first storage module for:
Obtaining a browsing record corresponding to a target application, wherein the target application is an application program installed in a local area, and the browsing record comprises a plurality of cache pictures;
Determining a cache picture meeting a preset condition as a target picture in a plurality of cache pictures, wherein when the picture source of the cache picture is a target source, the cache picture is determined to meet the preset condition;
And storing the target picture in the local storage space.
In one possible embodiment, the meta information further includes: the picture address is used to indicate the picture,
The device also comprises a downloading module, wherein the downloading module is used for:
When the candidate pictures corresponding to the picture tags do not exist in the local storage space, requesting the server side to download the corresponding second pictures based on the picture addresses;
And combining the push theme and the second picture to obtain the push message.
In a possible embodiment, the apparatus further comprises a second storage module for:
And storing the second picture into the local storage space.
In one possible embodiment, if the number of picture tags is one,
The second determining module is further configured to:
determining a first association degree of the candidate picture and the picture tag for any candidate picture;
and determining the candidate picture with the highest first association degree as the first picture.
In one possible embodiment, if the number of picture tags is a plurality,
The second determining module is further configured to:
Determining a target label corresponding to the candidate picture in a plurality of picture labels aiming at any candidate picture, and a second association degree between the candidate picture and the target label;
taking the product of the weight corresponding to the target label and the second association degree as the target association degree corresponding to the candidate picture;
and determining the candidate picture with the highest target association degree as the first picture.
In one possible implementation manner, the apparatus further includes a deletion module, where the deletion module is configured to:
Determining the storage duration of any picture in the local storage space;
and deleting the picture in the local storage space when the storage time length is greater than a preset time length threshold value.
In the embodiment of the application, after receiving the meta information sent by the server, the client can search whether the candidate picture corresponding to the picture tag in the meta information exists in the local storage space, if so, the first picture can be determined in the candidate picture, and then the push subject in the first picture and the meta information is combined to obtain the push message, namely, when the push message is required to be sent, the server only needs to send the meta information, and does not need to send the picture at the same time, thereby reducing the bandwidth cost.
Based on the same technical concept, the embodiment of the present application further provides an electronic device, as shown in fig. 5, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 perform communication with each other through the communication bus 114,
A memory 113 for storing a computer program;
The processor 111 is configured to execute a program stored in the memory 113, and implement the following steps:
Acquiring meta information sent by a server, wherein the meta information comprises a push theme and a picture label;
Determining whether candidate pictures corresponding to the picture tags exist in a plurality of pictures stored in a local storage space;
When a candidate picture corresponding to the picture tag exists, determining a first picture in the candidate picture;
and combining the push theme and the first picture to obtain a push message, and pushing the push message to a push interface.
In one possible embodiment, the method further comprises:
Obtaining a browsing record corresponding to a target application, wherein the target application is an application program installed in a local area, and the browsing record comprises a plurality of cache pictures;
Determining a cache picture meeting a preset condition as a target picture in a plurality of cache pictures, wherein when the picture source of the cache picture is a target source, the cache picture is determined to meet the preset condition;
And storing the target picture in the local storage space.
In one possible embodiment, the meta information further includes: the picture address is used to indicate the picture,
The method further comprises the steps of:
When the candidate pictures corresponding to the picture tags do not exist in the local storage space, requesting the server side to download the corresponding second pictures based on the picture addresses;
And combining the push theme and the second picture to obtain the push message.
In one possible embodiment, the method further comprises:
And storing the second picture into the local storage space.
In one possible embodiment, if the number of picture tags is one,
The determining a first picture in the candidate pictures comprises:
determining a first association degree of the candidate picture and the picture tag for any candidate picture;
and determining the candidate picture with the highest first association degree as the first picture.
In one possible embodiment, if the number of picture tags is a plurality,
The determining a first picture in the candidate pictures comprises:
Determining a target label corresponding to the candidate picture in a plurality of picture labels aiming at any candidate picture, and a second association degree between the candidate picture and the target label;
taking the product of the weight corresponding to the target label and the second association degree as the target association degree corresponding to the candidate picture;
and determining the candidate picture with the highest target association degree as the first picture.
In one possible embodiment, the method further comprises:
Determining the storage duration of any picture in the local storage space;
and deleting the picture in the local storage space when the storage time length is greater than a preset time length threshold value.
The communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer readable storage medium having stored therein a computer program which when executed by a processor implements the steps of any of the message processing methods described above.
In yet another embodiment of the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the message processing methods of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK (SSD)), etc.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A method of message processing, the method comprising:
Acquiring meta information sent by a server, wherein the meta information comprises a push theme and a picture label;
Determining whether candidate pictures corresponding to the picture tags exist in a plurality of pictures stored in a local storage space;
When a candidate picture corresponding to the picture tag exists, determining a first picture in the candidate picture;
combining the push theme and the first picture to obtain a push message, and pushing the push message to a push interface;
Wherein the method further comprises:
Obtaining a browsing record corresponding to a target application, wherein the target application is an application program installed in a local area, and the browsing record comprises a plurality of cache pictures;
Determining a cache picture meeting a preset condition as a target picture in a plurality of cache pictures, wherein when the picture source of the cache picture is a target source, the cache picture is determined to meet the preset condition, and the target source is the target application platform side;
storing the target picture in the local storage space;
wherein, if the number of the picture tags is a plurality of,
The determining a first picture in the candidate pictures comprises:
Determining a target label corresponding to the candidate picture in a plurality of picture labels aiming at any candidate picture, and a second association degree between the candidate picture and the target label;
taking the product of the weight corresponding to the target label and the second association degree as the target association degree corresponding to the candidate picture;
and determining the candidate picture with the highest target association degree as the first picture.
2. The method of claim 1, wherein the meta-information further comprises: the picture address is used to indicate the picture,
The method further comprises the steps of:
When the candidate pictures corresponding to the picture tags do not exist in the local storage space, requesting the server side to download the corresponding second pictures based on the picture addresses;
And combining the push theme and the second picture to obtain the push message.
3. The method according to claim 2, wherein the method further comprises:
And storing the second picture into the local storage space.
4. The method of claim 1, wherein if the number of picture tags is one,
The determining a first picture in the candidate pictures comprises:
determining a first association degree of the candidate picture and the picture tag for any candidate picture;
and determining the candidate picture with the highest first association degree as the first picture.
5. The method of claim 1, wherein before the combining the push topic and the first picture results in a push message, further comprising:
Determining an interface size corresponding to the pushing interface, and determining at least one picture size corresponding to the first picture;
determining, for any one of at least one of the picture sizes, a size ratio of the picture size relative to the interface size;
Determining the size of the picture with the size proportion conforming to a preset proportion range as a target size;
The step of combining the push theme and the first picture to obtain a push message includes:
and combining the push subject and the first picture of the target size to obtain the push message.
6. The method according to claim 1, wherein the method further comprises:
Determining the storage duration of any picture in the local storage space;
and deleting the picture in the local storage space when the storage time length is greater than a preset time length threshold value.
7. A message processing apparatus, the apparatus comprising:
The acquisition module is used for acquiring meta information sent by the server side, wherein the meta information comprises a pushing theme and a picture label;
The first determining module is used for determining whether candidate pictures corresponding to the picture labels exist in a plurality of pictures stored in the local storage space;
A second determining module, configured to determine, when there is a candidate picture corresponding to the picture tag, a first picture in the candidate pictures;
The combination module is used for combining the push subject and the first picture to obtain a push message and pushing the push message to a push interface;
The device further comprises a first storage module, wherein the first storage module is used for:
Obtaining a browsing record corresponding to a target application, wherein the target application is an application program installed in a local area, and the browsing record comprises a plurality of cache pictures;
Determining a cache picture meeting a preset condition as a target picture in a plurality of cache pictures, wherein when the picture source of the cache picture is a target source, the cache picture is determined to meet the preset condition, and the target source is the target application platform side;
storing the target picture in the local storage space;
wherein, if the number of the picture tags is a plurality of,
The second determining module is further configured to:
Determining a target label corresponding to the candidate picture in a plurality of picture labels aiming at any candidate picture, and a second association degree between the candidate picture and the target label;
taking the product of the weight corresponding to the target label and the second association degree as the target association degree corresponding to the candidate picture;
and determining the candidate picture with the highest target association degree as the first picture.
8. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
A memory for storing a computer program;
A processor for carrying out the method steps of any one of claims 1-6 when executing a program stored on a memory.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-6.
CN202210331354.9A 2022-03-30 2022-03-30 Message processing method and device, electronic equipment and storage medium Active CN114710554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210331354.9A CN114710554B (en) 2022-03-30 2022-03-30 Message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210331354.9A CN114710554B (en) 2022-03-30 2022-03-30 Message processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114710554A CN114710554A (en) 2022-07-05
CN114710554B true CN114710554B (en) 2024-04-26

Family

ID=82170434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210331354.9A Active CN114710554B (en) 2022-03-30 2022-03-30 Message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114710554B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528734A (en) * 2016-10-27 2017-03-22 北京小米移动软件有限公司 Live broadcast pushing message processing method and apparatus
WO2017133343A1 (en) * 2016-02-03 2017-08-10 北京金山安全软件有限公司 Picture processing method and apparatus, and electronic device
CA3038230A1 (en) * 2016-09-27 2018-04-05 Alibaba Group Holding Limited Information push method and device
WO2018059238A1 (en) * 2016-09-30 2018-04-05 杭州海康威视数字技术股份有限公司 Cloud storage based data processing method and system
WO2018072207A1 (en) * 2016-10-21 2018-04-26 达闼科技(北京)有限公司 Information pushing method, apparatus, and system
CN108415935A (en) * 2018-01-23 2018-08-17 北京奇虎科技有限公司 A kind of method, apparatus of push recommendation message
CN108804448A (en) * 2017-04-28 2018-11-13 百度在线网络技术(北京)有限公司 The method and apparatus for generating information to be pushed
CN109241416A (en) * 2018-08-21 2019-01-18 中国平安人寿保险股份有限公司 Picture method for pushing, device, storage media and server based on cloud computing
CN109298908A (en) * 2018-09-10 2019-02-01 顺丰科技有限公司 Wallpaper switching method, device and terminal
CN110245257A (en) * 2019-05-31 2019-09-17 阿里巴巴集团控股有限公司 The generation method and device of pushed information
CN111049871A (en) * 2018-10-15 2020-04-21 广州虎牙信息科技有限公司 Message pushing method, message management system, server and computer storage medium
CN111684441A (en) * 2019-11-15 2020-09-18 深圳海付移通科技有限公司 Message pushing method and device based on image data and computer storage medium
CN112511909A (en) * 2020-11-30 2021-03-16 当趣网络科技(杭州)有限公司 Boot push processing method, system, electronic device and medium
CN113590861A (en) * 2020-04-30 2021-11-02 北京搜狗科技发展有限公司 Picture information processing method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651666A (en) * 2020-04-28 2020-09-11 中国平安财产保险股份有限公司 User theme recommendation method and device, computer equipment and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017133343A1 (en) * 2016-02-03 2017-08-10 北京金山安全软件有限公司 Picture processing method and apparatus, and electronic device
CA3038230A1 (en) * 2016-09-27 2018-04-05 Alibaba Group Holding Limited Information push method and device
WO2018059238A1 (en) * 2016-09-30 2018-04-05 杭州海康威视数字技术股份有限公司 Cloud storage based data processing method and system
WO2018072207A1 (en) * 2016-10-21 2018-04-26 达闼科技(北京)有限公司 Information pushing method, apparatus, and system
CN106528734A (en) * 2016-10-27 2017-03-22 北京小米移动软件有限公司 Live broadcast pushing message processing method and apparatus
CN108804448A (en) * 2017-04-28 2018-11-13 百度在线网络技术(北京)有限公司 The method and apparatus for generating information to be pushed
CN108415935A (en) * 2018-01-23 2018-08-17 北京奇虎科技有限公司 A kind of method, apparatus of push recommendation message
CN109241416A (en) * 2018-08-21 2019-01-18 中国平安人寿保险股份有限公司 Picture method for pushing, device, storage media and server based on cloud computing
CN109298908A (en) * 2018-09-10 2019-02-01 顺丰科技有限公司 Wallpaper switching method, device and terminal
CN111049871A (en) * 2018-10-15 2020-04-21 广州虎牙信息科技有限公司 Message pushing method, message management system, server and computer storage medium
CN110245257A (en) * 2019-05-31 2019-09-17 阿里巴巴集团控股有限公司 The generation method and device of pushed information
CN111684441A (en) * 2019-11-15 2020-09-18 深圳海付移通科技有限公司 Message pushing method and device based on image data and computer storage medium
WO2021092935A1 (en) * 2019-11-15 2021-05-20 深圳海付移通科技有限公司 Image data-based message pushing method and device, and computer storage medium
CN113590861A (en) * 2020-04-30 2021-11-02 北京搜狗科技发展有限公司 Picture information processing method and device and electronic equipment
CN112511909A (en) * 2020-11-30 2021-03-16 当趣网络科技(杭州)有限公司 Boot push processing method, system, electronic device and medium

Also Published As

Publication number Publication date
CN114710554A (en) 2022-07-05

Similar Documents

Publication Publication Date Title
CN110366013B (en) Promotion content pushing method and device and storage medium
WO2020199751A1 (en) Method and apparatus for loading page picture, and electronic device
CN109639636B (en) Service data forwarding method, service data processing method, service data forwarding device, service data processing device and electronic equipment
US9832284B2 (en) Maintaining cached data extracted from a linked resource
EP2985705A2 (en) Webpage access method and apparatus, and router
US20160147836A1 (en) Enhanced Network Data Sharing and Acquisition
US9589063B2 (en) Two-dimensional code processing method and terminal
KR20130133904A (en) Apparatus and methods for retrieving/downloading content on a communication device
CN109451333B (en) Bullet screen display method, device, terminal and system
CN107566857B (en) Video downloading method, device, system, server and terminal
CN108334516B (en) Information pushing method and device
US11032683B2 (en) Method and apparatus for publishing cloud resource
CN106776917B (en) Method and device for acquiring resource file
US8579187B2 (en) System and method to identify machine-readable codes
CN113177160B (en) Push text generation method and device, electronic equipment and storage medium
WO2016045606A1 (en) Method and apparatus for recommending media content
WO2020125381A1 (en) Method and apparatus for generating information
CN111182331B (en) Media data slicing method, system and storage medium
CN110708402A (en) Accessible resource display method and device and resource access system
CN108667915B (en) Information pushing system, method and device
CN114710554B (en) Message processing method and device, electronic equipment and storage medium
JP7217181B2 (en) WEARABLE DEVICE, INFORMATION PROCESSING METHOD, APPARATUS AND SYSTEM
CN116320648A (en) Bullet screen drawing method and device and electronic equipment
CN112818190B (en) Content sharing method, device, electronic equipment and storage medium
CN112491939B (en) Multimedia resource scheduling method and system

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