CN110177269B - Method and device for synchronously correcting exposure of double-shooting module - Google Patents

Method and device for synchronously correcting exposure of double-shooting module Download PDF

Info

Publication number
CN110177269B
CN110177269B CN201910470514.6A CN201910470514A CN110177269B CN 110177269 B CN110177269 B CN 110177269B CN 201910470514 A CN201910470514 A CN 201910470514A CN 110177269 B CN110177269 B CN 110177269B
Authority
CN
China
Prior art keywords
camera
exposure
brightness
raw image
double
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.)
Active
Application number
CN201910470514.6A
Other languages
Chinese (zh)
Other versions
CN110177269A (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.)
Beijing Megvii Technology Co Ltd
Original Assignee
Beijing Megvii 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 Beijing Megvii Technology Co Ltd filed Critical Beijing Megvii Technology Co Ltd
Priority to CN201910470514.6A priority Critical patent/CN110177269B/en
Publication of CN110177269A publication Critical patent/CN110177269A/en
Application granted granted Critical
Publication of CN110177269B publication Critical patent/CN110177269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Studio Devices (AREA)

Abstract

The present disclosure provides a method and an apparatus for synchronously calibrating exposure of a dual camera module. In the method, a main camera RAW image and a secondary camera RAW image which are shot by a double-shooting module by using preset exposure parameters under a light source environment with uniform and uniform brightness are obtained; determining the brightness proportional relation of the same designated area in the RAW image of the main camera and the RAW image of the auxiliary camera; and storing the proportional relation between the exposure parameters and the brightness so as to carry out exposure synchronous correction on the double-shot module. The method for synchronously correcting the exposure of the double camera modules can be optimized.

Description

