Control disabling method and device, equipment and storage medium

By drawing the disable matrix on the display page of the APP, the problem of the disabled control control of image processing and disable the disable control of the existing technology has been solved, and more accurate and fast user operation guidance is achieved.

CN119376842APending Publication Date: 2025-01-28WEBANK (CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411531850.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

In the prior art, when a user uses the APP, the method of identifying disable controls through image processing takes too long to effectively guide the user to operate according to a fixed process.

Method used

By drawing the page disable matrix on the display page, the control matrix of the control matrix update page disables the matrix. When the user trigger the operating instruction, the instruction information of the operating instruction of the operation instructions on the disable matrix is ​​to be disabled, terminate or respond to the operation instructions.

Benefits of technology

The user's control accuracy and rate of control are improved. The image processing algorithm recognition control shape does not require the image processing algorithm, which significantly improves the guidance efficiency of the operating process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376842A_ABST
    Figure CN119376842A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a control disabling method and device, equipment and a storage medium, and relates to the technical field of image processing, the method comprises the steps that an operation instruction triggered by a user on a display page is received, and the operation instruction is used for instructing to control a first control in the display page; determining corresponding indication information of the first control in the page disabling matrix; the page forbidden matrix is obtained by updating the page forbidden matrix layer by layer according to a control forbidden matrix of each control in a view layer according to a view layer sequence when a display page is drawn; the control disabling matrix of any control is generated according to the disabling attribute of the control; when the indication information is a forbidden indication, terminating the operation instruction; and when the indication information is a non-forbidden indication, responding to the operation instruction. Whether the indication information of the operation instruction of the user is forbidden or not is judged according to the page forbidding matrix, the shape of the first control does not need to be recognized through an image processing algorithm, and therefore the control speed and accuracy of the first control are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a control disabling method, device, equipment and storage medium. Background Art

[0002] With the widespread use of APP applications, more and more functions will be embedded in an APP, such as using an APP to query a bank's bill. If the user encounters obstacles or improper operations when querying bills, remote assistance can be used to guide the user. The remote assistance method can be that the user uses his or her mobile phone to operate on the backend, that is, the backend device actually runs an APP, and the user uses his or her mobile phone to operate the APP.

[0003] Since there are many different function entrances on the APP, users may accidentally click a button to enter a page other than the bill query page, which results in a longer path to find the bill query entrance. In order to guide users to operate the APP according to a fixed process, some controls in the APP need to be disabled to ensure that users do not click buttons that are not related to the process.

[0004] In order to implement the setting of disabled controls, when the user is using the app, the display page is subjected to image processing such as grayscale conversion, binarization, dilation, and corrosion, so as to identify the controls to be disabled. The intermediate processing steps are numerous and time-consuming, which is not suitable for the scenario where the user is using the app. The user may have performed the operation before the control is identified.

[0005] Therefore, currently, image processing is often used to identify graphics of disabled controls, but image recognition takes too long and cannot effectively guide users to operate according to a fixed process. Summary of the invention

[0006] The embodiments of the present application provide a control disabling method, apparatus, device and storage medium, which accurately identify the shape of disabled controls and effectively guide user operations.

[0007] In a first aspect, an embodiment of the present application provides a method for disabling a control, comprising:

[0008] Receiving an operation instruction triggered by a user on a display page, wherein the operation instruction is used to instruct to manipulate a first control on the display page;

[0009] Determine the indication information corresponding to the first control in the page disable matrix; the page disable matrix is ​​obtained by updating the page disable matrix according to the control disable matrix of each control in the view layer layer by layer according to the view layer order when drawing the display page; the control disable matrix of any control is generated according to the disable attribute of the control;

[0010] When the indication information is a disabling indication, the operation instruction is terminated; when the indication information is a non-disabling indication, the operation instruction is responded to.

[0011] In an embodiment of the present application, a page disable matrix is ​​drawn on the display page so that the control disable matrix of the control updates the page disable matrix. When the user triggers an operation instruction, it is determined whether the indication information of the user's operation instruction is disabled based on the page disable matrix, thereby improving the accuracy of the user's manipulation of the first control. The image processing algorithm is not required to identify the shape of the first control to determine whether it is disabled, thereby improving the speed of manipulation of the first control.

[0012] Optionally, before receiving the operation instruction triggered by the user on the display page, the method further includes:

[0013] Setting the initial value of each pixel position in the page disable matrix of the display page to non-disabled;

[0014] The page is drawn layer by layer according to each view layer of the display page, and during the page drawing process at any view layer, the control disable matrix of the second control is set according to the disable attribute of the second control in the view layer; and the page disable matrix is ​​updated according to the control disable matrix of the second control.

[0015] In an embodiment of the present application, the control disable matrix of the second control is set by the disable attribute of the second control, so that the control disable matrix is ​​more accurate, and the page disable matrix is ​​updated by the control disable matrix of the second control to obtain the latest page disable matrix, so that the page disable matrix is ​​more accurate.

[0016] Optionally, updating the page disabling matrix according to the control disabling matrix of the second control includes:

[0017] After converting the control disable matrix of the second control to the position dimension of the display page, the value in the page disable matrix located at the same pixel position as the control disable matrix of the second control is updated to the value of the control disable matrix of the second control.

[0018] In an embodiment of the present application, by updating the values ​​at the same pixel position in the disable matrix of the second control and the page disable matrix in the page disable matrix to the values ​​of the control disable matrix of the second control, the page disable matrix is ​​set according to the disable properties of the second control, thereby enabling the user to manipulate the second control according to the disable properties when triggering the second control.

[0019] Optionally, setting a control disabling matrix of the second control according to a disabling property of the second control in the view layer includes:

[0020] When the disabled attribute of the second control is disabled, obtaining the transparency of each pixel in the second control;

[0021] A control disable matrix of the second control is generated according to the transparency of each pixel; wherein, the corresponding values ​​of the pixels with zero transparency in the control disable matrix of the second control are non-disabled; and the corresponding values ​​of the pixels with non-zero transparency in the control disable matrix of the second control are disabled.

[0022] In the embodiment of the present application, the position where the second control needs to be disabled is determined by different pixel points in the control disable matrix where the second control is disabled, thereby ensuring that when the second control is triggered, the range of the second control can be more accurately identified; in the control disable matrix, a transparency of 0 corresponds to non-disabled; a transparency not of 0 corresponds to disabled, so that the second control has a more precise shape.

[0023] Optionally, before setting the control disabling matrix of the second control according to the disabling property of the second control in the view layer, the method further includes:

[0024] Store each control with disabled attribute as disabled into environment variables;

[0025] Gets the disabled property of any control from the environment variable.

[0026] In an embodiment of the present application, the disabled second control is stored in an environment variable. When the second control needs to be rendered as a disabled control, it can be determined based on whether it is stored in the environment variable, making it more convenient to render the second control.

[0027] Optionally, the receiving an operation instruction triggered by a user on a displayed page includes:

[0028] Receive operation instructions triggered by users remotely on the back-end display page.

[0029] In a second aspect, an embodiment of the present application provides a control disabling device, comprising:

[0030] A receiving unit, configured to receive an operation instruction triggered by a user on a display page, wherein the operation instruction is used to instruct to manipulate a first control on the display page;

[0031] a determination unit, configured to determine the indication information corresponding to the first control in the page disable matrix; the page disable matrix is ​​obtained by updating the page disable matrix according to the control disable matrix of each control in the view layer layer by layer in the view layer order when drawing the display page; the control disable matrix of any control is generated according to the disable attribute of the control;

[0032] A termination unit is used to terminate the operation instruction when the indication information is a disabling indication; and respond to the operation instruction when the indication information is a non-disabling indication.

[0033] Optionally, the receiving unit is further used for:

[0034] Setting the initial value of each pixel position in the page disable matrix of the display page to non-disabled;

[0035] The page is drawn layer by layer according to each view layer of the display page, and during the page drawing process at any view layer, the control disable matrix of the second control is set according to the disable attribute of the second control in the view layer; and the page disable matrix is ​​updated according to the control disable matrix of the second control.

[0036] Optionally, the receiving unit is specifically used for:

[0037] After converting the control disable matrix of the second control to the position dimension of the display page, the value in the page disable matrix located at the same pixel position as the control disable matrix of the second control is updated to the value of the control disable matrix of the second control.

[0038] Optionally, the receiving unit is specifically used for:

[0039] When the disabled attribute of the second control is disabled, obtaining the transparency of each pixel in the second control;

[0040] A control disable matrix of the second control is generated according to the transparency of each pixel; wherein, the corresponding values ​​of the pixels with zero transparency in the control disable matrix of the second control are non-disabled; and the corresponding values ​​of the pixels with non-zero transparency in the control disable matrix of the second control are disabled.

[0041] Optionally, the receiving unit is further used for:

[0042] Store each control with disabled attribute as disabled into environment variables;

[0043] Gets the disabled property of any control from the environment variable.

[0044] Optionally, the receiving unit is specifically used for:

[0045] Receive operation instructions triggered by users remotely on the back-end display page.

[0046] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-described method when executing the program.

[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program executable by a computer device, wherein when the program is run on the computer device, the computer device executes the steps of any of the above-described methods.

[0048] In a fifth aspect, the present application provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer device, the computer device executes the steps of any one of the methods described above.

[0049] In an embodiment of the present application, a page disable matrix is ​​drawn on the display page so that the control disable matrix of the control updates the page disable matrix. When the user triggers an operation instruction, it is determined whether the indication information of the user's operation instruction is disabled based on the page disable matrix, thereby improving the accuracy of the user's manipulation of the first control. The image processing algorithm is not required to identify the shape of the first control to determine whether it is disabled, thereby improving the speed of manipulation of the first control. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0051] Figure 1 A method for determining the shape of a control;

[0052] Figure 2 A method for determining the shape of a control;

[0053] Figure 3 A system architecture diagram provided for an embodiment of the present application;

[0054] Figure 4 A flowchart of a control disabling method provided in an embodiment of the present application;

[0055] Figure 5 A flowchart of a method for determining a control position provided in an embodiment of the present application;

[0056] Figure 6 A schematic diagram of the structure of a control disabling device provided in an embodiment of the present application;

[0057] Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and beneficial effects of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0059] When users encounter problems that they cannot solve by themselves when using the APP, they can seek technical support from after-sales technicians, who can operate the APP through the user's electronic device through remote control. When users operate remotely on the back end, such as when they need to log in to their personal accounts, ad pop-ups often pop up during the process, affecting the user's login operation. At this time, the technicians hope that the user will ignore the ad pop-ups and continue the login operation. Therefore, taking ad pop-ups as an example, the "Close" button in the ad pop-up window control can be made operable, and other buttons, such as "Click to enter" or "Upgrade now", can be disabled, so as to avoid users triggering ad pop-ups.

