[go: up one dir, main page]

CN107026985A - flash lamp control method, device, electronic equipment and storage medium - Google Patents

flash lamp control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN107026985A
CN107026985A CN201710335995.0A CN201710335995A CN107026985A CN 107026985 A CN107026985 A CN 107026985A CN 201710335995 A CN201710335995 A CN 201710335995A CN 107026985 A CN107026985 A CN 107026985A
Authority
CN
China
Prior art keywords
flash lamp
target
flashlight
scene
light extraction
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.)
Pending
Application number
CN201710335995.0A
Other languages
Chinese (zh)
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 CN201710335995.0A priority Critical patent/CN107026985A/en
Publication of CN107026985A publication Critical patent/CN107026985A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

本公开是关于一种闪光灯控制方法、装置、电子设备及存储介质,其中,闪光灯控制方法包括:对闪光灯出光一侧的场景进行监测,获知目标监测参数;根据目标监测参数确定闪光灯的目标输出参数;根据闪光灯的目标输出参数控制闪光灯发光,该方法使得闪光灯能够根据环境状况控制输出光,提高了拍摄设备的成像质量。

The present disclosure relates to a flashlight control method, device, electronic equipment, and storage medium, wherein the flashlight control method includes: monitoring the scene on the light-emitting side of the flashlight to obtain target monitoring parameters; determining the target output parameters of the flashlight according to the target monitoring parameters ; According to the target output parameters of the flashlight, the flashlight is controlled to emit light, the method enables the flashlight to control the output light according to the environmental conditions, and improves the imaging quality of the shooting device.

Description

闪光灯控制方法、装置、电子设备及存储介质Flash control method, device, electronic device and storage medium

技术领域technical field

本公开涉及移动终端技术领域,尤其涉及闪光灯控制方法、装置、电子设备及存储介质。The present disclosure relates to the technical field of mobile terminals, and in particular, to a flash control method, device, electronic equipment, and storage medium.

背景技术Background technique

在相关技术中,移动终端上的闪光灯在拍照过程中被使用的频率较低,在大多数拍摄场景下,用户无法合理使用移动终端上的闪光灯来拍摄曝光适度的照片。在环境亮度比较低的情况下拍照时,如果闪光灯距离被拍摄物过远,拍摄得到的图像画面亮度较低。如果闪光灯距离被拍摄物过近,则会导致拍摄得到的图像画面亮度太高。In the related art, the flash light on the mobile terminal is used less frequently in the process of taking pictures, and in most shooting scenarios, users cannot reasonably use the flash light on the mobile terminal to take photos with moderate exposure. When taking pictures under low ambient brightness, if the flash is too far away from the subject, the brightness of the captured image will be low. If the flash is too close to the object to be photographed, the brightness of the captured image will be too high.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种闪光灯控制方法、装置、电子设备及存储介质。In order to overcome the problems existing in related technologies, the present disclosure provides a flashlight control method, device, electronic equipment and storage medium.

根据本公开的一个方面,提供了一种闪光灯控制方法,包括:对闪光灯出光一侧的场景进行监测,获知目标监测参数;根据所述目标监测参数确定所述闪光灯的目标输出参数;根据所述目标输出参数控制所述闪光灯发光。According to one aspect of the present disclosure, there is provided a flashlight control method, including: monitoring the scene on the light-emitting side of the flashlight to obtain target monitoring parameters; determining the target output parameters of the flashlight according to the target monitoring parameters; according to the The target output parameter controls the flash to emit light.

可选的,所述目标监测参数包括以下至少一者:所述闪光灯出光一侧的目标对象与所述闪光灯的距离信息、所述闪光灯出光一侧的场景的色温信息以及所述闪光灯出光一侧的场景的亮度信息。Optionally, the target monitoring parameters include at least one of the following: distance information between the target object on the light emitting side of the flash light and the flash light, color temperature information of the scene on the light emitting side of the flash light, and The brightness information of the scene.

