Data processing method, device and electronic equipment

The method enhances the accuracy of search result page detection by using configuration information and similarity comparisons between target and reference images, addressing the inconsistency issues in existing detection methods.

CN111611470BActive Publication Date: 2024-12-17BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910134019.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-02-22
Publication Date
2024-12-17
Estimated Expiration
2039-04-20

AI Technical Summary

Technical Problem

Current methods for detecting the page style of search results pages suffer from low accuracy due to inconsistent styles across different queries and times, leading to false alarms and inefficiencies.

Method used

A data processing method that involves obtaining configuration information, determining the search result page based on the web page address and category identifier, extracting a target image, and performing similarity comparisons with pre-stored reference images to determine if the target image meets the preset conditions.

Benefits of technology

This method improves the accuracy of the detection of the search result page by comparing the target image with the target image with the target image and the reference image, and pushing prompt information based on the similarity comparison result.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111611470B_ABST
    Figure CN111611470B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a data processing method, device and electronic device, wherein the method comprises: obtaining configuration information of a search result page to be detected, wherein the configuration information comprises a web page address of the search result page to be detected and a category identifier of a search result item to be detected in the search result page to be detected; determining the search result page to be detected based on the web page address, extracting a target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected, wherein the target image is determined based on a display area of ​​the search result item to be detected corresponding to the category identifier; performing a similarity comparison between the target image and a corresponding pre-stored reference image, and pushing prompt information based on the similarity comparison result; and then removing the influence of the image comparison result of the search result item that does not need to be detected on the comparison result by comparing the image of a single search result item, thereby improving the detection accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data processing method, device and electronic equipment. Background Art

[0002] With the continuous development of Internet technology and search engine technology, users can query information through search platforms. For example, after a user enters a search term in a search platform and performs a search operation, the search platform can display the search results on a search results page, and the user can select any search result on the search results page to enter the corresponding web page for browsing.

[0003] Among them, the search results page displayed by the search platform may have a problem of disordered page style. The current way to detect whether the page style of the search results page is disordered is to detect the entire search results page. Since the results of some query words are very effective (such as news query words and weather query words), the page styles corresponding to one or more search results in the search results page corresponding to these query words may be different at different times; therefore, when the search results page is detected at different times, one or more areas with disordered styles may be detected, resulting in false alarms and low detection accuracy. Summary of the invention

[0004] An embodiment of the present invention provides a data processing method to improve the accuracy of page detection.

[0005] Correspondingly, an embodiment of the present invention further provides a data processing device and an electronic device to ensure the implementation and application of the above method.

[0006] In order to solve the above problems, an embodiment of the present invention discloses a data processing method, which specifically includes: obtaining configuration information of a search result page to be detected, the configuration information including the web page address of the search result page to be detected and the category identifier of the search result item to be detected in the search result page to be detected; determining the search result page to be detected based on the web page address, extracting a target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected, the target image being determined based on a display area of ​​the search result item to be detected corresponding to the category identifier; performing a similarity comparison between the target image and a corresponding pre-stored reference image, and pushing prompt information based on the similarity comparison result.

[0007] Optionally, the configuration information further includes a terminal identifier, and determining the search result page to be detected based on the web page address includes: opening the web page address and displaying the search result page to be detected according to a page style corresponding to the terminal identifier.

[0008] Optionally, comparing the target image with a corresponding pre-stored reference image for similarity includes: comparing the target image with a pre-stored reference image corresponding to the terminal identifier for similarity.

[0009] Optionally, extracting the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected includes: searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page; and taking a screenshot of a display area corresponding to the target area information in the search result page to be detected based on the target area information to obtain a target image.

[0010] Optionally, extracting the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected includes: obtaining the page image corresponding to the search result page to be detected; searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page; and capturing the target image from the page image based on the target area information.

[0011] Optionally, the method of searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page includes: determining area information of an outermost display area layer of the search result page corresponding to the search result item to be detected by the category identifier based on the category identifier; and determining the area information of the outermost display area layer as the target area information corresponding to the search result item to be detected by the category identifier in the search result page.

[0012] Optionally, the target area information includes: position information corresponding to the upper left corner position point of the outermost display area layer, and the size of the outermost display area layer.

[0013] Optionally, the reference image includes: a baseline style image and a fault-tolerant style image; the similarity comparison between the target image and the corresponding pre-stored reference image includes: comparing the target image with the corresponding baseline style image to determine a first similarity; if the first similarity is lower than a similarity threshold, comparing the target image with the corresponding fault-tolerant style image to determine a second similarity.

[0014] An embodiment of the present invention also discloses a data processing device, which specifically includes: an information acquisition module, used to obtain configuration information of the search result page to be detected, the configuration information including the web page address of the search result page to be detected and the category identifier of the search result item to be detected in the search result page to be detected; an image extraction module, used to determine the search result page to be detected based on the web page address, and extract a target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected, the target image is determined based on the display area of ​​the search result item to be detected corresponding to the category identifier; an image comparison module, used to compare the similarity between the target image and the corresponding pre-stored reference image, and push prompt information based on the similarity comparison result.

[0015] Optionally, the configuration information further includes a terminal identifier, and the image extraction module includes: a page display submodule, configured to open the web page address and display the search result page to be detected according to a page style corresponding to the terminal identifier.

[0016] Optionally, the image comparison module includes: a first similarity comparison submodule, configured to perform a similarity comparison between the target image and a pre-stored reference image corresponding to the terminal identifier.

[0017] Optionally, the image extraction module includes: an information search submodule, used to search for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page; and a first extraction submodule, used to take a screenshot of a display area corresponding to the target area information in the search result page to be detected based on the target area information to obtain a target image.

[0018] Optionally, the image extraction module includes: an image acquisition submodule, used to acquire the page image corresponding to the search result page to be detected; an information search submodule, used to search for a mapping relationship based on the category identifier, and determine the target area information of the search result item to be detected in the search result page; and a second extraction submodule, used to capture the target image from the page image based on the target area information.

[0019] Optionally, the information search submodule is used to search for a mapping relationship based on the category identifier to determine the area information of the outermost display area layer of the search result page corresponding to the search result item to be detected by the category identifier; and determine the area information of the outermost display area layer as the target area information corresponding to the search result item to be detected corresponding to the category identifier in the search result page.

[0020] Optionally, the target area information includes: position information corresponding to the upper left corner position point of the outermost display area layer, and the size of the outermost display area layer.

[0021] Optionally, the reference image includes: a baseline style image and a fault-tolerant style image; the image comparison module includes: a second similarity comparison submodule, used to perform a similarity comparison between the target image and the corresponding baseline style image to determine a first similarity; if the first similarity is lower than a similarity threshold, then performing a similarity comparison between the target image and the corresponding fault-tolerant style image to determine a second similarity.

[0022] An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute a data processing method as described in any one of the embodiments of the present invention.

[0023] An embodiment of the present invention also discloses an electronic device, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: obtaining configuration information of a search result page to be detected, wherein the configuration information includes a web page address of the search result page to be detected and a category identifier of the search result item to be detected in the search result page to be detected; determining the search result page to be detected based on the web page address, extracting a target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected, wherein the target image is determined based on a display area of ​​the search result item to be detected corresponding to the category identifier; performing a similarity comparison between the target image and a corresponding pre-stored reference image, and pushing prompt information based on the similarity comparison result.

[0024] Optionally, the configuration information further includes a terminal identifier, and determining the search result page to be detected based on the web page address includes: opening the web page address and displaying the search result page to be detected according to a page style corresponding to the terminal identifier.

[0025] Optionally, comparing the target image with a corresponding pre-stored reference image for similarity includes: comparing the target image with a pre-stored reference image corresponding to the terminal identifier for similarity.

[0026] Optionally, extracting the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected includes: searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page; and taking a screenshot of a display area corresponding to the target area information in the search result page to be detected based on the target area information to obtain a target image.

[0027] Optionally, extracting the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected includes: obtaining the page image corresponding to the search result page to be detected; searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page; and capturing the target image from the page image based on the target area information.

[0028] Optionally, the method of searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page includes: determining area information of an outermost display area layer of the search result page corresponding to the search result item to be detected by the category identifier based on the category identifier; and determining the area information of the outermost display area layer as the target area information corresponding to the search result item to be detected by the category identifier in the search result page.

[0029] Optionally, the target area information includes: position information corresponding to the upper left corner position point of the outermost display area layer, and the size of the outermost display area layer.

[0030] Optionally, the reference image includes: a baseline style image and a fault-tolerant style image; the similarity comparison between the target image and the corresponding pre-stored reference image includes: comparing the target image with the corresponding baseline style image to determine a first similarity; if the first similarity is lower than a similarity threshold, comparing the target image with the corresponding fault-tolerant style image to determine a second similarity.

[0031] The embodiments of the present invention include the following advantages:

[0032] In an embodiment of the present invention, configuration information including a web page address and a category identifier can be obtained, and then a search result page can be determined based on the web page address, and a target image corresponding to the category identifier in the search result page can be extracted to achieve extraction of a target image corresponding to a single search result item; then a similarity comparison is performed between the target image of the single search result item and a reference image, and prompt information is pushed based on the similarity comparison result; and further, by comparing the image of the single search result item, the influence of the image comparison result of the search result item whose style does not need to be detected is removed, thereby improving detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 is a flow chart of steps of an embodiment of a data processing method of the present invention;

[0034] Figure 2 is a flowchart of steps of an optional embodiment of a data processing method of the present invention;

[0035] Figure 3 is a structural block diagram of an embodiment of a data processing device of the present invention;

[0036] Figure 4 is a structural block diagram of an optional embodiment of a data processing device of the present invention;

[0037] Figure 5 A structural block diagram of an electronic device for data processing according to an exemplary embodiment;

[0038] Figure 6 It is a structural schematic diagram of an electronic device for data processing according to another exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0040] One of the core concepts of the embodiments of the present invention is that the search result page can be detected based on the comparison results of a single search result item in the search result page; thereby, the influence of the comparison of search result items that do not need to detect page styles on the results can be removed, thereby improving the accuracy of page detection.

[0041] Reference Figure 1 , shows a flow chart of steps of a data processing method embodiment of the present invention, which may specifically include the following steps:

[0042] Step 102: Acquire configuration information of the search result page to be detected, wherein the configuration information includes the webpage address of the search result page to be detected and the category identifier of the search result item to be detected in the search result page to be detected.

[0043] Step 104: determine the search result page to be detected according to the webpage address, and extract the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected, wherein the target image is determined according to the display area of ​​the search result item to be detected corresponding to the category identifier.

[0044] Step 106: perform a similarity comparison between the target image and a corresponding pre-stored reference image, and push prompt information based on the similarity comparison result.

[0045] Wherein, the corresponding pre-stored reference image is pre-stored.

[0046] In an embodiment of the present invention, when a search result page is in an online environment (which may refer to an environment accessible to a user), the search result page may be detected; wherein, this may be achieved by detecting the page style of the search result item in the search result page. For the convenience of subsequent description, the search result page that needs to be detected may be referred to as a search result page to be detected, and the search result item whose page style needs to be detected in the search result page to be detected may be referred to as a search result item to be detected; wherein, a search result page to be detected may include at least one search result item to be detected, and each search result item to be detected has a corresponding category identifier, the category identifier is used to uniquely identify a search result item to be detected in the search result page, and the category identifier may identify the position of the search result item to be detected in the search result page (i.e., the number of the search result item).

[0047] In an embodiment of the present invention, when the search result page to be detected is in an online environment, the current image of the search result item to be detected can be compared with the reference image corresponding to the search result item to detect the page style of the search result page to be detected; wherein, the reference image can be acquired and stored in advance; the image of the search result item to be detected can refer to the image of the corresponding display area of ​​the search result item to be detected in the search result page to be detected.

[0048] In an embodiment of the present invention, a method for obtaining a reference image corresponding to a search result item to be detected may be to determine a web page address corresponding to the search result page to be detected, and a category identifier corresponding to the search result item to be detected; and then the configuration may be performed in a test tool. After the user performs a detection operation, the test tool may obtain an image of the search result item to be detected corresponding to the category identifier from the search result page to be detected corresponding to the web page address; at this time, the search result page to be detected may be in an online environment or in a test environment (which may refer to an environment verified before going online). If, based on the image of the search result item to be detected, it is determined that the page style of the search result item to be detected meets a preset condition, the image may be determined as a reference image, and then the category identifier of the search result item to be detected is added to the reference image and stored. Among them, the preset condition may be set according to actual needs, for example, the page style of the search result page to be detected meets product requirements.

[0049] Of course, when it is necessary to detect the page styles of multiple search result items in a search result page to be detected, the search result items to be detected may include multiple ones; then, through the testing tool, combined with the category identification of each search result item to be detected, the reference image corresponding to each search result item to be detected is obtained, wherein each reference image corresponds to the category identification of the corresponding search result item to be detected.

[0050] After obtaining the reference image, the page style of the search result item to be detected corresponding to the category identifier in the search result page to be detected corresponding to the webpage address in the online environment can be periodically detected: whenever the preset period is reached, the configuration information can be obtained, and the configuration information can include: the webpage address of the search result page to be detected and the category identifier of the search result item to be detected in the search result page to be detected. Then, the search result page to be detected corresponding to the webpage address can be opened, and the display area of ​​the corresponding search result item to be detected in the search result page to be detected can be determined according to the category identifier, and then the image corresponding to the display area can be extracted, which can be called the target image. Among them, the preset period can be set according to the demand, and the embodiment of the present invention does not limit this. Then, the target image and the reference image can be compared (wherein, the size of the target image and the reference image can be the same) to determine the similarity between the two; for example, the difference between the pixel values ​​of the target image and the reference image can be calculated, and the similarity between the target image and the reference image can be determined according to the difference. Then, a prompt message is pushed to the background maintenance personnel based on the similarity. For example, when the similarity is lower than the similarity threshold (wherein the similarity threshold can be set according to actual needs, such as 0.95), an abnormal status message such as an alarm message such as "display abnormality" is pushed; for example, when the similarity is higher than the similarity threshold, a normal status message such as "display normal" can be pushed. Of course, the message can be not pushed, which can be set according to specific needs.

[0051] In an embodiment of the present invention, if the search result items to be detected include multiple items, the category identifiers in the configuration information may include multiple items, and the target image corresponding to each category identifier may be extracted subsequently; then, for each category identifier, the target image corresponding to the category identifier is compared with the reference image for similarity, and prompt information is pushed based on the similarity comparison result.

[0052] In summary, in an embodiment of the present invention, the web page address of the search result page to be detected and the category identifier of the search result item to be detected in the search result page to be detected can be obtained, and then the search result page to be detected can be determined based on the web page address, and the target image of the search result item to be detected corresponding to the category identifier can be extracted from the search result page to be detected, and then the target image corresponding to the single search result item can be extracted; then the target image and the corresponding pre-stored reference image are compared for similarity, and prompt information is pushed based on the similarity comparison result; and then, by comparing the single search result item, the influence of the search result items that do not need to be detected on the comparison result is removed, thereby improving the accuracy of page detection.

[0053] Different terminals may display the same search result page in different styles, so the images corresponding to the search result items to be detected in the search result pages to be detected of different terminals may be detected to further improve the accuracy of page detection.