[0060] Currently, the "Close" button in the ad pop-up window is not disabled, and the "Click to Enter" or "Upgrade Now" button is disabled. This can be achieved in the following two ways: 1. Image recognition technology. Based on the image recognition method, the "Close" button (ie "x") in the ad pop-up window, as well as the "Click to Enter" or "Upgrade Now" button in the ad pop-up window are identified. However, image recognition technology requires a long processing time. When the user uses the APP, the page needs to be converted to grayscale, binarized, expanded, eroded and other image processing to achieve the effect of element recognition. The intermediate processing steps are many and time-consuming, which is not suitable for scenarios where users use apps. Users may have already performed operations before the element is recognized. 2. The range of boundary coordinate points. With Figure 1 For example, assuming that the disabled button is the shaded button, when Android renders the button, it traverses the button coordinates to obtain the minimum x coordinate min_x, maximum x coordinate max_x, minimum y coordinate min_y, and maximum y coordinate max_y. When a click occurs, assuming that the click coordinate is (x, y), when min_x <= x <= max_x and min_y <= y <= max_y, the click is disabled, otherwise it is considered to be within the click range. However, when the clicked button is an irregular shape, as follows Figure 2 As shown, the defined min_x, max_x, min_y, and max_y are a rectangular figure, and there will be redundant areas. When the user clicks within the rectangular area and not within the button, it will be mistakenly disabled, which may prevent the user from using the app. The specific process of the embodiment of this application is described below:

[0061] The embodiment of the present application introduces a page disable matrix to determine whether the control triggered by the user is disabled, thereby achieving a quick response to the user's operation. The specific implementation process of the page disable matrix is ​​to first initialize a page disable matrix according to the page size of the app, and all pixel positions of the page disable matrix are all defaulted to non-disabled. Then, in the process of rendering the view layer layer by layer, the page disable matrix is ​​updated according to the control disable matrix of the control in the view layer until all view layers are rendered.

[0062] See also Figure 3 , is a system architecture diagram provided in an embodiment of the present application, wherein the system architecture includes a terminal device 301 and a server 302.

[0063] The terminal device 301 is pre-installed with a business application for text matching, wherein the business application is a client application, a web application, a small program application, etc. The terminal device 301 can be a smart phone, a POS machine, a desktop notebook, a computer, etc., but is not limited thereto. In this solution, the terminal device 301 is an electronic device of the user.

[0064] Server 302 is a backend server. Server 302 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. In this solution, server 302 is the backend, that is, the backend equipment provided by after-sales personnel, which can remotely allow users to remotely control the app through their electronic devices.

[0065] See also Figure 4 , is a flow chart of a control disabling method provided in an embodiment of the present application, comprising the following steps:

[0066] Step 401: Receive an operation instruction triggered by a user on a display page, where the operation instruction is used to instruct to manipulate a first control on the display page.

