Image adjustment method, device, monitoring system and storage medium

By acquiring and adjusting the target image and standard image information in the monitoring system and determining the parameter compensation value, the color deviation problem caused by the mid-frequency deviation of the coaxial high-definition monitoring system is solved, the image quality is improved and the anti-interference ability is enhanced.

CN118646959BActive Publication Date: 2024-11-15ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411109418.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-15
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

The existing coaxial high-definition monitoring system has a color deviation during image display due to the frequency deviation problems of front-end equipment and back-end equipment. The existing frequency deviation compensation processing solution cannot meet the monitoring system of different degrees of deviation, and the analog signals are easily disturbed, resulting in Poor image quality.

Method used

By acquiring the target area information and standard image information of the target image, the parameter compensation value is determined, and the target image is adjusted according to the compensation value to eliminate frequency deviation and improve image quality.

Benefits of technology

Effectively eliminate color deviation caused by system frequency deviation, improve image quality, adapt to monitoring systems with different degrees of deviation, and have strong anti-interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646959B_ABST
    Figure CN118646959B_ABST
Patent Text Reader

Abstract

The present application relates to an image adjustment method, device, monitoring system and storage medium, wherein the method comprises: obtaining first image information of a target area of ​​a target image; setting the target area according to the acquisition order of a standard image or a target image; obtaining first image information of a standard image corresponding to the target image; determining a parameter compensation value according to the first image information of the standard image and the first image information of the target area of ​​the target image; adjusting the target image according to the parameter compensation value, thereby eliminating the color deviation caused by the system frequency deviation and improving the image quality, and solving the problem of poor image quality caused by detecting the degree of deviation of the color carrier phase of a video signal and performing frequency deviation compensation processing in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image adjustment method, device, monitoring system and storage medium. Background Art

[0002] The current coaxial high-definition monitoring system includes front-end devices such as analog high-definition cameras and back-end devices such as hard disk recorders. The front-end devices are used for image acquisition, and the back-end devices are used for decoding and display. However, due to the clock frequency deviation of the crystal or crystal oscillator of the front-end and back-end devices, the frequency deviation of the peripheral resonant circuit, the frequency deviation of the PLL (phase-locked loop) module inside the chip, and the sampling clock frequency deviation of the DAC / ADC module, the combined effects of these frequency deviations lead to color deviations when the final image is displayed, such as the problem that the same color is inconsistent on the left and right sides of the same frame of image.

[0003] The existing method is to detect the deviation of the color carrier phase of the video signal and perform frequency deviation compensation. However, these solutions cannot meet the needs of monitoring systems with different deviation degrees. After being transmitted through cables of different materials and lengths, the analog signal itself is also more susceptible to interference, which makes the mechanism more prone to misjudgment and limitations. Ultimately, the image improvement is not ideal, resulting in poor image quality.

[0004] There is currently no effective solution to the problem of poor image quality in the prior art. Summary of the invention

[0005] The embodiments of the present application provide an image adjustment method, device, monitoring system and storage medium to solve the problem of poor image quality in the prior art.

[0006] In a first aspect, an embodiment of the present application provides an image adjustment method, the method comprising:

[0007] Acquire first image information of a target area of ​​a target image; the target area is set according to a standard image or a collection order of the target image;

[0008] Acquire first image information of a standard image corresponding to the target image;

[0009] determining a parameter compensation value according to the first image information of the standard image and the first image information of the target area of ​​the target image;

[0010] The target image is adjusted according to the parameter compensation value.

[0011] In some embodiments, determining the parameter compensation value according to the first image information of the standard image and the first image information of the target area of ​​the target image includes:

[0012] generating second image information of the standard image according to the first image information of the standard image; the second image information and the first image information are image information of different types;

[0013] generating second image information of the target area of ​​the target image according to the first image information of the target area of ​​the target image;

[0014] The parameter compensation value is determined according to the second image information of the standard image and the second image information of the target area of ​​the target image.

[0015] In some embodiments, determining the parameter compensation value according to the second image information of the standard image and the second image information of the target area of ​​the target image includes:

[0016] determining a color difference value according to the second image information of the standard image and the second image information of the target area of ​​the target image;

[0017] The parameter compensation value is determined according to the color difference value.

[0018] In some embodiments, determining the parameter compensation value according to the color difference value includes:

[0019] Determining a frequency shift level according to the color difference value;

[0020] The parameter compensation value is determined according to a preset correspondence between the frequency offset level and the parameter compensation value.

[0021] In some embodiments, the method further comprises:

[0022] When the acquisition order of the standard image or the target image is from left to right, determining the right side of the target image as the target area of ​​the target image;

[0023] When the acquisition order of the standard image or the target image is from right to left, the left side of the target image is determined as the target area of ​​the target image.

[0024] In some embodiments, acquiring first image information of a target area of ​​a target image includes:

[0025] First image information of the target area is determined according to pixel values ​​of the target area of ​​the target image.

[0026] In a second aspect, an embodiment of the present application provides an image adjustment device, the device comprising:

[0027] A first acquisition module, used to acquire first image information of a target area of ​​a target image; the target area is set according to a standard image or a collection order of the target image;

[0028] A second acquisition module, used to acquire first image information of a standard image corresponding to the target image;

[0029] a compensation value determination module, configured to determine a parameter compensation value according to first image information of the standard image and first image information of a target area of ​​the target image;

[0030] An adjustment module is used to adjust the target image according to the parameter compensation value.

[0031] In a third aspect, an embodiment of the present application provides a monitoring system, which includes a camera device and a video recording device that are communicatively connected, and the video recording device includes a control unit, which is configured to run a computer program to execute the image adjustment method described in the first aspect.

[0032] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the image adjustment method described in the first aspect.

[0033] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the image adjustment method described in the first aspect are implemented.

[0034] Compared with the prior art, an image adjustment method, device, monitoring system, electronic device and storage medium provided in the embodiments of the present application obtain first image information of a target area of ​​a target image; the target area is set according to the acquisition order of a standard image or a target image; the first image information of a standard image corresponding to the target image is obtained; a parameter compensation value is determined according to the first image information of the standard image and the first image information of the target area of ​​the target image; the target image is adjusted according to the parameter compensation value, thereby eliminating the color deviation caused by the system frequency deviation and improving the image quality, and solving the problem of poor image quality caused by detecting the degree of deviation of the color carrier phase of a video signal and performing frequency deviation compensation processing in the prior art.

[0035] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0037] Figure 1 is a hardware structure block diagram of a terminal for executing an image adjustment method according to an embodiment of the present application;

[0038] Figure 2 is a schematic diagram of a scenario in which an image adjustment method is applied in an embodiment of the present application;

[0039] Figure 3 is a flow chart of an image adjustment method according to an embodiment of the present application;

[0040] Figure 4 is a flow chart of a method for determining a parameter compensation value in an embodiment of the present application;

[0041] Figure 5 is a structural diagram of a monitoring system in an embodiment of the present application;

[0042] Figure 6 This is a schematic diagram of a back-end decoding display image when there is no frequency deviation in an embodiment of the present application;

[0043] Figure 7 This is a schematic diagram of a back-end decoding display image with frequency deviation in an embodiment of the present application;

[0044] Figure 8 is a schematic diagram of a target area to be counted in an embodiment of the present application;

[0045] Fig. 9 It is a structural block diagram of an image adjustment device according to an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0047] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0048] The method embodiments provided in the embodiments of the present application can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 is a hardware structure block diagram of a terminal for executing an image adjustment method according to an embodiment of the present application. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 and a memory 104 for storing data, wherein the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0049] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to an image adjustment method in an embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0050] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0051] Figure 2 is a schematic diagram of a scenario in which an image adjustment method in an embodiment of the present application is applied. The image adjustment method in an embodiment of the present application is applied to Figure 2 The monitoring system includes a camera 210 and a video recording device 220, which are connected to each other by communication, and can be connected by wire or wirelessly. The camera 210, i.e., the front-end device, is used for image acquisition, and sends the acquired image to the video recording device 220, i.e., the back-end device. The video recording device 220 is used for decoding and displaying, and the video recording device 220 includes a control unit, which is configured to run a computer program to execute the image adjustment method in the embodiment of the present application. Usually, when the monitoring system is started, restarted, or reset, due to system instability, some modules or structures of the system, such as crystals or crystal oscillators, peripheral resonant circuits, PLL (phase-locked loop) modules inside the chip, DAC / ADC modules, etc., have frequency deviations. When the system is stable, the frequency deviation also tends to be stable. Therefore, it is necessary to execute the image adjustment method in this embodiment to adjust or compensate the image when the monitoring system is started, restarted, or reset to eliminate the color deviation caused by the system frequency deviation.

