CN110896452A - Flash lamp correction method of mobile terminal, mobile terminal and device - Google Patents

Flash lamp correction method of mobile terminal, mobile terminal and device Download PDF

Info

Publication number
CN110896452A
CN110896452A CN201811070232.9A CN201811070232A CN110896452A CN 110896452 A CN110896452 A CN 110896452A CN 201811070232 A CN201811070232 A CN 201811070232A CN 110896452 A CN110896452 A CN 110896452A
Authority
CN
China
Prior art keywords
white balance
mobile terminal
flash
camera
flash lamp
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.)
Withdrawn
Application number
CN201811070232.9A
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.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen 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 Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201811070232.9A priority Critical patent/CN110896452A/en
Publication of CN110896452A publication Critical patent/CN110896452A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a flash lamp correction method of a mobile terminal, the mobile terminal and a device, wherein the method comprises the following steps: acquiring white balance parameters of a flash lamp carried by the mobile terminal by using auxiliary equipment on a production line; and storing the white balance parameters into a nonvolatile storage area of the mobile terminal to allow the flash lamp to be subjected to white balance correction by using the white balance parameters. By means of the method, the problem of color cast when the picture is shot can be reduced, and good user experience is brought.

Description

Flash lamp correction method of mobile terminal, mobile terminal and device
Technical Field
The present application relates to the field of mobile terminal imaging technologies, and in particular, to a method for correcting a flash of a mobile terminal, and an apparatus.
Background
Due to the reasons of convenience in carrying and the like, people can often use the mobile terminal to take pictures in daily life, but due to the difference in the manufacturing process of the flash lamp, the color cast is more serious when the light supplement is performed under the light supplement environment of the flash lamp. In the prior art, a flash lamp manufacturer usually provides a Golden flash lamp module and a white balance parameter value thereof, wherein the Golden flash lamp module is a debugging module, so that a mobile terminal can perform correction by using the white balance parameter value of the Golden flash lamp module.
The inventor of the application finds that the correction method only has better improvement effect on the flashlight module with smaller difference with the Golden flashlight module in the long-term research and development process; however, the flash lamp module with larger difference with the Golden flash lamp module is not obviously improved, so that the color effect of the shot picture has obvious difference, the color difference between the picture with larger color deviation and a real object is also larger, and poor user experience is brought.
Disclosure of Invention
The main technical problem who solves of this application is because difference between the flash light module for there is the difference in the flash light effect of shooing, leads to taking the photo to have the problem of colour cast.
In order to solve the technical problem, the application adopts a technical scheme that: provided is a flash correction method of a mobile terminal, the method including: acquiring white balance parameters of a flash lamp carried by the mobile terminal by using auxiliary equipment on a production line; and storing the white balance parameters into a nonvolatile storage area of the mobile terminal to allow the flash lamp to be subjected to white balance correction by using the white balance parameters.
The auxiliary equipment comprises a box body with an opening and a white balance test card which is arranged in the box body and is opposite to the opening; the method comprises the following steps of acquiring white balance parameters of a flash lamp carried by the mobile terminal by using auxiliary equipment on a production line: arranging a flash lamp and a camera carried by the mobile terminal at the opening; controlling a flash lamp to flash, and controlling a camera to shoot a white balance test card in a flash state to obtain a test image; the white balance parameters are calculated using the test image.
The steps of controlling the flash lamp to flash and controlling the camera to shoot the white balance test card in the flash state comprise: and adjusting the camera by utilizing the pre-stored shooting parameters.
Wherein, before the step of adjusting the camera by using the pre-stored shooting parameters, the method further comprises the following steps: adjusting the shooting parameters of the camera and controlling the camera to shoot under the current shooting parameters; when the image shot by the camera meets the requirements, storing shooting parameters of the camera; the shooting parameters are used for controlling the focal length and/or the shooting angle of the camera, so that the shooting area of the camera is located in the white balance test card.
The steps of controlling the flash lamp to flash and controlling the camera to shoot the white balance test card in the flash state comprise: sending the calibration marker bit to a bottom layer framework of the mobile terminal; the step of calculating the white balance parameter using the test image includes: white balance parameters are calculated by the underlying architecture in response to the calibration flag bits.
Wherein, the step of calculating the white balance parameter using the test image further comprises: acquiring color values of red, green and blue color channels of a pixel point in an image area of a white balance test card corresponding to a test image; calculating the R/G ratio and the B/G ratio of the pixel points, wherein R is a red value, G is a green value, and B is a blue value; and respectively averaging the R/G ratio and the B/G ratio of the plurality of pixel points to obtain the average R/G ratio and the average B/G ratio of the test image.
Wherein the step of calculating the white balance parameter using the test image further comprises: the average R/G ratio and the average B/G ratio calculated from the test images taken at different times are respectively averaged.
Wherein, before the step of obtaining the color values of the red, green and blue color channels of the pixel points in the image area of the test image corresponding to the white balance test card, further comprising: and identifying the image area corresponding to the white balance test card from the test image in an image identification mode.
In order to solve the above technical problem, another technical solution adopted by the present application is: a mobile terminal is provided, which comprises a flash lamp and a nonvolatile storage area, wherein the nonvolatile storage area stores white balance parameters obtained by testing the flash lamp.
In order to solve the above technical problem, the present application adopts another technical solution: there is provided a device having a storage function, the device storing program data executable to implement a configuration management method as described above.
The beneficial effect of this application is: be different from prior art's condition, through above-mentioned mode, this application is equipped with auxiliary assembly on mobile terminal's production line, and mobile terminal realizes the flash light calibration through this auxiliary assembly. According to the method and the device, the white balance parameter of the flash lamp is obtained, and the white balance parameter is stored in the nonvolatile storage area of the mobile terminal, so that the subsequent mobile terminal can carry out white balance correction on the flash lamp by adopting the white balance parameter. From this, this application can acquire the white balance parameter of the flash lamp that each mobile terminal carried in standard test environment for mobile terminal can rectify according to the white balance parameter of the flash lamp that its self carried, and need not adopt the white balance parameter value of Golden flash lamp module that the flash lamp producer given again to rectify, the colour cast problem when can reducing the shooting photo, the photo color effect that makes the bat is better, the photo is closer with the colour of real object, bring fine user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. Wherein:
FIG. 1 is a schematic flowchart illustrating an embodiment of a method for calibrating a flash of a mobile terminal according to the present application;
FIG. 2 is a schematic flow chart of step S101 in FIG. 1;
FIG. 3 is a schematic structural diagram of the auxiliary device of step S101 in FIG. 1;
FIG. 4 is a flowchart illustrating a method for correcting a flash of a mobile terminal according to another embodiment of the present disclosure;
FIG. 5 is a schematic flowchart of step S203 in FIG. 2;
FIG. 6 is a schematic structural diagram of an embodiment of a mobile terminal according to the present application;
fig. 7 is a schematic structural diagram of an embodiment of the device with a storage function according to the present application.
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, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be obtained by a person skilled in the art without making any inventive step based on the embodiments in the present application belong to the protection scope of the present application.
It should be noted that, if directional indications (such as up, down, left, right, front, and rear … …) are referred to in the embodiments of the present application, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present application, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between the various embodiments can be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
The mobile terminal can be a mobile phone, a tablet, a computer, a wearable device and other terminals provided with a flash lamp. The operating system of the mobile terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Black Berry operating system, or a Windows Phone8 operating system.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an embodiment of a flash calibration method of a mobile terminal according to the present application. The flash lamp correction method comprises the following steps:
s101: and acquiring the white balance parameters of the flash lamp carried by the mobile terminal by using auxiliary equipment on the production line.
Specifically, an auxiliary device is arranged on a production line of the mobile terminal, the auxiliary device can be a camera bellows with a hole at the top, and the mobile terminal realizes the calibration of the flash lamp through the camera bellows.
Step S101 further includes: and under a preset dark environment, the flash lamp starts a flash function. Wherein, the illumination range of the flash lamp can be completely covered on the white balance test card in the dark box. At the moment, the mobile terminal shoots the white balance test card to obtain a test image, and acquires the white balance parameters corresponding to the flash lamp of the mobile terminal according to the test image.
The white balance parameter may be a color temperature value of the flash lamp, or may be an RGB value (i.e., a flash lamp RGB value) of a current light environment of the test image. When the white balance parameter is the flash RGB value, the mobile terminal may calculate the flash RGB value through a specific algorithm (e.g., a white balance algorithm), and select the flash RGB value corresponding to the flash color temperature value from the mapping relationship according to the mapping relationship between the flash RGB value and the flash color temperature value acquired in advance.
In other embodiments, the white balance parameter may also be an average R/G ratio and an average B/G ratio calculated from the test image. When the white balance parameter is the average R/G ratio and the average B/G ratio obtained by calculating the test image, the mobile terminal can calculate the average R/G ratio and the average B/G ratio of the test image under the flash lamp through a specific algorithm, and selects the flash lamp color temperature value corresponding to the average R/G ratio and the average B/G ratio from the mapping relation according to the mapping relation between the average R/G ratio and the average B/G ratio which are obtained in advance and the flash lamp color temperature value.
S102: and storing the white balance parameters into a nonvolatile storage area of the mobile terminal to allow the flash lamp to be subjected to white balance correction by using the white balance parameters.
Under various light conditions, the color of an object can change due to the color of the projected light, and photos shot under different light conditions have different color temperatures. Among them, white objects change most significantly: under the indoor tungsten filament light, a white object looks orange, and a shot picture is yellow; in the sky blue, a white object looks blue, and a photographed picture looks blue. In order to reduce the influence of extraneous light on the target color as much as possible, the original color of the object to be photographed can be restored under different color temperatures, and the correction is performed by using a flash lamp to achieve the correct color balance, which is called white balance correction.
And storing the white balance parameters into a nonvolatile storage area of the mobile terminal. Further, the mobile terminal starts the camera to enter a corresponding photographing mode, and at the moment, the mobile terminal can judge whether the flash lamp is started in the photographing mode.
If so, the mobile terminal can obtain the color temperature value of the current light environment of the test image and calculate the color temperature value of the adjusted flash lamp. The mobile terminal determines a white balance value corresponding to the adjusted color temperature value of the flash lamp according to a corresponding relation between the color temperature value of the flash lamp and the white balance, which is acquired in advance; and the mobile terminal performs white balance correction on the flash lamp according to the white balance value, so that the flash lamps of different mobile terminals can obtain the same photographing effect. In the present embodiment, the correspondence relationship between the flash color temperature value and the white balance may be calculated in advance through experiments or generated through an operation command input by a user, and the present embodiment is not limited.
If not, the mobile terminal can control the mobile terminal to carry out normal photographing.
Through the above manner, according to the embodiment, the auxiliary equipment is arranged on the production line of the mobile terminal, and the mobile terminal realizes the calibration of the flash lamp through the auxiliary equipment. According to the embodiment, the white balance parameter of the flash lamp is acquired, and the white balance parameter is stored in the nonvolatile storage area of the mobile terminal, so that the subsequent mobile terminal can perform white balance correction on the flash lamp by adopting the white balance parameter. Therefore, the white balance parameters of the flash lamps carried by each mobile terminal in the standard test environment can be acquired, so that the mobile terminal can correct the white balance parameters of the flash lamps carried by the mobile terminal according to the white balance parameters, the white balance parameter value of the Golden flash lamp module given by a flash lamp manufacturer is not needed to be corrected, the color cast problem during photo shooting can be reduced, the color effect of the shot photos is better, the photos are closer to the colors of real objects, and good user experience is brought.
Referring to fig. 2 and fig. 3, fig. 2 is a schematic flowchart of step S101 in fig. 1, and fig. 3 is a schematic structural diagram of the auxiliary device of step S101 in fig. 1.
The auxiliary device 30 includes a case 31 having an opening 32, a white balance test card (not shown) disposed in the case 31 and opposite to the opening 32, and a baffle 33. The opening 32 is used for illuminating a flash lamp of the mobile terminal into the box 31, and the white balance test card is arranged at the bottom of the box 31 and opposite to the opening 32. The barrier 33 is used to cover the mobile terminal when the flash is calibrated. In order to make the flash of the mobile terminal less affected by external light sources during calibration,
the step S101 disclosed in fig. 1 further includes the following steps:
s201: a flash and camera carried by the mobile terminal are disposed at the aperture 32.
Specifically, the camera may be a front camera or a rear camera of the terminal device, and the embodiments of the present application are not limited. The flash and the camera carried by the mobile terminal are disposed at the opening 32, and the baffle 33 covers the mobile terminal to prevent the external light source from entering the case 31 from the opening 32, so as to prevent the external light source from affecting the calibration result.
The baffle 33 should be opaque, and an opaque acrylic plate 33 is usually used as the baffle 33, and the opaque acrylic plate 33 includes an acrylic plate layer and an opaque coating layer disposed on the acrylic plate layer. Of course, in other embodiments, other materials known to those skilled in the art without light transmittance may be used to fabricate the baffle 33, which is not described herein.
S202: and controlling the flash lamp to flash, and controlling the camera to shoot the white balance test card in a flash state to acquire a test image.
Specifically, the flash lamp of the mobile terminal has a pre-flash function and a main flash function, the pre-flash function is a pre-flash trial mode before the flash lamp is actually turned on, and the main flash function is a mode when the flash lamp is actually turned on. And controlling the flash lamp to start a main flash function, and controlling the camera to shoot the white balance test card in a flash state to obtain a test image.
It should be noted that the shooting area of the camera is located in the white balance test card, so that the acquired test image is valid data. Wherein the test image is a RAW image of an unprocessed white balance test card. The test image comprises a plurality of pixel points, and each pixel point has an R component, a G component and a B component.
Further, step S202 further includes: and sending the calibration flag bit to the underlying architecture of the mobile terminal. Specifically, a flash lamp calibration button is added in a mobile terminal engineering mode in advance, wherein the mobile terminal engineering mode is a system-level hardware security management program, and through the mobile terminal engineering mode, a user can know the most basic information of the mobile terminal, such as the current network system and network state, the mobile terminal hardware parameters and providers thereof, the mobile terminal application details, the battery use condition, the mobile terminal factory settings recovery and the like. When the mobile terminal production line is calibrated, the calibration mark position is sent to the bottom layer framework of the mobile terminal by clicking the flash lamp calibration button, and in the embodiment, the bottom layer framework is the processor and the camera of the mobile terminal.
S203: the white balance parameters are calculated using the test image.
Further, step S203 further includes: white balance parameters are calculated by the underlying architecture in response to the calibration flag bits. Specifically, after the bottom layer framework of the mobile terminal receives the calibration flag bit, the camera is started and is controlled to shoot under the current shooting parameters to obtain a test image, and the processor calculates white balance parameters corresponding to the flash lamp of the mobile terminal according to the test image.
In this way, this embodiment is equipped with the box 31 of trompil 32 through the top, go on in transferring mobile terminal's flash light calibration to box 31 from the calibration laboratory, thereby make mobile terminal's flash light calibration can go on anytime and anywhere, and make mobile terminal's flash light receive less external light source interference when the calibration, simultaneously, the white balance test card that sets up in the bottom of box 31 compares in the grey wall of adopting among the prior art, the grey scale is more accurate, can improve mobile terminal's flash light calibration's accuracy.
In one embodiment, step S202 further includes: and adjusting the camera by utilizing the pre-stored shooting parameters.
Specifically, the photographing parameters include at least one of a camera ID, a basic attribute, an internal parameter, or an external parameter. The basic properties may be the resolution, viewing angle, focal length, etc. of the camera. The internal parameters may be shooting parameters of the camera that change over time subject to aging or the like. Therefore, the internal parameters are different for the same type of camera, and include, for example, a focal length coefficient, an angle coefficient of an image, and a distortion coefficient of a lens. The external parameter may be a shooting parameter indicating a positional relationship of the camera with respect to the subject, and is configured from information indicating, for example, position coordinates (x, y, z) of the camera viewed from the subject, an angle in the up-down direction (pitch), an angle in the left-right direction (yaw), a rotation angle (roll), and the like of the camera. The current focal length of the camera, the angle between the camera and the object and the like can be adjusted in real time by using the shooting parameters stored in advance.
Through the above manner, the embodiment adjusts the camera in real time by using the pre-stored shooting parameters, so that the shooting area of the camera is located in the white balance test card, and the obtained test image is valid data.
Referring to fig. 4, fig. 4 is a flowchart illustrating a flash calibration method of a mobile terminal according to another embodiment of the present application. Before step S102, the flash correction method further includes the steps of:
s401: and adjusting the shooting parameters of the camera, and controlling the camera to shoot under the current shooting parameters.
Specifically, the photographing parameters include at least one of a camera ID, a basic attribute, an internal parameter, or an external parameter. The basic properties may be the resolution, viewing angle, focal length, etc. of the camera. The internal parameters may be shooting parameters of the camera that change over time subject to aging or the like. Therefore, the internal parameters are different for the same type of camera, and include, for example, a focal length coefficient, an angle coefficient of an image, and a distortion coefficient of a lens. The external parameter may be a shooting parameter indicating a positional relationship of the camera with respect to the subject, and is configured from information indicating, for example, position coordinates (x, y, z) of the camera viewed from the subject, an angle in the up-down direction (pitch), an angle in the left-right direction (yaw), a rotation angle (roll), and the like of the camera. The shooting parameters are used for controlling the focal length and/or the shooting angle of the camera, so that the shooting area of the camera is located in the white balance test card.
The current focal length and/or shooting angle of the camera and the current shooting range of the camera can be acquired, and whether the shooting range is located in the white balance test card or not can be judged. If not, adjusting the shooting parameters of the camera so that the shooting area of the camera is located in the white balance test card, and controlling the camera to shoot under the current shooting parameters.
S402: and when the image shot by the camera meets the requirement, storing the shooting parameters of the camera.
Through the above manner, in the embodiment, the camera is adjusted by using the pre-stored shooting parameters, so that the shooting area of the camera is located in the white balance test card, and the obtained test image is valid data.
Referring to fig. 5, fig. 5 is a schematic flowchart of step S203 in fig. 2, and step S203 further includes the following steps:
s501: and acquiring color values of red, green and blue color channels of the pixel points in the image area of the white balance test card corresponding to the test image.
Specifically, the RGB color scheme is a color standard in the industry, and various colors are obtained by changing color values of three color channels of red (R), green (G), and blue (B) and superimposing the color values on each other, and is one of the most widely used color mobile terminals at present. The color values of the corresponding R, G, B three color channels are different for different colors.
The pixel points are pixel points on the same frame of input image collected by the equipment, and the color values of R, G, B three color channels are all expressed by adopting an RGB format, namely RGB values.
S502: and calculating the R/G ratio and the B/G ratio of the pixel points.
Specifically, the red-green proportion coefficient and the blue-green proportion coefficient of the pixel point are obtained by calculating according to the RGB value of the pixel point. The RGB values of the pixel points can be represented as R values, G values and B values, wherein the R values are red values, the G values are green values, and the B values are blue values. The red-green proportionality coefficient is R/G, and the blue-green proportionality coefficient is B/G.
S503: and respectively averaging the R/G ratio and the B/G ratio of the plurality of pixel points to obtain the average R/G ratio and the average B/G ratio of the test image.
Specifically, after the R/G ratios and the B/G ratios of all pixel points of the current image are analyzed, the finally calculated total R/G ratios and total B/G ratios are respectively averaged to obtain an average R/G ratio and an average B/G ratio.
In one embodiment, step S203 further includes: the average R/G ratio and the average B/G ratio calculated from the test images taken at different times are respectively averaged.
Specifically, since the flash has a certain duration during the flash, the present embodiment may average the average R/G ratio and the average B/G ratio calculated for each frame of the test image captured during the duration, respectively.
In an embodiment, before step S501, the flash correction method further includes: and identifying the image area corresponding to the white balance test card from the test image in an image identification mode.
Specifically, the standard image of the white balance test card may be stored in the database, and the image content in the test image may be searched and matched to identify the image area corresponding to the white balance test card.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of a mobile terminal 60 of the present application, where the mobile terminal 60 includes a flash 61 and a nonvolatile memory area 62, and white balance parameters obtained by testing the flash 61 are stored in the nonvolatile memory area 62.
Note that, the non-volatile memory area 62 of the present embodiment stores therein the white balance parameters obtained in the method for testing the flash lamp 61, and the details of the method are described with reference to the above method section, which is not described herein again.
In this way, the present embodiment is provided with an auxiliary device on the production line of the mobile terminal 60, and the mobile terminal 60 realizes the calibration of the flash 61 by the auxiliary device. The embodiment acquires the white balance parameter of the flash 61 carried by the mobile terminal 60 and stores the white balance parameter in the nonvolatile storage area 62 of the mobile terminal 60, so that the subsequent mobile terminal 60 performs white balance correction on the flash 61 by using the white balance parameter. Therefore, the white balance parameters of the flash lamps 61 carried by each mobile terminal 60 in the standard test environment can be acquired in the embodiment, so that the mobile terminal 60 can correct the white balance parameters of the flash lamps 61 carried by the mobile terminal 60 according to the white balance parameters, and the white balance parameter value of the Golden flash lamp module given by a flash lamp manufacturer is not needed to be corrected, the color cast problem during photo shooting can be reduced, the color effect of the shot photo is better, the color of the photo is closer to that of a real object, and good user experience is brought.
Please refer to fig. 7, wherein fig. 7 is a schematic structural diagram of an embodiment of the apparatus with a storage function according to the present application. The device 70 stores program data 71, and the program data 71 can be executed to implement the configuration management method in the above-described embodiment.
The method embodiments provided in the embodiments of the present application can be mutually referred to corresponding apparatus embodiments, and the embodiments of the present application are not limited thereto. The sequence of the steps of the method embodiments provided in the embodiments of the present application can be appropriately adjusted, and the steps can be correspondingly increased or decreased according to the circumstances, and any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the embodiments of the present application is included in the protective scope of the embodiments of the present application, and therefore, the details are not described again. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (10)

