Image shooting method, image shooting device and storage medium
By determining the current distance scene based on the time-of-flight lattice distance and matching the target metering method, the problem of poor exposure effect caused by fixed dimming windows in the prior art is solved, and dynamically adjusting the metering method is achieved to optimize the image exposure effect.
Patent Information
- Application Number
- CN202011350468.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-26
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2040-11-26
AI Technical Summary
The prior art selects a fixed dimming window during shooting and dimming, resulting in poor exposure effects of specific scenes and cannot meet shooting needs.
By determining the current distance scene based on the lattice distance in the time of flight, and determining the matching target metering method for image shooting based on the correspondence between the distance scene and the metering method.
It realizes dynamic adjustment of the metering method during image shooting, optimizes dimming quality, and achieves ideal image exposure effects, thereby improving user experience.
Smart Images

Figure CN114554103B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to an image capturing method, an image capturing device, and a storage medium. Background Art
[0002] With the development of electronic technology, the emergence of electronically controlled automatic light meters has changed the tedious process of adjusting shutter speed and aperture during shooting. In order to obtain the best shooting effect, the light metering system of the shooting device measures the brightness of the light reflected by the subject, and selects different light metering methods to automatically measure the image according to different shooting scenes indoors and outdoors. For example, the shooting device provides spot metering, average metering, center-weighted metering and other light metering methods, and adjusts the light metering value of the shooting picture according to the light metering results, thereby obtaining photos with the best light metering effect.
[0003] The current technology selects a fixed dimming window during the shooting dimming process, that is, the entire image is selected as the metering area for metering. When metering and measuring for specific scenes, the exposure effect during shooting is poor and cannot meet shooting requirements. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides an image capturing method, an image capturing device and a storage medium.
[0005] According to one aspect of an embodiment of the present disclosure, there is provided an image capturing method, comprising: determining a current distance scene based on a time-of-flight dot matrix distance, wherein there is a corresponding relationship between the distance scene and the light metering method; determining a target light metering method that matches the current distance scene, and using the target light metering method to capture the image.
[0006] In one embodiment, the current distance scene includes a first distance scene, a second distance scene or a third distance scene; based on the flight time lattice distance, determining the current distance scene includes: if the flight time lattice distance is less than a first ratio threshold of the flight time lattice limit ranging distance, determining that the current distance scene is the first distance scene; if the flight time lattice distance is greater than a second ratio threshold of the flight time lattice limit ranging distance, determining that the current distance scene is the second distance scene; if the flight time lattice distance is greater than the first ratio threshold of the flight time lattice limit ranging distance and less than the second ratio threshold of the flight time lattice limit ranging distance, determining that the current distance scene is the third distance scene; wherein the first ratio threshold is less than the second ratio threshold.
[0007] In one embodiment, determining the target light metering mode that matches the current distance scene includes at least one of the following: when the current distance scene is the second distance scene, based on the concentration degree of distance distribution of all pixels in the image area, determining the local light metering mode or the multi-spot light metering mode as the target light metering mode; when the current distance scene is the third distance scene, based on the concentration degree of distance distribution of all pixels in the central area of the image, determining the central light metering mode or the local light metering mode as the target light metering mode; when the current distance scene is the first distance scene, determining the central light metering mode as the target light metering mode.
[0008] In one embodiment, based on the concentration degree of distance distribution of all pixels in the image area, determining whether the local metering mode or the multi-spot metering mode is the target metering mode includes: when a first preset condition is met, determining the local metering mode as the target metering mode, and determining the area corresponding to the pixels that meet the first preset condition as the metering area; when the first preset condition is not met, determining the multi-spot metering mode as the target metering mode, and the metering area corresponding to the target metering mode is the entire image area; wherein the first preset condition includes: the ratio between the number of pixels within a preset distance range and the total number of pixels in the image area is greater than a first preset ratio threshold.
[0009] In one embodiment, based on the concentration degree of distance distribution of all pixels in the central area of the image, determining whether the central metering mode or the local metering mode is the target metering mode includes: when a second preset condition is met, determining the central metering mode as the target metering mode, and the metering area corresponding to the target metering mode is the central area of the image; when the second preset condition is not met, determining the local metering mode as the target metering mode; wherein the second preset condition includes: in the central area of the image, the ratio between the number of pixels and the total number of pixels in the image area is greater than a second preset ratio threshold.
[0010] In one embodiment, before using the target metering method to capture an image, the method further includes: if the current distance scene is a first distance scene and the current picture zoom value is greater than a threshold of a preset picture zoom value, adjusting the metering area based on the ratio of the current picture zoom value to the maximum zoom multiple.
[0011] According to another aspect of an embodiment of the present disclosure, an image capture device is provided, comprising: a determination module for determining a current distance scene based on a time-of-flight dot matrix distance, wherein there is a corresponding relationship between the distance scene and the light metering method, and determining a target light metering method that matches the current distance scene; and an image capture module for capturing an image using the target light metering method.
[0012] In one embodiment, the current distance scene includes a first distance scene, a second distance scene or a third distance scene; the determination module determines the current distance scene based on the flight time lattice distance in the following manner: if the flight time lattice distance is less than a first ratio threshold of the flight time lattice limit ranging distance, the current distance scene is determined to be the first distance scene; if the flight time lattice distance is greater than a second ratio threshold of the flight time lattice limit ranging distance, the current distance scene is determined to be the second distance scene; if the flight time lattice distance is greater than the first ratio threshold of the flight time lattice limit ranging distance and less than the second ratio threshold of the flight time lattice limit ranging distance, the current distance scene is determined to be the third distance scene; wherein the first ratio threshold is less than the second ratio threshold.
[0013] In one embodiment, the determination module uses at least one of the following methods to determine a target metering mode that matches the current distance scene: when the current distance scene is the second distance scene, based on the concentration degree of distance distribution of all pixels in the image area, a local metering mode or a multi-spot metering mode is determined as the target metering mode; when the current distance scene is the third distance scene, based on the concentration degree of distance distribution of all pixels in the central area of the image, a central metering mode or a local metering mode is determined as the target metering mode; when the current distance scene is the first distance scene, the central metering mode is determined as the target metering mode.
[0014] In one embodiment, the determination module determines whether the local photometry mode or the multi-spot photometry mode is the target photometry mode based on the concentration degree of distance distribution of all pixels in the image area in the following manner: when a first preset condition is met, the local photometry mode is determined to be the target photometry mode, and the area corresponding to the pixels that meet the first preset condition is determined as the photometry area; when the first preset condition is not met, the multi-spot photometry mode is determined to be the target photometry mode, and the photometry area corresponding to the target photometry mode is the entire image area; wherein the first preset condition includes: the ratio between the number of pixels within a preset distance range and the total number of pixels in the image area is greater than a first preset ratio threshold.
[0015] In one embodiment, the determination module determines whether the central metering mode or the local metering mode is the target metering mode based on the concentration degree of distance distribution of all pixels in the central area of the image in the following manner: when a second preset condition is met, the central metering mode is determined to be the target metering mode, and the metering area corresponding to the target metering mode is the central area; when the second preset condition is not met, the local metering mode is determined to be the target metering mode; wherein the second preset condition includes: in the central area, the ratio between the number of pixels and the total number of pixels in the image area is greater than a second preset ratio threshold.
[0016] In one embodiment, the image capture device further includes: an adjustment module, which is used to adjust the metering area based on the ratio of the current picture zoom value to the maximum zoom multiple when the current distance scene is the first distance scene and the current picture zoom value is greater than a threshold of a preset picture zoom value.
[0017] According to another aspect of an embodiment of the present disclosure, there is provided an image capturing device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to: execute any one of the aforementioned image capturing methods.
[0018] According to another aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal can execute any of the aforementioned image capturing methods.
[0019] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: realizing dynamic adjustment of the metering method in image capture, optimizing dimming quality, achieving an ideal image exposure effect, and thus improving user experience.
[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0022] Figure 1 is a flowchart of an image capturing method according to an exemplary embodiment of the present disclosure.
[0023] Figure 2 The figure is a schematic diagram of a histogram obtained by counting distances between pixels in a shooting scene according to an exemplary embodiment of the present disclosure.
[0024] Figure 3It is a schematic diagram showing the relationship between a distance scene and a field of view according to an exemplary embodiment of the present disclosure.
[0025] Figure 4 is a flowchart of an image capturing method according to yet another exemplary embodiment of the present disclosure.
[0026] Figure 5 is a flowchart of an image capturing method according to yet another exemplary embodiment of the present disclosure.
[0027] Figure 6 is a flowchart of an image capturing method according to yet another exemplary embodiment of the present disclosure.
[0028] Figure 7 is a flowchart of an image capturing method according to yet another exemplary embodiment of the present disclosure.
[0029] Figure 8a-8d is a schematic diagram showing the relationship between the zoom degree and the light metering area according to an exemplary embodiment of the present disclosure.
[0030] Fig. 9 is a block diagram of an image capturing device according to an exemplary embodiment of the present disclosure.
[0031] Fig.10 is a block diagram of an image capturing device according to yet another exemplary embodiment of the present disclosure.
[0032] Fig.11 is a block diagram of an image capturing device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0034] With the development of electronic technology, the emergence of electronically controlled automatic light meters has changed the tedious process of adjusting shutter speed and aperture during shooting. In order to obtain the best shooting effect, the light metering system of the shooting device measures the brightness of the light reflected by the subject, and selects different light metering methods to automatically measure the image according to different shooting scenes indoors and outdoors. For example, the shooting device provides spot metering, average metering, center-weighted metering and other light metering methods, and adjusts the light metering value of the shooting picture according to the light metering results, thereby obtaining photos with the best light metering effect.
[0035] Time-of-flight ranging is a non-contact distance measurement using the time-of-flight method, that is, by measuring the time it takes for near-infrared light to reflect from an object after it is emitted, combined with a constant light speed, the distance between the sensor and the object is obtained. The distance measurement result is accurate and has strong anti-interference ability.
[0036] The current technology selects a fixed dimming window during the shooting dimming process, that is, the entire image is selected as the metering area for metering. When metering and measuring for specific scenes, the exposure effect during shooting is poor and cannot meet shooting requirements.
[0037] Therefore, the present disclosure provides an image shooting method, which identifies a distance scene, determines a light metering method that matches the current distance scene, and uses the light metering method that matches the current distance scene to perform light metering, thereby achieving dynamic adjustment of the light metering method.
[0038] Figure 1 is a flowchart of an image capturing method according to an exemplary embodiment of the present disclosure. Figure 1 As shown, the image capturing method includes the following steps.
[0039] In step S101, the current distance scene is determined based on the time-of-flight point array distance, wherein there is a corresponding relationship between the distance scene and the light measurement method.
[0040] In step S102, a target light metering mode matching the current distance scene is determined, and the target light metering mode is used to capture an image.
[0041] In one embodiment of the present disclosure, an image capture method is applied during a capture process, and a time-of-flight dot matrix is provided in a capture device. Based on the time-of-flight dot matrix ranging, the actual position information of each pixel in the field of view can be obtained to obtain the time-of-flight dot matrix distance. For example, the photosensitive chip of the time-of-flight ranging device can adopt a planar array photosensitive chip to measure the surface position depth information of the entire three-dimensional object, and obtain the surface geometric structure information of the entire scene of the capture scene in real time. The time-of-flight dot matrix distance can correspond one-to-one to the actual position of each pixel in the field of view, that is, the time-of-flight dot matrix distance includes the distance between each pixel in the field and the capture device.
[0042] Determine a metering method that matches the current distance scene, and use the metering method that matches the current distance scene to perform metering. The metering method may be local metering, spot metering, central metering, etc. Different metering methods may correspond to different metering areas, that is, in the determined metering area, use the metering method that matches the current distance scene to perform metering.
[0043] According to the embodiments of the present disclosure, a time-of-flight dot matrix is used to identify distance scenes, determine a light metering method that matches the current distance scene, and use the light metering method that matches the current distance scene for image capture. This enables dynamic adjustment of the light metering method during image capture, optimizes dimming quality, and achieves an ideal image exposure effect, thereby improving user experience.
[0044] Figure 2 The figure is a schematic diagram of a histogram obtained by counting distances between pixels in a shooting scene according to an exemplary embodiment of the present disclosure.
[0045] In one embodiment of the present disclosure, when the time-of-flight dot matrix distance is counted to determine the current distance scene, for example, the distance of each pixel point of the scene of the photographed object can be determined based on the time of flight, and in the histogram of the distance of each pixel point, the histogram represents the distance distribution of the pixel points in the scene. It can be a preset distance distribution threshold, and in the histogram, the pixel points in the photographed scene that are greater than the preset distance distribution threshold are determined, and the average value of the distances of the determined pixel points is determined as the distance of the current scene. Based on the distance of the current scene, the current distance scene is determined. There is a corresponding relationship between the distance scene and the metering method.
[0046] In one embodiment of the present disclosure, the current distance scene includes a first distance scene, a second distance scene, or a second distance scene.
[0047] The current distance scene is divided according to the flight time limit distance, that is, if the flight time dot matrix distance is less than the first ratio threshold of the flight time dot matrix limit distance, the current distance scene is determined to be the first distance scene. It can be understood that the limit distance is the maximum limit value of the flight time dot matrix, or the calibrated maximum value.
[0048] If the time-of-flight point array distance is greater than the second ratio threshold of the time-of-flight point array limit ranging distance, the current distance scene is determined to be the second distance scene. The first ratio threshold is less than the second ratio threshold.
[0049] If the time-of-flight lattice distance is greater than the first ratio threshold of the time-of-flight lattice limit ranging distance and less than the second ratio threshold of the time-of-flight lattice limit ranging distance, it is determined that the current distance scene is the third distance scene.
[0050] For example, if the flight time limit ranging distance, the first ratio threshold is 5%, and the second ratio threshold is 30%, then the flight time dot matrix distance is less than 5% of the flight time dot matrix limit ranging distance, then the current distance scene is determined to be the first distance scene, and the first distance scene is the close distance scene. If the flight time dot matrix distance is greater than 30% of the flight time dot matrix limit ranging distance, then the current distance scene is determined to be the second distance scene, and the second distance scene is the long distance scene. If the flight time dot matrix distance is greater than 5% of the flight time dot matrix limit ranging distance and less than 30% of the flight time dot matrix limit ranging distance, then the current distance scene is determined to be the third distance scene, and the third distance scene is the medium distance scene. The first ratio threshold is 5% and the second ratio threshold is 30%, and adjustments can also be made based on the shooting mode such as telephoto, wide angle, macro, etc. adopted by the shooting device to change the first ratio threshold and / or the second ratio threshold, thereby changing the division and judgment of long distance, medium distance, and close distance.
[0051] Figure 3 is a schematic diagram showing the relationship between a distance scene and a field of view according to an exemplary embodiment of the present disclosure, such as Figure 3 As shown, when the shooting device shoots a scene, the field of view changes with the change of the object distance. The object distances of various objects in the scene corresponding to a large field of view are different, and the object distances of objects in the scene corresponding to a small field of view are less different. Figure 3 In the figure, the changes in the field of view at long distance, medium distance and close distance are shown from top to bottom. By determining different distance scenes, a basis is provided for selecting the light metering method.
[0052] Figure 4 is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure. Figure 4 As shown, the image capturing method includes the following steps.
[0053] In step S201, the current distance scene is determined based on the time-of-flight point array distance, wherein there is a corresponding relationship between the distance scene and the light measurement method.
[0054] In step S202, when the current distance scene is the second distance scene, based on the concentration degree of distance distribution of all pixels in the image area, the local light metering mode or the multi-spot light metering mode is determined as the target light metering mode.
[0055] In step S203, when the current distance scene is the third distance scene, the central metering mode or the local metering mode is determined as the target metering mode based on the concentration degree of distance distribution of all pixels in the central area of the image.
[0056] In step S204, when the current distance scene is the first distance scene, the central light metering mode is determined as the target light metering mode.
[0057] In step S205, image capture is performed using a target light metering method.
[0058] In the disclosed embodiment, when the time-of-flight array distance is greater than the second ratio threshold of the time-of-flight array limit ranging distance, the current distance scene is determined to be the second distance scene, i.e., the long-distance scene. The corresponding field of view is larger in the long-distance scene, so based on the concentration of the distance distribution of all pixels in the image area, a local metering method or a multi-point metering method is selected as the target metering method. When the distance distribution of all pixels in the image area is concentrated, the area with concentrated distance distribution is selected as the metering area for local metering. When the distance distribution of all pixels in the image area is relatively uniform, a multi-point metering method is selected to make the selection of the metering method more accurate.
[0059] In an embodiment of the present disclosure, when the time-of-flight distance of the time-of-flight dot matrix is greater than the first ratio threshold of the time-of-flight dot matrix limit ranging distance, and is less than the second ratio threshold of the time-of-flight dot matrix limit ranging distance, the current distance scene is determined to be a third distance scene, i.e., a medium-distance scene. The corresponding field of view under the medium-distance scene is relatively moderate, so based on the concentration of the distance distribution of all pixels in the central area of the image, the central metering mode or the local metering mode is determined as the target metering mode. If the distance distribution of all pixels in the central area is relatively concentrated, the central metering mode is selected, otherwise the local metering mode is selected. In an embodiment of the present disclosure, the central area of the image can be an area of a preset size formed by expanding outward in the image plane with the geometric center of the image as the center point.
[0060] In the disclosed embodiment, when the time-of-flight array distance is less than the first ratio threshold of the time-of-flight array limit ranging distance, the current distance scene is determined to be the first distance scene, i.e., the close-distance scene. The corresponding field of view in the close-distance scene is small, and in the close-distance field of view, the central area metering mode is determined to be the target metering mode.
[0061] According to the embodiments of the present disclosure, based on the time-of-flight dot matrix distance, it is determined that the current distance scene is a long-distance scene, a medium-distance scene, or a close-distance scene, different target metering methods matching the current distance scene are determined, and the determined target metering methods are used for image capture, thereby realizing dynamic adjustment of the metering method during the shooting process, optimizing the dimming quality, and achieving an ideal exposure effect.
[0062] Figure 5 is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure. Figure 5 As shown, the image capturing method includes the following steps.
[0063] In step S301, the current distance scene is determined based on the time-of-flight point array distance, wherein there is a corresponding relationship between the distance scene and the light measurement method.
[0064] In step S302, if the current distance scene is the second distance scene, when the first preset condition is met, the local light metering mode is determined as the target light metering mode, and the area corresponding to the pixels meeting the first preset condition is determined as the light metering area.
[0065] In step S303, if the current distance scene is the second distance scene and the first preset condition is not satisfied, the multi-point metering mode is determined to be the target metering mode, and the metering area corresponding to the target metering mode is the entire image area.
[0066] In step S304, image capture is performed using a target light metering method.
[0067] In the embodiment of the present disclosure, the first preset condition includes: the ratio between the number of pixels in the preset distance range and the number of all pixels in the image area is greater than the first preset ratio threshold. That is, the number of pixels greater than the first preset ratio threshold of the number of all pixels in the image area and the pixels within the preset distance range should fall within the area for light measurement.
[0068] When the time-of-flight dot matrix distance is greater than the second ratio threshold of the time-of-flight dot matrix limit ranging distance, the current distance scene is determined to be the second distance scene, that is, the long-distance scene. The corresponding field of view in the long-distance scene is larger, so based on the concentration of the distance distribution of all pixels in the image area, the local metering method or the multi-point metering method is selected as the target metering method.
[0069] In the preset distance range, the ratio between the number of pixels and the number of all pixels in the image area is greater than the first preset ratio threshold value. At this time, the pixels in the preset distance range are concentrated, that is, when the first preset condition is met, the area with concentrated distance distribution is selected as the metering area for local metering. When the first preset condition is not met in the image, that is, when the distance distribution of all pixels in the image area is relatively uniform, when the first preset condition is not met, the entire image area is selected for multi-point metering, so that the selection of the metering method is more accurate.
[0070] According to the embodiments of the present disclosure, based on the time-of-flight dot matrix distance, the current distance scene is determined to be a long-distance scene, different target metering methods matching the long-distance scene are determined, and the determined target metering methods are used for image capture, thereby realizing dynamic adjustment of the metering method during the shooting process, optimizing the dimming quality, and achieving an ideal exposure effect.
[0071] Figure 6 is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure. Figure 6As shown, the image capturing method includes the following steps.
[0072] In step S401, the current distance scene is determined based on the time-of-flight point array distance, wherein there is a corresponding relationship between the distance scene and the light measurement method.
[0073] In step S402, if the current distance scene is the third distance scene, when the second preset condition is met, the central light metering mode is determined as the target light metering mode, and the light metering area corresponding to the target light metering mode is the central area of the image.
[0074] In step S403, if the current distance scene is the third distance scene and the second preset condition is not satisfied, the local light metering mode is determined to be the target light metering mode.
[0075] In step S404, image capture is performed using a target light metering method.
[0076] In the disclosed embodiment, the second preset condition includes: in the central area of the image, the ratio between the number of pixels and the total number of pixels in the image area is greater than the second preset ratio threshold. If the flight time distance of the time-of-flight dot matrix is greater than the first ratio threshold of the flight time dot matrix limit ranging distance, and less than the second ratio threshold of the flight time dot matrix limit ranging distance, then the current distance scene is determined to be a third distance scene, that is, a medium distance scene. The corresponding field of view under the medium distance scene is relatively moderate, then based on the concentration degree of the distance distribution of all pixels in the central area of the image, the central metering mode or the local metering mode is determined as the target metering mode. If the distance distribution of all pixels in the central area of the image is relatively concentrated, then the central metering mode is selected, otherwise the local metering mode is selected. In the central area of the image, when the ratio between the number of pixels and the total number of pixels in the image area is greater than the second preset ratio threshold, the distance distribution of all pixels is relatively concentrated. In the central area of the image, the central metering mode is used as the target metering mode to capture the image.
[0077] When the ratio between the number of pixels in the central area of the image and the number of all pixels in the image area is less than the second preset ratio threshold, the distance distribution of all pixels is relatively uniform and dispersed, and the local metering mode is determined to be the target metering mode. The image can be captured by performing local metering within the distribution range of all pixels.
[0078] According to the embodiments of the present disclosure, based on the time-of-flight dot matrix distance, the current distance scene is determined to be a medium-distance scene, different target metering methods matching the medium-distance scene are determined, and the determined target metering methods are used for image capture, thereby realizing dynamic adjustment of the metering method during the shooting process, optimizing the dimming quality, and achieving an ideal exposure effect.
[0079] Figure 7is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure. Figure 7 As shown, the image capturing method includes the following steps.
[0080] In step S501, the current distance scene is determined based on the time-of-flight point array distance, wherein there is a corresponding relationship between the distance scene and the light measurement method.
[0081] In step S502, if the current distance scene is the first distance scene, the central metering mode is determined as the target metering mode. If the current picture zoom value is greater than the threshold of the preset picture zoom value, the metering area is adjusted based on the ratio of the current picture zoom value to the maximum zoom multiple.
[0082] In step S503, image capture is performed using a target light metering method.
[0083] In the disclosed embodiment, when the time-of-flight array distance is less than the first ratio threshold of the time-of-flight array limit ranging distance, the current distance scene is determined to be the first distance scene, i.e., the close-distance scene. The corresponding field of view in the close-distance scene is small, and in the close-distance field of view, the central metering mode is determined to be the target metering mode.
[0084] Figure 8a-8d is a schematic diagram showing the relationship between the zoom level and the light metering area according to an exemplary embodiment of the present disclosure. When the zoom level of the picture is large, it is equivalent to a correspondingly small field of view, so the light metering area should be expanded accordingly. Figure 8a-8d , Figure 8a The corresponding zoom level is greater than Figure 8b The degree of zoom, Figure 8a and Figure 8b The box in the depth of field diagram represents the actual field of view. Figure 8c and Figure 8d The solid boxes in the Figure 8a and Figure 8b The box in the figure represents the actual field of view, while the dotted box corresponds to the Figure 8a and Figure 8b The metering area is adjusted according to the zoom level of the image.
[0085] In the embodiment of the present disclosure, in the case of a close-up scene, the central metering mode is selected, and if the current image zoom value exceeds the image zoom value threshold, the metering area is adjusted based on the ratio of the current image zoom value to the maximum zoom multiple. For example, the metering area may be expanded with the central area as the center according to a set ratio.
[0086] In one example, the threshold of the preset image zoom value is 5X, the maximum zoom multiple is 50X, and during the current shooting process, the image zoom value is 7X, which exceeds the threshold of the preset image zoom value. In order to make the metering more accurate, the metering area needs to be adjusted, that is, the metering area is expanded to obtain more image information. The metering area can be dynamically expanded according to the following formula.
[0087] ROI_region'=ROI_region*(0.95+roi_thred / max_crop)
[0088] In the formula, ROI_region' is the expanded photometric area, ROI_region is the original photometric area without image zooming, roi_thred is the current image zoom value, and max_crop is the maximum zoom multiple of the current image zoom value. It can be understood that in the above formula, 0.95 can be adjusted according to the parameters of the image capture device.
[0089] According to the embodiment of the present disclosure, based on the flight time dot matrix distance, the current distance scene is determined to be the first distance scene, that is, the close-range scene, and the central metering mode is determined to be the metering mode that matches the current distance scene. When there is a large zoom in the picture, the dimming area is dynamically corrected and adjusted, and central metering is performed based on the adjusted metering area, so as to further improve the reasonable exposure effect adapted to the close-range field of view scene.
[0090] Based on the same concept, an embodiment of the present disclosure also provides an image capturing device.
[0091] It is understandable that in order to realize the above functions, the image capture device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0092] Fig. 9 is a block diagram of an image capturing device according to an exemplary embodiment of the present disclosure, referring to Fig. 9 , the image capturing device 100 includes a determining module 101 and an image capturing module 102 .
[0093] The determination module 101 determines the current distance scene based on the time-of-flight point array distance, wherein there is a corresponding relationship between the distance scene and the photometry mode, and determines a target photometry mode that matches the current distance scene.
[0094] The image capturing module 102 is used to capture images using a target light metering method.
[0095] In one embodiment, the current distance scene includes a first distance scene, a second distance scene or a third distance scene; the determination module 101 determines the current distance scene based on the flight time lattice distance in the following manner: if the flight time lattice distance is less than a first ratio threshold of the flight time lattice extreme ranging distance, the current distance scene is determined to be the first distance scene; if the flight time lattice distance is greater than a second ratio threshold of the flight time lattice extreme ranging distance, the current distance scene is determined to be the second distance scene; if the flight time lattice distance is greater than the first ratio threshold of the flight time lattice extreme ranging distance and less than the second ratio threshold of the flight time lattice extreme ranging distance, the current distance scene is determined to be the third distance scene; wherein the first ratio threshold is less than the second ratio threshold.
[0096] In one embodiment, the determination module 101 determines the target metering mode that matches the current distance scene in the following manner: if the current distance scene is the second distance scene, then based on the concentration degree of distance distribution of all pixels in the image area, the local metering mode or the multi-spot metering mode is determined as the target metering mode; or if the current distance scene is the third distance scene, then based on the concentration degree of distance distribution of all pixels in the central area of the image, the central metering mode or the local metering mode is determined as the target metering mode; or if the current distance scene is the first distance scene, the central metering mode is determined as the target metering mode.
[0097] In one embodiment, the determination module 101 determines whether the local photometry mode or the multi-spot photometry mode is the target photometry mode based on the concentration degree of distance distribution of all pixels in the image area in the following manner: when a first preset condition is met, the local photometry mode is determined as the target photometry mode, and the area corresponding to the pixels that meet the first preset condition is determined as the photometry area; when the first preset condition is not met, the multi-spot photometry mode is determined as the target photometry mode, and the photometry area corresponding to the target photometry mode is the entire image area; wherein the first preset condition includes: the ratio between the number of pixels within a preset distance range and the number of all pixels in the image area is greater than a first preset ratio threshold.
[0098] In one embodiment, the determination module 101 determines whether the central metering mode or the local metering mode is the target metering mode based on the concentration degree of distance distribution of all pixels in the central area of the image in the following manner: when the second preset condition is met, the central metering mode is determined to be the target metering mode, and the metering area corresponding to the target metering mode is the central area of the image; when the second preset condition is not met, the local metering mode is determined to be the target metering mode; wherein the second preset condition includes: in the central area of the image, the ratio between the number of pixels and the total number of pixels in the image area is greater than a second preset ratio threshold.
[0099] Fig.10 is a block diagram of an image capturing device according to an exemplary embodiment. Fig.10 The image capturing device 100 further includes an adjustment module 103 .
[0100] The adjustment module 103 is configured to adjust the light metering area based on the ratio of the current image zoom value to the maximum zoom multiple when the current distance scene is the first distance scene and the current image zoom value is greater than a threshold of a preset image zoom value.
[0101] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0102] Fig.11 8 is a block diagram of an image capturing device 800 according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0103] Reference Fig.11 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0104] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0105] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0106] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0107] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0108] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0109] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0110] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800 and the temperature change of the device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0111] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0112] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0113] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0114] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0115] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0116] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0117] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0118] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0119] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An image capturing method, characterized in that: The image capturing method comprises: Based on the time-of-flight dot matrix distance, determining a current distance scene, wherein the current distance scene is divided according to the limit distance measurement distance of the time of flight, and there is a corresponding relationship between the distance scene and the light measurement method; Determine a target light metering method that matches the current distance scene, and use the target light metering method to capture an image; The determining of a target light metering method matching the current distance scene includes: When the current distance scene is the second distance scene, based on the concentration of distance distribution of all pixels in the image area, determining the local light metering mode or the multi-spot light metering mode as the target light metering mode; and / or, When the current distance scene is the third distance scene, determining the central light metering mode or the local light metering mode as the target light metering mode based on the concentration of the distance distribution of all pixels in the central area of the image; and When the current distance scene is the first distance scene, determining the central light metering mode as the target light metering mode; The time-of-flight lattice distance of the first distance scene is smaller than the time-of-flight lattice distance of the third distance scene, and the time-of-flight lattice distance of the third distance scene is smaller than the time-of-flight lattice distance of the second distance scene.
2. The image capturing method according to claim 1, characterized in that: The current distance scene includes a first distance scene, a second distance scene or a third distance scene; Based on the time-of-flight point array distance, determine the current distance scenario, including: If the time-of-flight point array distance is less than a first ratio threshold of the time-of-flight point array limit ranging distance, determining that the current distance scene is a first distance scene; If the time-of-flight point array distance is greater than a second ratio threshold of the time-of-flight point array limit ranging distance, determining that the current distance scene is a second distance scene; If the time-of-flight lattice distance is greater than a first ratio threshold of the time-of-flight lattice limit ranging distance and less than a second ratio threshold of the time-of-flight lattice limit ranging distance, then determining that the current distance scene is a third distance scene; The first ratio threshold is smaller than the second ratio threshold.
3. The image capturing method according to claim 1, characterized in that: Determining a local light metering mode or a multi-point light metering mode as the target light metering mode based on the concentration degree of distance distribution of all pixels in the image area includes: When a first preset condition is met, determining the local light metering mode as the target light metering mode, and determining an area corresponding to pixels that meet the first preset condition as a light metering area; When the first preset condition is not met, the multi-point photometry mode is determined to be the target photometry mode, and the photometry area corresponding to the target photometry mode is the entire image area; The first preset condition includes: the ratio between the number of pixels within the preset distance range and the number of all pixels in the image area is greater than a first preset ratio threshold.
4. The image capturing method according to claim 1, wherein: Determining a central metering mode or a local metering mode as the target metering mode based on the concentration degree of distance distribution of all pixels in the central area of the image includes: When the second preset condition is met, determining that the central light metering mode is the target light metering mode, and the light metering area corresponding to the target light metering mode is the central area of the image; When the second preset condition is not met, determining the local light metering mode as the target light metering mode; The second preset condition includes: in the central area of the image, the ratio between the number of pixels and the total number of pixels in the image area is greater than a second preset ratio threshold.
5. The image capturing method according to claim 1, characterized in that: Before adopting the target light metering mode to shoot an image, the method further includes: If the current distance scene is the first distance scene and the current picture zoom value is greater than a threshold of a preset picture zoom value, the light metering area is adjusted based on a ratio of the current picture zoom value to the maximum zoom multiple.
6. An image capturing device, characterized in that: The image capturing device comprises: A determination module, configured to determine a current distance scene based on a time-of-flight dot matrix distance, wherein the current distance scene is divided according to a limit distance measurement distance of the time of flight, there is a corresponding relationship between the distance scene and the photometry mode, and to determine a target photometry mode matching the current distance scene; An image capturing module, used for capturing images using the target light metering method; The determination module determines the target light measurement method matching the current distance scene in the following manner: When the current distance scene is the second distance scene, based on the concentration of distance distribution of all pixels in the image area, determining a local light metering mode or a multi-spot light metering mode as the target light metering mode; and / or When the current distance scene is the third distance scene, determining the central light metering mode or the local light metering mode as the target light metering mode based on the concentration of the distance distribution of all pixels in the central area of the image; and When the current distance scene is the first distance scene, determining the central light metering mode as the target light metering mode; The time-of-flight lattice distance of the first distance scene is smaller than the time-of-flight lattice distance of the third distance scene, and the time-of-flight lattice distance of the third distance scene is smaller than the time-of-flight lattice distance of the second distance scene.
7. The image capture device according to claim 6, characterized in that: The current distance scene includes a first distance scene, a second distance scene or a third distance scene; The determination module determines the current distance scene based on the time-of-flight dot matrix distance in the following manner: If the time-of-flight point array distance is less than a first ratio threshold of the time-of-flight point array limit ranging distance, determining that the current distance scene is a first distance scene; If the time-of-flight point array distance is greater than a second ratio threshold of the time-of-flight point array limit ranging distance, determining that the current distance scene is a second distance scene; If the time-of-flight lattice distance is greater than a first ratio threshold of the time-of-flight lattice limit ranging distance and less than a second ratio threshold of the time-of-flight lattice limit ranging distance, then determining that the current distance scene is a third distance scene; The first ratio threshold is smaller than the second ratio threshold.
8. The image capture device according to claim 6, characterized in that: The determination module determines the local photometry mode or the multi-point photometry mode as the target photometry mode based on the concentration degree of distance distribution of all pixels in the image area in the following manner: When a first preset condition is met, determining the local light metering mode as the target light metering mode, and determining an area corresponding to pixels that meet the first preset condition as a light metering area; When the first preset condition is not met, the multi-point photometry mode is determined to be the target photometry mode, and the photometry area corresponding to the target photometry mode is the entire image area; The first preset condition includes: the ratio between the number of pixels within the preset distance range and the number of all pixels in the image area is greater than a first preset ratio threshold.
9. The image capturing device according to claim 6, characterized in that: The determination module determines the central light metering mode or the local light metering mode as the target light metering mode based on the concentration degree of distance distribution of all pixels in the central area of the image in the following manner: When the second preset condition is met, determining that the central light metering mode is the target light metering mode, and the light metering area corresponding to the target light metering mode is the central area of the image; When the second preset condition is not met, determining the local light metering mode as the target light metering mode; The second preset condition includes: in the central area of the image, the ratio between the number of pixels and the total number of pixels in the image area is greater than a second preset ratio threshold.
10. The image capture device according to claim 6, characterized in that: The image capturing device further comprises: The adjustment module is used to adjust the light metering area based on the ratio of the current picture zoom value to the maximum zoom multiple when the current distance scene is the first distance scene and the current picture zoom value is greater than the threshold of the preset picture zoom value.
11. An image capturing device, characterized in that: include: processor; memory for storing processor executable instructions; Wherein, the processor is configured to: execute the image capturing method described in any one of claims 1 to 5.
12. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to execute the image capturing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Light metering mode selection method and image acquisition device utilizing same
CN105578062A
Imaging system
CN108377344A