Method and device for synchronously correcting exposure of double-shooting module
Technical Field
The disclosure relates to the technical field of application of double cameras, in particular to a method and a device for synchronously correcting exposure of a double-camera module.
Background
The double cameras of the double camera module can be widely applied due to the fact that the functions of fast focusing, dim light compensation, zooming and the like can be well achieved. For example, a smart terminal having dual cameras has been widely used.
The two cameras of the double-camera module are respectively called a main camera and an auxiliary camera. The dual-camera exposure synchronization can ensure the exposure consistency and the brightness consistency of the dual-camera images to a great extent, so the exposure synchronization of the main camera and the auxiliary camera has very important effect on the dual-camera shooting of the high-quality image.
At present, the exposure synchronization correction of the double camera modules is needed to realize the exposure synchronization of the double cameras. However, there are two main implementations of the current bi-camera module exposure synchronization correction. The first method is to assemble the dual camera module in a module factory by using calibration software at a Personal Computer (PC) end and corresponding hardware stations of a production line. The main disadvantage of this method is that the main camera and the auxiliary camera of the dual-camera module are assembled and matched fixedly in the same module factory, which limits the flexibility of matching the dual-camera module, and the correction work can only be performed in the module factory. The second way is to debug the golden value in advance by the research personnel, and to use the unified and fixed golden value to perform exposure synchronization correction on all the same matched dual-camera modules. Although the problem of poor matching flexibility of the dual-camera module in the first mode can be solved, the dual-camera module only can cover the dual-camera module within a certain difference range due to the fact that the fixed golden value is used for correction, exposure consistency obtained after the dual-camera module with large difference is corrected has large difference, and correction accuracy is low.
In summary, the conventional method for calibrating exposure synchronization of a dual camera module is to be further optimized.
Disclosure of Invention
In order to solve the above problems in the prior art, the present disclosure provides a method and an apparatus for calibrating exposure synchronization of a dual camera module.
A first aspect of the present disclosure provides a method for calibrating exposure synchronization of a dual camera module, wherein the method includes: acquiring a main camera RAW image and a sub camera RAW image of a double-camera module group shot by using preset exposure parameters under a light source environment with uniform and uniform brightness; determining the brightness proportional relation of the same designated area in the RAW image of the main camera and the RAW image of the auxiliary camera; and storing the proportional relation between the exposure parameters and the brightness so as to carry out exposure synchronous correction on the double-shot module.
In one example, the storing the proportional relationship between the exposure parameter and the brightness includes: respectively storing the exposure parameters and the brightness proportional relation in a read-only storage medium of the main camera and a read-only storage medium of the auxiliary camera; or storing the proportional relation between the exposure parameters and the brightness in a terminal read-only storage medium provided with the main camera and the auxiliary camera.
In one example, before determining the proportional relationship between the luminances of the same designated area in the main camera RAW image and the sub-camera RAW image, the method further includes: determining that the brightness of the RAW image of the main camera and the RAW image of the auxiliary camera in the designated area is within a set percentage range of the maximum brightness of respective pictures; and/or determining that the brightness uniformity of the RAW image of the main camera and the brightness uniformity of the RAW image of the auxiliary camera in the designated area both meet a first preset uniformity condition.
In one example, the brightness uniformity of the RAW image of the main camera and the brightness uniformity of the RAW image of the auxiliary camera both satisfy a second preset uniformity condition.
The brightness difference of the mirror-image symmetric region of the RAW image of the main camera is within a preset range, and the brightness difference of the mirror-image symmetric region of the RAW image of the auxiliary camera is within the preset range.
In one example, the designated area is an area within a picture center setting range.
In one example, the method for calibrating exposure synchronization of a dual camera module provided by the present disclosure further includes: aiming at the main camera and the auxiliary camera of the double-camera module, respectively presetting exposure parameters in an exposure linear region under the light source environment with uniform and uniform brightness.
Wherein, set up the exposure parameter in the linear region of exposure under the even unified light source environment of luminance, include: and setting exposure time and a sensitization value, so that the brightness of the picture shot by utilizing the exposure time and the sensitization value in a light source environment with uniform and uniform brightness is in a set percentage range of the maximum brightness of the picture.
The set percentage range of the maximum brightness of the picture is 20% to 50% of the maximum brightness of the picture.
In one example, in the embodiment of the present disclosure, the light source environment with uniform and uniform brightness is provided by one or more correction light boxes.
A second aspect of the present disclosure provides a device for calibrating exposure synchronization of a dual camera module, which has a function of implementing the method for calibrating exposure synchronization of a dual camera module according to the first aspect. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
In one example, the double camera module exposure synchronization correction device includes a RAW image acquisition unit, a luminance proportional relationship determination unit, and a storage unit. The system comprises a RAW image acquisition unit, a light source acquisition unit and a control unit, wherein the RAW image acquisition unit is used for acquiring a main camera RAW image and an auxiliary camera RAW image which are shot by a double-camera module by using preset exposure parameters under a light source environment with uniform and uniform brightness; the brightness proportional relation determining unit is used for determining the brightness proportional relation of the same designated area in the RAW image of the main camera and the RAW image of the auxiliary camera; and the storage unit is used for storing the proportional relation between the exposure parameters and the brightness so as to carry out exposure synchronous correction on the double-shot module.
In another example, the apparatus for calibrating exposure synchronization of a dual camera module further comprises an exposure parameter setting unit. The exposure parameter setting unit is used for respectively presetting exposure parameters in an exposure linear region under the light source environment with uniform and uniform brightness aiming at the main camera and the auxiliary camera of the double-camera module.
The functions of the RAW image obtaining unit, the luminance proportional relation determining unit, the storage unit, and the exposure parameter setting unit may correspond to the method steps related to the first aspect and various embodiments of the first aspect, and are not described herein again.
A third aspect of the present disclosure provides an electronic device comprising: a memory to store instructions; and a processor for calling the instructions stored in the memory to execute the method for correcting exposure synchronization of the double-shot module according to the first aspect or any one of the examples of the first aspect.
A fourth aspect of the present disclosure provides a computer-readable storage medium in which instructions are stored, the instructions, when executed by a processor, performing the method for correcting exposure synchronization of a bi-camera module according to the first aspect or any one of the examples related to the first aspect.
According to the exposure synchronous correction method for the double-camera module, the RAW image shot by the main camera and the auxiliary camera of the double-camera module by using the preset exposure parameters under the light source environment with uniform and uniform brightness is obtained, the brightness proportional relation of the same designated area in the RAW image of the main camera and the RAW image of the auxiliary camera is determined, and the exposure parameters and the brightness proportional relation are stored, so that the exposure correction parameters can be determined. The stored exposure correction parameters can be subsequently used for carrying out exposure synchronous correction on the double-shooting module, so that the exposure synchronous correction of the double-shooting module at the group level is realized, and the correction accuracy is higher. And the main camera and the vice camera of two modules of taking a photograph can freely arrange, and the collocation flexibility is higher.
Drawings
The above and other objects, features and advantages of the embodiments of the present disclosure will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
fig. 1 is a schematic flow chart illustrating a method for calibrating exposure synchronization of a dual camera module according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating picture dividing regions in a process of detecting brightness uniformity of a picture according to an embodiment of the present disclosure;
FIG. 3 is a schematic flowchart illustrating a method for calibrating exposure synchronization of a dual camera module according to another embodiment of the present disclosure;
FIG. 4 is a schematic flow chart diagram illustrating a method for calibrating exposure synchronization of a dual camera module according to another embodiment of the present disclosure;
fig. 5 is a schematic structural diagram illustrating a device for calibrating exposure synchronization of a dual camera module according to an embodiment of the present disclosure;
fig. 6 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present disclosure will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the present disclosure, and are not intended to limit the scope of the present disclosure in any way.
The present disclosure provides a method for synchronously calibrating exposure of a dual-camera module, which can be applied to the synchronous calibration of the exposure of the dual-camera module on a terminal production line. The terminal to which the present disclosure relates may be a smart terminal such as a smart phone, a tablet computer, a computer, or the like, into which a dual camera module may be assembled.
In the double-camera module exposure synchronous correction method, the terminal can control the main camera and the auxiliary camera of the double-camera module to shoot original (RAW) images under the light source environment with uniform and uniform brightness, and the RAW images shot under the light source environment with uniform and uniform brightness by the main camera and the auxiliary camera of the double-camera module are utilized to determine and store the exposure synchronous correction parameters of the double-camera module, so that the exposure synchronous correction of the double-camera module aiming at the group level is realized, and the correction accuracy is improved.
It is understood that the terminal referred to in the present disclosure may have an application program (APP) installed thereon for the bi-camera module exposure synchronization correction. Subsequently, the APP used for the exposure synchronous correction of the double-camera module is called as a correction APP. The functions of acquiring double-camera shooting pictures, calculating exposure correction parameters, storing the exposure correction parameters and the like by the terminal are realized through correcting the APP.
Fig. 1 shows a method for calibrating exposure synchronization of a dual camera module according to the present disclosure. The method execution main body shown in fig. 1 may be a terminal, or may be a component in the terminal, or may be other execution main bodies capable of implementing corresponding functions, and the disclosure is not limited thereto. Referring to fig. 1, the method includes step S101, step S102, and step S103. The respective steps will be explained below.
In step S101, a main camera RAW image and a sub camera RAW image of a dual camera module, which are shot by using preset exposure parameters in a light source environment with uniform brightness, are obtained.
Exposure parameters can be preset respectively for a main camera and an auxiliary camera of the double-camera module in the disclosure. The preset exposure parameters include exposure time and sensitivity (ISO) values. The preset exposure parameters can be used as default exposure parameters for the double-camera module to shoot pictures. Different exposure parameters can be preset when exposure synchronous correction is carried out on different double-shooting modules generally, and the preset exposure parameters are related to the maximum brightness of pictures shot by the double-shooting modules and can be obtained through debugging.
The light source environment with uniform and uniform brightness is provided for the double-camera module to shoot pictures. The double-camera module shoots a picture by using preset exposure parameters under the light source environment with uniform brightness, and the brightness of symmetrical areas on the picture can be obtained by shooting, namely the brightness uniformity is more consistent. The symmetric region in the present disclosure refers to a region symmetric in a diagonal direction, and/or a region symmetric in a center line direction. For example, in the picture a shown in fig. 2, regions numbered the same number (0, 1, 2, 3) in the direction of the diagonal line D1, in the direction of the diagonal line D2, in the direction of the center line L1, and in the direction of the center line L2 are symmetric regions. The brightness of the areas with the same number (0, 1, 2, 3) in the picture a is similar, so that the exposure synchronization correction can be effectively performed.
The double-camera module can shoot pictures by clicking a shooting button on the terminal. After the double-camera module shoots a picture, RAW pictures shot by a main camera and an auxiliary camera of the double-camera module are respectively obtained. And determining exposure synchronous correction parameters by using the RAW image of the main camera and the RAW image of the auxiliary camera.
In step S102, the method determines the brightness proportional relationship of the same designated area in the main camera RAW image and the sub camera RAW image.
When the brightness proportional relation between the main camera and the auxiliary camera is determined, the brightness of the same designated area in the RAW image of the main camera and the RAW image of the auxiliary camera can be determined, then the ratio operation is carried out on the brightness of the RAW image of the main camera in the designated area and the brightness of the RAW image of the auxiliary camera in the designated area, and the brightness proportional relation between the main camera and the auxiliary camera can be determined.
In order to ensure the accuracy of determining exposure synchronization correction parameters, when determining the brightness proportional relationship between the main camera and the auxiliary camera, the RAW image of the main camera and the RAW image of the auxiliary camera can be determined to be pictures with uniform brightness. For example, in the present disclosure, the uniformity condition may be preset, and it is determined that the brightness uniformity of the RAW image of the main camera and the brightness uniformity of the RAW image of the sub camera both satisfy the preset uniformity condition. In this disclosure, the following method may be adopted to determine that the brightness uniformity of the RAW image of the main camera and the brightness uniformity of the RAW image of the sub-camera satisfy the predetermined uniformity condition: for example, it may be determined in the present disclosure that the luminance difference value of the symmetric region of the main camera RAW map is within a preset range, and the luminance difference value of the symmetric region of the sub camera RAW map is also within a preset range. Alternatively, the present disclosure may also determine the brightness uniformity values of the main camera RAW image and the sub-camera RAW image, respectively, and determine that the brightness uniformity values are within the set threshold.
Further, the designated area in the present disclosure is an area with a brightness uniformity satisfying a predetermined uniformity condition, so as to ensure the brightness of the designated area.
For convenience of description in this disclosure, the preset uniformity condition for determining the brightness uniformity of the designated area is referred to as a first preset uniformity condition, and the preset uniformity condition for determining the brightness uniformity of the RAW image of the main camera and the brightness uniformity of the RAW image of the sub camera is referred to as a second preset uniformity condition.
In this disclosure, determining that the brightness uniformity of the designated area satisfies the predetermined uniformity condition may be performed as follows: for example, in the present disclosure, a brightness difference value between the edge area and the central area in the designated area may be determined, and the brightness difference value may be determined to be within a preset range. Alternatively, it may be determined in the present disclosure that the luminance difference of the symmetric region within the designated region is within a preset range.
The designated area in the present disclosure may be an area within a set range of the center of the picture, so as to avoid being affected by the dark corner of the picture when determining the brightness of the RAW picture. The picture center setting range may be set as required, for example, one eighth of the area of the picture center may be selected as a designated area in the present disclosure.
S103: and storing the brightness proportional relation and the preset exposure parameters so as to carry out exposure synchronous correction on the main camera and the auxiliary camera of the double-camera module.
In an embodiment of the present disclosure, the exposure parameters preset by the dual camera module and the brightness proportional relationship between the RAW image of the main camera and the RAW image of the sub camera may be stored in the read-only storage media of the main camera and the sub camera, respectively. For example, the information is stored in an Electrically Erasable Programmable Read Only Memory (EEPROM) of the main camera and the sub camera. In another embodiment of the present disclosure, the exposure parameter preset by the dual camera module and the brightness proportional relationship between the RAW image of the main camera and the RAW image of the sub camera may be stored in a read-only storage medium of the terminal on which the dual camera module is installed. For example, the information is stored in a Read Only Memory (ROM) of the terminal.
By storing the exposure synchronous correction parameters such as the exposure parameter and the brightness proportional relation in the read-only memory of the double-shooting module or the terminal, the exposure synchronous correction can be carried out by using the relatively accurate exposure synchronous correction parameters when the exposure synchronous correction of the double-shooting module is carried out subsequently.
The exposure synchronous correction method for the double-camera module can carry out exposure synchronous correction on any assembled double-camera module under the light source environment with uniform and uniform brightness, is not limited to be carried out in a module factory, and can be carried out on a terminal production line. This openly also do not restrict the main camera of equipment and vice make a video recording and must be assembled by same module factory, and the main camera and the vice camera of two modules of making a video recording can freely arrange, and the collocation flexibility is higher.
Furthermore, the exposure synchronous correction can be carried out on each double-shooting module, and the exposure synchronous correction of the double-shooting modules at the group level is realized. For example, a typical application scenario of the present disclosure may be that exposure synchronization correction is performed on a terminal (mobile phone) production line for each dual camera module assembled on a terminal.
Furthermore, the main camera and the auxiliary camera of each double-camera module group are determined to be exposure synchronous correction parameters, so that the correction accuracy can be improved compared with a Golden value mode.
The present disclosure will be described below with reference to practical applications.
In one example, the present disclosure may preset exposure parameters in an exposure linear region for a main camera and a sub camera, respectively, under a light source environment with uniform and uniform brightness.
Fig. 3 is a flowchart illustrating another method for calibrating exposure synchronization of a dual camera module according to the present disclosure. Referring to fig. 3, the method for calibrating exposure synchronization of a dual camera module includes steps S201 to S204.
In step S201, the exposure parameters of the dual camera module are preset.
To the main camera and the vice camera of two modules of taking a photograph in this disclosure, predetermine the exposure parameter in the linear region of exposure respectively under the even unified light source environment of luminance.
In one embodiment, the setting of exposure parameters in the linear exposure area of the double-camera module can be realized by debugging and setting the exposure time and the sensitivity value. The main camera and the auxiliary camera of the double-camera module can be respectively set with exposure time and sensitivity value in the disclosure, and the brightness of the picture shot by the set exposure time and sensitivity value under the light source environment with uniform and uniform brightness is set as the set percentage range of the maximum brightness of the picture. The maximum brightness of the picture is determined according to the parameter format of the picture shot by the double-shot module. The brightness of the picture shot by the double-shooting module can be within the range of 20-50% of the maximum brightness of the picture, so that the exposure parameters in the linear exposure area of the double-shooting module can be obtained.
The implementation processes of S202, S203, and S204 in fig. 3 are the same as those of S101, S102, and S103 in fig. 1, and therefore, detailed descriptions thereof are omitted, and specific reference may be made to the related description of the above embodiments.
In another example, to ensure the accuracy of the determined luminance proportional relationship between the main camera RAW image and the sub camera RAW image, the disclosure may perform fool-proofing detection. Fool-proofing detection can be understood as detecting whether the brightness and uniformity of the RAW image of the main camera and the RAW image of the auxiliary camera are both within a set threshold range. Under the condition of ensuring whether the brightness and the uniformity of the RAW image of the main camera and the RAW image of the auxiliary camera are both in the set threshold range, the brightness proportional relation between the RAW image of the main camera and the RAW image of the auxiliary camera is determined, and the accuracy of the brightness proportional relation between the determined RAW image of the main camera and the RAW image of the auxiliary camera can be improved.
Fig. 4 is a flowchart of another method for calibrating exposure synchronization of a dual camera module according to an embodiment of the present disclosure.
The fool-proofing detection method according to the present disclosure can be implemented in the dual camera module exposure synchronization correction method shown in fig. 1, and can also be implemented in the dual camera module exposure synchronization correction method shown in fig. 3. Fig. 4 of the present disclosure is a diagram illustrating an embodiment of the method for calibrating exposure synchronization of a dual camera module shown in fig. 3.
The implementation processes of S301, S302, S304 and S305 in fig. 4 are the same as those of S201, S202, S203 and S204 in fig. 3, and are not described in detail here, and only the differences will be described below.
S303: the brightness of the main camera RAW image and the auxiliary camera RAW image in the designated area is determined to be within a set threshold range, and the brightness uniformity of the main camera RAW image and the auxiliary camera RAW image in the designated area is determined to meet a first preset condition.
In the disclosure, in order to ensure that the brightness and uniformity of the RAW image of the main camera and the RAW image of the sub-camera pass through fool-proof detection, the brightness of the RAW image of the main camera and the RAW image of the sub-camera in the designated area related to the main camera and the RAW image of the sub-camera can be respectively determined to be within the set percentage range of the maximum brightness of the respective images. And determining that the uniformity of the RAW image of the main camera and the RAW image of the auxiliary camera in the related specified area meets a first preset uniformity condition.
The set percentage range of the maximum brightness of the picture may be 20% to 50% of the maximum brightness of the picture. The brightness may be set to float within a range of 20% or more of the maximum brightness of the picture. The first predetermined uniformity condition may be set according to actual requirements.
Through carrying out the fool-proof detection before confirming main camera RAW picture and vice camera RAW picture luminance proportional relation in this disclosure, can avoid under arbitrary scene homoenergetic to the condition that the exposure synchronization correction of two camera modules passes through to appear, improve the degree of accuracy that the exposure synchronization corrected.
The light source environment with uniform brightness involved in implementing the above-mentioned double-camera module exposure synchronous correction method can be provided by one or more correction light boxes. The multi-split correction light box is internally provided with a uniform light source and is provided with a bracket for placing a plurality of terminals provided with double camera modules. The terminal provided with the double-camera module is placed in a multi-split correction light box, so that the exposure synchronous correction parameters can be determined, for example, the exposure parameters are preset, the main camera RAW image and the auxiliary camera RAW image are shot, the proportional relation between the main camera RAW image and the auxiliary camera RAW image is determined, and the exposure synchronous correction of the double-camera module is completed. The multi-split correction light box is utilized to provide a light source environment with uniform and uniform brightness, so that the exposure synchronous correction of the double-camera module does not depend on external equipment, and the multi-split correction light box is small in size, light in weight, convenient to operate and capable of being conveniently arranged on a terminal production line.
The double-camera module exposure synchronous correction method can be applied to mobile phone production lines. The present disclosure will be described below with an example of an implementation process of applying the above-mentioned exposure synchronization correction of the dual camera module according to the present disclosure to a mobile phone production line.
In the disclosed example, a plurality of mobile phones with two cameras installed therein may be placed in a multi-split correction light box to perform exposure synchronization correction. After the mobile phone is placed into a plurality of correction light boxes, an exposure synchronous correction application program installed on the mobile phone can be operated to preset exposure parameters of the main camera and the auxiliary camera. And clicking a shooting button on the mobile phone to enable the double cameras of the mobile phone to shoot. An exposure synchronous correction application program on the mobile phone can obtain a RAW image of the main camera and a RAW image of the auxiliary camera and calculate the brightness of the central area of the RAW image of the main camera and the brightness of the central area of the RAW image of the auxiliary camera. And performing fool-proof detection, if the brightness of the central area of the RAW image of the main camera and the brightness of the central area of the RAW image of the auxiliary camera pass the fool-proof detection, determining the brightness proportional relation between the RAW image of the main camera and the RAW image of the auxiliary camera, and storing the preset exposure parameters and the determined brightness proportional relation into a read-only memory of a camera module or a mobile phone so as to perform subsequent exposure synchronous correction.
Based on the same inventive concept, the embodiment of the disclosure also provides a device for synchronously correcting the exposure of the double-shooting module.
It is understood that, in order to implement the above functions, the exposure synchronization correction device of the dual camera module provided in the embodiments of the present disclosure includes a hardware structure and/or a software module corresponding to each function. The disclosed embodiments can be implemented in hardware or a combination of hardware and computer software, in combination with the exemplary elements and algorithm steps disclosed in the disclosed embodiments. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The disclosed embodiment can divide the functional units of the double-shot module exposure synchronization correction device according to the above method embodiment, for example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the units in the embodiments of the present disclosure is schematic, and is only one logical function division, and there may be another division manner in actual implementation.
Fig. 5 is a schematic structural diagram of a device for calibrating exposure synchronization of a dual camera module according to an embodiment of the present disclosure. Referring to fig. 5, the dual camera module exposure synchronization correction apparatus 500 includes a RAW map acquisition unit 501, a luminance ratio determination unit 502, and a storage unit 503. The RAW image acquiring unit 501 is configured to acquire a RAW image of a main camera and a RAW image of a sub-camera of a dual camera module, which are shot by using preset exposure parameters in a light source environment with uniform brightness. A luminance proportional relationship determining unit 502, configured to determine a luminance proportional relationship of the same designated area in the main camera RAW image and the sub camera RAW image. The storage unit 503 is configured to store the exposure parameter and the luminance proportional relationship, so as to perform exposure synchronization correction on the dual camera module.
In one possible embodiment, the storage unit 503 may store the exposure parameter and the brightness proportional relationship in a read-only storage medium. On one hand, the exposure parameter and the brightness proportional relation can be respectively stored in the read-only storage medium of the main camera and the read-only storage medium of the auxiliary camera of the double camera module. On the other hand, the exposure parameter and the brightness proportional relation can be stored in a terminal read-only storage medium provided with the main camera and the auxiliary camera.
In another possible implementation, the luminance proportional relationship determining unit 502 is further configured to, before determining the luminance proportional relationship of the same designated area in the main camera RAW image and the sub-camera RAW image, determine that the luminance of the main camera RAW image and the sub-camera RAW image in the designated area are both within a set percentage range of the maximum luminance of the respective images; and/or determining that the brightness uniformity of the RAW image of the main camera and the RAW image of the auxiliary camera in the designated area meets a first preset uniformity condition.
In yet another possible implementation, the brightness uniformity of the RAW image of the main camera and the brightness uniformity of the RAW image of the sub-camera in the present disclosure both satisfy the second predetermined uniformity condition.
The brightness difference of the symmetrical area of the RAW image of the main camera is within a preset range, and the brightness difference of the symmetrical area of the RAW image of the auxiliary camera is within the preset range.
In yet another possible embodiment, the dual camera module exposure synchronization correction apparatus 500 according to the present disclosure may further include an exposure parameter setting unit 504, as shown in fig. 5. The exposure parameter setting unit 504 is used for presetting exposure parameters in an exposure linear region respectively under the light source environment with uniform brightness aiming at the main camera and the auxiliary camera of the double-camera module.
Wherein, set up the exposure parameter in the linear region of exposure under the even unified light source environment of luminance, include: and setting exposure time and a sensitization value, so that the brightness of the picture shot by utilizing the exposure time and the sensitization value in a light source environment with uniform and uniform brightness is in a set percentage range of the maximum brightness of the picture.
The set percentage range of the maximum brightness of the picture is 20% to 50% of the maximum brightness of the picture.
In the present disclosure, a light source environment with uniform and uniform brightness is provided by one or more correction light boxes.
It should be noted that the apparatus 500 for calibrating exposure synchronization of a dual camera module according to the embodiment of the present invention has all functions of implementing the method for calibrating exposure synchronization of a dual camera module according to the embodiment of the present invention, and the specific implementation process thereof can refer to the description of the embodiment and the drawings, which is not described herein again. The functions implemented by each module unit in the device 500 for calibrating exposure synchronization of a bi-camera module correspond to the steps described above for the method for calibrating exposure synchronization of a bi-camera module, and for specific implementation and technical effects, please refer to the description above for the method steps, which is not described herein again.
The present disclosure also provides an electronic device. Fig. 6 is a schematic structural diagram of an electronic device provided in the present disclosure.
As shown in fig. 6, one embodiment of the present disclosure provides an electronic device 600. The electronic device 600 includes a memory 601, a processor 602, and an Input/Output (I/O) interface 603. The memory 601 is used for storing instructions. The processor 602 is configured to call the instructions stored in the memory 601 to execute the method for calibrating exposure synchronization of the dual camera module according to the embodiment of the present disclosure. The processor 602 is connected to the memory 601 and the I/O interface 603, respectively, for example, through a bus system and/or other connection mechanism (not shown). The memory 601 may be used to store programs and data, including the program of the bi-camera module exposure synchronization correction method according to the embodiment of the present disclosure, and the processor 602 executes various functional applications and data processing of the electronic device 600 by running the program stored in the memory 601.
The processor 602 in the embodiment of the present disclosure may be implemented in at least one hardware form of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), and the processor 602 may be one or a combination of several Central Processing Units (CPUs) or other forms of Processing units with data Processing capability and/or instruction execution capability.
Memory 601 in the disclosed embodiments may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile Memory may include, for example, a Random Access Memory (RAM), a cache Memory (cache), and/or the like. The nonvolatile Memory may include, for example, a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk Drive (HDD), a Solid-State Drive (SSD), or the like.
In the embodiment of the present disclosure, the I/O interface 603 may be used to receive input instructions (e.g., numeric or character information, and generate key signal inputs related to user settings and function control of the electronic device 600, etc.), and may also output various information (e.g., images or sounds, etc.) to the outside. The I/O interface 603 in the disclosed embodiment may include one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a mouse, a joystick, a trackball, a microphone, a speaker, a touch panel, and the like.
The embodiment of the disclosure also provides a computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions run on a computer, the method for synchronously correcting the exposure of the double camera module group related to the embodiment is executed.
The embodiment of the invention also provides a computer program product containing instructions, and when the computer program product containing instructions runs on a computer, the computer is enabled to execute the double-camera module exposure synchronous correction method related to the embodiment.
It is to be understood that while operations are depicted in the drawings in a particular order, this is not to be understood as requiring that such operations be performed in the particular order shown or in serial order, or that all illustrated operations be performed, to achieve desirable results. In certain environments, multitasking and parallel processing may be advantageous.
It is further understood that reference to "a plurality" in embodiments of the invention means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The methods and apparatus of embodiments of the present invention can be accomplished using standard programming techniques with rule-based logic or other logic to accomplish the various method steps. It should also be noted that the words "device" and "module," as used herein and in the claims, is intended to encompass implementations using one or more lines of software code, and/or hardware implementations.
Any of the steps, operations, or procedures described herein may be performed or implemented using one or more hardware or software modules, alone or in combination with other devices. In one embodiment, the software modules are implemented using a computer program product comprising a computer readable medium containing computer program code, which is executable by a computer processor for performing any or all of the described steps, operations, or procedures.
The foregoing description of the implementations of the disclosure has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the disclosure to the precise form disclosed, and modifications and variations are possible in light of the above teachings or may be acquired from practice of the disclosure. The embodiments were chosen and described in order to explain the principles of the disclosure and its practical application to enable one skilled in the art to utilize the disclosure in various embodiments and with various modifications as are suited to the particular use contemplated.