[0067] Specifically, when the user operates on the display page, the task the user wants to achieve is achieved according to the operation instruction triggered by the user. The operation instruction is a specific manipulation of the first control of the display page. The first control is a control displayed on the display page, such as a "login" button, an "upgrade now" button, etc. When the user triggers the "login" button, the operation instruction is that the user logs in to a certain account, etc.

[0068] Step 402, determine the indication information corresponding to the first control in the page disable matrix; the page disable matrix is ​​obtained by updating the page disable matrix according to the control disable matrix of each control in the view layer layer by layer in the view layer order when drawing the display page; the control disable matrix of any control is generated according to the disable attribute of the control.

[0069] Specifically, the control disable matrix is ​​generated according to the disable attribute of the control, which is disabled or not disabled. The page disable matrix is ​​obtained according to the control disable matrix during the rendering process of the multiple view layers that display the page. For example, when rendering the first view layer, if the disable attribute of the control in the first view layer is disabled, the control disable matrix corresponding to the control is generated, and then the page disable matrix is ​​updated according to the control disable matrix; when rendering the second view layer, if the disable attribute of the control in the second view layer is not disabled, the control disable matrix corresponding to the control is generated, and then the page disable matrix is ​​updated again according to the control disable matrix, ..., and so on, until the rendering of the last view layer is completed. When the page rendering is completed, the page disable matrix is ​​obtained.

[0070] Step 403: When the indication information is a disabling indication, terminate the operation instruction; when the indication information is a non-disabling indication, respond to the operation instruction.

[0071] Specifically, the disabled indication and non-disabled indication indicate whether an operation instruction can be responded to. For example, if the indication information is a disabled indication, the first control is an inoperable control. For example, if the first control is an "Upgrade Now" button and the indication information is a disabled indication, when the user clicks the "Upgrade Now" button, it will not be upgraded immediately, that is, it will not respond to the operation instruction; for example, if the first control is a "Login" button and the indication information is a non-disabled attribute, when the user clicks the "Login" button, a dialog box such as "Account" and "Password" will pop up for the user to fill in.

[0072] In an embodiment of the present application, a page disable matrix is ​​drawn on the display page so that the control disable matrix of the control updates the page disable matrix. When the user triggers an operation instruction, it is determined whether the indication information of the user's operation instruction is disabled based on the page disable matrix, thereby improving the accuracy of the user's manipulation of the first control. The image processing algorithm is not required to identify the shape of the first control to determine whether it is disabled, thereby improving the speed of manipulation of the first control.