[0054] Reference Figure 2 , shows a flow chart of steps of an optional embodiment of a data processing method of the present invention, which may specifically include the following steps:

[0055] Step 202: Acquire configuration information of the search result page to be detected, wherein the configuration information includes the webpage address of the search result page to be detected, the category identifier of the search result item to be detected in the search result page to be detected, and the terminal identifier.

[0056] Wherein, the terminal identifier may be an identifier corresponding to the terminal that displays the search result page to be detected. In the embodiment of the present invention, since the page styles displayed by different terminals for the same search result may be different, while predetermining the search result page to be detected that needs to detect the page style and the search result item to be detected in the search result page to be detected, the identifier corresponding to the terminal that displays the search result page to be detected may also be determined. Then, the web page address corresponding to the search result page to be detected, the category identifier corresponding to the search result item to be detected, and the terminal identifier corresponding to the terminal are obtained; and the web page address, category identifier and terminal identifier are used in the test tool for configuration to obtain the reference image corresponding to the same search result item to be detected in the same search result page to be detected when displayed in different terminals. Wherein, the terminal identifier may be terminal operating system information such as Android system, IOS system, Windows system, etc.; it may also be terminal model information, etc., which is not limited in the embodiment of the present invention.

[0057] In an embodiment of the present invention, the testing tool may include the following functions: opening a search results page (such as calling a headless browser to open a search results page), extracting an image of a search result item from the search results page, automatically comparing the extracted target image with a reference image, and pushing a prompt message based on the comparison result, etc. The embodiment of the present invention does not limit this; such as a browser automation testing tool. In one example of the present invention, a testing tool may include multiple configuration items such as Url (Uniform Resource Locator), Selector, User-Agent, Host, other parameters, image address, threshold and remarks; wherein, the Url configuration item is used to configure the web page address, the Selector configuration item is used to configure the category identifier, the User-Agent configuration item is used to configure the terminal identifier, the Host configuration item is used to configure the reference image acquisition environment (which may be a test environment or an online environment, for example, when this item is not configured, the reference image is acquired in the online environment), other parameter configuration items may be used to configure parameters related to the web page address such as cookie page parameters (wherein, parameters related to the web page address may also be configured in the Url configuration item, which is not limited in the embodiment of the present invention), the image address configuration item is used to configure the storage address of the reference image, the threshold configuration item is used to configure the similarity threshold, and the remarks configuration item is used to configure precautions such as time, etc. After the configuration is completed, the user can perform a detection operation, which may include two operations: clicking a preview button and clicking a save button; wherein, after the user clicks the preview button, a corresponding image can be generated and displayed in the configuration interface. If the page style corresponding to the search result item to be detected is determined to meet the preset conditions based on the image, the save button can be clicked to determine the image as a reference image, and then the corresponding category identifier and terminal identifier are added to the reference image, and then the reference image is saved to the image address configured above, and then the detection operation is performed periodically. wherein, each reference image corresponding to the search result item to be detected for each category identifier in each search result page to be detected may include multiple reference images, and each reference image has not only a corresponding category identifier, but also a corresponding terminal identifier.

[0058] Step 204: open the webpage address, and display the search result page to be detected according to the page style corresponding to the terminal identifier.

[0059] Step 206: extracting a target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected.

[0060] During the detection process, the test tool can open the web page address and display the search result page to be detected according to the page style corresponding to the terminal identifier; wherein, in an optional example, the test tool can send a call instruction to the headless browser, and the call instruction can include the web page address and the terminal identifier; after receiving the call instruction, the headless browser can obtain the web page address from the call instruction, and then open the web page corresponding to the web page address (i.e., the search result page to be detected), and display the corresponding search result page to be detected according to the page style corresponding to the terminal identifier. Then the test tool can extract the target image based on the category identifier and the search result page to be detected.

[0061] In one example of the present invention, a method for extracting a target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected may be to directly obtain the target image from the search result page to be detected; specifically: the mapping relationship may be searched based on the category identifier to determine the target area information of the search result item to be detected in the search result page; based on the target area information, a screenshot may be taken of the display area corresponding to the target area information in the search result page to be detected to obtain the target image. Among them, after opening the search result page to be detected corresponding to the webpage address, the display area corresponding to the search result item to be detected corresponding to the category identifier in the search result page may be determined; then a screenshot may be taken of the display area from the search result page to be detected to obtain the target image.

[0062] The searching of the mapping relationship based on the category identifier to determine the target area information corresponding to the search result item to be detected in the search result page can be implemented by the following sub-steps 62 to 64:

[0063] Sub-step 62: searching for a mapping relationship based on the category identifier to determine the area information of the outermost display area layer of the search result page corresponding to the search result item to be detected by the category identifier.

[0064] Sub-step 64: determining the area information of the outermost display area layer as the target area information corresponding to the search result item to be detected corresponding to the category identifier in the search result page.

[0065] The target area information may include the position information of the upper left corner point of the outermost display area layer of the search result item to be detected, and the size of the outermost display area layer of the search result item to be detected, such as length and width.