1. A method for correcting a flash of a mobile terminal, the method comprising:
acquiring a white balance parameter of a flash lamp carried by the mobile terminal by using auxiliary equipment on a production line;
and storing the white balance parameters into a nonvolatile storage area of the mobile terminal so as to allow the flash lamp to be subjected to white balance correction by utilizing the white balance parameters subsequently.
2. The method of claim 1, wherein the auxiliary device comprises a housing having an opening and a white balance test card disposed in the housing opposite the opening;
the step of acquiring the white balance parameters of the flash lamp carried by the mobile terminal by using auxiliary equipment on the production line comprises the following steps:
arranging a flash lamp and a camera carried by the mobile terminal at the opening;
controlling the flash lamp to flash, and controlling the camera to shoot the white balance test card in a flash state to obtain a test image;
and calculating the white balance parameter by using the test image.
3. The method of claim 2, wherein the controlling the flash to flash and the camera to capture the white balance test card in a flash state comprises:
and adjusting the camera by utilizing the pre-stored shooting parameters.
4. The method of claim 3, wherein the step of adjusting the camera using the pre-stored shooting parameters is preceded by the step of:
adjusting the shooting parameters of the camera, and controlling the camera to shoot under the current shooting parameters;
when the image shot by the camera meets the requirement, storing the shooting parameters of the camera;
the shooting parameters are used for controlling the focal length and/or the shooting angle of the camera, so that the shooting area of the camera is located in the white balance test card.
5. The method of claim 2, wherein the controlling the flash to flash and the camera to capture the white balance test card in a flash state comprises:
sending the calibration flag bit to a bottom layer architecture of the mobile terminal;
the step of calculating the white balance parameter using the test image includes:
calculating, by the underlying architecture, the white balance parameter in response to the calibration flag bit.
6. The method of claim 2, wherein the step of calculating the white balance parameter using the test image further comprises:
acquiring color values of red, green and blue color channels of pixel points in an image area of the test image corresponding to the white balance test card;
calculating the R/G ratio and the B/G ratio of the pixel points, wherein R is a red value, G is a green value, and B is a blue value;
and respectively averaging the R/G proportion and the B/G proportion of the pixels to obtain the average R/G proportion and the average B/G proportion of the test image.
7. The method of claim 6, wherein the step of calculating the white balance parameter using the test image further comprises:
averaging the average R/G ratio and the average B/G ratio calculated from the test images taken at different times, respectively.
8. The method of claim 6, wherein the step of obtaining color values of three color channels of red, green and blue of the test image corresponding to pixel points in the image area of the white balance test card is preceded by the step of:
and identifying the image area corresponding to the white balance test card from the test image in an image identification mode.
9. A mobile terminal is characterized by comprising a flash lamp and a nonvolatile storage area, wherein the nonvolatile storage area stores white balance parameters obtained by testing the flash lamp.
10. An apparatus having a storage function, characterized in that the apparatus stores program data executable to implement the flash correction method of a mobile terminal according to any one of claims 1 to 8.
CN201811070232.9A 2018-09-13 2018-09-13 Flash lamp correction method of mobile terminal, mobile terminal and device Withdrawn CN110896452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811070232.9A CN110896452A (en) 2018-09-13 2018-09-13 Flash lamp correction method of mobile terminal, mobile terminal and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811070232.9A CN110896452A (en) 2018-09-13 2018-09-13 Flash lamp correction method of mobile terminal, mobile terminal and device

