Method, device, medium and equipment for determining image brightness change trend

By analyzing the brightness change trend of the reference image of the image acquisition sensor, the problem of being unable to determine the brightness pattern in the existing technology was solved, and timely image acquisition code anomaly detection was achieved to ensure project progress.

CN114298969BActive Publication Date: 2025-09-16KUNSHAN QIUTI PHOTOELECTRIC TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111362765.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-17
Publication Date
2025-09-16
Estimated Expiration
2041-11-17

AI Technical Summary

Technical Problem

Existing technology is unable to determine the pattern of image brightness changes in image acquisition equipment, resulting in the inability to detect image acquisition code anomalies in a timely manner, affecting project progress.

Method used

By obtaining reference images of historical image acquisition sensors, the brightness value of each color channel is analyzed based on the preset brightness analysis strategy, and the brightness change trend of each color channel is determined, including counting the number and distribution of pixels in the brightness range, and fitting the brightness mean to obtain the brightness change curve.

Benefits of technology

It can determine the brightness change pattern before the image acquisition equipment is put into production, simulate the detection picture, and detect image acquisition code anomalies in time to ensure project progress.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114298969B_ABST
    Figure CN114298969B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, medium and equipment for determining the brightness change trend of an image, the method comprising: obtaining a reference image of a historical image acquisition sensor; analyzing the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain the brightness change trend of each color channel; in this way, a brightness analysis can be performed on the reference image acquired by the historical image acquisition sensor based on the brightness analysis strategy to determine the brightness change law of the image, and thus the brightness change trend of each color channel of the reference image can be determined, and further key parameters for simulating the image can be determined; then, before the image acquisition device is put into production, the required detection image can be simulated based on the brightness change trend and other related simulation parameters, so that anomalies in the image acquisition code can be detected in a timely manner to ensure project progress.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing technology, and in particular relates to a method, device, medium and equipment for determining a brightness change trend of an image. Background Art

[0002] Generally speaking, before producing image acquisition devices (such as cameras), R&D personnel need to develop corresponding image acquisition software code (hereinafter referred to as image acquisition code) for the image acquisition sensor. Only after the image acquisition code is successfully debugged and it is determined that there are no abnormalities in the related hardware sensors can mass production be put online.

[0003] When R&D personnel detect whether there are any anomalies in the image acquisition code, they generally need to use the pictures corresponding to the image acquisition sensor for detection. The existing technology can only use the pictures taken by the image acquisition device after the image acquisition device is produced and then perform anomaly detection on the image acquisition code. If a problem occurs, it will take time to continue debugging the code, which seriously affects the project progress.

[0004] Generally speaking, images can be simulated based on their brightness characteristics and other relevant parameters. However, existing technologies are unable to determine the pattern of image brightness changes, which is a key simulation parameter. Therefore, existing technologies cannot simulate images corresponding to image acquisition devices, resulting in the inability to detect anomalies in the image acquisition code in a timely manner, which in turn affects project progress. Summary of the Invention

[0005] In response to the problems existing in the prior art, the embodiments of the present invention provide a method, device, medium and equipment for determining the trend of image brightness changes, which are used to solve the technical problem in the prior art that the key simulation parameter, the law of image brightness changes, cannot be determined, resulting in the inability to simulate the image corresponding to the image acquisition device, and further resulting in the inability to timely detect anomalies in the image acquisition code, thereby affecting the project progress.

[0006] A first aspect of the present invention provides a method for determining a brightness change trend of an image, the method comprising:

[0007] Obtain reference images of historical image acquisition sensors;

[0008] The brightness value of each color channel of the reference image is analyzed based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel.

[0009] In the above solution, after obtaining the reference image of the historical image acquisition sensor, the method further includes:

[0010] Obtaining the image format of the reference image;

[0011] Obtaining the color arrangement order corresponding to the image format;

[0012] The reference image is read, and pixels of different color channels are correspondingly stored in a preset storage space based on the color arrangement order.

[0013] In the above solution, after storing the pixels of different color channels in a preset storage space based on the color arrangement order, the method further includes:

[0014] For each brightness interval, count the number of pixels in each color channel within the brightness interval;

[0015] Based on the number of pixels of each color channel in the brightness range, a distribution result of the pixels of each color channel in each brightness range is determined.

[0016] In the above solution, the brightness value of each color channel of the reference image is analyzed based on a preset brightness analysis strategy to obtain the brightness change trend of each color channel, including:

[0017] For a first reference image of the same size and of the same type of historical image acquisition sensor, the first reference image is divided into a plurality of brightness regions according to a preset radius, with the geometric center of the first reference image as the origin;

[0018] Counting the brightness distribution range corresponding to each color channel in each brightness area;

[0019] Determine the brightness mean of each color channel in each brightness region based on the brightness distribution range corresponding to each color channel;

[0020] The brightness mean of each color channel in all brightness areas is fitted respectively to obtain a first brightness change curve corresponding to each color channel; the first brightness change curve is the brightness change trend.

[0021] In the above solution, the brightness value of each color channel of the reference image is analyzed based on a preset brightness analysis strategy to obtain the brightness change trend of each color channel, including:

[0022] For second reference pictures of different sizes, the second reference picture is divided into a plurality of brightness regions according to a preset radius with the geometric center of the second reference picture as the origin;

[0023] Counting the brightness distribution range corresponding to each color channel in each brightness area;

[0024] Determining a brightness mean value of each color channel in each brightness region based on a brightness distribution range of each color channel;

[0025] The brightness mean of each color channel in all brightness areas is fitted respectively to obtain a second brightness change curve corresponding to each color channel; the second brightness change curve is the brightness change trend.

[0026] A second aspect of the present invention provides an apparatus for determining a brightness change trend of an image, the apparatus comprising:

[0027] an acquisition unit, configured to acquire a reference image of a historical image acquisition sensor;

[0028] The analysis unit is configured to analyze the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel.

[0029] In the above solution, the acquisition unit is further used to:

[0030] Obtaining the image format of the reference image;

[0031] Obtaining the color arrangement order corresponding to the image format;

[0032] The reference image is read, and pixels of different color channels are correspondingly stored in a preset storage space based on the color arrangement order.

[0033] In the above solution, the device further includes: a determining unit, configured to:

[0034] For each brightness interval, count the number of pixels in each color channel within the brightness interval;

[0035] Based on the number of pixels of each color channel in the brightness range, a distribution result of the pixels of each color channel in each brightness range is determined.

[0036] According to a third aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method according to any one of the first aspects is implemented.

[0037] According to a fourth aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the methods described in the first aspect when executing the program.

[0038] The present invention provides a method, device, medium and equipment for determining the brightness change trend of an image, the method comprising: obtaining a reference image of a historical image acquisition sensor; analyzing the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain the brightness change trend of each color channel; in this way, the present invention can perform brightness analysis on the reference image acquired by the historical image acquisition sensor based on the brightness analysis strategy to determine the brightness change law of the image, and thus determine the brightness change trend of each color channel of the reference image, and further determine the key parameters for simulating the image; then, before the image acquisition device is put into production, the required detection image can be simulated based on the brightness change trend and other relevant simulation parameters, so that the image acquisition code can be detected for abnormalities in a timely manner to ensure project progress. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:

[0040] Figure 1 A schematic flow chart of a method for determining a brightness change trend of an image provided by an embodiment of the present invention;

[0041] Figure 2 A schematic diagram of the color arrangement order of the Raw8 image format provided by the prior art;

[0042] Figure 3 A schematic diagram of pixel display mode of the Raw8 image format provided by the prior art;

[0043] Figure 4 A Raw8 image with a resolution of 1 / 10*1 / 10, a brightness of 180-190, and a size of 4000*3000 provided in an embodiment of the present invention;

[0044] Figure 5-1 The embodiment of the present invention provides Figure 4 After the pixels of each color channel are extracted, the pixel diagram corresponding to the R color channel is displayed;

[0045] Figure 5-2 The embodiment of the present invention provides Figure 4 After the pixels of each color channel are extracted, the pixel diagram corresponding to the Gr color channel is displayed;

[0046] Figure 5-3 The embodiment of the present invention provides Figure 4 After the pixels of each color channel are extracted, the pixel diagram corresponding to the Gb color channel is displayed;

[0047] Figure 5-4 The embodiment of the present invention provides Figure 4 After the pixels of each color channel are extracted, the pixels corresponding to the B color channel are displayed schematically;

[0048] Figure 6-1 The distribution results of the pixels of the R color channel corresponding to each brightness range provided by the embodiment of the present invention;

[0049] Figure 6-2 The distribution results of the pixels of the Gr color channel corresponding to each brightness range provided by the embodiment of the present invention;

[0050] Figure 6-3 The distribution results of pixels of the Gb color channel corresponding to each brightness range provided by the embodiment of the present invention;

[0051] Figure 6-4 The distribution results of pixels of the B color channel corresponding to each brightness range provided by the embodiment of the present invention;

[0052] Figure 7 The embodiment of the present invention provides Figure 4 Schematic diagram of the image obtained after being divided into n concentric circles;

[0053] Figure 8 Embodiments of the present invention Figure 7 Schematic diagram of the distribution range of brightness values ​​corresponding to each color channel in the central circle;

[0054] Figure 9 For the embodiment of the present invention Figure 7 Schematic diagram of the distribution range of brightness values ​​corresponding to each color channel in the annular area formed by r0~r1;

[0055] Figure 10-1 For the embodiment of the present invention Figure 4 A schematic diagram of a first brightness change curve corresponding to the B color channel;

[0056] Figure 10-2 For the embodiment of the present invention Figure 4 A schematic diagram of a first brightness change curve corresponding to the Gb color channel;

[0057] Figure 10-3 For the embodiment of the present invention Figure 4 Schematic diagram of the first brightness change curve corresponding to the Gr color channel;

[0058] Figure 10-4 For the embodiment of the present invention Figure 4 A schematic diagram of a first brightness change curve corresponding to the R color channel;

[0059] Figure 11-1In the embodiment of the present invention Figure 4 A second brightness change curve corresponding to color channel B of another image of the same size;

[0060] Figure 11-2 In the embodiment of the present invention, Figure 4 A second brightness change curve corresponding to the Gb color channel of another image of the same size;

[0061] Figure 11-3 In the embodiment of the present invention Figure 4 A second brightness change curve corresponding to the Gr color channel of another image of the same size;

[0062] Figure 11-4 In the embodiment of the present invention Figure 4 A second brightness change curve corresponding to the R color channel of another image of the same size;

[0063] Figure 12-1 The third brightness change curve corresponding to the B color channel in the picture with a size of 2304*1728 provided in an embodiment of the present invention;

[0064] Figure 12-2 The third brightness change curve corresponding to the Gb color channel in the picture with a size of 2304*1728 provided in an embodiment of the present invention;

[0065] Figure 12-3 The third brightness change curve corresponding to the Gr color channel in the picture with a size of 2304*1728 provided in an embodiment of the present invention;

[0066] Figure 12-4 The third brightness change curve corresponding to the Gb color channel in the picture with a size of 2304*1728 provided in an embodiment of the present invention;

[0067] Figure 13-1 The fourth brightness change curve corresponding to the B color channel in the picture with a size of 4624*3472 provided in an embodiment of the present invention;

[0068] Figure 13-2 The fourth brightness change curve corresponding to the Gb color channel in the picture with a size of 4624*3472 provided in an embodiment of the present invention;

[0069] Figure 13-3 The fourth brightness change curve corresponding to the Gr color channel in the picture with a size of 4624*3472 provided in the embodiment of the present invention;

[0070] Figure 13-4 The fourth brightness change curve corresponding to the R color channel in the picture with a size of 4624*3472 provided in an embodiment of the present invention;

[0071] Figure 14 A schematic diagram of the structure of a device for determining a brightness change trend of an image provided by an embodiment of the present invention;

[0072] Figure 15 A schematic diagram of the computer device structure provided by an embodiment of the present invention;

