A method, system and electronic device for image processing

By calculating the characteristic amplitude and loss coefficient of the analog video signal, dynamically adjusting the image color saturation, the signal attenuation problem caused by cable aging is solved, and the image quality of the analog monitoring system is improved.

CN115866223BActive Publication Date: 2025-08-01ZHEJIANG DAHUA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211397835.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-09
Publication Date
2025-08-01
Estimated Expiration
2042-11-09

AI Technical Summary

Technical Problem

In the analog monitoring system, due to cable aging and other reasons, the degree of signal attenuation changes during signal transmission, and the fixed parameter compensation effect of the existing equalizer is poor, resulting in poor image effect.

Method used

By obtaining the characteristic amplitude of the front and back end analog video signals, calculating the signal loss coefficient after cable transmission, and using the average signal loss coefficient to compensate for the image color saturation intensity value, dynamically adjusting the image color saturation to optimize the image effect.

Benefits of technology

It realizes flexible real-time dynamic adjustment and optimization of the image effect of analog video signals, improves signal compensation effect, and enhances the image quality after transmission attenuation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115866223B_ABST
    Figure CN115866223B_ABST
Patent Text Reader

Abstract

The present application discloses a method, a system and an electronic device for image processing. The method includes: acquiring N frames of front-end analog video signals and N frames of back-end analog video signals; determining the first type of characteristic amplitude of each frame of the front-end analog video signal and the second type of characteristic amplitude of each frame of the back-end analog video signal; determining the signal loss coefficient of each frame of the front-end analog video signal after being transmitted through a cable by using the first type of characteristic amplitude and the second type of characteristic amplitude, so as to obtain the average signal loss coefficient of the N frames of front-end analog video signals on the transmission cable; compensating the color saturation intensity value of an image by using the average signal loss coefficient, and transmitting the color saturation intensity value to an image signal processor. Through the technical solution provided by the embodiments of the present application, the image effect after transmission attenuation is adjusted and optimized flexibly, in real time and dynamically.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular, to a method, a system, and an electronic device for image processing. Background Art

[0002] With the development of technology, analog monitoring systems have also become more perfect. An analog monitoring system consists of analog front-end devices, analog transmission devices, and analog back-end devices (as Figure 1 shown). Among them, the analog signal output by the analog front-end device is connected to the analog back-end device through a coaxial transmission cable, so as to realize image storage.

[0003] In the field of analog monitoring systems, for the analog video signals collected by traditional analog or coaxial cameras and transmitted through cables, due to different usage scenarios, different cable materials, or different cable lengths, the video signals will be attenuated to varying degrees, resulting in color attenuation after decoding by the back-end decoding and display device, and further making the image effect poor.

[0004] Currently, in order to reduce the problem that the image effect is poor due to the attenuation of the transmission signal in the back-end decoding and display device, for the attenuation of the transmission signal on the cable, an equalizer can be used to compensate and correct the signal. This method mainly determines whether to amplify the signal by changing the signal voltage, and then adjusts the preset parameters of the equalizer, thereby improving the image effect after transmission attenuation.

[0005] However, the parameters of the equalizer are determined when connecting the front-end and back-end devices through cables. However, due to reasons such as cable aging over time, the cable loss changes, and further the attenuation degree of the signal during signal transmission changes. At this time, the fixed parameters of the equalizer are still used to compensate and correct the signal, resulting in a poor compensation effect on the signal, and further resulting in a poor image effect after transmission attenuation. Summary of the Invention

[0006] This application provides a method, a system, and an electronic device for image processing, which are used to solve the problem of poor image effect after transmission attenuation. The specific implementation solutions are as follows:

[0007] In a first aspect, this application provides a method for image processing, and the method includes:

[0008] Obtain N frames of front-end analog video signals and N frames of back-end analog video signals, where the N frames of back-end analog video signals are N frames of analog video signals obtained by transmitting the N frames of front-end analog video signals through a cable, and N is an integer greater than zero;

[0009] Determine the first type of characteristic amplitudes of each frame of the front-end analog video signal and the second type of characteristic amplitudes of each frame of the back-end analog video signal, where the first type of characteristic amplitudes include the amplitudes of different attribute signals in the corresponding frame of the front-end analog video signal, and the second type of characteristic amplitudes include the amplitudes of different attribute signals in the corresponding frame of the back-end analog video signal;

[0010] Determine the signal loss coefficient of each frame of the front-end analog video signal after cable transmission through the first type of characteristic amplitudes and the second type of characteristic amplitudes, and obtain the average signal loss coefficient of N frames of the front-end analog video signal on the transmission cable;

[0011] Compensate the color saturation intensity value of the image through the average signal loss coefficient, and transmit the color saturation intensity value to an image signal processor for adjusting the color saturation of the image.

[0012] By comparing and analyzing N frames of the front-end analog video signal without cable transmission and N frames of the back-end analog video signal received at the back-end after N frames of the above front-end analog video signal are transmitted through the cable, calculating the average signal loss coefficient of N frames of the front-end analog video signal on the transmission cable, finally compensating the color saturation intensity value of the image through the average signal loss coefficient, thereby adjusting the color saturation of the image, compensating for the color loss during the cable transmission process, and thus flexibly, real-time, and dynamically adjusting, updating, and optimizing the image effect of the analog video signal, enhancing the signal compensation effect, and improving the image effect after transmission attenuation.

