CN115118945A - Color correction method and device for camera module - Google Patents

Color correction method and device for camera module Download PDF

Info

Publication number
CN115118945A
CN115118945A CN202210742546.9A CN202210742546A CN115118945A CN 115118945 A CN115118945 A CN 115118945A CN 202210742546 A CN202210742546 A CN 202210742546A CN 115118945 A CN115118945 A CN 115118945A
Authority
CN
China
Prior art keywords
color
module
camera module
camera
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210742546.9A
Other languages
Chinese (zh)
Other versions
CN115118945B (en
Inventor
孙添
钱戈
叶景
彭帅旗
雷武
夏如飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanchang Huaqin Electronic Technology Co ltd
Original Assignee
Nanchang Huaqin Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanchang Huaqin Electronic Technology Co ltd filed Critical Nanchang Huaqin Electronic Technology Co ltd
Priority to CN202210742546.9A priority Critical patent/CN115118945B/en
Publication of CN115118945A publication Critical patent/CN115118945A/en
Application granted granted Critical
Publication of CN115118945B publication Critical patent/CN115118945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/646Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Abstract

A color correction method and device of a camera module, the method includes: testing color data of a first camera module, and determining a first color area to which the first camera module belongs according to the color data of the first camera module, wherein the first color area is one of a plurality of color areas set for the camera modules of a batch in which the first camera module is located, and the plurality of color areas are determined according to the color data of a central typical golden module; and writing the information of the first color region into a one-time programmable (OTP) memory of the first camera module, wherein the information of the first color region comprises information of a first correction parameter corresponding to the first color region, and the first correction parameter is used for adjusting the color effect of the auxiliary gold module corresponding to the first color region to be consistent with the color effect of the central gold module after correction.

Description

Color correction method and device for camera module
Technical Field
The application relates to the technical field of cameras, in particular to a color correction method and device for a camera module.
Background
Nowadays, people require more and more high to the formation of image effect of camera, along with high pixel camera is wider and wider in terminal equipment's application, terminal customer requires more and more high to the formation of image effect and the quality of the module of making a video recording.
The actual production process of the camera module is the process that each monomer material is stacked and combined, and good consistency cannot be guaranteed between every two monomer materials, so that the difference of imaging effects exists between the camera modules in the same batch. In the prior art, a typical module is usually selected from a batch of camera modules, a set of debugging parameters is generated according to the typical module, and each camera module in the batch uses the set of debugging parameters in the terminal device to correct the color effect of the camera module. However, due to the difference of the color parameters of the camera modules (especially, the difference of the parameters of the edge camera module and the typical module is large), the camera modules in the same batch use the same set of debugging parameters, and the final imaging color effect may have a large difference.
Therefore, a solution for improving the consistency of the color effect of the camera modules in the same batch is needed.
Disclosure of Invention
The application provides a color correction method and device of camera modules, which are used for improving the consistency of color effects of the camera modules in the same batch.
In a first aspect, an embodiment of the present application provides a color correction method for a camera module, where the method includes: testing color data of a first camera module, and determining a first color area to which the first camera module belongs according to the color data of the first camera module, wherein the first color area is one of a plurality of color areas set for the camera modules of a batch in which the first camera module is located, and the plurality of color areas are determined according to the color data of a central typical golden module; and writing the information of the first color region into a one-time programmable (OTP) memory of the first camera module, wherein the information of the first color region comprises information of a first correction parameter corresponding to the first color region, and the first correction parameter is used for adjusting the color effect of the auxiliary gold module corresponding to the first color region to be consistent with the color effect of the central gold module after correction.
In the above technical solution, for each camera module of the same batch, because the color data between the plurality of camera modules belonging to the same color region and the auxiliary gold module of the color region are similar, and the color effect obtained by correcting the auxiliary gold module corresponding to the first color region by using the first correction parameter corresponding to the first color region is the same as the color effect obtained by correcting the center gold module by using the correction parameter of the center gold module. Therefore, the color effect of the first camera module after being corrected is consistent with the color effect of the center gold module after being corrected by using the first correction parameter corresponding to the first color area to which the first camera module belongs, and the consistency of the color effects of the camera modules in the same batch can be further improved.
Optionally, the plurality of color regions include a center color region to which the center gold module belongs and a plurality of auxiliary color regions; the plurality of color regions are obtained by: determining a central gold module of the batch of camera modules according to the distribution of the color parameters of the batch of camera modules; determining the range of the color data of the central color area according to the color data of the central gold module; and for a plurality of second camera modules in the batch of camera modules, which exceed the range of the color data of the central color area, setting a plurality of auxiliary color areas according to the range of the color data of the plurality of second camera modules, and determining the range of the color data of each auxiliary color area in the plurality of auxiliary color areas.
In the above technical solution, for the second camera module with color data exceeding the central color area, the difference between the color data of the second camera module and the color data of the central gold module is large, and if the second camera module is still corrected by using the correction parameter of the central gold module, a color cast phenomenon occurs. Therefore, in a range beyond the center color region, a plurality of auxiliary color regions are set. The correction parameters corresponding to the auxiliary color area to which the second camera module belongs are used for correcting the color effect of the second camera module, so that the consistency of the color effect of the camera modules in the same batch can be improved.
Optionally, after determining the range of the color data of each of the plurality of auxiliary color regions, the method further includes: determining the auxiliary gold module of each auxiliary color region according to the range of the color data of each auxiliary color region; and determining a correction parameter corresponding to each auxiliary color area according to the corrected color effect of the central gold module.
In the above technical solution, each auxiliary color region has an auxiliary gold module, the auxiliary gold module is a representative module of the auxiliary color region, and the correction parameter corresponding to each auxiliary color region is also a correction parameter of the auxiliary gold module corresponding to the color region. For each auxiliary color region, the color parameters of the auxiliary gold module of the color region are similar to the color data of other camera modules of the color region, and the color effect after the auxiliary gold module is corrected by using the correction parameters of the auxiliary gold module is consistent with the color effect after the central gold module is corrected by using the correction parameters of the central gold module. Therefore, the color effects of other camera modules in the auxiliary color area are corrected by using the correction parameters of the auxiliary gold module corresponding to each auxiliary color area, the obtained color effects are consistent with the corrected color parameters of the central gold module, and the consistency of the color effects of the camera modules in the same batch can be improved.
Optionally, the information of the first correction parameter is a storage address of the first correction parameter in the terminal device.
According to the technical scheme, the storage address of the first correction parameter in the terminal device is written into the OTP memory of the first camera module, when the first camera module is used, the terminal device reads the first correction parameter from the OTP memory of the first camera module and then the storage address of the terminal device, then reads the first correction parameter from the storage address, corrects the color effect of the first camera module according to the first correction parameter, the first correction parameter does not need to be directly written into the OTP memory of the first camera module, and the storage space of the OTP memory is saved.
Optionally, the color data includes an R/G value and a B/G value.
In a second aspect, an embodiment of the present application provides another color correction method for a camera module, including: reading information of a first color area in a one-time programmable (OTP) memory of a first camera module, wherein the first color area is a color area to which the first camera module belongs, the first color area is one of a plurality of color areas set for the camera modules of a batch in which the first camera module is located, the plurality of color areas are determined according to color data of a central typical golden module, and the information of the first color area comprises first correction parameters corresponding to the first color area; and correcting the color effect of the first camera module according to a first correction parameter corresponding to the first color region, wherein the first correction parameter is used for adjusting the color effect of the auxiliary gold module corresponding to the first color region to be consistent with the color effect of the central gold module after correction.
In the above technical solution, for each camera module of the same batch, because the color data between the plurality of camera modules belonging to the same color region and the auxiliary gold module of the color region are similar, and the color effect obtained by correcting the auxiliary gold module corresponding to the first color region by using the first correction parameter corresponding to the first color region is the same as the color effect obtained by correcting the center gold module by using the correction parameter of the center gold module. Therefore, the first correction parameter corresponding to the first color region to which the first camera module belongs is used, the color effect after the first camera module is corrected is consistent with the color effect after the center golden module is corrected, and the consistency of the color effects of the camera modules in the same batch can be further improved.
Optionally, the information of the first correction parameter is a storage address of the first correction parameter in the terminal device.
According to the technical scheme, the storage address of the first correction parameter in the terminal device is written into the OTP memory of the first camera module, when the first camera module is used, the terminal device reads the first correction parameter from the OTP memory of the first camera module and then the storage address of the terminal device, then reads the first correction parameter from the storage address, corrects the color effect of the first camera module according to the first correction parameter, the first correction parameter does not need to be directly written into the OTP memory of the first camera module, and the storage space of the OTP memory is saved.
Optionally, the color data includes an R/G value and a B/G value.
In a third aspect, an embodiment of the present application provides a color correction device for a camera module, including:
the test module is used for testing the color data of a first camera module and determining a first color area to which the first camera module belongs according to the color data of the first camera module, wherein the first color area is one of a plurality of color areas set for the camera modules of a batch in which the first camera module is located, and the plurality of color areas are determined according to the color data of a central typical golden module;
and the writing module is used for writing the information of the first color region into a one-time programmable OTP memory of the first camera module, the information of the first color region includes information of a first correction parameter corresponding to the first color region, and the first correction parameter is used for adjusting the color effect of the auxiliary gold module corresponding to the first color region to be consistent with the color effect of the central gold module after correction.
Optionally, the plurality of color regions include a center color region to which the center gold module belongs and a plurality of auxiliary color regions; the device also comprises a processing module, a judging module and a judging module, wherein the processing module is used for determining a central golden module of the batch of camera modules according to the distribution of the color parameters of the batch of camera modules; determining the range of the color data of the central color area according to the color data of the central gold module; and for a plurality of second camera modules in the batch of camera modules, which exceed the range of the color data of the central color area, setting a plurality of auxiliary color areas according to the range of the color data of the plurality of second camera modules, and determining the range of the color data of each auxiliary color area in the plurality of auxiliary color areas.
Optionally, the processing module is further configured to determine the auxiliary gold module of each auxiliary color region according to a range of the color data of each auxiliary color region; and determining a correction parameter corresponding to each auxiliary color area according to the corrected color effect of the central gold module.
Optionally, the information of the first correction parameter is a storage address of the first correction parameter in the terminal device.
Optionally, the color data includes an R/G value and a B/G value.
In a fourth aspect, an embodiment of the present application provides another color correction device for a camera module, including:
the device comprises a reading module, a correcting module and a control module, wherein the reading module is used for reading information of a first color region in a one-time programmable (OTP) memory of a first camera module, the first color region is a color region to which the first camera module belongs, the first color region is one of a plurality of color regions set for the camera modules of a batch in which the first camera module is located, the plurality of color regions are determined according to color data of a central typical golden module, and the information of the first color region comprises a first correction parameter corresponding to the first color region;
and the correction module is used for correcting the color effect of the first camera module according to a first correction parameter corresponding to the first color region, and the first correction parameter is used for adjusting the color effect of the auxiliary gold module corresponding to the first color region to be consistent with the color effect of the central gold module after correction.
Optionally, the information of the first correction parameter is a storage address of the first correction parameter in the terminal device.
Optionally, the color data includes an R/G value and a B/G value.
In a fifth aspect, an embodiment of the present application further provides a computing device, including:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the method according to the obtained program instructions as described in any of the possible designs of the first aspect or the second aspect.
In a sixth aspect, the present application further provides a computer-readable storage medium, in which computer-readable instructions are stored, and when the computer-readable instructions are read and executed by a computer, the method described in any one of the possible designs of the first aspect or the second aspect is implemented.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating a color correction method for a camera module according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a method for determining a plurality of color regions according to an embodiment of the present disclosure;
fig. 3 is a scatter diagram of color data of the camera modules in the same batch according to the embodiment of the present application;
FIG. 4 is a schematic diagram of a plurality of color regions provided in an embodiment of the present application;
fig. 5 is a schematic flowchart of another color correction method for a camera module according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a color correction device of a camera module according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another color correction device of a camera module according to an embodiment of the present disclosure;
fig. 8 is a computing device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the embodiments of the present application, a plurality means two or more. The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, nor order.
Fig. 1 exemplarily shows a color correction method for a camera module provided by an embodiment of the present application, the method is applied to a test stage when the camera module leaves a factory, as shown in fig. 1, the method includes the following steps:
step 101, testing color data of the first camera module, and determining a first color area to which the first camera module belongs according to the color data of the first camera module.
In the embodiment of the application, the first camera module is any one of the camera modules in the same batch; the color data is an R/G value and a B/G value in the white balance parameter of the first camera module; the first color area is one of a plurality of color areas set for the camera modules of the batch in which the first camera module is located.
Wherein the plurality of color regions are determined based on color data of the central representative gold module. The central gold module is a representative module of the batch of camera modules, and the color data of the central gold module is about the average value of the color data of the batch of camera modules.
The plurality of color areas comprise a central color area where the central gold module is located and a plurality of auxiliary color areas where the plurality of auxiliary gold modules are located. Fig. 2 exemplarily illustrates a method for determining a plurality of color regions according to an embodiment of the present application, and as shown in fig. 2, the method includes the following steps:
step 201, determining the central golden module of the batch of camera modules according to the distribution of the color data of the batch of camera modules.
For example, it is possible to record color data (R/G value and B/G value) of each image pickup module of the same lot and then draw a scatter diagram of the color data of all image pickup modules of the lot, and fig. 3 exemplarily shows a scatter diagram of the color data of the image pickup modules of the same lot, the scatter diagram having the B/G value as the horizontal axis and the R/G value as the vertical axis. And determining the camera module in the center of the scatter diagram as the center gold module of the batch of camera modules.
Step 202, determining the range of the color data of the central color region according to the color data of the central gold module.
Illustratively, a range of 5% up and down on the basis of the color data (R/G value and B/G value) of the center Golden module may be used as the range of the color data of the center color region where the center Golden module is located.
Step 203, for a plurality of second camera modules in the batch of camera modules, which exceed the range of the color data of the central color area, setting a plurality of auxiliary color areas according to the range of the color data of the plurality of second camera modules, and determining the range of the color data of each auxiliary color area in the plurality of auxiliary color areas.
Illustratively, table 1 is an example of a plurality of color regions set for a certain batch of camera modules provided herein. Each row represents a color region, and a total of 9 color regions are provided, wherein color region 0 is a central color region and color regions 1-8 are auxiliary color regions. M in the range of the color area represents the difference value between the R/G value of the camera module and the R/G value of the center gold module; n represents the difference value between the B/G value of the camera module and the B/G value of the central gold module. Namely:
Figure BDA0003715767040000091
Figure BDA0003715767040000092
the color data for the center color region ranges from 5% up and down in the R/G value of the center gold module and 5% up and down in the B/G value of the center gold module.
Setting an area, in which the difference between the R/G value of the camera module and the R/G value of the center gold module is-5% to 5%, and the difference between the B/G value of the camera module and the B/G value of the center gold module is-10% to-5%, as a color area 1; setting an area, in which the difference between the R/G value of each camera module and the R/G value of the center gold module is-5% to 5%, and the difference between the B/G value of each camera module and the B/G value of the center gold module is 5% to 10%, as a color area 2; setting an area, in which the difference between the R/G value of each camera module and the R/G value of the center gold module is-10% to-5%, and the difference between the B/G value of each camera module and the B/G value of the center gold module is-5% to 5%, as a color area 3; setting an area, in which the difference between the R/G value of each camera module and the R/G value of the center gold module is-10% to-5%, and the difference between the B/G value of each camera module and the B/G value of the center gold module is-10% to-5%, as a color area 4; setting an area, in which the difference between the R/G value of each camera module and the R/G value of the center gold module is-10% to-5%, and the difference between the B/G value of each camera module and the B/G value of the center gold module is 5% to 10%, as a color area 5; setting an area, in which the difference between the R/G value of each camera module and the R/G value of the center gold module is 5% to 10%, and the difference between the B/G value of each camera module and the B/G value of the center gold module is-5% to 5%, as a color area 6; setting an area, in which the difference between the R/G value of each camera module and the R/G value of the center gold module is 5% to 10%, and the difference between the B/G value of each camera module and the B/G value of the center gold module is-10% to-5%, as a color area 7; the area in which the difference between the R/G value of each camera module and the R/G value of the center gold module is between 5% and 10%, and the difference between the B/G value and the B/G value of the center gold module is between 5% and 10% is set as the color area 8.
FIG. 4 is a diagram illustrating a plurality of color regions corresponding to Table 1. The graph uses the center gold module as the origin of coordinates, the difference in R/G value from the gold module as the abscissa, and the difference in B/G value from the gold module as the ordinate.
TABLE 1
Figure BDA0003715767040000101
It should be noted that, since the color range of each color region is determined according to the color range of the center gold module, the range of each color region in the above example is represented by the difference between the R/G value and the B/G value of the center gold module, and in the practical application, the actual R/G value and the B/G value of each color region can be determined according to the actual R/G value and the B/G value of the center gold module, and the difference between the R/G value and the B/G value of each color region and the center gold module. For example, if the actual R/G value of the center golden module is 0.5 and the actual B/G value is 0.6, the R/G value range of the center color region is [0.475, 0.525] and the B/G value range is [0.57, 0.63 ]; the R/G value range of the auxiliary color region 1 is [0.475, 0.525], and the B/G value range is [0.54, 0.57 ]; the auxiliary color region 2 has a range of R/G values of [0.475, 0.525] and a range of B/G values of [0.63, 0.66 ].
In addition, the division of the color regions and the range of each color region are only examples, and the number of the color regions and the range of the color regions may be adjusted according to actual situations, which is not specifically limited in the present application.
After the range of the color data of each auxiliary color area in the plurality of auxiliary color areas is determined, the auxiliary gold module of each auxiliary color area is determined according to the range of the color data of each auxiliary color area.
And determining a correction parameter corresponding to each auxiliary color area according to the color effect of the center golden module after correction. Specifically, the color effect of the center gold module may be debugged first, and a correction parameter of the center gold module is determined, where the correction parameter of the center gold module is a correction parameter corresponding to the center color region. And then debugging the color effect of the auxiliary gold modules of each auxiliary color area, and determining the correction parameters of each auxiliary gold module, so that the color effect obtained by correcting the auxiliary gold modules of the area through the correction parameters of each auxiliary gold module is consistent with the color effect obtained by correcting the center gold module through the correction parameters of the center gold module. The correction parameter of each auxiliary gold module is the correction parameter of the color area to which the auxiliary gold module belongs.
And 102, writing information of a first color region into a one-time programmable (OTP) memory of the first camera module, wherein the information of the first color region comprises information of a first correction parameter corresponding to the first color region.
The first correction parameter is used for adjusting the color effect of the auxiliary gold module corresponding to the first color area to be consistent with the color effect of the central gold module after correction.
The otp (one time programmable) one-time programmable memory is a small storage area in the camera module for storing various parameters of the camera module. Besides the first correction parameter, the OTP can also burn data such as the camera module ID, the production date, the AF auto-focus calibration data, the AWB white balance calibration data, and the LSC lens shading calibration data.
In a possible embodiment, the information of the first correction parameter may be the first correction parameter corresponding to the first color region, that is, the first correction parameter corresponding to the first color region may be directly written in the one-time programmable OTP memory of the first camera module. When the first camera module is used, the terminal device may read the first correction parameter corresponding to the first color region from the OTP, and then correct the color effect of the image taken by the camera module by using the first correction parameter corresponding to the first color region.
In another possible implementation manner, the information of the first correction parameter may be a storage address of the first correction parameter corresponding to the first color region in the terminal device. When the first camera module is used, the terminal device may read a storage address of the first correction parameter in the terminal device from the OTP, read the first correction parameter corresponding to the first color region from the storage address, and correct the color effect of the image captured by the camera module by using the first correction parameter corresponding to the first color region.
Fig. 5 exemplarily shows another color correction method for a camera module according to an embodiment of the present application, which is applied to a mobile terminal equipped with a camera module, such as a mobile phone, a tablet computer, a digital camera, and the like. As shown in fig. 5, the method comprises the steps of:
step 501, reading information of a first color area in a one-time programmable OTP memory of a first camera module.
In the embodiment of the application, the first camera module is any one of the camera modules in the same batch; the first color area is a color area to which the first camera module belongs, and the first color area is one of a plurality of color areas set for the camera modules of the batch in which the first camera module is located.
The color areas are determined according to color data of the central typical gold module, and the color data comprises R/G values and B/G values. Specifically, the method for determining the plurality of color regions is the same as the method for determining the plurality of color regions in the foregoing embodiment, and details are not repeated herein.
The information of the first color region includes a first correction parameter corresponding to the first color region. In a possible embodiment, the information of the first correction parameter may be the first correction parameter corresponding to the first color region, that is, the first correction parameter corresponding to the first color region is written in the one-time programmable OTP memory of the first camera module before the camera module is assembled to the mobile terminal.
In another possible embodiment, the information about the first calibration parameter may be a storage address of the first calibration parameter corresponding to the first color region in the terminal device, that is, before the camera module is assembled into the mobile terminal, the storage address of the first calibration parameter corresponding to the first color region in the terminal device is written in the one-time programmable OTP memory of the first camera module.
Step 502, correcting the color effect of the first camera module according to a first correction parameter corresponding to the first color region, where the first correction parameter is used to adjust the color effect of the auxiliary gold module corresponding to the first color region to be consistent with the color effect of the center gold module after correction.
When the information of the first correction parameter is the first correction parameter corresponding to the first color region, the terminal device reads the first correction parameter from the OTP once every time the shooting is performed by using the camera module, and then corrects the color effect of the image shot by the camera module by using the first correction parameter.
When the information of the first correction parameter is the storage address of the first correction parameter corresponding to the first color region in the terminal device, in this case, the terminal device stores the correction parameters corresponding to all the color regions. And when the camera module is used for shooting once, the terminal equipment reads the storage address of the first correction parameter in the terminal equipment from the OTP once, reads the first correction parameter from the storage address, and corrects the color effect of the image shot by the camera module by using the first correction parameter.
The application provides a color correction method of camera modules, and for each camera module of the same batch, because color data between a plurality of camera modules belonging to the same color region and an auxiliary gold module of the color region are similar, and a color effect obtained by correcting the auxiliary gold module corresponding to a first place region by using a first correction parameter corresponding to a first color region is consistent with a color effect obtained by correcting a center gold module by using a correction parameter of the center gold module. Therefore, the color effect of the first camera module after being corrected is consistent with the color effect of the center gold module after being corrected by using the first correction parameter corresponding to the first color area to which the first camera module belongs, and the consistency of the color effects of the camera modules in the same batch can be further improved.
Based on the same technical concept, the present application further provides a color correction device of a camera module, and fig. 6 exemplarily shows a structure of the color correction device of the camera module provided by the embodiment of the present application. As shown in fig. 6, the apparatus 600 includes:
the testing module 601 is configured to test color data of a first camera module, and determine a first color region to which the first camera module belongs according to the color data of the first camera module, where the first color region is one of a plurality of color regions set for camera modules in a batch in which the first camera module is located, and the plurality of color regions are determined according to color data of a central typical golden module;
a writing module 602, configured to write information of the first color region into a one-time programmable OTP memory of the first camera module, where the information of the first color region includes information of a first correction parameter corresponding to the first color region, and the first correction parameter is used to adjust a color effect of the auxiliary gold en module corresponding to the first color region to be consistent with a color effect of the central gold en module after correction.
Optionally, the plurality of color regions include a center color region to which the center gold module belongs and a plurality of auxiliary color regions; the apparatus further includes a processing module 603 configured to determine a central gold module of the batch of camera modules according to the distribution of the color parameters of the batch of camera modules; determining the range of the color data of the central color area according to the color data of the central gold module; and for a plurality of second camera modules in the batch of camera modules, which exceed the range of the color data of the central color area, setting a plurality of auxiliary color areas according to the range of the color data of the plurality of second camera modules, and determining the range of the color data of each auxiliary color area in the plurality of auxiliary color areas.
Optionally, the processing module 603 is further configured to determine the auxiliary gold module of each auxiliary color region according to a range of the color data of each auxiliary color region.
Optionally, the information of the first correction parameter is a storage address of the first correction parameter in the terminal device.
Optionally, the color data includes an R/G value and a B/G value.
Based on the same technical concept, the present application further provides another color correction device for a camera module, and fig. 7 exemplarily shows a structure of the another color correction device for a camera module provided in the embodiment of the present application, where the device may be a mobile terminal equipped with a camera module, such as a mobile phone, a tablet computer, a digital camera, and the like. As shown in fig. 7, the apparatus 700 includes:
the reading module 701 is configured to read information of a first color region in a one-time programmable OTP memory of a first camera module, where the first color region is a color region to which the first camera module belongs, the first color region is one of a plurality of color regions set for camera modules in a batch in which the first camera module is located, the plurality of color regions are determined according to color data of a central classical golden module, and the information of the first color region includes a first correction parameter corresponding to the first color region;
a correcting module 702, configured to correct a color effect of the first camera module according to a first correction parameter corresponding to the first color region, where the first correction parameter is used to adjust the color effect of the auxiliary gold den module corresponding to the first color region to be consistent with the color effect of the central gold den module after correction.
Optionally, the information of the first correction parameter is a storage address of the first correction parameter in the terminal device.
Optionally, the color data includes R/G values and B/G values.
Based on the same technical concept, the embodiment of the present application provides a computing device, as shown in fig. 8, including at least one processor 801 and a memory 802 connected to the at least one processor, where a specific connection medium between the processor 801 and the memory 802 is not limited in the embodiment of the present application, and the processor 801 and the memory 802 are connected through a bus in fig. 8 as an example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiment of the present application, the memory 802 stores instructions executable by the at least one processor 801, and the at least one processor 801 may execute the inventory management method by executing the instructions stored in the memory 802.
The processor 801 is a control center of the computing device, and may connect various parts of the computing device by using various interfaces and lines, and perform resource setting by executing or executing instructions stored in the memory 802 and calling data stored in the memory 802. Alternatively, the processor 801 may include one or more processing units, and the processor 801 may integrate an application processor, which mainly handles an operating system, a user interface, application programs, and the like, and a modem processor, which mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 801. In some embodiments, the processor 801 and the memory 802 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 801 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, configured to implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
Memory 802, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 802 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 802 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 802 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
Based on the same technical concept, embodiments of the present application further provide a computer-readable storage medium, where a computer-executable program is stored, and the computer-executable program is used to enable a computer to execute the color correction method for an image capture module set recited in any one of the above manners.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A color correction method of a camera module is characterized by comprising the following steps:
testing color data of a first camera module, and determining a first color area to which the first camera module belongs according to the color data of the first camera module, wherein the first color area is one of a plurality of color areas set for the camera modules of a batch in which the first camera module is located, and the plurality of color areas are determined according to the color data of a central typical golden module;
and writing the information of the first color region into a one-time programmable (OTP) memory of the first camera module, wherein the information of the first color region comprises information of a first correction parameter corresponding to the first color region, and the first correction parameter is used for adjusting the color effect of the auxiliary gold module corresponding to the first color region to be consistent with the color effect of the central gold module after correction.
2. The method according to claim 1, wherein the plurality of color regions comprise a center color region to which the center gold module belongs and a plurality of auxiliary color regions;
the plurality of color regions are obtained by:
determining a central gold module of the batch of camera modules according to the distribution of the color parameters of the batch of camera modules;
determining the range of the color data of the central color area according to the color data of the central gold module;
and for a plurality of second camera modules in the batch of camera modules, which exceed the range of the color data of the central color area, setting a plurality of auxiliary color areas according to the range of the color data of the plurality of second camera modules, and determining the range of the color data of each auxiliary color area in the plurality of auxiliary color areas.
3. The method of claim 2, wherein after determining the range of color data for each of the plurality of auxiliary color regions, further comprising:
determining the auxiliary gold module of each auxiliary color region according to the range of the color data of each auxiliary color region;
and determining a correction parameter corresponding to each auxiliary color area according to the corrected color effect of the central gold module.
4. The method according to claim 1, wherein the information of the first correction parameter is a storage address of the first correction parameter in the terminal device.
5. The method according to any one of claims 1 to 4, wherein the color data comprises R/G values and B/G values.
6. The utility model provides a color correction device of module of making a video recording which characterized in that includes:
the test module is used for testing the color data of a first camera module and determining a first color area to which the first camera module belongs according to the color data of the first camera module, wherein the first color area is one of a plurality of color areas set for the camera modules of a batch in which the first camera module is located, and the plurality of color areas are determined according to the color data of a central typical golden module;
and the writing module is used for writing the information of the first color region into a one-time programmable OTP memory of the first camera module, the information of the first color region includes information of a first correction parameter corresponding to the first color region, and the first correction parameter is used for adjusting the color effect of the auxiliary gold module corresponding to the first color region to be consistent with the color effect of the central gold module after correction.
7. A color correction method of a camera module is characterized by comprising the following steps:
reading information of a first color area in a one-time programmable (OTP) memory of a first camera module, wherein the first color area is a color area to which the first camera module belongs, the first color area is one of a plurality of color areas set for the camera modules of a batch in which the first camera module is located, the plurality of color areas are determined according to color data of a central typical golden module, and the information of the first color area comprises first correction parameters corresponding to the first color area;
and correcting the color effect of the first camera module according to a first correction parameter corresponding to the first color region, wherein the first correction parameter is used for adjusting the color effect of the auxiliary gold module corresponding to the first color region to be consistent with the color effect of the central gold module after correction.
8. The method according to claim 7, wherein the information of the first correction parameter is a storage address of the first correction parameter in the terminal device.
9. The method according to any one of claims 7 to 8, wherein the color data comprises R/G values and B/G values.
10. The utility model provides a color correction device of module of making a video recording which characterized in that includes:
the device comprises a reading module, a correcting module and a control module, wherein the reading module is used for reading information of a first color region in a one-time programmable (OTP) memory of a first camera module, the first color region is a color region to which the first camera module belongs, the first color region is one of a plurality of color regions set for the camera modules of a batch in which the first camera module is located, the plurality of color regions are determined according to color data of a central typical golden module, and the information of the first color region comprises a first correction parameter corresponding to the first color region;
and the correction module is used for correcting the color effect of the first camera module according to a first correction parameter corresponding to the first color region, and the first correction parameter is used for adjusting the color effect of the auxiliary gold module corresponding to the first color region to be consistent with the color effect of the central gold module after correction.
CN202210742546.9A 2022-06-27 2022-06-27 Color correction method and device for camera module Active CN115118945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210742546.9A CN115118945B (en) 2022-06-27 2022-06-27 Color correction method and device for camera module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210742546.9A CN115118945B (en) 2022-06-27 2022-06-27 Color correction method and device for camera module

Publications (2)

Publication Number Publication Date
CN115118945A true CN115118945A (en) 2022-09-27
CN115118945B CN115118945B (en) 2023-07-14

Family

ID=83330433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210742546.9A Active CN115118945B (en) 2022-06-27 2022-06-27 Color correction method and device for camera module

Country Status (1)

Country Link
CN (1) CN115118945B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006041867A (en) * 2004-07-27 2006-02-09 Sony Corp Image processing method and image processor, imaging apparatus, and timing controller
JP2012238146A (en) * 2011-05-11 2012-12-06 Nippon Telegr & Teleph Corp <Ntt> Color correction device, color correction method, and color correction program
CN107563987A (en) * 2016-07-01 2018-01-09 北京疯景科技有限公司 Demarcate the method and device of imaging difference
CN109151457A (en) * 2018-08-30 2019-01-04 Oppo广东移动通信有限公司 A kind of image processing method and device, terminal, storage medium
CN110460747A (en) * 2018-05-08 2019-11-15 宁波舜宇光电信息有限公司 Array camera module and electronic equipment and image processing method with array camera module
CN110930301A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111652942A (en) * 2020-05-29 2020-09-11 维沃移动通信有限公司 Calibration method of camera module, first electronic device and second electronic device
CN113628135A (en) * 2021-07-28 2021-11-09 Oppo广东移动通信有限公司 Image color correction method, image color correction device, computer device, and storage medium
CN114078093A (en) * 2020-08-19 2022-02-22 武汉Tcl集团工业研究院有限公司 Image correction method, intelligent terminal and storage medium
CN114581530A (en) * 2022-02-22 2022-06-03 苏州华星光电技术有限公司 Calibration burning method and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006041867A (en) * 2004-07-27 2006-02-09 Sony Corp Image processing method and image processor, imaging apparatus, and timing controller
JP2012238146A (en) * 2011-05-11 2012-12-06 Nippon Telegr & Teleph Corp <Ntt> Color correction device, color correction method, and color correction program
CN107563987A (en) * 2016-07-01 2018-01-09 北京疯景科技有限公司 Demarcate the method and device of imaging difference
CN110460747A (en) * 2018-05-08 2019-11-15 宁波舜宇光电信息有限公司 Array camera module and electronic equipment and image processing method with array camera module
CN109151457A (en) * 2018-08-30 2019-01-04 Oppo广东移动通信有限公司 A kind of image processing method and device, terminal, storage medium
CN110930301A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111652942A (en) * 2020-05-29 2020-09-11 维沃移动通信有限公司 Calibration method of camera module, first electronic device and second electronic device
CN114078093A (en) * 2020-08-19 2022-02-22 武汉Tcl集团工业研究院有限公司 Image correction method, intelligent terminal and storage medium
CN113628135A (en) * 2021-07-28 2021-11-09 Oppo广东移动通信有限公司 Image color correction method, image color correction device, computer device, and storage medium
CN114581530A (en) * 2022-02-22 2022-06-03 苏州华星光电技术有限公司 Calibration burning method and system

Also Published As

Publication number Publication date
CN115118945B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
US8149301B2 (en) Image processing device, correction information generation method, and image-capturing device
CN111028190A (en) Image processing method, image processing device, storage medium and electronic equipment
US20190132495A1 (en) Image processing method, and device
CN108632533B (en) Camera control method, mobile terminal and computer readable storage medium
CN111738321A (en) Data processing method, device, terminal equipment and storage medium
CN110400271B (en) Stripe non-uniformity correction method and device, electronic equipment and storage medium
CN114095667B (en) Automatic exposure method, device, electronic equipment and storage medium
CN111601048A (en) Image processing method and device
CN111882520A (en) Screen defect detection method and device and head-mounted display equipment
CN107220930A (en) Fish eye images processing method, computer installation and computer-readable recording medium
CN113393540A (en) Method and device for determining color edge pixel points in image and computer equipment
CN106231200A (en) A kind of photographic method and device
CN113592739A (en) Method and device for correcting lens shadow and storage medium
CN108198189A (en) Acquisition methods, device, storage medium and the electronic equipment of picture clarity
CN111340722B (en) Image processing method, processing device, terminal equipment and readable storage medium
CN114040179A (en) Image processing method and device
CN115118945B (en) Color correction method and device for camera module
CN111182293B (en) Method and system for detecting lens shadow correction data
CN110689007B (en) Subject recognition method and device, electronic equipment and computer-readable storage medium
CN113240582B (en) Image stitching method and device
CN110312083B (en) Self-cruise adjusting device and method for automatic exposure and hardware accelerator
US20140055639A1 (en) Raw data processing apparatus, raw data processing method and imaging device
CN111556311A (en) Quality detection method and device for fixed-focus camera module and computer storage medium
US20220207669A1 (en) Image correction method and computing device utilizing method
CN115278104A (en) Image brightness adjusting method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant