[go: up one dir, main page]

CN108009232A - Advertisement shields method and device - Google Patents

Advertisement shields method and device Download PDF

Info

Publication number
CN108009232A
CN108009232A CN201711226303.5A CN201711226303A CN108009232A CN 108009232 A CN108009232 A CN 108009232A CN 201711226303 A CN201711226303 A CN 201711226303A CN 108009232 A CN108009232 A CN 108009232A
Authority
CN
China
Prior art keywords
advertisement
url
module
displaying interface
web displaying
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.)
Pending
Application number
CN201711226303.5A
Other languages
Chinese (zh)
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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711226303.5A priority Critical patent/CN108009232A/en
Publication of CN108009232A publication Critical patent/CN108009232A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

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

Abstract

本公开是关于一种广告屏蔽方法及装置。包括:监听当前页面是否为网页显示界面。当监听到当前页面为网页显示界面时,获取所述网页显示界面的图像内容。根据所述网页显示界面的图像内容,判断所述网页显示界面是否包含广告。在所述网页显示界面包含广告的情况下,确定各广告所对应的各第一URL。屏蔽各所述第一URL的链接请求。本公开基于网页的显示内容分析屏蔽广告,能够更加灵活的适应网页中广告的变化,由此准确检测和屏蔽网页中的广告,且不容易被破解。

The present disclosure relates to an advertisement shielding method and device. Including: monitoring whether the current page is a web page display interface. When it is detected that the current page is a web page display interface, the image content of the web page display interface is acquired. According to the image content of the web page display interface, it is judged whether the web page display interface contains advertisements. If the web page display interface contains advertisements, each first URL corresponding to each advertisement is determined. Blocking link requests of each of the first URLs. The present disclosure shields advertisements based on webpage display content analysis, can more flexibly adapt to changes in advertisements in webpages, thereby accurately detecting and shielding advertisements in webpages, and is not easy to be cracked.

Description

广告屏蔽方法及装置Advertising blocking method and device

技术领域technical field

本公开涉及模式识别领域,尤其涉及一种广告屏蔽方法及装置。The present disclosure relates to the field of pattern recognition, in particular to an advertisement shielding method and device.

背景技术Background technique

随着互联网的普及,不少网站经常在其网页中携带各类广告插件。广告插件影响了设备的处理速度,混淆了网页的主要内容,严重影响了用户浏览网页的效率。With the popularity of the Internet, many websites often carry various advertisement plug-ins in their web pages. Ad plug-ins affect the processing speed of the device, confuse the main content of the webpage, and seriously affect the efficiency of users browsing the webpage.

相关技术中,拦网页的广告检测盒屏蔽方法主要基于在网页HTML(HyperTextMarkup Language,超文本标记语言)源码进行分析,确定HTML源码中哪些是广告,哪些是正常的HTML代码。并由此建立广告网站的黑名单。通过黑名单屏蔽广告。但是,广告发布者会不断的更新广告的HTML源码,或对广告的HTML源码进行加密,由此绕过黑名单的拦截继续显示在网页中,对用户造成困扰。In related technologies, the advertisement detection and shielding method for blocking webpages is mainly based on analyzing HTML (HyperTextMarkup Language, Hypertext Markup Language) source codes of webpages to determine which ones in the HTML source codes are advertisements and which ones are normal HTML codes. And thus build a blacklist of advertising sites. Block ads with blacklist. However, the advertisement publisher will constantly update the HTML source code of the advertisement, or encrypt the HTML source code of the advertisement, thereby bypassing the interception of the blacklist and continuing to display it on the webpage, causing troubles to users.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种广告屏蔽方法及装置。In order to overcome the problems existing in related technologies, the present disclosure provides an advertisement blocking method and device.

根据本公开实施例的第一方面,提供一种广告屏蔽方法,包括:According to the first aspect of the embodiments of the present disclosure, an advertisement blocking method is provided, including:

监听当前页面是否为网页显示界面;Monitor whether the current page is a web page display interface;

当监听到当前页面为网页显示界面时,获取所述网页显示界面的图像内容;When monitoring that the current page is a webpage display interface, acquiring the image content of the webpage display interface;

根据所述网页显示界面的图像内容,判断所述网页显示界面是否包含广告;According to the image content of the webpage display interface, it is judged whether the webpage display interface contains advertisements;

在所述网页显示界面包含广告的情况下,确定各广告所对应的各第一URL;When the web page display interface contains advertisements, determining each first URL corresponding to each advertisement;

屏蔽各所述第一URL的链接请求。Blocking link requests of each of the first URLs.

对于上述方法,在一种可能的实现方式中,根据所述网页显示界面的图像内容,判断所述网页显示界面是否包含广告,包括:For the above method, in a possible implementation manner, judging whether the webpage display interface contains advertisements according to the image content of the webpage display interface includes:

将所述网页显示界面的图像内容输入广告检测器,以检测所述网页显示界面是否包含广告。The image content of the webpage display interface is input into an advertisement detector to detect whether the webpage display interface contains advertisements.

对于上述方法,在一种可能的实现方式中,确定各广告所对应的各第一URL,包括:For the above method, in a possible implementation manner, determining each first URL corresponding to each advertisement includes:

根据所述广告检测器确定广告在网页中的显示位置;determining the display position of the advertisement in the webpage according to the advertisement detector;

根据所述显示位置和网页的HTML源码确定所述广告对应的第一URL。The first URL corresponding to the advertisement is determined according to the display location and the HTML source code of the webpage.

对于上述方法,在一种可能的实现方式中,确定各广告所对应的各第一URL,包括:For the above method, in a possible implementation manner, determining each first URL corresponding to each advertisement includes:

提取各广告的第一图像特征;extracting the first image feature of each advertisement;

比较所述第一图像特征和广告模板的第二图像特征的相似度;Comparing the similarity between the first image feature and the second image feature of the advertisement template;

将相似度大于预设阈值的第二图像特征对应的URL作为第一URL。The URL corresponding to the second image feature whose similarity is greater than the preset threshold is used as the first URL.

对于上述方法,在一种可能的实现方式中,还包括:For the above method, in a possible implementation manner, it also includes:

获取所述第一URL对应的网站包括的至少一个第二URL;Obtaining at least one second URL included in the website corresponding to the first URL;

屏蔽各所述第二URL的链接请求。Blocking link requests of each of the second URLs.

根据本公开实施例的第二方面,提供一种广告屏蔽装置,包括:According to a second aspect of an embodiment of the present disclosure, an advertisement blocking device is provided, including:

监听模块,用于监听当前页面是否为网页显示界面;A monitoring module, configured to monitor whether the current page is a web page display interface;

获取模块,用于当监听到当前页面为网页显示界面时,获取所述网页显示界面的图像内容;An acquisition module, configured to acquire the image content of the webpage display interface when the current page is detected to be a webpage display interface;

判断模块,用于根据所述网页显示界面的图像内容,判断所述网页显示界面是否包含广告;A judging module, configured to judge whether the webpage display interface contains advertisements according to the image content of the webpage display interface;

确定模块,用于在所述网页显示界面包含广告的情况下,确定各广告所对应的各第一URL;A determination module, configured to determine each first URL corresponding to each advertisement when the web page display interface contains advertisements;

第一屏蔽模块,用于屏蔽各所述第一URL的链接请求。The first shielding module is configured to shield the link requests of each of the first URLs.

对于上述装置,在一种可能的实现方式中,所述判断模块包括:For the above device, in a possible implementation manner, the judging module includes:

判断子模块,用于将所述网页显示界面的图像内容输入广告检测器,以检测所述网页显示界面是否包含广告。The judging sub-module is used to input the image content of the webpage display interface into the advertisement detector to detect whether the webpage display interface contains advertisements.

对于上述装置,在一种可能的实现方式中,所述确定模块包括:For the above device, in a possible implementation manner, the determining module includes:

第一确定子模块,用于根据所述广告检测器确定广告在网页中的显示位置;The first determination submodule is used to determine the display position of the advertisement in the webpage according to the advertisement detector;

第二确定子模块,用于根据所述显示位置和网页的HTML源码确定所述广告对应的第一URL。The second determining submodule is configured to determine the first URL corresponding to the advertisement according to the display location and the HTML source code of the webpage.

对于上述装置,在一种可能的实现方式中,所述确定模块包括:For the above device, in a possible implementation manner, the determining module includes:

第三确定子模块,用于提取各广告的第一图像特征;The third determination sub-module is used to extract the first image features of each advertisement;

第四确定子模块,用于比较所述第一图像特征和广告模板的第二图像特征的相似度;The fourth determining submodule is used to compare the similarity between the first image feature and the second image feature of the advertisement template;

第五确定子模块,用于将相似度大于预设阈值的第二图像特征对应的URL作为第一URL。The fifth determining submodule is configured to use the URL corresponding to the second image feature whose similarity is greater than a preset threshold as the first URL.

对于上述装置,在一种可能的实现方式中,还包括:For the above device, in a possible implementation manner, it also includes:

获取模块,用于获取所述第一URL对应的网站包括的至少一个第二URL;An acquisition module, configured to acquire at least one second URL included in the website corresponding to the first URL;

第二屏蔽模块,用于屏蔽各所述第二URL的链接请求。The second shielding module is configured to shield the link requests of each of the second URLs.

根据本公开的第三方面,提供一种广告屏蔽装置,包括:According to a third aspect of the present disclosure, an advertisement blocking device is provided, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

执行上述方法。Execute the method above.

根据本公开实施例的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述方法。According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the foregoing method is implemented.

本公开的实施例提供的技术方案可以包括以下有益效果:本公开采用图像识别的方法识别网页显示界面中广告的位置,并根据该广告的位置和网页的HTML源码,获取并屏蔽广告对应的链接。本公开基于网页的显示内容分析屏蔽广告,能够更加灵活的适应网页中广告HTML源码的变化,由此准确检测和屏蔽网页中的广告,且不容易被破解。帮助用户高效浏览网页。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: the present disclosure uses an image recognition method to identify the position of the advertisement in the display interface of the webpage, and obtains and blocks the link corresponding to the advertisement according to the position of the advertisement and the HTML source code of the webpage . The disclosure shields advertisements based on webpage display content analysis, and can more flexibly adapt to changes in HTML source codes of advertisements in webpages, thereby accurately detecting and shielding advertisements in webpages, and is not easy to be cracked. Help users browse the web efficiently.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种广告屏蔽方法的流程图。Fig. 1 is a flowchart of an advertisement blocking method according to an exemplary embodiment.