[0052] As a non-limiting example, when the monitoring system runs or executes the image adjustment method in the embodiment of the present application, the camera device 210 generates a standard image according to the preset first image information, sends the preset first image information corresponding to the standard image to the video recording device 220, and sends the standard image to the video recording device 220, the video recording device 220 receives the standard image sent by the camera device 210 and the preset first image information corresponding to the standard image, and assumes that the standard image received by the video recording device 220 is the target image, the video recording device 220 obtains the first image information of the target area of ​​the target image, and the target area is set according to the acquisition sequence of the standard image or the target image, and the video recording device 220 determines the parameter compensation value according to the preset first image information corresponding to the standard image and the first image information of the target area of ​​the target image, and adjusts the target image according to the parameter compensation value. Here, adjusting the target image includes adjusting the frequency or phase of the signal corresponding to the target image, and displaying the adjusted target image, thereby eliminating the color deviation caused by the system frequency deviation. The first image information here can be the color information of the image, the grayscale information of the image, etc., which is not specifically limited here.

[0053] As another non-limiting example, when the monitoring system runs or executes the image adjustment method in the embodiment of the present application, the video recording device 220 pre-sets the first image information and sends the pre-set first image information to the camera device 210, the camera device 210 generates a standard image according to the received pre-set first image information, and sends the standard image to the video recording device 220, the video recording device 220 receives the standard image sent by the camera device 210, and the standard image received by the video recording device 220 is set as the target image, the video recording device 220 obtains the first image information of the target area of ​​the target image, and the target area is set according to the acquisition sequence of the standard image or the target image, and the video recording device 220 determines the parameter compensation value according to the pre-set first image information corresponding to the standard image and the first image information of the target area of ​​the target image, and adjusts the target image according to the parameter compensation value. Here, adjusting the target image includes adjusting the frequency or phase of the signal corresponding to the target image, and displaying the adjusted target image, thereby eliminating the color deviation caused by the system frequency deviation. The first image information here can be the color information of the image, the grayscale information of the image, etc., which is not specifically limited here.

[0054] The monitoring system of this embodiment obtains the first image information of the target area of ​​the target image; the target area is set according to the acquisition order of the standard image or the target image; the first image information of the standard image corresponding to the target image is obtained; the parameter compensation value is determined according to the first image information of the standard image and the first image information of the target area of ​​the target image; the target image is adjusted according to the parameter compensation value, so as to eliminate the color deviation caused by the system frequency deviation and improve the image quality, which solves the problem of poor image quality caused by detecting the deviation degree of the color carrier phase of the video signal and performing frequency deviation compensation processing in the prior art.

[0055] This embodiment provides an image adjustment method. Figure 3 is a flow chart of an image adjustment method according to an embodiment of the present application. Figure 3 As shown, the process includes the following steps:

[0056] Step S310, obtaining first image information of a target area of ​​a target image; the target area is set according to the acquisition order of the standard image or the target image.

[0057] In this step, the camera device sends a standard image to the video recording device, and the standard image sent by the camera device and received by the video recording device is recorded as the target image. After receiving the target image, the video recording device obtains the first image information of the target area of ​​the target image, where the target area is set or determined according to the acquisition order of the standard image or the target image. The acquisition order or processing order of the standard image and the target image is consistent, that is, the standard image and the target image are acquired or processed from left to right, or the standard image and the target image are acquired or processed from right to left, and the target area is determined according to the area acquired or processed after the target image. As a non-limiting example, when the standard image and the target image are acquired or processed from left to right, the area corresponding to the right side of the target image is set as the target area, for example, the area corresponding to the rightmost N1 column of pixels of the target image is determined as the target area, where N1 is a positive integer. As another non-limiting example, when the standard image and the target image are acquired or processed from right to left, the area corresponding to the left side of the target image is set as the target area, for example, the area corresponding to the leftmost N2 column of pixels of the target image is determined as the target area, where N2 is a positive integer. The first image information here may be color information of the image, grayscale information of the image, etc., which is not specifically limited here.

[0058] Step S320: Acquire first image information of a standard image corresponding to the target image.

