4K medical image content interference protection method
By encrypting and decrypting the film data division and local conversion of 4K medical image video frames, the problems of large amount of calculation and poor real-time performance in the prior art are solved, efficient image interference protection is achieved, and resource occupation and real-time performance are ensured.
Patent Information
- Application Number
- CN202411640508.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-11-18
AI Technical Summary
When the prior art encrypts and decrypts 4K medical images, the calculation amount is large, resulting in an increase in resource usage and affecting the real-time nature of the images. Especially when the real-time requirements are high in remote consultations, it is difficult to effectively protect privacy data.
The film data of the medical image video frame is divided into preset copies, and the encryption and decryption process is performed through local conversion. It is transmitted using the standard transmission protocol. During the encryption and decryption process, only the four octets of the film data are modified to maintain the H264/H265 frames. The integrity of the structure and subsequent packaging protocols.
It realizes efficient interference encryption and decryption of 4K medical images without destroying image quality, with small resource usage and little real-time impact. It can display mosaics in third-party players. When using a player with interference decryption function The screen is restored normally, and the delay increases by less than 10 milliseconds.
Smart Images

Figure CN119172570A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video image encryption and decryption, and in particular to a 4K medical image content interference protection method. Background Art
[0002] With the increasing popularity of remote consultation, more and more medical imaging video streams are being used. Considering compatibility, medical imaging video encoding widely uses the well-known H264\H265 standard encoding format, RTSP\RTMP\SRT and other standard transmission protocols. In addition, the transmission needs to cross the Internet, and the video stream data of the standard protocol is easily sniffed and intercepted. In particular, medical images involve a lot of private information of medical staff and patients. How to protect this data and privacy has become extremely necessary and urgent.
[0003] The existing protection method on the market is to encrypt and decrypt all video data, which involves a certain amount of calculation. When the medical image is 4K (resolution: 3840×2160 or 4096×2160) and the bit rate is high (≥80 megabits per second), the amount of calculation increases unnecessarily. The encryption and decryption process of the sender and receiver will cause greater pressure on the local resources, and will also reduce the real-time performance of medical images, which will have a negative impact on remote consultations with high real-time requirements. Summary of the invention
[0004] The purpose of the present invention is to provide a 4K medical imaging content interference protection method, which can realize interference encryption and decryption of 4K medical imaging video pictures without destroying the H264\H265 frame structure and without affecting the subsequent encapsulation protocol for H264\H265 data processing; the interference encryption and decryption process occupies less resources and has less impact on the real-time performance of 4K medical imaging.
[0005] In order to achieve the above functions, the present invention designs a 4K medical image content interference protection method. For medical image videos, the following steps S1 to S3 are performed to complete the encryption and decryption processing of the medical image videos: Step S1: at the transmitting end of the medical image video to be transmitted, for each video frame of the medical image video, the slice data is searched, and the slice data is divided into a preset number of pieces, and each of the divided slice data is locally converted to complete the encryption processing of the medical image video to be transmitted; Step S2: Transmitting the encrypted medical imaging video via a standard transmission protocol; Step S3: Receive the encrypted medical imaging video at the receiving end, search for the slice data of each video frame of the received medical imaging video, divide the slice data into a preset number of parts, perform the same local conversion as step S1 on each divided slice data, and complete the decryption processing of the received medical imaging video.
[0006] As a preferred technical solution of the present invention: the specific steps of step S1 are as follows: Step S1.1: Encode each video frame of the medical image video to obtain encoded data, and search for a network abstraction layer unit for the encoded data. If found, execute step S1.2; otherwise, transmit the encoded data over the network through a standard transmission protocol; Step S1.2: searching for the header of the coded data, if found, executing step S1.3, otherwise transmitting the coded data over the network via a standard transmission protocol; Step S1.3: Find the slice data of the encoded data, divide the slice data into four parts equally, perform local conversion on the four divided slice data respectively, assign the results of the local conversion to the original positions of the slice data respectively, and complete the encryption of each video frame of the medical imaging video.
[0007] As a preferred technical solution of the present invention: the specific steps of step S3 are as follows: Step S3.1: receiving the encrypted medical imaging video at the receiving end and assembling the coded data of each video frame; searching for the network abstraction layer unit, if found, executing step S3.2, otherwise performing conventional decoding and rendering on the coded data; Step S3.2: Search for the header of the coded data. If found, execute step S3.3. Otherwise, perform conventional decoding and rendering on the coded data. Step S3.3: Find the slice data of the encoded data, divide the slice data into four equal parts, perform local conversion on each of the four slice data, assign the results of the local conversion to the original positions of the slice data, and complete the decryption of each video frame of the medical imaging video.
[0008] As a preferred technical solution of the present invention, a method for performing local conversion on the divided four slice data is as follows: Take the first eight bits of the first slice data and perform bitwise XOR operation with the hexadecimal code 0xEF, and assign the result of the XOR operation to the first eight bits of the first slice data; Take the first eight bits of the second piece of data and perform bitwise XOR operation with the hexadecimal code 0xDE, and assign the result of the XOR operation to the first eight bits of the second piece of data; Take the first eight bits of the third piece of data and perform bitwise XOR operation with the hexadecimal code 0xCD, and assign the result of the XOR operation to the first eight bits of the third piece of data; Take the first eight bits of the fourth piece of data and perform a bitwise XOR operation with the hexadecimal code 0xBC, and assign the result of the XOR operation to the first eight bits of the fourth piece of data.
[0009] As a preferred technical solution of the present invention: the medical image video format is the H264\H265 standard encoding format.
[0010] As a preferred technical solution of the present invention: the standard transmission protocol includes one or more of RTSP, RTMP, and SRT transmission protocols.
[0011] Beneficial effects: Compared with the prior art, the advantages of the present invention include: When performing interference encryption and decryption on 4K color ultra-high-definition (resolution 4096×2160) medical images with high bit rate (≥80 megabits per second), it is possible to complete the interference encryption and decryption of medical image content with less resources. When using a third-party player, the medical image data is intercepted and displayed as mosaics, and the original image of the medical image cannot be displayed normally; when playing with a player with interference decryption function, the image can be restored normally. Compared with the solution without interference encryption and decryption, the added delay after interference encryption and decryption is less than 10 milliseconds. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a flow chart of a 4K medical imaging content interference protection method provided according to an embodiment of the present invention; Figure 2 is a flowchart of encryption processing of medical image video provided by an embodiment of the present invention; Figure 3 is a flowchart of a decryption process of a medical imaging video provided by an embodiment of the present invention; Figure 4 This is a measured effect diagram of a 4K medical imaging content interference protection method provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0013] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0014] A 4K medical imaging content interference protection method provided by an embodiment of the present invention is directed to medical imaging video, referring to Figure 1 , perform the following steps S1 to S3 to complete the encryption and decryption processing of the medical image video: Step S1: At the transmitting end of the medical image video to be transmitted, the slice data of each video frame of the medical image video is searched, and the slice data is divided into a preset number of pieces, and each of the divided slice data is locally converted to complete the encryption processing of the medical image video to be transmitted; the flowchart of the encryption processing of the medical image video to be transmitted is referred to Figure 2 .
[0015] The medical imaging video format is the H264\H265 standard encoding format. Both H264 and H265 belong to imaging video encoding standards, which are mainly used to compress video files to reduce file size and increase transmission speed.
[0016] The standard transmission protocol includes one or more of RTSP, RTMP, and SRT transmission protocols.
[0017] The specific steps of step S1 are as follows: Step S1.1: Encode each video frame of the medical image video to obtain the encoded data. For the encoded data, search for the Network Abstract Layer Units (NALU). The Network Abstract Layer Unit is an important part of the H264\H265 standard encoding format, which is used to encapsulate the image video data and related information and transmit the encapsulated unit in the network. If the Network Abstract Layer Unit is found, execute step S1.2, otherwise the encoded data is transmitted over the network through the standard transmission protocol. Step S1.2: Search for the slice header of the coded data. The H264\H265 standard coding format divides the video frame into multiple slices for compression. The slice header is an important component used to describe the structure of each slice in the H264\H265 standard coding format. If the slice header is found, execute step S1.3. Otherwise, the coded data is transmitted over the network through the standard transmission protocol. Step S1.3: Find the slice data of the encoded data, divide the slice data into four equal parts, perform local conversion on each of the four divided slice data, assign the results of the local conversion to the original positions of the slice data, and complete the encryption of each video frame of the medical imaging video.
[0018] Step S2: Transmitting the encrypted medical imaging video via a standard transmission protocol; Step S3: receiving the encrypted medical image video at the receiving end, searching for the slice data of each video frame of the received medical image video, dividing the slice data into a preset number of copies, performing the same local conversion as step S1 on each of the divided slice data, and completing the decryption processing of the received medical image video; the flowchart of the decryption processing of the received medical image video is shown in FIG. Figure 3 .
[0019] The specific steps of step S3 are as follows: Step S3.1: receiving the encrypted medical imaging video at the receiving end and assembling the coded data of each video frame; searching for the network abstraction layer unit, if found, executing step S3.2, otherwise performing conventional decoding and rendering on the coded data; Step S3.2: Search for the header of the coded data. If found, execute step S3.3. Otherwise, perform conventional decoding and rendering on the coded data. Step S3.3: Find the slice data of the encoded data, divide the slice data into four equal parts, perform local conversion on each of the four slice data, assign the results of the local conversion to the original positions of the slice data, and complete the decryption of each video frame of the medical imaging video.
[0020] The method for performing local conversion on the divided four pieces of data in step S1 and step S3 is as follows: Take the first eight bits of the first slice data and perform bitwise XOR operation with the hexadecimal code 0xEF, and assign the result of the XOR operation to the first eight bits of the first slice data; Take the first eight bits of the second piece of data and perform bitwise XOR operation with the hexadecimal code 0xDE, and assign the result of the XOR operation to the first eight bits of the second piece of data; Take the first eight bits of the third piece of data and perform bitwise XOR operation with the hexadecimal code 0xCD, and assign the result of the XOR operation to the first eight bits of the third piece of data; Take the first eight bits of the fourth piece of data and perform a bitwise XOR operation with the hexadecimal code 0xBC, and assign the result of the XOR operation to the first eight bits of the fourth piece of data.
[0021] The measured effect diagram of a 4K medical imaging content interference protection method designed by the present invention is shown in FIG. Figure 4 When a third-party player is used, the medical image data is intercepted and displayed as mosaics, and the original medical image cannot be displayed normally; when a player with the interference decryption function designed by the present invention is used to play the medical image data, the image can be restored normally.
[0022] In summary, the method designed by the present invention only modifies four eight bytes of each slice data, and the amount of calculation is very limited. Even when encountering 4K key frames, the resource occupancy is small and the impact on the real-time performance of medical images is also small.
[0023] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. A 4K medical imaging content interference protection method, characterized in that: For medical image videos, perform the following steps S1 to S3 to complete the encryption and decryption processing of the medical image videos: Step S1: at the transmitting end of the medical image video to be transmitted, for each video frame of the medical image video, the slice data is searched, and the slice data is divided into a preset number of pieces, and each of the divided slice data is locally converted to complete the encryption processing of the medical image video to be transmitted; Step S2: Transmitting the encrypted medical imaging video via a standard transmission protocol; Step S3: Receive the encrypted medical imaging video at the receiving end, search for the slice data of each video frame of the received medical imaging video, divide the slice data into a preset number of parts, perform the same local conversion as step S1 on each divided slice data, and complete the decryption processing of the received medical imaging video.
2. A 4K medical imaging content interference protection method according to claim 1, characterized in that: The specific steps of step S1 are as follows: Step S1.1: Encode each video frame of the medical image video to obtain encoded data, and search for a network abstraction layer unit for the encoded data. If found, execute step S1.2; otherwise, transmit the encoded data over the network through a standard transmission protocol; Step S1.2: searching for the header of the coded data, if found, executing step S1.3, otherwise transmitting the coded data over the network via a standard transmission protocol; Step S1.3: Find the slice data of the encoded data, divide the slice data into four parts equally, perform local conversion on the four divided slice data respectively, assign the results of the local conversion to the original positions of the slice data respectively, and complete the encryption of each video frame of the medical imaging video.
3. A 4K medical imaging content interference protection method according to claim 1, characterized in that: The specific steps of step S3 are as follows: Step S3.1: receiving the encrypted medical imaging video at the receiving end and assembling the coded data of each video frame; searching for the network abstraction layer unit, if found, executing step S3.2, otherwise performing conventional decoding and rendering on the coded data; Step S3.2: Search for the header of the coded data. If found, execute step S3.
3. Otherwise, perform conventional decoding and rendering on the coded data. Step S3.3: Find the slice data of the encoded data, divide the slice data into four equal parts, perform local conversion on each of the four slice data, assign the results of the local conversion to the original positions of the slice data, and complete the decryption of each video frame of the medical imaging video.
4. A 4K medical imaging content interference protection method according to claim 2 or 3, characterized in that: The method for local conversion of the four divided slices of data is as follows: Take the first eight bits of the first slice data and perform bitwise XOR operation with the hexadecimal code 0xEF, and assign the result of the XOR operation to the first eight bits of the first slice data; Take the first eight bits of the second piece of data and perform bitwise XOR operation with the hexadecimal code 0xDE, and assign the result of the XOR operation to the first eight bits of the second piece of data; Take the first eight bits of the third piece of data and perform bitwise XOR operation with the hexadecimal code 0xCD, and assign the result of the XOR operation to the first eight bits of the third piece of data; Take the first eight bits of the fourth piece of data and perform a bitwise XOR operation with the hexadecimal code 0xBC, and assign the result of the XOR operation to the first eight bits of the fourth piece of data.
5. A 4K medical imaging content interference protection method according to claim 1, characterized in that: The medical image video format is the H264\H265 standard encoding format.
6. A 4K medical imaging content interference protection method according to claim 1, characterized in that: The standard transmission protocol includes one or more of RTSP, RTMP, and SRT transmission protocols.
Citation Information
Patent Citations
Medical image fusion method and an image detection method based on fusion medical image learning
CN109801251A
Remote remote bid evaluation method and system
CN115150128A
Methods, systems and devices for compression of data and transmission thereof using video transmission standards
US20110103472A1
