CN111815340B - Popularization information determination method, device, equipment and readable storage medium - Google Patents

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

Info

Publication number
CN111815340B
CN111815340B CN201910295265.1A CN201910295265A CN111815340B CN 111815340 B CN111815340 B CN 111815340B CN 201910295265 A CN201910295265 A CN 201910295265A CN 111815340 B CN111815340 B CN 111815340B
Authority
CN
China
Prior art keywords
information
picture
target
target object
popularization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910295265.1A
Other languages
Chinese (zh)
Other versions
CN111815340A (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

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

Abstract

The embodiment of the invention discloses a popularization information determining method, a device, equipment and a readable storage medium, 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 popularization information associated with the information of the target object according to the information of the target object. The promotion information in the embodiment is associated with the information of the target object in the target picture, so that the fusion of the promotion information and the picture is strong, and a better promotion effect can be achieved when the promotion information is fused on the picture.

Description

Popularization information determination method, device, equipment and readable storage medium
Technical Field
The embodiment of the invention relates to network technology, in particular to a popularization information determination method, device and equipment and a readable storage medium.
Background
Along with the improvement of network bandwidth and the reduction of internet charge, web page contents are more and more rich, a large number of pictures appear, and users are transferred from the original text reading time to the image reading time. Correspondingly, the promotion information of the merchant is also embedded into the webpage content.
At present, most website operators determine which promotion information is implanted into webpage content according to commercial factors such as quotations, sponsorship relations and the like 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 popularization information determining method, device, equipment and readable storage medium, which are used for determining popularization information with strong network fusion, so as to achieve a better popularization effect.
In a first aspect, an embodiment of the present invention provides a method for determining promotion 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 popularization 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 promotion information determining apparatus, including:
the acquisition module is used for acquiring information of the target picture from a current page browsed by a 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 popularization information associated with 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, including:
one or more processors;
a memory for storing one or more programs,
the 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 the embodiments.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the promotion information determination method according to any of the embodiments.
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, so that the information of the target object can better reflect the content of the picture; according to the information of the target object, the promotion information associated with the information of the target object is determined, so that the promotion information is associated with the information of the target object in the target picture, the accurate fusion of the promotion information and the picture in content is realized, the fusion of the promotion information and the picture is strong, and a better promotion effect can be achieved when the promotion information is fused on the picture.
Drawings
Fig. 1a is a flowchart of a method for determining promotion information according to a first embodiment of the present invention;
FIG. 1b is a schematic 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 promotion 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 invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1a is a flowchart of a method for determining promotional information provided in accordance with a first embodiment of the present invention, where the method may be applied to displaying promotional information on a web page, and the method may be performed by a promotional information determining apparatus, which may be configured by hardware and/or software, and typically integrated into an electronic device, including but 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, acquiring information of a target picture from a current page browsed by a 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 a 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 popularization information, and optionally, in order to avoid excessive popularization information and influence normal browsing of pages, the number of the target pictures does not exceed a preset threshold.
In an example, the information of the target picture includes a network address of the target picture, or image data.
S120, detecting information of a target object in the target picture according to the information of the target picture.
If the information of the target picture comprises the network address of the target picture, the target picture is obtained according to the network address of the target picture, and then the information of the target object in the target picture is detected. If the information of the target picture comprises image data, the image data is directly detected, and the information of the target object is obtained. 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 a watch, clothes, football, etc. In one target picture, the number of target objects is at least one.
S130, according to the information of the target object, the popularization information associated with the information of the target object is determined.
In this embodiment, the promotion information includes promotion information materials, size information and position information of the promotion information materials. After the information of the target object is detected, the popularization information materials related to the information of the target object are selected from the 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 belong to different categories. Based on the above, the promotion information materials matched with the type of the target object are selected from the material library.
Further, it is necessary to set size information and position information of the promotional information material. Alternatively, the size information is set to a fixed value, and the position information is set to a preset area of the target picture, for example, a central area, an upper left corner area, a lower right corner area, and the like.
After S130, the promotional information is displayed at the upper layer of the target picture according to the size information and the position information of the promotional information material. Specifically, the popularization information is rendered at the upper layer of the target picture. Optionally, the promotion information performs layer coverage on the target picture so as to shade the display content on the target picture, so that the promotion 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, so that the information of the target object can better reflect the content of the picture; according to the information of the target object, the promotion information associated with the information of the target object is determined, so that the promotion information is associated with the information of the target object in the target picture, the accurate fusion of the promotion information and the picture in content is realized, the fusion of the promotion information and the picture is high, and a better promotion effect can be achieved when the promotion information is fused on the picture.
Example two
The present embodiment is further optimized based on the optional implementation manners of the foregoing embodiments. Optionally, the information of the target object in the target picture is detected according to the information of the target picture and is thinned into the information of the target object which is determined to be 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, thereby detecting information of the target object in an offline mode and/or an online mode.
Alternatively, for the offline mode: the offline 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 coordinates 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 serve as information of the target object; further, information of an object, corresponding to the network address, of which the accuracy is higher than an accuracy threshold is extracted as information of a target object.
Optionally, for the online mode: firstly, downloading a target picture according to a network address of the target picture, and then detecting information of a target object in the target picture through an image recognition model, wherein the information of the target object comprises types, boundary coordinates (boundBox) and accuracy of image recognition, and the formats of { type: 'automobile', score:90, boundBox: { (0, 0), (0,200), (100, 200), (100, 0) }.
Fig. 2 is a flowchart of a method for determining promotion information according to a second embodiment of the present invention, where 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, acquiring information of a target picture from a current page browsed by a user.
S220, judging whether the information of the target object matched with the information of the target picture can be determined from the offline picture information base, and if so, jumping to S240; if it cannot be determined, the process goes to S230.
If the offline picture information base does not include 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 further the determination is performed in an online mode.
S230, detecting information of a 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 the image recognition model; determining the domain information of each object according to the category of each object; and determining a target object which has the detection accuracy higher 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 the category of the object and the domain information to which the category belongs. Some areas have business attributes such as numbers and clothing; some areas do not have business attributes, such as figures and education, and objects corresponding to the area information having the business attributes are selected so as to successfully acquire associated popularization information. And selecting an object with accuracy higher than a threshold value as a target object on the basis of selecting the object according to the preset field information, and further acquiring the information of the target object.
TABLE 1 category of object and Domain information to which the category belongs
Domain information Category(s)
Portrait figure Actors, news characters, stars, etc
Education system Books, classrooms, schools, school things, and the like
Travelling device Beach, mountain, temple, stone tablet, etc
Digital code Computer, mobile phone, watch, display, etc
Clothing (garment) Clothing, shoes, hats, etc
Optionally, after detecting the information of the target object in the target picture by the image recognition model, the method further includes: and synchronizing the information of the target object to an 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.
S240, according to the information of the target object, the promotion information related to the information of the target object is determined.
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 consumption can be reduced; moreover, detecting the category and the accuracy of each object in the target picture through the image recognition model; according to the accuracy of each object and the domain information of the category, the information of the target object is determined, the accuracy of the target object can be improved, and further the accurate fusion of the popularization information and the picture in the content is realized.
Example III
The present embodiment is further optimized based on the optional implementation manners of the foregoing embodiments. Optionally, the information of the target object includes: the class and boundary coordinates of the target object; correspondingly, the popularization information associated with the information of the target object is determined according to the information of the target object and is thinned into a material library, and the popularization information material matched with the category of the target object is selected; and setting the position information and the size information of the popularization information materials according to the boundary coordinates of the target object, so that the popularization information materials are matched accurately, and the popularization information is displayed at a proper position. Fig. 3 is a flowchart of a method for determining promotion information according to a third embodiment of the present invention, where the method provided in the present embodiment includes the following operations:
S310, acquiring information of a target picture from a current page browsed by a user.
S320, detecting information of a 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 by the image recognition model.
S330, selecting popularization information materials matched with the categories of the target objects in the material library.
S340, setting the position information and the size information of the popularization information materials according to the boundary coordinates of the target object.
Optionally, according to the boundary coordinates, a center coordinate of the target object is determined, and the center coordinate is set as 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 obtained, the 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 popularization information material is smaller than the size information of the target picture, and when the popularization information is displayed on the upper layer of the target picture, the popularization information is displayed on the target picture by taking the target object as the center, so that the whole coverage of the popularization information on the target picture is avoided, and the browsing experience is prevented from being influenced.
S350, according to the position information and the size information of the popularization information materials, the position information and the size information of the bottom canvas are respectively determined.
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 on the bottom canvas.
And S370, drawing popularization information materials on the bottom canvas.
In order to accelerate the display speed of the popularization information, a bottom canvas is drawn in advance at the upper layer of the target picture, and the bottom canvas is used for drawing the popularization information materials. Based on the size information and the position information of the popularization information materials, the size information and the position information of the bottom canvas are respectively determined. 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 on the bottom canvas. This is because when the underlying canvas is drawn on the current page, the current page may perform default style processing on the underlying canvas, e.g., setting the size information of the underlying canvas to default size information and setting the material in the underlying canvas to default format. However, the embodiment requires that the size information of the underlying canvas is the size information of the popularization information material, and the popularization information material has a specified format, so that the style processing of the current page to the underlying canvas is isolated. For example, the style name of the underlying canvas is reset so that the underlying canvas cannot be style processed by the current page. For another example, the style of the underlying canvas is rewritten based on the promotional information material, size information and location information of the underlying canvas.
Optionally, after S370, the size and position of the target picture are monitored to change, and the size information and the position information of the bottom canvas are updated according to the current size information and the current position information of the target picture; and redrawing the popularization information materials on the updated bottom canvas.
The size information and the position information of the underlying canvas are updated in response to the size event and the scroll event, wherein the size information and the current position information of the target picture are changed by the size event and the scroll event. For example, if the current size information of the target picture is M times of the historical size information, the size information of the bottom canvas is enlarged by M times, and 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, shifting the position information of the bottom canvas by a vector. In this embodiment, the promotion information may change according to the size and position of the picture, so as to improve the fusion of the promotion information and the picture.
In the embodiment of the invention, in a material library, popularization information materials matched with the category of a target object are selected; setting position information and size information of the popularization information materials according to boundary coordinates of the target object, so that the popularization information materials are matched accurately, and the popularization information is displayed at a proper position; through the position information and the size information according to popularization information material, confirm the position information and the size information of bottom canvas respectively to isolate the style processing of current page to bottom canvas, thereby show popularization information according to target object's boundary coordinate, make popularization information's invasiveness low, realized the integration on the display effect, user experience is original, and then reach the popularization effect of preferred.
Example IV
The present embodiment is further optimized based on the optional implementation manners of the foregoing embodiments. Optionally, after determining the promotion information associated with the information of the target object according to the information of the target object, performing an additional operation to monitor that the target picture enters the visible area of the 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 popularization information on the upper layer of the target picture, so that the fusion of the browsing behavior of the user and the popularization information is realized, and the interactivity with the popularization information is improved. Fig. 4 is a flowchart of a method for determining promotion information according to a fourth embodiment of the present invention, where the method provided in the present embodiment includes the following operations:
s410, obtaining information of a target picture from a current page browsed by a user.
S420, detecting information of a target object in the target picture according to the information of the target picture.
S430, according to the information of the target object, determining popularization information associated with the information of the target object.
S440, the fact that the target picture enters the visible area of the current page is monitored, and a guide icon is displayed on the target object.
Currently, most pages have areas beyond the viewable area of the current page, requiring browsing of the entire page content by means of a scroll bar or page flip. During scrolling or paging, the target picture may enter the viewable area from outside the viewable area. Based on this, after loading the current page, the boundaries, such as the upper boundary and the lower boundary, the left boundary and the right boundary, of the target picture are acquired, and when the boundary of the target picture is in the visible area, it is monitored that the target picture is in the visible area entering the current page. At this time, the guide icon is displayed on the target object, and the guide icon may be semitransparent or carry a blinking effect, so that the user can be guided without completely shielding the target object.
Optionally, the information of the target object further includes boundary coordinates of the target object, such as vertex coordinates of a rectangular frame surrounding the target object. Then, it is monitored that the target picture enters the visible region, and according to the boundary coordinates of the target object, a guide icon is displayed on the target object, that is, the guide icon is displayed in the range of the boundary coordinates. For example, the target object is a car, and 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 viewable area, the guide icon is hidden.
S450, responding to the triggering operation of the user on the guide icon, and displaying popularization information on the upper layer of the target picture.
The guide icon can attract a user to trigger operations including, but not limited to, a mouse hovering over the guide icon, clicking or touching the guide icon; and displaying popularization information on the upper layer of the target picture. Further, the guide icon is hidden while the promotion information is displayed.
Optionally, the target picture is monitored to enter 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, further including: and generating an interaction log, wherein the interaction log comprises, but is not limited to, whether triggering operation exists or not, whether popularization information is displayed, whether a guide icon is displayed and the like. The interaction log is used for counting interaction behaviors of the user and the popularization information and is used as 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 popularization information on the upper layer of the target picture, so that the fusion of the browsing behavior of the user and the popularization information is realized, and the interactivity with the popularization information is improved; and when the guide icon is not triggered, the popularization information is in a hidden state, and is displayed in the form of the guide icon, so that the occupied area is small, and the influence on the target picture is small.
Example five
The present embodiment is further optimized based on the optional implementation manners of the foregoing embodiments. Optionally, the information of the target picture acquired from the current page browsed by the user is refined into each picture from the current page browsed by the user, and the first picture is selected; if the first picture meets the popularization information display condition, determining the first picture as a target picture, and acquiring information of the target picture; if the first picture does not meet the popularization information display condition, continuing to acquire the next picture as the first picture until all the pictures on the current page are processed, so that each picture is traversed, and a final proper target picture is determined. Fig. 5 is a flowchart of a method for determining promotion information provided in a fifth embodiment of the present invention, which specifically includes the following operations:
S510, selecting a first picture from all pictures on a current page browsed by a user.
S520, judging whether the first picture meets the popularization information display condition. If the promotional information display condition is satisfied, the process goes to S530, and if the promotional information display condition is not satisfied, the process goes to S540.
S530, determining the first picture as a target picture, and acquiring information of the target picture, and continuing to execute S550.
Optionally, the promotion information display condition at least includes one of non-display promotion information, size meeting preset requirements, and successful picture loading. If the popularization information is not displayed on the first picture, the size of the first picture meets the preset requirement, the first picture is loaded successfully, the first picture is judged to meet the display condition of the popularization information, and the first picture is determined to be a target picture. And if the popularization information is displayed on the first picture, or the size does not meet the preset requirement, or the picture is not loaded successfully, judging that the first picture does not meet the popularization information display condition.
In a specific embodiment, firstly, judging whether the first picture displays promotion information, and if the promotion information is displayed, continuing to acquire the next picture as the first picture; if no promotion information is displayed, continuing to judge whether the size meets the preset requirement, for example, the width of the picture is larger than the preset width, and the height of the picture is larger than the preset height, and the size meets the preset requirement; otherwise, the size does not meet the preset requirements. If the size meets the preset requirement, continuously judging whether the picture is loaded successfully or not; and if the size does not meet the preset requirement, continuing to acquire the next picture as the first picture. And if the picture is loaded successfully, acquiring popularization information. Considering that the picture may be loaded in a delayed manner due to the performance problem of the network or the equipment, if the picture is not loaded successfully, waiting for a preset time period, and if the picture is loaded successfully, acquiring popularization information. If the picture is not loaded successfully after waiting for the preset time, continuing to acquire the next picture as the first picture.
S540, judging whether unprocessed pictures exist, if so, jumping to S541, and if not, jumping to S542.
S541, continuing to acquire the next picture as the first picture, and returning to S520.
S542, ending the operation.
S550, detecting information of a target object in the target picture according to the information of the target picture.
S560, according to the information of the target object, the promotion information related to the information of the target object is determined.
S570, judging whether the popularization information is successfully determined. If determined, go to S580, if not determined, go to S541.
And if the promotion information associated with the information of the target object is not determined, continuing to acquire the next picture as the first picture.
S580, displaying popularization information on the upper layer of the target picture. Execution continues with S541.
If the popularization information is displayed on the upper layer of the target picture, the target picture is considered to be processed, and the next picture is processed continuously.
In the embodiment, by traversing each picture on the current page, selecting a picture meeting the display condition of the popularization information as a target picture, thereby selecting a picture suitable for displaying the popularization information and improving the popularization efficiency; through if the popularization information is not displayed on the first picture, the size of the first picture accords with the preset requirement, the first picture is loaded successfully, the first picture is judged to meet the display condition of the popularization information, the first picture is determined to be a target picture, whether the picture meets the display condition of the popularization information is judged from three dimensions of whether the popularization information is displayed, the size and the loading condition, and the proper target picture can be accurately selected, so that the effective display of the popularization information is realized.
In each optional implementation manner of each embodiment, obtaining the 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 time reaches the preset time, responding to a preset trigger event, and acquiring information of a target picture; or after the current page is loaded or the current page loading time reaches the preset time, periodically acquiring the information of the target picture on the current page.
Optionally, the preset trigger event includes, but is not limited to, an onload event, a restore event, and a scroll event. In one case, the completion of the loading of the current page automatically triggers an onload event, and a target picture on the current page is determined in response to the onload event. Under another condition, an onload event is not triggered by page fault or picture loading fault, or picture delay loading is caused, so that the onload event is not triggered at a delay, after the current page loading time length reaches a preset time length, the page is considered to be loaded, and information of a target picture is acquired in response to a size event triggered when a user adjusts a browser window or a scroll event triggered when the page is scrolled. This is because both the restore event and the scroll event may result in dynamic loading of pictures on the current page. In still another case, a preset period is set, where the preset period may be an auto-refresh period of the current page, and after the current page is loaded or the current page loading duration reaches the preset duration, information of the target picture is periodically acquired according to the preset period. According to the method and the device, accuracy of determining the target picture can be effectively improved.
In each optional implementation manner of each embodiment, the promotion information determining method further includes: and (3) detecting that the network address of at least one picture on the current page is changed or a picture is newly added on the current page, and returning to execute the operation of acquiring the information of the target picture on the current page browsed by the user.
Optionally, whether the target picture on the current page is a target picture or a non-target picture, and whether the target picture is a promotion information or not, whether the network address of at least one picture on the current page is changed or not is monitored, if the network address of the picture is changed, the content of the picture is changed, and the target picture needs to be determined again and information of the target picture needs to be acquired. Optionally, in response to the restore event and the scroll event, whether a picture is newly added on the current page is monitored, and if the picture is newly added, whether the picture is a target picture is determined according to the newly added 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, so that the accuracy of determining the target picture is improved.
In this embodiment, on a software architecture, an electronic device includes a loader (loader) module and a rendering (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 popularization information container, i.e., draw a bottom canvas, and trigger the render module. And the Render module is used for drawing promotion information at 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 in conjunction with 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;
a determining module 63, 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, so that the information of the target object can better reflect the content of the picture; according to the information of the target object, the promotion information associated with the information of the target object is determined, so that the promotion information is associated with the information of the target object in the target picture, the accurate fusion of the promotion information and the picture in content is realized, the fusion of the promotion information and the picture is high, and a better promotion effect can be achieved when the promotion information is fused on the picture.
Optionally, the detection module 62 is specifically configured to, when detecting information of a target object in the target picture according to the information of the target picture: 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, the detection module 62 is specifically configured to, when detecting information of the target object in the target picture through the image recognition model: detecting the category and the detection accuracy of each object in the target picture through the image recognition model; determining the domain information of each object according to the category of each object; and determining a target object which has the detection accuracy higher 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 comprises a synchronizing module for synchronizing the information of the target object to the offline picture information base after detecting the information of the target object in the target picture by the image recognition model.
Optionally, the information of the target object includes: the class and boundary coordinates of the target object; accordingly, the determining module 63 is specifically configured to, when determining the promotion information associated with the information of the target object according to the information of the target object: selecting popularization information materials matched with the categories of the target objects in a material library; and setting the position information and the size information of the popularization information materials according to the boundary coordinates of the target object.
Optionally, the device further comprises a drawing module, which is used for respectively determining the position information and the size information of the bottom canvas according to the position information and the size information of the popularization information materials after determining the popularization information associated with the information of the target object according to the information of the target object; 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 on the bottom canvas; and drawing popularization information materials on the bottom canvas.
Optionally, the device further comprises a first monitoring module, which is used for monitoring the size and position change of the target picture after the popularization information material is drawn on the bottom canvas, 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 popularization information materials on the updated bottom canvas.
Optionally, the device further comprises a second monitoring module, configured to monitor that the target picture enters the visible area of the current page after determining the 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 popularization information on the upper layer of the target picture.
Optionally, the obtaining module 61 is specifically configured to, when obtaining information of the target picture on a current page browsed by the user: selecting a first picture from the pictures on the current page browsed by the user; if the first picture meets the popularization information display condition, determining the first picture as a target picture, and acquiring information of the target picture; if the first picture does not meet the popularization information display condition, continuing to acquire the next picture as the first picture until all the pictures on the current page are processed.
Alternatively, the obtaining module 61 is specifically configured to, if the first picture meets the promotion information display condition, determine the first picture as the target picture, and obtain the information of the target picture: if the popularization information is not displayed on the first picture, the size of the first picture meets the preset requirement, the first picture is loaded successfully, the first picture is determined to be a target picture, and the information of the target picture is acquired.
Optionally, the device 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 perform an operation of obtaining information of the target picture on the current page browsed by the user.
The popularization information determining device provided by the embodiment of the invention can execute the popularization 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 merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 7, the electronic device 12 is in the form of a general purpose computing device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include 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 can be any available media that can be accessed 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 or write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard disk drive"). Although not shown in fig. 7, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules 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 in, for example, 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 or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, camera, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 implements the promotion information determination method provided by the embodiment of the present invention by executing programs stored in the system memory 28 to thereby execute various functional applications and data processing.
Example eight
An eighth embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the promotion information determination method of any of the embodiments.
The computer storage media of embodiments of the invention may take the form of 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. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 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.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 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 ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A promotional information determination method, comprising:
acquiring information of a target picture from a current page browsed by a user;
determining information of a target object matched with the information of the target picture from an offline picture information base; and/or the number of the groups of groups,
detecting the category and the detection accuracy of each object in the target picture through an image recognition model;
determining the domain information of each object according to the category of each object;
determining a target object with detection accuracy higher than a threshold value and belonging to preset field information from objects of the target picture, and acquiring information of the target object;
Synchronizing the information of the target object to the offline picture information base;
according to the information of the target object, determining popularization information associated with the information of the target object;
the step of obtaining the information of the target picture from the current page browsed by the user comprises the following steps:
selecting a first picture from the pictures on the current page browsed by the user;
if the first picture meets the popularization information display condition, determining the first picture as a target picture, and acquiring information of the target picture;
and if the first picture does not meet the popularization information display condition, continuing to acquire the next picture as the first picture until all the pictures on the current page are processed.
2. The method of claim 1, wherein the information of the target object comprises: the class and boundary coordinates of the target object;
the step of determining promotion information associated with the information of the target object according to the information of the target object comprises the following steps:
selecting popularization information materials matched with the category of the target object in a material library;
and setting the position information and the size information of the popularization information material according to the boundary coordinates of the target object.
3. The method of claim 2, further comprising, after said determining promotional information associated with said information of said target object based on said information of said target object:
respectively determining the position information and the size information of the bottom canvas according to the position information and the size information of the popularization information materials;
drawing a 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 on the bottom canvas;
and drawing the popularization information materials on the bottom canvas.
4. The method of claim 3, wherein after drawing the promotional information material on the underlying canvas, further comprising:
the size and position change of the target picture is monitored, 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 popularization information materials on the updated bottom canvas.
5. The method of claim 1, further comprising, after said determining promotional information associated with said information of said target object based on said information of said target object:
The target picture is monitored to enter a visible area of the current page, and a guide icon is displayed on the target object;
and 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.
6. The method according to claim 1, wherein determining the first picture as a target picture and acquiring information of the target picture if the first picture satisfies a promotion information display condition, comprises:
if the popularization information is not displayed on the first picture, the size of the first picture meets the preset requirement, the first picture is loaded successfully, the first picture is determined to be a target picture, and information of the target picture is acquired.
7. The method according to any one of claims 1-6, further comprising:
and monitoring that the network address of at least one picture on the current page is changed or a picture is newly added on the current page, and returning to execute the operation of acquiring the information of the target picture on the current page browsed by the user.
8. A promotion information determination apparatus, characterized by comprising:
The acquisition module is used for acquiring information of the target picture from a current page browsed by a user;
the detection module is used for determining information of a target object matched with the information of the target picture from an offline picture information base; and/or detecting the category and the detection accuracy of each object in the target picture through an image recognition model; determining the domain information of each object according to the category of each object; determining a target object with detection accuracy higher than a threshold value and belonging to preset field information from objects of the target picture, and acquiring information of the target object;
the synchronization module is used for synchronizing the information of the target object to the offline picture information base;
the determining module is used for determining popularization information associated with the information of the target object according to the information of the target object;
the acquiring module is specifically configured to:
selecting a first picture from the pictures on the current page browsed by the user;
if the first picture meets the popularization information display condition, determining the first picture as a target picture, and acquiring information of the target picture;
and if the first picture does not meet the popularization information display condition, continuing to acquire the next picture as the first picture until all the pictures on the current page are processed.
9. An electronic device, the electronic device comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the promotion information determination method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the promotion information determination method according to any one of claims 1 to 7.
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 CN111815340A (en) 2020-10-23
CN111815340B true 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 (6)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095498A (en) * 2015-08-24 2015-11-25 北京旷视科技有限公司 Information processing method and device

Patent Citations (6)

* 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
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
林一 ; 刘越 ; 王涌天 ; 贺长宇 ; .一种增强现实分场景推送情景感知服务的方法.软件学报.2016,(08),全文. *

Also Published As

Publication number Publication date
CN111815340A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
US20240094872A1 (en) Navigating through documents in a document viewing application
CN109740085B (en) Page content display method, device, equipment and storage medium
CN109782976B (en) File processing method, device, terminal and storage medium
CN109408752B (en) Online document display method and device and electronic equipment
US8379053B1 (en) Identification of areas of interest on a web page
CN103853417A (en) Rolling and pagination display method and device for network dynamic picture
US11360640B2 (en) Method, device and browser for presenting recommended news, and electronic device
CN112988006B (en) Display method, display device, electronic equipment and storage medium
US20130091450A1 (en) User preference analysis method and device
WO2021254201A1 (en) Page display method and apparatus, storage medium, and electronic device
US20150205454A1 (en) Systems and methods for displaying preview data
CN107977155B (en) Handwriting recognition method, device, equipment and storage medium
CN112667118A (en) Method, apparatus and computer readable medium for displaying historical chat messages
CN111124564A (en) Method and device for displaying user interface
CN110780939B (en) Method, device, computer equipment and storage medium for loading resource file
CN109683760B (en) Recent content display method, device, terminal and storage medium
CN109948084B (en) Webpage information display method, device, medium and computing equipment
CN110909274A (en) Page browsing method and device and electronic equipment
CN113032073A (en) Page display method and device based on operation behaviors
CN111259270A (en) Weather reminding method, equipment and computer readable medium
CN111815340B (en) Popularization information determination method, device, equipment and readable storage medium
CN111400575A (en) User identification generation method, user identification method and device
CN108268298B (en) Desktop icon generation method and device, storage medium and electronic equipment
CN106776634A (en) A kind of method for network access, device and terminal device
CN108984247B (en) Information display method, terminal equipment and network equipment thereof

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