Watermark generation method and device for cloud desktop
By detecting the opening conditions on the cloud desktop and providing a customized watermark setting interface, it solves the problems of cloud desktop data security and copyright protection, achieves personalized and efficient watermark display, and improves user experience and security.
Patent Information
- Application Number
- CN202410862968.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-22
AI Technical Summary
Cloud desktop technology faces data security and copyright protection issues in practical applications. The existing watermark usage method is single, users cannot customize it, and changing watermarks is cumbersome, affecting user experience and security.
Provide a watermark generation method for cloud desktops, detect whether the cloud desktop meets the watermark opening conditions, and automatically or manually open the watermark setting interface according to the sensitivity of the usage scenario. Users can customize the watermark content, format and location, and display the watermark in real time.
Enhance the security and personalization of cloud desktops through custom watermarks, prevent the leakage of sensitive information, simplify user operations, and improve data protection and user experience.
Smart Images

Figure CN118821084A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security, and in particular to a watermark generation method and device for a cloud desktop. Background Art
[0002] Cloud computing is an Internet-based computing method that allows enterprises to access data and applications anytime, anywhere, without having to worry about where they are. Cloud desktops are based on cloud computing technology. Through cloud computing technology, desktop operating systems and applications can be deployed in the cloud, and users can access these resources through the network. With the rapid development of cloud computing technology, cloud desktops, as a new form of remote desktop service, are increasingly receiving widespread attention and application. Cloud desktop technology allows users to connect to a remote server through the network to obtain a fully functional virtual desktop environment. This technology not only realizes the centralized management and dynamic allocation of computing resources, but also provides users with a seamless access experience across platforms and devices.
[0003] The core of cloud desktop technology is to migrate the traditional desktop environment (including operating system, application software and user data) to the cloud server, and users can access these resources through thin clients (such as thin computers, tablets, smart phones, etc.) using remote desktop protocols (such as RDP, ICA, SPICE, etc.). This approach not only reduces the hardware requirements of terminal devices, but also improves data security and manageability.
[0004] However, cloud desktop technology also faces some challenges in practical applications, one of which is data security and copyright protection. For data security issues, watermarks can be used as a mark to prove the source and ownership of data. If the data is illegally copied or leaked, watermarks can help track and locate the source of the data, so that corresponding measures can be taken to protect the security of the data. However, the existing watermark usage is single and fixed, and does not support user-defined settings. In addition, if the user needs to change the watermark, he needs to reconnect to the cloud desktop, which is cumbersome and inconvenient to use.
[0005] With respect to the above-mentioned problems existing in the related technologies, no effective solutions have been found yet. Summary of the invention
[0006] The present invention provides a watermark generation method and device for a cloud desktop.
[0007] According to one aspect of an embodiment of the present application, a watermark generation method for a cloud desktop is provided, which is applied to a cloud desktop, and the method includes: detecting whether the cloud desktop meets a watermark activation condition; when the cloud desktop meets the watermark activation condition, opening a watermark setting interface to a user of the cloud desktop so that the user can set watermark information; obtaining the watermark information set by the user through the watermark setting interface, and displaying the watermark on the cloud desktop according to the watermark information.
[0008] Further, detecting whether the cloud desktop meets the watermark activation condition includes: detecting whether the user triggers the watermark setting operation; when the user triggers the watermark setting operation, determining that the cloud desktop meets the watermark activation condition; otherwise, determining that the cloud desktop does not meet the watermark activation condition.
[0009] Further, detecting whether the cloud desktop meets the watermark activation condition includes: obtaining the usage scenario of the cloud desktop; determining whether the cloud desktop meets the watermark activation condition according to the sensitivity of the usage scenario, wherein the sensitivity is used to indicate the confidentiality level or the security level, and the higher the confidentiality level or the security level, the higher the sensitivity.
[0010] Furthermore, the usage scenario includes at least: users using the cloud desktop and businesses processed by the cloud desktop; determining whether the cloud desktop meets the watermark activation condition based on the sensitivity of the usage scenario, including: determining whether the cloud desktop meets the watermark activation condition based on the sensitivity of the users using the cloud desktop and / or the sensitivity of the businesses processed by the cloud desktop.
[0011] Further, the sensitivity level includes at least a high sensitivity level and a low sensitivity level; determining whether the cloud desktop meets the watermark activation condition according to the sensitivity level of the user using the cloud desktop and / or the sensitivity level of the business processed by the cloud desktop includes: when the sensitivity level of the user using the cloud desktop is a high sensitivity level and / or the sensitivity level of the business processed by the cloud desktop is a high sensitivity level, determining that the cloud desktop meets the watermark activation condition; when the sensitivity level of the user using the cloud desktop is a low sensitivity level and / or the sensitivity level of the business processed by the cloud desktop is a low sensitivity level, detecting whether the user using the cloud desktop enables the watermark, and when the user using the cloud desktop enables the watermark, determining that the cloud desktop meets the watermark activation condition.
[0012] Furthermore, the watermark setting interface is used to set the following watermark information: watermark content, watermark format and watermark position; wherein the watermark content includes at least one of the following: picture, text; the watermark format includes at least one of the following: font, font size, font color, font style, line spacing, column spacing, tilt, transparency.
[0013] Further, displaying a watermark on the cloud desktop according to the watermark information includes: generating a desktop superimposed watermark image according to the watermark information; and superimposing and displaying the desktop superimposed watermark image on the current desktop background.
[0014] Further, generating a desktop overlay watermark image according to the watermark information includes: calling a desktop overlay layer program through an application program interface, and the desktop overlay layer program generates a corresponding desktop overlay watermark image according to the watermark information; and displaying the desktop overlay watermark image on the current desktop background by overlaying it, including: drawing the desktop overlay watermark image on the desktop overlay layer through the desktop overlay layer program.
[0015] Furthermore, after displaying the watermark on the cloud desktop according to the watermark information, it also includes: monitoring whether the user modifies the watermark information; when the user modifies the watermark information, obtaining the modified watermark information; generating the desktop overlay watermark image according to the modified watermark information; and displaying the desktop overlay watermark image overlaid with the current desktop background.
[0016] According to another aspect of the embodiment of the present application, a watermark generation device for a cloud desktop is also provided, which is applied to the cloud desktop, and the device includes: a detection module, used to detect whether the cloud desktop meets the watermark activation condition; a setting module, used to open a watermark setting interface to the user of the cloud desktop when the cloud desktop meets the watermark activation condition, so that the user can set the watermark information; a display module, used to obtain the watermark information set by the user through the watermark setting interface, and display the watermark on the cloud desktop according to the watermark information.
[0017] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above steps are executed when the program is run.
[0018] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the program stored in the memory.
[0019] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps in the above method.
[0020] Through the present invention, it is detected whether the cloud desktop meets the watermark activation conditions. When the cloud desktop meets the watermark activation conditions, the watermark setting interface is opened to the user of the cloud desktop so that the user can set the watermark information, and the watermark is displayed on the cloud desktop according to the watermark information. By adding a watermark on the cloud desktop, it can prevent others from obtaining sensitive information on the desktop through actions such as screenshots or photos, thereby avoiding copyright disputes. In addition, users can customize watermarks such as text, numbers, images, etc. according to their needs, so that the desktop is personalized and can be used for purposes such as marking, reminders or publicity. Therefore, the present invention can not only meet the customized needs of different users and enhance the user experience of using the cloud desktop by customizing the addition of watermarks on the cloud desktop, but also improve the security of the cloud desktop, which is conducive to the development and application of the cloud desktop. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0022] Figure 1 is a hardware structure block diagram of a computer according to an embodiment of the present invention;
[0023] Figure 2 is a flow chart of a watermark generation method for a cloud desktop according to an embodiment of the present invention;
[0024] Figure 3 is a flow chart of another watermark generation method for a cloud desktop according to an embodiment of the present invention;
[0025] Figure 4 is a flow chart of a watermark generation and display process according to an embodiment of the present invention;
[0026] Figure 5 It is a structural block diagram of a watermark generation device for a cloud desktop according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Example 1
[0030] The method embodiment provided in the first embodiment of the present application can be executed in a controller, a server, a computer, a tablet or a similar computing and scheduling device. Taking running on a computer as an example, Figure 1 is a hardware structure block diagram of a computer according to an embodiment of the present invention. Figure 1 As shown, the computer may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the computer may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0031] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a watermark generation method for a cloud desktop in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0032] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0033] In this embodiment, a watermark generation method for a cloud desktop is provided. The cloud desktop is also called desktop virtualization and cloud computer, which is a new model to replace traditional computers. After adopting the cloud desktop, users no longer need to buy a computer host. The CPU, memory, hard disk and other components contained in the host are all virtualized in the back-end server. A single high-performance server can virtualize 1-50 virtual hosts; the mainstream front-end device is to use a thin client (a device similar to a TV set-top box) to connect the display and keyboard and mouse. After the user installs the client, he accesses the virtual machine host on the back-end server through a unique communication protocol to achieve interactive operations and achieve the same experience effect as the computer. At the same time, the cloud desktop not only supports the replacement of traditional computers, but also supports other smart devices such as mobile phones and tablets to access on the Internet, and is also the latest solution for mobile office. However, cloud desktop technology also faces some challenges in practical applications, one of which is data security and copyright protection issues. For data security issues, watermarks can be used as a mark to prove the source and ownership of data. If the data is illegally copied or leaked, the watermark can help track and locate the source of the data, so as to take corresponding measures to protect the security of the data.
[0034] Figure 2 is a flow chart of a watermark generation method for a cloud desktop according to an embodiment of the present invention. Figure 2As shown, the process includes the following steps:
[0035] Step S202, detecting whether the cloud desktop meets the watermark activation condition;
[0036] By detecting whether the cloud desktop meets the watermark opening conditions, the cloud desktop can automatically open and close the watermark function;
[0037] Step S204, when the cloud desktop meets the watermark activation condition, a watermark setting interface is opened to the user of the cloud desktop so that the user can set the watermark information;
[0038] In the present invention, the watermark function can be set by customization and displayed on the cloud desktop according to different settings, thereby improving the personalization of the entire cloud desktop and meeting the usage requirements of different users; in the prior art, watermarks are generally displayed in a fixed form, such as a user name or a digital code, and users can only choose to use or not use the watermark, and the form of the watermark cannot be customized;
[0039] Step S206, obtaining the watermark information set by the user through the watermark setting interface, and displaying the watermark on the cloud desktop according to the watermark information.
[0040] After the user sets the watermark information, the watermark information set by the user is obtained, and then the watermark is generated and displayed, realizing the complete function of the user-defined watermark.
[0041] In the above implementation, it is detected whether the cloud desktop meets the watermark activation conditions. When the cloud desktop meets the watermark activation conditions, the watermark setting interface is opened to the user of the cloud desktop so that the user can set the watermark information, and the watermark is displayed on the cloud desktop according to the watermark information. By adding a watermark to the cloud desktop, it is possible to prevent others from obtaining sensitive information on the desktop through actions such as screenshots or photos, thereby avoiding copyright disputes. In addition, users can customize watermarks such as text, numbers, images, etc. according to their needs, so that the desktop is personalized and can be used for purposes such as marking, reminders or publicity. Therefore, the present invention can not only meet the customized needs of different users and enhance the user experience of using the cloud desktop by customizing the addition of watermarks on the cloud desktop, but also improve the security of the cloud desktop, which is conducive to the development and application of the cloud desktop. The watermark generation method for the cloud desktop is applied to the cloud desktop, and the method includes:
[0042] In the present invention, the function of turning on and off the watermark is provided for different users to choose. Specifically, detecting whether the cloud desktop meets the watermark turning-on condition includes: detecting whether the user triggers the watermark setting operation; when the user triggers the watermark setting operation, determining that the cloud desktop meets the watermark turning-on condition; otherwise, determining that the cloud desktop does not meet the watermark turning-on condition. That is, when the user needs to use the watermark, the watermark setting is turned on, and when the user chooses not to use the watermark, the watermark setting is not turned on. Through the above-mentioned detection and control methods, the watermark is turned on in accordance with the user's usage intention and meets the user's watermark usage requirements at any time.
[0043] Optionally, detecting whether the cloud desktop meets the watermark activation condition also includes: obtaining the usage scenario of the cloud desktop; and determining whether the cloud desktop meets the watermark activation condition according to the sensitivity of the usage scenario. In the above-mentioned watermark activation setting method, whether the cloud desktop meets the watermark activation condition can be determined according to the sensitivity of the usage scenario. This judgment step belongs to an automatic judgment method, and can automatically determine whether to activate the watermark according to the usage scenario, thereby improving the intelligence of watermark use, automatically activating the watermark for scenarios with usage needs, avoiding the occurrence of data leakage caused by users forgetting to activate the watermark, and ensuring user data security.
[0044] The sensitivity is used to indicate the confidentiality level or security level, and the higher the confidentiality level or security level, the higher the sensitivity. The above-mentioned usage scenarios at least include: users using the cloud desktop and businesses processed by the cloud desktop; determining whether the cloud desktop meets the watermark activation conditions according to the sensitivity of the usage scenarios includes: determining whether the cloud desktop meets the watermark activation conditions according to the sensitivity of the users using the cloud desktop and / or the sensitivity of the businesses processed by the cloud desktop.
[0045] Specifically, the sensitivity level includes at least a high sensitivity level and a low sensitivity level; determining whether the cloud desktop meets the watermark activation condition based on the sensitivity level of the user using the cloud desktop and / or the sensitivity level of the business processed by the cloud desktop includes: when the sensitivity level of the user using the cloud desktop is a high sensitivity level and / or the sensitivity level of the business processed by the cloud desktop is a high sensitivity level, determining that the cloud desktop meets the watermark activation condition; when the sensitivity level of the user using the cloud desktop is a low sensitivity level and / or the sensitivity level of the business processed by the cloud desktop is a low sensitivity level, detecting whether the user using the cloud desktop has enabled the watermark, and when the user using the cloud desktop has enabled the watermark, determining that the cloud desktop meets the watermark activation condition. The watermark is automatically enabled in the above-mentioned usage scenarios with high sensitivity, and of course, the user can also be provided with the right to choose, that is, asking the user's willingness to enable before automatic activation, and enabling the watermark when the user chooses to enable it.
[0046] The above-mentioned strategy of selecting whether to enable the watermark according to the usage scenario makes the activation of the watermark more intelligent and more in line with the characteristic of the watermark involving information sensitivity. For example, for desktops that need to process highly sensitive or critical business data, the watermark can be directly enabled, that is, the source of illegal theft can be traced through the watermark. In addition, for desktops used by employees in some sensitive departments, such as finance and legal affairs, the watermark policy can be enabled to protect the data. Of course, if it is an ordinary office desktop or an ordinary employee authorized desktop, it can be decided whether to enable the watermark based on the corresponding security policy and the type of data accessed. Therefore, the above-mentioned implementation method of the present invention can make the choice of watermark use in a variety of environments.
[0047] In the present invention, watermarks can be set by customization, and the watermark setting interface is used to set the following watermark information: watermark content, watermark format and watermark position; wherein the watermark content includes at least one of the following: picture, text; the watermark format includes at least one of the following: font, font size, font color, font style, line spacing, column spacing, tilt, transparency. Users can customize dynamic watermarks such as text, numbers, images, etc. according to their needs to personalize the desktop. And these watermarks can be used for marking, reminders or publicity purposes.
[0048] After setting the watermark information, the watermark is displayed on the cloud desktop according to the watermark information, including: generating a desktop overlay watermark image according to the watermark information; and overlaying and displaying the desktop overlay watermark image with the current desktop background. Among them, generating a desktop overlay watermark image according to the watermark information includes: calling a desktop overlay layer program through an application program interface, and the desktop overlay layer program generates a corresponding desktop overlay watermark image according to the watermark information; and overlaying and displaying the desktop overlay watermark image with the current desktop background includes: drawing the desktop overlay watermark image on the desktop overlay layer through the desktop overlay layer program. Further, after displaying the watermark on the cloud desktop according to the watermark information, it also includes: monitoring whether the user modifies the watermark information; when the user modifies the watermark information, obtaining the modified watermark information; generating a desktop overlay watermark image according to the modified watermark information; and overlaying and displaying the desktop overlay watermark image with the current desktop background.
[0049] After obtaining the watermark configuration, the configuration is used to generate a watermark. Specifically, the system API (Application Programming Interface) is first called in the cloud desktop to call the specified desktop overlay program, which is equivalent to directly setting a layer of drawing board for the cloud desktop. Then the content of the watermark configuration, including text and pictures, is obtained, and the format of the watermark is set according to the configuration. The image will be drawn directly on the desktop overlay, which will not generate the corresponding watermark image and save it locally like the traditional watermark technology, and then call the watermark image for display. The desktop overlay used in the present invention is like treating the desktop overlay as a drawing board, and dynamically drawing the watermark directly on it. Therefore, if the watermark configuration is modified, the drawn watermark on the cloud desktop will be directly changed according to the configuration to achieve the effect of a dynamic watermark.
[0050] In this solution, the watermark function module can be customized and adjusted at any time, and it takes effect immediately. That is, the user does not need to re-login to the client or relink the linked desktop, which greatly facilitates the user's use and modification of the watermark, making the use scenarios of the cloud desktop flexible and more practical and safe in actual use scenarios.
[0051] By adding a watermark to the cloud desktop, the present invention can prevent others from obtaining sensitive information on the desktop through actions such as screenshots or photos, thereby avoiding company copyright disputes. Users can customize dynamic watermarks such as text, numbers, images, etc. according to their needs to personalize the desktop. These watermarks can be used for purposes such as marking, reminders, or publicity. By adding a watermark to the cloud desktop, for example, a picture watermark can paste the original picture on the desktop, making the desktop more personalized while improving the security of the desktop.
[0052] Figure 3 is a flow chart of another watermark generation method for a cloud desktop according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0053] S301: Start;
[0054] S302: Log in to the client, after the client currently logs in to the user account, link the desktop's IP, current time and other content, and then determine the use scenario of the cloud desktop;
[0055] S303: Sensitive data desktop, for this scenario, directly turn on the watermark and go to step S308;
[0056] S304: Sensitive departments use the desktop. For this scenario, directly turn on the watermark and go to step S308;
[0057] S305: Ordinary office desktop / ordinary employee privilege desktop. For this scenario, the watermark is enabled according to the user's selection, and the process goes to step S306;
[0058] S306: Determine whether to enable watermark, if yes, proceed to step S308, otherwise proceed to step S307;
[0059] S307: directly connect to the cloud host, and the desktop has no watermark display; when the user does not need to display the watermark, the cloud desktop is directly used without performing steps such as watermark setting;
[0060] S308: Setting watermarks; watermarks can be displayed on the cloud desktop according to different settings, including text content (text and pictures), font, font size, font color, bold, italic, line spacing, column spacing, tilt, transparency, and position, to ensure the personalization of the entire cloud desktop;
[0061] S309: Generate a watermark;
[0062] S310: desktop overlay program, desktop watermark display; based on the system API program interface and the custom desktop overlay, by calling the system API program interface to run the specified program process, activate the custom desktop overlay program, obtain the set watermark custom configuration, generate the watermark, and display it on the cloud desktop;
[0063] S311: End.
[0064] In this solution, the watermark function module can be customized and adjusted at any time, and it takes effect immediately. That is, the user does not need to re-login to the client or re-link the linked desktop. The flowchart of the entire watermark generation and display process is as follows: Figure 4 As shown, the following steps are included:
[0065] S401: Start;
[0066] S402: Start the desktop overlay program; call the system API program interface in the cloud desktop to call the specified desktop overlay program, which is equivalent to directly setting a layer of drawing board for the cloud desktop;
[0067] S403: Obtain watermark configuration; obtain the content of the watermark configuration, including text, pictures and other information;
[0068] S404: modify the watermark configuration; if the watermark configuration is modified, the drawn watermark on the cloud desktop will be directly changed according to the configuration, achieving the effect of a dynamic watermark;
[0069] S405: the watermark is directly drawn on the desktop overlay; the format of the watermark is set according to the configuration, and the image is directly drawn on the desktop overlay. Unlike the traditional watermark technology, the corresponding watermark image is not generated and saved locally, and then the watermark image is called for display. It is like treating the desktop overlay as a drawing board and drawing dynamically on it directly;
[0070] S406: End.
[0071] According to the above method, the customized dynamic watermark is implemented in the cloud desktop, making the use scenarios of the cloud desktop flexible and more practical and safe in actual use scenarios.
[0072] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0073] Example 2
[0074] In this embodiment, a watermark generation device for a cloud desktop is also provided to implement the above-mentioned embodiments and preferred implementation modes, which have been described and will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0075] Figure 5 is a structural block diagram of a watermark generation device for a cloud desktop according to an embodiment of the present invention. Figure 5 As shown, the device includes: a detection module 502, a setting module 504, and a display module 506, wherein:
[0076] Detection module 502, used to detect whether the cloud desktop meets the watermark activation condition;
[0077] The setting module 504 is used to open a watermark setting interface to the user of the cloud desktop when the cloud desktop meets the watermark opening condition, so that the user can set the watermark information;
[0078] The display module 506 is used to obtain the watermark information set by the user through the watermark setting interface, and display the watermark on the cloud desktop according to the watermark information.
[0079] In the above implementation, it is detected whether the cloud desktop meets the watermark activation conditions. When the cloud desktop meets the watermark activation conditions, the watermark setting interface is opened to the user of the cloud desktop so that the user can set the watermark information, and the watermark is displayed on the cloud desktop according to the watermark information. By adding a watermark on the cloud desktop, it is possible to prevent others from obtaining sensitive information on the desktop through actions such as screenshots or photos, thereby avoiding copyright disputes. In addition, users can customize watermarks such as text, numbers, images, etc. according to their needs, so that the desktop is personalized and can be used for purposes such as marking, reminders or publicity. Therefore, the present invention can not only meet the customized needs of different users and enhance the user experience of using the cloud desktop by customizing the addition of watermarks on the cloud desktop, but also improve the security of the cloud desktop, which is conducive to the development and application of the cloud desktop.
[0080] The detection module 502 includes: a detection submodule, used to detect whether the user triggers the watermark setting operation; a triggering submodule, used to determine that the cloud desktop meets the watermark activation condition when the user triggers the watermark setting operation; otherwise, determine that the cloud desktop does not meet the watermark activation condition.
[0081] The detection module 502 includes: an acquisition submodule, which is used to acquire the usage scenario of the cloud desktop; and a determination submodule, which is used to determine whether the cloud desktop meets the watermark activation condition according to the sensitivity of the usage scenario.
[0082] Among them, the usage scenario includes at least: users using the cloud desktop, and businesses processed by the cloud desktop; the determination submodule is used to determine whether the cloud desktop meets the watermark activation condition based on the sensitivity of the users using the cloud desktop and / or the sensitivity of the businesses processed by the cloud desktop, wherein the sensitivity is used to indicate the confidentiality level or the security level, and the higher the confidentiality level or the security level, the higher the sensitivity.
[0083] Specifically, the sensitivity level includes at least a high sensitivity level and a low sensitivity level; the determination submodule includes: a first determination unit, used to determine that the cloud desktop meets the watermark activation condition when the sensitivity level of the user using the cloud desktop is a high sensitivity level and / or the sensitivity level of the business processed by the cloud desktop is a high sensitivity level; a second determination unit, used to detect whether the user using the cloud desktop has enabled the watermark when the sensitivity level of the user using the cloud desktop is a low sensitivity level and / or the sensitivity level of the business processed by the cloud desktop is a low sensitivity level, and when the user using the cloud desktop enables the watermark, determine that the cloud desktop meets the watermark activation condition.
[0084] Furthermore, the watermark setting interface is used to set the following watermark information: watermark content, watermark format and watermark position; wherein the watermark content includes at least one of the following: picture, text; the watermark format includes at least one of the following: font, font size, font color, font style, line spacing, column spacing, tilt, transparency.
[0085] The display module 506 includes: a generation submodule, which is used to generate a desktop overlay watermark image according to the watermark information; and a display submodule, which is used to overlay the desktop overlay watermark image with the current desktop background for display.
[0086] The generation submodule is used to call the desktop overlay program through the application program interface, and the desktop overlay program generates a corresponding desktop overlay watermark image according to the watermark information; the display submodule is used to draw the desktop overlay watermark image on the desktop overlay through the desktop overlay program.
[0087] The device also includes: a modification module, which is used to monitor whether the user modifies the watermark information after the watermark is displayed on the cloud desktop according to the watermark information; when the user modifies the watermark information, obtain the modified watermark information; generate the desktop overlay watermark image according to the modified watermark information; and overlay the desktop overlay watermark image with the current desktop background and display it.
[0088] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0089] Example 3
[0090] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0091] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0092] S1, detect whether the cloud desktop meets the watermark activation conditions;
[0093] S2, when the cloud desktop meets the watermark enabling conditions, a watermark setting interface is opened to the user of the cloud desktop so that the user can set the watermark information;
[0094] S3, obtaining the watermark information set by the user through the watermark setting interface, and displaying the watermark on the cloud desktop according to the watermark information.
[0095] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0096] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0097] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0098] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0099] S1, detect whether the cloud desktop meets the watermark activation conditions;
[0100] S2, when the cloud desktop meets the watermark enabling conditions, a watermark setting interface is opened to the user of the cloud desktop so that the user can set the watermark information;
[0101] S3, obtaining the watermark information set by the user through the watermark setting interface, and displaying the watermark on the cloud desktop according to the watermark information.
[0102] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0103] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0104] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0105] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0106] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0107] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0108] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0109] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A watermark generation method for a cloud desktop, characterized in that: Applied to a cloud desktop, the method includes: Detecting whether the cloud desktop meets the watermark activation condition; When the cloud desktop meets the watermark activation condition, opening a watermark setting interface to a user of the cloud desktop so that the user can set watermark information; The watermark information set by the user is obtained through the watermark setting interface, and the watermark is displayed on the cloud desktop according to the watermark information.
2. The method according to claim 1, characterized in that Detecting whether the cloud desktop meets the watermark activation condition includes: Detect whether the user triggers the watermark setting operation; When the user triggers the watermark setting operation, determining that the cloud desktop meets the watermark activation condition; Otherwise, it is determined that the cloud desktop does not meet the watermark activation condition.
3. The method according to claim 1, characterized in that Detecting whether the cloud desktop meets the watermark activation condition includes: Obtaining a usage scenario of the cloud desktop; Determine whether the cloud desktop meets the watermark activation condition according to the sensitivity of the usage scenario; wherein the sensitivity is used to indicate the confidentiality level or the security level, and the higher the confidentiality level or the security level, the higher the sensitivity.
4. The method according to claim 3, characterized in that The usage scenario at least includes: users using the cloud desktop and services processed by the cloud desktop; determining whether the cloud desktop meets the watermark activation condition according to the sensitivity of the usage scenario includes: Whether the cloud desktop meets the watermark activation condition is determined according to the sensitivity of the user using the cloud desktop and / or the sensitivity of the business processed by the cloud desktop.
5. The method according to claim 4, characterized in that The sensitivity level includes at least a high sensitivity level and a low sensitivity level; Determining whether the cloud desktop meets the watermark activation condition according to the sensitivity of the user using the cloud desktop and / or the sensitivity of the business processed by the cloud desktop includes: When the sensitivity of the user using the cloud desktop is high and / or the sensitivity of the business processed by the cloud desktop is high, determining that the cloud desktop meets the watermark activation condition; When the sensitivity level of the user using the cloud desktop is low and / or the sensitivity level of the business processed by the cloud desktop is low, detect whether the user using the cloud desktop has enabled the watermark. When the user using the cloud desktop has enabled the watermark, determine that the cloud desktop meets the watermark enabling condition.
6. The method according to claim 1, characterized in that The watermark setting interface is used to set the following watermark information: watermark content, watermark format and watermark position; wherein the watermark content includes at least one of the following: picture, text; the watermark format includes at least one of the following: font, font size, font color, font style, line spacing, column spacing, tilt, transparency.
7. The method according to claim 1, characterized in that Displaying a watermark on the cloud desktop according to the watermark information includes: Generate a desktop overlay watermark image according to the watermark information; The desktop overlay watermark image is overlaid and displayed with the current desktop background.
8. The method according to claim 7, characterized in that Generating a desktop overlay watermark image according to the watermark information, including: calling a desktop overlay layer program through an application program interface, wherein the desktop overlay layer program generates a corresponding desktop overlay watermark image according to the watermark information; The desktop overlay watermark image is overlaid and displayed with the current desktop background, including: drawing the desktop overlay watermark image on the desktop overlay layer through the desktop overlay layer program.
9. The method according to claim 7, characterized in that: After displaying the watermark on the cloud desktop according to the watermark information, the method further includes: Monitoring whether the user modifies the watermark information; When the user modifies the watermark information, obtaining the modified watermark information; Generating the desktop overlay watermark image according to the modified watermark information; The desktop overlay watermark image is overlaid and displayed with the current desktop background.
10. A watermark generation device for a cloud desktop, characterized in that: Applied to a cloud desktop, the device comprises: A detection module, used to detect whether the cloud desktop meets the watermark activation condition; A setting module, used for opening a watermark setting interface to a user of the cloud desktop when the cloud desktop meets the watermark enabling condition, so that the user can set watermark information; The display module is used to obtain the watermark information set by the user through the watermark setting interface, and display the watermark on the cloud desktop according to the watermark information.
11. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; wherein: Memory, used to store computer programs; A processor, configured to execute the method steps of any one of claims 1 to 8 by running a program stored in a memory.
12. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method steps of any one of claims 1 to 9 when executed.