[0073] Figure 16 A schematic diagram of the computer-readable storage medium structure provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0074] In order to better understand the above technical solutions, the technical solutions of the embodiments of this specification are described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of this specification and the specific features in the embodiments are detailed descriptions of the technical solutions of the embodiments of this specification, rather than limitations on the technical solutions of this specification. In the absence of conflict, the embodiments of this specification and the technical features in the embodiments can be combined with each other.

[0075] This embodiment provides a method for determining the brightness change trend of an image. Figure 1 As shown, the method includes the following steps:

[0076] S110, obtaining a reference image of a historical image acquisition sensor;

[0077] S111 , analyzing the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel.

[0078] Generally speaking, the original unprocessed image is called RAW image, and the image formats of RAW image include Raw8, Raw10, Raw12 and other formats. Taking Raw8 as an example, the color arrangement order in the memory buffer of Raw8 is determined by the first pixel of each image acquisition sensor, and the color arrangement order is also affected by the image mirroring and flipping operations. For example, you can refer to Figure 2 As shown in Table 1, the color arrangement order is RGrGbB, and the corresponding pixel display mode is as follows Figure 3 shown.

[0079] Refer to Table 1. The size of each pixel is represented by 1 Byte, the brightness of each pixel is represented by 0 to 255, and the size of the Raw8 buffer is the image width multiplied by the image height in bytes.

[0080] Table 1

[0081] BYTE0[7~0] BYTE1[7~0] BYTE2[7~0] BYTE3[7~0] BYTE4[7~0] BYTE5[7~0] BYTE6[7~0] R Gr R Gr R Gr R BYTE7[7~0] BYTE8[7~0] BYTE9[7~0] BYTE10[7~0] BYTE10[7~0] BYTE12[7~0] BYTE13[7~0] Gb B Gb B Gb B Gb

[0082] In actual applications, the inventors of this application found that due to the characteristics of the lens, the common point of each color channel of each image is that the center is relatively bright; starting from the center, gradually spreading outward, the brightness gradually decreases, which can be specifically described as follows: Figure 4 Therefore, this embodiment determines the detection picture required by the current image acquisition sensor based on the common point of the image. The current image acquisition sensor can be understood as the image detection sensor to be detected.

[0083] Specifically, first, S110 is executed to obtain a reference image of the historical image acquisition sensor.

[0084] The historical image acquisition sensor in this embodiment can be understood as the image acquisition sensor used in the finished image acquisition device. The historical image acquisition sensor can be the same model as the current image acquisition sensor or can be different.

[0085] Obtain reference images of multiple historical image acquisition sensors. The reference images can be images of the same type of historical image acquisition sensor, the same size, and the same brightness; they can also be images of the same type of historical image acquisition sensor, the same size, and different brightness; they can also be images of different types of historical image acquisition sensors, different sizes, and the same brightness; they can also be images of different types of historical image acquisition sensors, different sizes, and different brightness; there is no limitation here.

[0086] In order to ensure the accuracy of the image change trend analysis in this step, multiple reference images of different types are obtained so that the types of reference images cover a variety of different possibilities. In the subsequent analysis, image analysis can be performed based on different variables to improve the accuracy of the image change trend analysis.

[0087] Then, step S111 is executed to analyze the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel.

[0088] In this embodiment, in order to more intuitively see the distribution range of pixels in each color channel in a preset brightness range, before obtaining the brightness change trend of each color channel, this embodiment also needs to determine the distribution results of pixels in each color channel of the reference image in each brightness range.

[0089] In an optional embodiment, after obtaining the reference image of the historical image acquisition sensor, the method further includes:

[0090] Get the image format of the reference image;

[0091] Obtaining the color arrangement order corresponding to the image format;

[0092] The reference image is read, and pixels of different color channels are stored in a preset storage space based on the color arrangement order.

[0093] This embodiment reads pixels in a reference image row by row, and extracts pixels of each color channel of the image separately based on the arrangement order of each pixel, so as to facilitate subsequent analysis of the brightness change trend of each color channel separately.