[0013] In a possible design, the determining the first type of characteristic amplitudes of each frame of the front-end analog video signal and the second type of characteristic amplitudes of each frame of the back-end analog video signal includes:

[0014] Obtain the first type of horizontal sync signal amplitude, the first type of color sync signal amplitude, and the first type of white level signal amplitude of each frame of the front-end analog video signal;

[0015] Use the first type of horizontal sync signal amplitude, the first type of color sync signal amplitude, and the first type of white level signal amplitude as the first type of characteristic amplitudes to determine the first type of characteristic amplitudes of each frame of the front-end analog video signal;

[0016] Obtain the second type of horizontal sync signal amplitude, the second type of color sync signal amplitude, and the second type of white level signal amplitude of each frame of the back-end analog video signal;

[0017] Use the second type of horizontal sync signal amplitude, the second type of color sync signal amplitude, and the second type of white level signal amplitude as the second type of characteristic amplitudes to determine the second type of characteristic amplitudes of each frame of the back-end analog video signal.

[0018] By using the amplitudes of the first type of horizontal sync signal, the first type of chroma sync signal, and the first type of white level signal as the first type of characteristic amplitudes, and the amplitudes of the second type of horizontal sync signal, the second type of chroma sync signal, and the second type of white level signal as the second type of characteristic amplitudes, before and after adjusting the image saturation, the amplitudes of the horizontal sync signal, the chroma sync signal, and the white level signal of the analog video signal output by the front end are not affected, ensuring the objectivity and accuracy of the calculated signal loss coefficient.

[0019] In a possible design, determining the signal loss coefficient of each frame of the front-end analog video signal after being transmitted through the cable by using the first type of characteristic amplitudes and the second type of characteristic amplitudes includes:

[0020] Obtain the ratio of the first type of characteristic amplitude to the second type of characteristic amplitude;

[0021] Obtain the preset scaling ratio corresponding to the ratio;

[0022] Obtain the product value of the preset scaling ratio and the ratio, and use the product value as the signal loss coefficient of each frame of the front-end analog video signal after being transmitted through the cable.

[0023] By obtaining the product value of the preset scaling ratio and the ratio of the first type of characteristic amplitude of each frame of the front-end analog video signal to the second type of characteristic amplitude of each frame of the back-end analog video signal, the signal loss coefficient of each frame of the front-end analog video signal after being transmitted through the cable is confirmed, and the degree of signal attenuation of each frame of the front-end analog video signal after being transmitted through the cable is obtained, preparing for compensating the saturation intensity value of the image.

[0024] In a possible design, compensating the color saturation intensity value of the image by using the average signal loss coefficient includes:

[0025] Obtain the initial color saturation intensity value that has not been transmitted through the cable;

[0026] Determine the product value of the initial color saturation intensity value and the average signal loss coefficient;

[0027] Compensate the color saturation intensity value of the image by using the product value.

[0028] By determining the product value of the initial color saturation intensity value and the average signal loss coefficient, the color saturation of the image can be compensated, preparing for subsequent adjustment of the image saturation to improve the image effect.

[0029] In a second aspect, the present application also provides an image processing system, and the system includes:

[0030] An acquisition module, configured to acquire N frames of front-end analog video signals and N frames of back-end analog video signals, where the N frames of the back-end analog video signals are N frames of analog video signals obtained by transmitting the N frames of the front-end analog video signals through a cable, and N is an integer greater than zero;

[0031] A feature module, configured to determine a first type of feature amplitude value for each frame of the front-end analog video signal and a second type of feature amplitude value for each frame of the back-end analog video signal, where the first type of feature amplitude value includes the amplitude values of signals with different attributes in the corresponding frame of the front-end analog video signal, and the second type of feature amplitude value includes the amplitude values of signals with different attributes in the corresponding frame of the back-end analog video signal;

[0032] A loss module, configured to determine a signal loss coefficient for each frame of the front-end analog video signal after being transmitted through the cable based on the first type of feature amplitude value and the second type of feature amplitude value, and obtain an average signal loss coefficient of the N frames of the front-end analog video signals on the transmission cable;

[0033] A processing module, configured to compensate a color saturation intensity value of an image based on the average signal loss coefficient and transmit the color saturation intensity value to an image signal processor for adjusting the color saturation of the image.

[0034] In a possible design, the feature module is specifically configured to acquire a first type of horizontal synchronization signal amplitude value, a first type of color synchronization signal amplitude value, and a first type of white level signal amplitude value for each frame of the front-end analog video signal;

[0035] Use the first type of horizontal synchronization signal amplitude value, the first type of color synchronization signal amplitude value, and the first type of white level signal amplitude value as the first type of feature amplitude value to determine the first type of feature amplitude value for each frame of the front-end analog video signal;

[0036] Acquire a second type of horizontal synchronization signal amplitude value, a second type of color synchronization signal amplitude value, and a second type of white level signal amplitude value for each frame of the back-end analog video signal;