Claims (12)

1. A method for synchronously correcting exposure of a double-camera module is applied to the synchronous correction of the exposure of the double-camera module on a terminal production line, and comprises the following steps:
acquiring a main camera RAW image and an auxiliary camera RAW image of a double-camera module, which are shot by using preset exposure parameters under a light source environment with uniform and uniform brightness, wherein the light source environment with uniform and uniform brightness is provided by a plurality of correction light boxes;
determining the brightness proportional relation of the same designated area in the RAW image of the main camera and the RAW image of the auxiliary camera; and
and storing the proportional relation between the exposure parameters and the brightness as exposure synchronous correction parameters in a double-shot module or a terminal, and performing exposure synchronous correction by using the exposure synchronous correction parameters when performing exposure synchronous correction of the double-shot module subsequently.
2. The method of claim 1, wherein saving the exposure parameter and the brightness proportional relationship comprises:
respectively storing the exposure parameters and the brightness proportional relation in a read-only storage medium of the main camera and a read-only storage medium of the auxiliary camera; or
And storing the proportional relation between the exposure parameters and the brightness in a read-only storage medium of a terminal provided with the main camera and the auxiliary camera.
3. The method of claim 1, wherein prior to determining the luminance proportional relationship for the same designated area in the primary camera RAW map and the secondary camera RAW map, the method further comprises:
determining that the brightness of the RAW image of the main camera and the RAW image of the auxiliary camera in the designated area is within a set percentage range of the maximum brightness of respective pictures; and/or
And determining that the brightness uniformity of the RAW image of the main camera and the RAW image of the auxiliary camera in the designated area both meet a first preset uniformity condition.
4. The method of claim 1, wherein the uniformity of brightness of the primary camera RAW image and the uniformity of brightness of the secondary camera RAW image both satisfy a second predetermined uniformity condition.
5. The method of claim 4, wherein the brightness uniformity of the primary camera RAW image and the brightness uniformity of the secondary camera RAW image both satisfy a second preset uniformity condition comprising:
the brightness difference of the symmetrical area of the RAW image of the main camera is within a preset range, and the brightness difference of the symmetrical area of the RAW image of the auxiliary camera is within the preset range.
6. The method according to claim 1, wherein the designated area is an area within a picture center setting range.
7. The method of claim 1, wherein the method further comprises:
aiming at a main camera and an auxiliary camera of the double-shooting module, respectively presetting exposure parameters under a light source environment with uniform and uniform brightness, wherein the preset exposure parameters meet the requirement of enabling the double-shooting module to carry out linear exposure.
8. The method of claim 7, wherein the presetting of the exposure parameters under the environment of the light source with uniform brightness comprises:
and setting exposure time and a sensitization value, so that the brightness of the picture shot by utilizing the exposure time and the sensitization value in a light source environment with uniform and uniform brightness is in a set percentage range of the maximum brightness of the picture.
9. The method according to claim 3 or 8, wherein the set percentage range of the picture maximum luminance is 20% to 50% of the picture maximum luminance.
10. The utility model provides a two take a photograph of synchronous correcting unit of module exposure, is applied to the terminal and produces the exposure synchronous correction of the online two module of taking a photograph of, the device includes:
the system comprises a RAW image acquisition unit, a light source correction unit and a light source correction unit, wherein the RAW image acquisition unit is used for acquiring a main camera RAW image and an auxiliary camera RAW image which are shot by a double-camera module by using preset exposure parameters under a light source environment with uniform and uniform brightness, and the light source environment with uniform and uniform brightness is provided by one or more correction light boxes;
the brightness proportional relation determining unit is used for determining the brightness proportional relation of the same designated area in the RAW image of the main camera and the RAW image of the auxiliary camera; and
and the storage unit is used for storing the exposure parameter and the brightness proportional relation as an exposure synchronous correction parameter in the double-shot module or the terminal, and is used for carrying out exposure synchronous correction by using the exposure synchronous correction parameter when carrying out exposure synchronous correction on the double-shot module subsequently.
11. An electronic device, wherein the electronic device comprises:
a memory to store instructions; and
a processor for calling the instructions stored in the memory to execute the bi-camera module exposure synchronization correction method according to any one of claims 1 to 9.
12. A computer-readable storage medium having stored therein instructions which, when executed by a processor, perform the bi-camera module exposure synchronization correction method according to any one of claims 1 to 9.
CN201910470514.6A 2019-05-31 2019-05-31 Method and device for synchronously correcting exposure of double-shooting module Active CN110177269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910470514.6A CN110177269B (en) 2019-05-31 2019-05-31 Method and device for synchronously correcting exposure of double-shooting module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910470514.6A CN110177269B (en) 2019-05-31 2019-05-31 Method and device for synchronously correcting exposure of double-shooting module