[0094] For example, refer to Figure 4 , Figure 4 For a Raw8 image with a center of 1 / 10*1 / 10, a brightness of 180~190, and a size of 4000*3000, the color arrangement order of the image is BGGR, so the four color channels are R, Gr, Gb, and B; the pixels corresponding to the R color channel are finally extracted as follows Figure 5-1 As shown, the pixels corresponding to the Gr color channel are as follows Figure 5-2 As shown, the pixels corresponding to the Gb color channel are as follows Figure 5-3 As shown, the pixels corresponding to the B color channel are as follows Figure 5-4 shown.

[0095] After the pixels of each color channel are extracted, the distribution results of the pixels of each color channel in each brightness range can also be determined, so that the brightness range of the pixel distribution of each color channel can be intuitively displayed.

[0096] In an optional embodiment, after pixels of different color channels are stored in a preset storage space based on the color arrangement order, the method further includes:

[0097] For each brightness interval, count the number of pixels in each color channel within the brightness interval;

[0098] Based on the number of pixels of each color channel in the brightness interval, the distribution result of the pixels of each color channel in each brightness interval is determined.

[0099] Specifically, because the brightness range of a pixel is 0 to 255, this embodiment divides the brightness range into multiple brightness intervals, for example, (0 to 50] is a brightness interval, (50 to 100] is a brightness interval, (100 to 150] is a brightness interval, (150 to 200] is a brightness interval, and (200 to 250] is a brightness interval.

[0100] Then, for each brightness interval, the number of pixels in each color channel within the brightness interval is counted, and the distribution of pixels in each brightness interval for each color channel is determined based on the number of pixels. The distribution results can be presented in the form of a graph or a table, which is not limited here.

[0101] This embodiment uses a histogram to represent the distribution of pixels of each color channel in each brightness range, wherein the distribution result corresponding to the R color channel is as follows: Figure 6-1 As shown, the distribution results corresponding to the Gr color channel are as follows Figure 6-2 As shown, the distribution results corresponding to the Gb color channel are as follows Figure 6-3 As shown, the distribution results corresponding to the B color channel are as follows Figure 6-4 shown.

[0102] from Figure 6-1 、 6-2 , 6-3 and 6-4, it can be seen that the R and B distribution results are mainly concentrated in the brightness range of 0 to 150; the distribution results of Gr and Gb are relatively consistent, mainly concentrated in the brightness range of 50 to 200; the overall brightness distribution range of R and B is lower than that of Gr and Gb.

[0103] Furthermore, in order to accurately analyze the brightness change trend of each color channel, this embodiment analyzes the first reference image of the same size of the same type of historical image acquisition sensor, and analyzes the second reference image of different sizes (without limiting the type of historical image acquisition sensor).

[0104] In an optional embodiment, analyzing the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel includes:

[0105] For a first reference image of the same size and of the same type of historical image acquisition sensor, the first reference image is divided into a plurality of brightness regions according to a preset radius with the geometric center of the first reference image as the origin;

[0106] Count the brightness distribution range corresponding to each color channel in each brightness area;

[0107] Determine the brightness mean of each color channel in each brightness region based on the brightness distribution range corresponding to each color channel;

[0108] The brightness mean of each color channel in all brightness areas is fitted respectively to obtain a first brightness change curve corresponding to each color channel; the first brightness change curve is the brightness change trend.

[0109] Continue with Figure 4 Take the picture in as an example. With the geometric center of the picture as the origin, the picture is divided into n concentric circles according to the preset radius. The radius of each concentric circle is r0~rn. The radius increases from r0 to rn in turn according to the preset increment. The final picture after division is as follows Figure 7The radius increment can be set according to the actual image, for example, the radius increment can be 50. The number n of concentric circles can also be set according to actual needs. In this embodiment, n is 30.

[0110] After n concentric circles are formed, the central circle and the annular area between two adjacent concentric circles can be determined as the brightness area.

[0111] Then, for each color channel in each brightness area, the brightness value of each pixel in each color channel is counted; based on the brightness value of each pixel, the distribution number of pixel brightness values ​​of each color channel is determined, and finally, the brightness value distribution range corresponding to each color channel is determined according to the distribution number of pixel brightness values ​​of each color channel.