[0037] Use the second type of horizontal synchronization signal amplitude value, the second type of color synchronization signal amplitude value, and the second type of white level signal amplitude value as the second type of feature amplitude value to determine the second type of feature amplitude value for each frame of the back-end analog video signal.

[0038] In a possible design, the loss module is specifically configured to acquire a ratio of the first type of feature amplitude value to the second type of feature amplitude value;

[0039] Acquire a preset scaling ratio corresponding to the ratio;

[0040] Obtain the product value of the preset scaling ratio and the ratio, and use the product value as the signal loss coefficient of each frame of the front-end analog video signal after being transmitted through the cable.

[0041] In a possible design, the processing module is specifically configured to obtain the initial color saturation intensity value that has not been transmitted through the cable;

[0042] Determine the product value of the initial color saturation intensity value and the average signal loss coefficient;

[0043] Compensate the color saturation intensity value of the image through the product value.

[0044] In a third aspect, the present application provides an electronic device, including:

[0045] A memory for storing a computer program;

[0046] A processor, when executing the computer program stored on the memory, implements the steps of the above-mentioned image processing method.

[0047] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned image processing method are implemented.

[0048] For the various aspects in the above second aspect to fourth aspect and the possible technical effects that each aspect may achieve, please refer to the description of the possible technical effects that can be achieved in the above first aspect or various possible solutions in the first aspect, and will not be repeated here. Description of the Drawings

[0049] Figure 1 It is a structural diagram of an analog monitoring system;

[0050] Figure 2 It is a flowchart of an image processing method provided by the present application;

[0051] Figure 3 It is a signal diagram of the first frame of the front-end analog video signal in the embodiment of the present application;

[0052] Figure 4 It is a signal diagram of the first frame of the front-end analog video signal and the first frame of the back-end analog video signal in the embodiment of the present application;

[0053] Figure 5 It is a processing process scenario diagram of the image processing method;

[0054] Figure 6 It is a schematic diagram of an image processing system provided by the present application;

[0055] Figure 7A schematic diagram of an electronic device provided for this application. Specific embodiments

[0056] In order to make the objectives, technical solutions and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings. The specific operation methods in the method embodiments can also be applied to the device embodiments or system embodiments. It should be noted that in the description of this application, "a plurality of" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The connection between A and B can represent: the direct connection between A and B and the connection between A and B through C. In addition, in the description of this application, terms such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0057] The following will describe the embodiments of this application in detail with reference to the accompanying drawings.

[0058] Currently, in order to reduce the problem of poor image quality caused by the attenuation of the transmission signal in the backend decoding and display device, for the attenuation of the transmission signal on the cable, an equalizer is used to compensate and correct the signal. This method mainly determines whether the signal needs to be amplified by the change of the signal voltage, and then adjusts the preset parameters of the equalizer, thereby improving the image quality after transmission attenuation. However, the parameters of the equalizer are determined when connecting the front-end and back-end devices through the cable. However, due to reasons such as cable aging over time, the loss of the cable changes, and thus the attenuation degree of the signal during signal transmission changes. At this time, the fixed parameters of the equalizer are still used to compensate and correct the signal, resulting in a poor compensation effect on the signal, and thus a poor image quality after transmission attenuation.

[0059] Therefore, this application proposes an image processing method. By comparing and analyzing N frames of front-end analog video signals that have not passed through the cable transmission and N frames of back-end analog video signals received by the backend after the above N frames of front-end analog video signals pass through the cable transmission, and calculating the average signal loss coefficient of the N frames of front-end analog video signals on the transmission cable, finally, the color saturation intensity value of the image is compensated by the average signal loss coefficient, thereby adjusting the image color saturation and compensating for the color loss during cable transmission, so as to flexibly, real-time, dynamically adjust, update, and optimize the image quality of the analog video signal, enhance the compensation effect on the signal, and improve the image quality after transmission attenuation.

[0060] Refer to Figure 2 The following shows a flowchart of an image processing method provided by an embodiment of this application. The method includes:

[0061] S1. Obtain N frames of front-end analog video signals and N frames of back-end analog video signals;

[0062] When compensating for color loss during cable transmission, it is first necessary to obtain N frames of front-end analog video signals and N frames of back-end analog video signals.

[0063] Among them, the N frames of back-end analog video signals are the N frames of analog video signals obtained after the N frames of front-end analog video signals are transmitted through the cable. That is, there is a one-to-one correspondence between the front-end analog video signals and the back-end analog video signals, and N is an integer greater than zero.

[0064] It should be noted here that since the valid signals of any row in the image can represent the characteristics of the image, in the embodiments of the present application, each frame of the front-end analog video signal is the Mth row valid signal in the video stream, where M is an integer greater than zero.

[0065] S2. Determine the first type of characteristic amplitude of each frame of the front-end analog video signal and the second type of characteristic amplitude of each frame of the back-end analog video signal;

[0066] After obtaining the N frames of front-end analog video signals and N frames of back-end analog video signals, it is necessary to obtain the first type of characteristic amplitude of each frame of the above-mentioned front-end analog video signal and the second type of characteristic amplitude of each frame of the above-mentioned back-end analog video signal.