[0066] In one example of the present invention, another method of obtaining a target image of a search result item to be detected corresponding to the category identifier in the search result page to be detected may be to capture the target image from the page image corresponding to the search result page to be detected; specifically: the page image corresponding to the search result page to be detected may be obtained; the target area information of the search result item to be detected in the search result page may be determined based on the category identifier; and the target image may be captured from the page image based on the target area information. Among them, after opening the search result page to be detected corresponding to the web page address, a screenshot operation may be performed to obtain the page image corresponding to the search result page to be detected; then the display area corresponding to the search result item to be detected corresponding to the category identifier in the page image may be determined, and the image of the display area may be captured from the page image, which is the target image. In this example, the step of determining the target area information corresponding to the search result item to be detected corresponding to the category identifier in the search result page based on the target category identifier is similar to the above example and will not be repeated here.

[0067] In an optional embodiment of the present invention, the page styles that meet the product requirements may include multiple types, such as a baseline style and a fault-tolerant style; wherein the baseline style may refer to the display positions of all web page elements in the search result item, which all meet the display positions of each web page element in the page style required by the product requirements, and each web page element is successfully loaded, and the fault-tolerant style may refer to the display positions of all web page elements in the search result item, which all meet the display positions of each web page element in the page style required by the product requirements, but some web page elements are not successfully loaded. Correspondingly, the reference image may include a baseline style image and a fault-tolerant image, wherein the baseline style image may refer to the image of the corresponding display area when the search result item to be detected is displayed in the baseline style, and the fault-tolerant style image may refer to the image of the corresponding display area when the search result item to be detected is displayed in the fault-tolerant style; subsequently, the target image may be compared with the baseline style image and the fault-tolerant style image, and prompt information may be pushed according to the comparison result.

[0068] The above step 106 compares the target image with the reference image for similarity, which may include the following steps 208-210.

[0069] Step 208: perform a similarity comparison between the target image and the corresponding reference pattern image to determine a first similarity.

[0070] Step 210: If the first similarity is lower than a similarity threshold, a similarity comparison is performed between the target image and a corresponding fault-tolerant pattern image to determine a second similarity.

[0071] In an embodiment of the present invention, a reference style image having the same category identifier and the same terminal identifier as the target image may be searched, and then the reference style image and the target image may be compared for similarity to determine a first similarity; and then it may be determined whether the first similarity is lower than a similarity threshold. If the first similarity is higher than the similarity threshold, it may be determined that the target image and the reference style image have a high similarity, and the first similarity may be used as a similarity comparison result, at which point the above process may be terminated, or a normal status message may be pushed. If the first similarity is lower than the similarity threshold, it may be determined that the target image and the reference style image have a low similarity, and then a fault-tolerant style image having the same category identifier and the same terminal identifier as the target image may be searched, and then the fault-tolerant style image and the target image may be compared for similarity to determine a second similarity; and then the second similarity may be used as a similarity comparison result.

[0072] The above step 106 pushes prompt information according to the similarity comparison result, and may include the following steps 212-214.

[0073] Step 212: Determine whether the second similarity is lower than a similarity threshold.

[0074] Step 214: Push an alarm message.

[0075] In the embodiment of the present invention, the second similarity can be compared with the similarity threshold to determine whether the second similarity is lower than the similarity threshold. If the second similarity is higher than the similarity threshold, it can be determined that the target image and the fault-tolerant style image have high similarity, and the above process can be terminated at this time, or a normal status message can be pushed. If the second similarity is lower than the similarity threshold, it can be determined that the target image and the fault-tolerant style image have low similarity, and an alarm message can be pushed at this time.

[0076] Of course, the reference image may also only include a baseline style image, and then the target image and the corresponding baseline style image are compared. After obtaining a first similarity, the first similarity can be used as a similarity comparison result; then, it is determined whether the first similarity is lower than a similarity threshold. If the first similarity is lower than the similarity threshold, an alarm message is pushed; if the first similarity is higher than the similarity threshold, the above process is terminated, or a normal status message is pushed.

[0077] In an optional embodiment of the present invention, since the staff who maintain different search result items to be detected (such as developers, product managers, etc.) may be different, when it is determined that the similarity between the target image and the reference image is low, in order to facilitate the corresponding maintenance staff to perform corresponding processing, the maintenance personnel terminal of the search result item to be detected corresponding to the category identifier can be determined during the process of pushing the alarm message, and the alarm message can be pushed to the maintenance personnel terminal such as sending an email; thereby improving the efficiency of resolving search result item page style errors.

[0078] In an optional embodiment of the present invention, in order to accurately and quickly adjust the page style of the search result item to be detected so that the page style of the search result item to be detected meets preset conditions, the pushed alarm message may include a variety of information, such as configuration information, reference image, target image, comparison image of the target image and the reference image, and similarity comparison results, etc., wherein the comparison image is used to display the area where the style of the search result item to be detected is wrong.

[0079] In an optional embodiment of the present invention, the pre-configured similarity threshold may not be able to well detect whether the page style of the search result item to be detected meets the preset conditions, so the similarity threshold can be optimized; wherein, the number of times the first similarity or the second similarity is continuously higher than the similarity threshold can be counted; if the number is greater than the number threshold, the similarity threshold is increased by a set step size. wherein, the number threshold can be set as required, and the set step size can also be set as required, such as 0.1.

