An image transmission method, apparatus, device, and storage medium
Patent Information
- Application Number
- CN202310500397.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-28
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2043-04-28
AI Technical Summary
维护人员能够远程通过网络登录到服务器,并能在远端显示服务器操作系统图像、操作服务器,但是这样一来维护人员可以在远程终端上随意截取相关图像信息,或者使用移动设备进行拍照,从而导致服务器内容或者相关信息的泄露,泄露之后无法追踪泄露源
[0042]可见,本申请提供了一种图像传输方法,包括:接收主机处理器发送的图像数据;利用预设水印添加方法对所述图像数据进行处理,以得到处理后图像数据;利用预设压缩算法压缩所述处理后图像数据,以得到压缩后图像数据,并将所述压缩后图像数据发送至远程终端。由此可见,本申请通过对接收到的图像数据添加水印,使得基板管理控制器中的图像数据为添加水印后的数据,并将压缩后的水印数据发送至远程终端进行显示,将特定水印信息通过数字信号处理的方式嵌入到被保护图像里面,从而使得传输的图像内容得到保护,以便基于水印信息进行数据溯源,提高了服务器远程控制中图像传输的安全性。
Smart Images

Figure CN116489476B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of content security protection technology, and in particular to an image transmission method, apparatus, device, and storage medium. Background Technology
[0002] With the development of technologies such as big data and cloud computing, enterprises are demanding more and more servers, making server security a critical issue. Maintenance personnel can remotely log into servers via the network and view and operate the server's operating system images remotely. However, this also allows maintenance personnel to arbitrarily capture relevant image information on remote terminals or take photos with mobile devices, leading to the leakage of server content or related information, and making it impossible to trace the source of the leak. Summary of the Invention
[0003] In view of this, the purpose of this invention is to provide an image transmission method, apparatus, device, and storage medium that can improve the security of image transmission in remote server control. The specific solution is as follows:
[0004] In a first aspect, this application discloses an image transmission method applied to a substrate management controller, comprising:
[0005] Receive image data sent by the host processor;
[0006] The image data is processed using a preset watermarking method to obtain processed image data;
[0007] The processed image data is compressed using a preset compression algorithm to obtain compressed image data, and the compressed image data is then sent to a remote terminal.
[0008] Optionally, the step of processing the image data using a preset watermarking method to obtain processed image data includes:
[0009] Obtain the target resolution information corresponding to the image data;
[0010] Retrieve the target watermark information corresponding to the target resolution information from the watermark identifier storage area;
[0011] Read the current image data from the image data in the video memory, and generate the current processed image data based on the preset image data processing method, the current image data, and the target watermark information;
[0012] The processed image data is obtained by combining all the currently processed image data corresponding to the image data.
[0013] Optionally, before obtaining the target watermark information corresponding to the target resolution information from the watermark identifier storage area, the method further includes:
[0014] Obtain the current watermark image and determine whether the current watermark image is a grayscale image;
[0015] If the current watermark image is not a grayscale image, then the current watermark image is converted into a grayscale image;
[0016] Determine the current resolution from the preset resolution set;
[0017] The pixel values of the grayscale image are converted based on the current resolution and a preset binary conversion method to obtain the watermark information corresponding to the current resolution;
[0018] The watermark information corresponding to each resolution in the preset resolution set is integrated to obtain a watermark information set;
[0019] Each watermark in the watermark information set is compressed and encoded using a run-length encoding method to obtain an encoded watermark information set, and the encoded watermark information set is stored in the watermark identifier storage area.
[0020] Optionally, after obtaining the target watermark information corresponding to the target resolution information from the watermark identifier storage area, the method further includes:
[0021] The target watermark information is decoded to obtain the decoded watermark information, and the decoded watermark information is stored in the buffer.
[0022] Optionally, the step of reading current image data from the image data in video memory and generating currently processed image data based on a preset image data processing method, the current image data, and the target watermark information includes:
[0023] Read the current image data from the image data in the video memory, and determine the current pixel position information corresponding to the current image data;
[0024] Obtain the target decoded watermark information corresponding to the target watermark information from the buffer;
[0025] Obtain the decoded watermark position information corresponding to the current pixel position information from the target decoded watermark information;
[0026] Determine whether the decoded watermark position information meets the preset image data processing conditions;
[0027] If the decoded watermark position information satisfies the preset image data processing conditions, then the current processed image data is obtained based on the current pixel position information corresponding to the preset image data processing method and the decoded watermark position information processing.
[0028] Optionally, obtaining the currently processed image data based on the current pixel position information corresponding to the preset image data processing method and the decoded watermark position information processing includes:
[0029] Determine the target watermark transparency, and determine the target image data processing method based on the target watermark transparency;
[0030] Based on the target image data processing method and the current pixel position information corresponding to the decoded watermark position information processing, the current processed image data is obtained.
[0031] Optionally, sending the compressed image data to a remote terminal includes:
[0032] The compressed image data is retrieved from memory and sent to a remote terminal so that the remote terminal can decompress the compressed image data using a preset decompression method to obtain and display the processed image data.
[0033] Secondly, this application discloses an image transmission device applied to a substrate management controller, comprising:
[0034] Image data receiving module, used to receive image data sent by host processor;
[0035] The image processing module is used to process the image data using a preset watermarking method to obtain processed image data.
[0036] An image compression module is used to compress the processed image data using a preset compression algorithm to obtain compressed image data.
[0037] An image sending module is used to send the compressed image data to a remote terminal.
[0038] Thirdly, this application discloses an electronic device, including:
[0039] Memory, used to store computer programs;
[0040] A processor is configured to execute the computer program to implement the steps of the image transmission method disclosed above.
[0041] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the image transmission method disclosed above.
[0042] As can be seen, this application provides an image transmission method, including: receiving image data sent by a host processor; processing the image data using a preset watermarking method to obtain processed image data; compressing the processed image data using a preset compression algorithm to obtain compressed image data; and sending the compressed image data to a remote terminal. Therefore, this application, by adding a watermark to the received image data, ensures that the image data in the baseboard management controller is watermarked data, and sends the compressed watermarked data to the remote terminal for display. By embedding specific watermark information into the protected image through digital signal processing, the transmitted image content is protected, enabling data traceability based on the watermark information and improving the security of image transmission in remote server control. Attached Figure Description
[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0044] Figure 1 This is a flowchart of an image transmission method disclosed in this application;
[0045] Figure 2 This is a schematic diagram of the image transmission method disclosed in this application;
[0046] Figure 3 This is a flowchart of a specific image transmission method disclosed in this application;
[0047] Figure 4 A schematic diagram of the digital watermarking device disclosed in this application;
[0048] Figure 5 A schematic diagram of the image transmission device provided in this application;
[0049] Figure 6 This application provides a structural diagram of an electronic device. Detailed Implementation
[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0051] Currently, maintenance personnel can arbitrarily capture relevant image information on remote terminals or take photos using mobile devices, leading to the leakage of server content or related information, and the source of the leakage cannot be traced afterward. In digital streaming media applications, such as the implementation of visible watermark embedding technology, this technology includes modules such as video capture, video encoding, watermark embedding, and streaming media processing, which can embed corresponding digital watermarks in real time. However, this technology is implemented through software and cannot be applied to KVM (Keyboard Video Mouse) in remote server control. This solution has high real-time requirements, but the relevant software cannot run on the baseboard management controller on the server. Furthermore, this technology is combined with specific encoding techniques, limiting its application scope, and the watermark embedding is performed after encoding, making the algorithm complex. Therefore, this application provides an image transmission method that enables data traceability based on watermark information, improving the security of image transmission in remote server control.
[0052] This invention discloses an image transmission method, see [link to relevant documentation]. Figure 1 As shown, applied to a baseboard management controller, the method includes:
[0053] Step S11: Receive image data sent by the host processor.
[0054] In this embodiment, image data sent by the host processor is received. It is understood that, as... Figure 2 As shown, the baseboard management controller receives image data sent by the host processor. Within the baseboard management controller, an image receiving device receives the image data and stores it in the video memory. A digital watermarking device retrieves the image data from the video memory and adds the corresponding watermark, resulting in processed image data. An image compression device compresses the processed image data and stores it in the main memory. A network transmission device then sends the compressed image data from the main memory to the remote terminal. The host processor, running the operating system on the server, generates image data and is also the object of remote control. The image receiving device connects to the host processor via a PCIe (Peripheral Component Interconnect Express) interface, receiving image data and storing it in the video memory. It should be noted that, as described above... Figure 2As shown, the Baseboard Management Controller (BMC) processor is installed in the Baseboard Management Controller. The BMC processor is the CPU (central processing unit) of the Baseboard Management Controller, which is responsible for running the Linux kernel and running applications on it, and controlling other modules, namely the image receiving device, the digital watermarking device, the image compression device, and the network transmission device.
[0055] Understandably, current applications of digital streaming media, such as the implementation of visible watermark embedding technology, involve modules including video capture, video encoding, watermark embedding, and streaming media processing, enabling real-time embedding of corresponding digital watermarks. However, this technology is implemented through software and cannot be applied to KVM in remote server control. This solution has high real-time requirements, but the relevant software cannot run on the baseboard management controller on the server. Furthermore, this technology is combined with specific encoding techniques, limiting its application scope, and the watermark embedding occurs after encoding, making the algorithm complex. KVM over IP technology is an important remote management method, allowing maintenance personnel to remotely log in to the server via the network. The baseboard management controller manages and monitors the server's operating status and provides remote management functions. This application aims to protect image information by adding watermarks to image information transmitted via KVM over IP in remote server control. Digital watermarking technology embeds specific information into the protected image through digital signal processing, thereby protecting the transmitted image content. In the event of information leakage, the source of the leakage can be quickly traced based on the watermark information. Therefore, combining digital watermarking technology with KVM over IP technology provides a protection mechanism for image content transmitted in remote server control, which can protect the security of server content.
[0056] Step S12: Process the image data using a preset watermarking method to obtain processed image data.
[0057] In this embodiment, after receiving image data sent by the host processor, the image data is processed using a preset watermarking method to obtain processed image data. It can be understood that the digital watermarking device retrieves image data from video memory, adds a digital watermark according to a certain algorithm, and then sends the digitally watermarked image data (i.e., the processed image data) to the data compression device.
[0058] Step S13: Compress the processed image data using a preset compression algorithm to obtain compressed image data, and send the compressed image data to a remote terminal.
[0059] In this embodiment, the image data is processed using a preset watermarking method to obtain processed image data. Then, the processed image data is compressed using a preset compression algorithm to obtain compressed image data, which is then sent to a remote terminal. It is understood that the image data is compressed using an image compression device, and the compression algorithm used can be common JPEG, JPEG2000, MPEG, etc., or a custom compression algorithm. The compressed image data is stored in a corresponding location in memory. Then, the compressed image data is retrieved from memory via a network transmission device and sent to the remote terminal via network transmission. Upon receiving the data from the network, the remote terminal decompresses the compressed image data using a preset decompression method to obtain the processed image data (i.e., restore the original image) and displays it.
[0060] This application is completed in hardware without the need for software intervention, and has high real-time performance; it can add digital watermarks to images of different resolutions and can switch resolutions in real time; it has no impact on subsequent image compression encoding, and has high portability; it improves the security of image transmission in remote server control.
[0061] As can be seen, this application provides an image transmission method, including: receiving image data sent by a host processor; processing the image data using a preset watermarking method to obtain processed image data; compressing the processed image data using a preset compression algorithm to obtain compressed image data; and sending the compressed image data to a remote terminal. Therefore, this application, by adding a watermark to the received image data, ensures that the image data in the baseboard management controller is watermarked data, and sends the compressed watermarked data to the remote terminal for display. By embedding specific watermark information into the protected image through digital signal processing, the transmitted image content is protected, enabling data traceability based on the watermark information and improving the security of image transmission in remote server control.
[0062] See Figure 3 As shown, this embodiment of the invention discloses an image transmission method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.
[0063] Step S21: Receive image data sent by the host processor.
[0064] Step S22: Obtain the target resolution information corresponding to the image data.
[0065] In this embodiment, after receiving image data sent by the host processor, the target resolution information corresponding to the image data is obtained. It is understood that the image data sent by the host processor each time may be an image of different resolutions, and images of different resolutions have corresponding watermark information. Therefore, it is necessary to first determine the target resolution information of the current image data in order to determine the corresponding watermark information based on the target resolution information.
[0066] Step S23: Obtain the target watermark information corresponding to the target resolution information from the watermark identifier storage area.
[0067] In this embodiment, after obtaining the target resolution information corresponding to the image data, the target watermark information corresponding to the target resolution information is obtained from the watermark identifier storage area. It is understood that before obtaining the target watermark information corresponding to the target resolution information from the watermark identifier storage area, the current watermark image is obtained, and it is determined whether the current watermark image is a grayscale image; if the current watermark image is not a grayscale image, it is converted into a grayscale image; the current resolution is determined from a preset resolution set; the pixel values of the grayscale image are converted based on the current resolution and a preset binary conversion method to obtain the watermark information corresponding to the current resolution; the watermark information corresponding to each resolution in the preset resolution set is integrated to obtain a watermark information set; each watermark information in the watermark information set is compressed and encoded using a run-length encoding method to obtain an encoded watermark information set, and the encoded watermark information set is stored in the watermark identifier storage area. It is understood that the watermark identifier storage device is as follows: Figure 4 As shown, the binary values of digital watermarks with different resolutions to be embedded are stored. The generation process of the binary watermark value is as follows: the original watermark image (i.e., the current watermark image) is obtained, and it is determined whether the original watermark image is a grayscale image. If the original watermark image is not a grayscale image, for example, if the original watermark image is a color image, then the color watermark image needs to be converted into a grayscale image first, and then the grayscale image is converted into a binary image. If the original watermark image is a grayscale image, then the original watermark image is directly converted into a binary image; s(i,j) represents the binary value of the pixel value of the binary watermark image at position i,j, and w(i,j) represents the pixel value of the original grayscale watermark image at position i,j.
[0068] s(i,j)=1, w(i,j)>127;
[0069] s(i,j)=0, w(i,j)<=127;
[0070] In other words, when the pixel value at position i,j in the original grayscale watermark image is greater than 127, the binary value of the pixel value in the binary watermark image at position i,j is 1; when the pixel value at position i,j in the original grayscale watermark image is less than or equal to 127, the binary value of the pixel value in the binary watermark image at position i,j is 0. It should be noted that the pixel value of 127 mentioned above is a specific example and can be modified according to actual needs. In this way, the generated binary watermark value is a value composed of 0s and 1s at a certain resolution. Then, the binary value of the pixel value in the binary watermark image is compressed and encoded using RLE (run-length encoding) or other custom encoding methods to obtain the encoded binary watermark value. This process can greatly save the storage space of the watermark identifier. The same watermark can generate corresponding binary watermark values at different resolutions, be encoded, and the information in the encoded watermark information set is stored in different locations.
[0071] Furthermore, after obtaining the target watermark information corresponding to the target resolution information from the watermark identifier storage area, the target watermark information is decoded to obtain decoded watermark information, and the decoded watermark information is stored in a buffer. It can be understood that when the watermark decoding device is working, it obtains the currently operating resolution information from the BMC processor, then obtains the corresponding binary watermark value from the watermark identifier storage device, and then performs decoding. The decoded data is stored in a buffer awaiting use.
[0072] Step S24: Read the current image data from the image data in the video memory, and generate the current processed image data based on the preset image data processing method, the current image data, and the target watermark information.
[0073] In this embodiment, after obtaining the target watermark information corresponding to the target resolution information from the watermark identifier storage area, the current image data is read from the image data in the video memory, and the current processed image data is generated based on the preset image data processing method, the current image data, and the target watermark information. Specifically, the current image data is read from the image data in the video memory, and the current pixel position information corresponding to the current image data is determined; the target decoded watermark information corresponding to the target watermark information is obtained from the buffer; the decoded watermark position information corresponding to the current pixel position information is obtained from the target decoded watermark information; it is determined whether the decoded watermark position information meets the preset image data processing conditions; if the decoded watermark position information meets the preset image data processing conditions, the current processed image data is obtained based on the current pixel position information corresponding to the preset image data processing method and the decoded watermark position information. Further, based on the preset image data processing method and the current pixel position information corresponding to the decoded watermark position information processing, the current processed image data is obtained, including: determining the target watermark transparency, and determining the target image data processing method based on the target watermark transparency; and obtaining the current processed image data based on the target image data processing method and the current pixel position information corresponding to the decoded watermark position information processing. Determining whether the decoded watermark position information meets the preset image data processing conditions is equivalent to determining whether the decoded watermark position information is 1. If the decoded watermark position information is 1, then the decoded watermark position information meets the preset image data processing conditions; if the decoded watermark position information is not 1 (e.g., 0), then the current pixel position information is not processed.
[0074] It is understandable that the watermark generation device reads the embedded image object data from the video memory, the read data corresponds to the corresponding pixel position information, the corresponding binary watermark value position is determined based on the pixel position information, and then the image pixels are processed based on the value; T(i,j) represents the image pixel value after adding the watermark, and s(i,j) is the binary value of the digital watermark.
[0075] T(i,j)=T(i,j)&mask0,s(i,j)=0;
[0076] T(i,j)=T(i,j)&mask1,s(i,j)=1;
[0077] The pixel values are in RGB888 format, meaning each pixel value is represented by 24 bits of data: 8 bits for R, 8 bits for G, and 8 bits for B. `Mask0 = 24'hFFFFFF` means that when `s(i,j) = 0`, no image data is processed. `Mask0 = 24'hF0F0F0` means that when `s(i,j) = 1`, the lower bits of the R / G / B components in the image format are discarded. The specific number of lower bits discarded can be configured according to the actual situation. The effect is reflected in the transparency of the digital watermark; the fewer bits of lower data discarded, the lower the transparency.
[0078] Step S25: Combine all the currently processed image data corresponding to the image data to obtain the processed image data.
[0079] In this embodiment, current image data is read from the image data in the video memory, and processed image data is generated based on a preset image data processing method, the current image data, and the target watermark information. Then, all the processed image data corresponding to the current image data are combined to obtain the processed image data. It is understood that when reading the embedded image object data from the video memory, the entire image data can be read at once, or it can be read in batches, such as acquiring a certain number of rows or a certain area of data. Therefore, the image data is divided into parts for processing. All the processed image data corresponding to the current image data are then combined to obtain the processed image data. The processed image pixel data is then transmitted to a backend image compression device for compression.
[0080] Specifically, after BMC starts, the user processes and encodes the binary values of the digital watermark to be added according to different resolutions, and stores them in the watermark identifier storage device through the BMC processor; the image data generated by the operating system running on the server host is stored in the video memory through the image receiving device; the digital watermark adding device obtains the binary values in the watermark identifier storage device and the embedded image pixel values in the video memory, and sends the processed pixel data to the image compression device; the image compression device compresses the image data after the digital watermark is added, and stores the compressed data in the corresponding location in memory; the network transmission device transmits the compressed data to the remote terminal through the network, and the remote terminal displays it; when the user adjusts the resolution of the operating system on the server, the digital watermark generating device also obtains the updated resolution information from the BMC processor, obtains the corresponding resolution digital watermark binary values, decodes and uses them, and the user can adjust the transparency of the digital watermark image through the BMC processor as needed.
[0081] Step S26: Compress the processed image data using a preset compression algorithm to obtain compressed image data, and send the compressed image data to a remote terminal.
[0082] For details regarding steps S21 and S26, please refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.
[0083] As can be seen, this embodiment of the application receives image data sent by a host processor; obtains target resolution information corresponding to the image data; obtains target watermark information corresponding to the target resolution information from a watermark identifier storage area; reads current image data from the image data in video memory, and generates currently processed image data based on a preset image data processing method, the current image data, and the target watermark information; combines all the currently processed image data corresponding to the image data to obtain the processed image data. The processed image data is compressed using a preset compression algorithm to obtain compressed image data, and the compressed image data is sent to a remote terminal for data traceability based on watermark information, thus improving the security of image transmission in remote server control.
[0084] See Figure 5 As shown, this application also discloses an image transmission device applied to a substrate management controller, comprising:
[0085] Image data receiving module 11 is used to receive image data sent by the host processor;
[0086] Image processing module 12 is used to process the image data using a preset watermarking method to obtain processed image data;
[0087] Image compression module 13 is used to compress the processed image data using a preset compression algorithm to obtain compressed image data;
[0088] Image sending module 14 is used to send the compressed image data to a remote terminal.
[0089] As can be seen, this application includes: receiving image data sent by a host processor; processing the image data using a preset watermarking method to obtain processed image data; compressing the processed image data using a preset compression algorithm to obtain compressed image data; and sending the compressed image data to a remote terminal. Therefore, this application, by adding a watermark to the received image data, ensures that the image data in the baseboard management controller is watermarked data, and sends the compressed watermarked data to a remote terminal for display. By embedding specific watermark information into the protected image through digital signal processing, the transmitted image content is protected, enabling data traceability based on the watermark information and improving the security of image transmission in remote server control.
[0090] In some specific embodiments, the image data receiving module 11 specifically includes:
[0091] The image data receiving unit is used to receive image data sent by the host processor.
[0092] In some specific embodiments, the image processing module 12 specifically includes:
[0093] A target resolution information acquisition unit is used to acquire target resolution information corresponding to the image data;
[0094] The current watermark image acquisition unit is used to acquire the current watermark image;
[0095] A grayscale image determination unit is used to determine whether the current watermark image is a grayscale image;
[0096] An image conversion unit is configured to convert the current watermark image into a grayscale image if the current watermark image is not a grayscale image.
[0097] The current resolution determination unit is used to determine the current resolution from a preset set of resolutions;
[0098] The watermark information acquisition unit is used to convert the pixel values of the grayscale image based on the current resolution and a preset binary conversion method to obtain the watermark information corresponding to the current resolution.
[0099] A watermark information set acquisition unit is used to integrate the watermark information corresponding to each resolution in the preset resolution set to obtain a watermark information set;
[0100] The watermark information compression encoding unit is used to compress and encode each watermark information in the watermark information set using a run-length encoding method to obtain the encoded watermark information set.
[0101] The encoded watermark information set storage unit is used to store the encoded watermark information set into the watermark identifier storage area;
[0102] The target watermark information acquisition unit is used to acquire target watermark information corresponding to the target resolution information from the watermark identifier storage area.
[0103] The target watermark information decoding unit is used to decode the target watermark information to obtain the decoded watermark information;
[0104] The decoded watermark information storage unit is used to store the decoded watermark information in a buffer.
[0105] The current pixel position information determination unit is used to read the current image data from the image data in the video memory and determine the current pixel position information corresponding to the current image data;
[0106] The target decoded watermark information acquisition unit is used to acquire the target decoded watermark information corresponding to the target watermark information from the buffer;
[0107] The decoded watermark position information acquisition unit is used to acquire the decoded watermark position information corresponding to the current pixel position information from the target decoded watermark information;
[0108] The judgment unit is used to determine whether the decoded watermark position information meets the preset image data processing conditions;
[0109] Transparency determination unit, used to determine the transparency of the target watermark;
[0110] A target image data processing method determination unit is used to determine a target image data processing method based on the transparency of the target watermark.
[0111] The current pixel position information processing unit is used to obtain the current processed image data based on the current pixel position information corresponding to the target image data processing method and the decoded watermark position information processing.
[0112] The processed image data acquisition unit is used to combine all the currently processed image data corresponding to the image data to obtain the processed image data.
[0113] In some specific embodiments, the image compression module 13 specifically includes:
[0114] An image compression unit is used to compress the processed image data using a preset compression algorithm to obtain compressed image data.
[0115] In some specific embodiments, the image sending module 14 specifically includes:
[0116] A compressed image data acquisition unit is used to acquire the compressed image data from memory;
[0117] The compressed image data sending unit is used to send the compressed image data to a remote terminal, so that the remote terminal can decompress the compressed image data using a preset decompression method to obtain and display the processed image data.
[0118] Furthermore, embodiments of this application also provide an electronic device. Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0119] Figure 6 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the image transmission method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0120] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0121] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0122] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the image transmission method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.
[0123] Furthermore, this application also discloses a storage medium storing a computer program, which, when loaded and executed by a processor, implements the image transmission method steps disclosed in any of the foregoing embodiments.
[0124] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0125] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0126] The above provides a detailed description of the image transmission method, apparatus, device, and storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. An image transmission method, characterized in that, Applications to baseboard management controllers include: Receive image data sent by the host processor; Obtain the target resolution information corresponding to the image data; Retrieve the target watermark information corresponding to the target resolution information from the watermark identifier storage area; Decode the target watermark information to obtain decoded watermark information, and store the decoded watermark information in a buffer; Read the current image data from the image data in the video memory, and determine the current pixel position information corresponding to the current image data; wherein, the current image data is data of a certain number of rows / data within a certain area; Retrieve the target decoded watermark information corresponding to the target watermark information from the buffer; Obtain the decoded watermark position information corresponding to the current pixel position information from the target decoded watermark information; Determine whether the decoded watermark position information meets the preset image data processing conditions, that is, determine whether the decoded watermark position information is 1. If the decoded watermark position information is 1, then the decoded watermark position information meets the preset image data processing conditions; if the decoded watermark position information is 0, then the decoded watermark position information does not meet the preset image data processing conditions, and no processing is performed on the current pixel position information. If the decoded watermark position information satisfies the preset image data processing conditions, then based on the current pixel position information corresponding to the preset image data processing method and the decoded watermark position information processing, the current processed image data is obtained. Combine all the currently processed image data corresponding to the image data to obtain the processed image data; The processed image data is compressed using a preset compression algorithm to obtain compressed image data, and the compressed image data is sent to a remote terminal. The process of obtaining the current processed image data based on the current pixel position information corresponding to the preset image data processing method and the decoded watermark position information includes: The target watermark transparency is determined, and a target image data processing method is determined based on the target watermark transparency; wherein, when the decoded watermark position information is 1, the low-bit data of the R / G / B components in the image format is discarded, and the fewer bits of low-bit data are discarded, the lower the transparency. Based on the target image data processing method and the current pixel position information corresponding to the decoded watermark position information processing, the current processed image data is obtained; Before obtaining the target watermark information corresponding to the target resolution information from the watermark identifier storage area, the method further includes: Obtain the current watermark image and determine whether the current watermark image is a grayscale image; If the current watermark image is not a grayscale image, then the current watermark image is converted into a grayscale image; Determine the current resolution from the preset resolution set; The pixel values of the grayscale image are converted based on the current resolution and a preset binary conversion method to obtain the watermark information corresponding to the current resolution; The watermark information corresponding to each resolution in the preset resolution set is integrated to obtain a watermark information set; Each watermark in the watermark information set is compressed and encoded using a run-length encoding method to obtain an encoded watermark information set, and the encoded watermark information set is stored in the watermark identifier storage area.
2. The image transmission method according to claim 1, characterized in that, Sending the compressed image data to the remote terminal includes: The compressed image data is retrieved from memory and sent to a remote terminal so that the remote terminal can decompress the compressed image data using a preset decompression method to obtain and display the processed image data.
3. An image transmission device, characterized in that, Applications to baseboard management controllers include: Image data receiving module, used to receive image data sent by host processor; The image processing module is used to process the image data using a preset watermarking method to obtain processed image data. An image compression module is used to compress the processed image data using a preset compression algorithm to obtain compressed image data. An image sending module is used to send the compressed image data to a remote terminal; The image processing module specifically includes: A target resolution information acquisition unit is used to acquire target resolution information corresponding to the image data; The current watermark image acquisition unit is used to acquire the current watermark image; A grayscale image determination unit is used to determine whether the current watermark image is a grayscale image; An image conversion unit is configured to convert the current watermark image into a grayscale image if the current watermark image is not a grayscale image. The current resolution determination unit is used to determine the current resolution from a preset set of resolutions; The watermark information acquisition unit is used to convert the pixel values of the grayscale image based on the current resolution and a preset binary conversion method to obtain the watermark information corresponding to the current resolution. A watermark information set acquisition unit is used to integrate the watermark information corresponding to each resolution in the preset resolution set to obtain a watermark information set; The watermark information compression encoding unit is used to compress and encode each watermark information in the watermark information set using a run-length encoding method to obtain the encoded watermark information set. The encoded watermark information set storage unit is used to store the encoded watermark information set into the watermark identifier storage area; The target watermark information acquisition unit is used to acquire target watermark information corresponding to the target resolution information from the watermark identifier storage area. The target watermark information decoding unit is used to decode the target watermark information to obtain the decoded watermark information; The decoded watermark information storage unit is used to store the decoded watermark information in a buffer. The current pixel position information determination unit is used to read the current image data from the image data in the video memory and determine the current pixel position information corresponding to the current image data; wherein, the current image data is data of a certain number of rows / data within a certain area; The target decoded watermark information acquisition unit is used to acquire the target decoded watermark information corresponding to the target watermark information from the buffer; The decoded watermark position information acquisition unit is used to acquire the decoded watermark position information corresponding to the current pixel position information from the target decoded watermark information; The judgment unit is used to determine whether the decoded watermark position information meets the preset image data processing conditions; that is, to determine whether the decoded watermark position information is 1. If the decoded watermark position information is 1, it is determined that the decoded watermark position information meets the preset image data processing conditions, and the transparency determination unit is triggered; if the decoded watermark position information is 0, it is determined that the decoded watermark position information does not meet the preset image data processing conditions, and the current pixel position information is not processed. Transparency determination unit, used to determine the transparency of the target watermark; The target image data processing method determination unit is used to determine the target image data processing method based on the target watermark transparency; wherein, when the decoded watermark position information is 1, the low-bit data of the R / G / B components in the image format is discarded, and the fewer bits of low-bit data are discarded, the lower the transparency. The current pixel position information processing unit is used to obtain the current processed image data based on the current pixel position information corresponding to the target image data processing method and the decoded watermark position information processing. The processed image data acquisition unit is used to combine all the currently processed image data corresponding to the image data to obtain the processed image data; The image compression module specifically includes: an image compression unit, used to compress the processed image data using a preset compression algorithm to obtain compressed image data.
4. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the image transmission method as described in any one of claims 1 to 2.
5. A computer-readable storage medium, characterized in that, Used to store a computer program; wherein, when the computer program is executed by a processor, it implements the image transmission method as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Video watermark generating method, device and terminal
CN107911641A
Image processing method and apparatus, and storage medium
CN108550101A
Image watermark security processing method, device and equipment and storage medium
CN112734621A
Baseboard management controller, image display method, device and computer medium
CN116109469A