[0073] In some embodiments, before receiving an operation instruction triggered by a user on a display page, it also includes: setting the initial value of each pixel position in the page disable matrix of the display page to non-disabled; drawing the page layer by layer according to each view layer of the display page, and during the page drawing process at any view layer, setting the control disable matrix of the second control according to the disable attribute of the second control in the view layer; and updating the page disable matrix according to the control disable matrix of the second control.

[0074] Specifically, before receiving the operation instruction triggered by the user on the display page, the page disable matrix of the display page is first set. The page disable matrix is ​​an m*n matrix, which corresponds one-to-one to the pixel matrix of the display page. Any position in the page disable matrix is ​​a corresponding pixel position, representing the disable indication corresponding to any pixel of the display page. The initial value of each pixel position in the page disable matrix is ​​set to non-disabled, that is, the disable indication is non-disabled, for example, "0" is used to represent non-disabled, then the page disable matrix is:

[0075] The display page contains multiple view layers, and the pages are drawn layer by layer starting from the bottom layer. If there is a second control in the view layer, the control disable matrix of the second control is set according to the disable attribute of the second control. For example, if the second control is contained in the bottom view layer, and the disable attribute is disabled, the page disable matrix is ​​updated according to the control disable matrix of the bottom second control to obtain the latest page disable matrix. Then the view layer of the second-to-last layer contains another second control, and the disable attribute is not disabled, then the last page disable matrix is ​​updated according to the control disable matrix of another second control in the second-to-last layer to obtain the latest page disable matrix again. For example, "1" is used to represent disable, and the control disable matrix of the disabled control is: The control disable matrix for non-disabled controls is: Among them, a*b represents the size of the control.

[0076] In an embodiment of the present application, the control disable matrix of the second control is set by the disable attribute of the second control, so that the control disable matrix is ​​more accurate, and the page disable matrix is ​​updated by the control disable matrix of the second control to obtain the latest page disable matrix, so that the page disable matrix is ​​more accurate.

[0077] Since the size of the control is usually smaller than the page, in some embodiments, after the control disable matrix of the second control is converted to the position dimension of the display page, the value in the page disable matrix at the same pixel position as the control disable matrix of the second control is updated to the value of the control disable matrix of the second control.

[0078] Specifically, there may be a gap between the dimensions of the control disable matrix and the page disable matrix of the second control. Therefore, after determining the control disable matrix of the second control, the control disable matrix of the second control is converted to the dimensions of the page disable matrix, and the pixel values ​​at the same position in the page disable matrix and the control disable matrix are changed to the pixel values ​​of the control disable matrix of the second control.

[0079] For example, Figure 5 As shown, the largest rectangle is the coordinate system where the page disable matrix is ​​located, and the middle rectangle is the coordinate system where the control disable matrix of the second control is located. The page disable matrix and the control disable matrix, therefore, the control disable matrix of the second control is converted to the page disable control matrix by formula (1).

[0080]

[0081] Among them, x and y are the coordinates of the second control in the control disabled matrix, x a ,y a The coordinates of the second control after converting to the page disabled matrix, x r ,y r The coordinates of the pixel position in the matrix for page disable, x r ,y r You can set a fixed position by yourself.

[0082] In an embodiment of the present application, by updating the values ​​at the same pixel position in the disable matrix of the second control and the page disable matrix in the page disable matrix to the values ​​of the control disable matrix of the second control, the page disable matrix is ​​set according to the disable properties of the second control, thereby enabling the user to manipulate the second control according to the disable properties when triggering the second control.

[0083] The shape of the control disable matrix is ​​mostly rectangular. As shown above, the control disable matrix of the disabled control is: The control disable matrix for non-disabled controls is: However, when encountering irregular shaped controls, especially disabled controls, if you set the control disable matrix according to a regular shape, such as a rectangle, the non-disabled area will be set to disabled. Figure 2 As shown, the defined min_x, max_x, min_y, and max_y are a rectangular shape, and there will be redundant areas. When the user clicks within the rectangular area and not within the button (control), it will be disabled by mistake.