可选的,所述根据所述目标监测参数确定所述闪光灯的目标输出参数的步骤包括:根据所述闪光灯出光一侧的所述目标对象与所述闪光灯的距离信息和/或所述闪光灯出光一侧的场景的亮度信息确定所述闪光灯的输出功率。Optionally, the step of determining the target output parameters of the flashlight according to the target monitoring parameters includes: according to the distance information between the target object on the light emitting side of the flashlight and the flashlight and/or the light emitted by the flashlight The brightness information of one side of the scene determines the output power of the flash.

可选的,所述根据所述目标监测参数确定所述闪光灯的目标输出参数的步骤包括:根据所述闪光灯出光一侧的场景的色温信息,确定所述闪光灯的目标色温。Optionally, the step of determining the target output parameters of the flashlight according to the target monitoring parameters includes: determining the target color temperature of the flashlight according to the color temperature information of the scene on the light emitting side of the flashlight.

根据本公开的第二个方面,还提供了一种闪光灯控制装置,包括:监测模块,被配置为对所述闪光灯出光一侧的场景进行监测,获知目标监测参数;确定模块,被配置为根据所述目标监测参数确定所述闪光灯的目标输出参数;控制模块,被配置为根据所述目标输出参数控制所述闪光灯发光。According to the second aspect of the present disclosure, there is also provided a flashlight control device, including: a monitoring module configured to monitor the scene on the light-emitting side of the flashlight to obtain target monitoring parameters; a determination module configured to The target monitoring parameter determines the target output parameter of the flashlight; the control module is configured to control the flashlight to emit light according to the target output parameter.

可选的,所述监测模块,被配置为对所述闪光灯出光一侧的场景进行监测,获知以下至少一种目标监测参数:所述闪光灯出光一侧的目标对象与所述闪光灯的距离信息、所述闪光灯出光一侧的场景的色温信息以及所述闪光灯出光一侧的场景的亮度信息。Optionally, the monitoring module is configured to monitor the scene on the light-emitting side of the flash light, and obtain at least one of the following target monitoring parameters: distance information between the target object on the light-emitting side of the flash light and the flash light, The color temperature information of the scene on the light-emitting side of the flashlight and the brightness information of the scene on the light-emitting side of the flashlight.

可选的,所述确定模块,被配置为根据所述闪光灯出光一侧的所述目标对象与所述闪光灯的距离信息和/或所述闪光灯出光一侧的场景的亮度信息确定所述闪光灯的输出功率。Optionally, the determination module is configured to determine the distance of the flash light from the target object on the light-emitting side of the flash light and/or the brightness information of the scene on the light-emitting side of the flash light. Output Power.

可选的,所述确定模块,被配置为根据所述闪光灯出光一侧的场景的色温信息,确定所述闪光灯的目标色温。Optionally, the determining module is configured to determine the target color temperature of the flash according to the color temperature information of the scene on the light emitting side of the flash.

根据本公开的第三个方面,提供了一种电子设备,包括:监测装置、闪光灯以及处理装置;所述监测装置用于对所述闪光灯出光一侧的场景进行监测,获知目标监测参数;所述处理装置用于根据所述目标监测参数确定所述闪光灯的目标输出参数,并根据所述目标输出参数控制所述闪光灯发光。According to a third aspect of the present disclosure, there is provided an electronic device, including: a monitoring device, a flashlight, and a processing device; the monitoring device is used to monitor the scene on the light-emitting side of the flashlight, and obtain target monitoring parameters; The processing device is configured to determine target output parameters of the flashlight according to the target monitoring parameters, and control the flashlight to emit light according to the target output parameters.

所述监测装置包括以下至少一者:红外感应器、光线感应器以及色温感应器。The monitoring device includes at least one of the following: an infrared sensor, a light sensor and a color temperature sensor.

根据本发明的第四个方面,提供了一种闪光灯控制装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:对闪光灯出光一侧的场景进行监测,获知目标监测参数;根据所述目标监测参数确定所述闪光灯的目标输出参数;根据所述目标输出参数控制所述闪光灯发光。According to a fourth aspect of the present invention, there is provided a flashlight control device, including: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to: Perform monitoring to obtain target monitoring parameters; determine target output parameters of the flashlight according to the target monitoring parameters; control the flashlight to emit light according to the target output parameters.