图2是根据一示例性实施例示出的一种广告屏蔽方法中步骤103的流程图。Fig. 2 is a flow chart of step 103 in an advertisement blocking method according to an exemplary embodiment.

图3是根据另一示例性实施例示出的一种广告屏蔽方法中步骤103的流程图。Fig. 3 is a flow chart of step 103 in an advertisement blocking method according to another exemplary embodiment.

图4是根据一示例性实施例的一个示例示出的一种广告屏蔽方法的流程图。Fig. 4 is a flow chart showing an example of an advertisement blocking method according to an exemplary embodiment.

图5是根据一示例性实施例示出的一种广告屏蔽装置的框图。Fig. 5 is a block diagram of an advertisement blocking device according to an exemplary embodiment.

图6是根据一示例性实施例的一个示例示出的一种广告屏蔽装置的框图。Fig. 6 is a block diagram showing an advertisement blocking device according to an example of an exemplary embodiment.

图7是根据一示例性实施例示出的一种广告屏蔽装置的框图。Fig. 7 is a block diagram of an advertisement blocking device according to an exemplary embodiment.

图8是根据一示例性实施例示出的一种广告屏蔽装置的框图。Fig. 8 is a block diagram of an advertisement blocking device according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

图1是根据一示例性实施例示出的一种广告屏蔽方法的流程图。该方法可以应用于智能手机、平板电脑、笔记本电脑和台式电脑等互联网终端,在此不做限定。如图1所示,该方法包括步骤100至步骤104。Fig. 1 is a flowchart of an advertisement blocking method according to an exemplary embodiment. The method can be applied to Internet terminals such as smart phones, tablet computers, notebook computers and desktop computers, and is not limited here. As shown in FIG. 1 , the method includes step 100 to step 104 .

在步骤100中,监听当前页面是否为网页显示界面。In step 100, monitor whether the current page is a webpage display interface.

在步骤101中,当监听到当前页面为网页显示界面时,获取所述网页显示界面的图像内容。In step 101, when it is detected that the current page is a webpage display interface, the image content of the webpage display interface is acquired.

在步骤102中,根据所述网页显示界面的图像内容,判断所述网页显示界面是否包含广告。In step 102, it is determined whether the webpage display interface contains advertisements according to the image content of the webpage display interface.

在步骤103中,在所述网页显示界面包含广告的情况下,确定各广告所对应的各第一URL(Uniform Resource Locator,统一资源定位符)。In step 103, if the web page display interface contains advertisements, first URLs (Uniform Resource Locators, Uniform Resource Locators) corresponding to each advertisement are determined.

在步骤104中,屏蔽各所述第一URL的链接请求。In step 104, link requests of each of the first URLs are shielded.

在本实施例中,网页显示界面可以包括网页当前显示的内容。获取网页显示界面的图像内容可以包括,将当前网页截图作为网页显示界面的图像内容。In this embodiment, the web page display interface may include content currently displayed on the web page. Acquiring the image content of the webpage display interface may include taking a screenshot of the current webpage as the image content of the webpage display interface.

作为本实施例的一个示例,步骤102包括:将所述网页显示界面的图像内容输入广告检测器,以检测所述网页显示界面是否包含广告。其中,可以先将多个标注过广告的图片作为训练样本训练广告监测器,以使训练后的广告检测器可以检测网页显示界面是否包含广告,以及在网页显示界面包含广告的情况下检测网页显示界面中广告的数量和位置。需要说明的是,本领域技术人员可以根据需要选择合适算法训练广告检测器。例如,上述算法可以包括R-FCN(Object Detection via Region-based Fully Convolutional Networks,基于区域的全卷积网络目标检测)算法或YOLO(You only look once unified real-timeobject detection,单次视觉的一元化实时目标检测)算法等,在此不做限定。As an example of this embodiment, step 102 includes: inputting the image content of the webpage display interface into an advertisement detector, so as to detect whether the webpage display interface contains advertisements. Among them, a plurality of pictures marked with advertisements can be used as training samples to train the advertisement monitor, so that the trained advertisement detector can detect whether the webpage display interface contains advertisements, and detect the webpage display when the webpage display interface contains advertisements. The number and placement of ads in the interface. It should be noted that those skilled in the art can select an appropriate algorithm to train the advertisement detector as required. For example, the above algorithms may include R-FCN (Object Detection via Region-based Fully Convolutional Networks, region-based fully convolutional network target detection) algorithm or YOLO (You only look once unified real-time object detection, unified real-time Target detection) algorithms, etc., are not limited here.