[0080] In summary, in an embodiment of the present invention, the web page address of the search result page to be detected and the category identifier of the search result item to be detected in the search result page to be detected can be obtained, and then the search result page to be detected can be determined based on the web page address, and the target image of the search result item to be detected corresponding to the category identifier in the search result page to be detected can be extracted, and then the target image corresponding to the single search result item can be extracted; then the target image and the corresponding pre-stored reference image are compared for similarity, and prompt information is pushed based on the similarity comparison result; and then, by comparing the single search result item, the influence of the search result items that do not need to be detected on the comparison result is removed, thereby improving the accuracy of page detection.

[0081] Secondly, in an embodiment of the present invention, a call instruction can be sent to a headless browser, the call instruction including the web page address and the terminal identifier, so as to call the headless browser to open the web page address and display the search result page to be detected according to the page style corresponding to the terminal identifier; then extract the target image corresponding to the category identifier in the search result page to be detected; and then open the search result page and extract the target image without the user's perception, thereby reducing the user operation process and improving the detection efficiency. And each search result page to be detected corresponding to each category identifier in each search result page to be detected can include multiple reference images, and each reference image has a corresponding terminal identifier; and then the search result pages to be detected displayed on different terminals can be detected separately, further improving the accuracy of page detection.

[0082] Furthermore, the reference image in the embodiment of the present invention includes: a baseline style image and a fault-tolerant style image; the similarity comparison between the target image and the reference image includes: comparing the target image with the baseline style image to determine a first similarity; if the first similarity is lower than a similarity threshold, comparing the target image with the fault-tolerant style image to determine a second similarity; using the second similarity as a similarity comparison result; thereby solving the problem that the web page elements in the search result item cannot be loaded and affect the detection result of the page style, and further improving the detection accuracy.

[0083] Again, in an embodiment of the present invention, the number of times that the second similarity is continuously higher than the similarity threshold can be counted; if the number is greater than the number threshold, the similarity threshold is increased by a set step size, thereby optimizing the similarity threshold and improving the accuracy of detection.

[0084] In addition, in an embodiment of the present invention, when pushing an alarm message, the maintenance personnel terminal corresponding to the search result item to be detected by the category identifier can be determined, and the alarm message can be pushed to the maintenance personnel terminal; thereby improving the efficiency of solving search result item page style display errors.

[0085] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0086] Reference Figure 3 , shows a structural block diagram of a data processing device embodiment of the present invention, which may specifically include the following modules:

[0087] The information acquisition module 302 is used to acquire the configuration information of the search result page to be detected, wherein the configuration information includes the webpage address of the search result page to be detected and the category identifier of the search result item to be detected in the search result page to be detected;

[0088] An image extraction module 304 is used to determine the search result page to be detected according to the webpage address, and extract a target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected, wherein the target image is determined according to a display area of ​​the search result item to be detected corresponding to the category identifier;

[0089] The image comparison module 306 is used to compare the target image with the corresponding pre-stored reference image for similarity, and push prompt information according to the similarity comparison result.

[0090] Reference Figure 4 , showing a structural block diagram of an optional embodiment of a data processing device of the present invention.

[0091] In an optional embodiment of the present invention, the configuration information further includes a terminal identifier, and the image extraction module 304 includes:

[0092] The page display submodule 3042 is used to open the web page address and display the search result page to be detected according to the page style corresponding to the terminal identifier.

[0093] In an optional embodiment of the present invention, the image comparison module 306 includes:

[0094] The first similarity comparison submodule 3062 is used to perform a similarity comparison between the target image and a pre-stored reference image corresponding to the terminal identifier.

[0095] In an optional embodiment of the present invention, the image extraction module 304 includes:

[0096] An information search submodule 3044 is used to search for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page;

[0097] The first extraction submodule 3046 is used to take a screenshot of the display area corresponding to the target area information in the search result page to be detected according to the target area information to obtain a target image.

[0098] In an optional embodiment of the present invention, the image extraction module 304 includes:

[0099] The image acquisition submodule 3048 is used to acquire the page image corresponding to the search result page to be detected;

[0100] An information search submodule 3044 is used to search for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page;

[0101] The second extraction submodule 30410 is used to capture the target image from the page image according to the target area information.

[0102] In an optional embodiment of the present invention, the information search submodule 3044 is used to search for a mapping relationship based on the category identifier, and determine the area information of the outermost display area layer of the search result page corresponding to the search result item to be detected by the category identifier; and determine the area information of the outermost display area layer as the target area information corresponding to the search result item to be detected corresponding to the category identifier in the search result page.

[0103] In an optional embodiment of the present invention, the target area information includes: position information corresponding to the upper left corner position point of the outermost display area layer, and the size of the outermost display area layer.

[0104] In an optional embodiment of the present invention, the reference image includes: a benchmark image and an error-tolerant pattern image; the image comparison module 306 includes:

[0105] The second similarity comparison submodule 3064 is used to compare the target image with the reference image to determine a first similarity; if the first similarity is lower than a similarity threshold, the target image is compared with the fault-tolerant pattern image to determine a second similarity.