[0084] To solve the above-mentioned irregularly shaped disabled controls, in some embodiments,

[0085] When the disable attribute of the second control is disabled, the transparency of each pixel in the second control is obtained; according to the transparency of each pixel, the control disable matrix of the second control is generated; wherein, the corresponding value of the pixel with zero transparency in the control disable matrix of the second control is non-disabled; the corresponding value of the pixel with non-zero transparency in the control disable matrix of the second control is disabled.

[0086] Specifically, each pixel in the disabled matrix includes at least a transparency value. When the disabled attribute of the second control is disabled, the control disabled matrix of the second control is generated according to the transparency of each pixel. For example, the control disabled matrix of the second control is: A pixel value of 0 represents that the pixel position is not disabled, and a pixel value of non-0 represents that the pixel position is disabled. That is, the transparency value in the second control represents the edge position of the second control. Figure 2 The shaded area in is 1. To facilitate subsequent processing, the pixel position with a pixel point of 0 can be set to "0", and the pixel position with a non-zero pixel point can be set to "1". Then the disabled matrix of the second control is: Whether the pixel point needs to be disabled is determined based on whether the pixel point is 0. Therefore, when an irregular control is encountered, the specific disabled position of the irregular control can be identified more accurately.

[0087] In the embodiment of the present application, the position where the second control needs to be disabled is determined by different pixel points in the control disable matrix where the second control is disabled, thereby ensuring that when the second control is triggered, the range of the second control can be more accurately identified; in the control disable matrix, a transparency of 0 corresponds to non-disabled; a transparency not of 0 corresponds to disabled, so that the second control has a more precise shape.

[0088] In some embodiments, before setting the control disable matrix of the second control according to the disable attribute of the second control in the view layer, it also includes: storing each control whose disable attribute is disabled into an environment variable; and obtaining the disable attribute of any control from the environment variable.

[0089] Specifically, a control whose disabled attribute is disabled is stored in an environment variable. When the view layer is rendered layer by layer in sequence, if a disabled control is stored in the environment variable, the control is obtained from the environment variable, and then a control disable matrix of the control is generated.

[0090] In the embodiment of the present application, the disabled second control is stored in the environment variable. When the second control needs to be rendered as a disabled control, it can be determined based on whether it is stored in the environment variable, making it more convenient to render the second control. The disabled second control can be initially set, such as setting all controls corresponding to other regular function entrances in the page to be disabled in order to guide user operations; or the dynamic controls that appear during the use of the app can be added to the environment variable based on usage experience.

[0091] In some embodiments, receiving an operation instruction triggered by a user on a displayed page includes:

[0092] Receive operation instructions triggered by users remotely on the back-end display page.

[0093] Specifically, when a user needs to control an electronic device that the user is using, an operation instruction sent by the user remotely is received.

[0094] There may also be a situation where multiple controls are superimposed on the display page, such as an advertisement pop-up window on the homepage, an animated image on the advertisement pop-up window, etc. When there are multiple controls on the display page, the control disable matrices corresponding to the various controls are superimposed. The transparency of each control disable matrix at the same position is generally different. Therefore, the embodiment of the present application uses formula (2) to process the superimposed control disable matrix:

[0095] M(x,y)=M(x,y)*z(x,y)......Formula (2)

[0096] Among them, M(x,y) is the page disable matrix, and z(x,y) is the control disable matrix.

[0097] The specific calculation rules are shown in formula (3):

[0098]

[0099] This rule indicates that when the pixel point of the page disable matrix is ​​not disabled and the pixel point of the control disable matrix is ​​also not disabled, the pixel point is finally not disabled; when the pixel point of the page disable matrix is ​​disabled and the pixel point of the control disable matrix is ​​not disabled, the pixel point is finally not disabled; when the pixel point of the page disable matrix is ​​not disabled and the pixel point of the control disable matrix is ​​disabled, the pixel point is finally disabled; when the pixel point of the page disable matrix is ​​not disabled and the pixel point of the control disable matrix is ​​also disabled, the pixel point is finally disabled. The calculation order of formula (3) is: lower view layer * upper view layer.