本公开采用图像识别的方法识别网页显示界面中广告的位置,并根据该广告的位置和网页的HTML源码,获取并屏蔽广告对应的链接。本公开基于网页的显示内容分析屏蔽广告,能够更加灵活的适应网页中广告HTML源码的变化,由此准确检测和屏蔽网页中的广告,且不容易被破解。The disclosure adopts an image recognition method to identify the position of the advertisement in the display interface of the webpage, and obtains and blocks the link corresponding to the advertisement according to the position of the advertisement and the HTML source code of the webpage. The disclosure shields advertisements based on webpage display content analysis, and can more flexibly adapt to changes in HTML source codes of advertisements in webpages, thereby accurately detecting and shielding advertisements in webpages, and is not easy to be cracked.

图2是根据一示例性实施例示出的一种广告屏蔽方法中步骤103的流程图。如图2所示,步骤103包括步骤200和步骤201。Fig. 2 is a flow chart of step 103 in an advertisement blocking method according to an exemplary embodiment. As shown in FIG. 2 , step 103 includes step 200 and step 201 .

在步骤200中,根据所述广告检测器确定广告在网页中的显示位置。In step 200, the display position of the advertisement in the webpage is determined according to the advertisement detector.

在步骤201中,根据所述显示位置和网页的HTML源码确定所述广告对应的第一URL。In step 201, a first URL corresponding to the advertisement is determined according to the display location and the HTML source code of the webpage.

例如,可以根据所述广告检测器确定广告在网页中的显示位置,并通过开发者工具获取网页中各显示位置与网页HTML源码之间的对应关系。最后根据该对应关系和该显示位置确定广告所对应的第一URL。其中,本领域技术人员可以根据需要选择合适的工具获取网页中各显示位置与网页HTML源码之间的对应关系,在此不作限定。For example, the display position of the advertisement in the webpage can be determined according to the advertisement detector, and the corresponding relationship between each display position in the webpage and the HTML source code of the webpage can be obtained through a developer tool. Finally, the first URL corresponding to the advertisement is determined according to the corresponding relationship and the display position. Wherein, those skilled in the art can select an appropriate tool to obtain the corresponding relationship between each display position in the webpage and the HTML source code of the webpage according to needs, which is not limited here.

其中,本公开可以采取根据步骤200和步骤201分别确定网页显示界面的各广告对应的第一URL,也可以同时确定网页显示界面中每个广告对应的第一URL。在此不作限定。Wherein, the present disclosure may adopt step 200 and step 201 to respectively determine the first URL corresponding to each advertisement in the webpage display interface, or determine the first URL corresponding to each advertisement in the webpage display interface at the same time. It is not limited here.

本公开采用图像识别的方法识别网页显示界面中广告的位置,并根据该广告的位置和网页的HTML源码,获取并屏蔽广告对应的链接。本公开基于网页的显示内容分析屏蔽广告,能够更加灵活的适应网页中广告HTML源码的变化,由此准确检测和屏蔽网页中的广告,且不容易被破解。The disclosure adopts an image recognition method to identify the position of the advertisement in the display interface of the webpage, and obtains and blocks the link corresponding to the advertisement according to the position of the advertisement and the HTML source code of the webpage. The disclosure shields advertisements based on webpage display content analysis, and can more flexibly adapt to changes in HTML source codes of advertisements in webpages, thereby accurately detecting and shielding advertisements in webpages, and is not easy to be cracked.

图3是根据另一示例性实施例示出的一种广告屏蔽方法中步骤103的流程图。如图3所示,步骤103包括步骤300至步骤302。Fig. 3 is a flow chart of step 103 in an advertisement blocking method according to another exemplary embodiment. As shown in FIG. 3 , step 103 includes steps 300 to 302 .

在步骤300中,提取各广告的第一图像特征。In step 300, the first image features of each advertisement are extracted.

在步骤301中,比较所述第一图像特征和广告模板的第二图像特征的相似度。In step 301, the similarity between the first image feature and the second image feature of the advertisement template is compared.

在步骤302中,将相似度大于预设阈值的第二图像特征对应的URL作为第一URL。In step 302, the URL corresponding to the second image feature whose similarity is greater than a preset threshold is used as the first URL.

例如,若第一图像特征和第二图像特征为梯度图,则可以预存各广告模板的第二梯度图与各广告模板的URL的对应关系。提取各广告的第一梯度图,并将各第一梯度图与各对第二梯度图进行比较。如果第一梯度图与第二梯度图的相似度大于预设阈值(例如,预设阈值可以为80%),则将第二梯度图对应的URL作为第一URL。For example, if the first image feature and the second image feature are gradient maps, the corresponding relationship between the second gradient map of each advertisement template and the URL of each advertisement template may be prestored. A first gradient map for each advertisement is extracted, and each first gradient map is compared with each pair of second gradient maps. If the similarity between the first gradient map and the second gradient map is greater than a preset threshold (for example, the preset threshold may be 80%), the URL corresponding to the second gradient map is used as the first URL.

需要说明的是,本领域技术人员可以根据需要选择合适的参数类型作为第一、第二图像特征,例如,灰度图等,在此不做限定。It should be noted that those skilled in the art can select appropriate parameter types as the first and second image features according to needs, for example, grayscale images, etc., which are not limited here.

本公开基于网页的显示内容的图像特征分析屏蔽广告,能够更加灵活的适应网页中广告HTML源码的变化,由此准确检测和屏蔽网页中的广告,且不容易被破解。The disclosure shields advertisements based on the image feature analysis of the displayed content of the webpage, and can more flexibly adapt to changes in HTML source codes of advertisements in webpages, thereby accurately detecting and shielding advertisements in webpages, and is not easy to be cracked.

