CN113259310A - Image pushing method and device, electronic equipment and storage medium - Google Patents
Image pushing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113259310A CN113259310A CN202110214508.1A CN202110214508A CN113259310A CN 113259310 A CN113259310 A CN 113259310A CN 202110214508 A CN202110214508 A CN 202110214508A CN 113259310 A CN113259310 A CN 113259310A
- Authority
- CN
- China
- Prior art keywords
- pushed
- image
- threshold
- target
- images
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present disclosure relates to an image pushing method and apparatus, an electronic device, and a storage medium, wherein the method includes: receiving a plurality of target images pushed in a data stream form; determining the number threshold value N of the target images which can be displayed by the display terminal in the current time period; determining images to be pushed in the target images received in the current time period according to the quantity threshold, wherein the probability that the target images received in the current time period are determined to be the images to be pushed is the same; and pushing the image to be pushed to the display terminal. The embodiment of the disclosure can enable the display terminal to obtain the same display opportunity for the target image pushed in the form of data stream under the condition that the target image can be normally displayed.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an image pushing method and apparatus, an electronic device, and a storage medium.
Background
The image acquired by the image acquisition equipment can be analyzed and then the image containing the target object is pushed to the display terminal to be displayed, so that the related personnel can conveniently check the image. For example, an image is acquired through an image acquisition device, the image is analyzed to extract a portrait, and then the portrait is pushed to a display terminal.
However, when there are many image capturing devices connected to the system or during a peak period of the target object flow, the number of images pushed to the display terminal often exceeds the number of images that can be displayed normally by the display terminal, which may cause the images not to be loaded and displayed, but to be refreshed and covered by new images, which may cause the user to view the images normally.
Disclosure of Invention
The present disclosure provides an image pushing technical solution.
According to an aspect of the present disclosure, there is provided an image push method including:
receiving a plurality of target images pushed in a data stream form;
determining the number threshold value N of the target images which can be displayed by the display terminal in the current time period;
determining images to be pushed in the target images received in the current time period according to the quantity threshold, wherein the probability that the target images received in the current time period are determined to be the images to be pushed is the same;
and pushing the image to be pushed to the display terminal.
In a possible implementation manner, the determining, according to the number threshold, an image to be pushed in the target images received in the current time period includes:
after an ith target image is received in a current time period, adding the ith target image into an image set to be pushed under the condition that i is not more than N;
under the condition that i is larger than N, determining N images to be pushed from the target images in the image set to be pushed and the ith target image according to the same probability to form an image set to be pushed;
the pushing the image to be pushed to the display terminal includes:
and under the condition that the current time period is over, pushing the image to be pushed in the image set to be pushed to the display terminal.
In a possible implementation manner, the determining N images to be pushed according to the same probability from the target image in the image set to be pushed and the ith target image includes:
randomly taking an integer r in the interval [1, i ], and if r is less than or equal to N, replacing the r-th target image in the image set to be pushed by the i-th target image to obtain N images to be pushed which form the image set to be pushed;
if r is larger than N, discarding the ith target image, and keeping N images to be pushed in the image set to be pushed.
In a possible implementation manner, the determining the threshold N of the number of target images that can be displayed by the display terminal in the current time period includes:
and when the number threshold is preset by the user, setting the number threshold N preset by the user as the number threshold N of the target images which can be displayed by the display terminal in the current time period.
In a possible implementation manner, the determining the threshold N of the number of target images that can be displayed by the display terminal in the current time period includes:
and under the condition that the number threshold is not preset by the user, determining the number threshold N of the target images which can be displayed by the display terminal in the current time period according to the receiving speed of the target images and/or the loading speed of the display terminal to the target images.
In a possible implementation manner, the determining, according to a receiving speed of a target image and/or a loading speed of the display terminal on the target image, a threshold N of a number of target images that can be displayed by the display terminal in a current time period includes:
determining a first threshold value according to the receiving speed of the target image;
determining a second threshold value according to the loading speed of the display terminal on the target image;
and determining the number threshold N of the target images which can be displayed by the display terminal in the current time period according to the first threshold and the second threshold.
In a possible implementation manner, the determining, according to the first threshold and the second threshold, a threshold N of the number of target images that can be displayed by the display terminal in the current time period includes:
determining a mapping relation between a candidate quantity threshold and the blocking rate of a target image, wherein the candidate quantity threshold is an integer in an interval formed by a first threshold and a second threshold;
and in the mapping relation, determining the maximum candidate quantity threshold in the candidate quantity thresholds of the blocking rate mapping which are smaller than the blocking rate threshold as the quantity threshold N of the target images which can be displayed by the display terminal in the current time period.
In one possible implementation, the target object included in the target image includes at least one of:
a person, a vehicle.
According to an aspect of the present disclosure, there is provided an image pushing apparatus including:
a receiving unit for receiving a plurality of target images pushed in a data stream form;
the threshold value determining unit is used for determining the number threshold value N of the target images which can be displayed by the display terminal in the current time period;
the image to be pushed determining unit is used for determining images to be pushed in the target images received in the current time period according to the quantity threshold, wherein the probability that the target images received in the current time period are determined to be the images to be pushed is the same;
and the pushing unit is used for pushing the image to be pushed to the display terminal.
In a possible implementation manner, the to-be-pushed image determining unit is configured to add an ith target image into the to-be-pushed image set when i is less than or equal to N after the ith target image is received within a current time period; under the condition that i is larger than N, determining N images to be pushed from the target images in the image set to be pushed and the ith target image according to the same probability to form an image set to be pushed;
and the pushing unit is used for pushing the image to be pushed in the image set to be pushed to the display terminal under the condition that the current time period is ended.
In a possible implementation manner, the to-be-pushed image determining unit is configured to randomly take an integer r in an interval [1, i ], and if r is less than or equal to N, replace an r-th target image in the to-be-pushed image set with the i-th target image to obtain N to-be-pushed images forming the to-be-pushed image set; if r is larger than N, discarding the ith target image, and keeping N images to be pushed in the image set to be pushed.
In a possible implementation manner, the threshold determining unit is configured to use, in a case where the number threshold is preset by a user, the number threshold N preset by the user as the number threshold N of the target images that can be displayed by the display terminal in the current time period.
In a possible implementation manner, the threshold determining unit is configured to determine, according to a receiving speed of the target image and/or a loading speed of the display terminal on the target image, a number threshold N of the target images that can be displayed by the display terminal in a current time period, in a case that the number threshold is not preset by a user.
In a possible implementation manner, the threshold determining unit is configured to determine a first threshold according to a receiving speed of the target image; determining a second threshold value according to the loading speed of the display terminal on the target image; and determining the number threshold N of the target images which can be displayed by the display terminal in the current time period according to the first threshold and the second threshold.
In a possible implementation manner, the threshold determining unit is configured to determine a mapping relationship between a candidate number threshold and a blocking rate of the target image, where the candidate number threshold is an integer in an interval formed by the first threshold and the second threshold; and in the mapping relation, determining the maximum candidate quantity threshold in the candidate quantity thresholds of the blocking rate mapping which are smaller than the blocking rate threshold as the quantity threshold N of the target images which can be displayed by the display terminal in the current time period.
In one possible implementation, the target object included in the target image includes at least one of:
a person, a vehicle.
According to an aspect of the present disclosure, there is provided an electronic device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the memory-stored instructions to perform the above-described method.
According to an aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
In the embodiment of the disclosure, for target images pushed in a data stream form, a quantity threshold of the target images that can be displayed by a display terminal in a current time period is determined according to a time dimension, images to be pushed in the target images received in the current time period are determined according to the quantity threshold, then the images to be pushed are pushed to the display terminal, and the probability that the target images received in the current time period are determined to be the images to be pushed is the same. Therefore, the target images in the data stream can be divided into a plurality of time periods according to the time dimension, and the images to be pushed are determined from the target images according to the same probability in the current time period according to the quantity threshold of the target images which can be displayed by the display terminal in the current time period, so that the target images pushed in the data stream mode can obtain fair display opportunities under the condition that the display terminal can normally display the target images.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flowchart of an image pushing method according to an embodiment of the present disclosure.
Fig. 2 shows a block diagram of an image push apparatus according to an embodiment of the present disclosure.
Fig. 3 shows a block diagram of an electronic device in accordance with an embodiment of the disclosure.
Fig. 4 shows a block diagram of an electronic device in accordance with an embodiment of the disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
In the fields of intelligent security, intelligent management and the like, an image acquisition device is generally used for acquiring an image of a target area and pushing a target image containing a target object to a user display terminal so as to facilitate work such as intelligent security, management and the like. Here, the target object may be, for example, a person, a vehicle, or the like, and the target image may be a person image, a vehicle image, or the like.
The image capturing device usually continues to capture images over time, and the target object obtained based on the captured images also usually continues, so that the target image is usually continuously pushed to the user display terminal in the form of a data stream.
For example, in the field of security protection, in a scene of chasing a suspected person, an image acquisition device arranged in a target area is used for acquiring an image, a portrait is divided from the image, and then the portrait is pushed to a display terminal for displaying, so that related personnel can conveniently check the portrait.
The portrait pushing is common in the security scene, however, the area that needs to be checked in the security scene often has a high flow of people, because the portrait is continuously pushed in a data stream form, under the condition that the flow of people is too high, the portrait pushed to the display terminal of the security system is too much, when a certain data volume is reached, the portrait picture is not loaded and displayed, and is refreshed and covered by the newly-pushed portrait picture, so that the user cannot check normally.
In the embodiment of the disclosure, the target images in the data stream can be divided into multiple time periods according to the time dimension, and the images to be pushed are determined according to the same probability from the target images in the current time period according to the number threshold of the target images that can be displayed by the display terminal in the current time period, so that the probability that the target images received in the same time period are pushed to the display terminal is the same when the display terminal can normally display the target images, and the target images pushed in the data stream mode can obtain fair display opportunities.
In a possible implementation manner, the image pushing method may be performed by an electronic device such as a terminal device or a server, the terminal device may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, an in-vehicle device, a wearable device, or the like, and the method may be implemented by a processor calling a computer readable instruction stored in a memory. Alternatively, the method may be performed by a server.
For convenience of description, in one or more embodiments of the present disclosure, an execution subject of the image pushing method may be an image pushing platform that pushes an image to a user display terminal, a specific implementation form of the image pushing platform may be a backend server, and an implementation of the method is described below by taking the execution subject as the image pushing platform as an example. It is understood that the execution subject of the method is an image pushing platform which is only an exemplary illustration and is not to be understood as a limitation of the method.
Fig. 1 shows a flowchart of an image pushing method according to an embodiment of the present disclosure, and as shown in fig. 1, the image pushing method includes:
in step S11, receiving a plurality of target images pushed in a data stream form;
after acquiring the image of the target area, the image acquisition device transmits the image to the image processing platform to analyze the image, and the image processing platform processes the image to obtain an image containing the target object.
The target image may be a frame of image including the target object in the video stream acquired by the image capturing device, or may also be an image including the target object segmented after semantic segmentation is performed on the target object in the image.
After the image processing platform processes the image to obtain the target image, the target image can be pushed to the image pushing platform in a data stream mode. Since the image capturing device usually performs image capturing continuously, and the target object obtained based on the captured image also usually continues, the target image is usually continuously pushed to the user display terminal in the form of a data stream. Of course, the duration referred to herein may be a duration of time.
The data stream form, which may also be referred to as a streaming data form, is to push the target image to the image push platform sequentially, in a large amount, quickly, and continuously.
In the embodiment of the present disclosure, the image pushing platform may divide the received target image into a plurality of time periods according to the receiving time, where the time periods may be, for example, 10s, 20s, and the like, and may be specifically set according to an actual application scenario.
In step S12, determining a threshold N of the number of target images that can be displayed by the display terminal for the current time period;
the number threshold may be the maximum number of target images that the display terminal can display in the current time period, or the number threshold may fluctuate within a tolerable error range.
The number threshold may be preset by a user, or may also be determined according to a loading speed of the display terminal on the target image and/or a receiving speed of the target image, and the specific determination process may refer to a possible implementation manner provided in the present disclosure, which is not described herein again.
In step S13, determining an image to be pushed in the target images received in the current time period according to the number threshold;
the images to be pushed are images to be pushed to the display terminal, the total number of the images to be pushed in the current time period can be a number threshold value N, and then all the target images can be used as the images to be pushed on the premise that the number of the target images received in the current time period is less than or equal to N; on the premise that the number of the target images received in the current time period is larger than N, N target images can be selected from the plurality of target images received in the current time period and used as images to be pushed. Wherein the probability that the plurality of target images received within the current time period are determined to be images to be pushed is the same.
In step S14, the image to be pushed is pushed to the display terminal.
After the image to be pushed is determined, the image to be pushed can be pushed to the display terminal, and the image is displayed by the display terminal for the user to check.
Specifically, the image to be pushed may be pushed to the display terminal when the current time period is over. Then, the shorter the time period is, the higher the real-time performance of the target image received by the display terminal is, and in the embodiment of the present disclosure, the order of magnitude of the time period may be in seconds, so as to improve the real-time performance of the target image received by the display terminal.
In a security scene, a target object is often a person, a target image is a person, in a security target area, an image in the target area is collected through a camera, and the image is sent to an image processing platform in a video stream mode; the image processing platform carries out semantic segmentation on the portrait in the image to obtain the portrait (a target image), and then the portrait is pushed to the image pushing platform in a data stream mode; the image pushing platform determines the number threshold of the portraits which can be displayed by the display terminal in the current time period, and determines N portraits as images to be pushed according to the same probability from the portraits received in the current time period according to the number threshold; and pushing the image to be pushed to a display terminal.
In the embodiment of the disclosure, for target images pushed in a data stream form, a quantity threshold of the target images that can be displayed by a display terminal in a current time period is determined according to a time dimension, images to be pushed in the target images received in the current time period are determined according to the quantity threshold, then the images to be pushed are pushed to the display terminal, and the probability that the target images received in the current time period are determined to be the images to be pushed is the same. Therefore, the target images in the data stream can be divided into a plurality of time periods according to the time dimension, and the images to be pushed are determined from the target images according to the same probability in the current time period according to the quantity threshold of the target images which can be displayed by the display terminal in the current time period, so that the target images pushed in the data stream mode can obtain fair display opportunities under the condition that the display terminal can normally display the target images.
In a possible implementation manner, the determining, according to the number threshold, an image to be pushed in the target images received in the current time period includes: after an ith target image is received in a current time period, adding the ith target image into an image set to be pushed under the condition that i is not more than N; under the condition that i is larger than N, determining N images to be pushed from the target images in the image set to be pushed and the ith target image according to the same probability to form an image set to be pushed; the pushing the image to be pushed to the display terminal includes: and under the condition that the current time period is over, pushing the image to be pushed in the image set to be pushed to the display terminal.
Where i is an imaginary unit, which indicates the order of the target images obtained by sorting the time of receiving the target images, and the value of i is an integer, when the 1 st image in the current time period is received, i is 1, and when the 2 nd image is received, i is 2 … …, and so on.
After the ith target image is received in the current time period, under the condition that i is less than or equal to N, because the number of the target images received in the current time period does not exceed N, the ith target image is added into the image set to be pushed.
The image set to be pushed is a set formed by images to be pushed, the images to be pushed in the set are used for being sent to a display terminal for displaying, and the images to be pushed in the set can be updated under the condition that i is larger than N. Specifically, when i is greater than N, N images to be pushed are determined from the target image in the image set to be pushed and the ith target image according to the same probability to form an image set to be pushed, so that the images to be pushed in the image set to be pushed are updated, and the number of the images in the image set to be pushed is maintained unchanged. And the probability that the target image received within the current time period is determined to be the image to be pushed is the same.
And under the condition that the current time period is over, pushing the image to be pushed in the image set to be pushed to the display terminal.
In the embodiment of the disclosure, after the ith image is received, the image to be pushed which is received in the current period is determined, so that the image to be pushed can be pushed to the display terminal in time under the condition that the current time period is over, and the real-time performance is high.
The improvement of real-time is particularly important for some application scenes with high time efficiency requirements, for example, in a security scene, a suspect can be found in time by pushing the collected portrait to the display terminal in time, so that the suspect can be caught quickly, and the security efficiency is improved.
In a possible implementation manner, the determining N images to be pushed according to the same probability from the target image in the image set to be pushed and the ith target image includes: randomly taking an integer r in the interval [1, i ], and if r is less than or equal to N, replacing the r-th target image in the image set to be pushed by the i-th target image to obtain N images to be pushed which form the image set to be pushed; if r is larger than N, discarding the ith target image, and keeping N images to be pushed in the image set to be pushed.
In the case where i is equal to N +1, an integer r is randomly taken in the interval [1, i ], and the probability that r is equal to or less than N is N/(N +1), then the probability that the ith target image is selected as the image to be pushed is N/(N + 1); and for the probability that the image to be pushed in the image set to be pushed is replaced, that is, the probability of being decimated in the N +1 integers [1, i ], is 1/(N +1), obviously, the probability of remaining the image to be pushed in the image set to be pushed is 1-1/(N +1) ═ N/(N + 1). That is, the probability that the target image in the current time period is selected as the image to be pushed is N/(N +1), i.e., N/i.
In the case where i is equal to N +2, an integer r is randomly taken in the interval [1, i ], and the probability that r is equal to or less than N is N/(N +2), then the probability that the ith target image is selected as the image to be pushed is N/(N + 2); as for the probability that the image to be pushed in the image set to be pushed is replaced, that is, the probability of being decimated in the N +2 integers [1, i ], is 1/(N +2), obviously, the probability of remaining the image to be pushed in the image set to be pushed is: the product of the probability left at this time and the probability left at each previous time, i.e., [1-1/(N +2) ] × N/(N +1) ═ N/(N + 2). That is, the probability that the target image in the current time period is selected as the image to be pushed is N/(N +2), i.e., N/i.
By analogy, under the condition that i continues to increase, the probability that a plurality of target images in the current time period are selected as the images to be pushed is N/i.
In the embodiment of the disclosure, since the target image is received in a data stream form, it is not necessary to randomly select N images to be pushed after all M images in the current time period are received, that is, it is not necessary to randomly select N images to be pushed after the total number M is determined, the images to be pushed can be pushed to the display terminal in time, and the real-time performance is high. The improvement of real-time is particularly important for some application scenes with high requirements on time efficiency, for example, in a security scene, a suspect can be found in time by pushing the collected portrait to the display terminal in time, and the security efficiency is improved.
In addition, as the target image occupies a certain storage space, N images are selected after the ith image is received, and only the set to be pushed and the ith image can be stored in the memory under the condition that the probability that the target image is selected as the image to be pushed is ensured to be N/i, namely, the storage space of only N +1 images can be occupied in the processing process, and all M images in the current time period do not need to be stored in the memory, so that the memory is saved, and the operating efficiency is improved.
In a possible implementation manner, the determining the threshold N of the number of target images that can be displayed by the display terminal in the current time period includes: and when the number threshold is preset by the user, setting the number threshold N preset by the user as the number threshold N of the target images which can be displayed by the display terminal in the current time period.
In the embodiment of the present disclosure, the number threshold N may be set by the user, and the user autonomously controls the number of the target images pushed to the display terminal by the pushing platform, so that the flexibility is high.
In a possible implementation manner, the determining the threshold N of the number of target images that can be displayed by the display terminal in the current time period includes: and under the condition that the number threshold is not preset by the user, determining the number threshold N of the target images which can be displayed by the display terminal in the current time period according to the receiving speed of the target images and/or the loading speed of the display terminal to the target images.
The receiving speed of the target image may be the number of target images received per unit time. The receiving speed of the target object is proportional to the number threshold N, that is, in the case that the receiving speed of the target image is high, it may be tried to push more target images to the display terminal, that is, the number threshold N may be adjusted higher appropriately; in the case that the receiving speed of the target image is low, it may be attempted to push a few target images to the display terminal, that is, the number threshold N may be appropriately turned down. The specific adjustment amplitude can be determined according to actual conditions, and is not limited herein.
The loading speed of the display terminal on the target image can be the time spent by the display terminal from receiving the target image to loading and displaying the target image on the display device. The shorter the time, the faster the loading speed is indicated; the longer the time, the slower the loading speed of the display terminal. The loading speed of the target object is proportional to the number threshold N, that is, under the condition of a fast loading speed, more target images can be tried to be pushed to the display terminal, that is, the number threshold N can be properly increased; in the case of a slow loading speed, it may be attempted to push a few target images to the display terminal, that is, the number threshold N may be adjusted down appropriately. The specific adjustment amplitude can be determined according to actual conditions, and is not limited herein.
In the embodiment of the disclosure, under the condition that the number threshold is not preset by the user, the number threshold can be automatically set without user setting, so that the method and the device are convenient and quick, and the user experience is better. In addition, the quantity threshold of the target images which can be displayed by the display terminal in the current time period is determined according to the receiving speed of the target images and/or the loading speed of the display terminal on the target images, and the determined quantity threshold is more accurate, so that the display terminal can normally display the target images.
In a possible implementation manner, the determining, according to a receiving speed of a target image and/or a loading speed of the display terminal on the target image, a threshold N of a number of target images that can be displayed by the display terminal in a current time period includes: determining a first threshold value according to the receiving speed of the target image; determining a second threshold value according to the loading speed of the display terminal on the target image; and determining the number threshold N of the target images which can be displayed by the display terminal in the current time period according to the first threshold and the second threshold.
In the present implementation, the number threshold may be determined according to the receiving speed of the target image, and for convenience of description, the number threshold determined according to the receiving speed of the target image will be referred to as a first threshold herein. Further, the number threshold may also be determined according to a loading speed of the display terminal on the target image, and for convenience of description, the number threshold determined according to the loading speed of the display terminal on the target image will be referred to as a second threshold herein.
In one possible implementation, a specific value of the first threshold may be determined according to a product of the receiving speed of the target image and the length of the current time period, and the first threshold m may be determined by the following expression (1):
m=k1v1T (1)
wherein v is1Is the receiving speed of the target image; t is the current time period length; k is a radical of1Is a coefficient which can be set by the user.
In one possible implementation manner, a specific value of the second threshold may be determined according to a product of a loading speed of the display terminal on the target image and a length of the current time period, and the second threshold n may be determined by the following expression (2):
n=k2v2T (2)
wherein v is2Displaying the loading speed of the terminal on the target image; t is the current time period length; k is a radical of2Is a coefficient which can be set by the user.
After the first threshold m and the second threshold N are determined, the threshold N of the number of target images that can be displayed by the display terminal in the current time period can be determined according to the first threshold and the second threshold, specifically, there are various ways for determining N according to m and N, for example, the intermediate value between m and N is taken, and the intermediate value is an integer; or may be any integer between m and n.
In a possible implementation manner, the first threshold m and the second threshold N may be determined before the start of the current cycle, and then the threshold N of the number of target images that can be displayed by the display terminal in the current time cycle may also be determined before the start of the current cycle. Of course, m, N and N may be determined after the current period starts, which is not limited by the present disclosure.
In the embodiment of the disclosure, a first threshold value is determined according to the receiving speed of the target image, and a second threshold value is determined according to the loading speed of the display terminal on the target image; and then determining the threshold value of the number of target images which can be displayed by the display terminal in the current time period according to the first threshold value and the second threshold value. Therefore, the receiving speed of the target images and the loading speed of the display terminal on the target images are considered in the determined quantity threshold, and under the condition that the display terminal can normally display the target images, the receiving speed of the target images is also considered, so that some target images are pushed to the display terminal more than needed under the condition that more target images are received.
In a possible implementation manner, the determining, according to the first threshold and the second threshold, a threshold N of the number of target images that can be displayed by the display terminal in the current time period includes:
determining a mapping relation between a candidate quantity threshold and the blocking rate of a target image, wherein the candidate quantity threshold is an integer in an interval formed by a first threshold and a second threshold;
and in the mapping relation, determining the maximum candidate quantity threshold in the candidate quantity thresholds of the blocking rate mapping which are smaller than the blocking rate threshold as the quantity threshold N of the target images which can be displayed by the display terminal in the current time period.
Specifically, in the section formed by the first threshold and the second threshold, the largest integer of the integers that make the blocking rate of the target image smaller than the blocking rate threshold may be determined as the threshold N of the number of target images that can be displayed by the display terminal in the current time period.
The blocking rate of the target image, i.e. the proportion of the target image that is blocked and cannot be pushed to the display terminal, is determined by a quantity threshold value N, so that the receiving speed v at the target image1Under the condition of no change, the larger the number threshold N is, the smaller the blocking rate is; the smaller the number threshold N, the greater the blocking rate. The blocking rate threshold is a maximum value of a tolerable blocking rate in an actual application, and a specific value may be set manually, which is not specifically limited in this application.
In one possible implementation, a function such as expression (3) may be defined to represent the mapping relationship between the candidate number threshold and the blocking rate.
The independent variable x is a candidate quantity threshold value, and the value interval is an integer in an interval formed by m and n; the dependent variable f (x) is a blocking rate, which is a ratio that the target image is blocked and cannot be pushed to the display terminal; receiving rate v of target image1May be determined by the previous reception rate of the target image.
And solving the function, and determining the maximum x in the x which enables F (x) to be smaller than the blocking rate threshold value in the interval formed by m and N as the number threshold value N of the target images which can be displayed by the display terminal in the current time period. The specific solving process may be solving by a dichotomy, and details of the specific solving process are not described herein.
In the embodiment of the disclosure, under the condition that the blocking rate is within a tolerable range, the maximum number threshold is determined, so as to push target images to the display terminal as many as possible, and under the condition that more target images are received, some target images are pushed to the display terminal more, so that the user can conveniently view the target images, and the user experience is better.
In one possible implementation, the target object includes at least one of: a person, a vehicle.
An application scenario of the embodiment of the present disclosure is explained below. This application scene is the security protection scene, in the security protection scene, often can track the suspect, specifically can utilize the image acquisition equipment collection image that sets up in the target area that the suspect probably appears, then by image processing platform segmentation portrait in the image to with portrait with the form propelling movement to image push platform of data stream, image push platform is with portrait propelling movement to display terminal.
Specifically, in the process of pushing the image to the display terminal, the image pushing platform determines a number threshold of the portraits that can be displayed by the display terminal in the current time period, wherein the number threshold can be preset by a user or determined according to the receiving speed of the portraits and the loading speed of the display terminal on the portraits; after the number threshold N is determined, the image pushing platform determines N to-be-pushed portraits from the portraits received in the current time period according to the same probability, and pushes the N to-be-pushed portraits to the display terminal, and the specific process may refer to the related description above, which is not repeated herein.
In a security scene, under the conditions of accessing multiple paths of image acquisition equipment and having higher pedestrian volume, normal and fair display of the portrait can be realized, so that the display terminal can normally display the target portrait, and the display probabilities of the portraits displayed in the same time period are the same.
It is understood that the above-mentioned method embodiments of the present disclosure can be combined with each other to form a combined embodiment without departing from the logic of the principle, which is limited by the space, and the detailed description of the present disclosure is omitted. Those skilled in the art will appreciate that in the above methods of the specific embodiments, the specific order of execution of the steps should be determined by their function and possibly their inherent logic.
In addition, the present disclosure also provides an image pushing apparatus, an electronic device, a computer-readable storage medium, and a program, which can be used to implement any one of the image pushing methods provided by the present disclosure, and the corresponding technical solutions and descriptions and corresponding descriptions in the methods section are not repeated.
Fig. 2 shows a block diagram of an image push apparatus according to an embodiment of the present disclosure, and as shown in fig. 2, the apparatus 20 includes:
a receiving unit 21 configured to receive a plurality of target images pushed in a data stream form;
a threshold value determining unit 22, configured to determine a threshold value N of the number of target images that can be displayed by the display terminal in the current time period;
the image to be pushed determining unit 23 is configured to determine, according to the number threshold, images to be pushed in the target images received in the current time period, where probabilities of a plurality of target images received in the current time period being determined as images to be pushed are the same;
and the pushing unit 24 is configured to push the image to be pushed to the display terminal.
In a possible implementation manner, the to-be-pushed image determining unit 23 is configured to add an ith target image into the to-be-pushed image set when i is less than or equal to N after the ith target image is received within a current time period; under the condition that i is larger than N, determining N images to be pushed from the target images in the image set to be pushed and the ith target image according to the same probability to form an image set to be pushed;
and the pushing unit is used for pushing the image to be pushed in the image set to be pushed to the display terminal under the condition that the current time period is ended.
In a possible implementation manner, the to-be-pushed image determining unit 23 is configured to randomly take an integer r in an interval [1, i ], and if r is less than or equal to N, replace an r-th target image in the to-be-pushed image set with the i-th target image to obtain N to-be-pushed images forming the to-be-pushed image set; if r is larger than N, discarding the ith target image, and keeping N images to be pushed in the image set to be pushed.
In a possible implementation manner, the threshold determining unit 22 is configured to use, in a case where the number threshold is set by a user in advance, the number threshold N set by the user in advance as the number threshold N of the target images that can be displayed by the display terminal in the current time period.
In a possible implementation manner, the threshold determining unit 22 is configured to determine, according to a receiving speed of the target image and/or a loading speed of the display terminal on the target image, a number threshold N of the target images that can be displayed by the display terminal in the current time period, in a case that the number threshold is not preset by a user.
In a possible implementation manner, the threshold determining unit 22 is configured to determine a first threshold according to a receiving speed of the target image; determining a second threshold value according to the loading speed of the display terminal on the target image; and determining the number threshold N of the target images which can be displayed by the display terminal in the current time period according to the first threshold and the second threshold.
In a possible implementation manner, the threshold determining unit 22 is configured to determine a mapping relationship between a candidate number threshold and a blocking rate of the target image, where the candidate number threshold is an integer in an interval formed by the first threshold and the second threshold; and in the mapping relation, determining the maximum candidate quantity threshold in the candidate quantity thresholds of the blocking rate mapping which are smaller than the blocking rate threshold as the quantity threshold N of the target images which can be displayed by the display terminal in the current time period.
In one possible implementation, the target object included in the target image includes at least one of:
a person, a vehicle.
In some embodiments, functions of or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the method described in the above method embodiments, and specific implementation thereof may refer to the description of the above method embodiments, and for brevity, will not be described again here.
Embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the above-mentioned method. The computer readable storage medium may be a non-volatile computer readable storage medium.
An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the memory-stored instructions to perform the above-described method.
The embodiments of the present disclosure also provide a computer program product, which includes computer readable code, and when the computer readable code runs on a device, a processor in the device executes instructions for implementing the image pushing method provided in any one of the above embodiments.
The embodiments of the present disclosure also provide another computer program product for storing computer readable instructions, which when executed cause a computer to perform the operations of the image pushing method provided in any of the above embodiments.
The electronic device may be provided as a terminal, server, or other form of device.
Fig. 3 illustrates a block diagram of an electronic device 800 in accordance with an embodiment of the disclosure. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like terminal.
Referring to fig. 3, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a Complementary Metal Oxide Semiconductor (CMOS) or Charge Coupled Device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (2G) or a third generation mobile communication technology (3G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium, such as the memory 804, is also provided that includes computer program instructions executable by the processor 820 of the electronic device 800 to perform the above-described methods.
Fig. 4 shows a block diagram of an electronic device 1900 according to an embodiment of the disclosure. For example, the electronic device 1900 may be provided as a server. Referring to fig. 4, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system, such as the Microsoft Server operating system (Windows Server), stored in the memory 1932TM) Apple Inc. of the present application based on the graphic user interface operating System (Mac OS X)TM) Multi-user, multi-process computer operating system (Unix)TM) Free and open native code Unix-like operating System (Linux)TM) Open native code Unix-like operating System (FreeBSD)TM) Or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 1932, is also provided that includes computer program instructions executable by the processing component 1922 of the electronic device 1900 to perform the above-described methods.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: 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), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions 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). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
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 instructions, which comprises one or more executable instructions for implementing the specified logical function(s). 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 computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Claims (11)
1. An image pushing method, comprising:
receiving a plurality of target images pushed in a data stream form;
determining the number threshold value N of the target images which can be displayed by the display terminal in the current time period;
determining images to be pushed in the target images received in the current time period according to the quantity threshold, wherein the probability that the target images received in the current time period are determined to be the images to be pushed is the same;
and pushing the image to be pushed to the display terminal.
2. The method according to claim 1, wherein the determining, according to the number threshold, an image to be pushed in the target images received in the current time period comprises:
after an ith target image is received in a current time period, adding the ith target image into an image set to be pushed under the condition that i is not more than N;
under the condition that i is larger than N, determining N images to be pushed from the target images in the image set to be pushed and the ith target image according to the same probability to form an image set to be pushed;
the pushing the image to be pushed to the display terminal includes:
and under the condition that the current time period is over, pushing the image to be pushed in the image set to be pushed to the display terminal.
3. The method according to claim 2, wherein the determining N images to be pushed according to the same probability from the target image in the image set to be pushed and the ith target image comprises:
randomly taking an integer r in the interval [1, i ], and if r is less than or equal to N, replacing the r-th target image in the image set to be pushed by the i-th target image to obtain N images to be pushed which form the image set to be pushed;
if r is larger than N, discarding the ith target image, and keeping N images to be pushed in the image set to be pushed.
4. The method according to any one of claims 1 to 3, wherein the determining the threshold N of the number of the target images that can be displayed by the display terminal in the current time period comprises:
and when the number threshold is preset by the user, setting the number threshold N preset by the user as the number threshold N of the target images which can be displayed by the display terminal in the current time period.
5. The method according to any one of claims 1 to 3, wherein the determining the threshold N of the number of the target images that can be displayed by the display terminal in the current time period comprises:
and under the condition that the number threshold is not preset by the user, determining the number threshold N of the target images which can be displayed by the display terminal in the current time period according to the receiving speed of the target images and/or the loading speed of the display terminal to the target images.
6. The method according to claim 5, wherein the determining, according to the receiving speed of the target images and/or the loading speed of the display terminal on the target images, the threshold N of the number of target images that can be displayed by the display terminal in the current time period comprises:
determining a first threshold value according to the receiving speed of the target image;
determining a second threshold value according to the loading speed of the display terminal on the target image;
and determining the number threshold N of the target images which can be displayed by the display terminal in the current time period according to the first threshold and the second threshold.
7. The method according to claim 6, wherein the determining the threshold N of the number of target images that can be displayed by the display terminal in the current time period according to the first threshold and the second threshold comprises:
determining a mapping relation between a candidate quantity threshold and the blocking rate of a target image, wherein the candidate quantity threshold is an integer in an interval formed by a first threshold and a second threshold;
and in the mapping relation, determining the maximum candidate quantity threshold in the candidate quantity thresholds of the blocking rate mapping which are smaller than the blocking rate threshold as the quantity threshold N of the target images which can be displayed by the display terminal in the current time period.
8. The method according to any one of claims 1 to 7, wherein the target object included in the target image includes at least one of:
a person, a vehicle.
9. An image pushing apparatus, comprising:
a receiving unit for receiving a plurality of target images pushed in a data stream form;
the threshold value determining unit is used for determining the number threshold value N of the target images which can be displayed by the display terminal in the current time period;
the image to be pushed determining unit is used for determining images to be pushed in the target images received in the current time period according to the quantity threshold, wherein the probability that the target images received in the current time period are determined to be the images to be pushed is the same;
and the pushing unit is used for pushing the image to be pushed to the display terminal.
10. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to invoke the memory-stored instructions to perform the method of any one of claims 1 to 8.
11. A computer readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1 to 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110214508.1A CN113259310B (en) | 2021-02-25 | 2021-02-25 | Image pushing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110214508.1A CN113259310B (en) | 2021-02-25 | 2021-02-25 | Image pushing method and device, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113259310A true CN113259310A (en) | 2021-08-13 |
| CN113259310B CN113259310B (en) | 2023-04-07 |
Family
ID=77180965
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110214508.1A Expired - Fee Related CN113259310B (en) | 2021-02-25 | 2021-02-25 | Image pushing method and device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113259310B (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080081673A1 (en) * | 2006-10-02 | 2008-04-03 | Samsung Electronics Co., Ltd | Terminal and display method used in the terminal |
| CN103281562A (en) * | 2013-06-20 | 2013-09-04 | 天脉聚源(北京)传媒科技有限公司 | Method and device for video preview |
| CN106294775A (en) * | 2016-08-11 | 2017-01-04 | 合智能科技(深圳)有限公司 | Content delivery method and device |
| US20170187658A1 (en) * | 2015-12-24 | 2017-06-29 | Samsung Electronics Co., Ltd. | Electronic device and method for image control thereof |
| CN108962355A (en) * | 2018-07-06 | 2018-12-07 | 腾讯科技(深圳)有限公司 | A kind of association display methods, device and service equipment, the storage medium of image |
| US20190339852A1 (en) * | 2018-05-01 | 2019-11-07 | Facebook, Inc. | Scroll-based presentation of animation content |
| CN111263180A (en) * | 2020-02-21 | 2020-06-09 | 广州欢网科技有限责任公司 | Information pushing method and device of television terminal and controller |
-
2021
- 2021-02-25 CN CN202110214508.1A patent/CN113259310B/en not_active Expired - Fee Related
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080081673A1 (en) * | 2006-10-02 | 2008-04-03 | Samsung Electronics Co., Ltd | Terminal and display method used in the terminal |
| CN103281562A (en) * | 2013-06-20 | 2013-09-04 | 天脉聚源(北京)传媒科技有限公司 | Method and device for video preview |
| US20170187658A1 (en) * | 2015-12-24 | 2017-06-29 | Samsung Electronics Co., Ltd. | Electronic device and method for image control thereof |
| CN106294775A (en) * | 2016-08-11 | 2017-01-04 | 合智能科技(深圳)有限公司 | Content delivery method and device |
| US20190339852A1 (en) * | 2018-05-01 | 2019-11-07 | Facebook, Inc. | Scroll-based presentation of animation content |
| CN108962355A (en) * | 2018-07-06 | 2018-12-07 | 腾讯科技(深圳)有限公司 | A kind of association display methods, device and service equipment, the storage medium of image |
| CN111263180A (en) * | 2020-02-21 | 2020-06-09 | 广州欢网科技有限责任公司 | Information pushing method and device of television terminal and controller |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113259310B (en) | 2023-04-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107948708B (en) | Bullet screen display method and device | |
| CN110569777B (en) | Image processing method and device, electronic device and storage medium | |
| CN112465843A (en) | Image segmentation method and device, electronic equipment and storage medium | |
| CN111340731B (en) | Image processing method and device, electronic equipment and storage medium | |
| CN112085097A (en) | Image processing method and device, electronic equipment and storage medium | |
| CN111523346B (en) | Image recognition method and device, electronic equipment and storage medium | |
| US20230019679A1 (en) | Image processing method and device, and storage medium | |
| CN110781813A (en) | Image recognition method and device, electronic equipment and storage medium | |
| CN113506229A (en) | Neural network training and image generation method and device | |
| CN113792622A (en) | Frame rate adjustment method and device, electronic device and storage medium | |
| CN109685041B (en) | Image analysis method and device, electronic equipment and storage medium | |
| CN112541875A (en) | Depth image processing method and device, electronic equipment and storage medium | |
| CN105323152A (en) | Message processing method, device and equipment | |
| CN112598676B (en) | Image segmentation method and device, electronic equipment and storage medium | |
| CN112102300B (en) | Counting method and device, electronic equipment and storage medium | |
| CN110929545A (en) | Human face image sorting method and device | |
| CN113506321A (en) | Image processing method and device, electronic device and storage medium | |
| CN112581399A (en) | Depth image processing method and device, electronic equipment and storage medium | |
| CN111650554A (en) | Positioning method and device, electronic equipment and storage medium | |
| CN109189822B (en) | Data processing method and device | |
| CN110121115B (en) | Method and device for determining wonderful video clip | |
| CN113259310A (en) | Image pushing method and device, electronic equipment and storage medium | |
| CN113506325A (en) | Image processing method and device, electronic equipment and storage medium | |
| CN113963209A (en) | Object recognition model training method and device, electronic equipment and storage medium | |
| CN113486962A (en) | Image generation method and device, electronic equipment and storage medium |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20230407 |