[go: up one dir, main page]

CN114554103A - Image capturing method, image capturing device and storage medium - Google Patents

Image capturing method, image capturing device and storage medium Download PDF

Info

Publication number
CN114554103A
CN114554103A CN202011350468.5A CN202011350468A CN114554103A CN 114554103 A CN114554103 A CN 114554103A CN 202011350468 A CN202011350468 A CN 202011350468A CN 114554103 A CN114554103 A CN 114554103A
Authority
CN
China
Prior art keywords
distance
scene
image
target
flight
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.)
Granted
Application number
CN202011350468.5A
Other languages
Chinese (zh)
Other versions
CN114554103B (en
Inventor
霍文甲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011350468.5A priority Critical patent/CN114554103B/en
Publication of CN114554103A publication Critical patent/CN114554103A/en
Application granted granted Critical
Publication of CN114554103B publication Critical patent/CN114554103B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Exposure Control For Cameras (AREA)

Abstract

The present disclosure relates to an image capturing method, an image capturing apparatus, and a storage medium, the image capturing method including: determining a current distance scene based on the time-of-flight lattice distance, wherein the distance scene and a photometric mode have a corresponding relation; and determining a target light metering mode matched with the current distance scene, and shooting an image by adopting the target light metering mode. Through the embodiment of the disclosure, the distance scene is identified by using the time-of-flight lattice, the target light metering mode matched with the current distance scene is determined, and the image shooting is performed by using the target light metering mode, so that the dynamic adjustment of the light metering mode in the image shooting is realized, the light dimming quality is optimized, an ideal image exposure effect is achieved, and the user experience is improved.

Description

图像拍摄方法、图像拍摄装置及存储介质Image capturing method, image capturing device and storage medium

技术领域technical field

本公开涉及终端技术领域,尤其涉及图像拍摄方法、图像拍摄装置及存储介质。The present disclosure relates to the technical field of terminals, and in particular, to an image capturing method, an image capturing device, and a storage medium.

背景技术Background technique

随着电子技术的发展,电控自动测光仪表的出现,让拍摄过程中的调节快门速度、光圈的繁琐过程得以改观。为了获得较佳拍摄效果,拍摄装置的测光系统测定被拍摄对象反射的光亮度,根据室内以及户外不同的拍摄场景,选择不同的测光方式对图像进行自动测光处理。例如,拍摄装置提供了点测光、平均测光、中央加权测光等测光方式,根据测光结果来调整拍摄画面的测光值,进而获得较佳测光效果的照片。With the development of electronic technology and the emergence of electronically controlled automatic light metering instruments, the tedious process of adjusting shutter speed and aperture during shooting has been improved. In order to obtain a better shooting effect, the light metering system of the shooting device measures the brightness of the light reflected by the object to be photographed, and selects different light metering methods to perform automatic light metering processing on the image according to different indoor and outdoor shooting scenes. For example, the photographing device provides metering methods such as spot metering, average metering, and center-weighted metering, and adjusts the metering value of the shooting screen according to the metering result, thereby obtaining a photo with better metering effect.

当前技术在拍摄调光过程中,选择固定调光窗口,即选取整个图像作为测光区域进行测光,对于特定场景的测光及测光时,拍摄中的曝光效果欠佳,不能满足拍摄需求。In the current technology, in the process of shooting light adjustment, a fixed light adjustment window is selected, that is, the entire image is selected as the light metering area for light metering. For the light metering and light metering of a specific scene, the exposure effect during shooting is not good, which cannot meet the shooting needs. .

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开提供图像拍摄方法、图像拍摄装置及存储介质。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.

根据本公开实施例的一方面,提供一种图像拍摄方法,包括:基于飞行时间点阵距离,确定当前距离场景,其中,距离场景与测光方式之间具有对应关系;确定匹配所述当前距离场景的目标测光方式,并采用所述目标测光方式进行图像拍摄。According to an aspect of the embodiments of the present disclosure, there is provided an image capturing method, comprising: determining a current distance scene based on a time-of-flight lattice distance, wherein there is a correspondence between the distance scene and a light metering method; determining to match the current distance The target metering method of the scene is adopted, and the image is photographed using the target metering method.

在一实施例中,所述当前距离场景包括第一距离场景、第二距离场景或者第三距离场景;基于飞行时间点阵距离,确定当前距离场景,包括:若所述飞行时间点阵距离,小于所述飞行时间点阵极限测距距离的第一比例阈值,则确定当前距离场景为第一距离场景;若所述飞行时间点阵距离,大于所述飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第二距离场景;若所述飞行时间点阵距离,大于所述飞行时间点阵极限测距距离的第一比例阈值,且小于所述飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第三距离场景;其中,所述第一比例阈值小于所述第二比例阈值。In one embodiment, the current distance scene includes a first distance scene, a second distance scene, or a third distance scene; and determining the current distance scene based on the time-of-flight lattice distance includes: if the time-of-flight lattice distance, If it is less than the first proportional threshold of the time-of-flight lattice limit ranging distance, it is determined that the current distance scene is the first distance scene; Two proportional thresholds, the current distance scene is determined to be the second distance scene; if the flight time lattice distance is greater than the first proportional threshold of the flight time lattice limit ranging distance, and less than the flight time lattice limit If the second proportional threshold of the ranging distance is determined, the current distance scene is determined to be the third distance scene; wherein the first proportional threshold is smaller than the second proportional threshold.

在一实施例中,所述确定匹配所述当前距离场景的目标测光方式,包括以下至少一种:在当前距离场景为第二距离场景的情况下,则基于图像区域内全部像素的距离分布集中程度,确定局部测光方式或者多点测光方式为所述目标测光方式;在当前距离场景为第三距离场景的情况下,则基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为所述目标测光方式;在当前距离场景为第一距离场景的情况下,则确定中央测光方式为所述目标测光方式。In one embodiment, the determining a target light metering method that matches the current distance scene includes at least one of the following: in the case that the current distance scene is the second distance scene, based on the distance distribution of all pixels in the image area Concentration degree, determine the local metering method or multi-point metering method as the target metering method; in the case where the current distance scene is the third distance scene, determine the degree of concentration based on the distance distribution of all pixels in the central area of the image. The central photometric mode or the partial photometric mode is the target photometric mode; when the current distance scene is the first distance scene, the central photometric mode is determined to be the target photometric mode.

在一实施例中,基于图像区域内全部像素的距离分布集中程度,确定局部测光方式或者多点测光方式为所述目标测光方式,包括:当满足第一预设条件时,确定局部测光方式为所述目标测光方式,并将满足第一预设条件的像素对应的区域确定为测光区域;当不满足第一预设条件时,则确定多点测光方式为所述目标测光方式,所述目标测光方式对应的测光区域为整个图像区域;其中,所述第一预设条件包括:预设距离范围内像素数量与图像区域中全部像素数量之间的比值大于第一预设比例阈值。In one embodiment, determining the local photometric mode or the multi-point photometric mode as the target photometric mode based on the concentration degree of the distance distribution of all pixels in the image area includes: when a first preset condition is satisfied, determining the local photometric mode or the multi-point photometric mode as the target photometric mode. The photometry mode is 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-point photometry mode is determined to be the photometry area Target metering mode, the photometric 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 greater than the first preset ratio threshold.

在一实施例中,基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为所述目标测光方式,包括:当满足第二预设条件时,确定中央测光方式为所述目标测光方式,且所述目标测光方式对应的测光区域为所述图像中央区域;当不满足第二预设条件时,确定局部测光方式为所述目标测光方式;其中,所述第二预设条件包括:在所述图像中央区域内,像素数量与图像区域中全部像素数量之间的比值大于第二预设比例阈值。In one embodiment, determining the central photometric mode or the local photometric mode as the target photometric mode based on the concentration degree of the distance distribution of all pixels in the central area of the image includes: when a second preset condition is satisfied, determining the central photometric mode or the local photometric mode. The photometric mode is the target photometric mode, and the photometric area corresponding to the target photometric mode is the central area of the image; when the second preset condition is not satisfied, the local photometric mode is determined to be the target photometric mode. The light mode; wherein the second preset condition includes: in the central area of the image, the ratio between the number of pixels and the number of all pixels in the image area is greater than a second preset ratio threshold.

在一实施例中,采用所述目标测光方式进行图像拍摄之前,所述方法还包括:若当前距离场景为第一距离场景,且当前画面缩放值大于预设画面缩放值的阈值,则基于所述当前画面缩放值与最大缩放倍数的比值,调整测光区域。In one embodiment, before using the target light metering method to capture the image, the method further includes: if the current distance scene is the first distance scene, and the current image zoom value is greater than the preset image zoom value threshold, based on The ratio of the current screen zoom value to the maximum zoom factor is used to adjust the metering area.

根据本公开实施例的又一方面,提供一种图像拍摄装置,所述图像拍摄装置包括:确定模块,用于基于飞行时间点阵距离,确定当前距离场景,其中,距离场景与测光方式之间具有对应关系,以及确定匹配所述当前距离场景的目标测光方式;图像拍摄模块,用于采用所述目标测光方式进行图像拍摄。According to yet another aspect of the embodiments of the present disclosure, there is provided an image capturing device, the image capturing device comprising: a determination module configured to determine a current distance scene based on a time-of-flight lattice distance, wherein the distance between the scene and the light metering method is determined. There is a corresponding relationship between them, and a target light metering method matching the current distance scene is determined; an image capturing module is used to capture an image by using the target light metering method.

在一实施例中,所述当前距离场景包括第一距离场景、第二距离场景或者第三距离场景;所述确定模块采用如下方式基于飞行时间点阵距离,确定当前距离场景:若所述飞行时间点阵距离,小于所述飞行时间点阵极限测距距离的第一比例阈值,则确定当前距离场景为第一距离场景;若所述飞行时间点阵距离,大于所述飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第二距离场景;若所述飞行时间点阵距离,大于所述飞行时间点阵极限测距距离的第一比例阈值,且小于所述飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第三距离场景;其中,所述第一比例阈值小于所述第二比例阈值。In one embodiment, the current distance scene includes a first distance scene, a second distance scene or a third distance scene; the determining module determines the current distance scene based on the flight time lattice distance in the following manner: if the flight If the time lattice distance is less than the first proportional 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 the flight time lattice limit The second proportional threshold of the ranging distance, then determine that the current distance scene is the second distance scene; if the flight time lattice distance is greater than the first proportional threshold of the flight time lattice limit ranging distance, and less than the If the second proportional threshold of the limit ranging distance of the time-of-flight lattice is determined, the current distance scene is determined to be the third distance scene; wherein the first proportional threshold is smaller than the second proportional threshold.

在一实施例中,所述确定模块采用如下至少一种方式确定匹配所述当前距离场景的目标测光方式:在当前距离场景为第二距离场景的情况下,则基于图像区域内全部像素的距离分布集中程度,确定局部测光方式或者多点测光方式为所述目标测光方式;在当前距离场景为第三距离场景的情况下,则基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为所述目标测光方式;在当前距离场景为第一距离场景的情况下,则确定中央测光方式为所述目标测光方式。In one embodiment, the determining module determines the target light metering mode that matches the current distance scene in at least one of the following ways: in the case that the current distance scene is the second distance scene, based on all the pixels in the image area Concentration degree of distance distribution, determine the local metering method or multi-point metering method as the target metering method; when the current distance scene is the third distance scene, it is based on the distance distribution concentration degree of all pixels in the central area of the image , determine the central metering mode or the partial photometric mode as the target photometric mode; if the current distance scene is the first distance scene, determine the central photometric mode as the target photometric mode.

在一实施例中,所述确定模块采用如下方式基于图像区域内全部像素的距离分布集中程度,确定局部测光方式或者多点测光方式为所述目标测光方式:当满足第一预设条件时,确定局部测光方式为所述目标测光方式,并将满足第一预设条件的像素对应的区域确定为测光区域;当不满足第一预设条件时,则确定多点测光方式为所述目标测光方式,所述目标测光方式对应的测光区域为整个图像区域;其中,所述第一预设条件包括:预设距离范围内像素数量与图像区域中全部像素数量之间的比值大于第一预设比例阈值。In one embodiment, the determining module determines the local photometric mode or the multi-point photometric mode as the target photometric mode based on the concentration degree of the distance distribution of all pixels in the image area in the following manner: when the first preset is satisfied When the conditions are met, the local metering method is determined to be the target metering method, and the area corresponding to the pixels satisfying the first preset condition is determined as the metering area; when the first preset condition is not met, the multi-point metering method is determined. The light mode is 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 number of pixels within a preset distance range and all pixels in the image area The ratio between the quantities is greater than the first preset ratio threshold.

在一实施例中,所述确定模块采用如下方式基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为所述目标测光方式:当满足第二预设条件时,确定中央测光方式为所述目标测光方式,且所述目标测光方式对应的测光区域为所述中央区域;当不满足第二预设条件时,确定局部测光方式为所述目标测光方式;其中,所述第二预设条件包括:在所述中央区域内,像素数量与图像区域中全部像素数量之间的比值大于第二预设比例阈值。In one embodiment, the determining module determines the central photometric mode or the local photometric mode as the target photometric 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 is satisfied: condition, determine that the central metering method is the target metering method, and the metering area corresponding to the target metering method is the central area; when the second preset condition is not satisfied, determine that the local metering method is The target light metering method; wherein the second preset condition includes: in the central area, the ratio between the number of pixels and the number of all pixels in the image area is greater than a second preset ratio threshold.

在一实施例中,所述图像拍摄装置还包括:调整模块,用于当前距离场景为第一距离场景,且当前画面缩放值大于预设画面缩放值的阈值时,基于所述当前画面缩放值与最大缩放倍数的比值,调整测光区域。In one embodiment, the image capturing device further includes: an adjustment module configured to, when the current distance scene is the first distance scene and the current screen zoom value is greater than a preset screen zoom value threshold, based on the current screen zoom value The ratio of the maximum zoom factor to adjust the metering area.

根据本公开实施例的又一方面,提供一种图像拍摄装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为:执行前述任意一项所述的图像拍摄方法。According to yet another aspect of the embodiments of the present disclosure, there is provided an image capturing apparatus, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: execute the image described in any one of the foregoing Shooting method.

根据本公开实施例的又一方面,提供一种非临时性计算机可读存储介质,当存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行前述任意一项所述的图像拍摄方法。According to yet another aspect of the embodiments 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 the image described in any one of the preceding items Shooting method.

本公开的实施例提供的技术方案可以包括以下有益效果:实现了图像拍摄中测光方式的动态调整,优化调光质量,达到理想的图像曝光效果,从而提升用户体验。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: the dynamic adjustment of the light metering mode in image shooting is realized, the light adjustment quality is optimized, the ideal image exposure effect is achieved, and the user experience is improved.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。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.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据本公开一示例性实施例示出的一种图像拍摄方法的流程图。FIG. 1 is a flowchart of an image capturing method according to an exemplary embodiment of the present disclosure.

图2是根据本公开一示例性实施例示出的一种由拍摄场景中像素点距离统计得到直方图示意图。FIG. 2 is a schematic diagram of a histogram obtained by statistics of pixel distances in a shooting scene according to an exemplary embodiment of the present disclosure.

图3是根据本公开一示例性实施例示出的距离场景与视场关系的示意图。FIG. 3 is a schematic diagram illustrating the relationship between a distance scene and a field of view according to an exemplary embodiment of the present disclosure.

图4是根据本公开又一示例性实施例示出的一种图像拍摄方法的流程图。FIG. 4 is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure.

图5是根据本公开又一示例性实施例示出的一种图像拍摄方法的流程图。FIG. 5 is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure.

图6是根据本公开又一示例性实施例示出的一种图像拍摄方法的流程图。FIG. 6 is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure.

图7是根据本公开又一示例性实施例示出的一种图像拍摄方法的流程图。FIG. 7 is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure.

图8a-图8d是根据本公开一示例性实施例示出的缩放程度与测光区域之间关系的示意图。8a-8d are schematic diagrams illustrating the relationship between the zoom degree and the photometric area according to an exemplary embodiment of the present disclosure.

图9是根据本公开一示例性实施例示出的一种图像拍摄装置框图。Fig. 9 is a block diagram of an image capturing apparatus according to an exemplary embodiment of the present disclosure.

图10是根据本公开又一示例性实施例示出的一种图像拍摄装置框图。Fig. 10 is a block diagram of an image capturing apparatus according to another exemplary embodiment of the present disclosure.

图11是根据本公开一示例性实施例示出的一种用于图像拍摄装置的框图。FIG. 11 is a block diagram of an image capturing apparatus according to an exemplary embodiment of the present disclosure.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numerals in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.

随着电子技术的发展,电控自动测光仪表的出现,让拍摄过程中的调节快门速度、光圈的繁琐过程得以改观。为了获得较佳拍摄效果,拍摄装置的测光系统测定被拍摄对象反射的光亮度,根据室内以及户外不同的拍摄场景,选择不同的测光方式对图像进行自动测光处理。例如,拍摄装置提供了点测光、平均测光、中央加权测光等测光方式,根据测光结果来调整拍摄画面的测光值,进而获得较佳测光效果的照片。With the development of electronic technology and the emergence of electronically controlled automatic light metering instruments, the tedious process of adjusting shutter speed and aperture during shooting has been improved. In order to obtain a better shooting effect, the light metering system of the shooting device measures the brightness of the light reflected by the object to be photographed, and selects different light metering methods to perform automatic light metering processing on the image according to different indoor and outdoor shooting scenes. For example, the photographing device provides metering methods such as spot metering, average metering, and center-weighted metering, and adjusts the metering value of the shooting screen according to the metering result, thereby obtaining a photo with better metering effect.

飞行时间测距,是通过飞行时间法进行非接触式测距,即通过测算近红外光线自发射后遇到对象后反射到传感器的时间,配合恒定光速,得出传感器与对象之间的距离。测距结果准确,抗干扰能力强。Time-of-flight ranging is a non-contact ranging by the time-of-flight method, that is, by measuring the time that the near-infrared light is reflected to the sensor after encountering the object after being emitted, and with the constant speed of light, the distance between the sensor and the object is obtained. The ranging results are accurate and the anti-interference ability is strong.

当前技术在拍摄调光过程中,选择固定调光窗口,即选取整个图像作为测光区域进行测光,对于特定场景的测光及测光时,拍摄中的曝光效果欠佳,不能满足拍摄需求。In the current technology, in the process of shooting light adjustment, a fixed light adjustment window is selected, that is, the entire image is selected as the light metering area for light metering. For the light metering and light metering of a specific scene, the exposure effect during shooting is not good, which cannot meet the shooting needs. .

由此,本公开提供一种图像拍摄方法,识别距离场景,确定匹配当前距离场景的测光方式,并采用匹配当前距离场景的测光方式进行测光,实现了测光方式的动态调整。Thus, the present disclosure provides an image capturing method that identifies a distance scene, determines a photometric method matching the current distance scene, and uses the photometric method matching the current distance scene to perform photometry, thereby realizing dynamic adjustment of the photometric method.

图1是根据本公开一示例性实施例示出的一种图像拍摄方法的流程图,如图1所示,图像拍摄方法包括以下步骤。FIG. 1 is a flowchart of an image capturing method according to an exemplary embodiment of the present disclosure. As shown in FIG. 1 , the image capturing method includes the following steps.

在步骤S101中,基于飞行时间点阵距离,确定当前距离场景,其中,距离场景与测光方式之间具有对应关系。In step S101, a current distance scene is determined based on the time-of-flight lattice distance, wherein there is a corresponding relationship between the distance scene and the light metering method.

在步骤S102中,确定匹配当前距离场景的目标测光方式,并采用目标测光方式进行图像拍摄。In step S102, a target light metering method matching the current distance scene is determined, and the target light metering method is used to capture an image.

在本公开的一个实施例中,图像拍摄方法应用于拍摄过程中,飞行时间点阵设置于拍摄装置。基于飞行时间点阵测距,能够获取到视场中各个像素的实际位置信息,得到飞行时间点阵距离。例如,飞行时间测距装置的感光芯片可以采用面阵式感光芯片,测量整个三维物体表面位置深度信息,实时获取拍摄场景整个场景的表面几何结构信息。飞行时间点阵距离可以是与视场中各个像素的实际位置一一对应,即飞行时间点阵距离包括场中各个像素与拍摄装置之间的距离。In an embodiment of the present disclosure, the image capturing method is applied in the capturing process, and the time-of-flight lattice is set in the capturing device. Based on the time-of-flight lattice ranging, the actual position information of each pixel in the field of view can be obtained, and the time-of-flight lattice distance can be obtained. For example, the photosensitive chip of the time-of-flight ranging device can use an area array photosensitive chip to measure the position and depth information of the entire three-dimensional object surface, and obtain the surface geometric structure information of the entire scene of the shooting scene in real time. The time-of-flight lattice distance may be in a one-to-one correspondence with the actual position of each pixel in the field of view, that is, the time-of-flight lattice distance includes the distance between each pixel in the field and the photographing device.

确定匹配当前距离场景的测光方式,并采用匹配当前距离场景的测光方式进行测光。测光方式可以是局部测光、点测光、中央测光等。不同测光方式可以对应不同的测光区域,即在确定的测光区域中,采用匹配当前距离场景的测光方式进行测光。Determine the metering method that matches the current distance scene, and use the metering method that matches the current distance scene for metering. The metering method can be partial metering, spot metering, central metering, etc. Different metering methods can correspond to different metering areas, that is, in the determined metering area, the metering method that matches the current distance scene is used for metering.

根据本公开的实施例,利用飞行时间点阵识别距离场景,确定匹配当前距离场景的测光方式,并采用匹配当前距离场景的测光方式进行图像拍摄,实现了图像拍摄中测光方式的动态调整,优化调光质量,达到理想的图像曝光效果,从而提升用户体验。According to the embodiments of the present disclosure, the time-of-flight lattice is used to identify the distance scene, determine the photometric mode matching the current distance scene, and use the photometric mode matching the current distance scene to capture the image, thus realizing the dynamic photometry mode in the image capture. Adjust and optimize the dimming quality to achieve the ideal image exposure effect, thereby enhancing the user experience.

图2是根据本公开一示例性实施例示出的一种由拍摄场景中像素点距离统计得到直方图示意图。FIG. 2 is a schematic diagram of a histogram obtained by statistics of pixel distances in a shooting scene according to an exemplary embodiment of the present disclosure.

在本公开一实施例中,统计飞行时间点阵距离,确定当前距离场景时,例如,可以是基于飞行时间确定拍摄对象场景的各个像素点的距离,在各个像素点的距离的直方图中,直方图表征场景中像素点的距离分布。可以是预设距离分布阈值,在直方图中,确定拍摄场景中大于预设距离分布阈值的像素点,将确定的像素点的距离的平均值确定为当前场景的距离。基于当前场景的距离,确定当前距离场景。距离场景与测光方式之间具有对应关系。In an embodiment of the present disclosure, when calculating the distance of the time-of-flight lattice to determine the current distance scene, for example, the distance of each pixel point of the shooting object scene may 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 pixels in the scene. It may be a preset distance distribution threshold. In the histogram, determine the pixels in the shooting scene that are greater than the preset distance distribution threshold, and determine the average distance of the determined pixel points as the distance of the current scene. Based on the distance of the current scene, the current distance scene is determined. There is a correspondence between the distance scene and the metering method.

在本公开的一个实施例中,当前距离场景包括第一距离场景、第二距离场景或者第二距离场景。In an embodiment of the present disclosure, the current distance scene includes a first distance scene, a second distance scene, or a second distance scene.

当前距离场景是根据飞行时间的极限测距距离进行划分,即若飞行时间点阵距离,小于飞行时间点阵极限测距距离的第一比例阈值,则确定当前距离场景为第一距离场景。可以理解地,极限测距是飞行时间点阵的最大的极限值,或者是标定的最大值。The current distance scene is divided according to the limit ranging distance of the flight time, that is, if the flight time lattice distance is less than the first proportional threshold of the flight time lattice limit ranging distance, the current distance scene is determined as the first distance scene. Understandably, the limit ranging is the maximum limit value of the time-of-flight lattice, or the calibrated maximum value.

若飞行时间点阵距离,大于飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第二距离场景。第一比例阈值小于第二比例阈值。If the flight time lattice distance is greater than the second proportional threshold of the flight time lattice limit ranging distance, it is determined that the current distance scene is the second distance scene. The first proportional threshold is smaller than the second proportional threshold.

若飞行时间点阵距离,大于飞行时间点阵极限测距距离的第一比例阈值,且小于飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第三距离场景。If the time-of-flight lattice distance is greater than the first proportional threshold of the time-of-flight lattice limit ranging distance, and less than the second proportional threshold of the time-of-flight lattice limit ranging distance, the current distance scene is determined to be the third distance scene.

例如,飞行时间的极限测距距离,第一比例阈值为5%,第二比例阈值为30%,则飞行时间点阵距离,小于飞行时间点阵极限测距距离的5%,则确定当前距离场景为第一距离场景,第一距离场景即近距离场景。若飞行时间点阵距离,大于飞行时间点阵极限测距距离的30%,则确定当前距离场景为第二距离场景,第二距离场景即远距离场景。若飞行时间点阵距离,大于飞行时间点阵极限测距距离的5%,小于飞行时间点阵极限测距距离的30%,则确定当前距离场景为第三距离场景,第三距离场景即中距离场景。第一比例阈值为5%以及第二比例阈值为30%,也可以依据拍摄装置采用长焦、广角、微距等拍摄模式做出调整,改变第一比例阈值和/或第二比例阈值,从而改变远距离、中距离、近距离的划分与判定。For example, for the limit ranging distance of the flight time, the first proportional threshold is 5%, and the second proportional threshold is 30%, then the flight time lattice distance is less than 5% of the flight time lattice limit ranging distance, then the current distance is determined The scene is a first distance scene, and the first distance scene is a short distance scene. If the time-of-flight lattice distance is greater than 30% of the limit ranging distance of the time-of-flight lattice, it is determined that the current distance scene is the second distance scene, and the second distance scene is the long distance scene. If the flight time lattice distance is greater than 5% of the flight time lattice limit ranging distance and less than 30% of the flight time lattice limit distance, then the current distance scene is determined as the third distance scene, and the third distance scene is the middle distance scene. The first ratio threshold is 5% and the second ratio threshold is 30%. Adjustments can also be made according to the photographing device using telephoto, wide-angle, macro and other shooting modes to change the first ratio threshold and/or the second ratio threshold, thereby Change the division and judgment of long distance, medium distance and short distance.

图3是根据本公开一示例性实施例示出的距离场景与视场关系的示意图,如图3所示,拍摄装置拍摄景物时,视场随着物距的改变而变化,大的视场对应的场景中各个物体的物距各有差异,小的视场中对应的场景中物体物距差异较小。图3中,从上至下分别示出了远距离、中距离以及近距离下视场的变化。通过确定不同的距离场景,为测光方式的选取提供了依据。FIG. 3 is a schematic diagram illustrating the relationship between a distance scene and a field of view according to an exemplary embodiment of the present disclosure. As shown in FIG. 3 , when a photographing device shoots a scene, the field of view changes with the change of the object distance, and a large field of view corresponds to The object distance of each object in the scene is different, and the object distance difference of objects in the scene corresponding to the small field of view is small. In FIG. 3 , the changes of the field of view at the long distance, the middle distance and the short distance are respectively shown from top to bottom. By determining different distance scenes, it provides a basis for the selection of metering methods.

图4是根据本公开又一示例性实施例示出的一种图像拍摄方法的流程图,如图4所示,图像拍摄方法包括以下步骤。FIG. 4 is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure. As shown in FIG. 4 , the image capturing method includes the following steps.

在步骤S201中,基于飞行时间点阵距离,确定当前距离场景,其中,距离场景与测光方式之间具有对应关系。In step S201, a current distance scene is determined based on the time-of-flight lattice distance, wherein there is a corresponding relationship between the distance scene and the light metering method.

在步骤S202中,在当前距离场景为第二距离场景的情况下,则基于图像区域内全部像素的距离分布集中程度,确定局部测光方式或者多点测光方式为目标测光方式。In step S202, in the case that the current distance scene is the second distance scene, the local metering method or the multi-point metering method is determined as the target metering method based on the concentration degree of distance distribution of all pixels in the image area.

在步骤S203中,在当前距离场景为第三距离场景的情况下,则基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为目标测光方式。In step S203, when the current distance scene is the third distance scene, the central or local light metering method is determined as the target light metering method based on the concentration degree of distance distribution of all pixels in the central area of the image.

在步骤S204中,在当前距离场景为第一距离场景的情况下,则确定中央测光方式为目标测光方式。In step S204, if the current distance scene is the first distance scene, it is determined that the central light metering method is the target light metering method.

在步骤S205中,采用目标测光方式进行图像拍摄。In step S205, the target photometric mode is used to capture an image.

在本公开实施例中,在飞行时间点阵距离大于飞行时间点阵极限测距距离的第二比例阈值时的情况下,则确定当前距离场景为第二距离场景,即远距离场景。远距离场景下对应的视场较大,则基于图像区域内全部像素的距离分布集中程度,选用局部测光方式或者多点测光方式为目标测光方式,当图像区域内全部像素的距离分布集中时,选取距离分布集中的区域作为测光区域进行局部测光。当图像区域内全部像素的距离分布较为均匀时,选取多点测光方式,使测光方式的选择更加准确。In this embodiment of the present disclosure, when the time-of-flight lattice distance is greater than the second proportional threshold of the time-of-flight lattice 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, then 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. When the distance distribution of all pixels in the image area is When concentrated, select the area where the distance distribution is concentrated as the metering area for local metering. When the distance distribution of all pixels in the image area is relatively uniform, select the multi-point metering method to make the selection of the metering method more accurate.

在本公开实施例中,在飞行时间点阵飞行时间距离大于飞行时间点阵极限测距距离的第一比例阈值,且小于飞行时间点阵极限测距距离的第二比例阈值的情况下,则确定当前距离场景为第三距离场景,即中距离场景。中距离场景下对应的视场较为适中,则基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为目标测光方式。若中央区域内全部像素的距离分布较为集中,那么选取中央测光方式,否则选取局部测光方式。在本公开实施例中,图像中央区域可以是以图像的几何中心为中心点,在图像平面中向外扩展形成的预设尺寸大小的区域。In the embodiment of the present disclosure, when the flight time distance of the flight time lattice is greater than the first proportional threshold of the flight time lattice limit ranging distance, and is smaller than the second proportional threshold of the flight time lattice limit ranging distance, then It is determined that the current distance scene is the third distance scene, that is, the middle distance scene. The corresponding field of view in the middle-distance scene is relatively moderate. Based on the concentration of the distance distribution of all pixels in the central area of the image, the central metering method or the local metering method is determined as the target metering method. If the distance distribution of all pixels in the central area is relatively concentrated, select the central metering method, otherwise select the local metering method. In the embodiment of the present disclosure, the central area of the image may 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.

在本公开实施例中,在当飞行时间点阵距离小于飞行时间点阵极限测距距离的第一比例阈值的情况下,则确定当前距离场景为第一距离场景,即近距离场景。近距离场景下对应的视场较小,在近距离视场下,确定中央区域测光方式为目标测光方式。In the embodiment of the present disclosure, when the time-of-flight lattice distance is less than the first proportional threshold of the limit-ranging distance of the time-of-flight lattice, the current distance scene is determined to be the first distance scene, that is, a close-range scene. The corresponding field of view in the close-up scene is small. In the short-range field of view, the central area metering method is determined as the target metering method.

根据本公开实施例,基于飞行时间点阵距离,确定当前距离场景为远距离场景、中距离场景或近距离场景,确定匹配当前距离场景的不同目标测光方式,并采用确定的目标测光方式进行图像拍摄,实现了拍摄过程中测光方式的动态调整,优化调光质量,达到理想的曝光效果。According to an embodiment of the present disclosure, based on the time-of-flight lattice distance, it is determined that the current distance scene is a long-distance scene, a medium-distance scene or a short-distance scene, different target light metering methods matching the current distance scene are determined, and the determined target light metering method is adopted For image shooting, the dynamic adjustment of the metering method during the shooting process is realized, the light adjustment quality is optimized, and the ideal exposure effect is achieved.

图5是根据本公开又一示例性实施例示出的一种图像拍摄方法的流程图,如图5所示,图像拍摄方法包括以下步骤。FIG. 5 is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure. As shown in FIG. 5 , the image capturing method includes the following steps.

在步骤S301中,基于飞行时间点阵距离,确定当前距离场景,其中,距离场景与测光方式之间具有对应关系。In step S301, a current distance scene is determined based on the time-of-flight lattice distance, wherein there is a corresponding relationship between the distance scene and the light metering method.

在步骤S302中,若当前距离场景为第二距离场景,当满足第一预设条件时,确定局部测光方式为目标测光方式,并将满足第一预设条件的像素对应的区域确定为测光区域。In step S302, if the current distance scene is the second distance scene, when the first preset condition is satisfied, the local metering method is determined as the target metering method, and the area corresponding to the pixels satisfying the first preset condition is determined as Metering area.

在步骤S303中,若当前距离场景为第二距离场景,当不满足第一预设条件时,则确定多点测光方式为目标测光方式,目标测光方式对应的测光区域为整个图像区域。In step S303, if the current distance scene is the second distance scene, when the first preset condition is not satisfied, the multi-point metering mode is determined as the target photometry mode, and the photometry area corresponding to the target photometry mode is the entire image area.

在步骤S304中,采用目标测光方式进行图像拍摄。In step S304, the target photometric method is used to capture an image.

在本公开实施例中,第一预设条件包括:预设距离范围内像素数量与图像区域中全部像素数量之间的比值大于第一预设比例阈值。即,大于图像区域中全部像素数量第一预设比例阈值的像素数量,且在预设距离范围内的像素,应落在进行测光的区域中。In the embodiment of the present disclosure, the first preset condition includes: a 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. That is, the number of pixels greater than the first preset ratio threshold of the total number of pixels in the image area, and the pixels within the preset distance range, should fall in the area where the light metering is performed.

当飞行时间点阵距离,大于飞行时间点阵极限测距距离的第二比例阈值时,则确定当前距离场景为第二距离场景,即远距离场景。远距离场景下对应的视场较大,则基于图像区域内全部像素的距离分布集中程度,选用局部测光方式或者多点测光方式为目标测光方式。When the flight time lattice distance is greater than the second proportional threshold of the flight time lattice limit ranging distance, it is determined that the current distance scene is the second distance scene, that is, the long distance scene. If the corresponding field of view in the long-distance scene is larger, then 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.

在预设距离范围内,像素数量与图像区域中全部像素数量之间的比值大于第一预设比例阈值,此时预设距离范围内像素分布集中,即当满足第一预设条件时,选取距离分布集中的区域作为测光区域进行局部测光。当图像中不满足第一预设条件时,即图像区域内全部像素的距离分布较为均匀时,当不满足第一预设条件时,选取整个图像区域内进行多点测光,使测光方式的选择更加准确。Within the preset distance range, the ratio between the number of pixels and the total number of pixels in the image area is greater than the first preset ratio threshold. At this time, the distribution of pixels within the preset distance range is concentrated, that is, when the first preset condition is satisfied, select The area where the distance distribution is concentrated is used 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 metering method selection is more accurate.

根据本公开实施例,基于飞行时间点阵距离,确定当前距离场景为远距离场景,确定匹配远距离场景的不同目标测光方式,并采用确定的目标测光方式进行图像拍摄,实现了拍摄过程中测光方式的动态调整,优化调光质量,达到理想的曝光效果。According to the embodiments of the present disclosure, based on the time-of-flight lattice distance, it is determined that the current distance scene is a long-distance scene, different target metering methods that match the long-distance scene are determined, and the determined target metering method is used for image shooting, thereby realizing the shooting process. The dynamic adjustment of the middle metering mode optimizes the dimming quality and achieves the ideal exposure effect.

图6是根据本公开又一示例性实施例示出的一种图像拍摄方法的流程图,如图6所示,图像拍摄方法包括以下步骤。FIG. 6 is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure. As shown in FIG. 6 , the image capturing method includes the following steps.

在步骤S401中,基于飞行时间点阵距离,确定当前距离场景,其中,距离场景与测光方式之间具有对应关系。In step S401, a current distance scene is determined based on the time-of-flight lattice distance, wherein there is a corresponding relationship between the distance scene and the light metering method.

在步骤S402中,若当前距离场景为第三距离场景,当满足第二预设条件时,确定中央测光方式为目标测光方式,且目标测光方式对应的测光区域为图像中央区域。In step S402, if the current distance scene is the third distance scene, when the second preset condition is satisfied, it is determined that the central light metering method is the target light metering method, and the light metering area corresponding to the target light metering method is the image center area.

在步骤S403中,若当前距离场景为第三距离场景,当不满足第二预设条件时,确定局部测光方式为目标测光方式。In step S403, if the current distance scene is the third distance scene, when the second preset condition is not satisfied, it is determined that the local light metering method is the target light metering method.

在步骤S404中,采用目标测光方式进行图像拍摄。In step S404, the target photometric method is used to capture an image.

在本公开实施例中,第二预设条件包括:在图像中央区域内,像素数量与图像区域中全部像素数量之间的比值大于第二预设比例阈值。若飞行时间点阵飞行时间距离,大于飞行时间点阵极限测距距离的第一比例阈值,且小于飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第三距离场景,即中距离场景。中距离场景下对应的视场较为适中,则基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为目标测光方式。若图像中央区域内全部像素的距离分布较为集中,那么选取中央测光方式,否则选取局部测光方式。在图像中央区域内,像素数量与图像区域中全部像素数量之间的比值大于第二预设比例阈值时,全部像素的距离分布较为集中。在图像中央区域以中央测光方式为目标测光方式,进行图像拍摄。In the embodiment of the present disclosure, the second preset condition includes: in the central area of the image, the ratio between the number of pixels and the number of all pixels in the image area is greater than the second preset ratio threshold. If the flight time distance of the flight time lattice is greater than the first proportional threshold of the flight time lattice limit ranging distance and less than the second proportional threshold of the flight time lattice limit ranging distance, the current distance scene is determined as the third distance scene , which is a mid-range scene. The corresponding field of view in the middle-distance scene is relatively moderate. Based on the concentration of the distance distribution of all pixels in the central area of the image, the central metering method or the local metering method is determined as the target metering method. If the distance distribution of all pixels in the central area of the image is relatively concentrated, select the central metering method, otherwise select the local metering method. In the central area of the image, when the ratio between the number of pixels and the number of all pixels in the image area is greater than the second preset ratio threshold, the distance distribution of all the pixels is relatively concentrated. The image is captured using the center metering method as the target metering method in the central area of the image.

在图像中央区域内,像素数量与图像区域中全部像素数量之间的比值小于第二预设比例阈值时,全部像素的距离分布较为均匀分散,确定局部测光方式为目标测光方式。可以是在全部像素的分布范围内,进行局部测光,进行图像拍摄。In the central area of the image, when the ratio between the number of pixels 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 method is determined as the target metering method. It is possible to perform local metering within the distribution range of all pixels to capture images.

根据本公开实施例,基于飞行时间点阵距离,确定当前距离场景为中距离场景,确定匹配中距离场景的不同目标测光方式,并采用确定的目标测光方式进行图像拍摄,实现了拍摄过程中测光方式的动态调整,优化调光质量,达到理想的曝光效果。According to the embodiments of the present disclosure, based on the time-of-flight lattice distance, it is determined that the current distance scene is a middle-distance scene, different target photometry modes matching the middle-distance scene are determined, and the determined target photometry mode is used to capture images, thereby realizing the capture process. The dynamic adjustment of the middle metering mode optimizes the dimming quality and achieves the ideal exposure effect.

图7是根据本公开又一示例性实施例示出的一种图像拍摄方法的流程图,如图7所示,图像拍摄方法包括以下步骤。FIG. 7 is a flowchart of an image capturing method according to another exemplary embodiment of the present disclosure. As shown in FIG. 7 , the image capturing method includes the following steps.

在步骤S501中,基于飞行时间点阵距离,确定当前距离场景,其中,距离场景与测光方式之间具有对应关系。In step S501, a current distance scene is determined based on the time-of-flight lattice distance, wherein there is a corresponding relationship between the distance scene and the light metering method.

在步骤S502中,若当前距离场景为第一距离场景,则确定中央测光方式为目标测光方式,若当前画面缩放值大于预设画面缩放值的阈值,则基于当前画面缩放值与最大缩放倍数的比值,调整测光区域。In step S502, if the current distance scene is the first distance scene, the central metering method is determined as the target metering method, and if the current image zoom value is greater than the preset image zoom value threshold, the current image zoom value and the maximum zoom value are determined based on the current image zoom value and the maximum zoom value. The ratio of multiples to adjust the metering area.

在步骤S503中,采用目标测光方式进行图像拍摄。In step S503, the target photometric method is used to capture an image.

在本公开实施例中,当飞行时间点阵距离,小于飞行时间点阵极限测距距离的第一比例阈值,则确定当前距离场景为第一距离场景,即近距离场景。近距离场景下对应的视场较小,在近距离视场下,确定中央测光方式为目标测光方式。In the embodiment of the present disclosure, when the time-of-flight lattice distance is less than the first proportional threshold of the limit-ranging distance of the time-of-flight lattice, the current distance scene is determined to be the first distance scene, that is, a close-range scene. The corresponding field of view in the close-up scene is small. In the close-up field of view, the central metering method is determined as the target metering method.

图8a-图8d是根据本公开一示例性实施例示出的缩放程度与测光区域之间关系的示意图。画面缩放程度较大时,相当于视场相应较小,故应相应扩展测光区域。参照图8a-图8d,图8a对应的缩放程度大于图8b的缩放程度,图8a与图8b中景深图中的方框,表示实际视场,图8c与图8d中的实线框,分别对应图8a与图8b中的表示实际视场的方框,而虚线框对应基于图8a与图8b的画面缩放程度,调整后的测光区域。8a-8d are schematic diagrams illustrating the relationship between the zoom degree and the photometric area according to an exemplary embodiment of the present disclosure. When the screen is zoomed to a larger degree, it is equivalent to a correspondingly smaller field of view, so the metering area should be expanded accordingly. 8a-8d, the zoom degree corresponding to FIG. 8a is greater than that of FIG. 8b, the boxes in the depth of field diagrams in FIGS. 8a and 8b represent the actual field of view, and the solid line boxes in FIGS. 8c and 8d, respectively Corresponding to the boxes representing the actual field of view in FIGS. 8 a and 8 b , and the dotted boxes correspond to the photometric areas after adjustment based on the zooming degrees of the images in FIGS. 8 a and 8 b .

在本公开实施例中,近距离场景情况下,选取中央测光方式,若当前画面缩放值超过画面缩放值的阈值时,基于当前画面缩放值与最大缩放倍数的比值,调整测光区域。例如,可以是以中央区域为中心,按照设定的比例进行扩展。In this embodiment of the present disclosure, in the case of a close-range scene, the central metering method 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 factor. For example, the central area may be the center and may be expanded according to a set ratio.

一实例中,预设画面缩放值的阈值为5X,最大缩放倍数为50X,当前拍摄过程中,画面缩放值为7X,超过了预设画面缩放值的阈值,为了使测光更加准确,需要对测光区域进行调整,即扩展测光区域,以获得更多的画面信息。可以按照如下公式,动态扩展测光区域。In an example, the preset image zoom value threshold is 5X, and the maximum zoom factor is 50X. During the current shooting process, the image zoom value is 7X, which exceeds the preset image zoom value threshold. In order to make the metering more accurate, it is necessary to Adjust the metering area, that is, expand the metering area to obtain more picture information. The metering area can be dynamically expanded according to the following formula.

ROI_region’=ROI_region*(0.95+roi_thred/max_crop)ROI_region'=ROI_region*(0.95+roi_thred/max_crop)

式中,ROI_region’为扩展后的测光区域,ROI_region为未进行画面缩放的原测光区域,roi_thred为当前画面缩放值,max_crop为当前画面缩放值的最大缩放倍数。可以理解地,上式中,0.95可以是根据图像拍摄装置的参数进行调整。In the formula, ROI_region' is the expanded photometric area, ROI_region is the original photometric area without image scaling, 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 capturing device.

根据本公开实施例,基于飞行时间点阵距离,确定当前距离场景为第一距离场景,即近距离场景,确定中央测光方式为匹配当前距离场景的测光方式,并在画面存在较大缩放时,对调光区域进行动态修正调整,并基于调整后的测光区域进行中央测光,进一步改善适应近距离视场场景下的合理的曝光效果。According to the embodiment of the present disclosure, based on the time-of-flight lattice distance, it is determined that the current distance scene is the first distance scene, that is, the close-range scene, the central metering method is determined to be the metering method that matches the current distance scene, and there is a large zoom in the picture. When the dimming area is adjusted dynamically, the central metering is performed based on the adjusted metering area, which further improves the reasonable exposure effect in the scene of close-up field of view.

基于相同的构思,本公开实施例还提供一种图像拍摄装置。Based on the same concept, an embodiment of the present disclosure also provides an image capturing apparatus.

可以理解的是,本公开实施例提供的图像拍摄装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。结合本公开实施例中所公开的各示例的单元及算法步骤,本公开实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同的方法来实现所描述的功能,但是这种实现不应认为超出本公开实施例的技术方案的范围。It can be understood that, in order to realize the above-mentioned functions, the image capturing apparatus provided by the embodiments of the present disclosure includes corresponding hardware structures and/or software modules for executing each function. Combining with the units and algorithm steps of each example disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by 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 beyond the scope of the technical solutions of the embodiments of the present disclosure.

图9是根据本公开一示例性实施例示出的一种图像拍摄装置框图,参照图9,图像拍摄装置100包括确定模块101和图像拍摄模块102。FIG. 9 is a block diagram of an image capturing apparatus according to an exemplary embodiment of the present disclosure. Referring to FIG. 9 , the image capturing apparatus 100 includes a determination module 101 and an image capturing module 102 .

确定模块101,基于飞行时间点阵距离,确定当前距离场景,其中,距离场景与测光方式之间具有对应关系,以及确定匹配当前距离场景的目标测光方式。The determining module 101 determines a current distance scene based on the time-of-flight lattice distance, wherein there is a corresponding relationship between the distance scene and the photometric mode, and determines a target photometric mode matching the current distance scene.

图像拍摄模块102,用于采用目标测光方式进行图像拍摄。The image capturing module 102 is used for capturing an image in a target light metering manner.

在一实施例中,当前距离场景包括第一距离场景、第二距离场景或者第三距离场景;确定模块101采用如下方式基于飞行时间点阵距离,确定当前距离场景:若飞行时间点阵距离,小于飞行时间点阵极限测距距离的第一比例阈值,则确定当前距离场景为第一距离场景;若飞行时间点阵距离,大于飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第二距离场景;若飞行时间点阵距离,大于飞行时间点阵极限测距距离的第一比例阈值,且小于飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第三距离场景;其中,第一比例阈值小于第二比例阈值。In one embodiment, the current distance scene includes a first distance scene, a second distance scene or a third distance scene; the determining module 101 determines the current distance scene based on the time-of-flight lattice distance in the following manner: if the time-of-flight lattice distance, If it is less than the first proportional threshold of the time-of-flight lattice limit ranging distance, it is determined that the current distance scene is the first distance scene; if the flight-time lattice distance is greater than the second proportional threshold of the time-of-flight lattice limit ranging distance, it is determined that the current distance scene is the first distance scene; The current distance scene is the second distance scene; if the time-of-flight lattice distance is greater than the first proportional threshold of the time-of-flight lattice limit ranging distance, and less than the second proportional threshold of the time-of-flight lattice limit ranging distance, the current distance is determined. The distance scene is a third distance scene; wherein the first proportional threshold is smaller than the second proportional threshold.

在一实施例中,确定模块101采用如下方式确定匹配当前距离场景的目标测光方式:若当前距离场景为第二距离场景,则基于图像区域内全部像素的距离分布集中程度,确定局部测光方式或者多点测光方式为目标测光方式;或若当前距离场景为第三距离场景,则基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为目标测光方式;或若当前距离场景为第一距离场景,则确定中央测光方式为目标测光方式。In one embodiment, the determining module 101 determines the target light metering method that matches the current distance scene in the following manner: if the current distance scene is the second distance scene, the local light metering method is determined based on the concentration degree of the distance distribution of all pixels in the image area. If the current distance scene is the third distance scene, then based on the concentration of the distance distribution of all pixels in the central area of the image, the central or local metering method is determined as the target metering method. metering method; or if the current distance scene is the first distance scene, determine the central metering method as the target metering method.

在一实施例中,确定模块101采用如下方式基于图像区域内全部像素的距离分布集中程度,确定局部测光方式或者多点测光方式为目标测光方式:当满足第一预设条件时,确定局部测光方式为目标测光方式,并将满足第一预设条件的像素对应的区域确定为测光区域;当不满足第一预设条件时,则确定多点测光方式为目标测光方式,目标测光方式对应的测光区域为整个图像区域;其中,第一预设条件包括:预设距离范围内像素数量与图像区域中全部像素数量之间的比值大于第一预设比例阈值。In one embodiment, the determining module 101 adopts the following method to determine the local metering method or the multi-point metering method as the target metering method based on the concentration degree of the distance distribution of all pixels in the image area: when the first preset condition is satisfied, It is determined that the local metering method is the target metering method, and the area corresponding to the pixels that satisfy the first preset condition is determined as the metering area; when the first preset condition is not satisfied, the multi-point metering method is determined to be the target metering method. In the light mode, the photometric area corresponding to the target photometric mode is the entire image area; wherein, 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 the first preset ratio threshold.

在一实施例中,确定模块101采用如下方式基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为目标测光方式:当满足第二预设条件时,确定中央测光方式为目标测光方式,且目标测光方式对应的测光区域为图像中央区域;当不满足第二预设条件时,确定局部测光方式为目标测光方式;其中,第二预设条件包括:在图像中央区域内,像素数量与图像区域中全部像素数量之间的比值大于第二预设比例阈值。In one embodiment, the determining module 101 adopts the following method to determine the central photometric mode or the local photometric mode as the target photometric mode based on the concentration degree of the distance distribution of all pixels in the central area of the image: when the second preset condition is satisfied, It is determined that the central light metering method is the target light metering method, and the light metering area corresponding to the target light metering method is the central area of the image; when the second preset condition is not satisfied, the local light metering method is determined to be the target light metering method; wherein, the third The second preset condition includes: in the central area of the image, the ratio between the number of pixels and the number of all pixels in the image area is greater than the second preset ratio threshold.

图10是根据一示例性实施例示出的一种图像拍摄装置框图,参照图10,图像拍摄装置100还包括调整模块103。FIG. 10 is a block diagram of an image capturing apparatus according to an exemplary embodiment. Referring to FIG. 10 , the image capturing apparatus 100 further includes an adjustment module 103 .

调整模块103,用于当前距离场景为第一距离场景,且当前画面缩放值大于预设画面缩放值的阈值时,基于当前画面缩放值与最大缩放倍数的比值,调整测光区域。The adjustment module 103 is used to adjust the photometric area based on the ratio of the current image zoom value to the maximum zoom factor when the current distance scene is the first distance scene and the current image zoom value is greater than the preset image zoom value threshold.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned 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 described in detail here.

图11是根据一示例性实施例示出的一种图像拍摄装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 11 is a block diagram of an image capturing apparatus 800 according to an exemplary embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图11,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电力组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件 814,以及通信组件816。11, the apparatus 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 communication component 816.

处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。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 perform all or some of the steps of the methods described above. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 804 is configured to store various types of data to support operations at device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and the like. Memory 804 may be implemented by any type of volatile or non-volatile storage device or 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.

电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。Power component 806 provides power to various components of device 800 . Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800 .

多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。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 a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the apparatus 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。Audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when device 800 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 804 or transmitted via communication component 816 . In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置 800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of device 800 . For example, the sensor assembly 814 can detect the open/closed state of the device 800, the relative positioning of the components, such as the display and keypad of the device 800, the sensor assembly 814 can also detect a change in the position of the device 800 or a component of the device 800, the user The presence or absence of contact with the device 800, the orientation or acceleration/deceleration of the device 800 and the temperature change of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA) 技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 816 is configured to facilitate wired or wireless communication between apparatus 800 and other devices. Device 800 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals 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 may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, 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 A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, executable by the processor 820 of the apparatus 800 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

