Coding and transmission method and system based on low-refreshing-rate video
Through low-frequency encoding and transmission technology for images in 4G/5G networks, image comparison algorithms are used to identify and discard similar images, and only transmit different images, solving image stability problems caused by network interference and high-speed movement, and achieving image quality while ensuring On the basis of reducing bandwidth usage, network availability is improved.
Patent Information
- Application Number
- PCT/CN2023/126846
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-30
- Filing Date
- 2023-10-26
- Publication Date
- 2024-10-03
AI Technical Summary
In 4G/5G networks, due to factors such as network interference and high-speed movement, it is difficult to maintain continuous stability and affect the stability of images. It is also difficult for existing technologies to reduce bandwidth usage while ensuring image quality.
Collect the original image and convert it into RGB format, perform coding and compression through the low-frequency encoding unit, use the image comparison algorithm to identify similar images and discard them, and only send the difference images. The video transmission unit uses the TCP protocol to encapsulate and transmit the video, and the low-frequency decoding unit decodes and passes the high-brush The video echo unit restores image information.
While maintaining the same video viewing effect at the receiving end, the image transmission bandwidth is effectively reduced and network availability is improved.
Smart Images

Figure CN2023126846_03102024_PF_FP_ABST
Abstract
Description
Coding and transmission method and system based on low-frequency new video Technical Field
[0001] The present invention relates to the field of coding and transmission technology, and in particular to a coding and transmission method and system based on low-frequency new video. Background Art
[0002] In applications based on 4G / 5G wireless networking, images from monitoring equipment need to be transmitted to a management center in real time for real-time monitoring. Maintaining continuous stability of 4G / 5G networks is difficult due to factors such as interference and high-speed movement. To ensure image stability, network quality can be improved by improving device antenna signals and supporting multiple operators. Furthermore, while maintaining image quality, further reducing bandwidth usage is another effective way to enhance application effectiveness.
[0003] The present invention proposes a low refresh rate video transmission system for mobile scenarios in fields such as medical care, which can effectively reduce image transmission bandwidth and improve network availability while maintaining the video viewing effect at the receiving end.
[0004] Summary of the Invention
[0005] The purpose of this section is to summarize some aspects of the embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the abstract and title of this application to avoid obscuring the purpose of this section, the abstract and the title of the invention, and such simplifications or omissions should not be used to limit the scope of the present invention.
[0006] In view of the above existing problems, the present invention is proposed.
[0007] Therefore, the technical problem solved by the present invention is that due to factors such as network interference and high-speed movement, it is difficult to maintain the continuous stability of the 4G / 5G network, which affects the stability of the image.
[0008] To solve the above technical problems, the present invention provides the following technical solutions: collecting an original image and converting the original image into RGB format;
[0009] The original image converted into RGB format is encoded and compressed by the low-frequency encoding unit to realize refresh recognition of low-refresh images;
[0010] The video transmission unit is used to send and receive the original image after coding and compression, the low-frequency decoding unit is used to decode the original image after coding and compression, and the high-refresh video echo unit is used to restore the image information.
[0011] As a preferred solution of the encoding and transmission method based on low-frequency new video described in the present invention, the step of refreshing and identifying the compressed original image includes:
[0012] If the first RGB image enters the low-frequency encoding unit, the first RGB image is directly encoded and compressed and sent to the encoding unit of the next level, and the original image of the RGB image is stored as a comparison image;
[0013] When a subsequent RGB image enters the low-frequency encoding unit, the subsequent RGB image is compared with the comparison image using an image comparison algorithm;
[0014] If the image similarity between the subsequent RGB image and the comparison image reaches a set threshold, the subsequent RGB image is considered to be the same as the comparison image and the subsequent RGB image is discarded;
[0015] If the contrast difference value between the subsequent RGB image and the comparison image is greater than the threshold, the subsequent RGB image is considered different from the comparison image, the subsequent RGB image is encoded and compressed and sent to the video transmission unit, the original image of the subsequent RGB image is stored as the current comparison image, and the current image replaces the original comparison image.
[0016] As a preferred solution of the encoding and transmission method based on low-frequency new video described in the present invention, the specific steps of sending and receiving the encoded and compressed original image by using the video transmission unit include:
[0017] The video transmission unit encapsulates the encoded and compressed original image through the connection-oriented TCP protocol;
[0018] The video transmission unit transmits only when the low-frequency coding unit has the original image after coding and compression;
[0019] When the low-frequency coding unit does not encode the compressed original image, the keep-alive data is only sent based on the set time.
[0020] As a preferred solution of the encoding and transmission method based on low-frequency new video described in the present invention, the specific steps of decoding the encoded compressed original image using the low-frequency decoding unit include:
[0021] The video transmission unit receives the compressed original image, and the low-brush video decoding unit decodes the encoded compressed original image;
[0022] When the video transmission unit receives the compressed original image, it decodes the compressed original image by using a single image decompression algorithm and saves it as the current image;
[0023] The high refresh rate video echo unit restores the current image to high refresh rate video information.
[0024] As a preferred solution of the encoding and transmission method based on low-frequency new video described in the present invention, the calculation of the image contrast algorithm includes:
[0025] Converting the compressed original image into an RGB image (R, G, B), where R represents the R channel of the image, G represents the G channel of the image, and B represents the B channel of the image;
[0026] Convert the RGB image into a grayscale image, calculate the pixel points of the grayscale image, and normalize the grayscale image;
[0027] Based on the pixels of the grayscale image, create a histogram array H of size 256 array , and calculate the grayscale image histogram distribution, and then calculate the Bhattacharyya coefficient based on the histogram data.
[0028] As a preferred solution of the encoding and transmission method based on low-frequency new video according to the present invention, wherein: the pixel point IMG of the grayscale image gray The calculation includes IMG gray ={R n}*0.299+{G n}*0.587+{B n}*0.114
[0029] Among them, R n Represents the color value of the nth point of the R channel of the RGB image, G n Indicates the color value of the nth point of the R channel of the RGB image, B n Represents the color value of the nth point of the R channel of the RGB image.
[0030] As a preferred solution of the encoding and transmission method based on low-frequency new video according to the present invention, the calculation of normalizing the grayscale image includes:
[0031] Among them, IMG STD Represents the normalized grayscale image, IMG gray Represents the grayscale image before normalization, max({IMG gray}) represents the maximum grayscale value in the image.
[0032] As a preferred solution of the encoding and transmission method based on low-frequency new video described in the present invention, the calculation of the grayscale image histogram distribution includes:
[0033] For each pixel of the grayscale image, the grayscale value is v, then
[0034] As a preferred solution of the encoding and transmission method based on low-frequency new video according to the present invention, the calculation of the Bhattacharyya coefficient ρ(p, p′) includes:
[0035] Where p represents the histogram image data of the contrast image, p′ represents the histogram image data of the subsequent RGB image, p(i) represents the probability of the color of the grayscale contrast image appearing at point i, and p′(i) represents the probability of the color of the grayscale subsequent RGB image appearing at point i;
[0036] When ρ(p,p′)=1, it means that the images are exactly the same.
[0037] Another technical solution provided by the present invention is a coding and transmission system based on low-frequency new video, comprising:
[0038] A video acquisition unit, used for acquiring original images and converting the original images into RGB format;
[0039] A low-refresh video encoding unit is used to encode and compress the original image converted into RGB format to achieve refresh recognition of low-refresh images;
[0040] A video transmission unit is used to send and receive the original image after encoding and compression;
[0041] A low-brush video decoding unit is used to decode the original image after encoding and compression;
[0042] The high refresh video echo unit is used to restore the original compressed image information after decoding so that it can be displayed on a high refresh monitor.
[0043] Beneficial effects of the present invention: The present invention proposes a low refresh rate video transmission system for mobile scenarios in medical and other fields, which can effectively reduce the image transmission bandwidth and improve the network availability while keeping the video viewing effect at the receiving end unchanged. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. Those skilled in the art can also derive other drawings based on these drawings without inventive effort. Among them:
[0045] FIG1 is a schematic diagram of the basic flow of a method and system for encoding and transmitting low-frequency new video according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, the following detailed description of the specific embodiments of the present invention is given in conjunction with the accompanying drawings. It is obvious that the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in this field without creative work should fall within the scope of protection of the present invention.
[0047] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0048] Secondly, the term "one embodiment" or "embodiment" herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in various places throughout this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive of other embodiments.
[0049] The present invention is described in detail with reference to schematic diagrams. For ease of illustration, cross-sectional views of device structures may be partially enlarged and not to scale when describing embodiments of the present invention. Furthermore, the schematic diagrams are merely illustrative and should not limit the scope of the present invention. Furthermore, in actual production, the three-dimensional dimensions of length, width, and depth should be included.
[0050] In the description of the present invention, it should be noted that the terms "upper, lower, inner, and outer" and other references to orientations or positional relationships are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate and simplify the description of the present invention. They are not intended to indicate or imply that the devices or components referred to must have, be constructed, or operate in a specific orientation, and therefore should not be construed as limitations on the present invention. Furthermore, the terms "first, second, or third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0051] In this disclosure, unless otherwise specified or limited, the terms "mounted," "connected," and "connected" should be interpreted broadly. For example, they may refer to fixed, removable, or integral connections. They may also refer to mechanical, electrical, or direct connections, indirect connections through an intermediary, or internal communication between two components. Those skilled in the art will understand the specific meanings of these terms in this disclosure.
[0052] Example 1
[0053] 1 , which is an embodiment of the present invention, provides a method and system for encoding and transmitting low-frequency new video, including:
[0054] A coding and transmission method based on low-frequency new video, comprising:
[0055] S1: Collect the original image and convert it into RGB format.
[0056] The video acquisition unit completes the acquisition of the original image. The acquisition system can use AHD video interface, digital video interface based on Ethernet interface, video input interface based on VGA or HDMI, etc. to acquire video data from the patient monitor; the acquired video data is uniformly converted into RGB format.
[0057] S2: The original image converted into RGB format is encoded and compressed by the low-frequency encoding unit to achieve refresh recognition of the low-refresh image. It should be noted that:
[0058] The steps of refreshing and recognizing the compressed original image include:
[0059] If the first RGB image enters the low-frequency encoding unit, it is directly encoded and compressed and sent to the next-level encoding unit. At the same time, the original RGB image is stored as a comparison image.
[0060] When the subsequent RGB image enters the low-frequency coding unit, the subsequent RGB image is compared with the comparison image through the image comparison algorithm;
[0061] If the image similarity between the subsequent RGB image and the comparison image reaches a set threshold, the subsequent RGB image is considered to be the same as the comparison image and the subsequent RGB image is discarded;
[0062] If the contrast difference between the subsequent RGB image and the comparison image is greater than a threshold, the subsequent RGB image is considered different from the comparison image. The subsequent RGB image is encoded and compressed and sent to the video transmission unit. The original image of the subsequent RGB image is stored as the current comparison image and the current image replaces the original comparison image.
[0063] The calculation of the image contrast algorithm includes,
[0064] Convert the compressed original image into an RGB image (R, G, B), where R represents the R channel of the image, G represents the G channel of the image, and B represents the B channel of the image. The range of R, G, and B is an integer from 0 to 255.
[0065] Convert the RGB image to a grayscale image, calculate the pixel points of the grayscale image, and normalize the grayscale image;
[0066] Based on the pixels of the grayscale image, create a histogram array H of size 256 array , and calculate the grayscale image histogram distribution, and then calculate the Bhattacharyya coefficient based on the histogram data.
[0067] Grayscale image pixel IMG gray The calculation includes IMG gray ={R n}*0.299+{G n}*0.587+{B n}*0.114
[0068] Among them, R n Indicates the color value (0 to 255) of the nth point of the R channel of the RGB image. n Indicates the color value (0 to 255) of the nth point of the R channel of the RGB image, B n Represents the color value of the nth point of the R channel of the RGB image (0 to 255). The grayscale value after conversion is an integer ranging from 0 to 255.
[0069] The calculations for normalizing the grayscale image include:
[0070] Among them, IMG STD Represents the normalized grayscale image, IMG gray Represents the grayscale image before normalization, max({IMG gray}) represents the maximum grayscale value in the image.
[0071] After normalization, the value range of each pixel in the grayscale image changes from an integer between 0 and 255 to a floating point number between 0 and 1. After normalization, the value of each pixel in the grayscale image is a floating point value between 0 and 1.0;
[0072] The calculation of grayscale image histogram distribution includes:
[0073] For each pixel of the grayscale image, the grayscale value is v, then
[0074] Where v is the grayscale value of the pixel, ranging from 0 to 1.0.
[0075] The calculation of the Bhattacharyya coefficient ρ(p,p′) includes,
[0076] Where p represents the histogram image data of the contrast image, p′ represents the histogram image data of the subsequent RGB image, p(i) represents the probability of the color of the grayscale contrast image appearing at point i, and p′(i) represents the probability of the color of the grayscale subsequent RGB image appearing at point i;
[0077] The range of ρ(p, p′) value is 0≤ρ(p, p′)≤1. When ρ(p, p′)=1, it means that the images are exactly the same.
[0078] According to the characteristics and clarity of the image input unit, the threshold of the low refresh video encoding unit is set; according to actual tests, the threshold is set to be greater than 99%;
[0079] The image coding compression algorithm selects compression algorithms such as JPEG.
[0080] S3: The video transmission unit is used to send and receive the original image after coding and compression, the low-frequency decoding unit is used to decode the original image after coding and compression, and the high-refresh video echo unit is used to restore the image information.
[0081] The specific steps of using the video transmission unit to send and receive the encoded compressed original image include:
[0082] The video transmission unit encapsulates the encoded and compressed original image through the connection-oriented TCP protocol;
[0083] The video transmission unit transmits only when the low-frequency coding unit has the original image after coding and compression;
[0084] When the low-frequency coding unit does not encode the compressed original image, it only sends keep-alive data based on the set time. The keep-alive time is set to be slightly higher than the minimum frequency of the low-refresh image change. For example, if the low-refresh image changes once every 5 seconds, the keep-alive timeout can be set to about 6 seconds.
[0085] The specific steps of decoding the original image after coding and compression using the low-frequency decoding unit include:
[0086] The video transmission unit receives the compressed original image, and the low-brush video decoding unit decodes the encoded compressed original image;
[0087] When the video transmission unit receives the compressed original image, it decodes the compressed original image by using a single image decompression algorithm and saves it as the current image;
[0088] The high refresh rate video echo unit restores the current image to high refresh rate video information.
[0089] High refresh output generates MJPEG video stream information, generating the same number of MJPEG frames per second as the set refresh rate;
[0090] If the decoded image does not change, the generated image is always the current image;
[0091] If the decoded image changes, switch to the new image immediately.
[0092] A coding and transmission system based on low-frequency new video, comprising:
[0093] A video acquisition unit is used to acquire original images and convert them into RGB format;
[0094] A low-refresh video encoding unit is used to encode and compress the original image converted into RGB format to achieve refresh recognition of low-refresh images;
[0095] A video transmission unit is used to send and receive the original image after encoding and compression;
[0096] A low-brush video decoding unit is used to decode the original image after encoding and compression;
[0097] The high refresh video echo unit is used to restore the original compressed image information after decoding so that it can be displayed on a high refresh monitor.
[0098] The present invention proposes a low refresh rate video transmission system for mobile scenarios in fields such as medical care, which can effectively reduce image transmission bandwidth and improve network availability while maintaining the video viewing effect at the receiving end.
[0099] Example 2
[0100] This embodiment is the second embodiment of the present invention. Different from the first embodiment, this embodiment provides a verification test of the encoding and transmission method and system based on low-frequency new video. In order to verify and illustrate the technical effects adopted in this method, this embodiment adopts the traditional technical solution and the method of the present invention for comparative testing, and compares the test results by means of scientific demonstration to verify the real effect of this method.
[0101] Traditional technical solutions have difficulty maintaining the continuous stability of 4G / 5G networks due to factors such as network interference and high-speed movement, which seriously affects the stability of images. The present invention proposes a low-refresh-rate video transmission system for mobile scenarios in fields such as medicine. This system can effectively reduce the image transmission bandwidth and improve network availability while maintaining the video viewing effect at the receiving end.
[0102] The threshold of the low refresh rate video encoding unit is set according to the characteristics, clarity and other values of the image input unit; according to actual tests, the threshold is set to be greater than 99%.
[0103] The present invention enters a group of RGB images into a low-frequency coding unit and compares the subsequent RGB images with the comparison image through an image comparison algorithm to determine whether the subsequent RGB images are completely identical to the comparison image.
[0104] According to actual tests, if the image similarity between the subsequent RGB image and the comparison image reaches 99%, the subsequent RGB image is considered to be the same image as the comparison image and is discarded;
[0105] Table 1: Comparison of subsequent RGB images and comparison images.
[0106] If the image similarity between the subsequent RGB image and the comparison image reaches 99%, the subsequent RGB image is considered to be the same image as the comparison image and needs to be discarded. In Table 1, the similarity between the subsequent image numbers 2 and 5 and the comparison image is higher than 99%, so it can be considered that the subsequent image numbers 2 and 5 are the same image as the comparison image and need to be discarded.
[0107] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A coding and transmission method based on low-frequency new video, characterized in that: include: Collecting an original image and converting the original image into an RGB format; The original image converted into RGB format is encoded and compressed by the low-frequency encoding unit to realize the refresh recognition of low-refresh images; The video transmission unit is used to send and receive the original image after coding and compression, the low-frequency decoding unit is used to decode the original image after coding and compression, and the high-refresh video echo unit is used to restore the image information.
2. The encoding and transmission method based on low-frequency new video according to claim 1, characterized in that: The steps of refreshing and recognizing the compressed original image include: If the first RGB image enters the low-frequency encoding unit, the first RGB image is directly encoded and compressed and sent to the encoding unit of the next level, and the original image of the RGB image is stored as a comparison image; When a subsequent RGB image enters the low-frequency encoding unit, the subsequent RGB image is compared with the comparison image by using an image comparison algorithm; If the image similarity between the subsequent RGB image and the comparison image reaches a set threshold, the subsequent RGB image is considered to be the same image as the comparison image, and the subsequent RGB image is discarded; If the contrast difference value between the subsequent RGB image and the comparison image is greater than the threshold, the subsequent RGB image is considered to be different from the comparison image, the subsequent RGB image is encoded and compressed and sent to the video transmission unit, the original image of the subsequent RGB image is stored as the current comparison image and the current image replaces the original comparison image.
3. The encoding and transmission method based on low-frequency new video according to claim 2, characterized in that: The specific steps of sending and receiving the encoded compressed original image by using the video transmission unit include: The video transmission unit encapsulates the encoded and compressed original image through a connection-oriented TCP protocol; The video transmission unit transmits only when the low-frequency coding unit has the original image after coding and compression; When the low-frequency coding unit does not encode the compressed original image, the keep-alive data is only sent based on the set time.
4. The encoding and transmission method based on low-frequency new video according to claim 3, characterized in that: The specific steps of decoding the original image after coding and compression by using the low-frequency decoding unit include: The video transmission unit receives the compressed original image, and the low-brush video decoding unit compresses the encoded image. Decode the original image after When the video transmission unit receives the compressed original image, it decodes the compressed original image by using a single image decompression algorithm and saves it as the current image; The high refresh rate video echo unit restores the current image to high refresh rate video information.
5. The encoding and transmission method based on low-frequency new video according to any one of claims 1 to 4, characterized in that: The calculation of the image contrast algorithm includes: Converting the compressed original image into an RGB image (R, G, B), where R represents the R channel of the image, G represents the G channel of the image, and B represents the B channel of the image; Convert the RGB image into a grayscale image, calculate the pixel points of the grayscale image, and normalize the grayscale image; Based on the pixels of the grayscale image, create a histogram array H of size 256 array , and calculate the grayscale image histogram distribution, and then calculate the Bhattacharyya coefficient based on the histogram data.
6. The encoding and transmission method based on low-frequency new video according to claim 5, characterized in that: The pixel IMG of the grayscale image gray The calculation includes IMG gray = {R n }*0.299+{G n }*0.587+{B n }*0.114 Among them, R n Represents the color value of the nth point of the R channel of the RGB image, G n Indicates the color value of the nth point of the R channel of the RGB image, B n Represents the color value of the nth point of the R channel of the RGB image.
7. The encoding and transmission method based on low-frequency new video according to claim 6, characterized in that: The calculation for normalizing the grayscale image includes: Among them, IMG STD Represents the normalized grayscale image, IMG gray Represents the grayscale image before normalization, max({IMG gray }) represents the maximum gray value in the image.
8. The encoding and transmission method based on low-frequency new video according to claim 7, characterized in that: The calculation of the grayscale image histogram distribution includes: For each pixel of the grayscale image, the grayscale value is v, then 9. The encoding and transmission method based on low-frequency new video according to claim 8, characterized in that: The calculation of the Bhattacharyya coefficient ρ(p,p′) includes: Where p represents the histogram image data of the contrast image, p′ represents the histogram image data of the subsequent RGB image, p(i) represents the probability of the color of the grayscale contrast image appearing at point i, and p′(i) represents the probability of the color of the grayscale subsequent RGB image appearing at point i; When ρ(p,p′)=1, it means that the images are exactly the same.
10. A coding and transmission system based on low-frequency new video, characterized in that: include: A video acquisition unit, used for acquiring original images and converting the original images into RGB format; A low-refresh video encoding unit is used to encode and compress the original image converted into RGB format to realize refresh recognition of the low-refresh image; A video transmission unit, used for sending and receiving the original image after encoding and compression; A low-brush video decoding unit, used for decoding the original image after encoding and compression; The high refresh video echo unit is used to restore the original compressed image information after decoding so as to be displayed on the high refresh display.
Citation Information
Patent Citations
Information processor and method therefor
CN101754018A
Image processing method and image processing device
CN104602025A
Method and system for reducing video image encoding data size in VDI protocol
CN106851282A
Coding and transmission method and system based on low-frequency new video
CN116546271A
Information processor and method therefor
US20100150454A1