[0067] It should be noted here that in the embodiments of the present application, the first type of characteristic amplitude includes the amplitudes of signals with different attributes in each frame of the front-end analog video signal, and the second type of characteristic amplitude includes the amplitudes of signals with different attributes in each frame of the back-end analog video signal.

[0068] Specifically, first obtain the amplitude of the first type of horizontal sync signal, the amplitude of the first type of color sync signal, and the amplitude of the first type of white level signal of each frame of the front-end analog video signal;

[0069] Then, taking the amplitude of the first type of horizontal sync signal, the amplitude of the first type of color sync signal, and the amplitude of the first type of white level signal as the first type of characteristic amplitude, the first type of characteristic amplitude of each frame of the front-end analog video signal can be obtained.

[0070] For example, as Figure 3 shows the signal diagram of the first frame of the front-end analog video signal. This analog video signal is an analog video signal that has not been transmitted through the cable, and this signal is the fifth row valid signal of the first frame in the video stream. The amplitude of the first type of horizontal sync signal obtained from the first frame of the analog video signal is Figure 3 "H: amplitude of the horizontal sync signal" in Figure 3"B: amplitude of color sync signal" in it, the amplitude of the first type of white level signal is Figure 3 "W: amplitude of white level signal" in it, the above H, B, and W are the first type of characteristic amplitudes of the first frame of analog video signal.

[0071] Furthermore, obtain the amplitude of the second type of horizontal sync signal, the amplitude of the second type of color sync signal, and the amplitude of the second type of white level signal for each frame of the backend analog video signal;

[0072] Then take the amplitude of the second type of horizontal sync signal, the amplitude of the second type of color sync signal, and the amplitude of the second type of white level signal as the second type of characteristic amplitudes, and finally the second type of characteristic amplitudes of each frame of the backend analog video signal can be obtained.

[0073] For example, as Figure 4 shown is the signal diagram of the first frame of frontend analog video signal and the first frame of backend analog video signal. Among them, the first frame of backend analog video signal is the analog video signal received at the backend after the first frame of frontend analog video signal is transmitted through the cable. This analog video signal is the valid signal of the fourth row of the first frame. H1 is the amplitude of the first type of horizontal sync signal, B1 is the amplitude of the first type of color sync signal, and W1 is the amplitude of the first type of white level signal. Therefore, the first type of characteristic amplitudes of the first frame of frontend analog video signal are H1, B1, W1; H2 is the amplitude of the second type of horizontal sync signal, B2 is the amplitude of the second type of color sync signal, and W2 is the amplitude of the second type of white level signal. Therefore, the second type of characteristic amplitudes of the first frame of backend analog video signal are H2, B2, W2.

[0074] Since the amplitude of the horizontal sync signal, the amplitude of the color sync signal, and the amplitude of the white level signal will not change with the change of external conditions, but only change with the attenuation of the signal, and the amplitude of the horizontal sync signal, the amplitude of the color sync signal, and the amplitude of the white level signal mentioned above are the same as the amplitude of the horizontal sync signal, the amplitude of the color sync signal, and the amplitude of the white level signal in any row of the image, it makes the amplitude of the horizontal sync signal, the amplitude of the color sync signal, and the amplitude of the white level signal have stability and can represent the stable state of an image.

[0075] Therefore, through the above method, taking the amplitude of the first type of horizontal sync signal, the amplitude of the first type of color sync signal, and the amplitude of the first type of white level signal as the first type of characteristic amplitudes and taking the amplitude of the second type of horizontal sync signal, the amplitude of the second type of color sync signal, and the amplitude of the second type of white level signal as the second type of characteristic amplitudes, before and after adjusting the image saturation, the amplitude of the horizontal sync signal, the amplitude of the color sync signal, and the amplitude of the white level signal of the frontend output analog video signal are not affected, ensuring the objectivity and accuracy of the calculated signal loss coefficient.

[0076] S3. Determine the signal loss coefficient of each frame of the front-end analog video signal after cable transmission based on the first type of feature amplitude and the second type of feature amplitude, and obtain the average signal loss coefficient of N frames of front-end analog video signals on the transmission cable;

[0077] After obtaining the first type of feature amplitude of each frame of the front-end analog video signal and the second type of feature amplitude of each frame of the back-end analog video signal, calculate the average signal loss coefficient of N frames of front-end analog video signals on the transmission cable.

[0078] Specifically, first obtain the ratio of the first type of feature amplitude of each frame of the front-end analog video signal to the second type of feature amplitude of each frame of the back-end analog video signal;

[0079] Then obtain the preset scaling ratio corresponding to the ratio;

[0080] Finally, obtain the product value of the preset scaling ratio and the ratio, and use this product value as the signal loss coefficient of each frame of the front-end analog video signal after cable transmission.

[0081] It should be noted here that when calculating the signal loss coefficient of each frame of the front-end analog video signal after cable transmission, the preset scaling ratio used is the same preset scaling ratio, and in the embodiments of the present application, this preset scaling ratio can be obtained based on human experience.

[0082] In the embodiments of the present application, the ratio of the first type of feature amplitude of each frame of the front-end analog video signal to the second type of feature amplitude of each frame of the back-end analog video signal can be calculated in seven ways, and the specific situations are as follows:

[0083] Case 1:

[0084] The ratio of the first type of feature amplitude to the second type of feature amplitude is calculated by the following formula:

[0085]

[0086] where α t is the signal loss coefficient of the t-th frame of the front-end analog video signal after cable transmission, T is the preset scaling ratio, H1 is the first type of horizontal sync signal amplitude of the t-th frame of the front-end analog video signal, B1 is the first type of color sync signal amplitude of the t-th frame of the front-end analog video signal, W1 is the first type of white level signal amplitude of the t-th frame of the front-end analog video signal, H2 is the second type of horizontal sync signal amplitude of the t-th frame of the back-end analog video signal, B2 is the second type of color sync signal amplitude of the t-th frame of the back-end analog video signal, and W2 is the second type of white level signal amplitude of the t-th frame of the back-end analog video signal.

[0087] Case 2:

[0088] The ratio of the first type of characteristic amplitude value to the second type of characteristic amplitude value is calculated by the following formula:

[0089]

[0090] Case 3:

[0091] The ratio of the first type of characteristic amplitude value to the second type of characteristic amplitude value is calculated by the following formula:

[0092]

[0093] Case 4:

[0094] The ratio of the first type of characteristic amplitude value to the second type of characteristic amplitude value is calculated by the following formula:

[0095]

[0096] Case 5:

[0097] The ratio of the first type of characteristic amplitude value to the second type of characteristic amplitude value is calculated by the following formula:

[0098]

[0099] Case 6:

[0100] The ratio of the first type of characteristic amplitude value to the second type of characteristic amplitude value is calculated by the following formula:

[0101]

[0102] Case 7:

[0103] The ratio of the first type of characteristic amplitude value to the second type of characteristic amplitude value is calculated by the following formula:

[0104]

[0105] By obtaining the product value of the preset scaling ratio and the ratio of the first type of characteristic amplitude value of each frame of the front-end analog video signal to the second type of characteristic amplitude value of each frame of the back-end analog video signal in the above manner, the signal loss coefficient of each frame of the front-end analog video signal after cable transmission is confirmed, and the degree of signal attenuation of each frame of the front-end analog video signal after cable transmission is obtained, which prepares for compensating the saturation intensity value of the image.

[0106] Furthermore, the signal loss coefficient of each frame of the front-end analog video signal after cable transmission is obtained by the above method for determining the signal loss coefficient, that is, N signal loss coefficients are obtained;

[0107] Then, the average signal loss coefficient is obtained from the above N signal loss coefficients through an average formula, and the average signal loss coefficient of N frames of front-end analog video signals on the transmission cable can be confirmed.

[0108] The specific average formula is as follows:

[0109]

[0110] Among them, α v is the average signal loss coefficient of N frames of front-end analog video signals during cable transmission. α1 is the signal loss coefficient of the first frame of front-end analog video signal after cable transmission, α2 is the signal loss coefficient of the second frame of front-end analog video signal after cable transmission, and α N is the signal loss coefficient of the Nth frame of front-end analog video signal after cable transmission.

[0111] For example, assuming the preset scaling ratio T is 0.016, the first type of characteristic amplitude H1 of the first frame of front-end analog video signal is 100 millivolts (mV), B1 is 50 mV, W1 is 200 mV, and the second type of characteristic amplitude H2 of the first frame of back-end analog video signal is 10 mV, B2 is 5 mV, W2 is 20 mV. Through the ratio formula in Case 1, the ratio of the first type of characteristic amplitude of the first frame of front-end analog video signal to the second type of characteristic amplitude of the first frame of back-end analog video signal is 1000. Therefore, the signal loss coefficient of the first frame of front-end analog video signal after cable transmission is 16. Similarly, the signal loss coefficient of the second frame of front-end analog video signal after cable transmission is 17, the signal loss coefficient of the third frame of front-end analog video signal after cable transmission is 16.5, the signal loss coefficient of the fourth frame of front-end analog video signal after cable transmission is 17.5, and the signal loss coefficient of the fifth frame of front-end analog video signal after cable transmission is 15.8. Finally, through the average formula, the average signal loss coefficient of 5 frames of front-end analog video signals on the transmission cable is 16.56.

[0112] S4. Compensate the color saturation intensity value of the image with the average signal loss coefficient and transmit the color saturation intensity value to the image signal processor for adjusting the color saturation of the image;

[0113] After obtaining the average signal loss coefficient of N frames of front-end analog video signals on the transmission cable, the color saturation intensity value of the compensated image can be calculated through computation, and then the saturation of the image can be adjusted to improve the image effect after cable transmission.

[0114] Specifically, first obtain the initial color saturation intensity value without cable transmission;

[0115] Next, determine the product value of the initial color saturation intensity value and the average signal loss coefficient;

[0116] Then, compensate the color saturation intensity value of the image with the above product value.

[0117] It should be noted here that in the embodiments of the present application, the product value of the initial color saturation intensity value and the average signal loss coefficient can be determined at the backend or at the frontend, and the specific determination location is not limited in the embodiments of the present application.

[0118] When it is determined at the frontend, specifically:

[0119] First, the average signal loss coefficient of the N-frame frontend analog video signal obtained by the backend transmitter on the transmission cable is transmitted in reverse through the coaxial signal to the Image Signal Processing (ISP) of the frontend camera, and then the ISP determines the product value of the initial color saturation intensity value and the average signal loss coefficient through the compensation formula.

[0120] The compensation formula is specifically:

[0121] S a = S a 0 * α v

[0122] Wherein, S a is the color saturation intensity value of the image, and S a 0 is the initial color saturation intensity value without cable transmission.

[0123] When it is determined at the backend, specifically:

[0124] First, obtain the product value of the initial color saturation intensity value and the average signal loss coefficient through the compensation formula, and then the backend transmitter transmits the calculated above product value in reverse through the coaxial signal to the frontend camera ISP.

[0125] Determine the product value of the initial color saturation intensity value and the average signal loss coefficient in the above manner, and then the color saturation intensity of the image can be compensated, preparing for subsequent adjustment of the image saturation to improve the image effect.

[0126] Further, after obtaining the color saturation intensity value of the image, transmit the above color saturation intensity value to the image signal processor for adjusting the color saturation of the image.

[0127] For example, first, obtain the initial color saturation intensity value that has not been transmitted through the cable. The obtained initial color saturation intensity value is 100. Then, obtain the average signal loss coefficient of 5 frames of front-end analog video signals on the transmission cable. This average signal loss coefficient is 16.56. Then, the back-end transmitter reversely transmits the average signal loss coefficient of the 5 frames of front-end analog video signals obtained (i.e., 165.6) to the front-end camera ISP through the coaxial signal. Then, the ISP determines the product value of the initial color saturation intensity value and the average signal loss coefficient to be 165.6 through the compensation formula. Then, the ISP adjusts the saturation intensity value of the image after cable transmission to 165.6.

[0128] In summary, by comparing and analyzing N frames of front-end analog video signals that have not been transmitted through the cable and N frames of back-end analog video signals received at the back-end after the above N frames of front-end analog video signals are transmitted through the cable, calculating the average signal loss coefficient of the N frames of front-end analog video signals on the transmission cable, and finally compensating the color saturation intensity value of the image through the average signal loss coefficient, thereby adjusting the image color saturation, compensating for the color loss during the cable transmission process, and thus flexibly, real-timely, and dynamically adjusting, updating, and optimizing the image effect of the analog video signal, enhancing the signal compensation effect, and improving the image effect after transmission attenuation.

[0129] In addition, since only the color saturation intensity value is adjusted, before and after adjusting the image saturation, the amplitude of the horizontal sync signal, the amplitude of the color sync signal, and the amplitude of the white level signal of the analog video signal output by the front-end are not affected, that is, after adjusting the saturation of the image, it does not affect the objectivity and accuracy of the calculated signal loss coefficient.

[0130] The technical solution of the present application will be further described below in combination with a specific application process.

[0131] As Figure 5 shown in the processing process scenario diagram of the image processing method, first, the acquisition module in the front-end acquires N frames of analog video signals, and this signal is the valid signal of the Mth row in the video stream;

[0132] Secondly, the above N frames of analog video signals are transmitted through the cable to reach the back-end decoder, and the decoder decodes to obtain the N frames of analog video signals after transmission, and thus the characteristic amplitudes corresponding to each frame of the N frames of analog video signals before and after cable transmission can be obtained. This characteristic amplitude includes the horizontal sync signal amplitude H1, the color sync signal amplitude B1, the white level signal amplitude W1 before transmission and the horizontal sync signal amplitude H2, the color sync signal amplitude B2, and the white level signal amplitude W2 after transmission;

[0133] Then, transmit the characteristic amplitudes of the N-frame analog video signals before and after cable transmission to the calculation module in the backend. Obtain the average signal loss coefficient through the loss coefficient calculation formula, and transmit it to the transmitter in the backend;

[0134] The transmitter in the backend reversely transmits the average signal loss coefficient to the front-end ISP through a coaxial signal;

[0135] The front-end ISP adjusts the saturation of the image through the compensation formula and sends the adjusted image to the backend decoder;

[0136] Finally, the backend decoder transmits the decoded image to the display to display the image.

[0137] By using the ISP to dynamically adjust the color saturation intensity value of the image in the above manner, the color loss during cable transmission can be compensated, thereby flexibly, real-time, and dynamically adjusting, updating, and optimizing the image effect of the analog video signal, improving the signal compensation effect, and further improving the image effect after transmission attenuation. Moreover, after adjusting the saturation of the image, it does not affect the objectivity and accuracy of the calculated signal loss coefficient.

[0138] Based on the same inventive concept, an image processing system is further provided in an embodiment of the present application, as Figure 6 shown in the structural schematic diagram of an image processing system provided by the present application. The system includes:

[0139] An acquisition module 601, configured to acquire N-frame front-end analog video signals and N-frame back-end analog video signals, where the N-frame back-end analog video signals are the N-frame analog video signals obtained by transmitting the N-frame front-end analog video signals through a cable, and N is an integer greater than zero;