可以理解的是,本公开中“多个”是指两个或两个以上,其它量词与之类似。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。It should be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship. The singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.

进一步可以理解的是,术语“第一”、“第二”等用于描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开,并不表示特定的顺序或者重要程度。实际上,“第一”、“第二”等表述完全可以互换使用。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。It is further understood that the terms "first", "second", etc. are used to describe various information, but the information should not be limited to these terms. These terms are only used to distinguish the same type of information from one another, and do not imply a particular order or level of importance. In fact, the expressions "first", "second" etc. are used completely interchangeably. For example, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information, without departing from the scope of the present disclosure.

进一步可以理解的是,除非有特殊说明,“连接”包括两者之间不存在其他构件的直接连接,也包括两者之间存在其他元件的间接连接。It should be further understood that, unless otherwise specified, "connection" includes a direct connection between the two without other components, and also includes an indirect connection between the two with other elements.

进一步可以理解的是,本公开实施例中尽管在附图中以特定的顺序描述操作,但是不应将其理解为要求按照所示的特定顺序或是串行顺序来执行这些操作,或是要求执行全部所示的操作以得到期望的结果。在特定环境中,多任务和并行处理可能是有利的。It is further to be understood that, although the operations in the embodiments of the present disclosure are described in a specific order in the drawings, it should not be construed as requiring that the operations be performed in the specific order shown or the serial order, or requiring Perform all operations shown to obtain the desired result. In certain circumstances, multitasking and parallel processing may be advantageous.

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of 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 techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying 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 (14)