Publications (2)

Publication Number Publication Date
CN110177269A CN110177269A (en) 2019-08-27
CN110177269B true CN110177269B (en) 2021-04-06

Family

ID=67696144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910470514.6A Active CN110177269B (en) 2019-05-31 2019-05-31 Method and device for synchronously correcting exposure of double-shooting module

Country Status (1)

Country Link
CN (1) CN110177269B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741293A (en) * 2020-06-30 2020-10-02 重庆盛泰光电有限公司 Data synchronization system for camera module detection
CN115550556B (en) * 2021-06-25 2023-10-24 荣耀终端有限公司 Exposure intensity adjusting method and related device
CN113949784A (en) * 2021-09-03 2022-01-18 北京旷视科技有限公司 Synchronous imaging control method, device and storage medium
CN115460355B (en) * 2022-08-31 2024-03-29 青岛海信移动通信技术有限公司 Image acquisition method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878625B (en) * 2017-04-19 2019-10-11 宇龙计算机通信科技(深圳)有限公司 The synchronous exposure method of dual camera and system
CN107734327A (en) * 2017-11-05 2018-02-23 信利光电股份有限公司 A kind of brilliant synchrotron method of multi-cam module
CN109417604A (en) * 2017-11-30 2019-03-01 深圳市大疆创新科技有限公司 Variation calibration method, binocular vision system and computer readable storage medium
CN107872625B (en) * 2017-12-25 2020-05-22 信利光电股份有限公司 Dual-camera exposure synchronous control method and system