Publications (1)

Publication Number Publication Date
CN110896452A true CN110896452A (en) 2020-03-20

Family

ID=69785663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811070232.9A Withdrawn CN110896452A (en) 2018-09-13 2018-09-13 Flash lamp correction method of mobile terminal, mobile terminal and device

Country Status (1)

Country Link
CN (1) CN110896452A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022156139A1 (en) * 2021-01-22 2022-07-28 深圳市影友摄影器材有限公司 Color correction detection device, and color correction system having external flash

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5883830A (en) * 1995-12-29 1999-03-16 Intel Corporation CMOS imaging device with integrated flash memory image correction circuitry
CN1316779A (en) * 2000-04-05 2001-10-10 全视技术有限公司 CMOS imaging sensor with nonvolatile memory
US20030234872A1 (en) * 2002-06-20 2003-12-25 Matherson Kevin J. Method and apparatus for color non-uniformity correction in a digital camera
CN101273621A (en) * 2005-09-28 2008-09-24 诺基亚公司 Internal memory of camera character during production
CN102685513A (en) * 2012-05-21 2012-09-19 信利光电(汕尾)有限公司 White balance processing method and device
CN105338334A (en) * 2015-10-30 2016-02-17 华勤通讯技术有限公司 Calibration method and calibration system for cameras in mobile terminals
CN106303473A (en) * 2016-08-23 2017-01-04 宁波江丰生物信息技术有限公司 A kind of white balance adjusting method and camera
CN106412543A (en) * 2016-09-06 2017-02-15 深圳天珑无线科技有限公司 Method and device for calibrating color cast of flashlight
CN107197225A (en) * 2017-06-13 2017-09-22 浙江大学 Color digital camera white balance correcting based on chromatic adaptation model

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5883830A (en) * 1995-12-29 1999-03-16 Intel Corporation CMOS imaging device with integrated flash memory image correction circuitry
CN1316779A (en) * 2000-04-05 2001-10-10 全视技术有限公司 CMOS imaging sensor with nonvolatile memory
US20030234872A1 (en) * 2002-06-20 2003-12-25 Matherson Kevin J. Method and apparatus for color non-uniformity correction in a digital camera
CN101273621A (en) * 2005-09-28 2008-09-24 诺基亚公司 Internal memory of camera character during production
CN102685513A (en) * 2012-05-21 2012-09-19 信利光电(汕尾)有限公司 White balance processing method and device
CN105338334A (en) * 2015-10-30 2016-02-17 华勤通讯技术有限公司 Calibration method and calibration system for cameras in mobile terminals
CN106303473A (en) * 2016-08-23 2017-01-04 宁波江丰生物信息技术有限公司 A kind of white balance adjusting method and camera
CN106412543A (en) * 2016-09-06 2017-02-15 深圳天珑无线科技有限公司 Method and device for calibrating color cast of flashlight
CN107197225A (en) * 2017-06-13 2017-09-22 浙江大学 Color digital camera white balance correcting based on chromatic adaptation model

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022156139A1 (en) * 2021-01-22 2022-07-28 深圳市影友摄影器材有限公司 Color correction detection device, and color correction system having external flash

