CN113556477B - Ambient brightness determination method and device, medium and camera - Google Patents

Ambient brightness determination method and device, medium and camera Download PDF

Info

Publication number
CN113556477B
CN113556477B CN202111110000.3A CN202111110000A CN113556477B CN 113556477 B CN113556477 B CN 113556477B CN 202111110000 A CN202111110000 A CN 202111110000A CN 113556477 B CN113556477 B CN 113556477B
Authority
CN
China
Prior art keywords
shooting
image
brightness
ambient brightness
user terminal
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
CN202111110000.3A
Other languages
Chinese (zh)
Other versions
CN113556477A (en
Inventor
陈永平
路翊鹏
杨艺军
万文辉
杜军红
葛振纲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanchang Longqi Information Technology Co ltd
Original Assignee
Nanchang Longqi Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanchang Longqi Information Technology Co ltd filed Critical Nanchang Longqi Information Technology Co ltd
Priority to CN202111110000.3A priority Critical patent/CN113556477B/en
Publication of CN113556477A publication Critical patent/CN113556477A/en
Application granted granted Critical
Publication of CN113556477B publication Critical patent/CN113556477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/71Circuitry for evaluating the brightness variation
    • 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)
  • Studio Devices (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention provides an environment brightness determination method, an environment brightness determination device, a medium and a camera, wherein the environment brightness determination method comprises the following steps: receiving a brightness detection instruction triggered when a user starts a shooting display area of a user terminal; acquiring an initial image acquired by an image sensor to a shooting area according to the brightness detection instruction; updating preset initial exposure parameters according to the initial image to generate corresponding actual exposure parameters; determining corresponding ambient brightness according to the actual exposure parameters; wherein the actual exposure parameter has a mapping relation with the ambient brightness; and outputting the ambient brightness to a shooting display area of the user terminal for display. According to the method for determining the ambient brightness, the mapping relation between the actual exposure parameters and the ambient brightness is constructed in advance, so that the ambient brightness can be determined according to the actual exposure parameters. The cost for detecting the brightness is low, and the efficiency is high.

Description

Ambient brightness determination method and device, medium and camera
Technical Field
The embodiment of the invention relates to the technical field of cameras, in particular to an environment brightness determination method, an environment brightness determination device, an environment brightness determination medium and a camera.
Background
With the continuous development of science and technology, the functions of the user terminal are more and more abundant. A user terminal, such as a commonly used mobile phone, is usually equipped with a camera to meet the shooting requirements of the user. When the camera on the mobile phone is started, the light can be measured on the environment in the shooting direction of the camera, and the exposure parameter is adjusted according to the light measurement, so that the poor quality of the generated image caused by overexposure or insufficient exposure is avoided.
If the user needs to further improve the quality of the captured image, the user needs to know the brightness of the environment. The current camera cannot measure the brightness of the environment, a user needs to additionally use an illuminometer to test the brightness, the cost for measuring the brightness is high, and the efficiency is low.
Disclosure of Invention
The invention provides an environment brightness determination method, an environment brightness determination device, a medium and a camera, which are used for solving the problems that the brightness of an environment cannot be measured by the existing camera, a user needs to additionally use an illuminometer to test, the cost for measuring the brightness is high, and the efficiency is low.
The first aspect of the embodiments of the present invention provides an ambient brightness determining method, which is applied to a camera of a user terminal, and the method includes:
receiving a brightness detection instruction triggered when a user starts a shooting display area of a user terminal;
acquiring an initial image acquired by an image sensor to a shooting area according to the brightness detection instruction;
updating preset initial exposure parameters according to the initial image to generate corresponding actual exposure parameters;
determining corresponding ambient brightness according to the actual exposure parameters; wherein the actual exposure parameter has a mapping relation with the ambient brightness;
outputting the ambient brightness to a shooting display area of a user terminal for display;
performing white balance processing on the initial image to determine color temperature data corresponding to the initial image;
and outputting the color temperature data to a shooting display area of the user terminal for display.
Optionally, in the method as described above, the updating a preset initial exposure parameter according to the initial image to generate a corresponding actual exposure parameter includes:
dividing the initial image into a plurality of region images;
carrying out average light measurement processing on each area image to determine an exposure parameter corresponding to each area image;
and determining the exposure parameter corresponding to each area as the actual exposure parameter corresponding to each area.
Optionally, in the method as described above, the determining the corresponding ambient brightness according to the actual exposure parameter includes:
determining the environment brightness corresponding to each area according to the actual exposure parameter corresponding to each area;
acquiring an initial shooting mode selected by a user in a shooting display area of a starting user terminal;
determining the corresponding ambient brightness weight of each area according to the initial shooting mode;
and carrying out weighted summation on the ambient brightness weight corresponding to each region and the ambient brightness corresponding to each region to obtain the ambient brightness to be output.
Optionally, in the method as described above, the updating a preset initial exposure parameter according to the initial image to generate a corresponding actual exposure parameter includes:
carrying out average light measurement processing on the initial image to determine average exposure parameters corresponding to a plurality of area images in the initial image;
and updating a preset initial exposure parameter according to the average exposure parameter to determine a corresponding actual exposure parameter.
Optionally, as in the foregoing method, the performing an average light measurement process on the initial image to determine an average exposure parameter corresponding to a plurality of area images in the initial image includes:
dividing the initial image into a plurality of region images;
performing photometric processing on each area image to obtain the brightness of each area image;
determining average exposure parameters corresponding to a plurality of area images in the initial image according to the brightness of each area image in a preset exposure parameter channel; the preset exposure parameter channel comprises a mapping relation between a brightness range and an exposure parameter; the interval value of the brightness range in the preset exposure parameter channel is smaller than the interval value of the brightness range corresponding to the conventional exposure parameter channel; the conventional exposure parameter channel is an exposure parameter channel used for determining actual exposure parameters when an image is shot.
Optionally, in the method as described above, the determining, in a preset exposure parameter channel, an average exposure parameter corresponding to a plurality of area images in an initial image according to the brightness of each area image includes:
determining corresponding exposure parameters in a preset exposure parameter channel according to the brightness of each region image;
and calculating the average value of the exposure parameters corresponding to each area image to determine the average exposure parameters corresponding to a plurality of area images in the initial image.
Optionally, in the method described above, the actual exposure parameter includes an actual exposure time and an actual exposure compensation value;
the determining the corresponding ambient brightness according to the actual exposure parameter includes:
determining the actual exposure according to the actual exposure time and the actual exposure compensation value;
determining corresponding ambient brightness from a preset brightness exposure mapping table according to the actual exposure; the preset brightness exposure mapping table stores the mapping relation between the exposure and the ambient brightness.
Optionally, the method as described above, before outputting the color temperature data to a shooting display area of the user terminal for displaying, further includes:
constructing a mapping relation between the ambient brightness and the color temperature data and the identification of the shooting mode;
the outputting the color temperature data to a shooting display area of the user terminal for displaying further comprises:
outputting the mark of the shooting mode corresponding to the ambient brightness and the color temperature data and shooting suggestion information for proposing to switch to the shooting mode to a shooting display area of the user terminal for displaying; when the shooting offer information is triggered by a user, the camera receives a switching instruction sent by a user terminal; the switching instruction is used to switch from a current shooting mode to the shooting mode.
Optionally, as the above method, before outputting the identifier of the shooting mode corresponding to the ambient brightness and the color temperature data and shooting suggestion information suggesting switching to the shooting mode to a shooting display area of the user terminal for displaying, the method further includes:
detecting whether a current shooting mode is the same as a shooting mode corresponding to the ambient brightness and the color temperature data;
and if the current shooting mode is different from the shooting modes corresponding to the ambient brightness and the color temperature data, executing the step of outputting the identification of the shooting mode corresponding to the ambient brightness and the color temperature data and shooting suggestion information for proposing to switch to the shooting mode to a shooting display area of the user terminal for displaying.
Optionally, the method as described above, before outputting the color temperature data to a shooting display area of the user terminal for displaying, further includes:
constructing a mapping relation between the ambient brightness and the color temperature data and an identifier of an image processing mode;
the outputting the color temperature data to a shooting display area of the user terminal for displaying further comprises:
outputting the identifier of the image processing mode corresponding to the ambient brightness and the color temperature data and image proposal information for proposing to switch to the image processing mode to a shooting display area of the user terminal for displaying; when the image proposal information is triggered by a user, the camera receives a switching instruction sent by a user terminal; the switching instruction is used for switching from a current image processing mode to the image processing mode.
Optionally, as the above method, before outputting the identifier of the image processing mode corresponding to the ambient brightness and the color temperature data and image suggestion information suggesting switching to the image processing mode to the shooting display area of the user terminal, the method further includes:
detecting whether a current image processing mode is the same as an image processing mode corresponding to the ambient brightness and the color temperature data;
and if the current image processing mode is different from the image processing mode corresponding to the ambient brightness and the color temperature data, executing the step of outputting the identifier of the image processing mode corresponding to the ambient brightness and the color temperature data and image proposal information for proposing to switch to the image processing mode to a shooting display area of the user terminal for displaying.
A second aspect of the embodiments of the present invention provides an ambient brightness determining apparatus, which is located in a camera of a user terminal, and includes:
the receiving module is used for receiving a brightness detection instruction triggered when a user starts a shooting display area of the user terminal;
the acquisition module is used for acquiring an initial image acquired by the image sensor to a shooting area according to the brightness detection instruction;
the updating module is used for updating preset initial exposure parameters according to the initial image so as to generate corresponding actual exposure parameters;
the determining module is used for determining corresponding environment brightness according to the actual exposure parameters; wherein the actual exposure parameter has a mapping relation with the ambient brightness;
the output module is used for outputting the ambient brightness to a shooting display area of the user terminal for displaying;
the color temperature display module is used for carrying out white balance processing on the initial image so as to determine color temperature data corresponding to the initial image; and outputting the color temperature data to a shooting display area of the user terminal for display.
Optionally, in the apparatus described above, the update module is specifically configured to:
dividing the initial image into a plurality of region images; carrying out average light measurement processing on each area image to determine an exposure parameter corresponding to each area image; and determining the exposure parameter corresponding to each area as the actual exposure parameter corresponding to each area.
Optionally, in the apparatus described above, the determining module is specifically configured to:
determining the environment brightness corresponding to each area according to the actual exposure parameter corresponding to each area; acquiring an initial shooting mode selected by a user in a shooting display area of a starting user terminal; determining the corresponding ambient brightness weight of each area according to the initial shooting mode; and carrying out weighted summation on the ambient brightness weight corresponding to each region and the ambient brightness corresponding to each region to obtain the ambient brightness to be output.
Optionally, in the apparatus described above, the update module is specifically configured to:
carrying out average light measurement processing on the initial image to determine average exposure parameters corresponding to a plurality of area images in the initial image; and updating a preset initial exposure parameter according to the average exposure parameter to determine a corresponding actual exposure parameter.
Optionally, in the apparatus as described above, when the updating module performs averaging metering processing on the initial image to determine the average exposure parameters corresponding to the multiple area images in the initial image, the updating module is specifically configured to:
dividing the initial image into a plurality of region images; performing photometric processing on each area image to obtain the brightness of each area image; determining average exposure parameters corresponding to a plurality of area images in the initial image according to the brightness of each area image in a preset exposure parameter channel; the preset exposure parameter channel comprises a mapping relation between a brightness range and an exposure parameter; the interval value of the brightness range in the preset exposure parameter channel is smaller than the interval value of the brightness range corresponding to the conventional exposure parameter channel; the conventional exposure parameter channel is an exposure parameter channel used for determining actual exposure parameters when an image is shot.
Optionally, in the apparatus as described above, when the updating module determines, in a preset exposure parameter channel, an average exposure parameter corresponding to a plurality of area images in an initial image according to the brightness of each area image, the updating module is specifically configured to:
determining corresponding exposure parameters in a preset exposure parameter channel according to the brightness of each region image; and calculating the average value of the exposure parameters corresponding to each area image to determine the average exposure parameters corresponding to a plurality of area images in the initial image.
Optionally, in the apparatus as described above, the actual exposure parameter includes an actual exposure time and an actual exposure compensation value;
the determining module is specifically configured to:
determining the actual exposure according to the actual exposure time and the actual exposure compensation value; determining corresponding ambient brightness from a preset brightness exposure mapping table according to the actual exposure; the preset brightness exposure mapping table stores the mapping relation between the exposure and the ambient brightness.
Optionally, in the apparatus described above, the color temperature display module is further configured to:
constructing a mapping relation between the ambient brightness and the color temperature data and the identification of the shooting mode;
the device further comprises:
the brightness proposing module is used for outputting the mark of the shooting mode corresponding to the ambient brightness and the color temperature data and the shooting proposing information proposing to be switched to the shooting mode to a shooting display area of the user terminal for displaying; when the shooting offer information is triggered by a user, the camera receives a switching instruction sent by a user terminal; the switching instruction is used to switch from a current shooting mode to the shooting mode.
Optionally, in the apparatus as described above, the brightness proposing module is further configured to:
detecting whether a current shooting mode is the same as a shooting mode corresponding to the ambient brightness and the color temperature data; and if the current shooting mode is different from the shooting modes corresponding to the ambient brightness and the color temperature data, executing the step of outputting the identification of the shooting mode corresponding to the ambient brightness and the color temperature data and shooting suggestion information for proposing to switch to the shooting mode to a shooting display area of the user terminal for displaying.
Optionally, in the apparatus described above, the color temperature display module is further configured to:
constructing a mapping relation between the ambient brightness and the color temperature data and an identifier of an image processing mode;
the device further comprises:
the color temperature proposing module is used for outputting the identification of the image processing mode corresponding to the ambient brightness and the color temperature data and proposing the image proposing information for switching to the image processing mode to a shooting display area of the user terminal for displaying; when the image proposal information is triggered by a user, the camera receives a switching instruction sent by a user terminal; the switching instruction is used for switching from a current image processing mode to the image processing mode.
Optionally, in the apparatus described above, the color temperature proposing module is further configured to:
detecting whether a current image processing mode is the same as an image processing mode corresponding to the ambient brightness and the color temperature data; and if the current image processing mode is different from the image processing mode corresponding to the ambient brightness and the color temperature data, executing the step of outputting the identifier of the image processing mode corresponding to the ambient brightness and the color temperature data and image proposal information for proposing to switch to the image processing mode to a shooting display area of the user terminal for displaying.
A third aspect of the embodiments of the present invention provides a camera, including: an image sensor and an image signal processor; the image sensor and the image signal processor are interconnected through a circuit; the image sensor is used for acquiring an initial image of a shooting area;
the image signal processor comprises a processor and a memory;
a memory stores the processor-executable instructions;
the processor is configured to perform the ambient brightness determination method of any of the first aspects.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the ambient brightness determination method according to any one of the first aspect.
A fifth aspect of the embodiments of the present invention provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the ambient brightness determination method according to any one of the first aspect.
The embodiment of the invention provides an environment brightness determination method, an environment brightness determination device, a medium and a camera, wherein the environment brightness determination method comprises the following steps: receiving a brightness detection instruction triggered when a user starts a shooting display area of a user terminal; acquiring an initial image acquired by an image sensor to a shooting area according to the brightness detection instruction; updating preset initial exposure parameters according to the initial image to generate corresponding actual exposure parameters; determining corresponding ambient brightness according to the actual exposure parameters; wherein the actual exposure parameter has a mapping relation with the ambient brightness; and outputting the ambient brightness to a shooting display area of the user terminal for display. According to the method for determining the ambient brightness, the mapping relation between the actual exposure parameters and the ambient brightness is constructed in advance, when a user starts a shooting display area of a user terminal, an initial image acquired by an image sensor for the shooting area can be obtained according to a triggered brightness detection instruction, so that the actual exposure parameters are determined according to the initial image, and the ambient brightness is determined according to the actual exposure parameters. Meanwhile, after the ambient brightness is determined, the ambient brightness can be output to a shooting display area of the user terminal for displaying. Therefore, the detection and the display of the ambient brightness are realized, and meanwhile, the cost for detecting the brightness is lower and the efficiency is higher because an illuminometer is not needed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a scene diagram of an ambient brightness determination method that can implement an embodiment of the present invention;
fig. 2 is a flowchart illustrating an ambient brightness determining method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating an ambient brightness determining method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a shooting display area of an ambient brightness determination method according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an ambient brightness determination apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an ambient brightness determination apparatus according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a camera according to a fifth embodiment of the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
For a clear understanding of the technical solutions of the present application, a detailed description of the prior art solutions is first provided. Currently, a user terminal is closely related to the life of a user, and the user terminal comprises a mobile phone, a tablet computer and other devices. In order to facilitate users to shoot favorite scenes anytime and anywhere, a user terminal is generally provided with a camera. The camera includes an image sensor for recognizing light of a photographing region and converting the light into an electric signal, thereby generating an initial image, and an image signal processor. The image signal processor performs subsequent image processing on the initial image and controls the operation of various components of the camera. The existing camera generally has the function of automatically adjusting exposure parameters according to the shooting environment, so that the problems of overexposure or underexposure can be avoided to a certain extent, and the quality of a final image is improved. However, in practical application scenarios, the automatic adjustment of the exposure parameters may also result in a generally poor or even poor quality of the generated image. Therefore, if the user needs to further improve the quality of the shot image, the ambient brightness needs to be known, so that the exposure parameters are further adjusted according to the ambient brightness, the current camera cannot measure the ambient brightness, the user needs to additionally use an illuminometer to test, the cost for measuring the brightness is high, and the efficiency is low.
Therefore, the inventor finds that the environment brightness can be determined by presetting the mapping relation between the actual exposure parameter and the environment brightness and automatically adjusting the actual exposure parameter according to the environment in the camera in research aiming at the technical problems that the brightness of the environment cannot be measured by the current camera in the prior art, a user needs to additionally use an illuminometer to test, the cost for measuring the brightness is high, and the efficiency is low. Specifically, the camera receives a brightness detection instruction triggered when a user starts a shooting display area of the user terminal, and acquires an initial image acquired by the image sensor for the shooting area according to the brightness detection instruction. And then the camera updates the preset initial exposure parameters according to the initial image to generate corresponding actual exposure parameters, so that the corresponding environment brightness is determined according to the actual exposure parameters. The actual exposure parameter and the ambient brightness have a mapping relation. Meanwhile, the camera can also output the ambient brightness to a shooting display area of the user terminal for displaying. According to the method for determining the ambient brightness, the mapping relation between the actual exposure parameters and the ambient brightness is constructed in advance, when a user starts a shooting display area of a user terminal, an initial image acquired by an image sensor for the shooting area can be obtained according to a triggered brightness detection instruction, so that the actual exposure parameters are determined according to the initial image, and the ambient brightness is determined according to the actual exposure parameters. Meanwhile, after the ambient brightness is determined, the ambient brightness can be output to a shooting display area of the user terminal for displaying. Therefore, the detection and the display of the ambient brightness are realized, and meanwhile, the cost for detecting the brightness is lower and the efficiency is higher.
The inventor proposes a technical scheme of the application based on the creative discovery.
An application scenario of the ambient brightness determination method provided by the embodiment of the present invention is described below. As shown in fig. 1, 1 is a camera, 2 is a user terminal, and 3 is a shooting display area of the user terminal. The network architecture of the application scene corresponding to the ambient brightness determination method provided by the embodiment of the invention comprises the following steps: a camera 1 and a user terminal 2. The camera 1 includes an image sensor and an image signal processor. The user generates an interface when starting the shooting display area of the user terminal as shown in the figure, the options of photos, modes a, b and the like exist at the lower part, the setting options exist at the upper part, and the middle area is the shooting display area. When receiving a brightness detection instruction triggered when a user starts a shooting display area of a user terminal, the camera 1 acquires an initial image acquired by an image sensor for the shooting area according to the brightness detection instruction. Meanwhile, the camera 1 updates a preset initial exposure parameter according to the initial image to generate a corresponding actual exposure parameter, and determines a corresponding ambient brightness according to the actual exposure parameter. The actual exposure parameter and the ambient brightness have a mapping relation. After determining the ambient brightness, the camera 1 can output the ambient brightness to a shooting display area of the user terminal so as to display the ambient brightness, and therefore the user can check the ambient brightness conveniently. Meanwhile, related proposals for switching the shooting modes can be pushed according to the ambient brightness, or the shooting modes can be automatically switched, and the user experience is further improved.
The embodiments of the present invention will be described with reference to the accompanying drawings.
Fig. 2 is a schematic flowchart of an ambient brightness determining method according to a first embodiment of the present invention, and as shown in fig. 2, in this embodiment, an execution subject of the embodiment of the present invention is an ambient brightness determining device, and the ambient brightness determining device may be integrated in a camera. The method for determining the ambient brightness provided by this embodiment includes the following steps:
step S101, receiving a brightness detection instruction triggered by a user when starting a shooting display area of a user terminal.
In the present embodiment, the camera includes an Image sensor and an Image Signal Processor (hereinafter, referred to as "Image Signal Processor" for short). Meanwhile, when the user starts the shooting display area of the user terminal, the brightness detection instruction can be automatically triggered, for example, when a shooting interface is turned on a mobile phone, the brightness detection instruction can be triggered. Meanwhile, a brightness detection instruction needing to be manually triggered can be preset, and consumption of the user terminal is reduced.
And step S102, acquiring an initial image acquired by the image sensor to the shooting area according to the brightness detection instruction.
In this embodiment, the image sensor has a plurality of phase points formed by photosensitive material, and the initial image is converted from the light signal of the shooting area by the image sensor in the camera, and has the information about the brightness of the shooting area. The phase points on the image sensor are generally distributed according to regions due to the large number of the phase points.
Step S103, updating the preset initial exposure parameter according to the initial image to generate a corresponding actual exposure parameter.
In this embodiment, the preset initial exposure parameter is a default initial exposure parameter when shooting is not performed, and can be set according to actual requirements. When shooting, the preset initial exposure parameters can be adjusted according to the shooting area, so that the method is suitable for the shooting area, and if a user continuously moves the user terminal, the adjusted actual exposure parameters can be changed at any time.
In this embodiment, the actual exposure parameter obtained after adjustment has a certain correlation with the brightness of the shooting area, when the brightness is higher, the actual exposure parameter is adjusted to be smaller, and if the brightness is lower, the actual exposure parameter is adjusted to be higher, so as to avoid the problem of overexposure or underexposure.
And step S104, determining corresponding ambient brightness according to the actual exposure parameters. The actual exposure parameter and the ambient brightness have a mapping relation.
In this embodiment, the brightness of the camera may be calibrated in a professional light box environment, and the actual exposure parameter generated after calibration has a mapping relationship with the ambient brightness. The mapping relation may be stored in the camera in the form of a mapping table. Therefore, after the actual exposure parameters are determined, the ambient brightness can be directly determined according to the mapping relation, and the efficiency of determining the ambient brightness is improved.
And step S105, outputting the ambient brightness to a shooting display area of the user terminal for displaying.
In this embodiment, the efficiency of obtaining the ambient brightness by the user can be improved by outputting the ambient brightness to the shooting display area, so that the user can further adjust the actual exposure parameters of the shooting.
The embodiment of the invention provides an environment brightness determination method, which comprises the following steps: and receiving a brightness detection instruction triggered by a user when starting a shooting display area of the user terminal. And acquiring an initial image acquired by the image sensor to the shooting area according to the brightness detection instruction. And updating the preset initial exposure parameters according to the initial image to generate corresponding actual exposure parameters. And determining the corresponding ambient brightness according to the actual exposure parameters. The actual exposure parameter and the ambient brightness have a mapping relation. And outputting the ambient brightness to a shooting display area of the user terminal for display. According to the method for determining the ambient brightness, the mapping relation between the actual exposure parameters and the ambient brightness is constructed in advance, when a user starts a shooting display area of a user terminal, an initial image acquired by an image sensor for the shooting area can be obtained according to a triggered brightness detection instruction, so that the actual exposure parameters are determined according to the initial image, and the ambient brightness is determined according to the actual exposure parameters. Meanwhile, after the ambient brightness is determined, the ambient brightness can be output to a shooting display area of the user terminal for displaying. Therefore, the detection and the display of the ambient brightness are realized, and meanwhile, the cost for detecting the brightness is lower and the efficiency is higher.
Fig. 3 is a schematic flow chart of an ambient brightness determination method according to a second embodiment of the present invention, and as shown in fig. 3, the ambient brightness determination method according to this embodiment further refines each step of the ambient brightness determination method according to the previous embodiment of the present invention. The ambient brightness determination method provided by the present embodiment includes the following steps.
Step S201, receiving a brightness detection instruction triggered by the user when starting the shooting display area of the user terminal.
In this embodiment, the implementation manner of step 201 is similar to that of step 101 in the previous embodiment of the present invention, and is not described in detail here.
And step S202, acquiring an initial image acquired by the image sensor to the shooting area according to the brightness detection instruction.
In this embodiment, the implementation manner of step 202 is similar to that of step 102 in the previous embodiment of the present invention, and is not described herein again.
In step S203, an averaging metering process is performed on the initial image to determine average exposure parameters corresponding to a plurality of area images in the initial image.
In this embodiment, the average light measurement process is a universal light measurement mode, and in this light measurement mode, the image signal processor divides the whole image captured by the camera into a plurality of blocks, and the block division may be fine to hundreds or thousands. Then the image signal processor respectively photometers the divided blocks, the aim is to enable each block to have reasonable brightness display as much as possible, the blocks cannot be too dark or too bright, data obtained by photometry of all the blocks are sorted and calculated, and final exposure parameters are obtained through algorithm synthesis.
Therefore, the average exposure parameter is an exposure parameter obtained by averaging a plurality of area images.
Optionally, in this embodiment, performing an average light metering process on the initial image to determine an average exposure parameter corresponding to a plurality of area images in the initial image includes:
the initial image is divided into a plurality of region images.
Photometric processing is performed on each area image to obtain the brightness of each area image.
And determining average exposure parameters corresponding to a plurality of area images in the initial image according to the brightness of each area image in a preset exposure parameter channel. The preset exposure parameter channel comprises a mapping relation between a brightness range and an exposure parameter. The interval value of the brightness range in the preset exposure parameter channel is smaller than the interval value of the brightness range corresponding to the conventional exposure parameter channel. The conventional exposure parameter channel is an exposure parameter channel used for determining actual exposure parameters when an image is taken.
In this embodiment, the preset exposure parameter channel is different from the exposure parameter channel used for shooting, and when the preset exposure parameter channel is called, photometric processing and exposure parameter selection during normal shooting are not affected. Different brightness ranges in the preset exposure parameter channel correspond to different exposure parameters, for example, the brightness ranges are a and b, and correspond to the exposure parameters a and b, respectively.
Meanwhile, the interval value of the brightness range in the preset exposure parameter channel is smaller than the interval value of the brightness range corresponding to the conventional exposure parameter channel. It is assumed that the interval value of the luminance range in the preset exposure parameter channel is 50 luminance units, while the interval value of the luminance range corresponding to the conventional exposure parameter channel may be 100 luminance units. Assuming that the overall brightness range in the preset exposure parameter channel is 50-600 brightness units, the overall brightness range of the conventional exposure parameter channel is also 50-600 brightness units. The preset exposure parameter channel can be divided into 12 brightness range intervals corresponding to 12 exposure parameters, while the conventional exposure parameter channel can be divided into 6 brightness range intervals corresponding to 6 exposure parameters. Therefore, the preset exposure parameter channel in this embodiment can establish a more accurate mapping relationship between the brightness range and the exposure parameter, and the more accurate exposure parameter can be determined through the mapping relationship.
Optionally, in this embodiment, determining, in a preset exposure parameter channel, an average exposure parameter corresponding to a plurality of area images in an initial image according to the brightness of each area image includes:
and determining corresponding exposure parameters according to the brightness of each region image in a preset exposure parameter channel.
And calculating the mean value of the exposure parameters corresponding to the area images to determine the average exposure parameters corresponding to the area images in the initial image.
In this embodiment, the calculated average exposure parameter is used as the actual exposure parameter.
Step S204, updating the preset initial exposure parameter according to the average exposure parameter to determine the corresponding actual exposure parameter.
In this embodiment, after the preset initial exposure parameter is updated by using the average exposure parameter, the updated exposure parameter is the actual exposure parameter.
In step S205, the actual exposure amount is determined based on the actual exposure time and the actual exposure compensation value. The actual exposure parameters include an actual exposure time and an actual exposure compensation value.
In this embodiment, the actual exposure parameter includes an actual exposure time and an actual exposure compensation value, and the actual exposure time is related to the shutter time.
In step S206, the corresponding ambient brightness is determined from the preset brightness exposure mapping table according to the actual exposure. The preset brightness exposure mapping table stores the mapping relation between the exposure and the ambient brightness.
In this embodiment, a mapping relationship between the exposure amount and the ambient brightness is constructed in advance, and the mapping relationship may be stored in the camera in the form of a brightness exposure mapping table. The brightness exposure mapping table is as follows:
brightness exposure mapping table
Figure DEST_PATH_IMAGE001
Wherein Exp is the actual exposure time, Gain is the actual exposure compensation value, the actual exposure is abbreviated in the table, and the exposure is adopted to represent the actual exposure.
And step S207, outputting the ambient brightness to a shooting display area of the user terminal for display.
In this embodiment, the implementation manner of step 207 is similar to that of step 105 in the previous embodiment of the present invention, and is not described in detail here.
Step S208, performing white balance processing on the initial image to determine color temperature data corresponding to the initial image.
In this embodiment, the white balance processing is used to reduce the influence of the environment on the color of the image, so that the image can display the color of the object or the environment more truly. Thus, color temperature data corresponding to the initial image can be determined after the white balance processing.
And step S209, outputting the color temperature data to a shooting display area of the user terminal for display.
In this embodiment, outputting the color temperature data to the shooting display area can improve the efficiency of the user to acquire the color temperature data, thereby facilitating the user to further adjust the shooting image processing mode, such as setting a filter.
Optionally, in this embodiment, updating the preset initial exposure parameter according to the initial image to generate the corresponding actual exposure parameter includes:
the initial image is divided into a plurality of region images.
And carrying out average light metering processing on each area image to determine the exposure parameter corresponding to each area image.
And determining the exposure parameter corresponding to each area as the actual exposure parameter corresponding to each area.
Specifically, determining the corresponding ambient brightness according to the actual exposure parameter includes:
and determining the ambient brightness corresponding to each area according to the actual exposure parameter corresponding to each area.
An initial shooting mode selected by a user in a shooting display area of a starting user terminal is acquired.
And determining the corresponding ambient brightness weight of each area according to the initial shooting mode.
And carrying out weighted summation on the ambient brightness weight corresponding to each region and the ambient brightness corresponding to each region to obtain the ambient brightness to be output.
Through the difference of the initial shooting mode, the environment brightness which is more matched with the initial shooting mode and has higher accuracy can be determined.
Optionally, in this embodiment, before outputting the color temperature data to a shooting display area of the user terminal for displaying, the method further includes:
and constructing a mapping relation between the ambient brightness and color temperature data and the identification of the shooting mode.
Outputting the color temperature data to a shooting display area of the user terminal for displaying, and further comprising:
and outputting the mark of the shooting mode corresponding to the ambient brightness and color temperature data and shooting suggestion information for suggesting switching to the shooting mode to a shooting display area of the user terminal for displaying. When the shooting offer information is triggered by a user, the camera receives a switching instruction sent by the user terminal. The switching instruction is used to switch from a current shooting mode to the shooting mode.
In this embodiment, the indication of the shooting mode may be expressed in the form of characters or may be expressed by using icons. As shown in fig. 4, the indication of the photographing mode, i.e., mode a in the figure, and the indication of the image processing mode, i.e., mode b in the figure, which may be a filter mode, are simultaneously displayed in fig. 4. The current luminance and the current color temperature are also shown, the luminance being in Lux and the color temperature being in K kelvin. At the same time, shooting offer information and picture offer information are also provided.
The shooting mode comprises a night scene mode, a portrait mode, a food mode and the like, and the shooting mode has an association relation with the ambient brightness and the color temperature data. The shooting offer information may offer to use a shooting mode while adding a hint whether to directly switch to the corresponding mode, as shown in fig. 4. When the user clicks the shooting offer information, the user terminal sends a switching instruction to the camera, so that the camera switches the current shooting mode to the offered shooting mode.
Optionally, in this embodiment, before outputting the identifier of the shooting mode corresponding to the ambient brightness and color temperature data and the shooting offer information proposing to switch to the shooting mode to a shooting display area of the user terminal for displaying, the method further includes:
and detecting whether the current shooting mode is the same as the shooting mode corresponding to the ambient brightness and color temperature data.
And if the current shooting mode is different from the shooting mode corresponding to the ambient brightness and color temperature data, outputting the identification of the shooting mode corresponding to the ambient brightness and color temperature data and shooting suggestion information proposing to be switched to the shooting mode to a shooting display area of the user terminal for displaying.
In this embodiment, whether the current shooting mode is the same as the shooting mode corresponding to the ambient brightness and color temperature data may be detected, so as to avoid performing a misoperation when the shooting mode prompted by the shooting prompt information is the same as the current shooting mode.
Optionally, in this embodiment, before outputting the color temperature data to a shooting display area of the user terminal for displaying, the method further includes:
and constructing a mapping relation between the ambient brightness and color temperature data and the identification of the image processing mode.
Outputting the color temperature data to a shooting display area of the user terminal for displaying, and further comprising:
and outputting the identification of the image processing mode corresponding to the ambient brightness and color temperature data and image proposal information for proposing to switch to the image processing mode to a shooting display area of the user terminal for displaying. When the image proposal information is triggered by a user, the camera receives a switching instruction sent by the user terminal. The switching instruction is used for switching from a current image processing mode to the image processing mode.
In this embodiment, as in the above-described embodiment of the image capturing mode, the indication of the image processing mode may be expressed in the form of characters or may be expressed by using icons. As shown in fig. 4, the identification of the photographing mode, i.e., mode a in the figure, and the identification of the image processing mode, i.e., mode b in the figure, are displayed simultaneously in fig. 4. At the same time, shooting offer information and picture offer information are also provided.
The image processing mode includes a filter and the like, and the filter includes a grayscale, warm and the like mode. The image processing mode has an association relationship with both ambient brightness and color temperature data. The picture proposal information may propose to use the picture processing mode while adding a hint whether to switch directly to the corresponding mode, as shown in fig. 4. When the user clicks the image proposal information, the user terminal sends a switching instruction to the camera, so that the camera switches the current image processing mode to the proposed image processing mode.
Optionally, in this embodiment, before outputting the identifier of the image processing mode corresponding to the ambient brightness and color temperature data and the image suggestion information proposing to switch to the image processing mode to the shooting display area of the user terminal, the method further includes:
and detecting whether the current image processing mode is the same as the image processing mode corresponding to the ambient brightness and color temperature data.
And if the current image processing mode is different from the image processing mode corresponding to the ambient brightness and color temperature data, outputting the identification of the image processing mode corresponding to the ambient brightness and color temperature data and image proposal information for proposing switching to the image processing mode to a shooting display area of the user terminal for displaying.
In this embodiment, it may be detected whether the current image processing mode is the same as the image processing mode corresponding to the ambient brightness and color temperature data, so as to avoid performing a false operation when the image processing mode prompted by the image prompt information is the same as the current image processing mode.
According to the ambient brightness determination method provided by the embodiment of the invention, the detection of the color temperature data, the display of the shooting proposal information and the image proposal information in the shooting display area of the user terminal are added, so that the display of the ambient brightness and the color temperature data and the mode proposal function during the image shooting are provided, and the efficiency of the user during the shooting is improved.
Fig. 5 is a schematic structural diagram of an ambient brightness determining apparatus according to a third embodiment of the present invention, as shown in fig. 5, in this embodiment, the apparatus is located in a camera, and the ambient brightness determining apparatus 300 includes:
the receiving module 301 is configured to receive a brightness detection instruction triggered when a user starts a shooting display area of the user terminal.
The obtaining module 302 is configured to obtain an initial image, which is acquired by the image sensor, of the shooting area according to the brightness detection instruction.
The updating module 303 is configured to update a preset initial exposure parameter according to the initial image to generate a corresponding actual exposure parameter.
And the determining module 304 is configured to determine the corresponding ambient brightness according to the actual exposure parameter. The actual exposure parameter and the ambient brightness have a mapping relation.
And an output module 305, configured to output the ambient brightness to a shooting display area of the user terminal for display.
And the color temperature display module 306 is configured to perform white balance processing on the initial image to determine color temperature data corresponding to the initial image. And outputting the color temperature data to a shooting display area of the user terminal for display.
The ambient brightness determination apparatus provided in this embodiment may implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect of the apparatus are similar to those of the method embodiment shown in fig. 2, which are not described in detail herein.
Meanwhile, fig. 6 is a schematic structural diagram of an ambient brightness determination apparatus according to a fourth embodiment of the present invention, and as shown in fig. 6, another embodiment of the ambient brightness determination apparatus according to the present invention further refines the ambient brightness determination apparatus on the basis of the ambient brightness determination apparatus according to the previous embodiment, and the ambient brightness determination apparatus of the present embodiment is only for distinguishing from the ambient brightness determination apparatus of the previous embodiment, and the ambient brightness determination apparatus 400 is taken as a name of the ambient brightness determination apparatus of the present embodiment, which is described herein.
Optionally, in this embodiment, the updating module 303 is specifically configured to:
and carrying out average light metering processing on the initial image to determine average exposure parameters corresponding to a plurality of area images in the initial image. And updating the preset initial exposure parameters according to the average exposure parameters to determine the corresponding actual exposure parameters.
Optionally, in this embodiment, the updating module 303, when performing average light measurement processing on the initial image to determine the average exposure parameters corresponding to the multiple area images in the initial image, is specifically configured to:
the initial image is divided into a plurality of region images. Photometric processing is performed on each area image to obtain the brightness of each area image. And determining average exposure parameters corresponding to a plurality of area images in the initial image according to the brightness of each area image in a preset exposure parameter channel. The preset exposure parameter channel comprises a mapping relation between a brightness range and an exposure parameter. The interval value of the brightness range in the preset exposure parameter channel is smaller than the interval value of the brightness range corresponding to the conventional exposure parameter channel. The conventional exposure parameter channel is an exposure parameter channel used for determining actual exposure parameters when an image is taken.
Optionally, in this embodiment, when determining, in the preset exposure parameter channel, the average exposure parameter corresponding to the multiple area images in the initial image according to the brightness of each area image, the updating module 303 is specifically configured to:
and determining corresponding exposure parameters according to the brightness of each region image in a preset exposure parameter channel. And calculating the mean value of the exposure parameters corresponding to the area images to determine the average exposure parameters corresponding to the area images in the initial image.
Optionally, in this embodiment, the actual exposure parameter includes an actual exposure time and an actual exposure compensation value.
The determining module 304 is specifically configured to:
and determining the actual exposure according to the actual exposure time and the actual exposure compensation value. And determining the corresponding ambient brightness from a preset brightness exposure mapping table according to the actual exposure. The preset brightness exposure mapping table stores the mapping relation between the exposure and the ambient brightness.
Optionally, in this embodiment, the color temperature display module 306 is further configured to:
and constructing a mapping relation between the ambient brightness and color temperature data and the identification of the shooting mode.
The first ambient brightness determination device 400 further includes:
a brightness proposing module 402, configured to output the identifier of the shooting mode corresponding to the ambient brightness and color temperature data and shooting proposing information proposing switching to the shooting mode to a shooting display area of the user terminal for displaying. When the shooting offer information is triggered by a user, the camera receives a switching instruction sent by the user terminal. The switching instruction is used to switch from a current shooting mode to the shooting mode.
Optionally, in this embodiment, the brightness proposing module 402 is further configured to:
and detecting whether the current shooting mode is the same as the shooting mode corresponding to the ambient brightness and color temperature data. And if the current shooting mode is different from the shooting mode corresponding to the ambient brightness and color temperature data, outputting the identification of the shooting mode corresponding to the ambient brightness and color temperature data and shooting suggestion information proposing to be switched to the shooting mode to a shooting display area of the user terminal for displaying.
Optionally, in this embodiment, the color temperature display module 306 is further configured to:
and constructing a mapping relation between the ambient brightness and color temperature data and the identification of the image processing mode.
The first ambient brightness determination device 400 further includes:
a color temperature proposing module 403, configured to output, to a shooting display area of the user terminal, an identifier of an image processing mode corresponding to the ambient brightness and color temperature data and image proposing information proposing switching to the image processing mode for display. When the image proposal information is triggered by a user, the camera receives a switching instruction sent by the user terminal. The switching instruction is used for switching from a current image processing mode to the image processing mode.
Optionally, in this embodiment, the color temperature proposing module 403 is further configured to:
and detecting whether the current image processing mode is the same as the image processing mode corresponding to the ambient brightness and color temperature data. And if the current image processing mode is different from the image processing mode corresponding to the ambient brightness and color temperature data, outputting the identification of the image processing mode corresponding to the ambient brightness and color temperature data and image proposal information for proposing switching to the image processing mode to a shooting display area of the user terminal for displaying.
The ambient brightness determination apparatus provided in this embodiment may implement the technical solutions of the method embodiments shown in fig. 2 to fig. 4, and the implementation principles and technical effects thereof are similar to those of the method embodiments shown in fig. 2 to fig. 4, and are not described in detail herein.
As shown in fig. 7, fig. 7 is a schematic structural diagram of a camera according to a fifth embodiment of the present invention. The image signal processor in the camera is intended for various forms of processors. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the camera includes: an image sensor 601, a memory 602 within the image signal processor, and a processor 603. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executed within the camera.
The image sensor 601 converts an optical signal of a shooting area into an electric signal to generate an initial image.
The memory 602 is a non-transitory computer readable storage medium provided by the present invention. The non-transitory computer-readable storage medium of the present invention stores computer instructions for causing a computer to execute the ambient brightness determination method provided by the present invention.
The memory 602, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the ambient brightness determination method in the embodiment of the present invention (for example, the receiving module 301, the obtaining module 302, the updating module 303, the determining module 304, the outputting module 305, and the color temperature display module 306 shown in fig. 5). The processor 603 executes various functional applications and data processing, i.e., implements the ambient brightness determination method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 602.
The present embodiment also provides a computer program product comprising a computer program which, when executed by a processor, implements the ambient brightness determination method as in the first to second embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the embodiments of the invention following, in general, the principles of the embodiments of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the embodiments of the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of embodiments of the invention being indicated by the following claims.
It is to be understood that the embodiments of the present invention are not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of embodiments of the invention is limited only by the appended claims.

Claims (13)

1. The method for determining the ambient brightness is applied to a camera of a user terminal, and comprises the following steps:
receiving a brightness detection instruction triggered when a user starts a shooting display area of a user terminal;
acquiring an initial image acquired by an image sensor to a shooting area according to the brightness detection instruction;
updating preset initial exposure parameters according to the initial image to generate corresponding actual exposure parameters;
determining corresponding ambient brightness according to the actual exposure parameters; wherein the actual exposure parameter has a mapping relation with the ambient brightness;
outputting the ambient brightness to a shooting display area of a user terminal for display;
performing white balance processing on the initial image to determine color temperature data corresponding to the initial image;
outputting the color temperature data to a shooting display area of the user terminal for display;
the outputting the color temperature data to a shooting display area of the user terminal for displaying further comprises:
constructing a mapping relation between the ambient brightness and the color temperature data and the identification of the shooting mode;
the outputting the color temperature data to a shooting display area of the user terminal for displaying further comprises:
outputting the mark of the shooting mode corresponding to the ambient brightness and the color temperature data and shooting suggestion information for proposing to switch to the shooting mode to a shooting display area of the user terminal for displaying; when the shooting offer information is triggered by a user, the camera receives a switching instruction sent by a user terminal; the switching instruction is used to switch from a current shooting mode to the shooting mode.
2. The method according to claim 1, wherein the updating the preset initial exposure parameters according to the initial image to generate corresponding actual exposure parameters comprises:
dividing the initial image into a plurality of region images;
carrying out average light measurement processing on each area image to determine an exposure parameter corresponding to each area image;
and determining the exposure parameter corresponding to each area as the actual exposure parameter corresponding to each area.
3. The method of claim 1, wherein determining the corresponding ambient brightness from the actual exposure parameters comprises:
determining the environment brightness corresponding to each area according to the actual exposure parameter corresponding to each area;
acquiring an initial shooting mode selected by a user in a shooting display area of a starting user terminal;
determining the corresponding ambient brightness weight of each area according to the initial shooting mode;
and carrying out weighted summation on the ambient brightness weight corresponding to each region and the ambient brightness corresponding to each region to obtain the ambient brightness to be output.
4. The method according to claim 1, wherein the updating the preset initial exposure parameters according to the initial image to generate corresponding actual exposure parameters comprises:
carrying out average light measurement processing on the initial image to determine average exposure parameters corresponding to a plurality of area images in the initial image;
and updating a preset initial exposure parameter according to the average exposure parameter to determine a corresponding actual exposure parameter.
5. The method according to claim 4, wherein the averaging and light-measuring processing on the initial image to determine average exposure parameters corresponding to a plurality of area images in the initial image comprises:
dividing the initial image into a plurality of region images;
performing photometric processing on each area image to obtain the brightness of each area image;
determining average exposure parameters corresponding to a plurality of area images in the initial image according to the brightness of each area image in a preset exposure parameter channel; the preset exposure parameter channel comprises a mapping relation between a brightness range and an exposure parameter; the interval value of the brightness range in the preset exposure parameter channel is smaller than the interval value of the brightness range corresponding to the conventional exposure parameter channel; the conventional exposure parameter channel is an exposure parameter channel used for determining actual exposure parameters when an image is shot.
6. The method according to claim 5, wherein the determining, in a preset exposure parameter channel, an average exposure parameter corresponding to a plurality of region images in an initial image according to the brightness of each region image comprises:
determining corresponding exposure parameters in a preset exposure parameter channel according to the brightness of each region image;
and calculating the average value of the exposure parameters corresponding to each area image to determine the average exposure parameters corresponding to a plurality of area images in the initial image.
7. The method of claim 4, wherein the actual exposure parameters include an actual exposure time and an actual exposure compensation value;
the determining the corresponding ambient brightness according to the actual exposure parameter includes:
determining the actual exposure according to the actual exposure time and the actual exposure compensation value;
determining corresponding ambient brightness from a preset brightness exposure mapping table according to the actual exposure; the preset brightness exposure mapping table stores the mapping relation between the exposure and the ambient brightness.
8. The method of claim 1, wherein before outputting the indication of the shooting mode corresponding to the ambient brightness and the color temperature data and the shooting suggestion information suggesting switching to the shooting mode to a shooting display area of the user terminal for displaying, further comprising:
detecting whether a current shooting mode is the same as a shooting mode corresponding to the ambient brightness and the color temperature data;
and if the current shooting mode is different from the shooting modes corresponding to the ambient brightness and the color temperature data, executing the step of outputting the identification of the shooting mode corresponding to the ambient brightness and the color temperature data and shooting suggestion information for proposing to switch to the shooting mode to a shooting display area of the user terminal for displaying.
9. The method of claim 1, wherein before outputting the color temperature data to a camera display area of the user terminal for display, further comprising:
constructing a mapping relation between the ambient brightness and the color temperature data and an identifier of an image processing mode;
the outputting the color temperature data to a shooting display area of the user terminal for displaying further comprises:
outputting the identifier of the image processing mode corresponding to the ambient brightness and the color temperature data and image proposal information for proposing to switch to the image processing mode to a shooting display area of the user terminal for displaying; when the image proposal information is triggered by a user, the camera receives a switching instruction sent by a user terminal; the switching instruction is used for switching from a current image processing mode to the image processing mode.
10. The method of claim 9, wherein before outputting the image suggestion information indicating the image processing mode corresponding to the ambient brightness and the color temperature data and suggesting switching to the image processing mode to the shooting display area of the user terminal, the method further comprises:
detecting whether a current image processing mode is the same as an image processing mode corresponding to the ambient brightness and the color temperature data;
and if the current image processing mode is different from the image processing mode corresponding to the ambient brightness and the color temperature data, executing the step of outputting the identifier of the image processing mode corresponding to the ambient brightness and the color temperature data and image proposal information for proposing to switch to the image processing mode to a shooting display area of the user terminal for displaying.
11. An ambient brightness determination apparatus, characterized by a camera located at a user terminal, the apparatus comprising:
the receiving module is used for receiving a brightness detection instruction triggered when a user starts a shooting display area of the user terminal;
the acquisition module is used for acquiring an initial image acquired by the image sensor to a shooting area according to the brightness detection instruction;
the updating module is used for updating preset initial exposure parameters according to the initial image so as to generate corresponding actual exposure parameters;
the determining module is used for determining corresponding environment brightness according to the actual exposure parameters; wherein the actual exposure parameter has a mapping relation with the ambient brightness;
the output module is used for outputting the ambient brightness to a shooting display area of the user terminal for displaying;
the color temperature display module is used for carrying out white balance processing on the initial image so as to determine color temperature data corresponding to the initial image; outputting the color temperature data to a shooting display area of the user terminal for display;
the color temperature display module is further configured to:
constructing a mapping relation between the ambient brightness and the color temperature data and the identification of the shooting mode;
the device further comprises:
the brightness proposing module is used for outputting the mark of the shooting mode corresponding to the ambient brightness and the color temperature data and the shooting proposing information proposing to be switched to the shooting mode to a shooting display area of the user terminal for displaying; when the shooting offer information is triggered by a user, the camera receives a switching instruction sent by a user terminal; the switching instruction is used to switch from a current shooting mode to the shooting mode.
12. A camera, comprising: an image sensor and an image signal processor; the image sensor and the image signal processor are interconnected through a circuit; the image sensor is used for acquiring an initial image of a shooting area;
the image signal processor comprises a processor and a memory;
a memory stores the processor-executable instructions;
the processor is configured to perform the ambient brightness determination method of any one of claims 1 to 10.
13. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the ambient brightness determination method according to any one of claims 1 to 10.
CN202111110000.3A 2021-09-23 2021-09-23 Ambient brightness determination method and device, medium and camera Active CN113556477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111110000.3A CN113556477B (en) 2021-09-23 2021-09-23 Ambient brightness determination method and device, medium and camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111110000.3A CN113556477B (en) 2021-09-23 2021-09-23 Ambient brightness determination method and device, medium and camera

Publications (2)

Publication Number Publication Date
CN113556477A CN113556477A (en) 2021-10-26
CN113556477B true CN113556477B (en) 2021-12-14

Family

ID=78106493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111110000.3A Active CN113556477B (en) 2021-09-23 2021-09-23 Ambient brightness determination method and device, medium and camera

Country Status (1)

Country Link
CN (1) CN113556477B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125316B (en) * 2021-11-27 2024-04-05 深圳市天启时代科技有限公司 Remote image processing method and system
CN116095497B (en) * 2022-06-29 2023-10-20 荣耀终端有限公司 Exposure control method, device and terminal equipment
CN115002357B (en) * 2022-07-27 2022-11-18 联宝(合肥)电子科技有限公司 Optical signal processing method, electronic device, and storage medium
CN116489517B (en) * 2023-06-20 2023-09-12 深圳比特微电子科技有限公司 Method, device, equipment and medium for starting image pickup equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012222407A (en) * 2011-04-04 2012-11-12 Nikon Corp Imaging apparatus
CN103096096A (en) * 2011-11-07 2013-05-08 三星电子株式会社 Digital photographing apparatus
CN104113744A (en) * 2013-04-18 2014-10-22 深圳中兴力维技术有限公司 All-weather colour camera white balance processing method and device
CN107454342A (en) * 2017-08-30 2017-12-08 努比亚技术有限公司 A kind of control method, mobile terminal and computer-readable recording medium
CN107734225A (en) * 2017-10-24 2018-02-23 维沃移动通信有限公司 A kind of image pickup method and device
CN110351490A (en) * 2018-04-04 2019-10-18 杭州海康威视数字技术股份有限公司 Exposure method, device and picture pick-up device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5116397B2 (en) * 2007-08-06 2013-01-09 キヤノン株式会社 Imaging apparatus and control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012222407A (en) * 2011-04-04 2012-11-12 Nikon Corp Imaging apparatus
CN103096096A (en) * 2011-11-07 2013-05-08 三星电子株式会社 Digital photographing apparatus
CN104113744A (en) * 2013-04-18 2014-10-22 深圳中兴力维技术有限公司 All-weather colour camera white balance processing method and device
CN107454342A (en) * 2017-08-30 2017-12-08 努比亚技术有限公司 A kind of control method, mobile terminal and computer-readable recording medium
CN107734225A (en) * 2017-10-24 2018-02-23 维沃移动通信有限公司 A kind of image pickup method and device
CN110351490A (en) * 2018-04-04 2019-10-18 杭州海康威视数字技术股份有限公司 Exposure method, device and picture pick-up device

Also Published As

Publication number Publication date
CN113556477A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN113556477B (en) Ambient brightness determination method and device, medium and camera
AU2019326496B2 (en) Method for capturing images at night, apparatus, electronic device, and storage medium
CN108337445B (en) Photographing method, related device and computer storage medium
US8248485B2 (en) Imaging apparatus and imaging method
CN109218627B (en) Image processing method, image processing device, electronic equipment and storage medium
CN109862269B (en) Image acquisition method and device, electronic equipment and computer readable storage medium
US9081257B2 (en) Imaging apparatus and lighting control method
CN106791451B (en) Photographing method of intelligent terminal
CN110708463B (en) Focusing method, focusing device, storage medium and electronic equipment
EP3249462B1 (en) Flash unit and emitted light amount control method
US11838648B2 (en) Image processing device, imaging apparatus, image processing method, and program for determining a condition for high dynamic range processing
CN109788206B (en) Photometry method, photometry device, photographing apparatus, and storage medium
CN111492653B (en) Method and device for quickly adjusting white balance of camera and computer readable storage medium
JP2015031743A (en) Exposure control device, control method for the same, and control program, and imaging device
CN111918047A (en) Photographing control method and device, storage medium and electronic equipment
CN108337448B (en) High dynamic range image acquisition method and device, terminal equipment and storage medium
JP7455656B2 (en) Image processing device, image processing method, and program
CN114339028A (en) Photographing method, electronic device and computer-readable storage medium
CN109379521B (en) Camera calibration method and device, computer equipment and storage medium
JP2013040997A (en) Exposure calculation unit and camera
CN110809119A (en) Photographing method, photographing apparatus, and computer-readable storage medium
JP2020205560A (en) Imaging apparatus and control method of the same
CN114697629B (en) White balance processing method and device, storage medium and terminal equipment
CN111630839A (en) Image processing method and device
CN116744135B (en) Dynamic range measuring method and related 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
GR01 Patent grant
GR01 Patent grant