CN114581530A - Calibration burning method and system - Google Patents

Calibration burning method and system Download PDF

Info

Publication number
CN114581530A
CN114581530A CN202210160420.0A CN202210160420A CN114581530A CN 114581530 A CN114581530 A CN 114581530A CN 202210160420 A CN202210160420 A CN 202210160420A CN 114581530 A CN114581530 A CN 114581530A
Authority
CN
China
Prior art keywords
image
camera module
calibration
verification
burning
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.)
Pending
Application number
CN202210160420.0A
Other languages
Chinese (zh)
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.)
Suzhou China Star Optoelectronics Technology Co Ltd
Original Assignee
Suzhou China Star Optoelectronics 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 Suzhou China Star Optoelectronics Technology Co Ltd filed Critical Suzhou China Star Optoelectronics Technology Co Ltd
Priority to CN202210160420.0A priority Critical patent/CN114581530A/en
Publication of CN114581530A publication Critical patent/CN114581530A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/02Diagnosis, testing or measuring for television systems or their details for colour television signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a calibration burning method and a calibration burning system, wherein the calibration burning method comprises the steps of obtaining an initial image shot by a camera module, carrying out image calibration on the camera module according to the initial image, determining an image calibration parameter of the camera module, burning the image calibration parameter to a memory of the camera module, and checking the calibrated camera module to output a good product judgment result of the camera module. The embodiment of the invention integrates the functions of correction, burning and detection, and solves the technical problem of low correction efficiency of the camera module caused by incapability of monitoring the image correction process in the prior art.

Description