Similar Documents

Publication Publication Date Title
CN107404637B (en) Projector with a light source
CN107888840B (en) High-dynamic-range image acquisition method and device
JP5108093B2 (en) Imaging apparatus and imaging method
CN105245863B (en) The image processing apparatus and its control method and picture pick-up device of progress white balance control
KR20200041382A (en) Dual camera-based imaging method, mobile terminal and storage medium
CN103227928B (en) White balance adjusting method and device
CN103647958B (en) Image processing method, image processing apparatus and electronic equipment
CN105578062A (en) Light metering mode selection method and image acquisition device utilizing same
CN108337446A (en) High-dynamic-range image acquisition method, device based on dual camera and equipment
CN108737806B (en) Projector color correction method and device and computer storage medium
CN111277699A (en) Flash lamp color temperature calibration method and device, electronic equipment and readable storage medium
CN113542709B (en) Projection image brightness adjusting method and device, storage medium and projection equipment
CN110896452A (en) Flash lamp correction method of mobile terminal, mobile terminal and device
US11805326B2 (en) Image processing apparatus, control method thereof, and storage medium
CN113542708B (en) Projection surface parameter confirmation method and device, storage medium and projection equipment
JP2013058869A (en) Image processor, image processing method, and program
CN113691794B (en) Image processing apparatus, image processing method, and storage medium
US11451719B2 (en) Image processing apparatus, image capture apparatus, and image processing method
JP2005196252A (en) Object region detecting device, photographing device, target region detecting method and computer program
US20120008863A1 (en) Imaging device, method of adjusting color shift of display monitor and color shift adjuster of display monitor
JP4396225B2 (en) White balance control device and electronic device
CN115118888B (en) Intelligent mirror using method, intelligent mirror, electronic equipment and storage medium
US10015459B2 (en) Image capturing device with automatic white balance and automatic white balance correction method
CN115514947B (en) Algorithm for automatic white balance of AI (automatic input/output) and electronic equipment
US20100259606A1 (en) Imaging device and method for controlling imaging device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200320