图4是根据一示例性实施例的一个示例示出的一种广告屏蔽方法的流程图。如图4所示,该方法包括步骤400和步骤401。Fig. 4 is a flow chart showing an example of an advertisement blocking method according to an exemplary embodiment. As shown in FIG. 4 , the method includes step 400 and step 401 .

在步骤400中,获取所述第一URL对应的网站包括的至少一个第二URL。In step 400, at least one second URL included in the website corresponding to the first URL is obtained.

在步骤401中,屏蔽各所述第二URL的链接请求。In step 401, link requests of each of the second URLs are shielded.

本公开可以根据第一URL获取第一URL所对应的网站包含的其他第二URL,进一步的屏蔽了广告对应的整个网站的URL链接请求,从广告网站源头入手,更加彻底的屏蔽广告。The disclosure can acquire other second URLs included in the website corresponding to the first URL according to the first URL, and further block the URL link request of the entire website corresponding to the advertisement, and start from the source of the advertisement website to more thoroughly block the advertisement.

在一种应用示例中,包括以下步骤:In an application example, the following steps are included:

步骤1、首先训练一个检测广告的位置的广告检测器。标注图片中广告的位置。然后采用基于目标检测的深度学习方法,训练出一个广告检测器。Step 1. First train an advertisement detector that detects the location of advertisements. Mark the location of the ad in the image. Then, an ad detector is trained using a deep learning method based on object detection.

步骤2、当用户打开一个新的网页时,首先获取到网页在屏幕上的显示内容(即网页显示界面),将这个显示内容的图像输入到广告检测器中。判断当前网页中是否含有广告。如果有,则确定广告的位置和个数。Step 2. When the user opens a new webpage, first obtain the displayed content of the webpage on the screen (ie, the webpage display interface), and input the image of the displayed content into the advertisement detector. Determine whether the current webpage contains advertisements. If so, determine the position and number of advertisements.

步骤3、确定出广告的数目和对应的位置之后,根据网页的HTML内容可以知道每个位置是由那条代码或者哪个URL产生的。因此根据广告的位置可以知道HTML是显示了哪个链接图片而产生的。屏蔽广告对应的URL链接请求即可。Step 3. After determining the number of advertisements and the corresponding positions, it can be known which code or which URL each position is generated from according to the HTML content of the webpage. Therefore, according to the position of the advertisement, it can be known which link picture is displayed in the HTML. Just block the URL link request corresponding to the advertisement.

更进一步,可以识别广告的内容或URL以确定是哪个网站产生的广告。然后去直接屏蔽掉该网站的所有URL链接请求。Still further, the content or URL of the ad can be identified to determine which website generated the ad. Then go directly to block all URL link requests of the website.

在一种可能的实现方式中,也可以根据广告的内容定位到HTML中的URL链接。首先对广告进行提取特征A(例如灰度图、梯度图),然后根据预设的广告模板提取广告模板(也可以称为候选广告)的URL对应的图像特征B,比对A和B之间的相似度,如果相似度大于设定阈值,则认为该图像特征B对应的URL为广告的URL。屏蔽该URL的链接请求。In a possible implementation manner, the URL link in the HTML may also be located according to the content of the advertisement. First extract feature A (such as grayscale image, gradient image) of the advertisement, and then extract the image feature B corresponding to the URL of the advertisement template (also called candidate advertisement) according to the preset advertisement template, and compare between A and B If the similarity is greater than the set threshold, the URL corresponding to the image feature B is considered to be the URL of the advertisement. Block link requests for this URL.

在一种可能的实现方式中,可以在用户打开新网页后,每隔一段时间就获取屏幕图像内容,并进行检测广告。当检测到当前屏幕中广告数目等于零,后续就可以不再检测这个网页了。In a possible implementation manner, after the user opens a new webpage, the content of the screen image may be obtained at regular intervals, and advertisements may be detected. When it is detected that the number of advertisements in the current screen is equal to zero, the web page may not be detected in the future.

本公开基于网页的显示内容中广告的位置和图像特征来分析屏蔽广告,能够更加灵活的适应网页中广告HTML源码的变化,由此准确检测和屏蔽网页中的广告,且不容易被破解。The disclosure analyzes and blocks advertisements based on the position and image features of advertisements in the display content of webpages, and can more flexibly adapt to changes in HTML source codes of advertisements in webpages, thereby accurately detecting and blocking advertisements in webpages, and is not easy to be cracked.

图5是根据一示例性实施例示出的一种广告屏蔽装置的框图。参照图5,该装置包括:Fig. 5 is a block diagram of an advertisement blocking device according to an exemplary embodiment. Referring to Figure 5, the device includes:

监听模块41,用于监听当前页面是否为网页显示界面。The monitoring module 41 is used to monitor whether the current page is a webpage display interface.

获取模块42,用于当监听到当前页面为网页显示界面时,获取所述网页显示界面的图像内容。The acquiring module 42 is configured to acquire the image content of the webpage display interface when it is detected that the current page is a webpage display interface.