根据本发明的第五个方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,该程序指令被处理器执行时实现本公开的闪光灯控制方法的步骤。According to a fifth aspect of the present invention, there is provided a computer-readable storage medium on which computer program instructions are stored, wherein the steps of the flash control method of the present disclosure are implemented when the program instructions are executed by a processor.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本公开的实施例的技术方案能够根据监测到的拍摄环境的状况,动态控制闪光灯发光,使得闪光灯能够根据实际拍摄环境动态输出与拍摄环境相适应的光,提高拍摄得到的照片的质量。The technical solutions of the embodiments of the present disclosure can dynamically control the light of the flashlight according to the monitored conditions of the shooting environment, so that the flashlight can dynamically output light suitable for the shooting environment according to the actual shooting environment, and improve the quality of the photographed photos.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both 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 flow chart of a method for controlling a flashlight according to an exemplary embodiment.

图2是根据一示例性实施例示出的用于实现本公开的闪光灯控制方法的电子设备的示意图。Fig. 2 is a schematic diagram of an electronic device for implementing the flashlight control method of the present disclosure according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种闪光灯控制装置的框图。Fig. 3 is a block diagram of a flash control device according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种闪光灯控制装置的框图。Fig. 4 is a block diagram of a flash control device according to an exemplary embodiment.

具体实施方式detailed description

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

图1是根据一示例性实施例示出的一种闪光灯控制方法的流程图,如图1所示,该闪光灯控制方法应用于终端中,包括以下步骤。Fig. 1 is a flow chart showing a method for controlling a flashlight according to an exemplary embodiment. As shown in Fig. 1, the method for controlling a flashlight is applied to a terminal and includes the following steps.

在步骤S11中,对闪光灯出光一侧的场景进行监测,获知目标监测参数。In step S11, monitor the scene on the side where the flashlight emits light, and obtain target monitoring parameters.

对闪光灯出光一侧的场景进行监测,获知目标监测参数的操作至少可以包括对该场景中预设距离内是否存在目标对象进行监测,以及获知目标对象与闪光灯的距离。示例地,该目标对象为人物/人脸,此时,可以通过红外传感器(也称红外感应器)来监测该目标对象,该红外传感器可以设置于闪光灯旁边。在该种情况下,步骤S11进一步可以包括:监测闪光灯出光一侧是否存在目标对象;在监测到闪光灯一侧存在目标对象的情况下,获取目标对象与闪光灯的距离信息。The operation of monitoring the scene on the light-emitting side of the flashlight and obtaining the target monitoring parameters may at least include monitoring whether there is a target object within a preset distance in the scene, and knowing the distance between the target object and the flashlight. For example, the target object is a person/face. At this time, the target object can be monitored by an infrared sensor (also called an infrared sensor), and the infrared sensor can be arranged next to the flashlight. In this case, step S11 may further include: monitoring whether there is a target object on the light-emitting side of the flash light; and acquiring distance information between the target object and the flash light when the target object is detected on the side of the flash light.

对闪光灯出光一侧的场景进行监测,获知目标监测参数的操作还可以包括采集闪光灯出光一侧的场景的亮度信息。基于此,可以在闪光灯旁边增加一个光线感应器来采集闪光灯出光一侧的场景的亮度信息。当闪光灯出光一侧的场景的亮度值较大时,相应降低闪光灯的目标输出功率。具体地,可以预先设置在该场景对应的亮度值大于预设亮度值的情况下,控制闪光灯的实际输出功率为第一预设功率,在该场景对应的亮度值不大于预设亮度值的情况下,控制闪光灯的实际输出功率为第二预设功率,其中,第一预设功率小于第二预设功率。The operation of monitoring the scene on the light-emitting side of the flashlight and obtaining the target monitoring parameters may also include collecting brightness information of the scene on the light-emitting side of the flashlight. Based on this, a light sensor can be added next to the flash to collect the brightness information of the scene on the side where the flash emits light. When the brightness value of the scene on the light-emitting side of the flash is relatively large, the target output power of the flash is correspondingly reduced. Specifically, it can be pre-set that when the brightness value corresponding to the scene is greater than the preset brightness value, the actual output power of the flashlight is controlled to be the first preset power, and when the brightness value corresponding to the scene is not greater than the preset brightness value Next, the actual output power of the flashlight is controlled to be the second preset power, wherein the first preset power is smaller than the second preset power.