[0100] For example, the page disable matrix corresponding to the homepage of an app is not disabled, and in the ad pop-up window, except for the "Close" button of the ad pop-up window, the rest are disabled. At this time, in the homepage, the part where the control disable matrix ("1") corresponding to the ad pop-up window (except the "Close" button) overlaps with the page disable matrix ("0") corresponding to the homepage is disabled, and the part where the "Close" button ("0") overlaps with the homepage ("0") is not disabled. When an animated image appears on the ad pop-up window, and the control disable matrix corresponding to the animated image is also disabled except for the "Close" button, the overlapping part of the control disable matrix ("1") corresponding to the animated image and the control disable matrix ("1") corresponding to the ad pop-up window is disabled, and the overlapping part of the "Close" button ("0") and the ad pop-up window ("1") is not disabled. At this time, the rendering order of the display page is: homepage-ad pop-up window-animated image.

[0101] In an embodiment of the present application, a page disable matrix is ​​drawn on the display page so that the control disable matrix of the control updates the page disable matrix. When the user triggers an operation instruction, it is determined whether the indication information of the user's operation instruction is disabled based on the page disable matrix, thereby improving the accuracy of the user's manipulation of the first control. The image processing algorithm is not required to identify the shape of the first control to determine whether it is disabled, thereby improving the speed of manipulation of the first control.

[0102] Based on the same technical concept, the embodiment of the present application provides a control disabling device, such as Figure 6 As shown, the device 600 includes:

[0103] A receiving unit 601 is used to receive an operation instruction triggered by a user on a display page, where the operation instruction is used to instruct to manipulate a first control on the display page;

[0104] The determination unit 602 is used to determine the indication information corresponding to the first control in the page disable matrix; the page disable matrix is ​​obtained by updating the page disable matrix according to the control disable matrix of each control in the view layer layer by layer according to the view layer order when drawing the display page; the control disable matrix of any control is generated according to the disable attribute of the control;

[0105] The termination unit 603 is used to terminate the operation instruction when the indication information is a disabling indication; and respond to the operation instruction when the indication information is a non-disabling indication.

[0106] Optionally, the receiving unit 601 is further configured to:

[0107] Setting the initial value of each pixel position in the page disable matrix of the display page to non-disabled;

[0108] The page is drawn layer by layer according to each view layer of the display page, and during the page drawing process at any view layer, the control disable matrix of the second control is set according to the disable attribute of the second control in the view layer; and the page disable matrix is ​​updated according to the control disable matrix of the second control.

[0109] Optionally, the receiving unit 601 is specifically configured to:

[0110] After converting the control disable matrix of the second control to the position dimension of the display page, the value in the page disable matrix located at the same pixel position as the control disable matrix of the second control is updated to the value of the control disable matrix of the second control.

[0111] Optionally, the receiving unit 601 is specifically configured to:

[0112] When the disabled attribute of the second control is disabled, obtaining the transparency of each pixel in the second control;

[0113] A control disable matrix of the second control is generated according to the transparency of each pixel; wherein, the corresponding values ​​of the pixels with zero transparency in the control disable matrix of the second control are non-disabled; and the corresponding values ​​of the pixels with non-zero transparency in the control disable matrix of the second control are disabled.

[0114] Optionally, the receiving unit 601 is further configured to:

[0115] Store each control with disabled attribute as disabled into environment variables;

[0116] Gets the disabled property of any control from the environment variable.

[0117] Optionally, the receiving unit is specifically configured to:

[0118] Receive operation instructions triggered by users remotely on the back-end display page.

[0119] Based on the same technical concept, the embodiment of the present application provides a computer device, which may be a terminal or a server, such as Figure 7 As shown, it includes at least one processor 701 and a memory 702 connected to the at least one processor. The specific connection medium between the processor 701 and the memory 702 is not limited in the embodiment of the present application. Figure 7 For example, the processor 701 and the memory 702 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, and the like.