[0112] For example, this embodiment takes the center circle and the annular area formed by r0-r1 as an example to perform statistics on pixel brightness values, wherein the distribution range of brightness values ​​corresponding to each color channel in the center circle can be as follows: Figure 8 As shown, Figure 8 In the figure, the mark B represents the brightness value distribution range corresponding to the B color channel, the mark R represents the brightness value distribution range corresponding to the R color channel, the mark Gr represents the brightness value distribution range corresponding to the Gr color channel, and the mark Gb represents the brightness value distribution range corresponding to the Gb color channel.

[0113] The distribution range of brightness values ​​corresponding to each color channel in the annular area formed by r0~r1 can be as follows Figure 9 As shown, in Figure 9 In the figure, the mark B represents the brightness value distribution range corresponding to the B color channel, the mark R represents the brightness value distribution range corresponding to the R color channel, the mark Gr represents the brightness value distribution range corresponding to the Gr color channel, and the mark Gb represents the brightness value distribution range corresponding to the Gb color channel.

[0114] from Figure 8 and Figure 9 It can be seen that the brightness value distribution range corresponding to the four color channels is relatively concentrated, and the brightness of the four color channels is different. However, since the Gb color channel and the Gr color channel both represent the G channel, the difference in brightness value distribution between the Gb color channel and the Gr color channel is relatively small.

[0115] After the brightness distribution range of each color channel is determined, the brightness value and number of each pixel in the brightness distribution range can be determined. Based on the brightness value and number of each pixel, the brightness mean of each color channel can be determined. In this way, the brightness mean of each color channel in all brightness regions can be determined.

[0116] For each color channel, the brightness mean of the color channel in all brightness areas is fitted to obtain a first brightness change curve corresponding to each color channel; the first brightness change curve is a brightness change trend.

[0117] In this embodiment Figure 4 The first brightness change curve corresponding to the B color channel is shown in 10-1, the first brightness change curve corresponding to the Gb color channel is shown in 10-2, the first brightness change curve corresponding to the Gr color channel is shown in 10-3, and the first brightness change curve corresponding to the R color channel is shown in 10-4.

[0118] Based on the same determination method as described above, this embodiment also analyzes multiple other images of the same size (all 4000*3000) from the same historical image acquisition sensor. In one of the images, the first brightness change curve corresponding to the B color channel is shown in 11-1, the first brightness change curve corresponding to the Gb color channel is shown in 11-2, the first brightness change curve corresponding to the Gr color channel is shown in 11-3, and the first brightness change curve corresponding to the R color channel is shown in 11-4.

[0119] It can be seen that the first brightness change curve of each color channel satisfies a linear relationship, and the linear coefficients of the first brightness change curves corresponding to images of the same size using the same historical image acquisition sensor are very small and can be considered consistent, all satisfying the linear relationship of y=Ax+B.

[0120] Furthermore, in order to further verify that the first brightness change curve satisfies the linear relationship, in an optional embodiment, the brightness value of each color channel of the reference image is analyzed based on a preset brightness analysis strategy to obtain the brightness change trend of each color channel, including:

[0121] For second reference pictures of different sizes, the second reference picture is divided into multiple brightness areas according to a preset radius with the geometric center of the second reference picture as the origin;

[0122] Count the brightness distribution range corresponding to each color channel in each brightness area;

[0123] Determining a brightness mean value of each color channel in each brightness region based on a brightness distribution range of each color channel;

[0124] The brightness mean of each color channel in all brightness areas is fitted respectively to obtain a second brightness change curve corresponding to each color channel; the second brightness change curve is the brightness change trend.

[0125] It is worth noting that the second reference image can be an image of a different size corresponding to the same historical image acquisition sensor, or can be an image of a different size corresponding to different historical image acquisition sensors.

[0126] In this embodiment, the third brightness change curve corresponding to the B color channel in the picture with an image size of 2304*1728 is shown as 12-1, the third brightness change curve corresponding to the Gb color channel is shown as 12-2, the third brightness change curve corresponding to the Gr color channel is shown as 12-3, and the third brightness change curve corresponding to the R color channel is shown as 12-4.

