Data protection method and device
By loading graphic groups with different colors in the mobile terminal display component and replacing layers alternately, the privacy leakage problem caused by screenshots or taking photos is solved, and data protection is achieved without affecting the user experience, which is universal.
Patent Information
- Application Number
- CN202410171376.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2025-08-08
AI Technical Summary
The prior art cannot effectively prevent privacy data leakage caused by screenshots or taking photos on mobile terminals, and existing solutions affect user experience or rely on hardware adjustments to be uncommon.
By loading at least two graphic groups corresponding to the display component of the target device, the graphic colors between each graphic group are different, the rendering information is determined and the graphic groups are rendered in the display component, and alternating layers to be selected are generated to achieve data protection.
Without affecting the normal user experience, it effectively prevents data leakage caused by screenshots or taking photos of screenshots, reduces dependence on hardware, and improves the universality of the method.
Smart Images

Figure CN120448001A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of information security technology, and in particular to a data protection method and apparatus thereof. Background Art
[0002] With the development of computer software and network technologies, more and more functions are being implemented on electronic devices such as mobile terminals. A large number of applications have been designed and put into use, allowing users to use more functions on electronic devices through different applications, such as mobile payment, email sending and receiving, web browsing, instant messaging, etc. With the rapid development of applications, the importance of information security is also becoming increasingly important. When users use applications, if private data is involved, privacy leakage may occur. For example, when a user enters sensitive information such as an account number and password, it may be obtained by a malicious user through malicious screenshots or photos, which will cause certain losses to the user. Therefore, how to implement screen protection to avoid data leakage is an urgent problem that needs to be solved. Summary of the Invention
[0003] In view of this, embodiments of this specification provide a data protection method. One or more embodiments of this specification also relate to a data protection device, a display device, a computing device, a computer-readable storage medium, and a computer program product to address technical deficiencies in the prior art.
[0004] According to a first aspect of an embodiment of this specification, a data protection method is provided, which is applied to a target device and includes:
[0005] Loading at least two graphic groups corresponding to the display component of the target device, wherein the graphics colors of each graphic group are different;
[0006] Determine rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as a target data protection layer.
[0007] According to a second aspect of an embodiment of this specification, a data protection method is provided, which is applied to a target device and includes:
[0008] Determining display parameters corresponding to the display component of the target device;
[0009] Calculating graphic position information associated with the display component based on the display parameters, and generating an initial graphic group including basic graphics according to the graphic position information;
[0010] Adjusting the initial graphic group according to a preset color adjustment strategy to obtain at least two graphic groups, wherein the graphic colors of each graphic group are different;
[0011] Determine rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as a target data protection layer.
[0012] According to a third aspect of an embodiment of this specification, a data protection device is provided, which is applied to a target device and includes:
[0013] a loading module configured to load at least two graphic groups corresponding to the display component of the target device, wherein the graphics colors of each graphic group are different;
[0014] The rendering module is configured to determine rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as a target data protection layer.
[0015] According to a fourth aspect of the embodiments of this specification, a data protection device is provided, which is applied to a target device and includes:
[0016] a determination module, configured to determine display parameters corresponding to the display component of the target device;
[0017] a calculation module configured to calculate graphic position information associated with the display component based on the display parameters, and generate an initial graphic group including basic graphics according to the graphic position information;
[0018] an adjustment module configured to adjust the initial graphic group according to a preset color adjustment strategy to obtain at least two graphic groups, wherein the graphic colors of each graphic group are different;
[0019] The rendering module is configured to determine rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as a target data protection layer.
[0020] According to a fifth aspect of the embodiments of this specification, a display device is provided, comprising a data protection program, wherein the data protection program is used to implement the steps of the above-mentioned data protection method.
[0021] According to a sixth aspect of the embodiments of this specification, there is provided a computing device, including:
[0022] memory and processor;
[0023] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the above-mentioned data protection method are implemented.
[0024] According to a seventh aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned data protection method are implemented.
[0025] According to an eighth aspect of the embodiments of this specification, a computer program product is provided, comprising a computer program or instructions, which implement the steps of the above-mentioned data protection method when executed by a processor.
[0026] This specification provides a data protection method, which is applied to a target device, including loading at least two graphic groups corresponding to a display component of the target device, wherein the graphic colors of each graphic group are different; determining rendering information of the at least two graphic groups, rendering the at least two graphic groups in the display component according to the rendering information, and obtaining a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as a target data protection layer.
[0027] One embodiment of this specification implements loading at least two graphic groups corresponding to the display component of the target device, with the graphic colors of each graphic group being different, and then rendering each graphic group in the display component based on the rendering information to obtain the to-be-selected layer corresponding to each graphic group. The to-be-selected layers corresponding to the graphic groups with different graphic colors are alternately displayed, thereby achieving the function of data protection. By alternating the display of the to-be-selected layers during user use, data leakage due to screenshots, photos, etc. is avoided. While achieving the data protection effect, the normal user experience is not affected, ensuring that the user can browse the displayed content normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a schematic diagram of the effect of a data protection method provided by an embodiment of this specification;
[0029] Figure 2 This is a flow chart of a data protection method provided by one embodiment of this specification;
[0030] Figure 3 This is a schematic diagram of constructing a graphic group in a data protection method provided by one embodiment of this specification;
[0031] Figure 4 This is a flowchart of a data protection method according to an embodiment of the present disclosure;
[0032] Figure 5 is a flow chart of another data protection method provided by an embodiment of this specification;
[0033] Figure 6 This is a schematic diagram of the structure of a data protection device provided by an embodiment of this specification;
[0034] Figure 7 This is a schematic diagram of the structure of a data protection device provided by an embodiment of this specification;
[0035] Figure 8 This is a structural block diagram of a computing device provided by one embodiment of this specification. DETAILED DESCRIPTION
[0036] The following description sets forth many specific details to facilitate a thorough understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.
[0037] The terms used in one or more embodiments of this specification are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of this specification. The singular forms "a," "the," and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0038] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0039] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0040] First, the terms involved in one or more embodiments of this specification are explained.
[0041] Instant messaging software is an application that allows users to engage in real-time, instant text chat, voice calls, video calls, and file sharing. Secure instant messaging software must protect user communication data and privacy from unauthorized access or tampering.
[0042] Screen data protection: Screen data protection refers to a series of technologies and measures designed to prevent unauthorized persons from viewing, copying or recording information displayed on the screen of electronic devices (such as computers, mobile phones or tablets), ensuring that personal privacy and confidential information are not leaked.
[0043] Persistence of vision, also known as the "afterimage" phenomenon, is a characteristic of the human visual system. When a person observes a moving object or image, the visual system retains the image for a period of time, even after the object or image has left their sight. Specifically, after light strikes the retina and stimulates visual nerve cells, the neural signals persist in the brain for a period of time even after the light stimulation ceases. This phenomenon results in the fusion of continuous images, allowing us to perceive smooth motion rather than discrete, static images.
[0044] In today's digital age, instant messaging applications used on mobile phones, computers, and other devices contain a wealth of personal and commercial information. Consequently, concerns about privacy and information security are growing. When users use these applications in public, their screen contents may be photographed and recorded by others. When administrators send confidential commercial information, this information may also be photographed or captured, leading to information leaks. Existing solutions to these problems have shortcomings and limitations. For example, some mobile phones have a "copy capture" feature that issues an alert when it detects a user taking a photo of the screen, preventing others from capturing the screen. However, this feature relies on capturing and recording user behavior, potentially leading to other privacy leaks. It also requires backend analysis of user behavior, which can result in false positives. Alternatively, screen brightness can be controlled by adjusting a PWM signal using specialized hardware. This approach requires specific hardware, is not universally applicable, and the constant adjustment of screen brightness can also impact the user experience.
[0045] Based on this, this specification provides a data protection method. This method, starting from the software level, provides data protection functionality. It effectively protects device display content data from being copied and screenshotted without impacting the user experience. This reduces the hardware requirements for data protection, eliminates the need to modify the hardware structure, and improves the method's universality. This specification also covers a data protection device, a display device, a computing device, and a computer-readable storage medium, each of which is described in detail in the following embodiments.
[0046] See also Figure 1 , Figure 1 A schematic diagram of the effect of a data protection method provided according to an embodiment of the present specification is shown, wherein the original interface of the display component is the application interface displayed to the user by the device terminal when the user uses the chat application through a device terminal such as a mobile phone or a computer. The display component can be understood as the display screen component of the device terminal, and the application interface is displayed to the user through the display screen component. Therefore, in this case, the content displayed in the original interface of the display component may contain user personal privacy. In order to avoid the leakage of privacy information, it is necessary to protect the display content data. For this reason, the data protection method provided in this specification provides users with a data protection function. After the user turns on the data protection method, at least two graphic groups corresponding to the current display component will be loaded. After rendering according to the at least two graphic groups, it can be achieved without affecting the user's browsing of the content, so that the display content data can be prevented from being leaked due to copying and screenshots. For example Figure 1The user viewing effect in the "Data Protection" section refers to the display interface viewed by users after enabling the data protection feature. This display interface includes both the display content layer and the data protection layer. The "Screenshot or Photo" effect refers to the display interface captured by other users when taking a screenshot or photo of the display component with the data protection feature enabled. This display interface includes obvious obstruction stripes, thus protecting the displayed content.
[0047] See also Figure 2 , Figure 2 A flow chart of a data protection method provided according to an embodiment of this specification is shown, which specifically includes the following steps.
[0048] Step 202: loading at least two graphic groups corresponding to the display component of the target device, wherein the graphic colors of each graphic group are different.
[0049] Among them, the target device can be understood as a device used by the user, such as a mobile phone, a computer and other terminal devices. Application software is deployed on the target device, and the user can use the application software to complete various functions through the target device. For example, the application software can be a chat software, and the user can use the chat software to communicate with other users; the application software can be a shopping software, and the user can use the shopping software to shop online, etc. The display component can be understood as the display screen component of the target device, such as the mobile phone screen of a mobile phone, the monitor screen of a computer, etc. The at least two graphic groups corresponding to the display component can be understood as a combination of graphics used to cover the display content, each graphic group includes multiple covering stripes, and the colors of the stripe graphics between each graphic group are different, so that the display content can be covered by alternatingly displaying the graphic groups.
[0050] In actual applications, when users use the relevant functions provided by the application on the target device, if the displayed page involves the user's relevant private data or important information, if the user does not want to leak data, they can choose to enable the data protection function. At this time, the target device will load multiple graphic groups corresponding to the display components and display them by alternating rendering, thereby covering the displayed content with a graphic protection layer. This effectively protects data privacy without affecting user experience.
[0051] In a specific embodiment of the present specification, a user uses instant messaging software on a mobile phone. When the user enters a public place, such as when the user takes the subway, and does not want other passengers to copy the content displayed on the user's mobile phone screen, resulting in the leakage of his or her chat history, the user can choose to turn on the data protection function. At this time, the target device will load multiple graphic groups corresponding to the display component for subsequent graphic group rendering, thereby achieving data protection.
[0052] Furthermore, in order to implement the data protection function and avoid leakage of display content data, when the user turns on the data protection function, it is necessary to load the graphic group corresponding to the display component, and the graphic group corresponding to the display component needs to be generated according to the relevant parameters of the display component, that is, the graphic groups between different display components may be different. Therefore, when performing data protection, it is necessary to detect whether the display component of the current target device has a corresponding graphic group. Specifically, before loading at least two graphic groups corresponding to the display component of the target device, the method also includes: receiving a data protection instruction for the target device, and performing a graphic group detection on the display component of the target device according to the data protection instruction; when it is detected that the display component has a graphic group, continuing to execute the step of loading at least two graphic groups corresponding to the display component of the target device; when it is detected that the display component does not have a graphic group, continuing to execute the step of determining the display parameters corresponding to the display component of the target device.
[0053] In actual applications, since the parameter specifications of display components of different devices vary, a single graphics group cannot be applied to different display components. Therefore, it is necessary to create corresponding graphics groups for each display component. When the data protection function is used for the first time on a device, a graphics group corresponding to the display component needs to be created. When the data protection function is used again, the previously generated graphics group can be used again, thus providing the corresponding data protection function and avoiding the waste of computing resources caused by repeatedly creating graphics groups.
[0054] The data protection instruction can be understood as an instruction to enable the data protection function. When the target device receives the data protection instruction, it can respond to the instruction to enable the data protection function and provide data protection for the user. In actual applications, the data protection instruction can be enabled by the user through the data protection function provided by the application. For example, if this function is deployed in a chat software, the user can issue the data protection instruction by actively enabling it. The data protection instruction can also be automatically issued by the target device. For example, if a mobile phone is set to automatically enable the data protection function after powering on or after the user opens a specified software, the mobile phone background will automatically generate the data protection instruction and respond. Graphics group detection can be understood as detecting whether the display component of the target device has a corresponding graphics group. Through graphics group detection, it can be determined whether the display component currently requiring data protection has a corresponding graphics group. If it does, the data protection step, i.e., loading the graphics group, etc., can be continued. If it does not, it is necessary to continue to execute the step of creating a graphics group according to the display parameters corresponding to the display component of the target device. The display parameters corresponding to the display component may include the corresponding specification parameters of the display component, such as the size parameters and resolution parameters of the display screen.
[0055] During specific implementation, when performing graphic group detection on the display component of the target device, the graphic group identifier can be traversed from the storage space of the target device. If the graphic group identifier is queried, it means that the graphic group resources corresponding to the display component are stored in the storage space of the target device. The graphic group resources can be directly called and loaded, and the subsequent data protection steps can be continued. If the graphic group identifier is not queried, it means that there are no graphic group resources corresponding to the display component in the storage space of the target device. At this time, it is necessary to create graphic group resources for the display component before the data protection steps can be performed based on the graphic group.
[0056] In a specific embodiment of the present specification, a user turns on the data protection function while using a mobile phone for online chatting. At this time, the mobile phone device will receive a data protection instruction. After receiving the data protection instruction, the display component, i.e., the mobile phone screen, will perform a graphic group detection. The detection process includes querying the mobile phone memory to see whether there is a corresponding graphic group resource. If it is found, it means that the current mobile phone screen has a corresponding graphic group, and the corresponding graphic group resource can be directly loaded and subsequent data protection steps can be executed; if it is not found, it means that the current mobile phone screen does not have a corresponding graphic group, and it is necessary to first create a corresponding graphic group for the mobile phone screen before executing subsequent data protection steps.
[0057] Based on this, by performing graphic group detection on the display component before executing the data protection step, different steps are executed according to the detection results, thereby avoiding the waste of computing resources caused by repeated construction of graphic group resources and improving the data protection execution efficiency.
[0058] Furthermore, in order to be able to perform data protection on the display component, it is first necessary to create a graphic group corresponding to the display component, and then use the graphic group to cover the display content of the display component to achieve the data protection effect. Specifically, before loading at least two graphic groups corresponding to the display component of the target device, the method also includes: determining the display parameters corresponding to the display component of the target device; and determining at least two graphic groups corresponding to the display component based on the display parameters.
[0059] In actual applications, in order to protect data for display components, it is necessary to create a graphic group based on the display parameters of the display component. Since the data protection method provided in this manual can be applied to terminal devices of different brands or models, in order to adapt to the display components of different terminal devices, it is necessary to create a graphic group based on the display parameters of the display component, thereby generating a graphic group specific to the display component, so as to better ensure data protection capabilities in the future.
[0060] Among them, the display parameters corresponding to the display component can be understood as the screen display parameters of the display component. For example, the display parameters can be parameters such as the display screen size and the display screen resolution. According to the display parameters of the display component, multiple graphic groups belonging to the display component can be created, and the multiple graphic groups can be used to subsequently perform data protection on the display component.
[0061] In specific implementation, the graphic group is a mask graphic group composed of multiple masking stripes. In order to provide data protection capabilities on any target device, it is necessary to create a graphic group for the display component of the target device, so that data protection functions can be better provided later.
[0062] In a specific embodiment of the present specification, screen display parameters corresponding to a display screen component of a mobile device terminal are determined, and multiple graphic groups corresponding to the display screen component are created according to the screen display parameters.
[0063] Based on this, by creating multiple specific graphic groups for the display component, it is convenient to subsequently perform graphic masking on the display component, thereby achieving the purpose of data protection.
[0064] Furthermore, in order to determine multiple graphic groups corresponding to a display component, it is necessary to determine the mapping position of the graphics in the graphic group in the display component according to the display parameters of the display component. Specifically, at least two graphic groups corresponding to the display component are determined according to the display parameters, including: calculating the graphic position information associated with the display component based on the display parameters, and generating an initial graphic group containing basic graphics according to the graphic position information; adjusting the initial graphic group according to a preset color adjustment strategy to obtain at least two graphic groups corresponding to the display component.
[0065] In practical applications, to ensure data protection for all display components, it's necessary to create specific graphic groups based on the display parameters of the display components themselves. This generates corresponding graphic groups for each display component. Therefore, the graphic position information for the associated display components is calculated based on the display parameters. This graphic position information is then used to generate an initial graphic group containing the base graphics. Subsequently, color adjustments are performed on this initial graphic group to create multiple graphic groups corresponding to the display components.
[0066] The display parameters are the screen display parameters of the display component. These parameters may include screen size, screen resolution, and other parameters. Based on the display parameters, the graphic position information of the associated display component can be calculated. The graphic position information of the associated display component can be understood as the position information of the striped graphic mapped in the display component. The graphic position information may include the vertex coordinate position information of each striped graphic. For example, if the striped graphic is a rectangular graphic, each striped graphic has four vertices. Based on the display parameters, the four vertex mapping coordinates of each striped graphic in the display component need to be calculated. Then, based on the vertex mapping coordinates of each striped graphic, a mapped base graphic is determined in the display component. The base graphic is the striped graphic mapped in the display component based on the graphic position information. In actual applications, since the striped graphic is determined based on the graphic position information, in some cases, the sizes of the striped graphics contained in a display component may vary. After obtaining all the base graphics, an initial graphic group can be created based on all the base graphics. The initial graphic group can be understood as the graphic group generated by combining all the base graphics. Subsequently, the initial graphic group can be adjusted according to a preset color adjustment strategy to adjust the graphic color style of each base graphic in the initial graphic group, thereby constructing multiple graphic groups for the display component. The preset color adjustment strategy can be understood as a strategy for adjusting the color of the basic graphics. The strategy may include color settings, transparency settings, etc. of the basic graphics.
[0067] For specific implementation, see Figure 3 , Figure 3 This is a schematic diagram of constructing a graphic group in a data protection method provided in this specification, wherein: Figure 3 (A) in the figure can be understood as the display screen of the display component. After determining the display parameters of the display screen, the graphic position information associated with the display screen can be calculated based on the display parameters. Based on the graphic position information, the basic graphic for mapping can be determined in the display screen, such as Figure 3 (B) in the figure can be understood as a display screen that maps the basic graphics. That is, after determining the coordinates of the basic graphics, the position of each basic graphics on the display screen is determined, and then each basic graphics on the display screen can be determined. Subsequently, the color of each basic graphics can be adjusted to generate multiple graphic groups on the display screen, such as Figure 3 (C) and (D) in the figure are two graphic groups showing components, and the graphics in these two graphic groups are different in color.
[0068] In a specific embodiment of the present specification, the graphic position information associated with the mobile phone screen, that is, the vertex coordinates of the graphics, is calculated based on the screen parameters of the mobile phone screen. Based on the vertex coordinates, the basic graphics mapped in the mobile phone screen can be constructed, and the corresponding initial graphic group is generated based on all the basic graphics. Then, the basic graphics in the initial graphic group are color-adjusted according to a preset color adjustment strategy to generate multiple graphic groups with different graphic colors.
[0069] Based on this, by creating a graphics group corresponding to the display component according to the display parameters, the graphics position information of the basic graphics is dynamically analyzed and calculated according to the display screen, ensuring that the basic graphics in the graphics group can be reasonably distributed and displayed on the display screen during subsequent rendering.
[0070] Accordingly, in addition to calculating the graphic position information of associated display components based on display parameters, constructing basic graphics using the graphic position information, and combining the constructed basic graphics into an initial graphic group, another specific embodiment of this specification can also use a clipping method to obtain the initial graphic group from a preset graphic group based on the display parameters. Specifically, a larger preset graphic group can be generated in advance, and then the corresponding initial graphic group can be clipped from the preset graphic group based on the size parameters in the display parameters.
[0071] Furthermore, in order to reasonably distribute basic graphics in the display component, in addition to determining the basic graphics based on the display parameters, it is also necessary to obtain preset graphic parameters, which are determined together with the display parameters and the preset graphic parameters. Specifically, the graphic position information associated with the display component is calculated based on the display parameters, and an initial graphic group containing basic graphics is generated based on the graphic position information, including: determining the preset graphic parameters, calculating the graphic position information associated with the display component based on the screen size parameters in the display parameters and the preset graphic parameters; constructing basic graphics in the display component based on the graphic position information, and combining the basic graphics to obtain the initial graphic group.
[0072] Among them, the preset graphic parameters can be understood as parameters set in advance for creating basic graphics. The preset graphic parameters may include parameters such as the graphic shape parameters and the graphic tilt angle of the basic graphics. The graphic shape parameters may be the size parameters of the basic graphics, such as the length parameter, the width parameter, etc. The graphic tilt angle may be the angle at which the basic graphics are tilted on the display screen. Based on the preset graphic parameters and the screen size parameters in the display parameters, the graphic position information can be calculated. The screen size parameter is the screen size of the display component, and the screen size parameters include the screen length and screen width of the display component. Based on the preset graphic parameters and the screen size parameters, the mapping position of the basic graphics in the display component can be calculated, that is, the basic graphics are reasonably distributed on the display screen through calculation. After calculating the vertex coordinates of each basic graphic, the basic graphics can be constructed in the display component according to the vertex coordinates. The basic graphics constructed in combination can obtain the initial graphic group containing the basic graphics.
[0073] In specific implementation, the graphic position information can be calculated according to the preset graphic parameters and screen size parameters according to formula (1). The formula for determining the graphic position information of the i-th basic graphic is as follows:
[0074]
[0075] Where W is the screen width in the screen size parameters, H is the screen length in the screen size parameters, N is the number of basic shapes in the display component, and θ is the tilt angle of the basic shape. P1, P2, P3, and P4 are the position information of the i-th basic shape, including the coordinate position information of the four vertices.
[0076] Based on this, the mapped graphic position information of the basic graphics included in the display component can be calculated by presetting the graphic parameters and the screen size parameters, thereby achieving the purpose of reasonably distributing the basic graphics in the display component.
[0077] Furthermore, in order to achieve data protection in the future, it is necessary to perform color adjustments based on the initial graphic group to generate multiple graphic groups corresponding to the display component, and then use the multiple graphic groups to render and display alternately in sequence, thereby effectively preventing the problem of display content leakage caused by taking photos or screenshots. Adjusting the initial graphic group according to a preset color adjustment strategy to obtain at least two graphic groups corresponding to the display component includes: determining color parameters and graphic arrangement parameters corresponding to the initial graphic group according to the preset color adjustment strategy; generating at least two graphic groups to be colored based on the graphic arrangement parameters and the initial graphic group; and adjusting the at least two graphic groups to be colored based on the color parameters and the graphic arrangement parameters to obtain at least two graphic groups corresponding to the display component.
[0078] In practical applications, according to the principle of persistence of vision, the human eye's perception of images will have a persistence effect, that is, when the light stimulus disappears in a very short time, the vision will continue in the brain for a period of time. Therefore, the principle of persistence of vision can be used to alternately render and display multiple graphic groups of the display component. The graphic group, i.e., the stripe mask, will alternate rapidly in the human vision, causing the human eye to be unable to distinguish individual frames, but instead to feel a mixed transparency perspective effect, thereby achieving the effect that the person cannot perceive the existence of the graphic group and does not affect the human eye's viewing of the screen content. In summary, in order to achieve this effect, it is necessary to generate multiple graphic groups with different graphic colors based on the initial graphic group. The graphic groups with different graphic colors can be understood as the colors of the basic graphics in the graphic group being alternately composed. For example, (C) and (D) in Figure (3) are graphic groups of a certain display component, and the graphic colors of the basic graphics in these two graphic groups are different. In order to generate this type of graphic group, it is necessary to adjust the initial graphic according to the preset color adjustment strategy.
[0079] Among them, the preset color adjustment strategy can be understood as a strategy for adjusting the color of the basic graphics in the initial graphic group. The preset color adjustment strategy can include the color adjustment range, adjustment quantity, etc. of each basic graphic. According to the preset color adjustment strategy, the color parameters and graphic arrangement parameters corresponding to the initial graphic group can be determined. The color parameters are the setting parameters of the color corresponding to each basic graphic. The graphic arrangement parameters can be understood as the arrangement order of the graphic color settings in the initial graphic group. The graphic arrangement parameters can determine the number of graphic groups to be generated. For example, if the number of graphic groups to be generated is 2, the graphic arrangement parameters can determine that the basic graphics in the initial graphic group are arranged in two colors. According to the graphic arrangement parameters and the initial graphic group, multiple graphic groups to be colored can be generated. The graphic group to be colored can be understood as a graphic group that has not yet undergone color adjustment. In a sense, the graphic group to be colored is equivalent to the initial graphic group. At that time, the basic graphics in the graphic group to be colored specify the basic graphics to be colored. Subsequently, the basic graphics are color-adjusted according to the color parameters, thereby generating a corresponding number of graphic groups.
[0080] In specific implementations, the transparency style of the basic graphics can be adjusted using a preset color adjustment strategy. For a given graphic group size of two, each graphic group consists of alternating basic graphics with a transparency of α1 and a transparency of α2, where 0 ≤ α1 ≤ 20 and 235 ≤ α2 ≤ 255. The color arrangement of the basic graphics within each graphic group is determined by the graphic arrangement parameters, resulting in two graphic groups with different graphic colors.
[0081] In a specific embodiment of this specification, color parameters corresponding to the initial graphic group are determined according to a preset color adjustment strategy, namely, transparency a1 and transparency a2. The color of the basic graphic is subsequently adjusted according to these color parameters. Graphic arrangement parameters corresponding to the initial graphic group are determined, namely, a corresponding number of graphic groups need to be generated in the initial graphic group according to the graphic arrangement parameters.
[0082] Based on this, the color of the basic graphics is adjusted through color parameters and graphic arrangement parameters to generate a corresponding number of graphic groups, which is convenient for subsequent alternating rendering and display in the display component to ensure the effect of data protection.
[0083] Step 204: Determine rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a layer to be selected corresponding to each graphic group, wherein each layer to be selected alternately serves as a target data protection layer.
[0084] In actual applications, after loading at least two graphic groups of the display component, these graphic groups can be rendered and displayed, thereby achieving a data protection effect. Before rendering, it is necessary to obtain the rendering information of at least two graphic groups, and the rendering information is used to render the parameters of the graphic groups in the display component. The layer to be selected corresponding to each graphic group can be understood as a layer for display generated after each graphic group is rendered. The graphic group can be considered as the graphic data stored in the memory, and the layer to be selected is the image data obtained after rendering the graphic group. Subsequently, multiple layers to be selected can be selected in turn as the target data protection layer to achieve a data protection effect.
[0085] In a specific embodiment of the present specification, the number of graphic groups is 2, the rendering information of each graphic group is determined, and two graphic groups are rendered in the display component according to the rendering information to obtain the to-be-selected layer corresponding to each graphic group. When displaying, a to-be-selected layer can be selected in turn as the target data protection layer for display. In this way, the alternating display of the two to-be-selected layers is achieved, thereby realizing data protection without affecting the user's viewing experience.
[0086] Furthermore, in order to prevent the rendering and display of the graphic group from affecting the user's browsing of the displayed content, it is necessary to set the rendering and display switching time between the graphic groups, and specifically determine the rendering information of the at least two graphic groups, including: calculating the graphic group switching rate according to the display refresh rate in the display parameters, and using the graphic group switching rate as the rendering information of the at least two graphic groups; wherein, rendering the at least two graphic groups in the display component according to the rendering information to obtain the to-be-selected layer corresponding to each graphic group, including: calculating the rendering interval parameters corresponding to the at least two graphic groups according to the graphic group switching rate; rendering the at least two graphic groups based on the rendering interval parameters to obtain the to-be-selected layer corresponding to each graphic group.
[0087] In actual applications, in order to protect the browsing content while not affecting the user's normal browsing, the rendering display switching rate between graphic groups needs to be set to be higher than the human eye's recognizable frequency and lower than the screen refresh rate. Therefore, it is necessary to determine the rendering information based on the display parameters. pov It is about 1 / 16 to 1 / 25 seconds, which is the frequency that the human eye can recognize. Therefore, when the graphics group switching rate f is high enough switch When the layers to be selected corresponding to the graphic group are displayed alternately, the layers corresponding to the graphic group will alternate rapidly in the human vision, making it impossible for the human eye to distinguish individual frames. Instead, the human eye perceives a mixed transparency visual effect. The human eye cannot perceive the existence of the graphic group, achieving the effect of not affecting the human eye's viewing of the screen content. However, the graphic group switching rate f switch It must be less than the screen refresh rate f screen , so that the image captured by the mobile device at the moment of the screenshot, that is, an independent image frame, will still contain opaque basic graphics, that is, opaque stripes, resulting in the display content being partially hidden. For the photo shooting situation, the graphic group switching rate f is also set switch Less than the camera shutter frequency f cam Therefore, the switching rate of the graphics group should meet the following conditions to achieve data protection function: eye ≤f switch ≤f cam , f switch ≤f screen That is, the graphics group switching rate needs to be greater than the human eye recognition frequency, and less than the screen refresh rate and camera shutter frequency.
[0088] The display refresh rate in the display parameters can be understood as the device screen refresh rate of the display component. The graphics group switching rate can be calculated based on the display refresh rate. In specific implementations, multiple graphics group switching rates with different values can be pre-set, and the appropriate graphics group switching rate can be selected based on the display refresh rate. After calculating the graphics group switching rate, the graphics group switching rate can be used as rendering information, and the rendering information can be used to render each graphics group in the display component, thereby obtaining the to-be-selected layer corresponding to each graphics group.
[0089] In specific implementation, since the shutter frequency of the camera cannot be known in advance, only the screen refresh rate can be considered. After determining the display refresh rate in the display parameters, the graphic group switching rate can be calculated, and then the graphic group switching rate can be used as the rendering information of each graphic group. Subsequently, each graphic group is rendered in the display component according to the rendering information to obtain the image to be selected corresponding to each graphic group. During the rendering process, the graphic group switching rate can be used to calculate the rendering interval parameter between graphic groups. The rendering interval parameter can be understood as the interval between the time of rendering a graphic group and the time of rendering the next graphic group. By rendering each graphic group according to the rendering interval parameter, the layer to be selected corresponding to each graphic group can be obtained. Rendering update interval time During the interval, a graphics group is rendered once, and during the next interval, another graphics group is switched and re-rendered, thereby realizing the alternating switching of "transparent-opaque-transparent-opaque" in the screen area.
[0090] In summary, by setting the corresponding graphics group switching rate according to the screen display refresh rate and using the graphics group switching rate for subsequent graphics group rendering, it is ensured that the browsing content is protected without affecting the user's browsing experience.
[0091] It should be noted that the above rendering method calls the graphics group's resources for rendering each time a graphics group is rendered, and then displayed. In another rendering method provided in this manual, in order to save rendering resources, the layers to be selected for each graphics group can be rendered in advance and stored in the image memory. The corresponding layers can then be directly called from the image memory for display during subsequent display, thereby achieving the effect of alternating layer display.
[0092] Furthermore, after rendering the at least two graphic groups in the display component according to the rendering information and obtaining the layer to be selected corresponding to each graphic group, the method also includes: calculating the display interval parameters corresponding to the at least two graphic groups; determining the target data protection layer in the layer to be selected corresponding to each graphic group according to the display interval parameters and displaying it.
[0093] Among them, the display interval parameter is the interval between the time of displaying a certain graphic group and the time of displaying the next graphic group. According to the display interval parameter, the target data protection layer can be selected from the to-be-selected layers at a certain interval and displayed.
[0094] In actual applications, in order to reduce the computing overhead caused by the device's rendering resources, the rendered layers to be selected can be stored in the corresponding video memory resources. When the layers to be selected are subsequently selected as the target data protection layers, they can be selected directly from the video memory resources, thereby achieving fast display and reducing the overhead caused by repeated rendering.
[0095] Furthermore, after determining the target data protection layer, the display content can be displayed based on the currently selected target data protection layer. Specifically, after obtaining the layer to be selected corresponding to each graphic group, the method also includes: determining the display layer corresponding to the current display content of the display component, and determining the target data protection layer in the layer to be selected corresponding to each graphic group; merging the display layer and the target data protection layer to generate a layer to be displayed and displaying it.
[0096] The display layer corresponding to the currently displayed content can be understood as the layer of the content currently being displayed in the display component. For example, if the currently displayed content is a chat interface, the display layer corresponding to the currently displayed content is the display layer of the chat interface. The target data protection layer is the layer selected from the layers to be selected for display in the current frame. By merging the display layer and the target data protection layer, data protection is implemented for the displayed content in the display layer.
[0097] In actual applications, when the display layer and the target data protection layer are merged, the target data protection layer should be placed on the top layer of the software. This layer covers all pages, including the display content of the application software, to achieve protection of the screen data display content.
[0098] Based on this, by selecting a target data protection layer from the layers to be selected and merging the target data protection layer with the display layer, data protection of the display content is achieved.
[0099] This specification provides a data protection method, which is applied to a target device and includes loading at least two graphic groups corresponding to a display component of the target device, wherein the graphic colors of each graphic group are different; determining rendering information of the at least two graphic groups, rendering the at least two graphic groups in the display component according to the rendering information, and obtaining a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer is alternately used as a target data protection layer. This method is implemented by loading at least two graphic groups corresponding to the display component of the target device, wherein the graphic colors of each graphic group are different, and then rendering each graphic group in the display component according to the rendering information to obtain a to-be-selected layer corresponding to each graphic group. This method achieves the function of data protection by alternately displaying the to-be-selected layers corresponding to graphic groups with different graphic colors. By alternately displaying the to-be-selected layers when the user is using the system, data leakage due to screenshots, photos, etc. is avoided. On the premise of achieving the data protection effect, the normal user experience is not affected, ensuring that the user can browse the displayed content normally.
[0100] The following combined Figure 4 , taking the application of the data protection method provided in this specification in protecting chat records as an example, the data protection method is further explained. Figure 4 A flowchart of a data protection method according to an embodiment of the present specification is shown, which specifically includes the following steps.
[0101] Step 402: Determine display parameters corresponding to the display component of the target device.
[0102] In one achievable manner, the target device is a mobile terminal device used by a user, the display component is a mobile screen corresponding to the mobile terminal device, and the display parameters corresponding to the display component are screen size parameters of the mobile screen.
[0103] Step 404: Determine the preset graphic parameters, and calculate the graphic position information of the associated display component according to the screen size parameter in the display parameters and the preset graphic parameters.
[0104] In one feasible method, the preset graphic parameters include the size and tilt angle of the basic graphic, i.e., the stripes. The graphic position information, i.e., the vertex coordinate information, of the stripes mapped on the mobile phone screen is calculated based on the screen size parameters and the stripe parameters.
[0105] Step 406: construct basic graphics in the display component according to the graphic position information, and combine the basic graphics to obtain an initial graphic group.
[0106] In one feasible method, based on the vertex coordinate information of each stripe, a basic graphic of mapping, namely the stripes, can be constructed on the mobile phone screen, and all the stripes can be combined to generate an initial graphic group.
[0107] Step 408: Determine the color parameters and graphic arrangement parameters corresponding to the initial graphic group according to the preset color adjustment strategy.
[0108] In one achievable manner, the color parameter, ie, transparency parameter, of each stripe in the stripe mask, as well as the graphic arrangement parameter and arrangement of each stripe in the stripe mask are determined according to a preset color adjustment strategy, such as alternating two stripes in a group.
[0109] Step 410: Generate at least two graphic groups to be colored according to the graphic arrangement parameters and the initial graphic group.
[0110] In one implementable manner, two graphic groups to be colored are generated according to the graphic arrangement parameters and the initial graphic group.
[0111] Step 412: Adjust at least two graphic groups to be colored based on the color parameter and the graphic arrangement parameter to obtain at least two graphic groups corresponding to the display component.
[0112] In one feasible manner, the colors of the basic graphics, ie, stripes, in the two groups of graphics to be colored are adjusted according to the color parameters and the graphic arrangement parameters to obtain the final two stripe masks.
[0113] Step 414: Calculate the graphics group switching rate according to the display refresh rate in the display parameters, and calculate rendering interval parameters corresponding to at least two graphics groups according to the graphics group switching rate.
[0114] In one achievable manner, the switching rate of the graphics group is determined according to the screen refresh rate of the mobile phone screen, and the rendering interval time is calculated according to the graphics group switching rate.
[0115] Step 416: Render at least two graphic groups based on the rendering interval parameter to obtain a layer to be selected corresponding to each graphic group.
[0116] In one achievable manner, two graphic groups, namely, stripe masks, are rendered according to a rendering interval to obtain two layers to be selected.
[0117] Step 418: Determine the display layer corresponding to the current display content of the display component, and determine the target data protection layer in the to-be-selected layer corresponding to each graphic group.
[0118] Step 420: Merge the display layer and the target data protection layer to generate a layer to be displayed and display it.
[0119] In one achievable method, the target data protection layer is overlaid on the display layer to generate and display the layer to be displayed.
[0120] This specification provides a data protection method applied to a target device, which is implemented by loading at least two graphic groups corresponding to the display component of the target device, with the graphic colors of each graphic group being different, and then rendering each graphic group in the display component based on the rendering information to obtain the to-be-selected layer corresponding to each graphic group. The to-be-selected layers corresponding to the graphic groups with different graphic colors are alternately displayed, thereby achieving the function of data protection. By alternating the display of the to-be-selected layers when the user is using it, data leakage due to screenshots, photos, etc. is avoided. Under the premise of achieving the data protection effect, the normal user experience is not affected, ensuring that the user himself can browse the displayed content normally.
[0121] See also Figure 5 , Figure 5 A flowchart of another data protection method provided according to an embodiment of this specification is shown, which specifically includes the following steps.
[0122] Step 502: Determine display parameters corresponding to the display component of the target device.
[0123] Step 504: Calculate graphic position information associated with the display component based on the display parameters, and generate an initial graphic group including basic graphics according to the graphic position information.
[0124] Step 506: adjusting the initial graphic group according to a preset color adjustment strategy to obtain at least two graphic groups, wherein the graphic colors of each graphic group are different.
[0125] Step 508: Determine rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a layer to be selected corresponding to each graphic group, wherein each layer to be selected alternately serves as a target data protection layer.
[0126] In actual applications, when the target device starts the data protection function for the first time, it is necessary to first determine the display parameters corresponding to the display components of the target device, and then calculate the graphic position information based on the display parameters, and use the graphic position information to generate an initial graphic group containing basic graphics. Subsequently, the color of the initial graphic group is adjusted to generate multiple graphic groups with different graphic colors. Then, data protection rendering can be performed by alternately rendering the graphic groups according to the rendering information and displaying the corresponding layers to be selected, thereby achieving data protection for the display content data without affecting the user experience. It should be noted that, in order to avoid repeated descriptions of the technical solution, the details not described in detail in the above data protection method can be found in the description of the technical solution of another data protection method.
[0127] This specification provides a data protection method, comprising determining display parameters corresponding to a display component of a target device; calculating graphic position information associated with the display component based on the display parameters, and generating an initial graphic group containing basic graphics based on the graphic position information; adjusting the initial graphic group according to a preset color adjustment strategy to obtain at least two graphic groups, wherein the graphic colors of each graphic group are different; determining rendering information for the at least two graphic groups, rendering the at least two graphic groups in the display component according to the rendering information, and obtaining a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as a target data protection layer. By calculating the graphic position information associated with the display component based on the display parameters of the display component and generating an initial graphic group containing basic graphics based on the graphic position information, the basic graphics can be reasonably distributed according to different screen sizes, thereby improving the universality of the method. Subsequently, the color of the initial graphic group is adjusted to generate multiple graphic groups, and the multiple graphic groups are rendered, with the corresponding to-be-selected layers alternately displayed, thereby achieving data protection of the browsing content without affecting the user's browsing experience.
[0128] Corresponding to the above method embodiment, this specification also provides a data protection device embodiment, Figure 6 FIG1 shows a schematic diagram of the structure of a data protection device provided by an embodiment of this specification. Figure 6 As shown, the device includes:
[0129] A loading module 602 is configured to load at least two graphic groups corresponding to the display component of the target device, wherein the graphics colors of each graphic group are different;
[0130] The rendering module 604 is configured to determine the rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain the to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as the target data protection layer.
[0131] Optionally, the apparatus further includes a determining module configured to determine display parameters corresponding to a display component of the target device; and determine at least two graphic groups corresponding to the display component according to the display parameters.
[0132] Optionally, the determination module is further configured to calculate the graphic position information associated with the display component based on the display parameters, generate an initial graphic group containing basic graphics according to the graphic position information; adjust the initial graphic group according to a preset color adjustment strategy to obtain at least two graphic groups corresponding to the display component.
[0133] Optionally, the determination module is further configured to determine preset graphic parameters, calculate graphic position information associated with the display component based on the screen size parameters in the display parameters and the preset graphic parameters; construct a basic graphic in the display component based on the graphic position information, and combine the basic graphics to obtain an initial graphic group.
[0134] Optionally, the determination module is further configured to determine the color parameters and graphic arrangement parameters corresponding to the initial graphic group according to a preset color adjustment strategy; generate at least two graphic groups to be colored based on the graphic arrangement parameters and the initial graphic group; and adjust the at least two graphic groups to be colored based on the color parameters and the graphic arrangement parameters to obtain at least two graphic groups corresponding to the display component.
[0135] Optionally, the determination module is further configured to calculate a graphics group switching rate based on a display refresh rate in the display parameters, and use the graphics group switching rate as rendering information for the at least two graphics groups. Rendering the at least two graphics groups in the display component according to the rendering information to obtain a to-be-selected layer corresponding to each graphics group includes: calculating rendering interval parameters corresponding to the at least two graphics groups based on the graphics group switching rate; and rendering the at least two graphics groups based on the rendering interval parameters to obtain a to-be-selected layer corresponding to each graphics group.
[0136] Optionally, the device further includes a calculation module configured to calculate display interval parameters corresponding to the at least two graphic groups; determine and display the target data protection layer in the to-be-selected layer corresponding to each graphic group according to the display interval parameters.
[0137] Optionally, the device also includes a merging module, which is configured to determine the display layer corresponding to the current display content of the display component, and determine the target data protection layer in the layer to be selected corresponding to each graphic group; merge the display layer and the target data protection layer to generate a layer to be displayed and display it.
[0138] Optionally, the device also includes a detection module, which is configured to receive a data protection instruction for the target device and perform a graphic group detection on the display component of the target device according to the data protection instruction; when it is detected that a graphic group exists for the display component, continue to execute the step of loading at least two graphic groups corresponding to the display component of the target device; when it is detected that no graphic group exists for the display component, continue to execute the step of determining the display parameters corresponding to the display component of the target device.
[0139] This specification provides a data protection device, which is applied to a target device and includes: a loading module configured to load at least two graphic groups corresponding to the display component of the target device, wherein the graphic colors of each graphic group are different; a rendering module configured to determine rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as the target data protection layer. This device achieves data protection by loading at least two graphic groups corresponding to the display component of the target device, wherein the graphic colors of each graphic group are different, and then rendering each graphic group in the display component according to the rendering information to obtain a to-be-selected layer corresponding to each graphic group. This device achieves data protection by alternately displaying the to-be-selected layers corresponding to the graphic groups with different graphic colors. By alternately displaying the to-be-selected layers when the user is using the device, data leakage due to screenshots, photos, etc. is avoided. While achieving data protection, this device does not affect the user's normal experience, ensuring that the user can browse the displayed content normally.
[0140] The above is a schematic scheme of a data protection device of this embodiment. It should be noted that the technical scheme of the data protection device and the technical scheme of the above-mentioned data protection method are of the same concept. For details not described in detail in the technical scheme of the data protection device, please refer to the description of the technical scheme of the above-mentioned data protection method.
[0141] Corresponding to the above method embodiment, this specification also provides a data protection device embodiment, Figure 7 FIG. 1 shows a schematic diagram of the structure of another data protection device provided by an embodiment of this specification. Figure 7 As shown, the device includes:
[0142] A determination module 702 is configured to determine display parameters corresponding to the display component of the target device;
[0143] A calculation module 704 is configured to calculate graphic position information associated with the display component based on the display parameters, and generate an initial graphic group including basic graphics according to the graphic position information;
[0144] An adjustment module 706 is configured to adjust the initial graphic group according to a preset color adjustment strategy to obtain at least two graphic groups, wherein the graphic colors of each graphic group are different;
[0145] The rendering module 708 is configured to determine the rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain the to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as the target data protection layer.
[0146] This specification provides a data protection device, comprising a determination module configured to determine display parameters corresponding to a display component of a target device; a calculation module configured to calculate graphic position information associated with the display component based on the display parameters, and generate an initial graphic group containing basic graphics based on the graphic position information; an adjustment module configured to adjust the initial graphic group according to a preset color adjustment strategy to obtain at least two graphic groups, wherein the graphic colors of each graphic group are different; and a rendering module configured to determine rendering information for the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as a target data protection layer. By calculating the graphic position information associated with the display component based on the display parameters of the display component and generating an initial graphic group containing basic graphics based on the graphic position information, the basic graphics can be reasonably distributed according to different screen sizes, thereby improving the universality of the method. Subsequently, the initial graphic group is color-adjusted to generate multiple graphic groups, and the multiple graphic groups are rendered, with the corresponding to-be-selected layers alternately displayed, thereby achieving data protection of the browsing content without affecting the user's browsing experience.
[0147] The above is a schematic scheme of a data protection device of this embodiment. It should be noted that the technical scheme of the data protection device and the technical scheme of the above-mentioned data protection method are of the same concept. For details not described in detail in the technical scheme of the data protection device, please refer to the description of the technical scheme of the above-mentioned data protection method.
[0148] Figure 8 8 shows a block diagram of a computing device 800 according to one embodiment of the present disclosure. Components of the computing device 800 include, but are not limited to, a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and a database 850 is used to store data.
[0149] The computing device 800 also includes an access device 840 that enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 840 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, or a near field communication (NFC) interface.
[0150] In one embodiment of the present specification, the above components of the computing device 800 and Figure 8 Other components not shown in the figure may also be connected to each other, for example, via a bus. Figure 8 The computing device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art may add or replace other components as needed.
[0151] Computing device 800 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, personal digital assistant, laptop computer, notebook computer, netbook computer, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smartwatch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or personal computer (PC). Computing device 800 may also be a mobile or stationary server.
[0152] The processor 820 is configured to execute the following computer-executable instructions, which implement the steps of the above-mentioned data protection method when executed by the processor.
[0153] The above is a schematic solution of a computing device of this embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above-mentioned data protection method are of the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the above-mentioned data protection method.
[0154] An embodiment of the present specification further provides a display device, comprising a data protection program, wherein the data protection program is used to implement the steps of the above-mentioned data protection method.
[0155] The above is a schematic solution of a display device of this embodiment. It should be noted that the technical solution of the display device and the technical solution of the above-mentioned data protection method are of the same concept. For details not described in detail in the technical solution of the display device, please refer to the description of the technical solution of the above-mentioned data protection method.
[0156] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which implement the steps of the above-mentioned data protection method when executed by a processor.
[0157] The above is a schematic diagram of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the data protection method described above are based on the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the data protection method described above.
[0158] An embodiment of the present specification further provides a computer program product, including a computer program or instructions, which implements the steps of the above-mentioned data protection method when executed by a processor.
[0159] The above is a schematic solution of a computer program product of this embodiment. It should be noted that the technical solution of this computer program product and the technical solution of the above-mentioned data protection method are based on the same concept. For details not described in detail in the technical solution of the computer program product, please refer to the description of the technical solution of the above-mentioned data protection method.
[0160] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0161] The computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media does not include electric carrier signals and telecommunication signals.
[0162] It should be noted that for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.
[0163] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0164] The preferred embodiments disclosed above are intended only to help illustrate this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made based on the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. A data protection method, applied to a target device, comprising: Loading at least two graphic groups corresponding to the display component of the target device, wherein the graphics colors of each graphic group are different; Determine rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as a target data protection layer.
2. The method according to claim 1, before loading the at least two graphic groups corresponding to the display component of the target device, the method further comprises: Determining display parameters corresponding to the display component of the target device; At least two graphic groups corresponding to the display component are determined according to the display parameters.
3. The method according to claim 2, wherein determining at least two graphic groups corresponding to the display component according to the display parameters comprises: Calculating graphic position information associated with the display component based on the display parameters, and generating an initial graphic group including basic graphics according to the graphic position information; The initial graphic group is adjusted according to a preset color adjustment strategy to obtain at least two graphic groups corresponding to the display component.
4. The method according to claim 3, wherein calculating the graphic position information associated with the display component based on the display parameters and generating an initial graphic group including basic graphics according to the graphic position information comprises: Determining preset graphic parameters, and calculating graphic position information associated with the display component based on a screen size parameter in the display parameters and the preset graphic parameters; A basic graphic is constructed in the display component according to the graphic position information, and the basic graphics are combined to obtain an initial graphic group.
5. The method according to claim 3, wherein the initial graphic group is adjusted according to a preset color adjustment strategy to obtain at least two graphic groups corresponding to the display component, comprising: Determining color parameters and graphic arrangement parameters corresponding to the initial graphic group according to a preset color adjustment strategy; generating at least two graphic groups to be colored according to the graphic arrangement parameters and the initial graphic group; The at least two graphic groups to be colored are adjusted based on the color parameter and the graphic arrangement parameter to obtain at least two graphic groups corresponding to the display component.
6. The method according to claim 2, determining rendering information of the at least two graphics groups, comprising: Calculating a graphics group switching rate according to a display refresh rate in the display parameters, and using the graphics group switching rate as rendering information of the at least two graphics groups; Rendering the at least two graphic groups in the display component according to the rendering information to obtain a layer to be selected corresponding to each graphic group includes: Calculating rendering interval parameters corresponding to the at least two graphics groups according to the graphics group switching rate; The at least two graphic groups are rendered based on the rendering interval parameter to obtain a layer to be selected corresponding to each graphic group.
7. The method according to claim 1, wherein after rendering the at least two graphic groups in the display component according to the rendering information and obtaining the to-be-selected layer corresponding to each graphic group, the method further comprises: Calculating display interval parameters corresponding to the at least two graphic groups; The target data protection layer is determined and displayed in the to-be-selected layer corresponding to each graphic group according to the display interval parameter.
8. The method according to claim 1, after obtaining the to-be-selected layer corresponding to each graphic group, further comprising: Determine the display layer corresponding to the current display content of the display component, and determine the target data protection layer in the to-be-selected layers corresponding to each graphic group; The display layer and the target data protection layer are merged to generate a layer to be displayed and displayed.
9. The method according to claim 2, before loading the at least two graphic groups corresponding to the display component of the target device, the method further comprises: receiving a data protection instruction for the target device, and performing a graphic group detection on a display component of the target device according to the data protection instruction; In the case of detecting that the display component has a graphic group, continuing to perform the step of loading at least two graphic groups corresponding to the display component of the target device; In the case that it is detected that the display component does not have a graphic group, the step of determining the display parameters corresponding to the display component of the target device is continued.
10. A data protection method, applied to a target device, comprising: Determining display parameters corresponding to the display component of the target device; Calculating graphic position information associated with the display component based on the display parameters, and generating an initial graphic group including basic graphics according to the graphic position information; Adjusting the initial graphic group according to a preset color adjustment strategy to obtain at least two graphic groups, wherein the graphic colors of each graphic group are different; Determine rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as a target data protection layer.
11. A data protection device, applied to a target device, comprising: a loading module configured to load at least two graphic groups corresponding to the display component of the target device, wherein the graphics colors of each graphic group are different; The rendering module is configured to determine rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as a target data protection layer.
12. A data protection device, applied to a target device, comprising: a determination module, configured to determine display parameters corresponding to the display component of the target device; a calculation module configured to calculate graphic position information associated with the display component based on the display parameters, and generate an initial graphic group including basic graphics according to the graphic position information; an adjustment module configured to adjust the initial graphic group according to a preset color adjustment strategy to obtain at least two graphic groups, wherein the graphic colors of each graphic group are different; The rendering module is configured to determine rendering information of the at least two graphic groups, render the at least two graphic groups in the display component according to the rendering information, and obtain a to-be-selected layer corresponding to each graphic group, wherein each to-be-selected layer alternately serves as a target data protection layer.
13. A display device comprising a data protection program, wherein the data protection program is used to implement the steps of the method according to any one of claims 1 to 10.
14. A computing device comprising: memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the method according to any one of claims 1 to 10 are implemented.
15. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the steps of the method according to any one of claims 1 to 10.
16. A computer program product comprising a computer program or instructions, which implement the steps of the method according to any one of claims 1 to 10 when executed by a processor.
Citation Information
Patent Citations
Image processing method and terminal
CN107148775A
Information display method and device for terminal equipment, electronic equipment and storage medium
CN107657179A
Page information protection method and device, equipment and storage medium
CN116841684A