CN107241556B - Light measuring method and device of image acquisition equipment - Google Patents
Light measuring method and device of image acquisition equipment Download PDFInfo
- Publication number
- CN107241556B CN107241556B CN201610186562.9A CN201610186562A CN107241556B CN 107241556 B CN107241556 B CN 107241556B CN 201610186562 A CN201610186562 A CN 201610186562A CN 107241556 B CN107241556 B CN 107241556B
- Authority
- CN
- China
- Prior art keywords
- brightness
- value
- target area
- average value
- acquiring
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000005375 photometry Methods 0.000 claims abstract description 24
- 238000004458 analytical method Methods 0.000 claims abstract description 15
- 238000012545 processing Methods 0.000 claims description 6
- 230000000694 effects Effects 0.000 abstract description 13
- 235000019557 luminance Nutrition 0.000 description 19
- 238000010586 diagram Methods 0.000 description 14
- 238000009432 framing Methods 0.000 description 4
- 238000012935 Averaging Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000003556 assay Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/617—Upgrading or updating of programs or applications for camera control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Studio Devices (AREA)
- Exposure Control For Cameras (AREA)
- Photometry And Measurement Of Optical Pulse Characteristics (AREA)
Abstract
The invention provides a photometry method and a photometry device of image acquisition equipment, wherein the method comprises the following steps: acquiring the brightness value of a current display picture of image acquisition equipment; analyzing the brightness value and acquiring a target area in the current display picture according to an analysis result; and adjusting a photometric weight value of the target area, wherein the photometric weight value is used for adjusting shooting parameters of a picture displayed by the target area. By the method and the device, the problem of low regional photometric accuracy caused by constant photometric weight value in the related art is solved, and the effect of improving the photometric accuracy is achieved.
Description
Technical Field
The invention relates to the field of communication, in particular to a light measuring method and a light measuring device for image acquisition equipment.
Background
In the related art, the metering of the camera divides the frame into M × N rectangular regions, each having a different metering weight. The main light measuring modes include spot light measurement, frame average light measurement, and center-weighted light measurement. The frame averaging photometry, i.e., the entire frame of the image participates in photometry with the same weight value, the center-weighted photometry mode is shown in fig. 1, and the spot photometry mode is shown in fig. 2.
Therefore, the weights of the three photometry modes in the related art are all static and fixed, and the weights cannot be dynamically adjusted according to a specific scene.
Aiming at the problem of low regional photometric accuracy caused by constant photometric weight value in the related art, no effective solution is provided.
Disclosure of Invention
The invention provides a light metering method and a light metering device of image acquisition equipment, which at least solve the problem of low regional light metering accuracy caused by constant light metering weight value in the related art.
According to an aspect of the present invention, there is provided a photometry method of an image pickup apparatus, including: acquiring the brightness value of a current display picture of image acquisition equipment; analyzing the brightness value, and acquiring a target area in the current display picture according to an analysis result; and adjusting a photometric weight value of the target area, wherein the photometric weight value is used for adjusting shooting parameters of a picture displayed by the target area.
Optionally, the acquiring the brightness value of the current display frame of the image capturing device includes: dividing the current display picture into a plurality of regions, wherein the plurality of regions at least comprise m × n regions, and m and n are positive integers; a luminance value of each region included in the plurality of regions is calculated.
Optionally, the obtaining a target area in the current display screen according to the analysis result includes: obtaining an average value of the brightness of the plurality of areas to obtain a first average value; obtaining areas with brightness values larger than the first average value from the areas to obtain a first area set, wherein the areas included in the first area set are part or all of the areas; calculating the average value of the brightness of the areas included in the first area set to obtain a second average value; acquiring a preset brightness range for determining the target area according to the second average value; and acquiring a target area in the current display picture according to the preset brightness range.
Optionally, the obtaining, according to the second average value, a preset range of brightness for determining the target area includes: acquiring a first brightness threshold according to the second average value, wherein the first brightness threshold is a product between the second average value and a predetermined coefficient, and the predetermined coefficient is not greater than 1; taking the difference between the second average value and the first brightness threshold value as the minimum value of the preset brightness range;
and taking the sum of the second average value and the first brightness threshold value as the maximum value of the preset brightness range.
Optionally, the obtaining a target area in the current display image according to the preset brightness range includes: taking a region of the plurality of regions with a brightness value within the preset brightness range as the target region; or acquiring the regions with the brightness values within the preset brightness range from the multiple regions to obtain a second region set; acquiring all area subsets included in the second area set; judging whether the number of the regions included in the region subset meets a preset number or not; and if the judgment result is yes, taking the area subset as the target area.
Optionally, after adjusting the photometric weight value of the target region, the method further includes: calculating exposure parameters according to the adjusted photometric weight value; and adjusting shooting parameters of the image acquisition equipment when acquiring the picture displayed in the target area according to the exposure parameters.
According to another aspect of the present invention, there is provided a photometry device of an image pickup apparatus, including: the acquisition module is used for acquiring the brightness value of the current display picture of the image acquisition equipment; the processing module is used for analyzing the brightness value and acquiring a target area in the current display picture according to an analysis result; the first adjusting module is configured to adjust a photometric weight value of the target area, where the photometric weight value is used to adjust a shooting parameter of a picture displayed in the target area.
Optionally, the obtaining module includes: the dividing unit is used for dividing the current display picture into a plurality of areas, wherein the plurality of areas at least comprise m × n areas, and m and n are positive integers; a first calculation unit configured to calculate a luminance value of each of the plurality of regions.
Optionally, the processing module includes: the first obtaining unit is used for obtaining the average value of the brightness of the plurality of areas to obtain a first average value; a second obtaining unit, configured to obtain, from the multiple regions, a region whose luminance value is greater than the first average value, to obtain a first region set, where a region included in the first region set is part or all of the multiple regions; the second calculation unit is used for calculating the average value of the brightness of the areas included in the first area set to obtain a second average value; a third obtaining unit, configured to obtain a preset brightness range for determining the target area according to the second average value; and the fourth acquisition unit is used for acquiring a target area in the current display picture according to the preset brightness range.
Optionally, the third obtaining unit includes: a first obtaining subunit, configured to obtain a first brightness threshold according to the second average value, where the first brightness threshold is a product between the second average value and a predetermined coefficient, and the predetermined coefficient is not greater than 1; the first setting subunit is used for taking the difference between the second average value and the first brightness threshold value as the minimum value of the preset brightness range; and the second setting subunit is used for taking the sum of the second average value and the first brightness threshold value as the maximum value of the preset brightness range.
Optionally, the fourth obtaining unit includes: a third setting subunit, configured to take, as the target area, an area of the plurality of areas whose luminance values are within the preset luminance range; or, the second obtaining subunit is configured to obtain, from the multiple regions, a region with a brightness value within the preset brightness range, to obtain a second region set; a third obtaining subunit, configured to obtain all region subsets included in the second region set; a judging subunit, configured to judge whether the number of regions included in the region subset satisfies a preset number; and the fourth setting subunit is used for taking the area subset as the target area when the judgment result is yes.
Optionally, the apparatus further comprises: the calculation module is used for calculating exposure parameters according to the adjusted photometric weight value after the photometric weight value of the target area is adjusted; and the second adjusting module is used for adjusting the shooting parameters of the image acquisition equipment when acquiring the picture displayed in the target area according to the exposure parameters.
According to the invention, the brightness value of the current display picture of the image acquisition equipment is acquired; analyzing the brightness value and acquiring a target area in the current display picture according to an analysis result; and adjusting a photometric weight value of the target area, wherein the photometric weight value is used for adjusting shooting parameters of a picture displayed by the target area. That is to say, after the target area is obtained, the photometric weight value of the target area is dynamically adjusted, automatic exposure calculation is completed, and the subjective effect of photometry of the target area is ensured, so that the problem of low regional photometry accuracy caused by setting fixed photometric weight values for all areas of a current display picture in the related art is solved, and the effect of improving the photometric accuracy is achieved.
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 schematic diagram of a related art light measuring method;
FIG. 2 is a schematic diagram of another related art light measuring method;
fig. 3 is a flowchart of a light metering method of an image pickup apparatus according to an embodiment of the present invention;
FIG. 4 is a luminance histogram according to an embodiment of the present invention;
fig. 5 is a flowchart (one) of a light metering method of an image capturing apparatus according to an alternative embodiment of the present invention;
fig. 6 is a flowchart of a light metering method of an image pickup apparatus according to an alternative embodiment of the present invention (two);
fig. 7 is a block diagram of a configuration of a light measuring device of the image pickup apparatus according to the embodiment of the present invention;
fig. 8 is a block diagram (one) of the configuration of a light measuring device of the image pickup apparatus according to the embodiment of the present invention;
fig. 9 is a block diagram (two) of the configuration of a light measuring device of the image pickup apparatus according to the embodiment of the present invention;
fig. 10 is a block diagram (three) of the configuration of a light measuring device of the image pickup apparatus according to the embodiment of the present invention;
fig. 11 is a block diagram (four) of the configuration of a light measuring device of the image pickup apparatus according to the embodiment of the present invention;
fig. 12 is a block diagram (five) of the configuration of the light measuring device of the image pickup apparatus according to the embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
In the present embodiment, a light metering method of an image capturing apparatus is provided, and fig. 3 is a flowchart of the light metering method of the image capturing apparatus according to the embodiment of the present invention, as shown in fig. 3, the flowchart includes the following steps:
step S302, acquiring the brightness value of the current display picture of the image acquisition equipment;
step S304, analyzing the brightness value and obtaining a target area in the current display picture according to the analysis result;
step S306, adjusting a photometric weight value of the target area, where the photometric weight value is used to adjust a shooting parameter of a picture displayed in the target area.
Optionally, in this embodiment, application scenarios of the light metering method of the image capturing apparatus include, but are not limited to: and in the shooting debugging process or the shooting debugging process. In the application scene, a brightness value of a current display picture of the image acquisition device is obtained, then the brightness value is analyzed, a target area is obtained in the current display picture according to an analysis result, and after the target area is obtained, a photometric weight value of the target area is adjusted, wherein the photometric weight value is used for adjusting shooting parameters of the picture displayed in the target area. That is to say, in this embodiment, after the target area is obtained, the photometric weight value of the target area is dynamically adjusted, automatic exposure calculation is completed, and the subjective effect of photometry in the target area is ensured, so that the problem that, in the related art, the regional photometric accuracy is low because all areas of the current display screen are provided with fixed photometric weight values is avoided, and the effect of improving the photometric accuracy is achieved.
Optionally, in this embodiment, the current display frame framing scene includes, but is not limited to: the darkroom slide projection (PowerPoint, abbreviated as PPT) takes black objects outdoors, and the scene is not limited in any way.
Optionally, in this embodiment, the area division manner of the current display screen of the image capturing device includes, but is not limited to; the present display screen is divided into m × n rectangular regions, and the present display screen is divided into m × n hexagonal regions, which is not limited herein.
The present embodiment will be described below with reference to specific examples.
The embodiment provides an optimized camera photometry scheme, which performs real-time pre-analysis on a target area, defines a photometry statistical area at the edge of the target area, and dynamically adjusts a photometry weight value of a selected area. The embodiment focuses on optimizing some special scenes which are automatically identified or clicked by a user, such as scenes for shooting PPT in a dark environment, performing in a theater stage center and the like. The luminance histogram of the scene is distributed in two sides, as shown in fig. 4.
The rough area is determined through automatic identification or user click, and the highlight part of the target area is selected through setting an empirical threshold value, so that the photometric weight value is dynamically adjusted.
In an optional embodiment, the acquiring the brightness value of the current display frame of the image acquisition device comprises the following steps:
step S11, dividing the current display frame into a plurality of regions, wherein the plurality of regions at least includes m × n regions,
in step S12, a luminance value of each of the plurality of regions is calculated.
In this alternative embodiment, the values of m and n may be any positive integer, and are not limited herein.
Through the steps, the current display picture is divided into a plurality of areas, and the brightness value of each area is calculated respectively, so that the technical effect of improving the positioning accuracy of the target area is further achieved.
In an optional embodiment, the acquiring the target area in the current display screen according to the analysis result comprises the following steps:
step S21, obtaining the average value of the brightness of a plurality of areas to obtain a first average value;
step S22, obtaining areas with luminance values greater than the first average value from the multiple areas to obtain a first area set, where the areas included in the first area set are part or all of the multiple areas;
step S23, calculating the average value of the brightness of the areas included in the first area set to obtain a second average value;
step S24, acquiring a preset brightness range for determining the target area according to the second average value;
step S25, obtaining a target area in the current display frame according to the preset brightness range.
Through the steps, the first area set is obtained according to the obtained first average value, the second average value is obtained according to the average value of the area brightness included in the first area set, the preset brightness range is obtained according to the second average value, and the target area is obtained in the current display picture according to the preset brightness range.
In an optional embodiment, obtaining the preset range of brightness for determining the target area according to the second average value includes the following steps:
step S31, obtaining a first luminance threshold according to the second average, wherein the first luminance threshold is a product of the second average and a predetermined coefficient, and the predetermined coefficient is not greater than 1;
step S32, taking the difference between the second average value and the first brightness threshold as the minimum value of the preset brightness range;
in step S33, the sum of the second average value and the first brightness threshold is used as the maximum value of the preset brightness range.
The predetermined coefficient may take any value [0.1.0.5], and in the present embodiment, may be 0.2.
Optionally, in this embodiment, a preset range is obtained through a relationship between the second average value and the first brightness threshold, so that a target area set can be obtained in all areas divided by the current display screen, and further, a photometric weight value of the target area is dynamically adjusted.
In an optional embodiment, acquiring the target area in the current display frame according to the preset brightness range includes the following steps:
step S41, regarding a region of the plurality of regions having a brightness value within the preset brightness range as the target region; or,
step S42, obtaining areas with brightness values within the preset brightness range from the multiple areas to obtain a second area set; acquiring all area subsets included in the second area set; judging whether the number of the areas included in the area subset meets a preset number or not; and if the judgment result is yes, taking the area subset as the target area.
For example, assume that the current display screen is 8 × 8 rectangular regions. If only one region with the brightness value within the preset range is obtained from the 8-by-8 rectangular regions, the region can be directly used as a target region; if there are multiple, for example two, specifically 4 × 4 rectangular regions and 2 × 2 rectangular regions, in this case, the target region may be further obtained according to the number of rectangular regions included in the rectangular regions, for example, 4 × 4 rectangular regions are taken as the target region, and 2 × 2 rectangular regions are ignored.
The present embodiment will be described below by way of example with reference to specific examples.
In one example of the present embodiment, the present invention is primarily directed to a scenario in which a target area is automatically identified. As shown in fig. 5, the current display image takes a target scene as an example, and the target area takes the target scene as an example, and the method mainly includes the following steps:
step S501, a user opens a mobile phone to aim at a target scene for viewing and previewing;
step S502, identifying a target scene, and calculating an interested area: dividing the picture into M × N rectangular regions, and dividing each rectangular region into M × N rectangular regionsDomain luminance (y)0,y1,y2....ym*n-1) Performing an assay comprising:
1) calculating overall average brightness, wherein S is (y0+ y1+ y2+. + ym n-1)/m n, and averaging the brightness of a rectangular region with the brightness higher than S to obtain S1;
2) s1 selects a threshold T-S1-E1, and according to an empirical value, E1 takes [0.1,0.5], in this example, E1 takes 0.2;
3) calculating the number X1 and the number of rectangular areas with the brightness S1-T < y < S1+ T; the number X2 of rectangular regions with luminances S1-T < y < S1+ T of the center E2 × m × n blocks was calculated. If X1>0.04 × m × n and X2> E3 × m × n, this scene is considered as the target scene. In this example, E2 is 0.5, E3 is 0.2;
step S503: dynamically setting photometric weights according to X1 rectangular areas obtained through calculation, completing automatic exposure calculation, and ensuring that the scene meets the subjective effect of target object photometry;
step S504: the framing brightness is changed according to the calculation result.
In another example of the present embodiment, the scene is mainly clicked by the user touching the screen. As shown in fig. 6, the current display image takes a target scene as an example, and the target area takes the target scene as an example, and the method mainly includes the following steps:
step S601, a user opens a mobile phone to aim at a target scene for viewing and previewing;
step S602, a user touches an area of interest;
step S603, identifying a target scene, and calculating an area of interest: dividing the picture into M × N rectangular regions, and analyzing the brightness (y0, y1, y2... ym × N-1) of each rectangular region, wherein the method mainly comprises the following steps
1) Calculating the overall average luminance, S ═ y0+y1+y2+...+ym*n-1) M n, averaging the brightness of the rectangular region with the brightness higher than S to obtain S1;
2) s1 selects a threshold T-S1-E1, and according to an empirical value, E1 takes [0.05,0.2], in this example, E1 takes 0.1;
3) calculating the number X1 and the number of rectangular areas with the brightness S1-T < y < S1+ T;
step S604, dynamically setting photometric weights according to X1 rectangular areas obtained through calculation, completing automatic exposure calculation, and ensuring that the scene meets the subjective effect of target object photometry;
in step S605, the framing brightness is changed according to the calculation result.
Through the steps, the target area is obtained in all the areas divided by the current display picture, and the accuracy of photometry on the target area is further improved and the influence of non-target areas on the target area is reduced by dynamically adjusting the weight table of the current display picture, for example, adjusting the photometric weight value of the target area.
In an optional embodiment, the following step is further included after the photometric weight value of the target region is adjusted:
step S51, calculating an exposure parameter according to the adjusted photometric weight value;
and step S52, adjusting the shooting parameters of the image capturing device when capturing the image displayed in the target area according to the exposure parameters.
Through the steps, automatic exposure calculation is completed according to the adjusted photometric weight value, and the subjective effect of object photometry in a target area is guaranteed to be met under a specific scene.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a light measuring device of an image capturing apparatus is further provided, and the light measuring device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of a configuration of a light measuring device of an image pickup apparatus according to an embodiment of the present invention, as shown in fig. 7, the device including:
1) an obtaining module 72, configured to obtain a brightness value of a current display frame of the image capturing device;
2) a processing module 74, configured to analyze the brightness value and obtain a target area in the current display image according to an analysis result;
3) the first adjusting module 76 is configured to adjust a photometric weight value of the target area, where the photometric weight value is used to adjust a shooting parameter of a picture displayed in the target area.
Optionally, in this embodiment, application scenarios of the light metering method of the image capturing apparatus include, but are not limited to: and in the shooting debugging process or the shooting debugging process. In the application scene, a brightness value of a current display picture of the image acquisition device is obtained, then the brightness value is analyzed, a target area is obtained in the current display picture according to an analysis result, and after the target area is obtained, a photometric weight value of the target area is adjusted, wherein the photometric weight value is used for adjusting shooting parameters of the picture displayed in the target area. That is to say, in this embodiment, after the target area is obtained, the photometric weight value of the target area is dynamically adjusted, automatic exposure calculation is completed, and the subjective effect of photometry in the target area is ensured, so that the problem that, in the related art, the regional photometric accuracy is low because all areas of the current display screen are provided with fixed photometric weight values is avoided, and the effect of improving the photometric accuracy is achieved.
Optionally, in this embodiment, the current display frame framing scene includes, but is not limited to: the darkroom slide projection (PowerPoint, abbreviated as PPT) takes black objects outdoors, and the scene is not limited in any way.
Optionally, in this embodiment, the area division manner of the current display screen of the image capturing device includes, but is not limited to; the present display screen is divided into m × n rectangular regions, and the present display screen is divided into m × n hexagonal regions, which is not limited herein.
In an alternative embodiment, fig. 8 is a block diagram (a) of a light measuring device of an image capturing apparatus according to an embodiment of the present invention, and as shown in fig. 8, the obtaining module 72 includes:
1) a dividing unit 82, configured to divide the current display screen into a plurality of regions, where the plurality of regions at least includes m × n regions, and m and n are positive integers;
2) a first calculation unit 84 for calculating a luminance value of each region included in the plurality of regions.
In this alternative embodiment, the values of m and n may be any positive integer, and are not limited herein.
By the optional implementation mode, the current display picture is divided into a plurality of areas, and the brightness value of each area is calculated respectively, so that the technical effect of improving the positioning accuracy of the target area is further achieved.
In an alternative embodiment, fig. 9 is a block diagram (two) of a light measuring device of an image capturing apparatus according to an embodiment of the present invention, and as shown in fig. 9, the processing module 84 includes:
1) a first obtaining unit 91, configured to obtain an average value of the luminances of the multiple regions, so as to obtain a first average value;
2) a second obtaining unit 92, configured to obtain, from the multiple regions, regions with luminance values larger than the first average value to obtain a first region set, where regions included in the first region set are part or all of the multiple regions;
3) a second calculating unit 93, configured to calculate an average value of brightness of regions included in the first region set, so as to obtain a second average value;
4) a third obtaining unit 94, configured to obtain a preset range of brightness for determining the target area according to the second average value;
5) a fourth obtaining unit 95, configured to obtain a target area in the current display frame according to the preset brightness range.
According to the optional embodiment, the first area set is obtained according to the obtained first average value, the second average value is obtained according to the average value of the area brightness included in the first area set, the preset brightness range is obtained according to the second average value, and the target area is obtained in the current display picture according to the preset brightness range.
In an alternative embodiment, fig. 10 is a block diagram (three) of a configuration of a light measuring device of an image capturing apparatus according to an embodiment of the present invention, and as shown in fig. 10, the third acquisition unit 94 includes:
1) a first obtaining subunit 102, configured to obtain a first luminance threshold according to the second average value, where the first luminance threshold is a product between the second average value and a predetermined coefficient, and the predetermined coefficient is not greater than 1;
2) a first setting subunit 104, configured to use a difference between the second average value and the first brightness threshold as a minimum value of the preset brightness range;
3) and a second setting subunit 106, configured to use a sum of the second average value and the first brightness threshold as a maximum value of the preset brightness range.
The predetermined coefficient may take any value [0.1.0.5], and in the present embodiment, may be 0.2.
Optionally, in this embodiment, a preset range is obtained through a relationship between the second average value and the first brightness threshold, so that a target area set can be obtained in all areas divided by the current display screen, and further, a photometric weight value of the target area is dynamically adjusted.
In an alternative embodiment, fig. 11 is a block diagram (four) of a configuration of a light measuring device of an image capturing apparatus according to an embodiment of the present invention, and as shown in fig. 11, the fourth acquisition unit 95 includes:
1) a third setting subunit 112, configured to take, as the target area, an area with a brightness value within the preset brightness range in the plurality of areas
Alternatively, in this embodiment, the third setting subunit 112 may be equivalently replaced by a second acquiring subunit, a third acquiring subunit, a judging subunit and a fourth setting subunit. The second obtaining subunit is configured to obtain, from the multiple regions, regions with brightness values within the preset brightness range, to obtain a second region set; a third obtaining subunit, configured to obtain all the region subsets included in the second region set; a judging subunit, configured to judge whether the number of regions included in the region subset satisfies a preset number; and the fourth setting subunit is used for taking the area subset as the target area if the judgment result is yes.
For example, assume that the current display screen is 8 × 8 rectangular regions. If only one region with the brightness value within the preset range is obtained from the 8-by-8 rectangular regions, the region can be directly used as a target region; if there are multiple, for example two, specifically 4 × 4 rectangular regions and 2 × 2 rectangular regions, in this case, the target region may be further obtained according to the number of rectangular regions included in the rectangular regions, for example, 4 × 4 rectangular regions are taken as the target region, and 2 × 2 rectangular regions are ignored.
With the optional embodiment, the target area is obtained in all the areas divided by the current display screen, and the accuracy of photometry for the target area is further improved by dynamically adjusting the weight table of the current display screen, for example, adjusting the photometric weight value of the target area, and the influence of non-target areas on the target area is reduced.
In an alternative embodiment, fig. 12 is a block diagram (five) of the structure of a light measuring device of an image capturing apparatus according to an embodiment of the present invention, as shown in fig. 12, the device includes, in addition to the modules shown in fig. 7:
1) a calculating module 122, configured to calculate an exposure parameter according to the adjusted photometric weight value after the photometric weight value of the target area is adjusted;
2) and the second adjusting module 124 is configured to adjust, according to the exposure parameter, a shooting parameter of the image capturing apparatus when capturing the image displayed in the target area.
Through the steps, automatic exposure calculation is completed according to the adjusted photometric weight value, and the subjective effect of object photometry in a target area is guaranteed to be met under a specific scene.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in a plurality of processors.
Example 3
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, acquiring the brightness value of the current display picture of the image acquisition equipment;
s2, analyzing the brightness value and obtaining a target area in the current display picture according to the analysis result;
and S3, adjusting a photometric weight value of the target area, wherein the photometric weight value is used for adjusting shooting parameters of a picture displayed by the target area.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Alternatively, in the present embodiment, the processor performs the above steps S1, S2, and S3 according to program codes already stored in the storage medium.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A photometry method of an image pickup apparatus, comprising:
acquiring the brightness value of a current display picture of image acquisition equipment;
analyzing the brightness value, and acquiring a target area in the current display picture according to an analysis result;
adjusting a photometric weight value of the target area, wherein the photometric weight value is used for adjusting shooting parameters of a picture displayed by the target area;
the acquiring the brightness value of the current display picture of the image acquisition device comprises:
dividing the current display picture into a plurality of regions, wherein the plurality of regions at least comprise m × n regions, and m and n are positive integers;
calculating a luminance value of each region included in the plurality of regions;
the acquiring of the target area in the current display picture according to the analysis result includes:
obtaining an average value of the brightness of the plurality of areas to obtain a first average value;
obtaining areas with brightness values larger than the first average value from the areas to obtain a first area set, wherein the areas included in the first area set are part or all of the areas;
calculating the average value of the brightness of the areas included in the first area set to obtain a second average value;
acquiring a preset brightness range for determining the target area according to the second average value;
and acquiring a target area in the current display picture according to the preset brightness range.
2. The method according to claim 1, wherein the obtaining a preset range of brightness for determining the target area according to the second average value comprises:
acquiring a first brightness threshold according to the second average value, wherein the first brightness threshold is a product between the second average value and a predetermined coefficient, and the predetermined coefficient is not greater than 1;
taking the difference between the second average value and the first brightness threshold value as the minimum value of the preset brightness range;
and taking the sum of the second average value and the first brightness threshold value as the maximum value of the preset brightness range.
3. The method according to claim 1, wherein the acquiring a target area in the current display frame according to the preset range of brightness comprises:
taking a region of the plurality of regions with a brightness value within the preset brightness range as the target region; or,
obtaining areas with brightness values within the preset brightness range from the multiple areas to obtain a second area set; acquiring all area subsets included in the second area set; judging whether the number of the regions included in the region subset meets a preset number or not; and if the judgment result is yes, taking the area subset as the target area.
4. The method according to any one of claims 1 to 3, further comprising, after adjusting the photometric weight value of the target region:
calculating exposure parameters according to the adjusted photometric weight value;
and adjusting shooting parameters of the image acquisition equipment when acquiring the picture displayed in the target area according to the exposure parameters.
5. A photometry device of an image pickup apparatus, comprising:
the acquisition module is used for acquiring the brightness value of the current display picture of the image acquisition equipment;
the processing module is used for analyzing the brightness value and acquiring a target area in the current display picture according to an analysis result;
the first adjusting module is used for adjusting a photometric weight value of the target area, wherein the photometric weight value is used for adjusting shooting parameters of a picture displayed by the target area;
the acquisition module includes:
the dividing unit is used for dividing the current display picture into a plurality of areas, wherein the plurality of areas at least comprise m × n areas, and m and n are positive integers;
a first calculation unit configured to calculate a luminance value of each of the plurality of regions;
the processing module comprises:
the first obtaining unit is used for obtaining the average value of the brightness of the plurality of areas to obtain a first average value;
a second obtaining unit, configured to obtain, from the multiple regions, a region whose luminance value is greater than the first average value, to obtain a first region set, where a region included in the first region set is part or all of the multiple regions;
the second calculation unit is used for calculating the average value of the brightness of the areas included in the first area set to obtain a second average value;
a third obtaining unit, configured to obtain a preset brightness range for determining the target area according to the second average value;
and the fourth acquisition unit is used for acquiring a target area in the current display picture according to the preset brightness range.
6. The apparatus of claim 5, wherein the third obtaining unit comprises:
a first obtaining subunit, configured to obtain a first brightness threshold according to the second average value, where the first brightness threshold is a product between the second average value and a predetermined coefficient, and the predetermined coefficient is not greater than 1;
the first setting subunit is used for taking the difference between the second average value and the first brightness threshold value as the minimum value of the preset brightness range;
and the second setting subunit is used for taking the sum of the second average value and the first brightness threshold value as the maximum value of the preset brightness range.
7. The apparatus of claim 5, wherein the fourth obtaining unit comprises:
a third setting subunit, configured to take, as the target area, an area of the plurality of areas whose luminance values are within the preset luminance range; or,
the second obtaining subunit is configured to obtain, from the multiple regions, a region with a brightness value within the preset brightness range, to obtain a second region set; a third obtaining subunit, configured to obtain all region subsets included in the second region set; a judging subunit, configured to judge whether the number of regions included in the region subset satisfies a preset number; and the fourth setting subunit is used for taking the area subset as the target area when the judgment result is yes.
8. The apparatus of any one of claims 5 to 7, further comprising:
the calculation module is used for calculating exposure parameters according to the adjusted photometric weight value after the photometric weight value of the target area is adjusted;
and the second adjusting module is used for adjusting the shooting parameters of the image acquisition equipment when acquiring the picture displayed in the target area according to the exposure parameters.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610186562.9A CN107241556B (en) | 2016-03-29 | 2016-03-29 | Light measuring method and device of image acquisition equipment |
PCT/CN2016/088768 WO2017166479A1 (en) | 2016-03-29 | 2016-07-06 | Light measurement method and apparatus of image collection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610186562.9A CN107241556B (en) | 2016-03-29 | 2016-03-29 | Light measuring method and device of image acquisition equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107241556A CN107241556A (en) | 2017-10-10 |
CN107241556B true CN107241556B (en) | 2021-02-23 |
Family
ID=59962530
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610186562.9A Active CN107241556B (en) | 2016-03-29 | 2016-03-29 | Light measuring method and device of image acquisition equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107241556B (en) |
WO (1) | WO2017166479A1 (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881737A (en) * | 2018-07-06 | 2018-11-23 | 漳州高新区远见产业技术研究有限公司 | A kind of VR imaging method applied to mobile terminal |
CN110958398B (en) * | 2018-09-27 | 2021-08-31 | 浙江宇视科技有限公司 | Motion point light source restraining method and device |
CN109788206B (en) * | 2019-01-28 | 2020-12-15 | 昆山品源知识产权运营科技有限公司 | Photometry method, photometry device, photographing apparatus, and storage medium |
CN111343388B (en) * | 2019-04-11 | 2021-09-24 | 杭州海康慧影科技有限公司 | Method and device for determining exposure time |
CN112215218A (en) * | 2019-07-12 | 2021-01-12 | 无锡先导智能装备股份有限公司 | Target area acquisition method and visual detection method |
CN110427108A (en) * | 2019-07-26 | 2019-11-08 | Oppo广东移动通信有限公司 | Photographic method and Related product based on eyeball tracking |
CN110766727A (en) * | 2019-10-22 | 2020-02-07 | 歌尔股份有限公司 | Depth module brightness calibration method and device, readable storage medium and depth camera |
CN111430256B (en) * | 2020-04-01 | 2023-05-02 | 武汉华星光电半导体显示技术有限公司 | Color mixing detection method and device for panel in EL (electroluminescent) process |
CN112422842B (en) * | 2020-11-18 | 2022-05-31 | 重庆紫光华山智安科技有限公司 | Self-adaptive exposure method, medium and terminal |
CN112697167A (en) * | 2020-11-23 | 2021-04-23 | 深圳市越疆科技有限公司 | Threshold adjusting method of infrared tracking sensor and electronic equipment |
CN114449176B (en) * | 2022-01-10 | 2024-06-14 | 瑞芯微电子股份有限公司 | Automatic exposure method, dynamic range identification method, device, medium and equipment |
CN115086632B (en) * | 2022-05-23 | 2024-05-31 | 奥比中光科技集团股份有限公司 | Three-dimensional image system, gain adjustment method for image sensor, and storage medium |
CN115278989B (en) * | 2022-08-02 | 2024-05-03 | 南京奥拓电子科技有限公司 | Light brightness self-adaptive adjusting method and system |
CN117082193A (en) * | 2023-07-27 | 2023-11-17 | 广州开得联软件技术有限公司 | Video picture brightness equalization method, device, equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008257083A (en) * | 2007-04-09 | 2008-10-23 | Nikon Corp | Electronic camera |
CN102547132A (en) * | 2011-12-31 | 2012-07-04 | 蔡静 | Method and device for carrying out shooting under backlighting condition, and camera |
CN102917180A (en) * | 2011-08-05 | 2013-02-06 | 佳能企业股份有限公司 | Image picking-up method and image picking-up device |
CN103167244A (en) * | 2011-12-09 | 2013-06-19 | 宏达国际电子股份有限公司 | Portable electronic device with a camera function, and image capturing method with auto exposure control |
CN103702037A (en) * | 2013-12-04 | 2014-04-02 | 杨新锋 | Automatic regulating method for video image brightness |
CN103957362A (en) * | 2014-05-05 | 2014-07-30 | 广东欧珀移动通信有限公司 | Method and system for automatically adjusting exposure effect of camera |
CN104301624A (en) * | 2014-10-30 | 2015-01-21 | 青岛海信移动通信技术股份有限公司 | Image shooting brightness control method and device |
CN104394326A (en) * | 2014-11-10 | 2015-03-04 | 广东欧珀移动通信有限公司 | Photometry method and terminal |
CN105323496A (en) * | 2015-02-13 | 2016-02-10 | 维沃移动通信有限公司 | Automatic exposure method, photographing device and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI536830B (en) * | 2014-03-10 | 2016-06-01 | Nat Univ Chung Cheng | Measuring an exposure parameter art high dynamic range image generating method |
-
2016
- 2016-03-29 CN CN201610186562.9A patent/CN107241556B/en active Active
- 2016-07-06 WO PCT/CN2016/088768 patent/WO2017166479A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008257083A (en) * | 2007-04-09 | 2008-10-23 | Nikon Corp | Electronic camera |
CN102917180A (en) * | 2011-08-05 | 2013-02-06 | 佳能企业股份有限公司 | Image picking-up method and image picking-up device |
CN103167244A (en) * | 2011-12-09 | 2013-06-19 | 宏达国际电子股份有限公司 | Portable electronic device with a camera function, and image capturing method with auto exposure control |
CN102547132A (en) * | 2011-12-31 | 2012-07-04 | 蔡静 | Method and device for carrying out shooting under backlighting condition, and camera |
CN103702037A (en) * | 2013-12-04 | 2014-04-02 | 杨新锋 | Automatic regulating method for video image brightness |
CN103957362A (en) * | 2014-05-05 | 2014-07-30 | 广东欧珀移动通信有限公司 | Method and system for automatically adjusting exposure effect of camera |
CN104301624A (en) * | 2014-10-30 | 2015-01-21 | 青岛海信移动通信技术股份有限公司 | Image shooting brightness control method and device |
CN104394326A (en) * | 2014-11-10 | 2015-03-04 | 广东欧珀移动通信有限公司 | Photometry method and terminal |
CN105323496A (en) * | 2015-02-13 | 2016-02-10 | 维沃移动通信有限公司 | Automatic exposure method, photographing device and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
WO2017166479A1 (en) | 2017-10-05 |
CN107241556A (en) | 2017-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107241556B (en) | Light measuring method and device of image acquisition equipment | |
CN108174118B (en) | Image processing method and device and electronic equipment | |
US10713767B2 (en) | Regulation method, terminal equipment and non-transitory computer-readable storage medium for automatic exposure control of region of interest | |
CN104301624B (en) | A kind of image taking brightness control method and device | |
CN109829859B (en) | Image processing method and terminal equipment | |
JP2012044428A (en) | Tracker, tracking method and program | |
JP2018503325A (en) | System and method for performing operations on pixel data | |
EP2460142A1 (en) | Digital image brightness adjustment using range information | |
CN106651797B (en) | Method and device for determining effective area of signal lamp | |
CN111368587B (en) | Scene detection method, device, terminal equipment and computer readable storage medium | |
CN110784659B (en) | Exposure control method and device and storage medium | |
CN112383772B (en) | Camera performance automatic test method and device, electronic equipment and storage medium | |
CN112116551A (en) | Camera shielding detection method and device, electronic equipment and storage medium | |
CN106791915A (en) | A kind of method and apparatus for showing video image | |
CN111896233B (en) | Contrast testing method, contrast testing device and storage medium | |
CN111369471A (en) | Image processing method, device, equipment and storage medium | |
CN115206225A (en) | Screen brightness adjusting method, system, device and storage medium | |
CN110264402B (en) | Image fusion method, image fusion device, storage medium and electronic device | |
CN111064864A (en) | Method and device for setting distortion correction parameters and endoscope system | |
CN110933304B (en) | Method and device for determining to-be-blurred region, storage medium and terminal equipment | |
EP3244608B1 (en) | Panoramic shooting exposure method and apparatus | |
CN116708756A (en) | Sensor accuracy detection method, detection device, electronic device, and storage medium | |
CN113422893B (en) | Image acquisition method and device, storage medium and mobile terminal | |
CN109672829A (en) | Method of adjustment, device, storage medium and the terminal of brightness of image | |
CN111767757B (en) | Identity information determining method and 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 |