判断模块43,用于根据所述网页显示界面的图像内容,判断所述网页显示界面是否包含广告。The judging module 43 is configured to judge whether the webpage display interface contains advertisements according to the image content of the webpage display interface.

确定模块44,用于在所述网页显示界面包含广告的情况下,确定各广告所对应的各第一URL。The determining module 44 is configured to determine the first URLs corresponding to the advertisements when the web page display interface contains advertisements.

第一屏蔽模块45,用于屏蔽各所述第一URL的链接请求。The first shielding module 45 is configured to shield link requests of each of the first URLs.

本公开采用图像识别的方法识别网页显示界面中广告的位置,并根据该广告的位置和网页的HTML源码,获取并屏蔽广告对应的链接。本公开基于网页的显示内容分析屏蔽广告,能够更加灵活的适应网页中广告HTML源码的变化,由此准确检测和屏蔽网页中的广告,且不容易被破解。The disclosure adopts an image recognition method to identify the position of the advertisement in the display interface of the webpage, and obtains and blocks the link corresponding to the advertisement according to the position of the advertisement and the HTML source code of the webpage. The disclosure shields advertisements based on webpage display content analysis, and can more flexibly adapt to changes in HTML source codes of advertisements in webpages, thereby accurately detecting and shielding advertisements in webpages, and is not easy to be cracked.

图6是根据一示例性实施例的一个示例示出的一种广告屏蔽装置的框图。为了便于说明,在图6中仅展示出了与本实施例相关的部分。图6中标号与图5相同的组件具有相同的功能,为了简明起见,省略对这些组件的详细说明。如图6所示,Fig. 6 is a block diagram showing an advertisement blocking device according to an example of an exemplary embodiment. For ease of description, only parts related to this embodiment are shown in FIG. 6 . Components with the same numbers in FIG. 6 as those in FIG. 5 have the same functions, and for the sake of brevity, detailed descriptions of these components are omitted. As shown in Figure 6,

对于上述装置,在一种可能的实现方式中,所述判断模43块包括:For the above device, in a possible implementation, the judging module 43 includes:

判断子模块431,用于将所述网页显示界面的图像内容输入广告检测器,以检测所述网页显示界面是否包含广告。The judging sub-module 431 is configured to input the image content of the webpage display interface into the advertisement detector, so as to detect whether the webpage display interface contains advertisements.

对于上述装置,在一种可能的实现方式中,所述确定模块44包括:For the above device, in a possible implementation manner, the determining module 44 includes:

第一确定子模块441,用于根据所述广告检测器确定广告在网页中的显示位置。The first determination sub-module 441 is configured to determine the display position of the advertisement in the webpage according to the advertisement detector.

第二确定子模块442,用于根据所述显示位置和网页的HTML源码确定所述广告对应的第一URL。The second determination sub-module 442 is configured to determine the first URL corresponding to the advertisement according to the display location and the HTML source code of the webpage.

对于上述装置,在一种可能的实现方式中,所述确定模块42包括:For the above device, in a possible implementation manner, the determining module 42 includes:

第三确定子模块443,用于提取各广告的第一图像特征。The third determination sub-module 443 is used to extract the first image features of each advertisement.

第四确定子模块444,用于比较所述第一图像特征和广告模板的第二图像特征的相似度。The fourth determination sub-module 444 is configured to compare the similarity between the first image feature and the second image feature of the advertisement template.

第五确定子模块445,用于将相似度大于预设阈值的第二图像特征对应的URL作为第一URL。The fifth determination sub-module 445 is configured to use the URL corresponding to the second image feature whose similarity is greater than a preset threshold as the first URL.

对于上述装置,在一种可能的实现方式中,还包括:For the above device, in a possible implementation manner, it also includes:

获取模块46,用于获取所述第一URL对应的网站包括的至少一个第二URL。An obtaining module 46, configured to obtain at least one second URL included in the website corresponding to the first URL.

第二屏蔽模块47,用于屏蔽各所述第二URL的链接请求。The second shielding module 47 is configured to shield the link requests of each of the second URLs.

本公开基于网页的显示内容中广告的位置和图像特征来分析屏蔽广告,能够更加灵活的适应网页中广告HTML源码的变化,由此准确检测和屏蔽网页中的广告,且不容易被破解。The disclosure analyzes and blocks advertisements based on the position and image features of advertisements in the display content of webpages, and can more flexibly adapt to changes in HTML source codes of advertisements in webpages, thereby accurately detecting and blocking advertisements in webpages, and is not easy to be cracked.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

图7是根据一示例性实施例示出的一种广告屏蔽装置的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 7 is a block diagram of an advertisement blocking device according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图7,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。7, device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816 .

处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .

存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件806为装置800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to the various components of the device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 800 .

多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC) configured to receive external audio signals when the device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800 . For example, the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor component 814 can also detect a change in the position of the device 800 or a component of the device 800 , the presence or absence of user contact with the device 800 , the device 800 orientation or acceleration/deceleration and the temperature change of the device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the apparatus 800 and other devices. The device 800 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 800 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which can be executed by the processor 820 of the device 800 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