对闪光灯出光一侧的场景进行监测,获知目标监测参数的操作还可以进一步包括采集闪光灯出光一侧的场景对应的色温信息。根据采集到的色温信息能够控制闪光灯对当前拍摄场景进行色温补偿。The operation of monitoring the scene on the light-emitting side of the flashlight and obtaining the target monitoring parameters may further include collecting color temperature information corresponding to the scene on the light-emitting side of the flashlight. According to the collected color temperature information, the flash can be controlled to perform color temperature compensation for the current shooting scene.

在步骤S12中,根据目标监测参数确定闪光灯的目标输出参数。In step S12, the target output parameters of the flashlight are determined according to the target monitoring parameters.

在本公开中,目标监测参数可以包括:闪光灯一侧目标对象与闪光灯的距离信息、场景亮度信息以及场景色温信息,故根据目标监测参数确定闪光灯的目标输出参数可以包括以下几种情况:In the present disclosure, the target monitoring parameters may include: distance information between the target object on the side of the flash and the flash, scene brightness information, and scene color temperature information, so determining the target output parameters of the flash according to the target monitoring parameters may include the following situations:

根据闪光灯一侧目标对象与闪光灯的距离来确定闪光灯的目标输出参数;根据场景亮度来确定闪光灯的目标输出参数,或者,根据场景色温来确定闪光灯的目标输出参数。或者,根据以上三种目标监测参数中的任意两种来确定闪光灯的目标输出参数,又或者根据以上三种目标监测参数共同来确定闪光灯的目标输出参数。Determine the target output parameters of the flash according to the distance between the target object on one side of the flash and the flash; determine the target output parameters of the flash according to the brightness of the scene, or determine the target output parameters of the flash according to the color temperature of the scene. Alternatively, the target output parameter of the flashlight is determined according to any two of the above three target monitoring parameters, or the target output parameter of the flashlight is determined jointly according to the above three target monitoring parameters.

在步骤S13中,根据目标输出参数控制闪光灯发光。In step S13, the flashlight is controlled to emit light according to the target output parameter.

该目标输出参数可以包括闪光灯的目标输出功率以及目标色温参数。The target output parameters may include target output power and target color temperature parameters of the flashlight.

本公开提供的闪光灯控制方法能够根据监测到的拍摄环境的状况,动态控制闪光灯发光,使得闪光灯能够根据实际拍摄环境动态输出与拍摄环境相适应的光,提高拍摄得到的照片的质量。The flashlight control method provided in the present disclosure can dynamically control the light emission of the flashlight according to the monitored conditions of the shooting environment, so that the flashlight can dynamically output light suitable for the shooting environment according to the actual shooting environment, and improve the quality of photographed photos.