1.一种图像拍摄方法,其特征在于,所述图像拍摄方法包括:1. An image capturing method, wherein the image capturing method comprises: 基于飞行时间点阵距离,确定当前距离场景,其中,距离场景与测光方式之间具有对应关系;Determine the current distance scene based on the time-of-flight lattice distance, wherein there is a corresponding relationship between the distance scene and the metering method; 确定匹配所述当前距离场景的目标测光方式,并采用所述目标测光方式进行图像拍摄。A target light metering method matching the current distance scene is determined, and the target light metering method is used to capture an image. 2.根据权利要求1所述的图像拍摄方法,其特征在于,所述当前距离场景包括第一距离场景、第二距离场景或者第三距离场景;2. The image capturing method according to claim 1, wherein the current distance scene comprises a first distance scene, a second distance scene or a third distance scene; 基于飞行时间点阵距离,确定当前距离场景,包括:Based on the time-of-flight lattice distance, determine the current distance scene, including: 若所述飞行时间点阵距离,小于所述飞行时间点阵极限测距距离的第一比例阈值,则确定当前距离场景为第一距离场景;If the time-of-flight lattice distance is less than the first proportional threshold of the limit-ranging distance of the time-of-flight lattice, then determine that the current distance scene is the first distance scene; 若所述飞行时间点阵距离,大于所述飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第二距离场景;If the time-of-flight lattice distance is greater than the second proportional threshold of the limit-ranging distance of the time-of-flight lattice, it is determined that the current distance scene is the second distance scene; 若所述飞行时间点阵距离,大于所述飞行时间点阵极限测距距离的第一比例阈值,且小于所述飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第三距离场景;If the time-of-flight lattice distance is greater than the first proportional threshold of the time-of-flight lattice limit ranging distance and smaller than the second proportional threshold of the flight-time lattice limit distance, the current distance scenario is determined as The third distance scene; 其中,所述第一比例阈值小于所述第二比例阈值。Wherein, the first proportional threshold is smaller than the second proportional threshold. 3.根据权利要求1或2所述的图像拍摄方法,其特征在于,所述确定匹配所述当前距离场景的目标测光方式,包括以下至少一种:3. The image capturing method according to claim 1 or 2, wherein the determining a target light metering method matching the current distance scene comprises at least one of the following: 在当前距离场景为第二距离场景的情况下,则基于图像区域内全部像素的距离分布集中程度,确定局部测光方式或者多点测光方式为所述目标测光方式;In the case that the current distance scene is the second distance scene, the local metering method or the multi-point metering method is determined as the target metering method based on the concentration of distance distribution of all pixels in the image area; 在当前距离场景为第三距离场景的情况下,则基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为所述目标测光方式;In the case where the current distance scene is the third distance scene, the central metering method or the local metering method is determined as the target metering method based on the concentration degree of distance distribution of all pixels in the central area of the image; 在当前距离场景为第一距离场景的情况下,则确定中央测光方式为所述目标测光方式。In the case that the current distance scene is the first distance scene, it is determined that the central light metering method is the target light metering method. 4.根据权利要求3所述的图像拍摄方法,其特征在于,基于图像区域内全部像素的距离分布集中程度,确定局部测光方式或者多点测光方式为所述目标测光方式,包括:4 . The image capturing method according to claim 3 , wherein, based on the concentration degree of distance distribution of all pixels in the image area, determining a local photometric mode or a multi-point photometric mode as the target photometric mode, comprising: 5 . 当满足第一预设条件时,确定局部测光方式为所述目标测光方式,并将满足第一预设条件的像素对应的区域确定为测光区域;When the first preset condition is met, determine the local metering mode as the target photometric mode, and determine the area corresponding to the pixel satisfying the first preset condition as the photometric area; 当不满足第一预设条件时,则确定多点测光方式为所述目标测光方式,所述目标测光方式对应的测光区域为整个图像区域;When the first preset condition is not met, the multi-point metering 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: a 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. 5.根据权利要求3所述的图像拍摄方法,其特征在于,基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为所述目标测光方式,包括:5 . The image capturing method according to claim 3 , wherein, based on the concentration degree of distance distribution of all pixels in the central area of the image, determining a central photometric mode or a local photometric mode as the target photometric mode, comprising: 6 . 当满足第二预设条件时,确定中央测光方式为所述目标测光方式,且所述目标测光方式对应的测光区域为所述图像中央区域;When the second preset condition is satisfied, determining that the central photometric mode is the target photometric mode, and the photometric area corresponding to the target photometric mode is the image central area; 当不满足第二预设条件时,确定局部测光方式为所述目标测光方式;When the second preset condition is not met, determining that the local metering method is the target metering method; 其中,所述第二预设条件包括:在所述图像中央区域内,像素数量与图像区域中全部像素数量之间的比值大于第二预设比例阈值。Wherein, the second preset condition includes: in the central area of the image, the ratio between the number of pixels and the number of all pixels in the image area is greater than a second preset ratio threshold. 6.根据权利要求3所述的图像拍摄方法,其特征在于,采用所述目标测光方式进行图像拍摄之前,所述方法还包括:6 . The image capturing method according to claim 3 , wherein, before using the target light metering method to capture an image, the method further comprises: 6 . 若当前距离场景为第一距离场景,且当前画面缩放值大于预设画面缩放值的阈值,则基于所述当前画面缩放值与最大缩放倍数的比值,调整测光区域。If the current distance scene is the first distance scene, and the current image zoom value is greater than the preset image zoom value threshold, the metering area is adjusted based on the ratio of the current image zoom value to the maximum zoom factor. 7.一种图像拍摄装置,其特征在于,所述图像拍摄装置包括:7. An image capturing device, wherein the image capturing device comprises: 确定模块,用于基于飞行时间点阵距离,确定当前距离场景,其中,距离场景与测光方式之间具有对应关系,以及确定匹配所述当前距离场景的目标测光方式;A determination module, configured to determine the current distance scene based on the time-of-flight lattice distance, wherein there is a correspondence between the distance scene and the photometric mode, and determine the target photometric mode that matches the current distance scene; 图像拍摄模块,用于采用所述目标测光方式进行图像拍摄。The image capturing module is used for capturing an image by adopting the target light metering method. 8.根据权利要求7所述的图像拍摄装置,其特征在于,所述当前距离场景包括第一距离场景、第二距离场景或者第三距离场景;8. The image capturing device according to claim 7, wherein the current distance scene comprises a first distance scene, a second distance scene or a third distance scene; 所述确定模块采用如下方式基于飞行时间点阵距离,确定当前距离场景:The determining module determines the current distance scene based on the time-of-flight lattice distance in the following manner: 若所述飞行时间点阵距离,小于所述飞行时间点阵极限测距距离的第一比例阈值,则确定当前距离场景为第一距离场景;If the time-of-flight lattice distance is less than the first proportional threshold of the limit-ranging distance of the time-of-flight lattice, then determine that the current distance scene is the first distance scene; 若所述飞行时间点阵距离,大于所述飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第二距离场景;If the time-of-flight lattice distance is greater than the second proportional threshold of the limit-ranging distance of the time-of-flight lattice, it is determined that the current distance scene is the second distance scene; 若所述飞行时间点阵距离,大于所述飞行时间点阵极限测距距离的第一比例阈值,且小于所述飞行时间点阵极限测距距离的第二比例阈值,则确定当前距离场景为第三距离场景;If the time-of-flight lattice distance is greater than the first proportional threshold of the time-of-flight lattice limit ranging distance and smaller than the second proportional threshold of the flight-time lattice limit distance, the current distance scenario is determined as The third distance scene; 其中,所述第一比例阈值小于所述第二比例阈值。Wherein, the first proportional threshold is smaller than the second proportional threshold. 9.根据权利要求7或8所述的图像拍摄装置,其特征在于,所述确定模块采用如下至少一种方式确定匹配所述当前距离场景的目标测光方式:9. The image capturing device according to claim 7 or 8, wherein the determining module adopts at least one of the following methods to determine a target light metering method matching the current distance scene: 在当前距离场景为第二距离场景的情况下,则基于图像区域内全部像素的距离分布集中程度,确定局部测光方式或者多点测光方式为所述目标测光方式;或In the case where the current distance scene is the second distance scene, the local metering method or the multi-point metering method is determined to be the target metering method based on the concentration of the distance distribution of all pixels in the image area; or 在当前距离场景为第三距离场景的情况下,则基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为所述目标测光方式;或In the case where the current distance scene is the third distance scene, the central metering method or the local metering method is determined as the target metering method based on the concentration of the distance distribution of all pixels in the central area of the image; or 在当前距离场景为第一距离场景的情况下,则确定中央测光方式为所述目标测光方式。In the case that the current distance scene is the first distance scene, it is determined that the central light metering method is the target light metering method. 10.根据权利要求9所述的图像拍摄装置,其特征在于,所述确定模块采用如下方式基于图像区域内全部像素的距离分布集中程度,确定局部测光方式或者多点测光方式为所述目标测光方式:10 . The image capturing device according to claim 9 , wherein the determining module adopts the following method to determine the local metering method or the multi-point metering method based on the concentration degree of the distance distribution of all pixels in the image area. 11 . Target metering method: 当满足第一预设条件时,确定局部测光方式为所述目标测光方式,并将满足第一预设条件的像素对应的区域确定为测光区域;When the first preset condition is met, determine the local metering mode as the target photometric mode, and determine the area corresponding to the pixel satisfying the first preset condition as the photometric area; 当不满足第一预设条件时,则确定多点测光方式为所述目标测光方式,所述目标测光方式对应的测光区域为整个图像区域;When the first preset condition is not satisfied, the multi-point metering 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: a 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. 11.根据权利要求9所述的图像拍摄装置,其特征在于,所述确定模块采用如下方式基于图像中央区域内全部像素的距离分布集中程度,确定中央测光方式或者局部测光方式为所述目标测光方式:11 . The image capturing device according to claim 9 , wherein the determination module adopts the following method to determine the central photometric mode or the local photometric mode as the said 11 . Target metering method: 当满足第二预设条件时,确定中央测光方式为所述目标测光方式,且所述目标测光方式对应的测光区域为所述图像中央区域;When the second preset condition is satisfied, determining that the central photometric mode is the target photometric mode, and the photometric area corresponding to the target photometric mode is the image central area; 当不满足第二预设条件时,确定局部测光方式为所述目标测光方式;When the second preset condition is not met, determining that the local metering method is the target metering method; 其中,所述第二预设条件包括:在所述图像中央区域内,像素数量与图像区域中全部像素数量之间的比值大于第二预设比例阈值。Wherein, the second preset condition includes: in the central area of the image, the ratio between the number of pixels and the number of all pixels in the image area is greater than a second preset ratio threshold. 12.根据权利要求9所述的图像拍摄装置,其特征在于,所述图像拍摄装置还包括:12. The image capturing device according to claim 9, wherein the image capturing device further comprises: 调整模块,用于当前距离场景为第一距离场景,且当前画面缩放值大于预设画面缩放值的阈值时,基于所述当前画面缩放值与最大缩放倍数的比值,调整测光区域。The adjustment module is used to adjust the light metering area based on the ratio of the current image zoom value to the maximum zoom factor when the current distance scene is the first distance scene and the current image zoom value is greater than the preset image zoom value threshold. 13.一种图像拍摄装置,其特征在于,包括:13. An image capturing device, comprising: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:执行权利要求1至6中任意一项所述的图像拍摄方法。Wherein, the processor is configured to: execute the image capturing method of any one of claims 1 to 6. 14.一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行权利要求1至6中任意一项所述的图像拍摄方法。14. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal can execute the image capturing method according to any one of claims 1 to 6 .
CN202011350468.5A 2020-11-26 2020-11-26 Image capturing method, image capturing device, and storage medium Active CN114554103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011350468.5A CN114554103B (en) 2020-11-26 2020-11-26 Image capturing method, image capturing device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011350468.5A CN114554103B (en) 2020-11-26 2020-11-26 Image capturing method, image capturing device, and storage medium

