A pop-up window interception method, device, equipment and medium
By performing preliminary matching of target window information and feature information matching, combined with user selection, the problems of lag and low accuracy in pop-up blocking are solved, achieving efficient and accurate pop-up blocking.
Patent Information
- Application Number
- CN202210574781.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2042-05-25
AI Technical Summary
Existing technologies for pop-up blocking suffer from issues of slow response and low accuracy, particularly in identifying new content, which requires time and involves insufficient data collection by a large number of operations and maintenance personnel.
The target window information is initially matched. If it cannot be confirmed, it is uploaded to a preset server for feature information matching. The image is then grayscaled and binarized using a pre-trained algorithm model to obtain feature information and match it with a preset interception rule library. Finally, the interception is performed in combination with the user's personalized selection.
It achieves high efficiency and accuracy in pop-up blocking, avoids the blocking lag in traditional methods, improves the compatibility and scalability of pop-ups, and ensures the comprehensiveness and accuracy of blocking.
Smart Images

Figure CN114861166B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information technology, and in particular to a method, apparatus, device, and medium for blocking pop-up windows. Background Technology
[0002] With the development of the internet, various software programs are ubiquitous online, and many are available for free on download sites throughout the industry ecosystem. While these programs offer services to users for free, the numerous pop-up ads not only create a poor user experience but also pose security risks to users' devices. To address the pop-up issue, existing technical policy configuration solutions, from an operations and maintenance perspective, provide a solution using server-side configuration. Operations personnel collect information such as the presence of tray icons and the names of pop-ups, and monitor the creation process of all windows through an application programming interface (API). Upon interception, the API matches various policy information in a rule base to determine whether the pop-up is the one to be blocked.
[0003] However, while existing technical solutions address the automatic acquisition and batch image processing for feature region analysis—a departure from other methods that define content using specified text information and title bars—they still require a batch of pop-up content images for comparison. When new content appears, acquiring enough images for automatic algorithm recognition still takes time, leading to initial delays in interception. Furthermore, the software requiring numerous maintenance personnel to collect pop-up images results in a scattered collection target. The system relies on process information, window parameters, and a few fixed elements like the lower right corner of the taskbar to determine whether a pop-up needs interception, resulting in insufficient breadth and comprehensiveness of data collection. This leads to low interception accuracy during pop-up recognition and interception. In conclusion, how to efficiently and accurately intercept pop-ups in software requires further research and development. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a pop-up blocking method, apparatus, device, and medium that can efficiently and accurately block pop-ups in software. The specific solution is as follows:
[0005] Firstly, this application discloses a pop-up blocking method, including:
[0006] Intercept the process of creating the target window in the target software and obtain the corresponding target window information;
[0007] The target window information is matched with information in a preset interception rule base, and it is determined whether the target window needs to be intercepted; the preset interception rule base is a database created based on historical windows that need to be intercepted in the target software;
[0008] If it cannot be confirmed whether the target window needs to be intercepted, the target window information is uploaded to a preset server;
[0009] The preset server extracts the feature information of the target window and matches the feature information of the target window with the information in the preset interception rule base. If the match is successful, the corresponding interception processing result is obtained and the target window is intercepted.
[0010] Optional, also includes:
[0011] The preset interception rule library is created based on the historical interception window information in the target software.
[0012] Optionally, creating the preset interception rule base based on the historical interception windows in the target software includes:
[0013] Obtain the historical window information to be intercepted in the target software, and determine whether the corresponding interception operation was successful by checking the window process information and window screenshot in the historical window information to be intercepted. If the interception was unsuccessful, upload the historical window information to the preset server.
[0014] The image of the historical interception window in the historical interception window information is processed into grayscale by the pre-trained algorithm model in the preset server to obtain the corresponding grayscale image of the historical interception window. The image of the grayscale image of the historical interception window is binarized based on the first preset threshold to obtain the binary image of the historical interception window corresponding to the image of the historical interception window.
[0015] The historical interception window binary images are batch identified to obtain the historical interception window feature information, and the historical interception window feature information is entered into the preset interception rule library.
[0016] Optionally, after batch identifying the historical interception window binary images to obtain the historical interception window feature information, the method further includes:
[0017] If the batch identification of the historical interception window feature information fails, the first preset threshold is adjusted through the preset threshold acquisition interface, and the process jumps back to the step of image binarization of the grayscale image of the historical interception window based on the first preset threshold, until the feature information of the historical interception window is obtained by batch identification through the binary image of the historical interception window.
[0018] Optionally, the step of matching the information of the target window with information in a preset interception rule base and determining whether the target window needs to be intercepted includes:
[0019] Check the window process information in the target window information, and determine whether the target window needs to be intercepted based on the window process information;
[0020] If it cannot be determined whether the target window needs to be intercepted, the target window image in the target window information is converted into window position information corresponding to the standard resolution, and the window position information is matched with the preset interception rule base to determine whether the target window needs to be intercepted.
[0021] Optionally, after matching the information of the target window with information in a preset interception rule base and determining whether the target window needs to be intercepted, the method further includes:
[0022] The system queries the user via a preset interface whether the target window needs to be blocked, and records the user's blocking selection for the target window.
[0023] Optionally, the step of extracting the feature information of the target window through the preset server and matching the feature information of the target window with the information in the preset interception rule base includes:
[0024] The target window image in the target window information is processed into grayscale using a pre-trained algorithm model in the preset server to obtain a corresponding grayscale image of the target window. The grayscale image of the target window is then binarized based on a second preset threshold to obtain a binary image of the target window corresponding to the target window image.
[0025] The feature information corresponding to the target window is determined using the binary image of the target window, and the feature information of the target window is matched with the information in the preset interception rule base.
[0026] Secondly, this application discloses a pop-up blocking device, comprising:
[0027] The information acquisition module is used to intercept the process of creating the target window in the target software and obtain the corresponding target window information;
[0028] The information matching module is used to match the target window information with information in a preset interception rule base and determine whether the target window needs to be intercepted; the preset interception rule base is a database created based on historical windows that need to be intercepted in the target software;
[0029] The information uploading module is used to upload the target window information to a preset server if it cannot be confirmed whether the target window needs to be intercepted.
[0030] The feature information matching module is used to extract the feature information of the target window through the preset server and match the feature information of the target window with the information in the preset interception rule base. If the match is successful, the corresponding interception processing result is obtained and the target window is intercepted.
[0031] Thirdly, this application discloses an electronic device, including:
[0032] Memory, used to store computer programs;
[0033] A processor is configured to execute the computer program to implement the steps of the aforementioned pop-up blocking method.
[0034] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the steps of the aforementioned pop-up blocking method.
[0035] When performing pop-up blocking, this application first intercepts the process of creating the target window in the target software and obtains the corresponding target window information. This target window information is then matched with information in a preset blocking rule base to determine whether the target window needs to be blocked. The preset blocking rule base is a database based on the historical creation of windows that need to be blocked in the target software. If it cannot be determined whether the target window needs to be blocked, the target window information is uploaded to a preset server. The preset server then extracts the feature information of the target window and matches it with information in the preset blocking rule base. If a match is successful, the corresponding blocking result is obtained, and the target window is blocked. Therefore, when performing pop-up blocking, this application first intercepts the creation process of the target window, obtains the corresponding target window information, and makes a preliminary judgment on whether the target window needs to be blocked. If it cannot be determined whether the target window needs to be blocked, the target window information is uploaded to a preset server for feature information matching to determine whether the target window needs to be blocked. Therefore, before intercepting pop-ups in the target software, a preset interception rule base is first created based on the target software's historical windows that need to be intercepted. This avoids the interception lag caused by relying solely on image recognition in existing technologies, thus achieving more efficient pop-up interception. Furthermore, after initially determining whether the target window has failed to be intercepted, the target window information is uploaded to a preset server. The preset server extracts the target window's feature information and matches it with information in the preset interception database. Compared to traditional methods that rely solely on process information, window parameter information, and a fixed lower right corner of the taskbar to locate pop-ups and determine whether interception is necessary, this method is more comprehensive. When the pop-up window to be intercepted does not possess the information points required for interception using the above methods, judging whether pop-up interception is necessary through feature information recognition offers higher compatibility and scalability, making the judgment of the interception situation more accurate during the pop-up interception process. In summary, this application can efficiently and accurately intercept pop-ups in software. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0037] Figure 1 A flowchart of a pop-up blocking method provided in this application;
[0038] Figure 2 A flowchart of a specific pop-up blocking method provided in this application;
[0039] Figure 3 This application provides a schematic diagram of a pop-up blocking device structure;
[0040] Figure 4 This application provides a structural diagram of an electronic device. Detailed Implementation
[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0042] While existing technical solutions address the automatic acquisition and batch image processing for feature region analysis, differing from other methods that define content using specified text information and title bars, they still require a batch of pop-up content images for comparison. When new content appears, acquiring enough images for automatic algorithm recognition still takes time, resulting in initial delays in interception. Furthermore, the software requiring numerous maintenance personnel to collect pop-up images leads to scattered data collection targets, relying only on process information, window parameters, and fixed elements like the lower right corner of the taskbar to determine whether a pop-up needs interception. This results in insufficient breadth and comprehensiveness of data collection, leading to low interception accuracy during pop-up recognition and interception. Therefore, this application provides a pop-up interception method that can efficiently and accurately intercept pop-ups in software.
[0043] This invention discloses a pop-up blocking method, see [link to relevant documentation]. Figure 1 As shown, the method includes:
[0044] Step S11: Intercept the process of creating the target window in the target software and obtain the corresponding target window information.
[0045] In this embodiment, the process of creating a target window in the target software is intercepted, and the corresponding target window information is obtained. This target window information includes, but is not limited to, target window process information, target window image information, and information about the operating system installed on the target software. The target window process information includes, but is not limited to, the process name, process path, and whether a parent process exists. If a parent process exists, its process name and process path are also collected. The target window image information includes, but is not limited to, the window position, window size, screenshot information, and the window resolution at the time of the screenshot. Through this technical solution, when a target window is created, it is intercepted, and the corresponding target window information is obtained, so that subsequent determination of whether the target window needs to be intercepted can be made based on this information.
[0046] Step S12: Match the target window information with the information in the preset interception rule base, and determine whether the target window needs to be intercepted; the preset interception rule base is a database created based on the historical windows that need to be intercepted in the target software.
[0047] Specifically, the window process information in the target window information is checked, and the window process information is used to determine whether the target window needs to be blocked. If it cannot be determined whether the target window needs to be blocked, the target window image in the target window information is converted into window position information corresponding to standard resolution, and the window position information is matched with the preset blocking rule base to determine whether the target window needs to be blocked. Through the above technical solution, it is initially determined whether the target window is an advertisement or other promotional pop-up. If the above technical solution can identify the target window, the judgment result can be directly output without subsequent feature information comparison operations, thereby improving the efficiency of pop-up blocking.
[0048] Step S13: If it cannot be confirmed whether the target window needs to be intercepted, the target window information is uploaded to a preset server.
[0049] In this embodiment, if the above steps cannot confirm whether the target window needs to be intercepted, the target window information is uploaded to a preset server. This technical solution facilitates subsequent identification of whether the target window needs to be intercepted by matching the feature information of the target window with information in the preset interception rule base.
[0050] Step S14: Extract the feature information of the target window through the preset server and match the feature information of the target window with the information in the preset interception rule base. If the match is successful, obtain the corresponding interception processing result and intercept the target window.
[0051] It should be noted that because a software application may have several types of promotional and advertising pop-ups, this part may have several template images and corresponding feature information for these windows. Therefore, it is necessary to determine which type it is in a loop. If a match fails, the next set of feature information needs to be processed and identified, and the previous step is repeated to obtain the result. Through the above technical solution, it is possible to further confirm whether the target window needs to be intercepted. Judging whether pop-up interception is necessary through feature information recognition has higher compatibility and scalability.
[0052] As can be seen, in this embodiment, when intercepting pop-up windows, the creation process of the target window is first intercepted to obtain the corresponding target window information. Based on a preliminary judgment, it is determined whether the target window needs to be intercepted. If it cannot be confirmed whether the target window needs to be intercepted, the target window information is uploaded to a preset server and the feature information is matched to determine whether the target window needs to be intercepted. Therefore, before intercepting pop-ups in the target software, a preset interception rule base is first created based on the target software's historical windows that need to be intercepted. This avoids the interception lag caused by relying solely on image recognition in existing technologies, thus achieving more efficient pop-up interception. Furthermore, after initially determining whether the target window has failed to be intercepted, the target window information is uploaded to a preset server. The preset server extracts the target window's feature information and matches it with information in the preset interception database. Compared to traditional methods that rely solely on process information, window parameter information, and a fixed lower right corner of the taskbar to locate pop-ups and determine whether interception is necessary, this method is more comprehensive. When the pop-up window to be intercepted does not possess the information points required for interception using the above methods, judging whether pop-up interception is necessary through feature information recognition offers higher compatibility and scalability, making the judgment of the interception situation more accurate during the pop-up interception process. In summary, this application can efficiently and accurately intercept pop-ups in software.
[0053] See Figure 2 As shown, this embodiment of the invention discloses a specific method for blocking pop-ups. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.
[0054] Step S21: Intercept the process of creating the target window in the target software and obtain the corresponding target window information.
[0055] Step S22: Match the target window information with the information in the preset interception rule base, and determine whether the target window needs to be intercepted; the preset interception rule base is a database created based on the historical windows that need to be intercepted in the target software.
[0056] In this embodiment, before pop-up blocking, the method further includes: creating a preset blocking rule base based on historical window information to be blocked in the target software. Specifically, the historical window information to be blocked in the target software is obtained, and the success of the corresponding blocking operation is determined by checking the window process information and window screenshot in the historical window information to be blocked. If the blocking is unsuccessful, the historical window information to be blocked is uploaded to the preset server. The historical window images to be blocked in the historical window information are processed into grayscale using a pre-trained algorithm model in the preset server to obtain corresponding historical window grayscale images. The historical window grayscale images to be blocked are then binarized based on a first preset threshold to obtain historical window binary images to be blocked. The historical window binary images to be blocked are then batch-identified to obtain historical window feature information, and the historical window feature information is entered into the preset blocking rule base. It should be noted that if the batch identification of the historical interception window feature information fails, the first preset threshold is adjusted through the preset threshold acquisition interface, and the process jumps back to the step of image binarization of the grayscale image of the historical interception window based on the first preset threshold, until the feature information of the historical interception window is obtained by batch identification through the binary image of the historical interception window.
[0057] Specifically, a historical interception window rule establishment information table is initiated. This table stores newly reported historical interception window images. Once the required number of images (typically 50-100) is reached, batch image processing is initiated. First, the batch of historical interception window images is imported, and then grayscale and binarization are performed to obtain corresponding binary images. Based on the scale matching of a pre-trained algorithm model, common information among the historical interception window images is identified. If the common information is not obvious, the binarization range is adjusted, and batch comparisons are performed again to obtain more ideal common information. Then, based on the feature regions of the historical interception window images, such as the title bar, sidebar, and logo of a specified area, the image recognition region is delineated. The template and configuration information are then saved as the feature information of the historical interception window images and stored in a preset interception rule library. It should be noted that maintenance personnel use recognition tools provided by the development team to batch verify the feature information templates. If successful, the feature information is saved to the preset interception rule library. If necessary, the development team can be consulted for this part.
[0058] Step S23: If it cannot be confirmed whether the target window needs to be intercepted, the target window information is uploaded to a preset server.
[0059] Step S24: Extract the feature information of the target window through the preset server and match the feature information of the target window with the information in the preset interception rule base. If the match is successful, obtain the corresponding interception processing result and intercept the target window.
[0060] Specifically, the target window image in the target window information is processed into grayscale using a pre-trained algorithm model in the preset server to obtain a corresponding grayscale image of the target window. The grayscale image of the target window is then binarized based on a second preset threshold to obtain a binary image of the target window corresponding to the target window image. The binary image of the target window is used to determine the feature information corresponding to the target window, and the feature information of the target window is matched with the information in the preset interception rule base.
[0061] Step S25: Ask the user through a preset interface whether the target window needs to be blocked, and record the user's blocking selection for the target window.
[0062] In this embodiment, a preset interface is used to query the user regarding personalized blocking options for the target window of the target software. The user's blocking choices for the target window include, but are not limited to, not processing the target window, allowing the target window to pass, and blocking the target window. Once the user makes a blocking choice for the target window, that choice is recorded, and the user's previous blocking choice is directly used when the target window appears subsequently. This technical solution allows for more accurate pop-up blocking by considering the user's personalized blocking choices.
[0063] As can be seen, in this embodiment, the pre-trained algorithm model finds the common information of historical window images that need to be intercepted, thereby determining the characteristic information corresponding to the historical window images that need to be intercepted, and establishes a preset interception rule base. This ensures that the characteristic information in the preset interception rule base is the common information of historical window images that need to be intercepted, so that window interception can be matched according to the preset interception rule base. At the same time, a preset interface is set to obtain the user's interception selection for the target window, and pop-up interception is performed considering the user's personalized interception selection, making pop-up interception more accurate and efficient.
[0064] See Figure 3 The present application discloses a pop-up blocking device, comprising:
[0065] The information acquisition module 11 is used to intercept the process of creating the target window in the target software and acquire the corresponding target window information;
[0066] The information matching module 12 is used to match the target window information with information in a preset interception rule base and determine whether the target window needs to be intercepted; the preset interception rule base is a database created based on historical windows that need to be intercepted in the target software;
[0067] The information uploading module 13 is used to upload the target window information to a preset server if it cannot be confirmed whether the target window needs to be intercepted.
[0068] The feature information matching module 14 is used to extract the feature information of the target window through the preset server and match the feature information of the target window with the information in the preset interception rule base. If the match is successful, the corresponding interception processing result is obtained and the target window is intercepted.
[0069] As can be seen, in this embodiment, when intercepting pop-up windows, the creation process of the target window is first intercepted to obtain the corresponding target window information. Based on a preliminary judgment, it is determined whether the target window needs to be intercepted. If it cannot be confirmed whether the target window needs to be intercepted, the target window information is uploaded to a preset server and the feature information is matched to determine whether the target window needs to be intercepted. Therefore, before intercepting pop-ups in the target software, a preset interception rule base is first created based on the target software's historical windows that need to be intercepted. This avoids the interception lag caused by relying solely on image recognition in existing technologies, thus achieving more efficient pop-up interception. Furthermore, after initially determining whether the target window has failed to be intercepted, the target window information is uploaded to a preset server. The preset server extracts the target window's feature information and matches it with information in the preset interception database. Compared to traditional methods that rely solely on process information, window parameter information, and a fixed lower right corner of the taskbar to locate pop-ups and determine whether interception is necessary, this method is more comprehensive. When the pop-up window to be intercepted does not possess the information points required for interception using the above methods, judging whether pop-up interception is necessary through feature information recognition offers higher compatibility and scalability, making the judgment of the interception situation more accurate during the pop-up interception process. In summary, this application can efficiently and accurately intercept pop-ups in software.
[0070] In some specific embodiments, the pop-up blocking device further includes:
[0071] The rule base creation module is used to create the preset interception rule base based on the historical interception window information in the target software.
[0072] In some specific embodiments, the rule base creation module specifically includes:
[0073] The historical interception window information uploading unit is used to obtain the historical interception window information in the target software, and to determine whether the corresponding interception operation is successful by checking the window process information and window screenshot in the historical interception window information. If the interception is unsuccessful, the historical interception window information is uploaded to the preset server.
[0074] The historical interception window binary image acquisition unit is used to perform image grayscale processing on the historical interception window image in the historical interception window information through the pre-trained algorithm model in the preset server to obtain the corresponding historical interception window grayscale image, and to perform image binarization on the historical interception window grayscale image based on the first preset threshold to obtain the historical interception window binary image corresponding to the historical interception window image.
[0075] The feature information input unit is used to perform batch identification of the binary images of the historical windows to be intercepted to obtain the feature information of the historical windows to be intercepted, and input the feature information of the historical windows to be intercepted into the preset interception rule base.
[0076] In some specific embodiments, the pop-up blocking device further includes:
[0077] The first preset threshold setting module is used to adjust the first preset threshold through the preset threshold acquisition interface if the batch identification of the feature information of the historical window to be intercepted fails, and then jump back to the step of performing image binarization on the grayscale image of the historical window to be intercepted based on the first preset threshold, until the feature information of the historical window to be intercepted is obtained by batch identification through the binary image of the historical window to be intercepted.
[0078] In some specific embodiments, the information matching module 12 specifically includes:
[0079] The process information judgment unit is used to check the window process information in the target window information and determine whether the target window needs to be intercepted based on the window process information.
[0080] The window position information matching unit is used to convert the target window image in the target window information into window position information corresponding to the standard resolution if it cannot be determined whether the target window needs to be intercepted, and to match the window position information with the preset interception rule base to determine whether the target window needs to be intercepted.
[0081] In some specific embodiments, the pop-up blocking device further includes:
[0082] The interception selection acquisition module is used to query the user through a preset interface whether the target window needs to be intercepted, and to record the user's interception selection for the target window.
[0083] In some specific embodiments, the feature information matching module 14 specifically includes:
[0084] The target window binary image acquisition unit is used to perform image grayscale processing on the target window image in the target window information through the pre-trained algorithm model in the preset server to obtain the corresponding target window grayscale image, and to perform image binarization on the target window grayscale image based on the second preset threshold to obtain the target window binary image corresponding to the target window image.
[0085] The target window feature information matching unit is used to determine the feature information corresponding to the target window using the binary image of the target window, and to match the feature information of the target window with the information in the preset interception rule base.
[0086] Figure 4 The illustration shows an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may further include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the pop-up blocking method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be a computer.
[0087] In this embodiment, the power supply 23 is used to provide voltage to the various hardware devices on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to the specific application needs, and is not specifically limited here.
[0088] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0089] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20, as well as the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the pop-up blocking method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.
[0090] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned pop-up blocking method. The specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0091] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0092] The above provides a detailed description of the pop-up blocking method, apparatus, device, and medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A pop-up window interception method, characterized in that, include: Intercept the process of creating the target window in the target software and obtain the corresponding target window information; The target window information is matched with information in a preset interception rule base, and it is determined whether the target window needs to be intercepted. The preset interception rule base is a database created based on the historical interception windows in the target software; If it cannot be confirmed whether the target window needs to be intercepted, the target window information is uploaded to a preset server; The preset server extracts the feature information of the target window and matches the feature information of the target window with the information in the preset interception rule base. If the match is successful, the corresponding interception processing result is obtained and the target window is intercepted. The pop-up blocking method further includes: The preset interception rule library is created based on the historical interception window information in the target software; The step of creating the preset interception rule base based on the historical interception window information in the target software includes: Obtain the historical window information to be intercepted in the target software, and determine whether the corresponding interception operation was successful by checking the window process information and window screenshot in the historical window information to be intercepted. If the interception was unsuccessful, upload the historical window information to the preset server. The image of the historical interception window in the historical interception window information is processed into grayscale by the pre-trained algorithm model in the preset server to obtain the corresponding grayscale image of the historical interception window. The image of the grayscale image of the historical interception window is then binarized based on the first preset threshold to obtain the binary image of the historical interception window corresponding to the image of the historical interception window. The historical interception window binary images are batch identified to obtain historical interception window feature information, and the historical interception window feature information is entered into the preset interception rule library; After obtaining the feature information of the historical interception windows by batch identification of the binary images of the historical interception windows, the method further includes: If the batch identification of the historical interception window feature information fails, the first preset threshold is adjusted through the preset threshold acquisition interface, and the process jumps back to the step of performing image binarization on the grayscale image of the historical interception window based on the first preset threshold, until the historical interception window feature information is obtained by batch identification through the binary image of the historical interception window.
2. The pop-up blocking method according to claim 1, characterized in that, The step of matching the information of the target window with information in a preset interception rule base and determining whether the target window needs to be intercepted includes: Check the window process information in the target window information, and determine whether the target window needs to be intercepted based on the window process information; If it cannot be determined whether the target window needs to be intercepted, the target window image in the target window information is converted into window position information corresponding to the standard resolution, and the window position information is matched with the preset interception rule base to determine whether the target window needs to be intercepted.
3. The pop-up blocking method according to claim 1, characterized in that, After matching the information of the target window with information in a preset interception rule base and determining whether the target window needs to be intercepted, the method further includes: The system queries the user via a preset interface whether the target window needs to be blocked, and records the user's blocking selection for the target window.
4. The pop-up blocking method according to claim 1, characterized in that, The step of extracting feature information of the target window through the preset server and matching the feature information of the target window with information in the preset interception rule base includes: The target window image in the target window information is processed into grayscale using a pre-trained algorithm model in the preset server to obtain a corresponding grayscale image of the target window. The grayscale image of the target window is then binarized based on a second preset threshold to obtain a binary image of the target window corresponding to the target window image. The feature information corresponding to the target window is determined using the binary image of the target window, and the feature information of the target window is matched with the information in the preset interception rule base.
5. A pop-up blocking device, characterized in that, include: The information acquisition module is used to intercept the process of creating the target window in the target software and obtain the corresponding target window information; The information matching module is used to match the target window information with information in a preset interception rule base and determine whether the target window needs to be intercepted. The preset interception rule base is a database created based on the historical interception windows in the target software; The information uploading module is used to upload the target window information to a preset server if it cannot be confirmed whether the target window needs to be intercepted. The feature information matching module is used to extract the feature information of the target window through the preset server and match the feature information of the target window with the information in the preset interception rule base. If the match is successful, the corresponding interception processing result is obtained and the target window is intercepted. The pop-up blocking device also includes: The rule base creation module is used to create the preset interception rule base based on the historical interception window information in the target software; The rule base creation module includes: The historical interception window information uploading unit is used to obtain the historical interception window information in the target software, and to determine whether the corresponding interception operation is successful by checking the window process information and window screenshot in the historical interception window information. If the interception is unsuccessful, the historical interception window information is uploaded to the preset server. The historical interception window binary image acquisition unit is used to perform image grayscale processing on the historical interception window image in the historical interception window information through the pre-trained algorithm model in the preset server to obtain the corresponding historical interception window grayscale image, and to perform image binarization on the historical interception window grayscale image based on the first preset threshold to obtain the historical interception window binary image corresponding to the historical interception window image. The feature information input unit is used to perform batch identification of the binary images of the historical windows to be intercepted to obtain the feature information of the historical windows to be intercepted, and input the feature information of the historical windows to be intercepted into the preset interception rule base; The pop-up blocking device also includes: The first preset threshold setting module is used to adjust the first preset threshold through the preset threshold acquisition interface if the batch identification of the historical interception window feature information fails, and then jump back to the step of image binarization of the grayscale image of the historical interception window based on the first preset threshold, until the historical interception window feature information is obtained by batch identification through the binary image of the historical interception window.
6. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the pop-up blocking method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, Used to store a computer program; wherein, when the computer program is executed by a processor, it implements the steps of the pop-up blocking method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Lattice code positioning method and system
CN110245538A
Popup window processing method and device and electronic equipment
CN111949356A