图2是根据一示例性实施例示出的用于实现本公开的闪光灯控制方法的电子设备的示意图,如图2所示,该电子设备包括摄像头21、闪光灯22、红外传感器23、光线感应器24以及色温感应器25,其中,红外传感器23、光线感应器24以及色温感应器25设置于闪光灯22附近即可,并不限于图2中所示的位置。图2中示出了在电子设备背面设置摄像头、闪光灯、红外传感器、光线感应器以及色温感应器来实现本公开的闪光灯控制方法,但为了实现对电子设备前置闪光灯的控制,本公开还可以将这些元器件设置于电子设备的正面,各元器件位置的布局同样可以参考图2中所示出的布局。Fig. 2 is a schematic diagram of an electronic device for implementing the flashlight control method of the present disclosure according to an exemplary embodiment. As shown in Fig. 2, the electronic device includes a camera 21, a flashlight 22, an infrared sensor 23, and a light sensor 24 And the color temperature sensor 25 , where the infrared sensor 23 , the light sensor 24 and the color temperature sensor 25 can be disposed near the flashlight 22 , and are not limited to the positions shown in FIG. 2 . Figure 2 shows that a camera, a flash, an infrared sensor, a light sensor, and a color temperature sensor are arranged on the back of the electronic device to realize the flash control method of the present disclosure, but in order to realize the control of the front flash of the electronic device, the present disclosure can also These components are arranged on the front of the electronic device, and the layout of the positions of the components can also refer to the layout shown in FIG. 2 .

图3是根据一示例性实施例示出的一种闪光灯控制装置的结构框图。参照图3,该装置300包括监测模块301,确定模块302控制模块303。Fig. 3 is a structural block diagram of a flashlight control device according to an exemplary embodiment. Referring to FIG. 3 , the device 300 includes a monitoring module 301 , a determination module 302 and a control module 303 .

该监测模块301被配置为对闪光灯出光一侧的场景进行监测,获知目标监测参数;The monitoring module 301 is configured to monitor the scene on the light-emitting side of the flashlight, and obtain target monitoring parameters;

该确定模块302被配置为根据目标监测参数确定闪光灯的目标输出参数;The determination module 302 is configured to determine the target output parameters of the flashlight according to the target monitoring parameters;

该控制模块303被配置为根据目标输出参数控制闪光灯发光。The control module 303 is configured to control the flashlight to emit light according to the target output parameter.

其中,监测模块301可以包括:第一监测单元,被配置为监测闪光灯出光一侧是否存在目标对象;以及获取单元,被配置为在监测到闪光灯一侧存在目标对象的情况下,获取目标对象与闪光灯的距离信息。Wherein, the monitoring module 301 may include: a first monitoring unit, configured to monitor whether there is a target object on the light-emitting side of the flash; The distance information of the flash.

在一个实施例中,上述监测模块301可以被配置为采集闪光灯出光一侧的场景对应的色温信息。In an embodiment, the above-mentioned monitoring module 301 may be configured to collect color temperature information corresponding to a scene on the light emitting side of the flashlight.

在另一个实施例中,上述监测模块301还可以被配置为采集闪光灯出光一侧的场景的亮度信息。In another embodiment, the above-mentioned monitoring module 301 may also be configured to collect brightness information of the scene on the light-emitting side of the flashlight.

在一个实施例中,确定模块302被配置为根据闪光灯出光一侧目标对象与闪光灯的距离信息确定闪光灯的输出功率;和/或,根据闪光灯出光一侧的场景的亮度信息确定闪光灯的输出功率。In one embodiment, the determining module 302 is configured to determine the output power of the flashlight according to the distance information between the target object on the light emitting side of the flashlight and the flashlight; and/or determine the output power of the flashlight according to the brightness information of the scene on the light emitting side of the flashlight.

在另一个实施例中,确定模块302被配置为根据闪光灯出光一侧的场景的色温信息确定闪光灯的目标色温信息。In another embodiment, the determining module 302 is configured to determine the target color temperature information of the flashlight according to the color temperature information of the scene on the light emitting side of the flashlight.

本公开还提供了另一种闪光灯控制装置,该装置包括:处理器以及用于存储处理器可执行指令的存储器;其中,处理器被配置为:对闪光灯出光一侧的场景进行监测,获知目标监测参数;根据目标监测参数确定闪光灯的目标输出参数;根据目标输出参数控制闪光灯发光。The present disclosure also provides another flashlight control device, which includes: a processor and a memory for storing processor-executable instructions; wherein, the processor is configured to: monitor the scene on the side where the flashlight emits light, and know the target monitoring parameters; determining the target output parameters of the flashlight according to the target monitoring parameters; controlling the flashlight to emit light according to the target output parameters.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