Calibration burning method and system
Technical Field
The invention relates to the technical field of camera shooting, in particular to a calibration burning method and a calibration burning system.
Background
Along with the continuous progress of science and technology, the application of the camera module is also more and more extensive, especially in the application in clients such as smart mobile phones, tablet computers, vehicle-mounted electronic equipment, security protection monitored control system, has rooted in human daily life, and then the client is to the requirement of the imaging effect of camera module also more and more high.
However, the imaging effect of the camera module is different due to individual difference, and the camera module cannot compensate by adopting the same parameter, the current image correction technology needs to be completed by cooperation of multiple manufacturers, and the correction effect is difficult to guarantee.
Therefore, the technical problem that the camera module correction efficiency is low due to the fact that the image correction process cannot be monitored exists in the prior art.
Disclosure of Invention
The invention provides a calibration burning method and a calibration burning system, which are used for solving the technical problem of low camera module correction efficiency caused by the fact that an image correction process cannot be monitored in the prior art.
In order to solve the above problems, the technical scheme provided by the invention is as follows:
the embodiment of the invention provides a calibration burning method, which comprises the following steps:
acquiring an initial image shot by a camera module;
carrying out image calibration on the camera module according to the initial image to determine image calibration parameters of the camera module;
burning the image calibration parameters to a memory of the camera module;
and the camera module after calibration is checked to output a good product judgment result of the camera module.
In the calibration burning method provided in the embodiment of the present invention, the step of determining the image calibration parameter of the camera module by performing image calibration on the camera module according to the initial image includes:
carrying out image uniformity processing on the initial image to obtain an intermediate image;
and acquiring the image calibration parameters according to the geometric center parameters of the camera module and the intermediate image, wherein the image calibration parameters at least comprise automatic white balance correction data and lens shadow correction data.
In the calibration burning method provided in the embodiment of the present invention, the step of obtaining the image calibration parameter according to the geometric center parameter of the camera module and the intermediate image includes:
carrying out optical center processing on the intermediate image, and determining optical center parameters of the camera module;
determining the central offset of the camera module according to the optical central parameter and the geometric central parameter;
and determining the image calibration parameters according to the central offset, wherein the central offset corresponds to the automatic white balance correction data.
In the calibration burning method provided by the embodiment of the invention, the step of performing image uniformity processing on the initial image to obtain the intermediate image comprises the following steps:
acquiring a current correction parameter according to the difference between the central brightness of the initial image and the peripheral brightness of the initial image;
and correcting the initial image according to the current correction parameter to obtain the intermediate image, wherein the current correction parameter corresponds to the lens shading correction data.
In the calibration burning method provided in the embodiment of the present invention, the step of verifying the calibrated camera module to output a good product determination result of the camera module includes:
carrying out data validity check on the image calibration parameters stored by the calibrated camera module;
performing image quality verification on the calibrated verification image shot by the camera module;
and outputting a good product judgment result of the camera module according to the data validity check result and the image quality check result.
In the calibration burning method provided by the embodiment of the present invention, the step of performing image quality verification on the calibrated verification image shot by the camera module includes:
acquiring an initial verification image shot by the camera module;
performing image quality processing on the initial verification image according to the image calibration parameters stored in the camera module to obtain the verification image;
and carrying out image quality verification on the verification image according to the actual color channel value parameters and the standard values of the verification image to obtain an image quality verification result.
In the calibration burning method provided in the embodiment of the present invention, the step of performing the quality verification on the verification image according to the actual color channel value parameter and the standard value of the verification image to obtain the quality verification result includes:
determining a color channel value deviation value according to the actual color channel value parameter and the standard value;
and outputting a verification result of the image quality verification according to a comparison result of the color channel value deviation value and a deviation threshold value.
In the calibration burning method provided in the embodiment of the present invention, the step of performing data validity check on the image calibration parameters stored in the calibrated camera module includes:
performing data validity check on the automatic white balance correction data in the image calibration parameters;
and performing data validity check on the lens shading correction data in the image calibration parameters, wherein the data validity check result comprises a data validity check result of the automatic white balance correction data and a data validity check result of the lens shading correction data.
In the calibration burning method provided in the embodiment of the present invention, the step of burning the image calibration parameter to the memory of the camera module includes:
performing security detection on the memory;
after the safety detection is passed, performing stain detection on the camera module;
and burning the image calibration parameters into the memory after the stain detection is passed.
Meanwhile, an embodiment of the present invention further provides a calibration burning system, including:
the acquisition module is used for acquiring an initial image shot by the camera module;
the determining module is used for performing image calibration parameters on the camera module according to the initial image to determine the image calibration parameters of the camera module;
the burning module is used for burning the image calibration parameters to a memory of the camera module;
and the checking module is used for checking the calibrated camera module so as to output a good product judgment result of the camera module.
The invention has the beneficial effects that: the invention provides a calibration burning method and a calibration burning system, wherein the calibration burning method comprises the steps of obtaining an initial image shot by a camera module, carrying out image calibration on the camera module according to the initial image to determine an image calibration parameter of the camera module, burning the image calibration parameter to a memory of the camera module, and checking the calibrated camera module to output a good product judgment result of the camera module. The embodiment of the invention integrates the functions of correction, burning and detection, and solves the technical problem of low correction efficiency of the camera module caused by incapability of monitoring the image correction process in the prior art.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art, the drawings used in the embodiments or technical solutions in the prior art are briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a calibration burning method according to an embodiment of the present invention.
Fig. 2 is another schematic flow chart of a calibration burning method according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a calibration burning system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few 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.
Aiming at the technical problem of low camera module correction efficiency caused by incapability of monitoring the image correction process in the prior art, the embodiment of the invention can relieve the problem.
As shown in fig. 1, in an embodiment, the calibration burning method provided by the present invention includes the following steps:
s101: system initialization and working environment configuration.
In an embodiment, the system initialization and working environment related to this step refers to calibrating a power supply of the recording system, a position and a light-emitting intensity of a light source (including an analog light source in a main automatic white balance mode such as a fluorescent lamp, an indoor tungsten lamp, and a sunlight shadow), a control signal such as a working voltage, a chip logic, a signal logic, a time sequence logic, and the like of the camera module to be recorded, and a content, a brightness, a resolution, and the like of a reference object. The reference object can be any pattern, reference object and the like provided by a manufacturer, such as an RGB pure color pattern, a landscape painting, a portrait painting and the like.
In an embodiment, the step is used for implementing system initialization and working environment configuration according to working parameters of the camera module, so that the calibration burning system can control the camera of the camera module to shoot a reference object to obtain an initial image.
In an embodiment, the step of implementing system initialization and working environment configuration according to the working parameters of the camera module may include the following steps: acquiring a configuration parameter item of the camera module and a parameter value corresponding to the configuration parameter item, and determining the configuration parameter item as the working parameter; and providing a working environment for the camera module according to the working parameters.
In one embodiment, the step of providing the working environment to the camera module according to the working parameters may include: providing the working voltage of the camera module according to the voltage item in the working parameters; providing chip logic of the camera module according to the chip items in the working parameters; providing the signal logic of the camera module according to the signal item in the working parameter; and providing the time sequence logic of the camera module according to the time sequence item in the working parameters.
This step will be specifically and schematically described with reference to specific scenarios.
S102: and acquiring an initial image shot by the camera module.
In an embodiment, in the step S101, the calibration burning system controls the camera to shoot the reference object to obtain an initial image. Specifically, the initial image refers to a native image without any optimization processing.
S103: and carrying out image calibration on the camera module according to the initial image to determine image calibration parameters of the camera module.
In one embodiment, this step includes: carrying out image uniformity processing on the initial image to obtain an intermediate image; and acquiring the image calibration parameters according to the geometric center parameters of the camera module and the intermediate image, wherein the image calibration parameters at least comprise automatic white balance correction data and lens shading correction data.
In one embodiment, the step of obtaining the image calibration parameter according to the geometric center parameter of the camera module and the intermediate image includes: carrying out optical center processing on the intermediate image, and determining optical center parameters of the camera module; determining the central offset of the camera module according to the optical central parameter and the geometric central parameter; and determining the image calibration parameters according to the central offset, wherein the central offset corresponds to the automatic white balance correction data. Specifically, the geometric center parameter is uniquely determined after the camera module is manufactured, and is generally the center position of the lens of the camera; the installation angle of optics center parameter and camera is relevant, and when the module of making a video recording manufacturing process precision was relatively poor, the axis of optics center and camera lens was not on same line, and this kind of deviation is exactly the central offset that this application relates to, and central offset generally comprises skew angle and skew distance.
In one embodiment, the step of performing image uniformity processing on the initial image to obtain the intermediate image comprises: acquiring a current correction parameter according to the difference between the central brightness of the initial image and the peripheral brightness of the initial image; and correcting the initial image according to the current correction parameter to obtain the intermediate image, wherein the current correction parameter corresponds to the lens shading correction data. Specifically, the current correction method generally includes applying a relatively large current to the photosensitive element in the edge area of the camera chip and applying a relatively small current to the photosensitive element in the center area of the camera chip to adjust the current supply correction parameters of each area, so that an image with relatively good brightness uniformity can be obtained after burning. Furthermore, gain parameters of the RGB three-color channel or the RGBW four-color channel can be determined based on the current correction mode. The gain parameter is typically a value within (0,1) that is used to adjust the brightness of each color channel.
S104: and burning the image calibration parameters to a memory of the camera module.
In one embodiment, this step may include: performing security detection on the memory; after the safety detection is passed, performing stain detection on the camera module; and burning the image calibration parameters into the memory after the stain detection is passed. Specifically, the safety detection means short-circuit detection or open-circuit detection of a circuit of the memory.
In one embodiment, the step of performing stain detection on the camera module may include: acquiring chip stain area parameters of a photosensitive chip of the camera; acquiring a lens stain area parameter of a lens of the camera; and carrying out stain detection according to the stain area parameter of the chip and the stain area parameter of the lens. It should be noted that the area parameter may be an area value of the stain, or a ratio of the stain area to the total area of the surface.
S105: and checking the calibrated camera module to output the good product judgment result of the camera module.
In one embodiment, this step may include: carrying out data validity check on the image calibration parameters stored by the calibrated camera module; performing image quality verification on the calibrated verification image shot by the camera module; and outputting a good product judgment result of the camera module according to the data validity check result and the image quality check result. Specifically, the good product determination result means that the camera module cannot take a high-quality picture after calibration, and is a good product if the camera module can take a high-quality picture, or is a defective product if the camera module cannot take a high-quality picture.
In an embodiment, the step of performing data validity check on the calibrated image calibration parameters stored in the camera module may include: performing data validity check on the automatic white balance correction data in the image calibration parameters; and performing data validity check on the lens shading correction data in the image calibration parameters, wherein the data validity check result comprises a data validity check result of the automatic white balance correction data and a data validity check result of the lens shading correction data.
In an embodiment, the step of performing image quality verification on the calibrated verification image captured by the camera module may include: acquiring an initial verification image shot by the camera module; performing image quality processing on the initial verification image according to the image calibration parameters stored in the camera module to obtain the verification image; and carrying out image quality verification on the verification image according to the actual color channel value parameters and the standard values of the verification image to obtain an image quality verification result. The standard value refers to a standard parameter of the camera module provided by a camera module manufacturer.
In an embodiment, the step of performing the image quality verification on the verification image according to the actual color channel value parameter and the standard value of the verification image to obtain the image quality verification result may include: determining a color channel value deviation value according to the actual color channel value parameter and the standard value; and outputting a verification result of the image quality verification according to a comparison result of the color channel value deviation value and a deviation threshold value. Specifically, the deviation threshold refers to a maximum range of a difference between an actual color channel value and a standard value, and is generally a percentage or a numerical value.
The embodiment provides a calibration burning method, which integrates the functions of correction, burning and detection, and solves the technical problem of low correction efficiency of a camera module caused by the fact that the image correction process cannot be monitored in the prior art.
In order that the invention may be better understood, reference will now be made to specific examples of applications.
As shown in fig. 2, in an application embodiment, the calibration burning method provided by the present invention includes the following steps:
s201: and controlling the camera module to take a picture.
The steps are mainly carried out in a test box of the burning system.
In this step, the photographing refers to that the camera and the light source (the simulated analog light source provided by the burning system) keep a fixed distance under the standard power supply, and photographing is performed on the reference object under the conditions of three different color temperatures (three white balance modes such as the tungsten lamp in the above) in sequence to obtain a primary image (RAW image, and the CMOS or CCD image sensor converts the captured light source signal into the primary data of the digital signal).
In this step, sensor (image sensing chip of camera module) initial setting and key setting of OTP (One Time Programmable, memory of camera module, that is, implanting the One Time Programmable chip in the camera sensor, performing correction data burning before product shipment, and not becoming operation in the user's hand) are mainly performed.
In this step, the IOVDD test box of the burn system provides: 7 groups of programmable power supplies: AVDD, DVDD, DOVDD, IOVDD, POW, AF, VFUSE, (R2C, R3X, R5X, R6U support adjustable range and accuracy reference corresponding test box model specification); 2 sets of fixed power supplies 5V (supported by R3X, R2C, R5X) and 12V (supported by R5X). The IO level inside the IOVDD test box, such as MCLK, REST, PWDN, SDA, SCL, IO-Out, follows the IOVDD voltage and can be set to the same level as DOVDD (if the signal pin which can not operate as above is not set).
In this embodiment, the following configuration is performed for the operating voltage of the camera in the camera module:
HW_Voltage_AVDD=2.8//0~3.8;
HW_Voltage_DVDD=1.15//0~3.8;
HW_Voltage_DOVDD=1.8//0~3.8;
HW_Voltage_IOVDD=1.8//0~3.8;
HW_Voltage_Pow=1.15//0~3.8;
HW_Voltage_AF=0//0~3.8;
HW_Voltage_vFuse=0//0~10;
HW_OutPut_5V=0;
HW_OutPut_12v=0。
in this step, the setting items of the I2C chip include:
HW _ I2C _ Speed: the rate of I2C is KHz, and 1 KHz-1 MHz is adjustable;
HW _ I2C _ IntervalTime: I2C instruction interval time;
HW _ I2C _ CommProtocal, I2C or SPI (only R2C, R5X support SPI) communication protocol selection;
I2C detects whether there is ACK feedback true during communication, and feedback false is not detected;
HW _ SPICSLow: CS level (only R2C, R5X supports), true: CS level is low; the CS level is high, and the SPI is required to be set when the communication protocol selects the SPI;
HW _ SPILittleEndian, when setting read-write SPI, the low bit is in front or the high bit is in front; true, low is before; false is high, the SPI is set only when the communication protocol selects (only supported by R2C and R5X).
In the context of this application, the chip logic of the I2C chip is set as follows:
Hw_I2C_Speed=400;
HW_I2C_IntervalTime=200;
HW_I2C_CommProtocal=0//0:I2C 1:SPI;
HW_I2C_Slave=0×20;
HW_I2C_Mode=0×1608;
HW_CheckDeviceAck=false;
HW_SPICSLow=true;
HW_SPILittleEndian=true。
in this step, the timing logic of MCLK, PWDN, REST, etc. is explained as follows:
HW _ Sensor _ MCLK is adjustable in Sensor clock frequency and unit MHz of 0-136 MHz;
HW _ RESET _ Active, setting the power-on sequence level of the Sensor, true high level and false low level;
HW _ PWDN _ Active: setting a power-on sequence level, a true high level and a false low level of a Sensor;
the HW _ DVP _ VS _ Active, the HW _ DVP _ HS _ Active, the DVP VS HS synchronous signal is set, true is high level effective, false is low level effective (the DVP image transmission interface is only needed to be set, and non-DVP can not be set).
In the application scenario, the MCLK, PWDN, REST and other sequential logic are set as follows:
HW_Sensor_MCLK=24;
// if set to true or false, no notes can be placed
Low level true high level;
HW_RESET_Active=true;
HW_PWDN_Active=true;
Hw_DVP_VS_Active=false;
HW_DVP_HS_Active=false。
in this step, the power-on timing and other parameters of the Sensor are described as follows:
HW _ Powerup sequence, selected according to specific Sensor brand, the following parameters can be configured
//OV=0x00,SONY=0x10,SANSUNG=0x20,HYNIX=0x30,APTINA=0x40,ST=0x50,TOSHI BA=0x60,GCOREINC=0x70,SUPERPIX=0x80,DONGBU=0x90,CUSTOM=0xFE,OTHER=0xFF,DESERIALIZER=0x91。
In the present application example, the power-on timing and other parameters of the Sensor are set as follows:
HW_PowerupSequence=U×10;
//0×00:OV 0×10:SONY 0×20:Samsung 0x30:Hynix 0×40:Aptina 0×50:ST 0×60:Toshiba 0×70:Gcoreinc 0×80:Superpix 0×90:Dongbu;
//"rdb_imx318_5488×4112_1115.55_24_cphy_0×20";
Hw_SensorName="imx318";
HW_ENGINEER_Mode=false;
HW_UseDDR3=true。
in this step, the setting of the CPHY parameters [ that need to be set using the R6U CPHY Sensor ] is illustrated as follows:
HW _ CPHY _ Mode://0x0: SENSOR output reference clock; 0x1, SENSOR does not output a reference clock (9-line mode), and currently 0x01 is commonly set;
HW _ CPHY _ Rate: MIPI data transmission rate in units of Gsps/Trio.
In the present application example, the CPHY parameters are set as follows:
HW _ CPHY _ Mode is 0 × 01//0 × 0, SENSOR outputs a reference clock;
0 × 1: SENSOR does not output the reference clock (9-line mode);
HW_CPHY_Rate=1.199450。
on the basis of the configuration, the burning system and the camera module can work normally and shoot and output images.
S202: and burning the parameters to a memory.
The step is carried out in a burning station, and mainly comprises the steps of obtaining calibration parameters and burning.
As shown in fig. 2, this step includes the following six steps:
s2021: open and short circuit detection.
This step is used for realizing the circuit safety inspection to the module of making a video recording. Specifically, the Open/Short current test is a test for detecting Open and Short circuits of a circuit by using the characteristics of the current flowing through a resistance line. A large voltage is generated when there is no current in the open circuit of the contact terminals, and the voltage difference approaches zero when there is current in the short circuit of the contact terminals. This is an important prerequisite for the subsequent write-through process, in which the power supply to each terminal is detected.
S2022:Shading。
The Shading in this step refers to image uniformity calculation. Light gets into camera sensitization chip, because the positive center of chip experiences light intensity great, and the formation of image effect is more clear bright, and the four corners position has the part to shelter from because mechanical mechanism designs to the formation of image effect is comparatively fuzzy and dim. And (4) obtaining the maximum value of the difference between the four-corner brightness and the ratio of the four-corner brightness to the central brightness through measurement and calculation, and performing quantitative calculation. The correction parameters of the supply current of each area are adjusted, and an image with better brightness uniformity can be obtained after the burning step.
S2023: and (4) OC calculation.
The OC (Optical Center) calculation in this step is to fit a plurality of centers of circles according to the image and obtain the final Optical Center by repositioning. And calculating the offset of the geometric center and the optical center of the photosensitive chip.
S2024:POD/POG。
The method comprises the following steps of calculating POD (Particle On Die) and POG (Particle On Glass); POD is a stain on a photosensitive chip of the camera, and the area is small; the POG is generally a stain appearing on the lens, and has a large area. In the step, different specifications are set for the POG and the POD for inspection, and products beyond the specifications cannot be burnt.
S2025: and (4) correcting the OTP.
The OTP (One Time Programmable) correction in this step is performed by calculating R, G, B gain values of the three channels by a correction method based on the calculation results of the previous steps.
S2026: and (4) OTP burning.
The OTP burning in this step is to write the calculated gain values of R, G, B three channels into the address of the OTP programmable register. And then, updating and optimizing the image acquired by the camera according to the new gain value.
In step S202, the AWB and the LSC are also acquired and burned.
Specifically, AWB (Automatic white balance) means that an image taken in a room of a fluorescent lamp appears green, a scene taken under indoor tungsten filament light is yellowish, and a picture taken in a sunlight shadow is inexplicably bluish, because white balance is set to restore a normal color of an image in the scenes. LSC (Lens Shading Correction) refers to dark corners formed by insufficient incident light at four corners of a picture, and also causes color brightness difference due to difference of light refractive indexes of different frequencies. The current compensation value of the camera photosensitive chip is adjusted to compensate the integral nonuniformity of the image, which is called lens shading correction.
After the RAW map is acquired, the AWB data and the LSC data can be acquired according to the image optimization algorithm, and then the AWB data check and the LSC data check are performed according to the following table 1, and the gain values of the three channels after passing through the back channel and R, G, B are written into the OTP chip together.
Figure BDA0003514368950000121
Table 1: OTP burns and writes specification table
S203: and (6) detecting.
The method is carried out in a detection station and mainly used for checking and judging the shooting effect of the burnt camera.
As shown in fig. 2, this step includes the following three steps:
s2031: and (4) reading the OTP.
The OTP reading in this step is to read out data from the register of the camera photosensitive chip.
S2032:Update AWB/LSC。
Update AWB/LSC in the step refers to verifying AWB section data in the read information and LSC data, so that data incompleteness caused by abnormity in the burning process is prevented.
S2033: AWB stuck and LSC stuck.
The AWB card control and the LSC card control in this step are to compare the channel value ratios of the red, green, and blue three primary colors of signals, which are calculated again from the recorded image, with the factory standard values, to take a picture and calculate three times in three different color temperature environments, and to set up specifications for judgment. And determining the deviation of the calculated value after the recording and the standard value which exceeds the specification as a defective product for the next step to output.
S204: and outputting the result.
The step mainly comprises the steps of outputting a calibration result, for example, the camera module can work normally after being calibrated, namely, the camera module with the deviation between the calculated value and the standard value not exceeding the specification after being burnt can work normally and is determined as a good product; if the camera module can not work normally after being calibrated, namely the camera module with the deviation of the calculated value and the standard value exceeding the specification after being burnt can not work normally, and the camera module is determined to be a defective product. Whether the camera module is good or not is the result of burning detection, and the step can be directly output.
Correspondingly, an embodiment of the present invention further provides a calibration burning system, as shown in fig. 3, the calibration burning system includes the following modules:
the configuration module 301 is used for system initialization and working environment configuration.
The obtaining module 302 is configured to obtain an initial image captured by the camera module.
A determining module 303, configured to determine an image calibration parameter of the image capturing module according to the image calibration parameter of the initial image.
The burning module 304 is configured to burn the image calibration parameter into a memory of the camera module.
A checking module 305, configured to check the calibrated camera module to output a good product determination result of the camera module.
In one embodiment, the determining module 303 is configured to perform image uniformity processing on the initial image to obtain an intermediate image; and acquiring the image calibration parameters according to the geometric center parameters of the camera module and the intermediate image, wherein the image calibration parameters at least comprise automatic white balance correction data and lens shading correction data.
In an embodiment, the determining module 303 is configured to perform optical center processing on the intermediate image, and determine an optical center parameter of the camera module; determining the central offset of the camera module according to the optical central parameter and the geometric central parameter; and determining the image calibration parameters according to the central offset, wherein the central offset corresponds to the automatic white balance correction data.
In an embodiment, the determining module 303 is configured to obtain a current correction parameter according to a difference between a central brightness of the initial image and a peripheral brightness of the initial image; and correcting the initial image according to the current correction parameter to obtain the intermediate image, wherein the current correction parameter corresponds to the lens shading correction data.
In one embodiment, the burning module 304 is used for performing security detection on the memory; after the safety detection is passed, performing stain detection on the camera module; and burning the image calibration parameters into the memory after the stain detection is passed.
In an embodiment, the checking module 305 is configured to perform data validity check on the calibrated image calibration parameters stored in the camera module; performing image quality verification on the calibrated verification image shot by the camera module; and outputting a good product judgment result of the camera module according to the data validity check result and the image quality check result.
In an embodiment, the verification module 305 is configured to obtain an initial verification image captured by the camera module; performing image quality processing on the initial verification image according to the image calibration parameters stored in the camera module to obtain the verification image; and carrying out image quality verification on the verification image according to the actual color channel value parameters and the standard values of the verification image to obtain an image quality verification result.
In one embodiment, the checking module 305 is configured to determine a color channel value deviation value according to the actual color channel value parameter and the standard value; and outputting a verification result of the image quality verification according to a comparison result of the color channel value deviation value and a deviation threshold value.
In one embodiment, the verification module 305 is configured to perform a data validity check on the auto white balance correction data in the image calibration parameters; and performing data validity check on the lens shading correction data in the image calibration parameters, wherein the data validity check result comprises a data validity check result of the automatic white balance correction data and a data validity check result of the lens shading correction data.
According to the above embodiments:
the invention provides a calibration burning method and a calibration burning system, wherein the calibration burning method comprises the steps of obtaining an initial image shot by a camera module, carrying out image calibration on the camera module according to the initial image to determine an image calibration parameter of the camera module, burning the image calibration parameter to a memory of the camera module, and checking the calibrated camera module to output a good product judgment result of the camera module. According to the embodiment of the invention, the functions of correction, burning and detection are integrated, so that the technical problem of low correction efficiency of the camera module caused by incapability of monitoring the image correction process in the prior art is solved.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the appended claims.

Claims (10)

1. A calibration burning method is characterized by comprising the following steps:
acquiring an initial image shot by a camera module;
carrying out image calibration on the camera module according to the initial image to determine image calibration parameters of the camera module;
burning the image calibration parameters to a memory of the camera module;
and checking the calibrated camera module to output the good product judgment result of the camera module.
2. The calibration burning method of claim 1, wherein the step of determining the image calibration parameters of the camera module by performing image calibration on the camera module according to the initial image comprises:
carrying out image uniformity processing on the initial image to obtain an intermediate image;
and acquiring the image calibration parameters according to the geometric center parameters of the camera module and the intermediate image, wherein the image calibration parameters at least comprise automatic white balance correction data and lens shading correction data.
3. The calibration burning method of claim 2, wherein the step of obtaining the image calibration parameters according to the geometric center parameters of the camera module and the intermediate image comprises:
carrying out optical center processing on the intermediate image, and determining optical center parameters of the camera module;
determining the central offset of the camera module according to the optical central parameter and the geometric central parameter;
and determining the image calibration parameters according to the central offset, wherein the central offset corresponds to the automatic white balance correction data.
4. The calibration burning method of claim 3, wherein the step of performing image uniformity processing on the initial image to obtain the intermediate image comprises:
acquiring a current correction parameter according to the difference between the central brightness of the initial image and the peripheral brightness of the initial image;
and correcting the initial image according to the current correction parameter to obtain the intermediate image, wherein the current correction parameter corresponds to the lens shading correction data.
5. The calibration burning method of claim 2, wherein the step of verifying the calibrated camera module to output a good product determination result of the camera module comprises:
carrying out data validity check on the image calibration parameters stored by the calibrated camera module;
performing image quality verification on the calibrated verification image shot by the camera module;
and outputting a good product judgment result of the camera module according to the data validity check result and the image quality check result.
6. The calibration burning method of claim 5, wherein the step of performing image quality verification on the calibrated verification image shot by the camera module comprises:
acquiring an initial verification image shot by the camera module;
performing image quality processing on the initial verification image according to the image calibration parameters stored in the camera module to obtain the verification image;
and carrying out image quality verification on the verification image according to the actual color channel value parameter and the standard value of the verification image to obtain an image quality verification result.
7. The calibration burning method of claim 6, wherein the step of performing the quality check on the verification image according to the actual color channel value parameter and the standard value of the verification image to obtain the quality check result comprises:
determining a color channel value deviation value according to the actual color channel value parameter and the standard value;
and outputting the image quality verification result according to the comparison result of the color channel value deviation value and the deviation threshold value.
8. The calibration burning method of claim 5, wherein the step of performing data validity check on the calibrated image calibration parameters stored by the camera module comprises:
performing data validity check on the automatic white balance correction data in the image calibration parameters;
and performing data validity check on the lens shading correction data in the image calibration parameters, wherein the data validity check result comprises a data validity check result of the automatic white balance correction data and a data validity check result of the lens shading correction data.
9. The calibration burning method of any one of claims 1 to 8, wherein the step of burning the image calibration parameters into a memory of the camera module comprises:
performing security detection on the memory;
after the safety detection is passed, performing stain detection on the camera module;
and burning the image calibration parameters into the memory after the stain detection is passed.
10. A calibration burn system, comprising:
the acquisition module is used for acquiring an initial image shot by the camera module;
the determining module is used for performing image calibration parameters on the camera module according to the initial image to determine the image calibration parameters of the camera module;
the burning module is used for burning the image calibration parameters to a memory of the camera module;
and the checking module is used for checking the calibrated camera module so as to output a good product judgment result of the camera module.
CN202210160420.0A 2022-02-22 2022-02-22 Calibration burning method and system Pending CN114581530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210160420.0A CN114581530A (en) 2022-02-22 2022-02-22 Calibration burning method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210160420.0A CN114581530A (en) 2022-02-22 2022-02-22 Calibration burning method and system

Publications (1)

Publication Number Publication Date
CN114581530A true CN114581530A (en) 2022-06-03

Family

ID=81775104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210160420.0A Pending CN114581530A (en) 2022-02-22 2022-02-22 Calibration burning method and system

Country Status (1)

Country Link
CN (1) CN114581530A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118945A (en) * 2022-06-27 2022-09-27 南昌华勤电子科技有限公司 Color correction method and device for camera module

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118945A (en) * 2022-06-27 2022-09-27 南昌华勤电子科技有限公司 Color correction method and device for camera module

Similar Documents

Publication Publication Date Title
KR101564076B1 (en) Method and apparatus for controlling light-emitting elements in terminal device and terminal device
US20150146014A1 (en) Imaging systems and methods for location-specific image flare mitigation
CN102547087B (en) Imaging apparatus, image processing method and computer-readable storage medium
US20100321506A1 (en) Calibration techniques for camera modules
CN103220534A (en) Image capturing device and method thereof
US20090021526A1 (en) Determination method for white-point and correction method of the white balance
CN101277385A (en) Method and apparatus to detect a dead pixel of an image sensor and method and apparatus to capture an image from an image sensor
CN104349150B (en) Method and apparatus for tuning camera correction setting for camera module
CN111277699B (en) Flash lamp color temperature calibration method and device, electronic equipment and readable storage medium
CN104869319B (en) Image treatment method and image processor
CN103369252A (en) Image processing apparatus and control method therefor
CN114581530A (en) Calibration burning method and system
CN106603929B (en) Screen light supplementing photographing method and system based on mobile terminal
US6519002B1 (en) Method and apparatus to minimize flicker effects from a discharge light source during digital video capture
CN104780320A (en) Ambient light detection method and electronic equipment
CN106412449A (en) Method for shooting light supplement and equipment
CN112004077B (en) Calibration method and device for off-screen camera, storage medium and electronic equipment
KR20200089593A (en) Method to obtain outside luminance using camera sensor and electronic device applying the method
CN107995396B (en) Two camera modules and terminal
CN113329217A (en) Automatic white balance parameter processing method and device, and computer readable storage medium
US11457189B2 (en) Device for and method of correcting white balance of image
CN111050158B (en) Camera module correction method and device and storage medium
CN109326250A (en) Electronic equipment, display screen adjusting method
JP3554069B2 (en) Imaging device
CN109547762B (en) Method and device for automatically switching white balance

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