CN111815340A - Promotion information determination method, device, equipment and readable storage medium - Google Patents

Promotion information determination method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN111815340A
CN111815340A CN201910295265.1A CN201910295265A CN111815340A CN 111815340 A CN111815340 A CN 111815340A CN 201910295265 A CN201910295265 A CN 201910295265A CN 111815340 A CN111815340 A CN 111815340A
Authority
CN
China
Prior art keywords
information
picture
target
target object
target picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910295265.1A
Other languages
Chinese (zh)
Other versions
CN111815340B (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910295265.1A priority Critical patent/CN111815340B/en
Publication of CN111815340A publication Critical patent/CN111815340A/en
Application granted granted Critical
Publication of CN111815340B publication Critical patent/CN111815340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0277Online advertisement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0276Advertisement creation

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a readable storage medium for determining popularization information, wherein the method comprises the following steps: acquiring information of a target picture from a current page browsed by a user; detecting information of a target object in the target picture according to the information of the target picture; and determining promotion information associated with the information of the target object according to the information of the target object. The popularization information in the embodiment is associated with the information of the target object in the target picture, so that the fusion of the popularization information and the picture is strong, and a good popularization effect can be achieved when the popularization information is fused on the picture.

Description

Promotion information determination method, device, equipment and readable storage medium
Technical Field
The present invention relates to network technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for determining promotion information.
Background
With the increase of network bandwidth and the reduction of internet charges, the content of web pages is more and more abundant, a large number of pictures appear, and users are shifted from the original text reading era to the picture reading era. Correspondingly, promotion information of the merchant is implanted into the webpage content.
At present, most website operators determine which promotion information is implanted into webpage content according to commercial factors such as quotation and sponsorship of advertisers, so that the fusion of the promotion information and the webpage is poor, and a better promotion effect cannot be achieved.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for determining popularization information and a readable storage medium, which are used for determining the popularization information with strong integration with a network so as to achieve a better popularization effect.
In a first aspect, an embodiment of the present invention provides a method for determining popularization information, including:
acquiring information of a target picture from a current page browsed by a user;
detecting information of a target object in the target picture according to the information of the target picture;
and determining promotion information associated with the information of the target object according to the information of the target object.
In a second aspect, an embodiment of the present invention further provides a device for determining popularization information, including:
the acquisition module is used for acquiring the information of the target picture from the current page browsed by the user;
the detection module is used for detecting the information of the target object in the target picture according to the information of the target picture;
and the determining module is used for determining promotion information related to the information of the target object according to the information of the target object.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the promotion information determination method of any of the embodiments.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for determining popularization information according to any embodiment.
In the embodiment of the invention, the information of the target picture is obtained from the current page browsed by the user, and the information of the target object in the target picture is detected according to the information of the target picture, wherein the information of the target object can better reflect the content of the picture; the popularization information related to the information of the target object is determined according to the information of the target object, so that the popularization information is related to the information of the target object in the target picture, the popularization information and the picture are accurately fused in content, the popularization information and the picture are high in fusion, and a good popularization effect can be achieved when the popularization information is fused on the picture.
Drawings
Fig. 1a is a flowchart of a method for determining promotion information according to an embodiment of the present invention;
FIG. 1b is a diagram of displaying push information on a current page according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for determining promotion information according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for determining promotion information according to a third embodiment of the present invention;
fig. 4 is a flowchart of a method for determining promotion information according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a method for determining popularization information according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a promotion information determination apparatus according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1a is a flowchart of a method for determining promotion information according to an embodiment of the present invention, where the embodiment is applicable to a case where promotion information is displayed on a web page, and the method may be executed by a promotion information determination apparatus, which may be formed by hardware and/or software and is generally integrated in an electronic device, where the electronic device includes, but is not limited to, a terminal and a server. With reference to fig. 1a, the method provided in this embodiment specifically includes the following operations:
s110, obtaining the information of the target picture from the current page browsed by the user.
In this embodiment, the current page may be an http page or a web page. The current page comprises at least one picture, and the picture meeting the preset requirement is selected from the at least one picture to serve as a target picture. Accordingly, the number of target pictures is at least one.
The target pictures are used for displaying the popularization information, optionally, in order to avoid that the popularization information is too much and normal browsing of the page is influenced, the number of the target pictures does not exceed a preset threshold value.
In an example, the information of the target picture includes a network address of the target picture, or image data.
And S120, detecting the information of the target object in the target picture according to the information of the target picture.
And if the information of the target picture comprises the network address of the target picture, acquiring the target picture according to the network address of the target picture, and further detecting the information of the target object in the target picture. And if the information of the target picture comprises image data, directly detecting the image data to obtain the information of the target object. Wherein the target object is a person, an object, etc. in the target picture, and the information of the target object at least comprises the type of the target object, such as watch, clothes, football, etc. In one target picture, the number of target objects is at least one.
And S130, determining promotion information related to the information of the target object according to the information of the target object.
In this embodiment, the promotion information includes promotion information material, size information and position information of promotion information material. And after the information of the target object is detected, selecting promotion information materials related to the information of the target object in a material library. Optionally, the material library includes a plurality of promotional information materials, each promotional information material generally including text, pictures and hyperlinks. Different promotional information materials are of different types. Based on this, the promotion information material matched with the type of the target object is selected in the material library.
Further, size information and position information of the popularization information material need to be set. Optionally, the size information is set to a fixed value, and the position information is set to a preset region of the target picture, where the preset region is, for example, a central region, an upper left corner region, a lower right corner region, and the like.
After S130, the popularization information is displayed on the upper layer of the target picture according to the size information and the position information of the popularization information material. Specifically, the promotion information is rendered on the upper layer of the target picture. Optionally, the popularization information covers the layer of the target picture to block the display content on the target picture, so that the popularization information is highlighted, and the schematic diagram is shown in fig. 1 b.
In the embodiment of the invention, the information of the target picture is obtained from the current page browsed by the user, and the information of the target object in the target picture is detected according to the information of the target picture, wherein the information of the target object can better reflect the content of the picture; the popularization information related to the information of the target object is determined according to the information of the target object, so that the popularization information is related to the information of the target object in the target picture, the popularization information and the picture are accurately fused in content, the popularization information and the picture are high in fusion, and a good popularization effect can be achieved when the popularization information is fused on the picture.
Example two
The present embodiment is further optimized based on various optional implementation manners of the above embodiment. Optionally, the step of "detecting the information of the target object in the target picture according to the information of the target picture" is refined into the step of determining the information of the target object matched with the information of the target picture from an offline picture information base; and/or detecting information of the target object in the target picture through the image recognition model, so as to detect the information of the target object in an off-line mode and/or an on-line mode.
Optionally, for the offline mode: the off-line picture information base comprises a network address of a picture and information of each object corresponding to the network address of the picture, wherein the information of the object comprises the type of the object and the boundary coordinate of the object; sometimes, the accuracy of image recognition of the object is also included. Firstly, searching a network address of a target picture from an offline picture information base, and if the network address is found, extracting information of each object corresponding to the network address from the offline picture information base to be used as information of the target object; further, information of the object with the accuracy higher than the accuracy threshold corresponding to the network address is extracted and used as the information of the target object.
Optionally, for the online mode: the target picture is downloaded first according to the network address of the target picture, and then information of the target object in the target picture is detected through an image recognition model, wherein the information of the target object comprises type, boundary coordinates (boundBox) and accuracy of image recognition, and the format is as follows { type: 'car', score:90, boundBox { (0,0), (0,200), (100,200), (100,0) }.
Fig. 2 is a flowchart of a method for determining popularization information according to the second embodiment of the present invention, and information of a target object is determined in an online manner and an offline manner. With reference to fig. 2, the method provided in this embodiment specifically includes the following operations:
s210, obtaining the information of the target picture from the current page browsed by the user.
S220, judging whether the information of the target object matched with the information of the target picture can be determined from the off-line picture information base or not, and if so, jumping to S240; if it cannot be determined, it jumps to S230.
And if the offline picture information base does not comprise the network address of the picture, the information of the target object matched with the information of the target picture cannot be determined from the offline picture information base, and then the information is determined in an online mode.
And S230, detecting the information of the target object in the target picture through the image recognition model. Execution continues with S240.
Optionally, detecting the category and the detection accuracy of each object in the target picture through an image recognition model; determining the field information of each object according to the category of each object; and determining the target object which has higher detection accuracy than a threshold value and belongs to the preset field information from all objects of the target picture, and acquiring the information of the target object.
Table 1 shows categories of objects and domain information to which the categories belong. There are areas with commercial attributes, such as digital and apparel; and if some fields do not have business attributes, such as portraits and education, selecting objects corresponding to the field information with the business attributes so as to successfully acquire the associated promotion information. And on the basis of selecting the object according to the preset field information, selecting the object with the accuracy higher than the threshold value as the target object, and further acquiring the information of the target object.
TABLE 1 classes of objects and Domain information to which the classes belong
Domain information Categories
Portrait of human Actors, news personages, globars, etc
Education Books, classrooms, schools, school supplies, etc
Travel toy Beach, mountain, temple, stone tablet, etc
Digital code Computer, mobile phone, watch, display and the like
Garment Clothes, shoes, hats, etc
Optionally, after detecting information of the target object in the target picture through the image recognition model, the method further includes: and synchronizing the information of the target object to the offline picture information base so as to adopt the offline picture information base when detecting the information of the target object next time, thereby saving time.
And S240, determining promotion information related to the information of the target object according to the information of the target object.
In the embodiment, the information of the target object in the target picture is detected by combining an online mode and an offline mode, so that the detection time can be reduced; moreover, the category and the accuracy of each object in the target picture are detected through the image recognition model; according to the accuracy of each object and the field information to which the category belongs, the information of the target object is determined, the accuracy of the target object can be improved, and then the content of the popularization information and the picture can be accurately fused.
EXAMPLE III
The present embodiment is further optimized based on various optional implementation manners of the above embodiment. Optionally, the information of the target object includes: category and boundary coordinates of the target object; correspondingly, the promotion information which is determined to be related to the information of the target object according to the information of the target object is refined into promotion information materials which are matched with the category of the target object in a material library; and setting position information and size information of the promotion information material according to the boundary coordinates of the target object, so that the promotion information material is accurately matched, and the promotion information is displayed at a proper position. Fig. 3 is a flowchart of a method for determining popularization information according to a third embodiment of the present invention, where the method provided in this embodiment includes the following operations:
s310, obtaining the information of the target picture from the current page browsed by the user.
And S320, detecting the information of the target object in the target picture according to the information of the target picture.
Optionally, the boundary coordinates of the target object in the target picture are detected through an image recognition model.
And S330, selecting the promotion information materials matched with the types of the target objects in the material library.
And S340, setting position information and size information of the popularization information material according to the boundary coordinates of the target object.
Optionally, according to the boundary coordinates, the center coordinates of the target object are determined, and the center coordinates are set as the center position information of the promotion information material. And calculating the size information of the target object according to the boundary coordinates, and setting N times of the size information of the target object as the size information of the popularization information material, wherein N is more than or equal to 1. Optionally, the information of the target picture further includes size information of the target picture, and after the size information of the target picture is acquired, size information of the popularization information material is set according to the size information of the target icon. For example, the size information of the promotion information material is smaller than that of the target picture, and when the promotion information is displayed on the upper layer of the target picture, the promotion information is displayed on the target picture by taking the target object as the center, so that the situation that the promotion information covers the target picture comprehensively and the browsing experience is influenced is avoided.
And S350, respectively determining the position information and the size information of the bottom canvas according to the position information and the size information of the promotion information material.
And S360, drawing the bottom canvas on the upper layer of the target picture according to the size information and the position information of the bottom canvas, and isolating the style processing of the current page to the bottom canvas.
And S370, drawing the popularization information material on the bottom layer canvas.
In order to accelerate the display speed of the popularization information, a bottom layer canvas is drawn in advance on the upper layer of the target picture, and the bottom layer canvas is used for drawing popularization information materials. Based on the method, the size information and the position information of the bottom layer canvas are respectively determined according to the size information and the position information of the promotion information material. And then, drawing the bottom canvas on the upper layer of the target picture according to the size information and the position information of the bottom canvas, and isolating the style processing of the current page to the bottom canvas. This is because, when the bottom canvas is drawn on the current page, the current page performs default style processing on the bottom canvas, for example, the size information of the bottom canvas is set as the default size information, and the material in the bottom canvas is set as the default format. However, in this embodiment, the size information of the underlying canvas is required to be the size information of the promotion information material, and the promotion information material has a specified format, so that the style processing of the current page to the underlying canvas is isolated. For example, resetting the style name of the underlying canvas makes it impossible for the current page to style process the underlying canvas. For another example, the style of the bottom canvas is rewritten according to the promotion information material, the size information and the position information of the bottom canvas.
Optionally, after S370, the size and position of the target picture are monitored to be changed, and the size information and the position information of the bottom canvas are respectively updated according to the current size information and the current position information of the target picture; and redrawing the promotion information material on the updated bottom canvas.
If the resize event and the scroll event can change the current size information and the current position information of the target picture, the size information and the position information of the underlying canvas are updated in response to the resize event and the scroll event. For example, if the current size information of the target picture is M times larger than the historical size information, the size information of the underlying canvas is enlarged by M times, where M is larger than 0. And if the vector of the current position information of the target picture relative to the historical position information is a, translating the position information of the bottom layer canvas by the a vector. In this embodiment, the popularization information can be changed according to the size and the position change of the picture, and the fusion of the popularization information and the picture is improved.
In the embodiment of the invention, a promotion information material matched with the category of a target object is selected in a material library; setting position information and size information of the promotion information material according to the boundary coordinates of the target object, so that the promotion information material is accurately matched, and the promotion information is displayed at a proper position; through position information and the size information according to the popularization information material, confirm the position information and the size information of bottom canvas respectively to isolated current page is handled the style of bottom canvas, thereby shows the popularization information according to the boundary coordinate of target object, makes the invasiveness of popularization information low, has realized the integration in the display effect, and user experience is native, and then reaches the popularization effect of preferred.
Example four
The present embodiment is further optimized based on various optional implementation manners of the above embodiment. Optionally, after determining promotion information associated with the information of the target object according to the information of the target object, additionally performing "monitoring that the target picture enters a visible area of a current page", and displaying a guide icon on the target object; and responding to the triggering operation of the user on the guide icon, and displaying the promotion information on the upper layer of the target picture, so that the integration of the browsing behavior of the user and the promotion information is realized, and the interactivity with the promotion information is improved. Fig. 4 is a flowchart of a method for determining popularization information according to a fourth embodiment of the present invention, where the method provided in this embodiment includes the following operations:
and S410, acquiring the information of the target picture from the current page browsed by the user.
And S420, detecting the information of the target object in the target picture according to the information of the target picture.
And S430, determining promotion information associated with the information of the target object according to the information of the target object.
S440, when the target picture enters a visual area of the current page, displaying a guide icon on the target object.
At present, most of the area of the page exceeds the visible area of the current page, and the whole page content needs to be browsed by means of a scroll bar or page turning. During the scrolling or page turning process, the target picture may enter the visible area from outside the visible area. Based on this, after the current page is loaded, the boundaries of the target picture, such as the upper boundary and the lower boundary, the left boundary and the right boundary, are obtained, and when the boundaries of the target picture are in the visible area, it is monitored that the target picture enters the visible area of the current page. At this time, a guide icon is displayed on the target object, and the guide icon may be semi-transparent or carry a blinking effect, which can guide the user not to completely block the target object.
Optionally, the information of the target object further includes boundary coordinates of the target object, for example, vertex coordinates of a rectangular box surrounding the target object. Then, when the target picture enters the visible area, the guide icon is displayed on the target object according to the boundary coordinate of the target object, namely the guide icon is displayed in the range of the boundary coordinate. For example, the target object is a car, the boundary coordinates are { (0,0), (0,200), (100,200), (100,0) }, and the boundary coordinates of the guide icon are also { (0,0), (0,200), (100,200), (100,0) }.
Optionally, if the target picture is not monitored to enter the visible area, the guide icon is hidden.
And S450, responding to the triggering operation of the user on the guide icon, and displaying the popularization information on the upper layer of the target picture.
The guide icon can attract a user to trigger, and the triggering operation comprises but is not limited to mouse hovering over the guide icon, clicking or touching the guide icon; further, the promotion information is displayed on the upper layer of the target picture. Further, the guidance icon is hidden while the promotion information is displayed.
Optionally, it is monitored that the target picture enters the visible area, but the triggering operation of the user on the guide icon is not monitored, and the popularization information is hidden.
Further, after S450, the method further includes: and generating an interaction log, wherein the interaction log comprises but is not limited to whether trigger operation exists or not, whether promotion information is displayed or not, whether a guide icon is displayed or not and the like. The interaction log is used for counting the interaction behaviors of the user and the promotion information and is used as a data reference of product iteration.
In the embodiment, a guide icon is displayed on a target object by monitoring that a target picture enters a visible area; responding to the triggering operation of the user on the guide icon, and displaying the promotion information on the upper layer of the target picture, so that the integration of the browsing behavior of the user and the promotion information is realized, and the interactivity with the promotion information is improved; and, when not triggering the guide icon, the popularization information is in a hidden state, and the popularization information is displayed in the form of the guide icon, so that the occupied area is small, and the influence on the target image is small.
EXAMPLE five
The present embodiment is further optimized based on various optional implementation manners of the above embodiment. Optionally, the step of refining the information of the target picture acquired from the current page browsed by the user into the step of selecting a first picture from the pictures on the current page browsed by the user; if the first picture meets the promotion information display condition, determining the first picture as a target picture, and acquiring the information of the target picture; and if the first picture does not meet the promotion information display condition, continuously acquiring the next picture as the first picture until all pictures on the current page are processed, so that each picture is traversed, and a final appropriate target picture is determined. Fig. 5 is a flowchart of a method for determining popularization information according to a fifth embodiment of the present invention, which specifically includes the following operations:
and S510, selecting a first picture from the pictures on the current page browsed by the user.
S520, judging whether the first picture meets the promotion information display condition. And jumping to S530 if the promotion information display condition is met, and jumping to S540 if the promotion information display condition is not met.
And S530, determining the first picture as a target picture, and acquiring the information of the target picture, and continuously executing S550.
Optionally, the promotion information display condition at least includes one of that the promotion information is not displayed, the size meets the preset requirement, and the picture is successfully loaded. And if the promotion information is not displayed on the first picture, the size of the first picture meets the preset requirement, and the first picture is successfully loaded, judging that the first picture meets the promotion information display condition, and determining the first picture as a target picture. On the contrary, if the promotion information is displayed on the first picture, or the size does not meet the preset requirement, or the picture is not loaded successfully, the first picture is judged not to meet the promotion information display condition.
In a specific embodiment, whether the first picture displays the promotion information is judged firstly, and if the promotion information is displayed, the next picture is continuously obtained to be used as the first picture; if the promotion information is not displayed, continuously judging whether the size meets the preset requirement, for example, if the width of the picture is larger than the preset width and the height of the picture is larger than the preset height, the size meets the preset requirement; otherwise, the size does not meet the preset requirement. If the size meets the preset requirement, continuously judging whether the picture is loaded successfully; and if the size does not meet the preset requirement, continuously acquiring the next picture as the first picture. And if the picture is loaded successfully, acquiring popularization information. Considering that the picture may be delayed to be loaded due to network or device performance problems, if the picture is not loaded successfully, after waiting for a preset time, if the picture is loaded successfully, the promotion information is acquired. And if the picture is not loaded successfully after waiting for the preset time, continuously acquiring the next picture as the first picture.
And S540, judging whether unprocessed pictures exist or not, if so, jumping to S541, and if not, jumping to S542.
And S541, continuously acquiring the next picture as the first picture, and returning to execute the S520.
And S542, ending the operation.
And S550, detecting the information of the target object in the target picture according to the information of the target picture.
And S560, determining promotion information related to the information of the target object according to the information of the target object.
And S570, judging whether the promotion information is successfully determined. If determined, it goes to S580, and if not, it goes to S541.
And if the promotion information associated with the information of the target object is not determined, continuously acquiring the next picture as the first picture.
And S580, displaying the popularization information on the upper layer of the target picture. Execution continues with S541.
And if the promotion information is displayed on the upper layer of the target picture, the target picture is considered to be processed completely, and the next picture is processed continuously.
In the embodiment, the pictures meeting the promotion information display conditions are selected as the target pictures by traversing all the pictures on the current page, so that the pictures suitable for displaying the promotion information are selected, and the promotion efficiency is improved; if the popularization information is not displayed on the first picture, the size of the first picture meets the preset requirement, and the first picture is loaded successfully, the first picture is judged to meet the popularization information display condition, the first picture is determined to be the target picture, whether the picture meets the popularization information display condition or not is judged according to three dimensions of displaying the popularization information, the size and the loading condition, the appropriate target picture can be accurately selected, and the popularization information is effectively displayed.
In each optional implementation manner of the foregoing embodiments, the obtaining information of the target picture from the current page browsed by the user includes: after the current page loading is completed or the current page loading duration reaches a preset duration, responding to a preset trigger event, and acquiring information of a target picture; or, after the current page is loaded completely or the current page loading duration reaches a preset duration, periodically acquiring the information of the target picture on the current page.
Optionally, the preset trigger event includes, but is not limited to, onload event, resize event, and scroll event. In one case, the onload event is automatically triggered by the completion of the loading of the current page, and the target picture on the current page is determined in response to the onload event. In another case, an onload event is not triggered by a page error or a picture loading error, or a picture is loaded in a delayed manner, so that the onload event is not triggered in a delayed manner, and if the loading time of the current page reaches a preset time, the page is considered to be loaded completely, and the information of the target picture is acquired in response to a resize event triggered when a user adjusts the size of a browser window or a scroll event triggered when the page is rolled. This is because both resize and scroll events may cause dynamic loading of pictures on the current page. In another case, a preset period is set, where the preset period may be an automatic refresh period of the current page, and after the current page is loaded or the current page loading duration reaches the preset duration, the information of the target picture is periodically obtained according to the preset period. The method and the device can effectively improve the accuracy of determining the target picture.
In optional implementations of the foregoing embodiments, the method for determining popularization information further includes: and when the network address of at least one picture on the current page is monitored to be changed or a picture is newly added on the current page, returning to execute the operation of acquiring the information of the target picture from the current page browsed by the user.
Optionally, whether the target picture or the non-target picture on the current page is the target picture or whether the target picture displays the promotion information or not, whether the network address of at least one picture on the current page is changed or not is monitored, and if the network address of the picture is changed, the content of the picture is changed, the target picture needs to be determined again, and the information of the target picture needs to be acquired. Optionally, in response to a resize event and a scroll event, monitoring whether a new picture is added to the current page, and if so, determining whether the new picture is a target picture with respect to the new picture. According to the embodiment, the target picture can be dynamically determined when the network address of the picture is changed or the picture is newly added, and the accuracy of determining the target picture is improved.
In this embodiment, in a software architecture, the electronic device includes a loader module and a render module, where the loader module is configured to determine a target picture on a current page and obtain information of the target picture, bind a preset trigger event, create a promotion information container, that is, draw a bottom canvas, and trigger the render module. The Render module is used for drawing the promotion information on the upper layer of the target picture and generating an interaction log.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a promotion information determination apparatus according to a sixth embodiment of the present invention, where the embodiment of the present invention is applicable to a case where promotion information is displayed on a web page, and with reference to fig. 6, the promotion information determination apparatus includes: an acquisition module 61, a detection module 62 and a determination module 63.
The obtaining module 61 is configured to obtain information of a target picture from a current page browsed by a user;
the detection module 62 is configured to detect information of a target object in the target picture according to the information of the target picture;
and the determining module 63 is configured to determine promotion information associated with the information of the target object according to the information of the target object.
In the embodiment of the invention, the information of the target picture is obtained from the current page browsed by the user, and the information of the target object in the target picture is detected according to the information of the target picture, wherein the information of the target object can better reflect the content of the picture; the popularization information related to the information of the target object is determined according to the information of the target object, so that the popularization information is related to the information of the target object in the target picture, the popularization information and the picture are accurately fused in content, the popularization information and the picture are high in fusion, and a good popularization effect can be achieved when the popularization information is fused on the picture.
Optionally, when the detecting module 62 detects the information of the target object in the target picture according to the information of the target picture, it is specifically configured to: determining information of a target object matched with the information of the target picture from an offline picture information base; and/or detecting information of the target object in the target picture through the image recognition model.
Optionally, when the detection module 62 detects information of the target object in the target picture through the image recognition model, it is specifically configured to: detecting the category and the detection accuracy of each object in the target picture through an image recognition model; determining the field information of each object according to the category of each object; and determining the target object which has higher detection accuracy than a threshold value and belongs to the preset field information from all objects of the target picture, and acquiring the information of the target object.
Optionally, the apparatus further includes a synchronization module, configured to synchronize information of the target object to the offline picture information base after detecting the information of the target object in the target picture through the image recognition model.
Optionally, the information of the target object includes: category and boundary coordinates of the target object; correspondingly, when determining the promotion information associated with the information of the target object according to the information of the target object, the determining module 63 is specifically configured to: selecting promotion information materials matched with the types of the target objects in a material library; and setting position information and size information of the promotion information material according to the boundary coordinates of the target object.
Optionally, the apparatus further includes a drawing module, configured to determine, according to the information of the target object, after determining promotion information associated with the information of the target object, respectively determine position information and size information of the bottom canvas according to the position information and size information of the promotion information material; drawing the bottom canvas on the upper layer of the target picture according to the size information and the position information of the bottom canvas, and isolating the style processing of the current page to the bottom canvas; and drawing promotion information materials on the bottom canvas.
Optionally, the device further includes a first monitoring module, configured to monitor a change in size and position of the target picture after the promotion information material is drawn on the bottom canvas, and update the size information and the position information of the bottom canvas respectively according to the current size information and the current position information of the target picture; and redrawing the promotion information material on the updated bottom canvas.
Optionally, the device further includes a second monitoring module, configured to monitor that the target picture enters a visible area of a current page after determining promotion information associated with the information of the target object according to the information of the target object, and display a guide icon on the target object; and responding to the triggering operation of the user on the guide icon, and displaying the promotion information on the upper layer of the target picture.
Optionally, when the obtaining module 61 obtains the information of the target picture from the current page browsed by the user, the obtaining module is specifically configured to: selecting a first picture from pictures on a current page browsed by a user; if the first picture meets the promotion information display condition, determining the first picture as a target picture, and acquiring the information of the target picture; and if the first picture does not meet the promotion information display condition, continuously acquiring a next picture as the first picture until all pictures on the current page are processed.
Optionally, the obtaining module 61 is specifically configured to, when determining the first picture as the target picture and obtaining the information of the target picture if the first picture meets the promotion information display condition: and if the promotion information is not displayed on the first picture, the size of the first picture meets the preset requirement, and the first picture is successfully loaded, determining the first picture as a target picture, and acquiring the information of the target picture.
Optionally, the apparatus further includes a third monitoring module, configured to monitor that a network address of at least one picture on the current page changes, or a picture is newly added on the current page, and return to execute an operation of obtaining information of the target picture on the current page browsed by the user.
The promotion information determining device provided by the embodiment of the invention can execute the promotion information determining method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present invention. FIG. 7 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in FIG. 7, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by the electronic device and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, camera, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, thereby implementing the popularization information determination method provided by the embodiment of the present invention.
Example eight
An eighth embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, where the computer program, when executed by a processor, implements the popularization information determination method according to any embodiment.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (14)

1. A method for determining promotion information, comprising:
acquiring information of a target picture from a current page browsed by a user;
detecting information of a target object in the target picture according to the information of the target picture;
and determining promotion information associated with the information of the target object according to the information of the target object.
2. The method according to claim 1, wherein the detecting information of the target object in the target picture according to the information of the target picture comprises:
determining information of a target object matched with the information of the target picture from an offline picture information base; and/or the presence of a gas in the gas,
and detecting the information of the target object in the target picture through an image recognition model.
3. The method according to claim 2, wherein the detecting information of the target object in the target picture through the image recognition model comprises:
detecting the category and the detection accuracy of each object in the target picture through an image recognition model;
determining the field information of each object according to the category of each object;
and determining the target object which has higher detection accuracy than a threshold value and belongs to preset field information from all objects of the target picture, and acquiring the information of the target object.
4. The method according to claim 2, further comprising, after the detecting information of the target object in the target picture by the image recognition model:
and synchronizing the information of the target object to the offline picture information base.
5. The method of claim 1, wherein the information of the target object comprises: category and boundary coordinates of the target object;
the determining of the promotion information associated with the information of the target object according to the information of the target object includes:
selecting promotion information materials matched with the types of the target objects in a material library;
and setting the position information and the size information of the promotion information material according to the boundary coordinates of the target object.
6. The method according to claim 5, after determining promotion information associated with the information of the target object according to the information of the target object, further comprising:
respectively determining the position information and the size information of the bottom canvas according to the position information and the size information of the promotion information material;
drawing the bottom canvas on the upper layer of the target picture according to the size information and the position information of the bottom canvas, and isolating the style processing of the current page to the bottom canvas;
and drawing the promotion information material on the bottom canvas.
7. The method of claim 6, wherein after drawing the promotional information material on the underlying canvas, further comprising:
monitoring the change of the size and the position of the target picture, and respectively updating the size information and the position information of the bottom canvas according to the current size information and the current position information of the target picture;
and redrawing the promotion information material on the updated bottom canvas.
8. The method according to claim 1, after determining promotion information associated with the information of the target object according to the information of the target object, further comprising:
when the target picture is monitored to enter a visible area of the current page, displaying a guide icon on the target object;
and responding to the triggering operation of the user on the guide icon, and displaying the promotion information on the upper layer of the target picture.
9. The method according to claim 1, wherein the obtaining information of the target picture from the current page browsed by the user comprises:
selecting a first picture from pictures on a current page browsed by a user;
if the first picture meets the promotion information display condition, determining the first picture as a target picture, and acquiring the information of the target picture;
and if the first picture does not meet the promotion information display condition, continuously acquiring a next picture as the first picture until all pictures on the current page are processed.
10. The method according to claim 9, wherein the determining the first picture as a target picture and acquiring information of the target picture if the first picture meets a promotion information display condition includes:
if the promotion information is not displayed on the first picture, the size of the first picture meets the preset requirement, and the first picture is successfully loaded, determining the first picture as a target picture, and acquiring the information of the target picture.
11. The method according to any one of claims 1-10, further comprising:
and when the network address of at least one picture on the current page is monitored to be changed or a picture is newly added on the current page, returning to execute the operation of acquiring the information of the target picture from the current page browsed by the user.
12. A promotion information determination apparatus, comprising:
the acquisition module is used for acquiring the information of the target picture from the current page browsed by the user;
the detection module is used for detecting the information of the target object in the target picture according to the information of the target picture;
and the determining module is used for determining promotion information related to the information of the target object according to the information of the target object.
13. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the promotional information determination method of any of claims 1-11.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the promotion information determination method according to any one of claims 1 to 11.
CN201910295265.1A 2019-04-12 2019-04-12 Popularization information determination method, device, equipment and readable storage medium Active CN111815340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910295265.1A CN111815340B (en) 2019-04-12 2019-04-12 Popularization information determination method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910295265.1A CN111815340B (en) 2019-04-12 2019-04-12 Popularization information determination method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111815340A true CN111815340A (en) 2020-10-23
CN111815340B CN111815340B (en) 2023-09-01

Family

ID=72843938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910295265.1A Active CN111815340B (en) 2019-04-12 2019-04-12 Popularization information determination method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111815340B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967885A (en) * 2015-03-27 2015-10-07 哈尔滨工业大学深圳研究生院 Advertisement recommending method and system based on video content
US20170060825A1 (en) * 2015-08-24 2017-03-02 Beijing Kuangshi Technology Co., Ltd. Information processing method and information processing apparatus
US9830534B1 (en) * 2015-12-16 2017-11-28 A9.Com, Inc. Object recognition
CN108804534A (en) * 2018-05-04 2018-11-13 珠海格力电器股份有限公司 A kind of method and system of information recommendation
CN109495784A (en) * 2018-11-29 2019-03-19 北京微播视界科技有限公司 Information-pushing method, device, electronic equipment and computer readable storage medium
CN109492607A (en) * 2018-11-27 2019-03-19 Oppo广东移动通信有限公司 A kind of information-pushing method, information push-delivery apparatus and terminal device
CN109495780A (en) * 2018-10-16 2019-03-19 深圳壹账通智能科技有限公司 A kind of Products Show method, terminal device and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967885A (en) * 2015-03-27 2015-10-07 哈尔滨工业大学深圳研究生院 Advertisement recommending method and system based on video content
US20170060825A1 (en) * 2015-08-24 2017-03-02 Beijing Kuangshi Technology Co., Ltd. Information processing method and information processing apparatus
US9830534B1 (en) * 2015-12-16 2017-11-28 A9.Com, Inc. Object recognition
CN108804534A (en) * 2018-05-04 2018-11-13 珠海格力电器股份有限公司 A kind of method and system of information recommendation
CN109495780A (en) * 2018-10-16 2019-03-19 深圳壹账通智能科技有限公司 A kind of Products Show method, terminal device and computer readable storage medium
CN109492607A (en) * 2018-11-27 2019-03-19 Oppo广东移动通信有限公司 A kind of information-pushing method, information push-delivery apparatus and terminal device
CN109495784A (en) * 2018-11-29 2019-03-19 北京微播视界科技有限公司 Information-pushing method, device, electronic equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
林一;刘越;王涌天;贺长宇;: "一种增强现实分场景推送情景感知服务的方法", 软件学报, no. 08 *

Also Published As

Publication number Publication date
CN111815340B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
JP7488333B2 (en) Video search method, device, terminal, and storage medium
CN109740085B (en) Page content display method, device, equipment and storage medium
CN109408752B (en) Online document display method and device and electronic equipment
WO2016095689A1 (en) Recognition and searching method and system based on repeated touch-control operations on terminal interface
US20150205454A1 (en) Systems and methods for displaying preview data
CN107977155B (en) Handwriting recognition method, device, equipment and storage medium
CN110780939B (en) Method, device, computer equipment and storage medium for loading resource file
CN112988006A (en) Display method, display device, electronic equipment and storage medium
CN112667118A (en) Method, apparatus and computer readable medium for displaying historical chat messages
CN110781427A (en) Method, device, equipment and storage medium for calculating first screen time
WO2016192546A1 (en) Method and device for updating data point of dynamic curve
CN111400575A (en) User identification generation method, user identification method and device
CN111259270A (en) Weather reminding method, equipment and computer readable medium
CN108268298B (en) Desktop icon generation method and device, storage medium and electronic equipment
CN111815340B (en) Popularization information determination method, device, equipment and readable storage medium
CN114092608B (en) Expression processing method and device, computer readable storage medium and electronic equipment
JP2016042372A (en) Program for terminal, terminal device and terminal control method
CN115081423A (en) Document editing method and device, electronic equipment and storage medium
CN114077371A (en) Information display method and device, electronic equipment and storage medium
CN114816597A (en) Content display method and device and computer readable storage medium
WO2016101768A1 (en) Terminal and touch operation-based search method and device
CN113515210A (en) Display method, display device, electronic equipment and storage medium
CN110908570A (en) Image processing method, device, terminal and storage medium
CN110659089A (en) Boarder application recommendation method, equipment and storage medium
CN109492165B (en) Network searching method and electronic equipment

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