本公开提供的闪光灯控制装置能够根据监测到的拍摄环境的状况,动态控制闪光灯发光,使得闪光灯能够根据实际拍摄环境动态输出与拍摄环境相适应的光,提高拍摄得到的照片的质量。The flashlight control device provided in the present disclosure can dynamically control the light emission of the flashlight according to the monitored conditions of the shooting environment, so that the flashlight can dynamically output light suitable for the shooting environment according to the actual shooting environment, and improve the quality of photographed photos.

本公开还提供了一种计算机可读存储介质,该存储介质上存储有计算机程序指令,该程序指令被处理器执行时实现本公开闪光灯控制方法的步骤。The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the flashlight control method of the present disclosure are implemented.

本公开还提供了一种电子设备,该电子设备包括:监测装置、闪光灯以及处理装置;其中,监测装置至少可以包括以下一种传感器:用于监测闪光灯出光一侧目标对象距离闪光灯的距离信息的传感器,例如,红外感应器或距离传感器;用于监测闪光灯出光一侧场景的亮度信息的光线感应器;以及用于监测闪光灯出光一侧场景的色温信息的色温感应器。处理装置具体可以是处理器,用于根据距离信息和/或亮度信息确定闪光灯的目标输出功率,以及根据目标输出功率控制闪光灯发光,或者,处理装置还可以进一步根据色温信息确定闪光灯的目标色温,根据目标色温控制闪光灯发光。The present disclosure also provides an electronic device, which includes: a monitoring device, a flashlight, and a processing device; wherein, the monitoring device may include at least one of the following sensors: a sensor for monitoring the distance information between the target object on the side where the flashlight emits light and the flashlight Sensors, for example, an infrared sensor or a distance sensor; a light sensor for monitoring the brightness information of the scene on the light-emitting side of the flash; and a color temperature sensor for monitoring the color temperature information of the scene on the light-emitting side of the flash. The processing device may specifically be a processor, configured to determine the target output power of the flashlight according to the distance information and/or brightness information, and control the flashlight to emit light according to the target output power, or the processing device may further determine the target color temperature of the flashlight according to the color temperature information, Controls the flash to emit light according to the target color temperature.

图4是根据一示例性实施例示出的一种用于闪光灯控制装置400的框图。例如,装置400可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备以及个人数字助理等。Fig. 4 is a block diagram of a flash control device 400 according to an exemplary embodiment. For example, the apparatus 400 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, and the like.

参照图4,装置400可以包括以下一个或多个组件:处理组件402,存储器404,电力组件406,多媒体组件405,音频组件410,输入/输出(I/O)的接口412,传感器组件414(该传感器组件即可以包括上述光线感应器、红外感应器以及色温感应器中的至少一种),以及通信组件416。4, device 400 may include one or more of the following components: processing component 402, memory 404, power component 406, multimedia component 405, audio component 410, input/output (I/O) interface 412, sensor component 414 ( The sensor component may include at least one of the aforementioned light sensor, infrared sensor, and color temperature sensor), and a communication component 416 .

处理组件402通常控制装置400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件402可以包括一个或多个处理器420来执行指令,以完成上述闪光灯控制方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其他组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件405和处理组件402之间的交互。The processing component 402 generally controls the overall operations of the device 400, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above flash control method. Additionally, processing component 402 may include one or more modules that facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 405 and processing component 402 .

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

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

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

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

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

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

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

在示例性实施例中,装置400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述闪光灯控制方法。In an exemplary embodiment, apparatus 400 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Realized by a gate array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, for implementing the above-mentioned flashlight control method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由装置400的处理器420执行以完成上述闪光灯控制方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 404 including instructions, which can be executed by the processor 420 of the device 400 to implement the above flash control method. 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.

本领域技术人员在考虑说明书及实践本公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

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