Publications (2)

Publication Number Publication Date
CN114554103A true CN114554103A (en) 2022-05-27
CN114554103B CN114554103B (en) 2025-04-08

Family

ID=81668155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011350468.5A Active CN114554103B (en) 2020-11-26 2020-11-26 Image capturing method, image capturing device, and storage medium

Country Status (1)

Country Link
CN (1) CN114554103B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118379277A (en) * 2024-05-23 2024-07-23 浙江得沃科技有限公司 A screen detection and identification method, system, device and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06189188A (en) * 1992-12-22 1994-07-08 Fuji Photo Film Co Ltd Video camera and photometric method therefor
JP2006311060A (en) * 2005-04-27 2006-11-09 Olympus Imaging Corp Imaging device and digital camera
JP2008005365A (en) * 2006-06-26 2008-01-10 Victor Co Of Japan Ltd Imaging device
CN101800859A (en) * 2009-02-11 2010-08-11 三星数码影像株式会社 Shooting method and apparatus for taking multiple shots using multiple light metering modes
JP2011171917A (en) * 2010-02-17 2011-09-01 Nec Corp Mobile terminal, and method and program for setting photographing system
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device
CN105578062A (en) * 2014-10-14 2016-05-11 宏碁股份有限公司 Method for selecting light metering mode and its image acquisition device
CN106131401A (en) * 2016-06-29 2016-11-16 深圳市金立通信设备有限公司 A kind of image pickup method and terminal
CN108174113A (en) * 2016-12-06 2018-06-15 佳能株式会社 image processing device
CN108377344A (en) * 2017-01-31 2018-08-07 松下知识产权经营株式会社 Camera system
CN111083453A (en) * 2018-10-18 2020-04-28 中兴通讯股份有限公司 Projection device, method and computer readable storage medium
CN111935370A (en) * 2020-07-10 2020-11-13 昆山丘钛微电子科技有限公司 Camera module, shooting method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06189188A (en) * 1992-12-22 1994-07-08 Fuji Photo Film Co Ltd Video camera and photometric method therefor
JP2006311060A (en) * 2005-04-27 2006-11-09 Olympus Imaging Corp Imaging device and digital camera
JP2008005365A (en) * 2006-06-26 2008-01-10 Victor Co Of Japan Ltd Imaging device
CN101800859A (en) * 2009-02-11 2010-08-11 三星数码影像株式会社 Shooting method and apparatus for taking multiple shots using multiple light metering modes
JP2011171917A (en) * 2010-02-17 2011-09-01 Nec Corp Mobile terminal, and method and program for setting photographing system
CN105578062A (en) * 2014-10-14 2016-05-11 宏碁股份有限公司 Method for selecting light metering mode and its image acquisition device
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device
CN106131401A (en) * 2016-06-29 2016-11-16 深圳市金立通信设备有限公司 A kind of image pickup method and terminal
CN108174113A (en) * 2016-12-06 2018-06-15 佳能株式会社 image processing device
CN108377344A (en) * 2017-01-31 2018-08-07 松下知识产权经营株式会社 Camera system
CN111083453A (en) * 2018-10-18 2020-04-28 中兴通讯股份有限公司 Projection device, method and computer readable storage medium
CN111935370A (en) * 2020-07-10 2020-11-13 昆山丘钛微电子科技有限公司 Camera module, shooting method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118379277A (en) * 2024-05-23 2024-07-23 浙江得沃科技有限公司 A screen detection and identification method, system, device and storage medium