[0106] In summary, in an embodiment of the present invention, configuration information including a web page address and a category identifier can be obtained, and then a search result page can be determined based on the web page address, and a target image corresponding to the category identifier in the search result page can be extracted to achieve extraction of the target image corresponding to a single search result item; then a similarity comparison is performed between the target image of the single search result item and the reference image, and prompt information is pushed based on the similarity comparison result; and further, by comparing the image of the single search result item, the influence of the image comparison result of the search result item that does not need to be detected is removed, thereby improving the detection accuracy.

[0107] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0108] Figure 51 is a block diagram of an electronic device 500 for data processing according to an exemplary embodiment. For example, the electronic device 500 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, etc.

[0109] Reference Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0110] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0111] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.

[0112] The power component 506 provides power to the various components of the electronic device 500. The power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.

[0113] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 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 the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0114] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0115] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0116] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the electronic device 500, and the sensor assembly 514 can also detect the position change of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and the temperature change of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0117] The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 514 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 514 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0118] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0119] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of an electronic device 500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0120] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute a data processing method, the method comprising: obtaining configuration information of a search result page to be detected, the configuration information comprising a web page address of the search result page to be detected and a category identifier of a search result item to be detected in the search result page to be detected; determining the search result page to be detected based on the web page address, extracting a target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected, the target image being determined based on a display area of ​​the search result item to be detected corresponding to the category identifier; performing a similarity comparison between the target image and a corresponding pre-stored reference image, and pushing prompt information based on the similarity comparison result.

[0121] Optionally, the configuration information further includes a terminal identifier, and determining the search result page to be detected based on the web page address includes: opening the web page address and displaying the search result page to be detected according to a page style corresponding to the terminal identifier.

[0122] Optionally, comparing the target image with a corresponding pre-stored reference image for similarity includes: comparing the target image with a pre-stored reference image corresponding to the terminal identifier for similarity.

[0123] Optionally, extracting the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected includes: searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page; and taking a screenshot of a display area corresponding to the target area information in the search result page to be detected based on the target area information to obtain a target image.

[0124] Optionally, extracting the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected includes: obtaining the page image corresponding to the search result page to be detected; searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page; and capturing the target image from the page image based on the target area information.

[0125] Optionally, the method of searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page includes: determining area information of an outermost display area layer of the search result page corresponding to the search result item to be detected by the category identifier based on the category identifier; and determining the area information of the outermost display area layer as the target area information corresponding to the search result item to be detected by the category identifier in the search result page.

[0126] Optionally, the target area information includes: position information corresponding to the upper left corner position point of the outermost display area layer, and the size of the outermost display area layer.

[0127] Optionally, the reference image includes: a baseline style image and a fault-tolerant style image; the similarity comparison between the target image and the corresponding pre-stored reference image includes: comparing the target image with the corresponding baseline style image to determine a first similarity; if the first similarity is lower than a similarity threshold, comparing the target image with the corresponding fault-tolerant style image to determine a second similarity.

[0128] Figure 6: is a structural diagram of an electronic device 600 for data processing according to another exemplary embodiment of the present invention. The electronic device 600 may be a server, which may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 622 (for example, one or more processors) and a memory 632, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 642 or data 644. Among them, the memory 632 and the storage medium 630 may be temporary storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processor 622 may be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the server.

[0129] The server may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, one or more keyboards 656, and / or one or more operating systems 641, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0130] An electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: obtaining configuration information of a search result page to be detected, the configuration information including a web page address of the search result page to be detected and a category identifier of a search result item to be detected in the search result page to be detected; determining the search result page to be detected based on the web page address, extracting a target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected, the target image being determined based on a display area of ​​the search result item to be detected corresponding to the category identifier; performing a similarity comparison between the target image and a corresponding pre-stored reference image, and pushing prompt information based on the similarity comparison result.

[0131] Optionally, the configuration information further includes a terminal identifier, and determining the search result page to be detected based on the web page address includes: opening the web page address and displaying the search result page to be detected according to a page style corresponding to the terminal identifier.

[0132] Optionally, comparing the target image with a corresponding pre-stored reference image for similarity includes: comparing the target image with a pre-stored reference image corresponding to the terminal identifier for similarity.

[0133] Optionally, extracting the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected includes: searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page; and taking a screenshot of a display area corresponding to the target area information in the search result page to be detected based on the target area information to obtain a target image.

[0134] Optionally, extracting the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected includes: obtaining the page image corresponding to the search result page to be detected; searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page; and capturing the target image from the page image based on the target area information.

[0135] Optionally, the method of searching for a mapping relationship based on the category identifier to determine target area information of the search result item to be detected in the search result page includes: determining area information of an outermost display area layer of the search result page corresponding to the search result item to be detected by the category identifier based on the category identifier; and determining the area information of the outermost display area layer as the target area information corresponding to the search result item to be detected by the category identifier in the search result page.

[0136] Optionally, the target area information includes: position information corresponding to the upper left corner position point of the outermost display area layer, and the size of the outermost display area layer.

[0137] Optionally, the reference image includes: a baseline style image and a fault-tolerant style image; the similarity comparison between the target image and the corresponding pre-stored reference image includes: comparing the target image with the corresponding baseline style image to determine a first similarity; if the first similarity is lower than a similarity threshold, comparing the target image with the corresponding fault-tolerant style image to determine a second similarity.