1. a kind of flash lamp control method, it is characterised in that including:
Scene to flash lamp light extraction side is monitored, and knows target monitoring parameter;
The target output parameter of the flash lamp is determined according to the target monitoring parameter;
The flash lamp is controlled to light according to the target output parameter.
2. flash lamp control method according to claim 1, it is characterised in that the target monitoring parameter is included below extremely Few one:
The destination object of the flash lamp light extraction side and the range information of the flash lamp, the field of the flash lamp light extraction side The monochrome information of the scene of the color temperature information of scape and the flash lamp light extraction side.
3. flash lamp control method according to claim 1, it is characterised in that described true according to the target monitoring parameter The step of target output parameter of the fixed flash lamp, includes:
According to the destination object of the flash lamp light extraction side and the range information and/or the flash lamp light extraction of the flash lamp The monochrome information of the scene of side determines the power output of the flash lamp.
4. flash lamp control method according to claim 1, it is characterised in that described true according to the target monitoring parameter The step of target output parameter of the fixed flash lamp, includes:
According to the color temperature information of the scene of the flash lamp light extraction side, the target colour temperature of the flash lamp is determined.
5. a kind of device for controlling flashlight, it is characterised in that including:
Monitoring modular, is configured as being monitored the scene of flash lamp light extraction side, knows target monitoring parameter;
Determining module, is configured as determining the target output parameter of the flash lamp according to the target monitoring parameter;
Control module, is configured as controlling the flash lamp to light according to the target output parameter.
6. device for controlling flashlight according to claim 5, it is characterised in that the monitoring modular, is configured as to institute The scene for stating flash lamp light extraction side is monitored, and knows following at least one target monitoring parameter:
The destination object of the flash lamp light extraction side and the range information of the flash lamp, the field of the flash lamp light extraction side The monochrome information of the scene of the color temperature information of scape and the flash lamp light extraction side.
7. device for controlling flashlight according to claim 5, it is characterised in that the determining module, is configured as basis The destination object of the flash lamp light extraction side and the distance of the flash lamp and/or the scene of the flash lamp light extraction side Monochrome information determines the power output of the flash lamp.
8. device for controlling flashlight according to claim 5, it is characterised in that the determining module, is configured as basis The color temperature information of the scene of the flash lamp light extraction side, determines the target colour temperature of the flash lamp.
9. a kind of electronic equipment, it is characterised in that including:
Monitoring device, flash lamp and processing unit;
The monitoring device is used to be monitored the scene of the flash lamp light extraction side, knows target monitoring parameter;
The processing unit is used for the target output parameter that the flash lamp is determined according to the target monitoring parameter, and according to institute Stating target output parameter controls the flash lamp to light.
10. electronic equipment according to claim 9, it is characterised in that the monitoring device include it is following at least one:
Infrared inductor, light sensor and colour temperature inductor.
11. a kind of device for controlling flashlight, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Scene to flash lamp light extraction side is monitored, and knows target monitoring parameter;
The target output parameter of the flash lamp is determined according to the target monitoring parameter;
The flash lamp is controlled to light according to the target output parameter.
12. a kind of computer-readable recording medium, is stored thereon with computer program instructions, it is characterised in that the programmed instruction The step of flash lamp control method described in Claims 1-4 any one is realized when being executed by processor.
CN201710335995.0A 2017-05-12 2017-05-12 flash lamp control method, device, electronic equipment and storage medium Pending CN107026985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710335995.0A CN107026985A (en) 2017-05-12 2017-05-12 flash lamp control method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710335995.0A CN107026985A (en) 2017-05-12 2017-05-12 flash lamp control method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN107026985A true CN107026985A (en) 2017-08-08

Family

