Camera module parameter uniform burning method
By adopting a unified correction method in the camera module, using the white balance data of the reference module to calculate the white balance coefficient and channel coefficient, and uniformly calibrating the module, the problem of inconsistent image quality caused by differences in burning parameters between different suppliers was solved, consistency of white balance and shading was achieved, and the project progress and image quality effect were improved.
Patent Information
- Application Number
- CN202310229407.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2043-03-09
AI Technical Summary
Differences in the programming parameters of different module suppliers result in varying effects when optimizing image quality on mobile platforms, affecting the guarantee of image quality and the progress of product projects.
A unified camera module parameter correction method is adopted. By taking a typical camera module as a reference module, the white balance data is detected under a normal light source environment, the white balance coefficient and channel coefficient are calculated, and a unified correction is performed, including compensation correction of the white balance data and channel data.
It improved the consistency of white balance and shading across various module manufacturers, avoiding discrepancies caused by re-tuning on mobile terminal platforms, greatly accelerating project progress and ensuring image quality.
Smart Images

Figure CN116320725B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of cameras, and in particular relates to a method for uniformly burning camera module parameters. Background Art
[0002] As an image input device, cameras are widely used in image capture, video capture, security monitoring, and other fields. Camera modules capture images of people and scenery. The production and processing of camera modules is essentially a process of stacking and combining various functional materials. Camera modules generally consist of a lens, voice coil motor, infrared filter, photosensitive chip, and PCB circuit board.
[0003] The assembly process of the module camera requires individual materials with different functions, so the consistency between the individual materials is very important.
[0004] To meet consumer demands, end customers have increasingly higher requirements for image quality. To achieve high-quality results, the camera must go through two important stages before it is finished:
[0005] Phase 1: Perform lens calibration at the module factory and burn parameters such as white balance into the module memory;
[0006] Phase 2: Image quality optimization process on the mobile platform.
[0007] The parameters in the first stage are acquired and burned in a specific light source environment. Differences in the quality of light sources affect the accuracy of the data. To ensure supply security and reduce risks, manufacturers will select multiple module suppliers. However, the light sources of different module factories vary, which leads to different burned-in parameters. As a result, in the second stage of image quality adjustment, each module supplier needs to debug a set of parameters to adapt their own modules. However, the debugging effects of different module suppliers will also vary due to factors such as light source and experience. For example, in terms of shading, the shading effect of the first supply has more noise in the four corners, while the shading of the second supply has a green center. In terms of white balance, the white balance effect of the first supply is bluish, while the white balance effect of the second supply is reddish. Summary of the Invention
[0008] For existing camera modules, different module suppliers have different burning parameters, resulting in different image quality effects when optimizing the image quality on the mobile platform. This not only fails to guarantee the image quality, but also delays the progress of product projects.
[0009] To solve the above problems, a camera module parameter unified burning method is proposed.
[0010] A camera module parameter unified calibration method, comprising:
[0011] Take the typical camera module as the benchmark module;
[0012] Different camera module suppliers detect the first white balance data of the reference module in their respective OK light source environments;
[0013] Calculating white balance coefficients and channel coefficients respectively using the first white balance data and the second white balance data burned into the reference module;
[0014] The camera module is uniformly calibrated using the white balance coefficient and the channel coefficient respectively.
[0015] In conjunction with the camera module parameter unified calibration method described in the present invention, in a first possible implementation, the step of calculating the white balance coefficient and the channel coefficient using the first white balance data and the second white balance data burned into the reference module includes:
[0016] Reading the second white balance data of the reference module;
[0017] Calculating the white balance coefficient using the first white balance data and the second white balance data;
[0018] White balance coefficient=second white balance data / first white balance data.
[0019] In combination with the first possible implementation of the present invention, in a second possible implementation, the step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively includes:
[0020] Using the white balance coefficients to correct and compensate third white balance data of respective camera module suppliers;
[0021] Burn the compensated and corrected fourth white balance data into the camera module.
[0022] In combination with the second possible implementation manner of the present invention, in a third possible implementation manner, the step of calculating the white balance coefficient using the first white balance data and the second white balance data includes:
[0023] respectively detecting the R channel white balance data R' / G' and the B channel white balance data B' / G' of the reference module in an OK light source environment;
[0024] Respectively obtain the R channel white balance data R / G and the B channel white balance data B / G burned into the reference module;
[0025] Calculate the R channel white balance coefficient and the B channel white balance coefficient respectively.
[0026] In conjunction with the camera module parameter unified calibration method of the present invention, in a fourth possible implementation, the step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively further includes:
[0027] Reading the second white balance data of the reference module;
[0028] Calculating a channel coefficient using the first white balance data and the second white balance data;
[0029] Channel coefficient=512×second white balance data / first white balance data.
[0030] In combination with the fourth possible implementation manner of the present invention, in a fifth possible implementation manner, the step of calculating the channel coefficient using the first white balance data and the second white balance data includes:
[0031] respectively detecting the R channel white balance data R' / G' and the B channel white balance data B' / G' of the reference module in an OK light source environment;
[0032] Respectively obtain the R channel white balance data R / G and the B channel white balance data B / G burned into the reference module;
[0033] Calculate the R channel coefficient and B channel coefficient respectively.
[0034] In combination with the fifth possible implementation of the present invention, in a sixth possible implementation, the step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively further includes:
[0035] If the R channel coefficient is not less than 512 and the B channel coefficient is not less than 512, then:
[0036] R channel data after correction = R channel data before correction × R channel coefficient / 512,
[0037] G channel data after correction = G channel data before correction,
[0038] B channel data after correction = B channel data before correction × B channel coefficient / 512;
[0039] Burn the R corrected channel data, G corrected channel data, and B corrected channel data into the camera module.
[0040] In combination with the fifth possible implementation of the present invention, in a seventh possible implementation, the step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively further includes:
[0041] If the R channel coefficient is not less than 512 and the B channel coefficient is less than 512, then:
[0042] R channel data after correction = R channel data before correction × R channel coefficient / B channel coefficient,
[0043] G channel data after correction = G channel data before correction × 512 / B channel coefficient,
[0044] B channel data after correction = R channel data before correction;
[0045] Burn the R corrected channel data, G corrected channel data, and B corrected channel data into the camera module.
[0046] In conjunction with the fifth possible implementation of the present invention, in an eighth possible implementation, the step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively further includes:
[0047] If the B channel coefficient is not less than 512, then:
[0048] R channel data after correction = R channel data before correction,
[0049] G channel data after correction = G channel data before correction × 512 / R channel coefficient,
[0050] B channel data after correction = B channel data before correction × B channel coefficient / R channel coefficient;
[0051] Burn the R corrected channel data, G corrected channel data, and B corrected channel data into the camera module.
[0052] In conjunction with the fifth possible implementation manner of the present invention, in a ninth possible implementation manner, the step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively further includes:
[0053] If the B channel coefficient is less than 512, then:
[0054] GR corrected channel data = GR corrected channel data * 512 / R channel coefficient,
[0055] GB channel data after correction = GB channel data before correction × 512 / B channel coefficient,
[0056] If the channel data after GR correction is not less than the channel data before GB correction, then:
[0057] R channel data after correction = R channel data before correction,
[0058] G channel data after correction = G channel data before correction × 512 / R channel coefficient,
[0059] B channel data after correction = B channel data before correction × B channel coefficient / R channel coefficient;
[0060] Burn the GR corrected channel data, GB corrected channel data, R corrected channel data, G corrected channel data, and B corrected channel data into the camera module.
[0061] In conjunction with the fifth possible implementation manner of the present invention, in a tenth possible implementation manner, the step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively further includes:
[0062] If the B channel coefficient is less than 512, then:
[0063] GR corrected channel data = GR corrected channel data * 512 / R channel coefficient,
[0064] GB channel data after correction = GB channel data before correction × 512 / B channel coefficient,
[0065] If the channel data after GR correction is smaller than the channel data before GB correction, then:
[0066] R channel data after correction = R channel data before correction × R channel coefficient / B channel coefficient,
[0067] G channel data after correction = G channel data before correction × 512 / B channel coefficient,
[0068] B channel data after correction = B channel data before correction;
[0069] Burn the GR corrected channel data, GB corrected channel data, R corrected channel data, G corrected channel data, and B corrected channel data into the camera module.
[0070] The present invention provides a unified camera module parameter calibration method. Different camera module suppliers detect the first white balance data of the reference module in an OK light source environment, and use the second white balance data burned into the reference module to respectively calculate the white balance coefficient and channel coefficient. The camera modules are then uniformly calibrated. By compensating and correcting the white balance data and channel data, the consistency of white balance and shading across module manufacturers is improved, thereby avoiding differences in image quality caused by re-debugging the mobile terminal platform. This greatly accelerates project progress and ensures the white balance and shading image quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0072] Figure 1 This is a first schematic diagram of the camera module parameter unified calibration method proposed in the present invention;
[0073] Figure 2 This is a second schematic diagram of the camera module parameter unified calibration method proposed in the present invention;
[0074] Figure 3 This is a third schematic diagram of the camera module parameter unified calibration method proposed in the present invention;
[0075] Figure 4 This is a fourth schematic diagram of the camera module parameter unified calibration method proposed in the present invention;
[0076] Figure 5 This is a fifth schematic diagram of the camera module parameter unified calibration method proposed in the present invention;
[0077] Figure 6 This is a sixth schematic diagram of the camera module parameter unified calibration method proposed in the present invention;
[0078] Figure 7 This is a seventh schematic diagram of the camera module parameter unified calibration method proposed in the present invention;
[0079] Figure 8 This is an eighth schematic diagram of the camera module parameter unified calibration method proposed in the present invention;
[0080] Figure 9 This is a ninth schematic diagram of the camera module parameter unified calibration method proposed in the present invention;
[0081] Figure 10 This is the tenth schematic diagram of the camera module parameter unified calibration method proposed by the present invention;
[0082] Figure 11 This is an eleventh schematic diagram of the camera module parameter unified calibration method proposed in the present invention; DETAILED DESCRIPTION
[0083] The following will clearly and completely describe the technical solutions of the present invention in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the scope of protection of the present invention.
[0084] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this invention pertains. The terms used in this specification of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0085] It should be noted that when an element is referred to as being “fixed on” or “disposed on” another element, it may be directly on the other element or indirectly on the other element. When an element is referred to as being “connected to” another element, it may be directly connected to the other element or indirectly connected to the other element.
[0086] It should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this application.
[0087] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. Throughout the description of this application, "plurality" means two or more, unless otherwise specifically defined.
[0088] For existing camera modules, different module suppliers have different burning parameters, resulting in different image quality effects when optimizing the image quality on the mobile platform. This not only fails to guarantee the image quality, but also delays the progress of product projects.
[0089] To solve the above problems, a camera module parameter unified burning method is proposed.
[0090] Example 1
[0091] A camera module parameter unified calibration method, such as Figure 1 , Figure 1This is a first schematic diagram of the camera module parameter unified calibration method proposed in the present invention; the method comprises: Step 100, using a typical camera module as a reference module. Step 200, testing first white balance data of the reference module under a normal lighting environment using different camera module suppliers. Step 300, calculating white balance coefficients and channel coefficients using the first white balance data and second white balance data burned into the reference module. Step 400, uniformly calibrating the camera modules using the white balance coefficients and channel coefficients.
[0092] Suppliers can be divided into first-tier, second-tier, and third-tier suppliers, etc. The typical camera module of the first-tier supplier is used as the reference module. Other process manufacturers, such as second-tier and third-tier module manufacturers, obtain the reference module and obtain the first white balance data (R' / G', B' / G) under the same exposure environment under their own inspection OK light source.
[0093] In this embodiment, in order to reduce the difference in image quality caused by re-adjusting the white balance of each module supplier on the mobile terminal platform, it is also necessary to obtain the white balance coefficient, preferably, as Figure 2 , Figure 2 This is a second schematic diagram of the camera module parameter unified calibration method proposed by the present invention, step 300 includes:
[0094] Step 310 : Read the second white balance data (R / G, B / G) of the reference module.
[0095] Step 320 : Calculate white balance coefficients using the first white balance data (R′ / G′, B′ / G) and the second white balance data (R / G, B / G).
[0096] White balance coefficient=second white balance data / first white balance data.
[0097] Specifically, such as Figure 3 , Figure 3 This is a third schematic diagram of the camera module parameter unified calibration method proposed in the present invention; step 320 includes:
[0098] Step 321 : Detect the R channel white balance data R′ / G′ and the B channel white balance data B′ / G′ of the reference module in an OK light source environment.
[0099] Step 322: respectively obtain the R channel white balance data R / G and the B channel white balance data B / G burned into the reference module.
[0100] Step 323: Calculate the R channel white balance coefficient (rg_coef) and the B channel white balance coefficient (bg_coef) respectively:
[0101] rg_coef = (R / G) / (R' / G'),
[0102] bg_coef = (B / G) / (B' / G').
[0103] After obtaining the R channel white balance coefficient (rg_coef) and B channel white balance coefficient (bg_coef) in the second and third supplier environments, you can use the above white balance coefficients to compensate your own third white balance data (R channel white balance before compensation, B channel white balance before compensation), such as Figure 4 , Figure 4 This is a fourth schematic diagram of the camera module parameter unified calibration method proposed by the present invention; step 400 includes:
[0104] Step 410: Use the white balance coefficient to correct and compensate the third white balance data of each camera module supplier:
[0105] R channel white balance after compensation = R channel white balance before compensation × R channel white balance coefficient (rg_coef);
[0106] B channel white balance after compensation = B channel white balance before compensation × B channel white balance coefficient (bg_coef);
[0107] Step 420: Burn the compensated and corrected fourth white balance data (R channel compensated white balance, B channel compensated white balance) into the camera module.
[0108] The first white balance data of the reference module is tested in an OK light source environment by different camera module suppliers, and the white balance coefficient and channel coefficient are calculated respectively using the second white balance data burned into the reference module. The camera modules are uniformly calibrated. By compensating and correcting the white balance data, the white balance consistency of each module factory is improved, thereby avoiding the differences in image quality caused by re-debugging the mobile terminal platform, greatly accelerating the project progress and ensuring the white balance image quality effect.
[0109] Example 2
[0110] In order to avoid the difference in image quality caused by re-debugging the mobile terminal platform, shading correction can also be performed on the camera module.
[0111] First, calculate the R channel coefficient (r_ratio) and the B channel coefficient (b_ratio) respectively, preferably, as Figure 5 , Figure 5 This is a fifth schematic diagram of the camera module parameter unified calibration method proposed in the present invention; step 400 further includes: step 430, reading the second white balance data of the reference module; step 440, calculating the channel coefficient using the first white balance data and the second white balance data;
[0112] Channel coefficient=512×second white balance data / first white balance data.
[0113] Furthermore, if Figure 6 , Figure 6 This is a sixth schematic diagram of the camera module parameter unified calibration method proposed in the present invention; step 440 includes step 441, detecting the R channel white balance data R' / G' and the B channel white balance data B' / G' of the reference module in an OK light source environment; step 442, respectively obtaining the R channel white balance data R / G and the B channel white balance data B / G burned into the reference module; step 443, respectively calculating the R channel coefficient and the B channel coefficient:
[0114] r_ratio=512*(R / G) / (R' / G');
[0115] b_ratio=512*(B / G) / (B' / G').
[0116] Assume that the R channel data after correction is R_GAIN_after, the G channel data after correction is G_GAIN_after, the B channel data after correction is B_GAIN_after, the GR channel data after correction is GR_GAIN_after, the GB channel data after correction is GB_GAIN_after, the R channel data before correction is R_GAIN_before, the G channel data before correction is G_GAIN_before, the B channel data before correction is B_GAIN_before, the GR channel data before correction is GR_GAIN_before, and the GB channel data before correction is GB_GAIN_before;
[0117] According to the R channel coefficient and B channel coefficient of the first supplier, the channel data of the second and third suppliers can be compensated, and then the compensated channel data can be burned into the corresponding camera module.
[0118] In this embodiment, Figure 7 , Figure 7 This is a seventh schematic diagram of the camera module parameter unified calibration method proposed by the present invention; step 400 also includes:
[0119] Step 401: If the R channel coefficient is not less than 512 and the B channel coefficient is not less than 512, then R corrected channel data = R corrected channel data × R channel coefficient / 512, G corrected channel data = G corrected channel data, B corrected channel data = B corrected channel data × B channel coefficient / 512.
[0120] Step 402: Burn the R corrected channel data, the G corrected channel data, and the B corrected channel data into the camera module.
[0121] That is: if r_ratio≥512, b_ratio≥512, then,
[0122] R_GAIN_after=(R_GAIN_before*r_ratio / 512);
[0123] G_GAIN_after=G_GAIN_before;
[0124] B_GAIN_after=(B_GAIN_before*b_ratio / 512).
[0125] By testing the first white balance data of the reference module in an OK light source environment with different camera module suppliers, and using the second white balance data burned into the reference module to calculate the channel coefficients respectively, the camera modules are uniformly calibrated and compensated and corrected using the channel data, thus improving the shading consistency of each module manufacturer. This avoids the differences in image quality caused by re-debugging the mobile terminal platform, greatly speeding up the project progress and ensuring the shading image quality effect.
[0126] Example 3
[0127] In this embodiment, if Figure 8 , Figure 8 This is an eighth schematic diagram of the camera module parameter unified calibration method proposed by the present invention; step 400 also includes:
[0128] Step 403: If the R channel coefficient is not less than 512 and the B channel coefficient is less than 512, then:
[0129] R channel data after correction = R channel data before correction × R channel coefficient / B channel coefficient,
[0130] G channel data after correction = G channel data before correction × 512 / B channel coefficient,
[0131] B channel data after correction = R channel data before correction;
[0132] Step 404: Burn the R corrected channel data, the G corrected channel data, and the B corrected channel data into the camera module.
[0133] That is: if r_ratio ≥ 512, b_ratio < 512, then:
[0134] R_GAIN_after=(R_GAIN_before*r_ratio / b_ratio);
[0135] G_GAIN_after=(G_GAIN_before*512 / b_ratio);
[0136] B_GAIN_after=B_GAIN_before.
[0137] Example 4
[0138] In this embodiment, if Figure 9 , Figure 9 This is a ninth schematic diagram of the camera module parameter unified calibration method proposed by the present invention; step 400 also includes:
[0139] Step 405: If the B channel coefficient is not less than 512, then:
[0140] R channel data after correction = R channel data before correction,
[0141] G channel data after correction = G channel data before correction × 512 / R channel coefficient,
[0142] B channel data after correction = B channel data before correction × B channel coefficient / R channel coefficient;
[0143] Step 406: Burn the R corrected channel data, the G corrected channel data, and the B corrected channel data into the camera module.
[0144] That is: if b_ratio ≥ 512, then
[0145] R_GAIN_after=R_GAIN_before,
[0146] G_GAIN_after=(G_GAIN_before*512 / r_ratio),
[0147] B_GAIN_after=(B_GAIN_before*b_ratio / r_ratio);
[0148] Example 5
[0149] In this embodiment, if Figure 10 , Figure 10 This is the tenth schematic diagram of the camera module parameter unified calibration method proposed by the present invention; step 400 also includes:
[0150] Step 407: If the B channel coefficient is less than 512, then:
[0151] GR corrected channel data = GR corrected channel data * 512 / R channel coefficient,
[0152] GB channel data after correction = GB channel data before correction × 512 / B channel coefficient,
[0153] Step 408: If the channel data after GR correction is not less than the channel data before GB correction, then:
[0154] R channel data after correction = R channel data before correction,
[0155] G channel data after correction = G channel data before correction × 512 / R channel coefficient,
[0156] B channel data after correction = B channel data before correction × B channel coefficient / R channel coefficient;
[0157] Step 409 : Burn the GR corrected channel data, the GB corrected channel data, the R corrected channel data, the G corrected channel data, and the B corrected channel data into the camera module.
[0158] That is, if b_ratio < 512 and Gr_GAIN_after > = Gb_GAIN_after, then:
[0159] Gr_GAIN_after=(Gr_GAIN_before*512 / r_ratio),
[0160] Gb_GAIN_after=(Gb_GAIN_before*512 / b_ratio),
[0161] R_GAIN_after=R_GAIN_before,
[0162] G_GAIN_after=(G_GAIN_before*512 / r_ratio),
[0163] B_GAIN_after=(B_GAIN_before*b_ratio / r_ratio).
[0164] Example 6
[0165] In this embodiment, if Figure 11 , Figure 11 This is the eleventh schematic diagram of the camera module parameter unified calibration method proposed by the present invention; step 400 also includes:
[0166] Step 450: If the B channel coefficient is less than 512, then:
[0167] GR corrected channel data = GR corrected channel data * 512 / R channel coefficient,
[0168] GB channel data after correction = GB channel data before correction × 512 / B channel coefficient,
[0169] Step 460: If the channel data after GR correction is smaller than the channel data before GB correction, then:
[0170] R channel data after correction = R channel data before correction × R channel coefficient / B channel coefficient,
[0171] G channel data after correction = G channel data before correction × 512 / B channel coefficient,
[0172] B channel data after correction = B channel data before correction;
[0173] Step 470 : Burn the GR corrected channel data, the GB corrected channel data, the R corrected channel data, the G corrected channel data, and the B corrected channel data into the camera module.
[0174] That is, if b_ratio < 512 and Gr_GAIN_after < Gb_GAIN_after, then:
[0175] Gr_GAIN_after=(Gr_GAIN_before*512 / r_ratio),
[0176] Gb_GAIN_after=(Gb_GAIN_before*512 / b_ratio),
[0177] R_GAIN_after=(R_GAIN_before*r_ratio / b_ratio),
[0178] G_GAIN_after=(G_GAIN_before*512 / b_ratio),
[0179] B_GAIN_after=B_GAIN_before.
[0180] The present invention implements a unified camera module parameter calibration method. By testing the first white balance data of a reference module in an OK light source environment with different camera module suppliers, the first white balance data of the reference module is used to calculate the white balance coefficient and channel coefficient, respectively. This uniform calibration of the camera modules is then performed. By compensating and correcting the white balance and channel data, the consistency of white balance and shading across module manufacturers is improved, thereby avoiding differences in image quality caused by re-debugging on mobile terminal platforms. This significantly accelerates project progress and ensures image quality for white balance and shading. The unified calibration of camera modules not only accelerates product project progress but also ensures image quality.
[0181] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. 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 camera module parameter unified calibration method, characterized in that: include: Take a typical camera module as a benchmark module; Different camera module suppliers detect the first white balance data of the reference module in their respective OK light source environments; Calculating white balance coefficients and channel coefficients respectively using the first white balance data and the second white balance data burned into the reference module; The camera module is uniformly calibrated using the white balance coefficient and the channel coefficient respectively; The step of calculating the white balance coefficient and the channel coefficient respectively using the first white balance data and the second white balance data burned into the reference module includes: Reading the second white balance data of the reference module; Calculating the white balance coefficient using the first white balance data and the second white balance data; White balance coefficient = second white balance data / first white balance data; The white balance coefficients include the R channel white balance coefficient and the B channel white balance coefficient. Detect the R channel white balance data R' / G' and B channel white balance data B' / G' of the reference module in an OK light source environment respectively; Get the R channel white balance data R / G and B channel white balance data B / G burned into the reference module respectively; Calculate the R channel white balance coefficient rg_coef and the B channel white balance coefficient bg_coef respectively: rg_coef = (R / G) / (R' / G'), bg_coef = (B / G) / (B' / G'); The step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively includes: The white balance coefficient is used to correct and compensate the third white balance data of each camera module supplier: R channel white balance after compensation = R channel white balance before compensation × R channel white balance coefficient rg_coef; B channel white balance after compensation = B channel white balance before compensation × B channel white balance coefficient bg_coef; The fourth white balance data after compensation and correction is burned into the camera module, wherein the fourth white balance data includes the R channel compensated white balance data and the B channel compensated white balance data.
2. The camera module parameter unified calibration method according to claim 1, characterized in that: The step of calculating white balance coefficients and channel coefficients respectively using the first white balance data and the second white balance data burned into the reference module also includes: Reading the second white balance data of the reference module; Calculating a channel coefficient using the first white balance data and the second white balance data; Channel coefficient = 512 × second white balance data / first white balance data; The channel coefficients include an R channel coefficient and a B channel coefficient.
3. The camera module parameter unified calibration method according to claim 2, characterized in that: The step of calculating the channel coefficient using the first white balance data and the second white balance data includes: respectively detecting the R channel white balance data R' / G' and the B channel white balance data B' / G' of the reference module in an OK light source environment; Respectively obtain the R channel white balance data R / G and the B channel white balance data B / G burned into the reference module; Calculate the R channel coefficient and B channel coefficient respectively: r_ratio=512*(R / G) / (R' / G'); b_ratio=512*(B / G) / (B' / G').
4. The camera module parameter unified calibration method according to claim 3, characterized in that: The step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively also includes: If the R channel coefficient is not less than 512 and the B channel coefficient is not less than 512, then: R channel data after correction = R channel data before correction × R channel coefficient / 512, G channel data after correction = G channel data before correction, B channel data after correction = B channel data before correction × B channel coefficient / 512; Burn the R corrected channel data, G corrected channel data, and B corrected channel data into the camera module.
5. The camera module parameter unified calibration method according to claim 3, characterized in that: The step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively also includes: If the R channel coefficient is not less than 512 and the B channel coefficient is less than 512, then: R channel data after correction = R channel data before correction × R channel coefficient / B channel coefficient, G channel data after correction = G channel data before correction × 512 / B channel coefficient, B channel data after correction = R channel data before correction; Burn the R corrected channel data, G corrected channel data, and B corrected channel data into the camera module.
6. The camera module parameter unified calibration method according to claim 3, characterized in that: The step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively also includes: If the B channel coefficient is not less than 512, then: R channel data after correction = R channel data before correction, G channel data after correction = G channel data before correction × 512 / R channel coefficient, B channel data after correction = B channel data before correction × B channel coefficient / R channel coefficient; Burn the R corrected channel data, G corrected channel data, and B corrected channel data into the camera module.
7. The camera module parameter unified calibration method according to claim 3, characterized in that: The step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively also includes: If the B channel coefficient is less than 512, then: GR corrected channel data = GR corrected channel data * 512 / R channel coefficient, GB channel data after correction = GB channel data before correction × 512 / B channel coefficient, If the channel data after GR correction is not less than the channel data before GB correction, then: R channel data after correction = R channel data before correction, G channel data after correction = G channel data before correction × 512 / R channel coefficient, B channel data after correction = B channel data before correction × B channel coefficient / R channel coefficient; Burn the GR corrected channel data, GB corrected channel data, R corrected channel data, G corrected channel data, and B corrected channel data into the camera module.
8. The camera module parameter unified calibration method according to claim 3, characterized in that: The step of uniformly calibrating the camera module using the white balance coefficient and the channel coefficient respectively also includes: If the B channel coefficient is less than 512, then: GR corrected channel data = GR corrected channel data * 512 / R channel coefficient, GB channel data after correction = GB channel data before correction × 512 / B channel coefficient, If the channel data after GR correction is smaller than the channel data before GB correction, then: R channel data after correction = R channel data before correction × R channel coefficient / B channel coefficient, G channel data after correction = G channel data before correction × 512 / B channel coefficient, B channel data after correction = B channel data before correction; Burn the GR corrected channel data, GB corrected channel data, R corrected channel data, G corrected channel data, and B corrected channel data into the camera module.
Citation Information
Patent Citations
Light source compensation method for camera module
CN106973242A
Method for avoiding white balance distortion of camera module under high color temperature
CN115190282A
NB-cam module calibration method and system using the same
US9412165B1