[0140] A feature module 602, configured to determine the first type of characteristic amplitude of each frame of the front-end analog video signal and the second type of characteristic amplitude of each frame of the back-end analog video signal, where the first type of characteristic amplitude includes the amplitudes of different attribute signals in the corresponding frame of the front-end analog video signal, and the second type of characteristic amplitude includes the amplitudes of different attribute signals in the corresponding frame of the back-end analog video signal;

[0141] A loss module 603, configured to determine the signal loss coefficient of each frame of the front-end analog video signal after cable transmission through the first type of characteristic amplitude and the second type of characteristic amplitude, and obtain the average signal loss coefficient of the N-frame front-end analog video signals on the transmission cable;

[0142] A processing module 604, configured to compensate the color saturation intensity value of the image through the average signal loss coefficient and transmit the color saturation intensity value to the image signal processor that adjusts the color saturation of the image.

[0143] In a possible design, the feature module 602 is specifically configured to obtain the first type of horizontal synchronization signal amplitude, the first type of color synchronization signal amplitude, and the first type of white level signal amplitude of each frame of the front-end analog video signal;

[0144] Taking the first type of horizontal synchronization signal amplitude, the first type of color synchronization signal amplitude, and the first type of white level signal amplitude as the first type of feature amplitudes, determine the first type of feature amplitudes of each frame of the front-end analog video signal;

[0145] Obtain the second type of horizontal synchronization signal amplitude, the second type of color synchronization signal amplitude, and the second type of white level signal amplitude of each frame of the back-end analog video signal;

[0146] Taking the second type of horizontal synchronization signal amplitude, the second type of color synchronization signal amplitude, and the second type of white level signal amplitude as the second type of feature amplitudes, determine the second type of feature amplitudes of each frame of the back-end analog video signal.

[0147] In a possible design, the loss module 603 is specifically configured to obtain the ratio of the first type of feature amplitudes to the second type of feature amplitudes;

[0148] Obtain the preset scaling ratio corresponding to the ratio;

[0149] Obtain the product value of the preset scaling ratio and the ratio, and take the product value as the signal loss coefficient of each frame of the front-end analog video signal after being transmitted through the cable.

[0150] In a possible design, the processing module 604 is specifically configured to obtain the initial color saturation intensity value that has not been transmitted through the cable;

[0151] Determine the product value of the initial color saturation intensity value and the average signal loss coefficient;

[0152] Compensate the color saturation intensity value of the image through the product value.

[0153] Based on the same inventive concept, an electronic device is further provided in an embodiment of the present application. The above-mentioned electronic device can implement the functions of the foregoing image processing system. Refer to Figure 7 , the above-mentioned electronic device includes:

[0154] At least one processor 701, and a memory 702 connected to the at least one processor 701. In the embodiment of the present application, the specific connection medium between the processor 701 and the memory 702 is not limited. Figure 7 Taking the connection between the processor 701 and the memory 702 through the bus 700 as an example. The bus 700 is represented by a thick line in Figure 7 . The connection manners between other components are only for illustrative purposes and are not to be taken as a limitation. The bus 700 can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation,Figure 7 It is represented only by a thick line, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 701 may also be referred to as a controller, and there is no limitation on the name.

[0155] In the embodiment of the present application, the memory 702 stores instructions executable by at least one processor 701. By executing the instructions stored in the memory 702, the at least one processor 701 can execute the image processing method described above. The processor 701 can implement Figure 7 the functions of each module in the system shown.

[0156] Among them, the processor 701 is the control center of the system. It can connect various parts of the entire control device through various interfaces and lines. By running or executing the instructions stored in the memory 702 and calling the data stored in the memory 702, various functions of the system and process data, so as to monitor the system as a whole.

[0157] In a possible design, the processor 701 may include one or more processing units. The processor 701 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above modem processor may not be integrated into the processor 701. In some embodiments, the processor 701 and the memory 702 may be implemented on the same chip. In some embodiments, they may also be separately implemented on independent chips.

[0158] The processor 701 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the image processing method disclosed in combination with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0159] The memory 702, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory 702 can include at least one type of storage medium, for example, it can include flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memory, magnetic disk, optical disc, and so on. The memory 702 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 702 in the embodiments of the present application can also be a circuit or any other device capable of implementing a storage function, for storing program instructions and / or data.

[0160] By designing and programming the processor 701, the code corresponding to the image processing method introduced in the foregoing embodiments can be solidified into the chip, so that the chip can execute Figure 6 the steps of the image processing method of the illustrated embodiment when running. How to design and program the processor 701 is a well-known technology to those skilled in the art and will not be elaborated here.

[0161] Based on the same inventive concept, the embodiments of the present application also provide a storage medium storing computer instructions, which, when running on a computer, cause the computer to execute the image processing method described above.

[0162] In some possible implementation manners, various aspects of the image processing method provided in the present application can also be implemented in the form of a program product, which includes program code. When the program product runs on a device, the program code is used to cause the control device to execute the steps in the image processing method according to various exemplary embodiments of the present application described above in this specification.

[0163] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0164] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0165] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0166] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0167] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims

1. An image processing method, characterized in that, The method includes: Obtaining N frames of front-end analog video signals and N frames of back-end analog video signals, where the N frames of the back-end analog video signals are N frames of analog video signals obtained by transmitting the N frames of the front-end analog video signals through a cable, and N is an integer greater than zero; Determining a first type of characteristic amplitude value for each frame of the front-end analog video signal and a second type of characteristic amplitude value for each frame of the back-end analog video signal, where the first type of characteristic amplitude value includes the amplitude values of signals with different attributes in the corresponding frame of the front-end analog video signal, and the second type of characteristic amplitude value includes the amplitude values of signals with different attributes in the corresponding frame of the back-end analog video signal; Obtaining the ratio of the first type of characteristic amplitude value to the second type of characteristic amplitude value; obtaining the preset scaling ratio corresponding to the ratio; obtaining the product value of the preset scaling ratio and the ratio, and using the product value as the signal loss coefficient after each frame of the front-end analog video signal is transmitted through the cable, to obtain the average signal loss coefficient of the N frames of the front-end analog video signals on the transmission cable; Compensating the color saturation intensity value of the image through the average signal loss coefficient, and transmitting the color saturation intensity value to an image signal processor for adjusting the color saturation of the image.

2. The method according to claim 1, characterized in that, The determining a first type of characteristic amplitude value for each frame of the front-end analog video signal and a second type of characteristic amplitude value for each frame of the back-end analog video signal includes: Obtaining a first type of horizontal sync signal amplitude value, a first type of color sync signal amplitude value, and a first type of white level signal amplitude value for each frame of the front-end analog video signal; Using the first type of horizontal sync signal amplitude value, the first type of color sync signal amplitude value, and the first type of white level signal amplitude value as the first type of characteristic amplitude value, and determining the first type of characteristic amplitude value for each frame of the front-end analog video signal; Obtaining a second type of horizontal sync signal amplitude value, a second type of color sync signal amplitude value, and a second type of white level signal amplitude value for each frame of the back-end analog video signal; Using the second type of horizontal sync signal amplitude value, the second type of color sync signal amplitude value, and the second type of white level signal amplitude value as the second type of characteristic amplitude value, and determining the second type of characteristic amplitude value for each frame of the back-end analog video signal.

3. The method according to claim 1, characterized in that The compensating the color saturation intensity value of the image through the average signal loss coefficient includes: Obtaining the initial color saturation intensity value that has not been transmitted through the cable; Determining the product value of the initial color saturation intensity value and the average signal loss coefficient; Compensating the color saturation intensity value of the image through the product value.

4. An image processing system, characterized in that, The system includes: An obtaining module, configured to obtain N frames of front-end analog video signals and N frames of back-end analog video signals, where the N frames of the back-end analog video signals are N frames of analog video signals obtained by transmitting the N frames of the front-end analog video signals through a cable, and N is an integer greater than zero; A feature module, configured to determine a first type of feature amplitude of each frame of the front-end analog video signal and a second type of feature amplitude of each frame of the back-end analog video signal, where the first type of feature amplitude includes amplitudes of signals with different attributes in the corresponding frame of the front-end analog video signal, and the second type of feature amplitude includes amplitudes of signals with different attributes in the corresponding frame of the back-end analog video signal; A loss module, configured to obtain a ratio of the first type of feature amplitude to the second type of feature amplitude; obtain a preset scaling ratio corresponding to the ratio; obtain a product value of the preset scaling ratio and the ratio, and use the product value as the signal loss coefficient of each frame of the front-end analog video signal after being transmitted through a cable, so as to obtain an average signal loss coefficient of N frames of the front-end analog video signal on the transmission cable; A processing module, configured to compensate a color saturation intensity value of an image through the average signal loss coefficient, and transmit the color saturation intensity value to an image signal processor for adjusting the color saturation of the image.

5. The system according to claim 4, wherein The feature module is configured to obtain a first type of horizontal synchronization signal amplitude, a first type of color synchronization signal amplitude, and a first type of white level signal amplitude of each frame of the front-end analog video signal; Use the first type of horizontal synchronization signal amplitude, the first type of color synchronization signal amplitude, and the first type of white level signal amplitude as the first type of feature amplitude, and determine the first type of feature amplitude of each frame of the front-end analog video signal; Obtain a second type of horizontal synchronization signal amplitude, a second type of color synchronization signal amplitude, and a second type of white level signal amplitude of each frame of the back-end analog video signal; Use the second type of horizontal synchronization signal amplitude, the second type of color synchronization signal amplitude, and the second type of white level signal amplitude as the second type of feature amplitude, and determine the second type of feature amplitude of each frame of the back-end analog video signal.

6. The system according to claim 4, wherein The processing module is configured to obtain an initial color saturation intensity value that has not been transmitted through a cable; Determine a product value of the initial color saturation intensity value and the average signal loss coefficient; Compensate the color saturation intensity value of the image through the product value.

7. An electronic device, characterized in that, It includes: A memory, configured to store a computer program; A processor, configured to implement the method steps described in any one of claims 1-3 when executing the computer program stored on the memory.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the method steps described in any one of claims 1-3.

Citation Information

Patent Citations

  • Method and device for determining video signal attenuation data

    CN105407253A