[0138] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0139] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0140] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0141] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0142] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0143] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0144] The data processing method, the data processing device and the electronic device provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples in this article. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A data processing method, characterized in that: include: Acquire configuration information of the search result page to be detected, the configuration information including the webpage address of the search result page to be detected and the category identifier of the search result item to be detected in the search result page to be detected, wherein the category identifier is used to identify the position of the search result item to be detected in the search result page to be detected; Determine the search result page to be detected according to the webpage address, extract the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected, and determine the target image according to the display area of ​​the search result item to be detected corresponding to the category identifier; Compare the target image with the corresponding pre-stored reference image for similarity, and push prompt information according to the similarity comparison result; The reference image includes: a baseline style image and an error-tolerant style image; The comparing the target image with a corresponding pre-stored reference image for similarity includes: Comparing the target image with the corresponding reference pattern image to determine a first similarity; If the first similarity is lower than a similarity threshold, a similarity comparison is performed between the target image and the corresponding fault-tolerant style image to determine a second similarity.

2. The method according to claim 1, characterized in that The configuration information also includes a terminal identifier, and determining the search result page to be detected according to the webpage address includes: The web page address is opened, and the search result page to be detected is displayed according to the page style corresponding to the terminal identifier.

3. The method according to claim 2, characterized in that The comparing the target image with a corresponding pre-stored reference image for similarity includes: The target image is compared with a pre-stored reference image corresponding to the terminal identifier for similarity.

4. The method according to claim 1, characterized in that: The step of extracting the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected includes: Finding a mapping relationship based on the category identifier, and determining target area information of the search result item to be detected in the search result page; According to the target area information, a screenshot is taken of the display area corresponding to the target area information in the search result page to be detected to obtain a target image.

5. The method according to claim 1, characterized in that The step of extracting the target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected includes: Obtaining a page image corresponding to the search result page to be detected; Finding a mapping relationship based on the category identifier, and determining target area information of the search result item to be detected in the search result page; A target image is captured from the page image according to the target area information.

6. The method according to claim 4 or 5, characterized in that: The searching for the mapping relationship based on the category identifier to determine the target area information of the search result item to be detected in the search result page includes: Searching for a mapping relationship based on the category identifier determines the area information of the outermost display area layer of the search result page corresponding to the search result item to be detected by the category identifier; The area information of the outermost display area layer is determined as the target area information corresponding to the search result item to be detected corresponding to the category identifier in the search result page.

7. The method according to claim 6, characterized in that The target area information includes: the position information corresponding to the upper left corner position point of the outermost display area layer, and the size of the outermost display area layer.

8. A data processing device, characterized in that: include: An information acquisition module, used to acquire configuration information of the search result page to be detected, wherein the configuration information includes a web page address of the search result page to be detected and a category identifier of the search result item to be detected in the search result page to be detected, wherein the category identifier is used to identify the position of the search result item to be detected in the search result page to be detected; An image extraction module, used to determine the search result page to be detected according to the webpage address, and extract a target image of the search result item to be detected corresponding to the category identifier from the search result page to be detected, wherein the target image is determined according to a display area of ​​the search result item to be detected corresponding to the category identifier; An image comparison module is used to compare the target image with a corresponding pre-stored reference image for similarity, and push prompt information according to the similarity comparison result; The reference image includes: a baseline style image and a fault-tolerant style image; the image comparison module includes: The second similarity comparison submodule is used to compare the target image with the corresponding reference style image to determine a first similarity; if the first similarity is lower than a similarity threshold, the target image is compared with the corresponding fault-tolerant style image to determine a second similarity.

9. The device according to claim 8, characterized in that The configuration information also includes a terminal identifier, and the image extraction module includes: The page display submodule is used to open the web page address and display the search result page to be detected according to the page style corresponding to the terminal identifier.

10. The device according to claim 9, characterized in that The image comparison module comprises: The first similarity comparison submodule is used to perform a similarity comparison between the target image and a pre-stored reference image corresponding to the terminal identifier.

11. The device according to claim 8, characterized in that The image extraction module comprises: An information search submodule, configured to search for a mapping relationship based on the category identifier, and determine target area information of the search result item to be detected in the search result page; The first extraction submodule is used to take a screenshot of the display area corresponding to the target area information in the search result page to be detected according to the target area information to obtain a target image.

12. The device according to claim 8, characterized in that The image extraction module comprises: An image acquisition submodule, used to acquire a page image corresponding to the search result page to be detected; An information search submodule, configured to search for a mapping relationship based on the category identifier, and determine target area information of the search result item to be detected in the search result page; The second extraction submodule is used to capture a target image from the page image according to the target area information.

13. The device according to claim 11 or 12, characterized in that The information search submodule is used to search for a mapping relationship based on the category identifier to determine the area information of the outermost display area layer of the search result page corresponding to the search result item to be detected by the category identifier; The area information of the outermost display area layer is determined as the target area information corresponding to the search result item to be detected corresponding to the category identifier in the search result page.

14. The device according to claim 13, characterized in that The target area information includes: the position information corresponding to the upper left corner position point of the outermost display area layer, and the size of the outermost display area layer.

15. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data processing method as described in any one of method claims 1-7.

16. An electronic device, characterized in that: The invention comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the data processing method as described in any one of method claims 1-7.