[0120] In the embodiment of the present application, the memory 702 stores instructions that can be executed by at least one processor 701, and the at least one processor 701 can execute the steps included in the above-mentioned control disabling method by executing the instructions stored in the memory 702.

[0121] The processor 701 is the control center of the computer device, and can use various interfaces and lines to connect various parts of the computer device, by running or executing instructions stored in the memory 702 and calling data stored in the memory 702. Optionally, the processor 701 may include one or more processing units, and the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701. In some embodiments, the processor 701 and the memory 702 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.

[0122] Processor 701 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.

[0123] The memory 702 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 702 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 702 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 702 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0124] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program that can be executed by a computer device. When the program runs on the computer device, the computer device executes the steps of the above-mentioned control disabling method.

[0125] Based on the same inventive concept, an embodiment of the present application provides a computer program product, characterized in that the computer program product includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer device, the computer device executes the steps of the above-mentioned control disabling method.

[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0127] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing 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.

[0128] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising 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.

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

[0130] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A control disabling method, characterized in that: include: Receiving an operation instruction triggered by a user on a display page, wherein the operation instruction is used to instruct to manipulate a first control on the display page; Determine indication information corresponding to the first control in a page disabled matrix; The page disable matrix is ​​obtained by updating the page disable matrix according to the control disable matrix of each control in the view layer layer by layer in the view layer order when drawing the display page; the control disable matrix of any control is generated according to the disable attribute of the control; When the indication information is a disabling indication, the operation instruction is terminated; when the indication information is a non-disabling indication, the operation instruction is responded to.

2. The method according to claim 1, characterized in that Before receiving the operation instruction triggered by the user on the display page, the method further includes: Setting the initial value of each pixel position in the page disable matrix of the display page to non-disabled; The page is drawn layer by layer according to each view layer of the display page, and during the page drawing process at any view layer, the control disable matrix of the second control is set according to the disable attribute of the second control in the view layer; and the page disable matrix is ​​updated according to the control disable matrix of the second control.

3. The method according to claim 2, characterized in that The updating of the page disabling matrix according to the control disabling matrix of the second control includes: After converting the control disable matrix of the second control to the position dimension of the display page, the value in the page disable matrix located at the same pixel position as the control disable matrix of the second control is updated to the value of the control disable matrix of the second control.

4. The method according to claim 2, characterized in that The step of setting a control disabling matrix of the second control according to the disabling property of the second control in the view layer includes: When the disabled attribute of the second control is disabled, obtaining the transparency of each pixel in the second control; A control disable matrix of the second control is generated according to the transparency of each pixel; wherein, the corresponding values ​​of the pixels with zero transparency in the control disable matrix of the second control are non-disabled; and the corresponding values ​​of the pixels with non-zero transparency in the control disable matrix of the second control are disabled.

5. The method according to claim 2, characterized in that Before setting the control disabling matrix of the second control according to the disabling property of the second control in the view layer, the method further includes: Store each control with disabled attribute as disabled into environment variables; Gets the disabled property of any control from the environment variable.

6. The method according to any one of claims 1 to 5, characterized in that: The receiving of an operation instruction triggered by a user on a display page includes: Receive operation instructions triggered by users remotely on the back-end display page.

7. A control disabling device, characterized in that: include: A receiving unit, configured to receive an operation instruction triggered by a user on a display page, wherein the operation instruction is used to instruct to manipulate a first control on the display page; A determining unit, configured to determine indication information corresponding to the first control in a page disabled matrix; The page disable matrix is ​​obtained by updating the page disable matrix according to the control disable matrix of each control in the view layer layer by layer in the view layer order when drawing the display page; the control disable matrix of any control is generated according to the disable attribute of the control; A termination unit is used to terminate the operation instruction when the indication information is a disabling indication; and respond to the operation instruction when the indication information is a non-disabling indication.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method described in any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that: It stores a computer program executable by a computer device, and when the program is run on the computer device, the computer device executes the steps of any one of the methods described in claims 1 to 6.

10. A computer program product, characterized in that The computer program product comprises a computer program stored on a computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer device, the computer device is caused to execute the steps of the method according to any one of claims 1 to 6.