图8是根据一示例性实施例示出的一种广告屏蔽装置的框图。例如,装置1900可以被提供为一服务器。参照图8,装置1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法……Fig. 8 is a block diagram of an advertisement blocking device according to an exemplary embodiment. For example, apparatus 1900 may be provided as a server. Referring to FIG. 8 , apparatus 1900 includes processing component 1922 , which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922 , such as application programs. The application programs stored in memory 1932 may include one or more modules each corresponding to a set of instructions. Additionally, the processing component 1922 is configured to execute instructions to perform the method described above...  

装置1900还可以包括一个电源组件1926被配置为执行装置1900的电源管理,一个有线或无线网络接口1950被配置为将装置1900连接到网络,和一个输入输出(I/O)接口1958。装置1900可以操作基于存储在存储器1932的操作系统,例如WindowsServerTM,MacOSXTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 1900 may also include a power component 1926 configured to perform power management of device 1900 , a wired or wireless network interface 1950 configured to connect device 1900 to a network, and an input-output (I/O) interface 1958 . The apparatus 1900 can operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1932,上述指令可由装置1900的处理组件1922执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1932 including instructions, which can be executed by the processing component 1922 of the apparatus 1900 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

  1. A kind of 1. advertisement screen method, it is characterised in that including:
    Monitor whether current page is web displaying interface;
    When it is web displaying interface to listen to current page, the picture material at the web displaying interface is obtained;
    According to the picture material at the web displaying interface, judge whether the web displaying interface includes advertisement;
    In the case of including advertisement at the web displaying interface, each first URL corresponding to each advertisement is determined;
    Shield the linking request of each first URL.
  2. 2. according to the method described in claim 1, it is characterized in that, according to the picture material at the web displaying interface, judge Whether the web displaying interface includes advertisement, including:
    The picture material at the web displaying interface is inputted into commercial block detectors, to detect whether the web displaying interface includes Advertisement.
  3. 3. according to the method described in claim 2, it is characterized in that, determine each advertisement corresponding to each first URL, including:
    Display location of the advertisement in webpage is determined according to the commercial block detectors;
    Corresponding first URL of the advertisement is determined according to the html source code of the display location and webpage.
  4. 4. according to the method described in claim 2, it is characterized in that, determine each advertisement corresponding to each first URL, including:
    Extract the first characteristics of image of each advertisement;
    Compare the similarity of the second characteristics of image of described first image feature and advertisement formwork;
    Similarity is more than the corresponding URL of the second characteristics of image of predetermined threshold value as the first URL.
  5. 5. method according to any one of claim 1 to 4, it is characterised in that further include:
    Obtain at least one 2nd URL that the corresponding websites of the first URL include;
    Shield the linking request of each 2nd URL.
  6. A kind of 6. advertisement screening arrangement, it is characterised in that including:
    Module is monitored, for monitoring whether current page is web displaying interface;
    Acquisition module, for when it is web displaying interface to listen to current page, obtaining the image at the web displaying interface Content;
    Judgment module, for the picture material according to the web displaying interface, judges whether the web displaying interface includes Advertisement;
    Determining module, in the case of including advertisement at the web displaying interface, determines each first corresponding to each advertisement URL;
    First shroud module, for shielding the linking request of each first URL.
  7. 7. device according to claim 6, it is characterised in that the judgment module includes:
    Judging submodule, for the picture material at the web displaying interface to be inputted commercial block detectors, to detect the webpage Whether display interface includes advertisement.
  8. 8. device according to claim 7, it is characterised in that the determining module includes:
    First determination sub-module, for determining display location of the advertisement in webpage according to the commercial block detectors;
    Second determination sub-module, for determining the advertisement corresponding first according to the html source code of the display location and webpage URL。
  9. 9. device according to claim 7, it is characterised in that the determining module includes:
    3rd determination sub-module, for extracting the first characteristics of image of each advertisement;
    4th determination sub-module, the similarity of the second characteristics of image for comparing described first image feature and advertisement formwork;
    5th determination sub-module, for similarity to be more than to the corresponding URL of the second characteristics of image of predetermined threshold value as first URL。
  10. 10. the device according to any one of claim 6 to 9, it is characterised in that further include:
    Acquisition module, at least one 2nd URL included for obtaining the corresponding websites of the first URL;
    Secondary shielding module, for shielding the linking request of each 2nd URL.
  11. A kind of 11. advertisement screening arrangement, it is characterised in that including:
    Processor;
    For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:In perform claim requirement 1 to 5 the step of any one the method.
  12. 12. a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is performed by processor, makes Processor is able to carry out according in claim 1 to 5 the step of any one the method.
CN201711226303.5A 2017-11-29 2017-11-29 Advertisement shields method and device Pending CN108009232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711226303.5A CN108009232A (en) 2017-11-29 2017-11-29 Advertisement shields method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711226303.5A CN108009232A (en) 2017-11-29 2017-11-29 Advertisement shields method and device

Publications (1)

Publication Number Publication Date
CN108009232A true CN108009232A (en) 2018-05-08

Family

ID=62054459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711226303.5A Pending CN108009232A (en) 2017-11-29 2017-11-29 Advertisement shields method and device

Country Status (1)