ID=59529048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710335995.0A Pending CN107026985A (en) 2017-05-12 2017-05-12 flash lamp control method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107026985A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543666A (en) * 2018-11-05 2019-03-29 北京小米移动软件有限公司 Structure light assembly control method and device
CN110187591A (en) * 2019-05-07 2019-08-30 Oppo广东移动通信有限公司 Flash lamp control method and device, electronic equipment and storage medium
WO2022222319A1 (en) 2021-04-23 2022-10-27 Zhejiang Dahua Technology Co., Ltd. Systems and methods for video surveillance
CN116634267A (en) * 2022-02-11 2023-08-22 北京小米移动软件有限公司 Camera shooting method, device, electronic device and storage medium
US12283177B2 (en) 2020-06-30 2025-04-22 Zhejiang Dahua Technology Co., Ltd. Systems and methods for monitoring control

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082755A (en) * 2006-06-01 2007-12-05 普立尔科技股份有限公司 flash light excitation method
US20100045848A1 (en) * 2008-08-22 2010-02-25 Sanyo Electric Co., Ltd. Electronic camera
CN104506772A (en) * 2014-12-22 2015-04-08 小米科技有限责任公司 Method and device for regulating shooting parameters
CN105636310A (en) * 2015-03-27 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Flash lamp brightness adjusting method, flash lamp brightness adjusting device and terminal
CN105721762A (en) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 Flash lamp control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082755A (en) * 2006-06-01 2007-12-05 普立尔科技股份有限公司 flash light excitation method
US20100045848A1 (en) * 2008-08-22 2010-02-25 Sanyo Electric Co., Ltd. Electronic camera
CN105721762A (en) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 Flash lamp control method and device
CN104506772A (en) * 2014-12-22 2015-04-08 小米科技有限责任公司 Method and device for regulating shooting parameters
CN105636310A (en) * 2015-03-27 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Flash lamp brightness adjusting method, flash lamp brightness adjusting device and terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543666A (en) * 2018-11-05 2019-03-29 北京小米移动软件有限公司 Structure light assembly control method and device
CN110187591A (en) * 2019-05-07 2019-08-30 Oppo广东移动通信有限公司 Flash lamp control method and device, electronic equipment and storage medium
US12283177B2 (en) 2020-06-30 2025-04-22 Zhejiang Dahua Technology Co., Ltd. Systems and methods for monitoring control
WO2022222319A1 (en) 2021-04-23 2022-10-27 Zhejiang Dahua Technology Co., Ltd. Systems and methods for video surveillance
EP4309158A4 (en) * 2021-04-23 2024-08-21 Zhejiang Dahua Technology Co., Ltd. Systems and methods for video surveillance
CN116634267A (en) * 2022-02-11 2023-08-22 北京小米移动软件有限公司 Camera shooting method, device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN105554399A (en) Photographing method, photographing device and terminal device
CN107026985A (en) flash lamp control method, device, electronic equipment and storage medium
WO2017008400A1 (en) Method and device for controlling intelligent device
CN107798664A (en) The colour temperature calibration method and device of flash lamp
CN107347136A (en) Photographic method, device and terminal device
WO2018000710A1 (en) Method and device for displaying wifi signal icon and mobile terminal
CN107015648A (en) Image processing method and device
CN108040213B (en) Method, apparatus and computer-readable storage medium for capturing images
CN112689047B (en) Display control method and device and electronic equipment
CN105915795A (en) Multi-terminal linkage shooting method and multi-terminal linkage shooting device
CN111405109A (en) Brightness control method, brightness control device and electronic equipment
CN105611172B (en) The reminding method and device that countdown is taken pictures
US11617023B2 (en) Method for brightness enhancement of preview image, apparatus, and medium
CN104850643B (en) Image comparison method and device
CN107809545B (en) Control method and device of intelligent equipment and storage medium
CN107368280A (en) Method for controlling volume, device and the interactive voice equipment of interactive voice
CN105915806A (en) Picture shooting method and device
CN116419057A (en) Shooting method, shooting device and storage medium
CN106878654A (en) Method and device for video communication
CN106412417A (en) Method and device for shooting images
CN107193446B (en) Image processing method, device, terminal and storage medium
CN107948876B (en) Method, device and medium for controlling sound box equipment
CN106375744B (en) Information projecting method and device
CN105873154B (en) Network access method and device
CN108021319A (en) The method and apparatus of smart machine on probation

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170808

RJ01 Rejection of invention patent application after publication