CN106773453B - Camera exposure method and device and mobile terminal - Google Patents

Camera exposure method and device and mobile terminal Download PDF

Info

Publication number
CN106773453B
CN106773453B CN201710047281.XA CN201710047281A CN106773453B CN 106773453 B CN106773453 B CN 106773453B CN 201710047281 A CN201710047281 A CN 201710047281A CN 106773453 B CN106773453 B CN 106773453B
Authority
CN
China
Prior art keywords
brightness
photosensitive
picture
units
average
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
CN201710047281.XA
Other languages
Chinese (zh)
Other versions
CN106773453A (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.)
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 CN201710047281.XA priority Critical patent/CN106773453B/en
Publication of CN106773453A publication Critical patent/CN106773453A/en
Application granted granted Critical
Publication of CN106773453B publication Critical patent/CN106773453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B7/00Control of exposure by setting shutters, diaphragms or filters, separately or conjointly
    • G03B7/08Control effected solely on the basis of the response, to the intensity of the light received by the camera, of a built-in light-sensitive device
    • G03B7/099Arrangement of photoelectric elements in or on the camera
    • G03B7/0993Arrangement of photoelectric elements in or on the camera in the camera

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)
  • Exposure Control For Cameras (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a method for exposing a camera, which comprises the following steps: dividing a picture input by a camera sensor into a plurality of photosensitive units according to a preset mode; calculating the first brightness of the photosensitive unit with the highest brightness in the picture; calculating first average brightness of all light sensing units in the picture; obtaining exposure brightness through the first brightness of the photosensitive unit with the highest brightness and the first average brightness of all the photosensitive units in the picture; and processing and displaying the picture input by the camera sensor according to the exposure brightness. The invention also provides a camera exposure device and a mobile terminal using the method, and based on the technical scheme, the embodiment of the invention can solve the technical problem that the central centralized highlight picture is not clear in shooting.

Description

Camera exposure method and device and mobile terminal
Technical Field
The invention relates to the technical field of photography, in particular to a camera exposure method, a camera exposure device and a mobile terminal.
Background
At present, multimedia communication services are developed more and more, and it is also more and more common to transmit and receive image and audio signals or text information through a mobile terminal. A mobile terminal with a built-in camera refers to a mobile terminal with a built-in camera on the one hand and a small digital camera connectable thereto on the other hand. In recent years, in order to improve the image quality of a mobile terminal, it is necessary to adjust the light of a subject, and when the light of the subject is insufficient, a captured image may contain noise, which causes a decrease in the brightness and color sensation of the image, and therefore, the ability to adjust the exposure to be appropriate for the corresponding illumination condition is required.
But in some environments where lighting conditions are complex, the ability to adjust exposure presents serious disadvantages. For example, when shooting a PPT presentation, the PPT background is overexposed due to too dark scenes, and the PPT background is represented as a white picture of the entire PPT presentation, so that the content in the PPT presentation cannot be recognized.
Disclosure of Invention
One of the objectives of the present invention is to provide a method, an apparatus and a mobile terminal for camera exposure, which solve the technical problem of the prior art that the shot is not clear when the shot is centered on a highlight picture. The technical effects that can be produced by the preferred technical scheme in the technical schemes provided by the invention are described in detail in the following.
In order to achieve the purpose, the invention provides the following technical scheme:
a method of camera exposure, the method comprising:
dividing a picture input by a camera sensor into a plurality of photosensitive units according to a preset mode;
calculating the first brightness of the photosensitive unit with the highest brightness in the picture;
calculating first average brightness of all light sensing units in the picture;
obtaining exposure brightness through the first brightness of the photosensitive unit with the highest brightness and the first average brightness of all the photosensitive units in the picture;
and processing and displaying the picture input by the camera sensor according to the exposure brightness.
Preferably, the calculation formula for obtaining the exposure brightness is: exposure luminance ═ L × W + C × (1-W);
wherein, L is the first brightness, C is the first average brightness, and W is the adjustable coefficient.
Preferably, the calculating the first brightness of the photosensitive unit with the highest brightness in the picture includes:
defining every adjacent N photosensitive units as a photosensitive area;
calculating the average brightness of the N photosensitive units in each photosensitive area, wherein the average brightness is a second average brightness;
and calculating the brightness of the photosensitive unit with the highest brightness in the N photosensitive units in the photosensitive area with the highest second average brightness as the first brightness.
Preferably, the calculating a first average brightness of all the light-sensitive units in the picture includes:
defining every adjacent N photosensitive units as a photosensitive area;
calculating the average brightness of the N photosensitive units in each photosensitive area, wherein the average brightness is a second average brightness;
and calculating the average value of the second average brightness of each photosensitive area, wherein the average value is the first average brightness.
Preferably, the value of N is not less than 4.
Preferably, before the calculating the first brightness of the photosensitive unit with the highest brightness in the picture, the method further includes:
and judging whether the picture input by the camera sensor is a central centralized highlight picture or not, and executing the subsequent steps if the picture input by the camera sensor is the central centralized highlight picture.
Preferably, the determining whether the picture is a central highlight picture includes:
dividing the picture into a central photosensitive area, a central epitaxial photosensitive area and peripheral photosensitive areas according to the division result of the plurality of photosensitive units for dividing the picture, wherein the central photosensitive area consists of the plurality of photosensitive units in the central position in the picture, the central epitaxial photosensitive area consists of the plurality of photosensitive units in the edge of the central photosensitive area, and the peripheral photosensitive area consists of the plurality of photosensitive units in the peripheral position in the picture;
calculating the number of photosensitive units with high brightness in the picture;
calculating the average brightness of the photosensitive units of the peripheral photosensitive areas to obtain a third average brightness;
calculating the average brightness of the photosensitive units in the central photosensitive area to obtain a fourth average brightness;
calculating the number of photosensitive units of the central photosensitive area and the central epitaxial photosensitive area;
and when the following conditions are met, determining that the picture is shot as a central concentrated highlight picture:
a ratio of the third average luminance to the fourth average luminance is not greater than a first threshold;
the ratio of the number of the photosensitive units of the central photosensitive area and the central epitaxial photosensitive area to the number of the photosensitive units with the highest brightness in the picture is not less than a second threshold value;
the ratio of the number of the photosensitive units with high brightness in the picture to the number of all the photosensitive units in the picture is between a third threshold and a fourth threshold.
Preferably, calculating the number of light-sensing units with high brightness in the picture comprises:
detecting the brightness of each photosensitive unit after the image is subjected to region division in real time;
selecting the first brightness of the photosensitive unit with the highest brightness as the initial highest brightness;
selecting the brightness of the photosensitive unit with the lowest brightness as the initial lowest brightness;
selecting a middle value of the initial highest brightness and the initial lowest brightness as an initial middle brightness;
clustering all the light sensing units in the picture according to the initial highest brightness, the initial lowest brightness and the initial middle brightness by using a clustering algorithm to obtain an average value of the light sensing units with high brightness, an average value of the light sensing units with middle brightness and an average value of the light sensing units with low brightness;
clustering again and performing iterative computation according to the average values, and obtaining the average value of the photosensitive units with high final brightness, the average value of the photosensitive units with medium final brightness and the average value of the photosensitive units with low final brightness after the average values are not changed;
and clustering according to the average value of the photosensitive units with high final brightness, wherein the obtained photosensitive units are the photosensitive units with high brightness in the picture.
Preferably, the range of the first threshold value is 0.95-1; the range of the second threshold value is 1.7-2; the range of the third threshold value is 0.45-0.55; the range of the fourth threshold is 0.8-0.9.
Preferably, the condition for determining whether the picture is a central highlight picture further includes:
and detecting the complexity of the brightness of the photosensitive units of the peripheral photosensitive areas.
Preferably, the method further comprises the steps of calculating the number of the photosensitive units of the peripheral photosensitive areas;
the detection calculation formula of the complexity is as follows:
Figure BDA0001216612960000041
wherein σ is complexity of brightness of the photosensitive units in the peripheral photosensitive area, C represents the first average brightness, Xi represents brightness of each photosensitive unit in the peripheral photosensitive area, and N represents the number of photosensitive units in the peripheral photosensitive area;
and when the sigma is not greater than a fifth threshold value, judging that the picture is a central high-brightness picture.
The present invention also provides an apparatus for exposing a camera, the apparatus comprising:
a camera sensor for capturing a picture;
the area dividing unit is used for dividing a picture input by the camera sensor into a plurality of photosensitive units according to a preset mode;
the brightness acquisition unit is used for acquiring the brightness of the photosensitive unit in the picture;
the first brightness calculation unit is used for calculating the first brightness of the photosensitive unit with the highest brightness in the picture;
the second brightness calculation unit is used for calculating the first average brightness of all the light sensing units in the picture;
an exposure brightness adjusting unit for adjusting the exposure brightness by an adjusting coefficient;
and the third brightness calculation unit is used for obtaining exposure brightness, and the exposure brightness is obtained through the first brightness of the photosensitive unit with the highest brightness in the picture and the first average brightness of all the photosensitive units in the picture.
Preferably, the calculation formula for obtaining the exposure brightness is: exposure luminance ═ L × W + C × (1-W);
wherein, L is the first brightness, C is the first average brightness, and W is the adjustable coefficient.
Preferably, the first photosensitive area defining unit is configured to define every adjacent N photosensitive units as one photosensitive area;
the fourth brightness calculating unit is used for calculating second average brightness of the N photosensitive units in each photosensitive area;
and the fifth brightness calculating unit is used for calculating the brightness of the photosensitive unit with the highest brightness in the N photosensitive units in the photosensitive area with the highest second average brightness as the first brightness.
Preferably, the mobile terminal further comprises an environment determination unit for determining whether or not the screen input by the camera sensor is a center-focused highlight screen.
Preferably, the second photosensitive area defining unit is configured to divide the frame into a central photosensitive area, a central epitaxial photosensitive area and peripheral photosensitive areas according to a division result of the plurality of photosensitive units that divide the frame, where the central photosensitive area is formed by the plurality of photosensitive units located at the central position in the frame, the central epitaxial photosensitive area is formed by the plurality of photosensitive units located at the edge of the central photosensitive area, and the peripheral photosensitive area is formed by the plurality of photosensitive units located at the peripheral position in the frame;
the first photosensitive unit quantity analysis unit is used for counting the quantity of the photosensitive units with high brightness in the picture;
the sixth brightness calculation unit is used for calculating the average brightness of the photosensitive units of the peripheral photosensitive areas to obtain a third average brightness;
the seventh brightness calculating unit is used for calculating the average brightness of the photosensitive units in the central photosensitive area to obtain a fourth average brightness;
the second photosensitive unit quantity analysis unit is used for calculating the quantity of the photosensitive units of the central photosensitive area and the central epitaxial photosensitive area;
and the first condition judging unit is used for judging whether the picture is the central centralized highlight picture according to the following conditions, and when the following conditions are simultaneously met, determining that the picture is shot as the central centralized highlight picture:
a ratio of the third average luminance to the fourth average luminance is not greater than a first threshold;
the ratio of the number of the photosensitive units of the central photosensitive area and the central epitaxial photosensitive area to the number of the photosensitive units with the highest brightness in the picture is not less than a second threshold value;
the ratio of the number of the photosensitive units with high brightness in the picture to the number of all the photosensitive units in the picture is between a third threshold and a fourth threshold;
and when the conditions are met, determining that the picture is shot as a central concentrated highlight picture.
Preferably, the display device further comprises a second condition determining unit, configured to determine whether the picture is a central high-brightness picture according to the complexity of the brightness of the photosensitive units in the peripheral photosensitive areas.
Preferably, the device further comprises a third photosensitive unit number analysis unit, configured to calculate the number of photosensitive units in the peripheral photosensitive area;
the detection calculation formula of the complexity is as follows:
Figure BDA0001216612960000061
wherein σ is complexity of brightness of the photosensitive units in the peripheral photosensitive area, C represents the first average brightness, Xi represents brightness of each photosensitive unit in the peripheral photosensitive area, and N represents the number of photosensitive units in the peripheral photosensitive area;
and when the sigma is not greater than a fifth threshold value, judging that the picture is a central high-brightness picture.
The invention also provides a mobile terminal, which comprises a processor and a memory: the memory is for storing a program of any of the methods described above, and the processor is configured for executing the program stored in the memory.
Based on the technical scheme, the embodiment of the invention can solve the technical problem that the central concentrated highlight picture is not clear in shooting.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of camera exposure provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating division of a shot picture area according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for optimizing the camera exposure of step S2 according to a preferred embodiment of the present invention;
FIG. 4 is a flowchart of a method for optimizing the camera exposure of steps S2 and S3 according to a preferred embodiment of the present invention;
fig. 5 is a flowchart of a method for increasing the camera exposure of the environment determination step S1 according to a preferred embodiment of the present invention;
FIG. 6 is a flowchart of a method for optimizing the camera exposure of step S1 according to a preferred embodiment of the present invention;
FIG. 7 is a flowchart of a method for further optimizing the camera exposure of step S1 according to the preferred embodiment of the present invention provided in FIG. 5;
fig. 8 is a schematic diagram of a camera exposure apparatus according to an embodiment of the present invention.
Reference numerals:
a peripheral photosensitive area A; a central epitaxial photosensitive region B; a central photosensitive region C; a camera sensor 10; an area dividing unit 20; a brightness acquisition unit 30; a first luminance calculating unit 41; a second luminance calculating unit 42; a third luminance calculating unit 43; a fourth luminance calculating unit 44; a fifth luminance calculating unit 45; a sixth luminance calculating unit 46; a seventh luminance calculating unit 47; an exposure brightness adjusting unit 50, a first photosensitive region defining unit 61; a second photosensitive region defining unit 62; an environment determination unit 70; a first photosensitive-unit-number analyzing unit 81; a second photosensitive-unit-number analyzing unit 82; a third photosensitive-unit-number analyzing unit 83; a first condition determination unit 91; a second condition determination unit 92.
Detailed Description
The contents of the present invention and the differences between the present invention and the prior art can be understood with reference to fig. 1 to 8 and the text. The invention will now be described in further detail, including the preferred embodiments, with reference to the accompanying drawings, in which some alternative embodiments of the invention are shown. It should be noted that: any technical features and any technical solutions in the present embodiment are one or more of various optional technical features or optional technical solutions, and for the sake of brevity, this document cannot exhaustively enumerate all the alternative technical features and alternative technical solutions of the present invention, and is also not convenient for each embodiment of the technical features to emphasize it as one of various optional embodiments, so those skilled in the art should know that: any technical means provided by the invention can be replaced or any two or more technical means or technical characteristics provided by the invention can be combined with each other to obtain a new technical scheme. Any technical features and any technical solutions in the present embodiment do not limit the scope of the present invention, and the scope of the present invention should include any alternative technical solutions that can be conceived by those skilled in the art without inventive efforts and new technical solutions that can be obtained by those skilled in the art by combining any two or more technical means or technical features provided by the present invention with each other.
The embodiment of the invention provides a camera exposure method, a camera exposure device and a mobile terminal.
The technical solution provided by the present invention is explained in more detail with reference to fig. 1 to 8.
As shown in fig. 1 to 4, a method for exposing a camera according to an embodiment of the present invention includes:
step S0, dividing the picture inputted by the camera sensor into a plurality of light-sensing units according to a preset manner, as shown in fig. 1, in this embodiment, dividing the picture into 16 × 16 light-sensing units according to a preset manner, for a total of 256 light-sensing units, and then calculating the first brightness of the light-sensing unit with the highest brightness in the picture through step S2, wherein the calculation of the first brightness can be performed at least in the following 3 manners:
1. searching in a pairwise comparison mode;
2. comparing the coordinate values of the photosensitive units with the coordinates of (0, 0) one by one;
3. as shown in fig. 3, each neighboring 4 photo-sensing units are defined as a photo-sensing area by step S21, for example, the 4 photo-sensing units with coordinates of (0, 0), (0, 1), (1, 0), (1, 1) are defined as a photo-sensing area, the 4 photo-sensing units with coordinates of (0, 1), (0, 2), (1, 1), (1, 2) are defined as another photo-sensing area, (1, 0), (1, 1), (2, 0), (2, 1) are defined as another photo-sensing area, and so on, that is, the frame is divided into 256 photo-sensing areas, the average brightness of the 4 photo-sensing units in each photo-sensing area is calculated as the second average brightness, and finally the brightest photo-sensing unit in the photo-sensing area with the highest average brightness is selected as the first brightness of the photo-sensing unit with the highest brightness in the frame by step S22, by adopting the method, the calculation speed can be effectively improved, and the calculation result is more accurate. After determining the brightest light-sensing unit, recording the brightness of the light-sensing unit as a first brightness.
In addition, it is also necessary to calculate the first average brightness of all the light-sensing units in the screen, as in step S31 shown in fig. 4, by the following method: and calculating the average brightness of all the photosensitive areas and taking the average value as the first average brightness of the picture. For example, each adjacent 4 light-sensitive units are defined as a light-sensitive area, for example, the 4 light-sensitive units with coordinates (0, 0), (0, 1), (1, 0), (1, 1) are defined as a light-sensitive area, the 4 light-sensitive units with coordinates (0, 1), (0, 2), (1, 1), (1, 2) are defined as another light-sensitive area, the 4 light-sensitive units with coordinates (1, 0), (1, 1), (2, 0), (2, 1) are defined as another light-sensitive area, and so on, then the average brightness value of all the light-sensitive units in each light-sensitive area is calculated, and then the average value is taken as the first average brightness of the picture.
Finally, in step S4, the exposure brightness is obtained by calculating the first brightness of the photosensitive cell with the highest brightness and the first average brightness of all photosensitive cells in the frame, and then the frame input by the camera sensor is processed and displayed according to the exposure brightness, wherein the formula for calculating the exposure brightness is as follows:
exposure luminance ═ L × W + C × (1-W);
where L is the first luminance, C is the first average luminance, and W is an adjustable coefficient. That is to say, in the process of photographing, as long as the user selects the PPT presentation exposure mode, the first brightness of the photosensitive unit with the highest brightness and the first average brightness of all the photosensitive units in the picture are obtained in real time according to the picture real-time detection calculation, and then the exposure brightness is calculated, wherein in the process of calculating the exposure brightness, the coefficient value can be set to achieve the optimal exposure brightness.
The above embodiment is based on the method of selecting the camera exposure in the PPT presentation exposure mode, and as shown in fig. 5, for the convenience of the method, the analysis of the screen in real time can be realized by the following preferred embodiments.
Step S1 is performed before step S2 is performed: and determining whether the picture is shot by the PPT demonstration manuscript, if so, executing the subsequent steps, calculating to obtain proper exposure brightness, and if not, shooting according to the common exposure mode of the camera. Certainly, for absolute accuracy of an analysis result of a picture performed by a camera, after the picture is analyzed by the camera, the analysis result is output and a confirmation request is initiated, the picture is manually confirmed again, and after the confirmation, a result of whether the picture is shot by a PPT presentation is output, for example, if the exposure method of the camera is integrated on a certain product, if the picture is shot by the PPT presentation, a request of "the picture is shot by the PPT presentation and whether a PPT presentation exposure mode is started" is initiated, if the user confirms, subsequent steps are executed, and if the user does not confirm, the picture is shot according to a common exposure mode of the camera.
As shown in fig. 6, the present invention provides a preferred embodiment of how to determine whether the screen is shot for a PPT presentation.
First, as shown in fig. 1, according to the area division result of the picture, the picture is divided into a peripheral photosensitive area a, a central epitaxial photosensitive area B, and a central photosensitive area C, where the central photosensitive area C is composed of a plurality of photosensitive units located at the central position in the picture, the central epitaxial photosensitive area B is composed of a plurality of photosensitive units located at the edge of the central photosensitive area, the peripheral photosensitive area a is composed of a plurality of photosensitive units located at the peripheral position in the picture, and then the following contents are calculated:
and calculating the number of the photosensitive units with high brightness in the picture, wherein the photosensitive units with high brightness refer to the photosensitive units with higher brightness in all the photosensitive units in the picture, and the photosensitive units with high brightness are arranged in the front 30% to the front 40% of brightness in all the photosensitive units in the picture. The determination of the photosensitive unit with high brightness can be performed by adopting the preferred embodiment provided by the invention: firstly, detecting the brightness of each photosensitive unit after the image is subjected to region division in real time, selecting the brightness of the photosensitive unit with the highest brightness as the initial highest brightness, selecting the brightness of the photosensitive unit with the lowest brightness as the initial lowest brightness, selecting the intermediate value of the highest brightness and the lowest brightness as the initial intermediate brightness, then clustering all the photosensitive units in the image in high-middle-low three categories through a clustering algorithm, calculating the average value of the high-brightness photosensitive units, the average value of the medium-brightness photosensitive units and the average value of the low-brightness photosensitive units, then re-clustering according to the average values of the photosensitive units, carrying out iterative calculation as above, and counting the number of the high-brightness photosensitive units in the image according to the final clustering result after the average values are not changed.
In addition, the average brightness of the sensing units in the peripheral sensing area A is calculated to obtain a third average brightness; calculating the average brightness of the light sensing units in the central light sensing area C to obtain a fourth average brightness; and calculating the number of photosensitive units in the central photosensitive area C and the central epitaxial photosensitive area B.
And judging whether the following conditions are simultaneously met:
the ratio of the average brightness of the light sensing units in the peripheral light sensing area A to the average brightness of the light sensing units in the central light sensing area C is not larger than a first threshold value, the range of the first threshold value is 0.95-1, the central brightness of the picture is higher than the brightness of the peripheral light sensing area, and the occupied area of the part with the higher central brightness is relatively larger.
In addition, it is also determined that the ratio of the number of the photosensitive units in the central photosensitive area C to the number of the photosensitive units with high brightness in the frame is not less than a second threshold, where the range of the second threshold is 1.7-2, so as to ensure that the photosensitive units with high brightness are mainly concentrated in the central photosensitive area C.
Finally, it is also required to judge that the ratio of the number of the photosensitive units with high brightness to the number of all the photosensitive units in the picture is between a third threshold and a fourth threshold, wherein the third threshold and the fourth threshold are obtained through multiple times of debugging and are not fixed values; that is to say, when the number of the high-brightness photosensitive units is too large, the image is not shot by the central concentrated high-brightness image, and the high brightness is expressed as a point light source or a night scene and a non-PPT scene in a single time, the range of the third threshold is 0.45 to 0.55, and the range of the fourth threshold is 0.8 to 0.9.
If the conditions are met simultaneously, the picture is judged to be shot by the PPT demonstration manuscript, and if the conditions are not met simultaneously, the picture is judged not to be shot by the PPT demonstration manuscript.
As shown in fig. 7, in order to further ensure the accuracy of the determination, the following determination conditions need to be added, and the determination is performed by detecting the complexity of the brightness of the photosensitive cells in the peripheral photosensitive area, where the calculation formula of the complexity is:
Figure BDA0001216612960000111
wherein σ is complexity of brightness of photosensitive cells in the peripheral photosensitive region, C represents the first average brightness, and X representsiThe brightness of each photosensitive unit in the peripheral photosensitive area is represented, and N represents the number of the photosensitive units in the peripheral photosensitive area; when shooting the PPT, the background of the photosensitive regions around is generally single, if the environment is complex, the scene is not considered to be a PPT scene, and if the environment is single, the scene is considered to be a PPT scene, so when the σ is not greater than a fifth threshold, the picture is determined to be a central intensive highlight picture, and the range of the fifth threshold is 190-.
Through the scheme, the current PPT shooting can be intelligently identified, and the technical problem that the PPT demonstration manuscript is not clear in shooting can be effectively solved through the shooting method provided by the invention.
The present invention also provides a mobile terminal comprising a processor (not shown in the figures) and a memory (not shown in the figures), wherein the memory is used for storing the program of the above method, and the processor is configured for executing the program stored in the memory.
The present invention also provides an apparatus for camera exposure, as shown in fig. 8, comprising:
a camera sensor 10 for capturing a picture;
a region dividing unit 20 for dividing the picture inputted by the camera sensor into a plurality of light sensing units according to a preset mode, as shown in fig. 1, the picture can be divided into a designated number of light sensing units, the picture is divided into 16 × 16 light sensing units in the embodiment of fig. 1, a total of 256 light sensing units,
and a brightness acquisition unit 30 for acquiring the brightness of the photosensitive unit in the picture, wherein in the above camera exposure method, the brightness is required to be acquired in the calculation of the brightness.
In addition, a first luminance calculating unit 41 is further included for calculating the luminance of the photosensitive unit with the highest luminance in the screen, wherein the calculation of the photosensitive unit with the highest luminance can be performed at least in the following 3 ways:
1. searching in a pairwise comparison mode;
2. comparing the coordinate values of the photosensitive units with the coordinates of (0, 0) one by one;
3. as shown in fig. 1, each adjacent 4 photosensitive cells are defined as a photosensitive area by the first photosensitive area defining unit 61, for example, 4 photosensitive cells with coordinates of (0, 0), (0, 1), (1, 0), (1, 1) are defined as a photosensitive area, 4 photosensitive cells with coordinates of (0, 1), (0, 2), (1, 1), (1, 2) are defined as another photosensitive area, (1, 0), (1, 1), (2, 0), (2, 1) are defined as another photosensitive area, and so on, that is, the frame is divided into 256 photosensitive areas, the average brightness of 4 photosensitive cells in each photosensitive area is calculated by the fourth brightness calculating unit 44, the average brightness is the second average brightness, and finally, the brightest photosensitive cell in the photosensitive area with the highest average brightness is selected as the first brightness of the photosensitive cell with the highest brightness in the frame by the fifth brightness calculating unit 45, in this embodiment, the fifth luminance calculating unit 45 may not be used, and the brightest light-sensing unit in the light-sensing area with the highest average luminance may be directly selected as the first luminance of the light-sensing unit with the highest luminance in the screen by the first luminance calculating unit 41. By adopting the method, the calculation speed can be effectively improved, and the calculation result is more accurate. After determining the brightest light-sensing unit, recording the brightness of the light-sensing unit as a first brightness.
And a second brightness calculating unit 42, configured to calculate a first average brightness of all the light sensing units in the frame. The preferred embodiment of the present invention provides that: calculating the average brightness of all the photosensitive units in the picture by the following method: the photosensitive areas are defined by the first photosensitive-area defining unit 61, and the average luminance of all the photosensitive areas is calculated and averaged as the average luminance of the picture. For example, each neighboring 4 light-sensing units are defined as a light-sensing area, for example, the 4 light-sensing units with coordinates (0, 0), (0, 1), (1, 0), (1, 1) are defined as a light-sensing area, the 4 light-sensing units with coordinates (0, 1), (0, 2), (1, 1), (1, 2) are defined as another light-sensing area, the 4 light-sensing units with coordinates (1, 0), (1, 1), (2, 0), (2, 1) are defined as another light-sensing area, and so on, and then the average brightness value of all light-sensing units in each light-sensing area is calculated by the second brightness calculation unit 42, and then the average value is taken as the first average brightness of the picture.
Finally, the exposure brightness is obtained by the third brightness calculating unit 43 by using the calculation of the first brightness of the photosensitive unit with the highest brightness and the first average brightness of all photosensitive units in the frame, and then the frame input by the camera sensor is processed and displayed according to the exposure brightness, wherein the formula for calculating the exposure brightness is as follows:
exposure luminance ═ L × W + C × (1-W);
where L is the first luminance, C is the first average luminance, and W is an adjustable coefficient. W is adjusted by the exposure luminance adjusting unit 50. That is to say, in the process of photographing, as long as the user selects the PPT presentation exposure mode, the first brightness of the photosensitive unit with the highest brightness and the first average brightness of all the photosensitive units in the picture are obtained in real time according to the picture real-time detection calculation, and then the exposure brightness is calculated, wherein in the process of calculating the exposure brightness, the coefficient value can be set to achieve the optimal exposure brightness.
In order to make the camera exposure apparatus more convenient to use, the analysis of the picture in real time can be realized by the following preferred embodiments.
An additional environment determination unit 70 for determining whether the picture input by the camera sensor 10 is a center-focused highlight picture. The determination method may adopt the following preferred embodiments provided by the present invention:
the second photosensitive area defining unit 62 defines areas of the photosensitive units in the frame, as shown in fig. 1, a part a is defined as a peripheral photosensitive area, a part B is a central epitaxial photosensitive area, and a part C is a central photosensitive area, and a first photosensitive unit number analyzing unit 81 for counting the number of the photosensitive units with high brightness in the frame is added, wherein the determination of the photosensitive units with high brightness can be performed by adopting the preferred embodiment provided by the present invention: firstly, the brightness of each photosensitive unit obtained after the area division is carried out on the picture is detected in real time through the area division unit 20, the brightness of the photosensitive unit with the highest brightness is selected as the initial highest brightness, the brightness of the photosensitive unit with the lowest brightness is selected as the initial lowest brightness, the intermediate value of the highest brightness and the lowest brightness is selected as the initial intermediate brightness, then the clustering algorithm is used for clustering the high-middle-low three types of all photosensitive units in the picture to obtain the average value of the brightness high photosensitive units, the average value of the middle-brightness photosensitive units and the average value of the low-brightness photosensitive units, then the clustering is carried out again according to the average value of each chromaticity, iterative calculation is carried out as above, and when the average value is not changed, the clustering result is taken as the standard, and the number of the photosensitive units with the high brightness in the picture is counted through the first.
And a sixth luminance calculating unit 46 for calculating the average luminance of the light sensing units in the peripheral light sensing region a is added; a seventh brightness calculating unit 47 for calculating the average brightness of the photosensitive cells of the central photosensitive area, a second photosensitive cell number analyzing unit 82 for calculating the number of the photosensitive cells of the central photosensitive area and the central epitaxial photosensitive area, and a first condition determining unit 91 for determining whether the frame is shot for the PPT presentation according to the following conditions,
the conditions are as follows:
the ratio of the average brightness of the light sensing units in the peripheral light sensing area A to the average brightness of the light sensing units in the central light sensing area C is not larger than a first threshold value, the range of the first threshold value is 0.95-1, the central brightness of the picture is higher than the brightness of the peripheral light sensing area, and the occupied area of the part with the higher central brightness is relatively larger.
In addition, it is also determined that the ratio of the number of the photosensitive units in the central photosensitive area C to the number of the photosensitive units with high brightness in the frame is not less than a second threshold, where the range of the second threshold is 1.7-2, so as to ensure that the photosensitive units with high brightness are mainly concentrated in the central photosensitive area C.
Finally, it is also required to judge that the ratio of the number of the photosensitive units with high brightness to the number of all the photosensitive units in the picture is between a third threshold and a fourth threshold, wherein the third threshold and the fourth threshold are obtained through multiple times of debugging and are not fixed values; that is to say, when the number of the high-brightness photosensitive units is too large, the image is not shot by the central concentrated high-brightness image, and the high brightness is expressed as a point light source or a night scene and a non-PPT scene in a single time, the range of the third threshold is 0.45 to 0.55, and the range of the fourth threshold is 0.8 to 0.9.
If the above conditions are simultaneously satisfied, the first condition determining unit 91 determines that the screen is PPT presentation shooting, and if the above conditions are not simultaneously satisfied, the first condition determining unit 91 determines that the screen is not PPT presentation shooting.
In order to further ensure the accuracy of the determination, a second condition determining unit 92 is required to be added for determining whether the picture is a centralized high-brightness picture according to the complexity of the brightness of the photosensitive units in the peripheral photosensitive area a. The invention provides the following implementation mode for detecting the complexity, which includes a third photosensitive cell number analysis unit 83 for calculating the number of photosensitive cells in the peripheral photosensitive area a, and further determines whether a picture is shot for a PPT presentation, where the determination condition is the complexity for detecting the brightness of the photosensitive cells in the peripheral photosensitive area, and the calculation formula of the complexity is:
Figure BDA0001216612960000151
wherein σ is complexity of brightness of photosensitive cells in the peripheral photosensitive region, C represents the first average brightness, and X representsiThe brightness of each photosensitive unit in the peripheral photosensitive area is represented, and N represents the number of the photosensitive units in the peripheral photosensitive area; when shooting the PPT, the background of the photosensitive regions around is generally single, if the environment is complex, the scene is not considered to be a PPT scene, and if the environment is single, the scene is considered to be a PPT scene, so when the σ is not greater than a fifth threshold, the picture is determined to be a central intensive highlight picture, and the range of the fifth threshold is 190-.
The camera exposure device provided by the invention can effectively solve the technical problem that PPT presentation is not clear in shooting. In addition, the PPT shooting is currently carried out, and then the shooting method provided by the invention can be used for carrying out high-quality shooting. It should be noted that the camera exposure apparatus provided by the present invention can be disposed on a mobile terminal, such as a mobile phone, a PAD, etc., and can also be disposed on other devices having a shooting function.
A1, a method for camera exposure, the method comprising:
dividing a picture input by a camera sensor into a plurality of photosensitive units according to a preset mode;
calculating the first brightness of the photosensitive unit with the highest brightness in the picture;
calculating first average brightness of all light sensing units in the picture;
obtaining exposure brightness through the first brightness of the photosensitive unit with the highest brightness and the first average brightness of all the photosensitive units in the picture;
and processing and displaying the picture input by the camera sensor according to the exposure brightness.
A2, according to the camera exposure method of A1, the calculation formula of the exposure brightness is obtained as follows: exposure luminance ═ L × W + C × (1-W);
wherein, L is the first brightness, C is the first average brightness, and W is the adjustable coefficient.
A3, the method for camera exposure according to A1, wherein the calculating the first brightness of the photosensitive unit with the highest brightness in the picture comprises:
defining every adjacent N photosensitive units as a photosensitive area;
calculating the average brightness of the N photosensitive units in each photosensitive area, wherein the average brightness is a second average brightness;
and calculating the brightness of the photosensitive unit with the highest brightness in the N photosensitive units in the photosensitive area with the highest second average brightness as the first brightness.
A4, the method for camera exposure according to A1, wherein the calculating the first average brightness of all the light sensing units in the picture comprises:
defining every adjacent N photosensitive units as a photosensitive area;
calculating the average brightness of the N photosensitive units in each photosensitive area, wherein the average brightness is a second average brightness;
and calculating the average value of the second average brightness of each photosensitive area, wherein the average value is the first average brightness.
A5, the method for camera exposure according to A3 or A4, the value of N is not less than 4.
A6, the method for camera exposure according to any one of a1 to a4, further comprising, before calculating the first brightness of the photosensitive cell with the highest brightness in the picture:
and judging whether the picture input by the camera sensor is a central centralized highlight picture or not, and executing the subsequent steps if the picture input by the camera sensor is the central centralized highlight picture.
A7, according to the camera exposure method of A6, determining whether the picture is a central concentrated highlight picture, comprising:
dividing the picture into a central photosensitive area, a central epitaxial photosensitive area and peripheral photosensitive areas according to the division result of the plurality of photosensitive units for dividing the picture, wherein the central photosensitive area consists of the plurality of photosensitive units in the central position in the picture, the central epitaxial photosensitive area consists of the plurality of photosensitive units in the edge of the central photosensitive area, and the peripheral photosensitive area consists of the plurality of photosensitive units in the peripheral position in the picture;
calculating the number of photosensitive units with high brightness in the picture;
calculating the average brightness of the photosensitive units of the peripheral photosensitive areas to obtain a third average brightness;
calculating the average brightness of the photosensitive units in the central photosensitive area to obtain a fourth average brightness;
calculating the number of photosensitive units of the central photosensitive area and the central epitaxial photosensitive area;
and when the following conditions are met, determining that the picture is shot as a central concentrated highlight picture:
a ratio of the third average luminance to the fourth average luminance is not greater than a first threshold;
the ratio of the number of the photosensitive units of the central photosensitive area and the central epitaxial photosensitive area to the number of the photosensitive units with high brightness in the picture is not less than a second threshold value;
the ratio of the number of the photosensitive units with high brightness in the picture to the number of all the photosensitive units in the picture is between a third threshold and a fourth threshold.
A8, according to the camera exposure method of A7, calculating the number of photosensitive units with high brightness in the picture, including:
detecting the brightness of each photosensitive unit after the image is subjected to region division in real time;
selecting the first brightness of the photosensitive unit with the highest brightness as the initial highest brightness;
selecting the brightness of the photosensitive unit with the lowest brightness as the initial lowest brightness;
selecting a middle value of the initial highest brightness and the initial lowest brightness as an initial middle brightness;
clustering all the light sensing units in the picture according to the initial highest brightness, the initial lowest brightness and the initial middle brightness by using a clustering algorithm to obtain an average value of the light sensing units with high brightness, an average value of the light sensing units with middle brightness and an average value of the light sensing units with low brightness;
clustering again and performing iterative computation according to the average values, and obtaining the average value of the photosensitive units with high final brightness, the average value of the photosensitive units with medium final brightness and the average value of the photosensitive units with low final brightness after the average values are not changed;
and clustering according to the average value of the photosensitive units with high final brightness, wherein the obtained photosensitive units are the photosensitive units with high brightness in the picture.
A9, method for camera exposure according to A7,
the range of the first threshold value is 0.95-1;
the range of the second threshold value is 1.7-2;
the range of the third threshold value is 0.45-0.55;
the range of the fourth threshold is 0.8-0.9.
A10, wherein the condition for determining whether the screen is a central highlight screen according to the camera exposure method of a7 further comprises:
and detecting the complexity of the brightness of the photosensitive units of the peripheral photosensitive areas.
A11, the method for exposing light by a camera according to A10, further comprising counting the number of light sensing units of the peripheral light sensing area;
the detection calculation formula of the complexity is as follows:
Figure BDA0001216612960000181
wherein σ is complexity of brightness of the photosensitive units in the peripheral photosensitive area, C represents the first average brightness, Xi represents brightness of each photosensitive unit in the peripheral photosensitive area, and N represents the number of photosensitive units in the peripheral photosensitive area;
and when the sigma is not greater than a fifth threshold value, judging that the picture is a central high-brightness picture.
B12, an apparatus for camera exposure, the apparatus comprising:
a camera sensor for capturing a picture;
the area dividing unit is used for dividing a picture input by the camera sensor into a plurality of photosensitive units according to a preset mode;
the brightness acquisition unit is used for acquiring the brightness of the photosensitive unit in the picture;
the first brightness calculation unit is used for calculating the first brightness of the photosensitive unit with the highest brightness in the picture;
the second brightness calculation unit is used for calculating the first average brightness of all the light sensing units in the picture;
an exposure brightness adjusting unit for adjusting the exposure brightness by an adjusting coefficient;
and the third brightness calculation unit is used for obtaining exposure brightness, and the exposure brightness is obtained through the first brightness of the photosensitive unit with the highest brightness in the picture and the first average brightness of all the photosensitive units in the picture.
B13, according to the device of B12, the calculation formula for obtaining the exposure brightness is as follows: exposure luminance ═ L × W + C × (1-W);
wherein, L is the first brightness, C is the first average brightness, and W is the adjustable coefficient.
B14, the apparatus according to B12, further comprising:
the first photosensitive area defining unit is used for defining every adjacent N photosensitive units as a photosensitive area;
and the fourth brightness calculating unit is used for calculating the second average brightness of the N photosensitive units in each photosensitive area.
B15, the device according to any one of B12 to B14,
the environment determination unit is used for determining whether the picture input by the camera sensor is a central centralized highlight picture.
B16, the apparatus according to B15, further comprising:
the second photosensitive area defining unit is used for dividing the picture into a central photosensitive area, a central extension photosensitive area and peripheral photosensitive areas according to the division result of the plurality of photosensitive units for dividing the picture, wherein the central photosensitive area consists of the plurality of photosensitive units positioned at the central position in the picture, the central extension photosensitive area consists of the plurality of photosensitive units positioned at the edge of the central photosensitive area, and the peripheral photosensitive area consists of the plurality of photosensitive units positioned at the peripheral position in the picture;
the first photosensitive unit quantity analysis unit is used for counting the quantity of the photosensitive units with high brightness in the picture;
the sixth brightness calculation unit is used for calculating the average brightness of the photosensitive units of the peripheral photosensitive areas to obtain a third average brightness;
the seventh brightness calculating unit is used for calculating the average brightness of the photosensitive units in the central photosensitive area to obtain a fourth average brightness;
the second photosensitive unit quantity analysis unit is used for calculating the quantity of the photosensitive units of the central photosensitive area and the central epitaxial photosensitive area;
and the first condition judging unit is used for judging whether the picture is the central centralized highlight picture according to the following conditions, and when the following conditions are simultaneously met, determining that the picture is shot as the central centralized highlight picture:
a ratio of the third average luminance to the fourth average luminance is not greater than a first threshold;
the ratio of the number of the photosensitive units of the central photosensitive area and the central epitaxial photosensitive area to the number of the photosensitive units with the highest brightness in the picture is not less than a second threshold value;
the ratio of the number of the photosensitive units with high brightness in the picture to the number of all the photosensitive units in the picture is between a third threshold and a fourth threshold;
and when the conditions are met, determining that the picture is shot as a central concentrated highlight picture.
B17, the device according to B16, further comprising a second condition determining unit for determining whether the picture is a central high-brightness picture according to the complexity of the brightness of the photosensitive units in the peripheral photosensitive areas.
B18, the device according to B17, further comprising a third light-sensitive unit number analysis unit for calculating the number of light-sensitive units of the peripheral light-sensitive areas;
the detection calculation formula of the complexity is as follows:
Figure BDA0001216612960000201
wherein σ is complexity of brightness of the photosensitive units in the peripheral photosensitive area, C represents the first average brightness, Xi represents brightness of each photosensitive unit in the peripheral photosensitive area, and N represents the number of photosensitive units in the peripheral photosensitive area;
and when the sigma is not greater than a fifth threshold value, judging that the picture is a central high-brightness picture.
C19, a mobile terminal comprising a processor and a memory:
the memory for storing a program of any one of the methods a1 to a11, the processor configured to execute the program stored in the memory.
Any embodiment disclosed herein above is meant to disclose, unless otherwise indicated, all numerical ranges disclosed as being preferred, and any person skilled in the art would understand that: the preferred ranges are merely those values which are obvious or representative of the technical effect which can be achieved. Since the numerical values are too numerous to be exhaustive, some of the numerical values are disclosed in the present invention to illustrate the technical solutions of the present invention, and the above-mentioned numerical values should not be construed as limiting the scope of the present invention.
If the terms "first," "second," etc. are used herein to define parts, those skilled in the art will recognize that: the terms "first" and "second" are used merely to distinguish one element from another in a descriptive sense and are not intended to have a special meaning unless otherwise stated.
In addition, terms used in any technical solutions disclosed in the present invention to indicate positional relationships or shapes include approximate, similar or approximate states or shapes unless otherwise stated. Any part provided by the invention can be assembled by a plurality of independent components or can be manufactured by an integral forming process.
Finally, it should be noted that the above examples are only used to illustrate the technical solutions of the present invention and not to limit the same; although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art will understand that: modifications to the specific embodiments of the invention or equivalent substitutions for parts of the technical features may be made; without departing from the spirit of the present invention, it is intended to cover all aspects of the invention as defined by the appended claims.

Claims (15)

1. A method of camera exposure, the method comprising:
dividing a picture input by a camera sensor into a plurality of photosensitive units according to a preset mode;
judging whether the picture input by the camera sensor is a central centralized highlight picture, if so, executing the following steps;
calculating the first brightness of the photosensitive unit with the highest brightness in the picture;
calculating first average brightness of all light sensing units in the picture;
obtaining exposure brightness through the first brightness of the photosensitive unit with the highest brightness and the first average brightness of all the photosensitive units in the picture;
processing and displaying the picture input by the camera sensor according to the exposure brightness;
the step of judging whether the picture is a central highlight picture or not comprises the following steps:
dividing the picture into a central photosensitive area, a central epitaxial photosensitive area and peripheral photosensitive areas according to the division result of the plurality of photosensitive units for dividing the picture, wherein the central photosensitive area consists of the plurality of photosensitive units in the central position in the picture, the central epitaxial photosensitive area consists of the plurality of photosensitive units in the edge of the central photosensitive area, and the peripheral photosensitive area consists of the plurality of photosensitive units in the peripheral position in the picture;
calculating the number of photosensitive units with high brightness in the picture;
calculating the average brightness of the photosensitive units of the peripheral photosensitive areas to obtain a third average brightness;
calculating the average brightness of the photosensitive units in the central photosensitive area to obtain a fourth average brightness;
calculating the number of photosensitive units of the central photosensitive area and the central epitaxial photosensitive area;
and when the following conditions are met, determining that the picture is shot as a central concentrated highlight picture: a ratio of the third average luminance to the fourth average luminance is not greater than a first threshold;
the ratio of the number of the photosensitive units of the central photosensitive area and the central epitaxial photosensitive area to the number of the photosensitive units with high brightness in the picture is not less than a second threshold value;
the ratio of the number of the photosensitive units with high brightness in the picture to the number of all the photosensitive units in the picture is between a third threshold and a fourth threshold.
2. The method of camera exposure according to claim 1, wherein the calculation formula for obtaining the exposure brightness is: exposure luminance ═ L × W + C × (1-W);
wherein, L is the first brightness, C is the first average brightness, and W is the adjustable coefficient.
3. The method of camera exposure of claim 1, wherein the calculating the first brightness of the photosensitive cell with the highest brightness in the frame comprises:
defining every adjacent N photosensitive units as a photosensitive area;
calculating the average brightness of the N photosensitive units in each photosensitive area, wherein the average brightness is a second average brightness;
and calculating the brightness of the photosensitive unit with the highest brightness in the N photosensitive units in the photosensitive area with the highest second average brightness as the first brightness.
4. The method of camera exposure of claim 1, wherein the calculating a first average brightness of all light-sensitive cells in the frame comprises:
defining every adjacent N photosensitive units as a photosensitive area;
calculating the average brightness of the N photosensitive units in each photosensitive area, wherein the average brightness is a second average brightness;
and calculating the average value of the second average brightness of each photosensitive area, wherein the average value is the first average brightness.
5. The method of camera exposure according to claim 3 or 4, characterized in that the value of N is not less than 4.
6. The method of camera exposure of claim 1, wherein calculating the number of photosites in the frame that are high in brightness comprises:
detecting the brightness of each photosensitive unit after the image is subjected to region division in real time;
selecting the first brightness of the photosensitive unit with the highest brightness as the initial highest brightness;
selecting the brightness of the photosensitive unit with the lowest brightness as the initial lowest brightness;
selecting a middle value of the initial highest brightness and the initial lowest brightness as an initial middle brightness;
clustering all the light sensing units in the picture according to the initial highest brightness, the initial lowest brightness and the initial middle brightness by using a clustering algorithm to obtain an average value of the light sensing units with high brightness, an average value of the light sensing units with middle brightness and an average value of the light sensing units with low brightness;
clustering again and performing iterative computation according to the average values, and obtaining the average value of the photosensitive units with high final brightness, the average value of the photosensitive units with medium final brightness and the average value of the photosensitive units with low final brightness after the average values are not changed;
and clustering according to the average value of the photosensitive units with high final brightness, wherein the obtained photosensitive units are the photosensitive units with high brightness in the picture.
7. The method of camera exposure of claim 1,
the range of the first threshold value is 0.95-1;
the range of the second threshold value is 1.7-2;
the range of the third threshold value is 0.45-0.55;
the range of the fourth threshold is 0.8-0.9.
8. The method of camera exposure of claim 1, wherein the condition of determining whether the picture is a center-centered highlighted picture further comprises:
and detecting the complexity of the brightness of the photosensitive units of the peripheral photosensitive areas.
9. The method of exposing a camera according to claim 8, further comprising counting the number of light-sensitive cells of the peripheral light-sensitive area;
the detection calculation formula of the complexity is as follows:
Figure FDA0002281687240000031
wherein σ is complexity of brightness of photosensitive cells in the peripheral photosensitive region, C represents the first average brightness, and X representsiThe brightness of each photosensitive unit in the peripheral photosensitive area is represented, and N represents the number of the photosensitive units in the peripheral photosensitive area;
and when the sigma is not greater than a fifth threshold value, judging that the picture is a central high-brightness picture.
10. An apparatus for exposing light from a camera, the apparatus comprising:
a camera sensor for capturing a picture;
the area dividing unit is used for dividing a picture input by the camera sensor into a plurality of photosensitive units according to a preset mode;
the brightness acquisition unit is used for acquiring the brightness of the photosensitive unit in the picture;
the first brightness calculation unit is used for calculating the first brightness of the photosensitive unit with the highest brightness in the picture;
the second brightness calculation unit is used for calculating the first average brightness of all the light sensing units in the picture;
an exposure brightness adjusting unit for adjusting the exposure brightness by an adjusting coefficient;
the third brightness calculation unit is used for obtaining exposure brightness, and the exposure brightness is obtained through the first brightness of the photosensitive unit with the highest brightness in the picture and the first average brightness of all the photosensitive units in the picture;
the apparatus further includes an environment determination unit for determining whether a picture input by the camera sensor is a center-focused highlight picture;
the device further comprises:
the second photosensitive area defining unit is used for dividing the picture into a central photosensitive area, a central extension photosensitive area and peripheral photosensitive areas according to the division result of the plurality of photosensitive units for dividing the picture, wherein the central photosensitive area consists of the plurality of photosensitive units positioned at the central position in the picture, the central extension photosensitive area consists of the plurality of photosensitive units positioned at the edge of the central photosensitive area, and the peripheral photosensitive area consists of the plurality of photosensitive units positioned at the peripheral position in the picture;
the device also comprises a first photosensitive unit quantity analysis unit, a first image acquisition unit and a second image acquisition unit, wherein the first photosensitive unit quantity analysis unit is used for counting the quantity of the photosensitive units with high brightness in the image;
the sixth brightness calculation unit is used for calculating the average brightness of the photosensitive units of the peripheral photosensitive areas to obtain a third average brightness;
the seventh brightness calculating unit is used for calculating the average brightness of the photosensitive units in the central photosensitive area to obtain a fourth average brightness;
the second photosensitive unit quantity analysis unit is used for calculating the quantity of the photosensitive units of the central photosensitive area and the central epitaxial photosensitive area;
and the first condition judging unit is used for judging whether the picture is the central centralized highlight picture according to the following conditions, and when the following conditions are simultaneously met, determining that the picture is shot as the central centralized highlight picture:
a ratio of the third average luminance to the fourth average luminance is not greater than a first threshold;
the ratio of the number of the photosensitive units of the central photosensitive area and the central epitaxial photosensitive area to the number of the photosensitive units with the highest brightness in the picture is not less than a second threshold value;
the ratio of the number of the photosensitive units with high brightness in the picture to the number of all the photosensitive units in the picture is between a third threshold and a fourth threshold;
and when the conditions are met, determining that the picture is shot as a central concentrated highlight picture.
11. The apparatus according to claim 10, wherein the calculation formula for obtaining the exposure luminance is: exposure luminance ═ L × W + C × (1-W);
wherein, L is the first brightness, C is the first average brightness, and W is the adjustable coefficient.
12. The apparatus of claim 10, further comprising:
the first photosensitive area defining unit is used for defining every adjacent N photosensitive units as a photosensitive area;
and the fourth brightness calculating unit is used for calculating the second average brightness of the N photosensitive units in each photosensitive area.
13. The apparatus of claim 10, further comprising a second condition determining unit for determining whether the frame is a central highlight frame according to the complexity of the brightness of the photosensitive cells in the peripheral photosensitive areas.
14. The apparatus of claim 13, further comprising a third light-sensing unit number analyzing unit for calculating the number of light-sensing units in the peripheral light-sensing area;
the detection calculation formula of the complexity is as follows:
Figure FDA0002281687240000061
wherein σ is complexity of brightness of photosensitive cells in the peripheral photosensitive region, C represents the first average brightness, and X representsiThe brightness of each photosensitive unit in the peripheral photosensitive area is represented, and N represents the number of the photosensitive units in the peripheral photosensitive area;
and when the sigma is not greater than a fifth threshold value, judging that the picture is a central high-brightness picture.
15. A mobile terminal, comprising a processor and a memory:
the memory for storing a program of the method of any one of claims 1 to 9, the processor being configured for executing the program stored in the memory.
CN201710047281.XA 2017-01-22 2017-01-22 Camera exposure method and device and mobile terminal Active CN106773453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710047281.XA CN106773453B (en) 2017-01-22 2017-01-22 Camera exposure method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710047281.XA CN106773453B (en) 2017-01-22 2017-01-22 Camera exposure method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106773453A CN106773453A (en) 2017-05-31
CN106773453B true CN106773453B (en) 2020-03-31

Family

ID=58944004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710047281.XA Active CN106773453B (en) 2017-01-22 2017-01-22 Camera exposure method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106773453B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201946434A (en) * 2018-04-24 2019-12-01 虹光精密工業股份有限公司 Shooting device and shooting method
CN111491108B (en) * 2019-01-28 2022-12-09 杭州海康威视数字技术股份有限公司 Exposure parameter adjusting method and device
CN110784659B (en) * 2019-10-31 2022-01-11 Oppo广东移动通信有限公司 Exposure control method and device and storage medium
CN113612991A (en) * 2021-09-15 2021-11-05 深圳市丘钛微电子科技有限公司 Brightness uniformity detection method and device of light supplement type camera

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067871A (en) * 2007-06-29 2007-11-07 北京大学 High-light area selecting method used for visual convex shell drawing and device threof
CN101365070A (en) * 2007-08-06 2009-02-11 株式会社尼康 Imaging apparatus
CN101399924A (en) * 2007-09-25 2009-04-01 展讯通信(上海)有限公司 Automatic exposure method and device based on brightness histogram
CN105812667A (en) * 2016-04-15 2016-07-27 张磊 System and method for photographing PPT rapidly
CN105959594A (en) * 2016-06-30 2016-09-21 北京小米移动软件有限公司 Metering method and device for photographic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067871A (en) * 2007-06-29 2007-11-07 北京大学 High-light area selecting method used for visual convex shell drawing and device threof
CN101365070A (en) * 2007-08-06 2009-02-11 株式会社尼康 Imaging apparatus
CN101399924A (en) * 2007-09-25 2009-04-01 展讯通信(上海)有限公司 Automatic exposure method and device based on brightness histogram
CN105812667A (en) * 2016-04-15 2016-07-27 张磊 System and method for photographing PPT rapidly
CN105959594A (en) * 2016-06-30 2016-09-21 北京小米移动软件有限公司 Metering method and device for photographic equipment

Also Published As

Publication number Publication date
CN106773453A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
JP6395810B2 (en) Reference image selection for motion ghost filtering
WO2019148912A1 (en) Image processing method, apparatus, electronic device and storage medium
CN105611185B (en) image generating method, device and terminal device
EP3363196B1 (en) Auto white balance using infrared and ultraviolet signals
US11503205B2 (en) Photographing method and device, and related electronic apparatus
CN109844804B (en) Image detection method, device and terminal
CN109688351B (en) Image signal processing method, device and equipment
CN106773453B (en) Camera exposure method and device and mobile terminal
CN111028190A (en) Image processing method, image processing device, storage medium and electronic equipment
US20200051225A1 (en) Fast Fourier Color Constancy
CN104883504B (en) Open the method and device of high dynamic range HDR functions on intelligent terminal
CN106664351A (en) Method and system of lens shading color correction using block matching
US9307213B2 (en) Robust selection and weighting for gray patch automatic white balancing
CN108012078A (en) Brightness of image processing method, device, storage medium and electronic equipment
JP7136956B2 (en) Image processing method and device, terminal and storage medium
CN113132695B (en) Lens shading correction method and device and electronic equipment
CN111586312B (en) Automatic exposure control method and device, terminal and storage medium
EP4033750B1 (en) Method and device for processing image, and storage medium
CN111182208B (en) Photographing method and device, storage medium and electronic equipment
CN110740266B (en) Image frame selection method and device, storage medium and electronic equipment
CN106210446A (en) saturation enhancement method and device
US10951816B2 (en) Method and apparatus for processing image, electronic device and storage medium
CN110677558A (en) Image processing method and electronic device
CN109672829A (en) Method of adjustment, device, storage medium and the terminal of brightness of image
TWI768282B (en) Method and system for establishing light source information prediction model

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