Country Link
CN (1) CN108009232A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457507A (en) * 2019-07-25 2019-11-15 腾讯科技(武汉)有限公司 A kind of picture recognition processing method, device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761205A (en) * 2005-11-18 2006-04-19 郑州金惠计算机系统工程有限公司 System for detecting eroticism and unhealthy images on network based on content
CN103886088A (en) * 2014-03-28 2014-06-25 北京金山网络科技有限公司 Method and device for intercepting advertisements in webpage
CN104462152A (en) * 2013-09-23 2015-03-25 深圳市腾讯计算机系统有限公司 Webpage recognition method and device
CN104778405A (en) * 2015-03-11 2015-07-15 小米科技有限责任公司 Method and device for blocking advertisements
WO2015109831A1 (en) * 2014-01-24 2015-07-30 贝壳网际(北京)安全技术有限公司 Webpage advertisement filtering method and apparatus
CN104980772A (en) * 2014-04-14 2015-10-14 北京酷云互动科技有限公司 Product placement monitoring method and monitoring device
US20160085423A1 (en) * 2014-09-19 2016-03-24 Yahoo Japan Corporation Information display apparatus, distribution apparatus, information display method, and non-transitory computer readable storage medium
CN106055574A (en) * 2016-05-19 2016-10-26 微梦创科网络科技(中国)有限公司 Method and device for recognizing illegal URL
CN106202101A (en) * 2015-05-06 2016-12-07 腾讯科技(深圳)有限公司 Advertisement recognition method and device
CN106844731A (en) * 2017-02-10 2017-06-13 宇龙计算机通信科技(深圳)有限公司 Advertisement shields method and system
US20170269893A1 (en) * 2016-03-16 2017-09-21 Google Inc. Remote rendering of locally displayed content

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761205A (en) * 2005-11-18 2006-04-19 郑州金惠计算机系统工程有限公司 System for detecting eroticism and unhealthy images on network based on content
CN104462152A (en) * 2013-09-23 2015-03-25 深圳市腾讯计算机系统有限公司 Webpage recognition method and device
WO2015109831A1 (en) * 2014-01-24 2015-07-30 贝壳网际(北京)安全技术有限公司 Webpage advertisement filtering method and apparatus
CN103886088A (en) * 2014-03-28 2014-06-25 北京金山网络科技有限公司 Method and device for intercepting advertisements in webpage
CN104980772A (en) * 2014-04-14 2015-10-14 北京酷云互动科技有限公司 Product placement monitoring method and monitoring device
US20160085423A1 (en) * 2014-09-19 2016-03-24 Yahoo Japan Corporation Information display apparatus, distribution apparatus, information display method, and non-transitory computer readable storage medium
CN104778405A (en) * 2015-03-11 2015-07-15 小米科技有限责任公司 Method and device for blocking advertisements
CN106202101A (en) * 2015-05-06 2016-12-07 腾讯科技(深圳)有限公司 Advertisement recognition method and device
US20170269893A1 (en) * 2016-03-16 2017-09-21 Google Inc. Remote rendering of locally displayed content
CN106055574A (en) * 2016-05-19 2016-10-26 微梦创科网络科技(中国)有限公司 Method and device for recognizing illegal URL
CN106844731A (en) * 2017-02-10 2017-06-13 宇龙计算机通信科技(深圳)有限公司 Advertisement shields method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NICHOLAS KUSHMERICK: "Learning to remove internet advertisements", 《PROCEEDINGS OF THE 3RD ANNUAL CONFERENCE ON AUTONOMOUS AGENTS. NEW YORK: ACM》 *
张乐: "如何用深度学习识别网络欺诈?", 《HTTPS://WWW.AFENXI.COM/20452.HTML》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457507A (en) * 2019-07-25 2019-11-15 腾讯科技(武汉)有限公司 A kind of picture recognition processing method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
RU2631770C2 (en) Method and device for return to previously viewed page control
US10949490B2 (en) Method and apparatus for displaying webpage content
CN104978267B (en) webpage test method, terminal and server
CN105956026B (en) Webpage rendering method and device
RU2610245C2 (en) Method and device for web page encode identification
CN107239527A (en) Web page access method and device
US11004163B2 (en) Terminal-implemented method, server-implemented method and terminal for acquiring certification document
CN107229711A (en) Webpage display process and device
CN108764003A (en) Image identification method and device
CN103970841A (en) Label management method and device
CN105630780A (en) Webpage information processing method and apparatus
CN107291465A (en) page display method, device and storage medium
CN105956067A (en) Resource searching method and apparatus
CN108733397B (en) Update state determination method, device and storage medium
CN107220371A (en) Page display method, device and storage medium
EP3057006A1 (en) Method and device of filtering address
CN105933502A (en) Method and device for marking message to be in read status
CN105976201B (en) Purchase behavior monitoring method and device for e-commerce system
CN111611470B (en) Data processing method and device and electronic equipment
CN110147817B (en) Training data set generation method and device
CN107343104A (en) Handle the method, apparatus and terminal device of Information on Collection
CN106209889B (en) Detect the method and device that information is kidnapped in webpage
CN110413169A (en) An information display method, device and medium
CN111382061A (en) Test method, test device, test medium and electronic equipment
CN107423324A (en) Access method, device and the equipment of webpage

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180508