Also Published As

Publication number Publication date
CN114554103B (en) 2025-04-08

Similar Documents

Publication Publication Date Title
CN109547701B (en) Image capturing method, device, storage medium and electronic device
WO2021051949A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN108419016B (en) Shooting method and device and terminal
CN110958401B (en) Super night scene image color correction method and device and electronic equipment
CN106484257A (en) Camera control method, device and electronic equipment
US11222235B2 (en) Method and apparatus for training image processing model, and storage medium
CN108154466B (en) Image processing method and device
CN110572584A (en) Image processing method, device, storage medium and electronic device
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
CN106973218A (en) The image pickup method and Intelligent flight equipment of Intelligent flight equipment
WO2023240444A1 (en) Image processing method, apparatus and storage medium
JP7339939B2 (en) METHOD, APPARATUS AND STORAGE MEDIUM FOR DISPLAYING CAPTURE PREVIEW IMAGES
CN111586280A (en) Shooting method, shooting device, terminal and readable storage medium
CN114554103A (en) Image capturing method, image capturing device and storage medium
CN116506730A (en) Method and device for determining focus area, electronic equipment, and storage medium
CN112188096A (en) Photographing method and device, terminal and storage medium
CN107770444B (en) Photographing parameter determination method and device
CN112702514B (en) Image acquisition method, device, equipment and storage medium
CN117177055A (en) Focusing method, focusing device and storage medium
CN106331463B (en) Camera focal length amplification method and device
CN116438568A (en) Method and device for generating location difference map, electronic equipment, chip and medium
CN116934823A (en) Image processing methods, devices, electronic equipment and readable storage media
CN114331852A (en) Method and device for processing high dynamic range image and storage medium
CN115134517A (en) Shooting control method and device and storage medium
CN112016595A (en) Image classification method and device, electronic equipment and readable storage medium

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