[0059] In this step, the recording device obtains the first image information of the standard image corresponding to the target image. The camera generates a standard image according to the preset first image information, sends the preset first image information corresponding to the standard image to the camera, and sends the standard image to the camera, and the camera receives the standard image sent by the camera and the preset first image information corresponding to the standard image. Alternatively, the camera presets the first image information and sends the preset first image information to the camera, the camera generates a standard image according to the received preset first image information, and sends the standard image to the camera, and the camera receives the standard image sent by the camera.

[0060] Step S330: determining a parameter compensation value according to the first image information of the standard image and the first image information of the target area of ​​the target image.

[0061] In this step, the recording device determines the parameter compensation value according to the first image information of the standard image and the first image information of the target area of ​​the target image. The recording device determines the frequency deviation intensity level according to the difference between the first image information of the standard image and the first image information of the target area of ​​the target image, and determines the parameter compensation value according to the frequency deviation intensity level.

[0062] Step S340: adjusting the target image according to the parameter compensation value.

[0063] In this step, the video recording device adjusts the target image according to the parameter compensation value. The adjustment of the target image here includes adjusting the frequency or phase of the signal corresponding to the target image, and displaying the adjusted target image, thereby eliminating the color deviation caused by the system frequency deviation.

[0064] In this embodiment, the first image information of the target area of ​​the target image is obtained; the target area is set according to the acquisition order of the standard image or the target image; the first image information of the standard image corresponding to the target image is obtained; the parameter compensation value is determined according to the first image information of the standard image and the first image information of the target area of ​​the target image; the target image is adjusted according to the parameter compensation value, thereby eliminating the color deviation caused by the system frequency deviation and improving the image quality, and solving the problem of poor image quality caused by detecting the deviation degree of the color carrier phase of the video signal and performing frequency deviation compensation processing in the prior art. In the prior art, the deviation of the color carrier phase of the video signal is detected by analyzing the phase difference of the analog signal. The analog signal is easily interfered, and the signal will be distorted when transmitted over long distances. After being transmitted through different cable materials and lengths, the analog signal itself is also more easily interfered, which makes the mechanism of the prior art more prone to misjudgment and has certain limitations and poor anti-interference performance, resulting in unsatisfactory image improvement and poor image quality. The present application does not rely on the analog signal analysis solution, and can more effectively calculate the frequency deviation state of the system.

[0065] In some of the embodiments, Figure 4 As shown, determining the parameter compensation value according to the first image information of the standard image and the first image information of the target area of ​​the target image includes the following steps:

[0066] Step S410: generating second image information of a standard image according to first image information of a standard image; the second image information and the first image information are different types of image information.

[0067] In this step, the video recording device performs spatial transformation on the first image information of the standard image to generate the second image information of the standard image. The second image information and the first image information are different types of color information or tint information.

[0068] Step S420 , generating second image information of the target area of ​​the target image according to the first image information of the target area of ​​the target image.

[0069] In this step, the video recording device performs spatial transformation on the first image information of the target area of ​​the target image to generate second image information of the target area of ​​the target image. The second image information and the first image information are different types of color information or tint information.

[0070] Step S430: determining a parameter compensation value according to the second image information of the standard image and the second image information of the target area of ​​the target image.

[0071] In this step, the video recording device determines the parameter compensation value according to the second image information of the standard image and the second image information of the target area of ​​the target image.

[0072] In this embodiment, the first image information of the standard image and the first image information of the target area of ​​the target image are spatially transformed to generate corresponding second image information, and the second image information is convenient for differential calculation, thereby improving calculation efficiency.

[0073] In some of the embodiments, the parameter compensation value is determined according to the second image information of the standard image and the second image information of the target area of ​​the target image, including: determining the color difference value according to the second image information of the standard image and the second image information of the target area of ​​the target image; determining the parameter compensation value according to the color difference value. In this embodiment, the recording device determines the color difference value according to the second image information of the standard image and the second image information of the target area of ​​the target image, and the recording device determines the parameter compensation value according to the color difference value. According to the parameter compensation value, the target image is adjusted to eliminate the color deviation caused by the system frequency deviation, improve the image quality, and solve the problem of poor image quality caused by detecting the deviation degree of the color carrier phase of the video signal and performing frequency deviation compensation processing in the prior art.