[0127] In a picture with an image size of 4624*3472, the fourth brightness change curve corresponding to the B color channel is shown in 13-1, the fourth brightness change curve corresponding to the Gb color channel is shown in 13-2, the fourth brightness change curve corresponding to the Gr color channel is shown in 13-3, and the fourth brightness change curve corresponding to the R color channel is shown in 13-4.

[0128] from Figure 12-1 、 12-2 It can be seen from 12-3, 12-4, 13-1, 13-2, 13-3 and 13-4 that the brightness change trend of each color channel also conforms to the linear law, but the linear coefficients A and B are slightly different.

[0129] It can be determined that in this embodiment, whether it is pictures of the same size or pictures of different sizes, whether it is the same type of image acquisition sensor or different types of image acquisition sensors, the brightness change trend of each color channel satisfies a linear relationship, and the linear coefficient is related to the image size.

[0130] In this embodiment, the brightness of reference images of the same size acquired by the same historical image acquisition sensor, reference images of different sizes acquired by the same historical image sensor, and reference images of different sizes acquired by different historical image sensors are analyzed respectively. The analysis scope is comprehensive, thereby ensuring the accuracy of the analysis of the brightness change trend of the image, thereby improving the simulation accuracy and the quality of the simulated image in subsequent simulations.

[0131] In this way, this embodiment can perform brightness analysis on the reference image collected by the historical image acquisition sensor based on the brightness analysis strategy, determine the brightness change law of the image, and also determine the brightness change trend of each color channel of the reference image, and determine the key parameters for simulating the image; and then, the required detection image can be simulated through the brightness change trend and other related simulation parameters, so as to be able to perform abnormality detection on the image acquisition code in time to ensure the project progress.

[0132] Based on the same inventive concept as the above embodiment, this embodiment also provides a device for determining the brightness change trend of an image, such as Figure 14 As shown, the device includes:

[0133] An acquisition unit 140 is configured to acquire a reference image of a historical image acquisition sensor;

[0134] The analyzing unit 141 is configured to analyze the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel.

[0135] It should be noted that the device may be a computer, server, or other device with computing or storage functions. The device may be an independent server, which is not limited here.

[0136] Since the apparatus described in the embodiments of the present invention is an apparatus used to implement the method of the embodiments of the present invention, those skilled in the art will be able to understand the specific structure and variations of the apparatus based on the method described in the embodiments of the present invention, and therefore, no further description is given here. All apparatuses used in the method of the embodiments of the present invention fall within the scope of protection of the present invention.

[0137] Based on the same inventive concept, this embodiment also provides a computer device 1500, such as Figure 15 As shown, the present invention includes a memory 1510, a processor 1520, and a computer program 1511 stored in the memory 1510 and executable on the processor 1520. When the processor 1520 executes the computer program 1511, the following steps are implemented:

[0138] Obtain reference images of historical image acquisition sensors;

[0139] The brightness value of each color channel of the reference image is analyzed based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel.

[0140] During specific implementation, when the processor 1520 executes the computer program 1511 , any implementation method in the aforementioned embodiments can be implemented.

[0141] Since the computer device described in this embodiment is a device used to implement a method for determining a brightness change trend of an image in an embodiment of this application, based on the method described in the previous embodiments of this application, those skilled in the art will be able to understand the specific implementation of the computer device of this embodiment and its various variations. Therefore, how the server implements the method in the embodiment of this application will not be described in detail here. As long as a person skilled in the art implements the method in the embodiment of this application, the device used is within the scope of protection of this application.

[0142] Based on the same inventive concept, this embodiment provides a computer-readable storage medium 1600, such as Figure 16 As shown, a computer program 1611 is stored thereon, and when the computer program 1611 is executed by a processor, the following steps are implemented:

[0143] Obtain reference images of historical image acquisition sensors;

[0144] The brightness value of each color channel of the reference image is analyzed based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel.

[0145] During specific implementation, when the computer program 1611 is executed by a processor, any implementation method in the aforementioned embodiments can be implemented.

[0146] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0147] The method, apparatus, medium, and device for determining a brightness change trend image provided by the embodiments of the present invention can bring at least the following beneficial effects:

[0148] An embodiment of the present invention provides a method, device, medium and equipment for determining the brightness change trend of an image, the method comprising: obtaining a reference image of a historical image acquisition sensor; analyzing the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain the brightness change trend of each color channel; in this way, the present invention can perform brightness analysis on the reference image acquired by the historical image acquisition sensor based on the brightness analysis strategy to determine the brightness change law of the image, and thus determine the brightness change trend of each color channel of the reference image, and further determine the key parameters for simulating the image; then, before the image acquisition device is put into production, the required detection image can be simulated through the brightness change trend and other related simulation parameters, so that the image acquisition code can be detected for abnormalities in a timely manner to ensure project progress.

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

[0150] These computer program instructions may 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, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0151] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0152] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.

[0153] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for determining a brightness change trend of an image, characterized in that: The method comprises: Obtain reference images of historical image acquisition sensors; The brightness value of each color channel of the reference image is analyzed based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel; wherein, The step of analyzing the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel includes: For a first reference image of the same size and of the same type of historical image acquisition sensor, the first reference image is divided into a plurality of brightness regions according to a preset radius, with the geometric center of the first reference image as the origin; Counting the brightness distribution range corresponding to each color channel in each brightness area; Determine the brightness mean of each color channel in each brightness region based on the brightness distribution range corresponding to each color channel; The brightness mean of each color channel in all brightness areas is fitted respectively to obtain a first brightness change curve corresponding to each color channel; the first brightness change curve is the brightness change trend.

2. The method according to claim 1, wherein After obtaining the reference image of the historical image acquisition sensor, the method further includes: Obtaining the image format of the reference image; Obtaining the color arrangement order corresponding to the image format; The reference image is read, and pixels of different color channels are correspondingly stored in a preset storage space based on the color arrangement order.

3. The method according to claim 2, wherein After storing the pixels of different color channels in a preset storage space based on the color arrangement order, the method further includes: For each brightness interval, count the number of pixels in each color channel within the brightness interval; Based on the number of pixels of each color channel in the brightness range, a distribution result of the pixels of each color channel in each brightness range is determined.

4. The method according to claim 1, wherein The step of analyzing the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel includes: For second reference pictures of different sizes, the second reference picture is divided into a plurality of brightness regions according to a preset radius with the geometric center of the second reference picture as the origin; Counting the brightness distribution range corresponding to each color channel in each brightness area; Determining a brightness mean value of each color channel in each brightness region based on a brightness distribution range of each color channel; The brightness mean of each color channel in all brightness areas is fitted respectively to obtain a second brightness change curve corresponding to each color channel; the second brightness change curve is the brightness change trend.

5. A device for determining a brightness change trend of an image, characterized in that: The device comprises: an acquisition unit, configured to acquire a reference image of a historical image acquisition sensor; An analysis unit is used to analyze the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel; wherein, The step of analyzing the brightness value of each color channel of the reference image based on a preset brightness analysis strategy to obtain a brightness change trend of each color channel includes: For a first reference image of the same size and of the same type of historical image acquisition sensor, the first reference image is divided into a plurality of brightness regions according to a preset radius, with the geometric center of the first reference image as the origin; Counting the brightness distribution range corresponding to each color channel in each brightness area; Determine the brightness mean of each color channel in each brightness region based on the brightness distribution range corresponding to each color channel; The brightness mean of each color channel in all brightness areas is fitted respectively to obtain a first brightness change curve corresponding to each color channel; the first brightness change curve is the brightness change trend.

6. The device according to claim 5, characterized in that The acquisition unit is further configured to: Obtaining the image format of the reference image; Obtaining the color arrangement order corresponding to the image format; The reference image is read, and pixels of different color channels are correspondingly stored in a preset storage space based on the color arrangement order.

7. The device according to claim 6, characterized in that The apparatus further includes a determining unit configured to: For each brightness interval, count the number of pixels in each color channel within the brightness interval; Based on the number of pixels of each color channel in the brightness range, a distribution result of the pixels of each color channel in each brightness range is determined.

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

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Picture display adjustment method and device, storage medium and display equipment

    CN111968590A