Also Published As

Publication number Publication date
CN110177269A (en) 2019-08-27

Similar Documents

Publication Publication Date Title
CN110177269B (en) Method and device for synchronously correcting exposure of double-shooting module
US10958850B2 (en) Electronic device and method for capturing image by using display
US9451173B2 (en) Electronic device and control method of the same
RU2633151C2 (en) Method and device for updating firmware
CN106067953B (en) Method and apparatus for determining lens shading correction for multi-camera device with various fields of view
JP7166171B2 (en) INTERFACE IMAGE DISPLAY METHOD, APPARATUS AND PROGRAM
CN104994283A (en) Correction method for local distortion and mobile terminal
CN105005972A (en) Shooting distance based distortion correction method and mobile terminal
US9412154B2 (en) Depth information based optical distortion correction circuit and method
CN105427233A (en) Method and device for removing watermark
CN110751602B (en) Conformal distortion correction method and device based on face detection
EP3822758A1 (en) Method and apparatus for setting background of ui control
WO2021083360A1 (en) Exposure control method and apparatus, storage medium and terminal device
CN111405185B (en) Zoom control method and device for camera, electronic equipment and storage medium
CN110399924A (en) A kind of image processing method, device and medium
JP6461430B1 (en) Image defective pixel compensation method, apparatus, and non-transitory computer-readable storage medium
CN111582432B (en) Network parameter processing method and device
CN110876014B (en) Image processing method and device, electronic device and storage medium
CN114299056A (en) Defect point recognition method of image and defect image recognition model training method
CN107730443B (en) Image processing method and device and user equipment
EP4009624A1 (en) Image display method, image display apparatus, and mobile terminal
CN112584057B (en) Illuminance detection method and device
US11792518B2 (en) Method and apparatus for processing image
CN107193530B (en) Method and device for generating random number
CN114047885B (en) Method, device, equipment and medium for writing multi-type data

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