[0074] In some embodiments, determining the parameter compensation value according to the color difference value includes: determining the frequency offset level according to the color difference value; and determining the parameter compensation value according to the correspondence between the preset frequency offset level and the parameter compensation value. In this embodiment, the video recording device determines the frequency offset level according to the color difference value, and the video recording device determines the parameter compensation value according to the correspondence between the preset frequency offset level and the parameter compensation value. According to the parameter compensation value, the target image is adjusted to eliminate the color deviation caused by the system frequency deviation and improve the image quality.

[0075] In some of the embodiments, the image adjustment method also includes: when the acquisition order of the standard image or the target image is from left to right, the right side of the target image is determined as the target area of ​​the target image; when the acquisition order of the standard image or the target image is from right to left, the left side of the target image is determined as the target area of ​​the target image.

[0076] In some embodiments, obtaining the first image information of the target area of ​​the target image includes: determining the first image information of the target area according to the pixel value of the target area of ​​the target image. In this embodiment, the video recording device determines the first image information of the target area according to the pixel value of the target area of ​​the target image.

[0077] Figure 5It is a structural diagram of a monitoring system in an embodiment of the present application. The front end includes an image sensor Sensor, a TX transmitter chip, a clock source, etc. The image sensor Sensor is used to collect images. The clock source outside the chip is a crystal or a crystal oscillator. The chip has internal PLL, DAC, etc. The video stream is converted from digital to analog by the DAC and then transmitted to the back end through a transmission line. The back end includes an RX receiver chip, a clock source, etc. The clock source outside the chip is a crystal or a crystal oscillator. The chip has internal PLL, ADC, a frequency deviation compensation module, etc. The frequency deviation compensation module performs the image adjustment method in the aforementioned embodiment to adjust or compensate the image, and then displays the image. Taking the monitoring system of coaxial high-definition video signals as an example, the current coaxial high-definition monitoring system includes a front-end analog high-definition camera and a back-end hard disk recorder. The front end is for image acquisition, and the back end is for decoding and display. However, due to the clock frequency deviation of the crystal or crystal oscillator of the front-end and back-end, the influence of the peripheral resonant circuit, the deviation of the sampling clock of the PLL module and DAC / ADC module in the chip, and the attenuation of the transmission link cable, the combined influence of these frequency deviations leads to color deviation when the final image is displayed, and the problem of inconsistency between the left and right sides of the same color. The higher the resolution (the higher the sampling frequency), the more obvious the color deviation. For example, if the crystal specification of the clock source of the front-end is 24M, the theoretical frequency deviation range is ±30ppm, the frequency deviation range of the internal PLL of the TX transmitter chip is about ±50ppm, and the frequency deviation range of the DAC is ±50ppm. The attenuation of the transmission cable will also cause a certain frequency deviation. The crystal specification of the clock source of the back-end is 27M, the theoretical frequency deviation range is ±25ppm, the frequency deviation range of the internal PLL of the RX receiver chip is about ±25ppm, and the frequency deviation range of the ADC is ±40ppm.

[0078] Take monochrome images as an example. Ideally, when there is no frequency deviation, such as a single pure red, the image presented after back-end decoding and display is as follows: Figure 6 As shown, its RGB information is (r1, g1, b1). The RGB information here is the first image information. When there is frequency deviation in the monitoring system, a single pure red color is displayed after back-end decoding. Figure 7 As shown in the figure, assume that the image is collected from left to right in one row. The color at the starting position is normal. As the frequency deviation problem appears, the carrier signal gradually deviates to the end of the row, that is, the right side of the image, resulting in color cast problem, that is, Figure 7 The left and right parts of the image in the image are color-shifted. To evaluate the degree of frequency deviation of the monitoring system in the current channel, it is necessary to focus on Figure 7 The data in the color cast area on the right side of the image are analyzed.

[0079] Based on the pure color image after the current frequency deviation, the image size is the resolution of the current image, the image length width and width height, and the coordinate points of the four corners of the image are as follows Figure 8As shown, if the image is a 4K image, width=3840, height=2160, the coordinates of the four vertices of the image are (0, 0), (width, 0), (0, height), (width, height). The target area to be counted is close to the right side of the image, the coordinate point of the upper left corner of the target area to be counted is (X, Y), the length of the statistics is M, and the width is N, that is, the target area to be counted is a rectangular box with a length of M and a width of N. The RBG mean information (r2, g2, b2) in the area is obtained. Through color space conversion, the RGB value of the target area to be counted is first converted to the XYZ value of the XYZ color space.

[0080] X=R×0.4124564+G×0.3575761+B×0.1804375;

[0081] Y=R×0.2126729+G×0.7151522+B×0.0721750;

[0082] Z=R×0.0193339+G×0.1191920+B×0.9503041;

[0083] Among them, R, G, B are the corresponding RGB values. Then convert the XYZ value to Lab color space.

[0084] L = 116 × f (Y / Yn) - 16;

[0085] a=500×(f(X / Xn)-f(Y / Yn));

[0086] b = 200 × (f (Y / Yn) - f (Z / Zn));

[0087] Where X, Y and Z are XYZ component values, Xn, Yn and Zn are XYZ constants of the reference white point, and f( ) is a nonlinear conversion function. Thus, the Lab color information (L2, a2, b2) of the target area to be counted is obtained, and the standard monochrome Lab information is converted to (L1, a1, b1) through the color space, and the color difference value ΔE = sqrt((ΔL)^2 + (Δa)^2 + (Δb)^2) can be calculated. Among them, ΔL, Δa, Δb are the differences between the target area color and the standard color, ΔL=L1-L2, Δa=a1-a2, Δb=b1-b2. The frequency deviation intensity level is determined according to the color difference value, and finally the corresponding compensation parameters that need to be adjusted, such as color carrier frequency and phase, are obtained by looking up the frequency deviation intensity level table.

[0088] The standard monochrome screen is sent by the front-end camera chip. After passing through each node of the transmission link, the back-end storage and decoding device receives the monochrome screen with a color deviation on the right. The degree of color deviation is analyzed to determine the intensity of the frequency deviation. A large amount of data analysis will be done in the early stage to determine the relationship between the degree of color deviation and the degree of frequency deviation. For example, the color deviation value A, the frequency deviation is +50ppm, the deviation value B, the frequency deviation is +100ppm. A lookup table will be made in advance to determine the intensity of the frequency deviation. According to the intensity of the frequency deviation, the signal with a frequency deviation within a certain range will be adjusted so that the final adjusted signal is within a certain range. The adjustment involves the carrier frequency, phase, etc. of the signal. The frequency deviation intensity is accurately expressed by the color difference value of the standard monochrome screen. The signal is adjusted according to the frequency deviation intensity found in the table to restore the color of the image accurately.

[0089] The existing color deviation improvement solution is to implement some frequency deviation compensation mechanisms. By detecting the deviation degree of the color carrier phase of the video signal, frequency deviation compensation processing is performed. However, the existing solution cannot meet the monitoring systems with different deviation degrees. After being transmitted through different cables, the analog signal is more susceptible to interference, which makes the mechanism more prone to misjudgment and the final image improvement is not ideal.

[0090] The method in the embodiment of the present application is based on the analysis of the image after frequency deviation under the current monitoring channel (normal monitoring is not affected when power is turned on or the cable is plugged in or unplugged). First, the front-end transmitting chip outputs a standard single pure color screen, such as red, and the standard RGB information is (r1, g1, b1). The single pure color image of the back-end receiving end is obtained, and the RGB data (r2, g2, b2) in the target statistical window is obtained. Through the RGB to Lab color space conversion, the color information of the standard monochrome is Lab1 (L1, a1, b1), and the color information of the statistical window, that is, the target area to be counted, is Lab2 (L2, a2, b2). The color difference value ΔE = sqrt((ΔL)^2 + (Δa)^2 + (Δb)^2) is obtained, where ΔL, Δa, and Δb are the differences between the measured color and the standard color. The frequency deviation intensity level is determined according to the color difference value. Finally, the frequency deviation intensity level table is looked up to obtain the corresponding compensation parameters that need to be adjusted, such as color carrier frequency and phase. Compared with existing solutions, it is easier to implement, has higher accuracy, stronger anti-interference ability, can process each monitoring channel independently, and has good adaptability.

[0091] The present application also provides an image adjustment device in the embodiments, which is used to implement the above embodiments and preferred implementations, and will not be repeated hereafter. The terms "module", "unit", "subunit", etc. used below may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0092] Fig. 9 is a structural block diagram of an image adjustment device according to an embodiment of the present application. Fig. 9 As shown, the device comprises:

[0093] A first acquisition module 910 is used to acquire first image information of a target area of ​​a target image; the target area is set according to a standard image or a collection order of the target image;

[0094] A second acquisition module 920 is used to acquire first image information of a standard image corresponding to the target image;

[0095] A compensation value determination module 930, configured to determine a parameter compensation value according to the first image information of the standard image and the first image information of the target area of ​​the target image;

[0096] The adjustment module 940 is used to adjust the target image according to the parameter compensation value.

[0097] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0098] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0099] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0100] Optionally, in the embodiment of the present application, the processor may be configured to perform the following steps through a computer program:

[0101] S1, obtaining first image information of a target area of ​​a target image; the target area is set according to a standard image or a collection order of the target image;

[0102] S2, obtaining first image information of a standard image corresponding to the target image;

[0103] S3, determining a parameter compensation value according to the first image information of the standard image and the first image information of the target area of ​​the target image;

[0104] S4: adjusting the target image according to the parameter compensation value.

[0105] It should be noted that the specific examples in the embodiments of the present application can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in the embodiments of the present application.

[0106] In addition, in combination with an image adjustment method provided in the above embodiment, a storage medium may be provided in the embodiment of the present application to implement the image adjustment method. The storage medium stores a computer program; when the computer program is executed by a processor, any image adjustment method in the above embodiment is implemented.

[0107] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0108] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0109] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0110] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. An image adjustment method, characterized in that: The method comprises: Decoding and displaying the received standard image to obtain a target image, and acquiring first image information of a target area of ​​the target image; the target area is set according to the acquisition order of the standard image or the target image; Acquire first image information of a standard image corresponding to the target image; Determining a parameter compensation value according to the first image information of the standard image and the first image information of the target area of ​​the target image; the parameter compensation value is determined according to a correspondence between a preset frequency offset level and the parameter compensation value; The target image is adjusted according to the parameter compensation value.

2. The image adjustment method according to claim 1, characterized in that: The determining of the parameter compensation value according to the first image information of the standard image and the first image information of the target area of ​​the target image comprises: generating second image information of the standard image according to the first image information of the standard image; the second image information and the first image information are image information of different types; generating second image information of the target area of ​​the target image according to the first image information of the target area of ​​the target image; The parameter compensation value is determined according to the second image information of the standard image and the second image information of the target area of ​​the target image.

3. The image adjustment method according to claim 2, characterized in that: The determining the parameter compensation value according to the second image information of the standard image and the second image information of the target area of ​​the target image comprises: determining a color difference value according to the second image information of the standard image and the second image information of the target area of ​​the target image; The parameter compensation value is determined according to the color difference value.

4. The image adjustment method according to claim 3, characterized in that: The step of determining the parameter compensation value according to the color difference value comprises: Determining a frequency shift level according to the color difference value; The parameter compensation value is determined according to a preset correspondence between the frequency offset level and the parameter compensation value.

5. The image adjustment method according to claim 1, characterized in that: The method further comprises: When the acquisition order of the standard image or the target image is from left to right, determining the right side of the target image as the target area of ​​the target image; When the acquisition order of the standard image or the target image is from right to left, the left side of the target image is determined as the target area of ​​the target image.

6. The image adjustment method according to claim 5, characterized in that: The step of acquiring first image information of a target area of ​​a target image includes: First image information of the target area is determined according to pixel values ​​of the target area of ​​the target image.

7. An image adjustment device, characterized in that: The device comprises: A first acquisition module is used to decode and display the received standard image to obtain a target image, and acquire first image information of a target area of ​​the target image; the target area is set according to the acquisition order of the standard image or the target image; A second acquisition module, used to acquire first image information of a standard image corresponding to the target image; A compensation value determination module, used to determine a parameter compensation value according to the first image information of the standard image and the first image information of the target area of ​​the target image; the parameter compensation value is determined according to a correspondence between a preset frequency offset level and the parameter compensation value; An adjustment module is used to adjust the target image according to the parameter compensation value.

8. A monitoring system, characterized in that: The monitoring system comprises a camera device and a video recording device which are communicatively connected, and the video recording device comprises a control unit, and the control unit is configured to run a computer program to execute the image adjustment method according to any one of claims 1 to 6.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the image adjustment method according to any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the image adjustment method according to any one of claims 1 to 6 are implemented.