WO2019061546A1 - Mobile terminal photographing method, device and computer readable storage medium - Google Patents

Mobile terminal photographing method, device and computer readable storage medium Download PDF

Info

Publication number
WO2019061546A1
WO2019061546A1 PCT/CN2017/105166 CN2017105166W WO2019061546A1 WO 2019061546 A1 WO2019061546 A1 WO 2019061546A1 CN 2017105166 W CN2017105166 W CN 2017105166W WO 2019061546 A1 WO2019061546 A1 WO 2019061546A1
Authority
WO
WIPO (PCT)
Prior art keywords
photographing
mobile terminal
brightness value
preset
parameter
Prior art date
Application number
PCT/CN2017/105166
Other languages
French (fr)
Chinese (zh)
Inventor
朱斌杰
彭植远
兰俊
Original Assignee
深圳传音通讯有限公司
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 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to PCT/CN2017/105166 priority Critical patent/WO2019061546A1/en
Publication of WO2019061546A1 publication Critical patent/WO2019061546A1/en

Links

Classifications

    • 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

Definitions

  • the present invention provides a photographing method for a mobile terminal, the method comprising the following steps:
  • the target parameter corresponding to the current ambient brightness value is found in the preset parameter table, and the exposure parameter is set based on the target parameter;
  • the flash is turned on.
  • the terminal of the embodiment of the present invention may be a PC.
  • the terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is used to implement connection communication between these components.
  • the user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface.
  • the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
  • the memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
  • a memory 1005 as a computer storage medium may include an operation server, a network communication module, a user interface module, and a photographing program of the mobile terminal.
  • processor 1001 may call the photographing program of the mobile terminal stored in the memory 1005, and further perform the following operations:
  • processor 1001 may call the photographing program of the mobile terminal stored in the memory 1005, and further perform the following operations:
  • processor 1001 may call the photographing program of the mobile terminal stored in the memory 1005, and further perform the following operations:
  • the brightness of the flash is enhanced when the light intensity is less than a predetermined threshold.
  • FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for photographing a mobile terminal according to the present invention.
  • Step S10 Acquire a current ambient brightness value when receiving a preset operation instruction
  • the photographing instruction may be triggered by the user by clicking a photographing button, and then the camera performs photographing
  • the exposure parameters include a shutter time, a sensitivity, and an aperture value
  • the sensitivity refers to a sensor film's ability to sense light, generally In other words, the greater the sensitivity, the more noise the photo takes, but the value is also based on the current ambient brightness and shutter time. Therefore, the sensitivity of the corresponding ambient brightness is stored in the preset parameter table.
  • Shutter time which effectively reduces the noise.
  • the shutter time is set very short.
  • the camera button the camera takes a photo in a short time after the camera command is triggered. The time can be 0.1 second. , 0.2 seconds, etc.
  • the mobile terminal is provided with a light sensor
  • the shooting area refers to an image area collected by the camera, and the brightness in the shooting area is uneven, and the light sensor can acquire various brightness values in the shooting area.
  • the mobile terminal includes a calculation program, and can automatically calculate an average brightness value in the shooting area according to each brightness value, where the average brightness value is the closest to the ambient brightness value, and the average brightness value is set as the ambient brightness value.
  • an average value may be taken as an average brightness value among the obtained brightness values, and a brightness value in the average area may be calculated according to an area in a shooting area where each brightness value is located.
  • the method of the luminance value is not specifically limited.
  • the brightness value corresponding to the minimum difference value is found in the preset parameter table, and then the parameter corresponding to the minimum difference value is found according to the brightness value, and the parameter corresponding to the minimum difference value is set to Target parameters.
  • the dark environment refers to the ambient brightness being lower than the preset brightness
  • the preset brightness is set by a technician.
  • the mobile terminal acquires the brightness of the shooting area, and determines that the current ambient brightness is lower than the preset ambient brightness by calculation and analysis, and determines that the current ambient brightness is a dark environment.
  • Step S72 when the light intensity is less than a preset threshold, the brightness of the flash is enhanced.
  • the photographing task Upon receiving the photographing instruction, the photographing task is performed based on the exposure parameter.
  • the ambient brightness value is matched with each of the preset brightness ranges, and when the ambient brightness value is in the preset brightness range, the target parameter corresponding to the preset brightness range is acquired.
  • the flash is turned on.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a photographing method for a mobile terminal, comprising the following steps: obtaining a current ambient brightness value when a preset operation instruction is received; when entering the photographing interface, finding a target parameter corresponding to the current ambient brightness value in a preset parameter table, and setting the exposure parameter on the basis of the target parameter; and when the photographing instruction is received, performing the photographing task on the basis of the exposure parameter. Also disclosed in the invention are a camera device and a computer readable storage medium for the mobile terminal. According to the present invention, the ambient brightness value is obtained before entering the photographing interface, and the exposure parameter is set according to the ambient brightness value to complete the automatic exposure, which effectively shortens the time of taking pictures and reduces the noise of taking pictures, thereby improving the user experience.

Description

移动终端的拍照方法、装置及计算机可读存储介质  Photographing method, device and computer readable storage medium for mobile terminal
技术领域Technical field
本发明涉及移动终端技术领域,尤其涉及一种移动终端的拍照方法、装置及计算机可读存储介质。The present invention relates to the field of mobile terminal technologies, and in particular, to a method and device for photographing a mobile terminal, and a computer readable storage medium.
背景技术Background technique
随着移动终端技术的快速发展,人们对移动终端的拍照功能要求越来越高,手机拍照已成为当代时尚且必不可少的一部分,例如,自拍、抓拍、远拍,现在手机都带有曝光功能,能够根据周围环境亮度拍出清晰的照片。With the rapid development of mobile terminal technology, people are increasingly demanding the camera function of mobile terminals. Mobile phone photography has become an indispensable part of contemporary fashion. For example, self-timer, capture, and far-shooting, mobile phones now have exposure. Function, able to take clear photos according to the brightness of the surrounding environment.
目前,手机拍照时,在进入拍照界面后,通过采集多帧当前图像,计算当前环境亮度及画面亮度,然后再设置曝光参数进行拍照,但这种拍照方法拍照速度慢,在随时抓拍时照片噪点很多,影响用户体验。At present, when the mobile phone is photographed, after entering the photographing interface, the current ambient brightness and the screen brightness are calculated by collecting the current image of the multi-frame, and then the exposure parameters are set to take a photo, but the photographing method is slow in photographing, and the photo noise is captured at any time. A lot, affecting the user experience.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种移动终端的拍照方法,装置及计算机可读存储介质,旨在解决拍照速度慢、噪点多的技术问题。The main purpose of the present invention is to provide a photographing method, a device and a computer readable storage medium for a mobile terminal, aiming at solving the technical problem of slow photographing speed and high noise.
为实现上述目的,本发明提供一种移动终端的拍照方法,所述方法包括以下步骤:To achieve the above objective, the present invention provides a photographing method for a mobile terminal, the method comprising the following steps:
在接收到预设操作指令时,获取当前环境亮度值;Obtaining the current ambient brightness value when receiving the preset operation instruction;
在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数,并基于所述目标参数设置曝光参数;When entering the photographing interface, the target parameter corresponding to the current ambient brightness value is found in the preset parameter table, and the exposure parameter is set based on the target parameter;
在接收到拍照指令时,基于所述曝光参数执行拍照任务。Upon receiving the photographing instruction, the photographing task is performed based on the exposure parameter.
优选地,所述获取当前环境亮度值的步骤包括:Preferably, the step of acquiring a current ambient brightness value comprises:
获取拍摄区域内的亮度值,其中,拍摄区域内存在多个亮度值;Obtaining a brightness value in a shooting area, wherein a plurality of brightness values exist in the shooting area;
计算获得所述拍摄区域内的平均亮度值,并将所述平均亮度值设置为环境亮度值。The average brightness value in the shooting area is calculated and set to the ambient brightness value.
优选地,所述在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数的步骤包括:Preferably, the step of finding the target parameter corresponding to the current ambient brightness value in the preset parameter table when entering the photographing interface comprises:
获取预设参数表中各个参数对应的各个预设亮度范围;Obtaining each preset brightness range corresponding to each parameter in the preset parameter table;
将所述环境亮度值与各个所述预设亮度范围进行匹配,当所述环境亮度值在所述预设亮度范围时,获取所述预设亮度范围对应的目标参数。The ambient brightness value is matched with each of the preset brightness ranges, and when the ambient brightness value is in the preset brightness range, the target parameter corresponding to the preset brightness range is acquired.
优选地,所述在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数的步骤还包括:Preferably, the step of finding the target parameter corresponding to the current ambient brightness value in the preset parameter table when the camera interface is entered further includes:
获取预设参数表中各个参数对应的各个亮度值,并计算各个亮度值与所述环境亮度值的差值;Obtaining respective brightness values corresponding to each parameter in the preset parameter table, and calculating a difference between each brightness value and the ambient brightness value;
获取各个差值中最小差值对应的参数,并将所述最小差值对应的参数设置为目标参数。Obtaining a parameter corresponding to the smallest difference among the differences, and setting a parameter corresponding to the minimum difference as the target parameter.
优选地,所述在接收到预设操作指令时,获取当前环境亮度值的步骤之后,所述移动终端的拍照方法还包括:Preferably, after the step of acquiring the current ambient brightness value when the preset operation instruction is received, the photographing method of the mobile terminal further includes:
基于所述当前环境亮度值确定当前环境是否为暗环境;Determining whether the current environment is a dark environment based on the current ambient brightness value;
在所述当前环境为暗环境时,开启闪光灯。When the current environment is a dark environment, the flash is turned on.
优选地,所述在所述当前环境为暗环境时,开启闪光灯的步骤之后,所述移动终端的拍照方法还包括:Preferably, after the step of turning on the flash when the current environment is a dark environment, the photographing method of the mobile terminal further includes:
获取闪光灯预闪时的光线强度;Get the light intensity when the flash is pre-flashed;
基于所述光线强度调节闪光灯的亮度,并当所述光线强度达到预设曝光量时,执行拍照任务。The brightness of the flash is adjusted based on the light intensity, and when the light intensity reaches a preset exposure amount, a photographing task is performed.
优选地,所述基于所述光线强度调节闪光灯的亮度的步骤包括:Preferably, the step of adjusting the brightness of the flash based on the light intensity comprises:
当所述光线强度大于预设阈值时,减弱闪光灯的亮度;Attenuating the brightness of the flash when the light intensity is greater than a preset threshold;
当所述光线强度小于预设阈值时,增强闪光灯的亮度。The brightness of the flash is enhanced when the light intensity is less than a predetermined threshold.
此外,为实现上述目的,本发明还提供一种移动终端的拍照装置,移动终端的拍照装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的移动终端的拍照程序,所述移动终端的拍照程序被所述处理器执行时实现上述任一项移动终端的拍照方法的步骤。In addition, in order to achieve the above object, the present invention further provides a photographing apparatus of a mobile terminal, where the photographing apparatus of the mobile terminal includes: a memory, a processor, and a mobile terminal stored on the memory and operable on the processor a photographing program, the step of implementing the photographing method of any one of the above mobile terminals when the photographing program of the mobile terminal is executed by the processor.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有移动终端的拍照程序,所述移动终端的拍照程序被处理器执行时实现上述任一项移动终端的拍照方法的步骤。In addition, in order to achieve the above object, the present invention further provides a computer readable storage medium on which a photographing program of a mobile terminal is stored, and when the photographing program of the mobile terminal is executed by a processor, the foregoing A step of a method of photographing a mobile terminal.
本发明通过在接收到预设操作指令时,获取当前环境亮度值;在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数,并基于所述目标参数设置曝光参数;在接收到拍照指令时,基于所述曝光参数执行拍照任务。本发明还公开了一种移动终端的拍照装置及计算机可读存储介质。实现了在进入拍照界面前获取环境亮度值,并根据环境亮度值设置曝光参数,完成自动曝光,有效的减短了拍照的时间,并且减少了拍照的噪点,从而提高了用户体验。The invention obtains the current ambient brightness value when receiving the preset operation instruction; when entering the photographing interface, finds the target parameter corresponding to the current ambient brightness value in the preset parameter table, and sets the exposure based on the target parameter a parameter; when receiving a photographing instruction, performing a photographing task based on the exposure parameter. The invention also discloses a camera device and a computer readable storage medium for a mobile terminal. The environment brightness value is obtained before entering the photographing interface, and the exposure parameter is set according to the ambient brightness value, the automatic exposure is completed, the photographing time is effectively shortened, and the noise of the photographing is reduced, thereby improving the user experience.
附图说明DRAWINGS
图1是本发明实施例方案涉及的硬件运行环境中移动终端的拍照装置所属终端的结构示意图;1 is a schematic structural diagram of a terminal to which a camera device of a mobile terminal belongs in a hardware operating environment according to an embodiment of the present invention;
图2为本发明移动终端的拍照方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a method for photographing a mobile terminal according to the present invention;
图3为本发明移动终端的拍照方法第二实施例中所述获取当前环境亮度值步骤的细化流程示意图;3 is a schematic flowchart of a step of acquiring a current ambient luminance value in the second embodiment of the method for photographing a mobile terminal according to the present invention;
图4为本发明移动终端的拍照方法第三实施例中所述在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数步骤的流程示意图;4 is a schematic flowchart of a step of finding a target parameter corresponding to the current ambient brightness value in a preset parameter table when entering a photographing interface according to the third embodiment of the present invention;
图5为本发明移动终端的拍照方法第四实施例中所述在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数步骤的细化流程示意图;FIG. 5 is a schematic flowchart of a step of finding a target parameter corresponding to the current ambient brightness value in a preset parameter table when entering a photographing interface according to the fourth embodiment of the present invention;
图6为本发明移动终端的拍照方法第五实施例的流程示意图;6 is a schematic flowchart of a fifth embodiment of a method for photographing a mobile terminal according to the present invention;
图7为本发明移动终端的拍照方法第六实施例的流程示意图。FIG. 7 is a schematic flowchart diagram of a sixth embodiment of a method for photographing a mobile terminal according to the present invention.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
如图1所示,图1是本发明实施例方案涉及的硬件运行环境中移动终端的拍照装置所属终端的结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of a terminal to which a camera device of a mobile terminal belongs in a hardware operating environment according to an embodiment of the present invention.
本发明实施例终端可以是PC。如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。The terminal of the embodiment of the present invention may be a PC. As shown in FIG. 1, the terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage. The memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
可选地,终端还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Optionally, the terminal may further include a camera, RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more. Among them, sensors such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display according to the brightness of the ambient light, and the proximity sensor may turn off the display and/or when the mobile terminal moves to the ear. Backlighting. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of the acceleration in the direction (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the attitude of the mobile terminal (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Let me repeat.
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It will be understood by those skilled in the art that the terminal structure shown in FIG. 1 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作服务器、网络通信模块、用户接口模块以及移动终端的拍照程序。As shown in FIG. 1, a memory 1005 as a computer storage medium may include an operation server, a network communication module, a user interface module, and a photographing program of the mobile terminal.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的移动终端的拍照程序。In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect the client (user end), and perform data communication with the client; and the processor 1001 can be used to call a photographing program of the mobile terminal stored in the memory 1005.
在本实施例中,移动终端的拍照装置包括:存储器1005、处理器1001及存储在所述存储器1005上并可在所述处理器1001上运行的移动终端的拍照程序,其中,处理器1001调用存储器1005中存储的移动终端的拍照程序时,执行以下操作:In this embodiment, the photographing apparatus of the mobile terminal includes: a memory 1005, a processor 1001, and a photographing program of the mobile terminal stored on the memory 1005 and operable on the processor 1001, wherein the processor 1001 invokes When the camera of the mobile terminal is stored in the memory 1005, the following operations are performed:
在接收到预设操作指令时,获取当前环境亮度值;Obtaining the current ambient brightness value when receiving the preset operation instruction;
在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数,并基于所述目标参数设置曝光参数;When entering the photographing interface, the target parameter corresponding to the current ambient brightness value is found in the preset parameter table, and the exposure parameter is set based on the target parameter;
在接收到拍照指令时,基于所述曝光参数执行拍照任务。Upon receiving the photographing instruction, the photographing task is performed based on the exposure parameter.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的拍照程序,还执行以下操作:Further, the processor 1001 may call the photographing program of the mobile terminal stored in the memory 1005, and further perform the following operations:
获取拍摄区域内的亮度值,其中,拍摄区域内存在多个亮度值;Obtaining a brightness value in a shooting area, wherein a plurality of brightness values exist in the shooting area;
计算获得所述拍摄区域内的平均亮度值,并将所述平均亮度值设置为环境亮度值。The average brightness value in the shooting area is calculated and set to the ambient brightness value.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的拍照程序,还执行以下操作:Further, the processor 1001 may call the photographing program of the mobile terminal stored in the memory 1005, and further perform the following operations:
获取预设参数表中各个参数对应的各个预设亮度范围;Obtaining each preset brightness range corresponding to each parameter in the preset parameter table;
将所述环境亮度值与各个所述预设亮度范围进行匹配,当所述环境亮度值在所述预设亮度范围时,获取所述预设亮度范围对应的目标参数。The ambient brightness value is matched with each of the preset brightness ranges, and when the ambient brightness value is in the preset brightness range, the target parameter corresponding to the preset brightness range is acquired.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的拍照程序,还执行以下操作:Further, the processor 1001 may call the photographing program of the mobile terminal stored in the memory 1005, and further perform the following operations:
获取预设参数表中各个参数对应的各个亮度值,并计算各个亮度值与所述环境亮度值的差值;Obtaining respective brightness values corresponding to each parameter in the preset parameter table, and calculating a difference between each brightness value and the ambient brightness value;
获取各个差值中最小差值对应的参数,并将所述最小差值对应的参数设置为目标参数。Obtaining a parameter corresponding to the smallest difference among the differences, and setting a parameter corresponding to the minimum difference as the target parameter.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的拍照程序,还执行以下操作:Further, the processor 1001 may call the photographing program of the mobile terminal stored in the memory 1005, and further perform the following operations:
基于所述当前环境亮度值确定当前环境是否为暗环境;Determining whether the current environment is a dark environment based on the current ambient brightness value;
在所述当前环境为暗环境时,开启闪光灯。When the current environment is a dark environment, the flash is turned on.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的拍照程序,还执行以下操作:Further, the processor 1001 may call the photographing program of the mobile terminal stored in the memory 1005, and further perform the following operations:
获取闪光灯预闪时的光线强度;Get the light intensity when the flash is pre-flashed;
基于所述光线强度调节闪光灯的亮度,并当所述光线强度达到预设曝光量时,执行拍照任务。The brightness of the flash is adjusted based on the light intensity, and when the light intensity reaches a preset exposure amount, a photographing task is performed.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的拍照程序,还执行以下操作:Further, the processor 1001 may call the photographing program of the mobile terminal stored in the memory 1005, and further perform the following operations:
当所述光线强度大于预设阈值时,减弱闪光灯的亮度;Attenuating the brightness of the flash when the light intensity is greater than a preset threshold;
当所述光线强度小于预设阈值时,增强闪光灯的亮度。The brightness of the flash is enhanced when the light intensity is less than a predetermined threshold.
本发明进一步提供一种移动终端的拍照方法。参照图2,图2为本发明移动终端的拍照方法第一实施例的流程示意图。 The present invention further provides a photographing method for a mobile terminal. Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for photographing a mobile terminal according to the present invention.
在本实施例中,该移动终端的拍照方法包括以下步骤:In this embodiment, the photographing method of the mobile terminal includes the following steps:
步骤S10,在接收到预设操作指令时,获取当前环境亮度值;Step S10: Acquire a current ambient brightness value when receiving a preset operation instruction;
在本实施例中,预设操作指令包括用户点击相机图标触发的指令、用户通过滑动屏幕触发进入拍照界面的指令及语音发送拍照命令触发的进入拍照界面的指令,例如,用户在手机上设置了在屏幕上滑的操作为打开照相机的快捷操作,用户通过在手机屏幕进行上滑操作触发进入拍照界面的指令,打开照相机。该环境亮度值包括拍摄区域的平均亮度值,例如,通过光线传感器获取拍摄区域内的所有亮度值,然后计算拍摄区域的平均亮度值,将该平均亮度值设置为环境亮度值,用户在触发预设操作时,移动终端就开始计算环境亮度值,在进入拍照界面时,移动终端则已经计算好了环境亮度值,并将计算好的环境亮度值存储在数据库中。In this embodiment, the preset operation instruction includes an instruction triggered by the user clicking the camera icon, an instruction that the user triggers to enter the photographing interface by sliding the screen, and an instruction to enter the photographing interface triggered by the voice sending photo command, for example, the user sets on the mobile phone. The operation of sliding on the screen is a shortcut operation for turning on the camera, and the user turns on the camera by triggering an instruction to enter the photographing interface by performing a slide-up operation on the screen of the mobile phone. The ambient brightness value includes an average brightness value of the shooting area. For example, all the brightness values in the shooting area are acquired by the light sensor, and then the average brightness value of the shooting area is calculated, and the average brightness value is set to the ambient brightness value, and the user is triggering the pre-lighting value. When the operation is set, the mobile terminal starts to calculate the ambient brightness value. When entering the camera interface, the mobile terminal has calculated the ambient brightness value and stores the calculated ambient brightness value in the database.
步骤S20,在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数,并基于所述目标参数设置曝光参数;In step S20, when entering the photographing interface, the target parameter corresponding to the current ambient brightness value is found in the preset parameter table, and the exposure parameter is set based on the target parameter;
在本实施例中,在移动终端中存储着预设参数表,该参数表中包括各个亮度下对应的各个曝光参数,在进入拍照界面时,移动终端根据环境亮度值在预设参数表中查询该环境亮度值对应的目标参数,该目标参数是指当前环境亮度值对应的曝光参数,该曝光参数包括快门时间、感光度及光圈值。具体地,在预设参数表可以包括预设亮度范围对应的参数,将获取到的环境亮度值与预设参数表中的各个预设亮度范围进行匹配,获取该环境亮度在某个预设范围内对应的目标参数,或者,预设参数表中可以包括技术人员设置好的一些预设亮度对应的参数,获取与该环境亮度最接近的预设亮度对应的目标参数,根据获取到的目标参数自动完成曝光参数的设置。In this embodiment, a preset parameter table is stored in the mobile terminal, and the parameter table includes respective exposure parameters corresponding to each brightness. When entering the camera interface, the mobile terminal queries the preset parameter table according to the ambient brightness value. The target parameter corresponding to the ambient brightness value refers to an exposure parameter corresponding to the current ambient brightness value, and the exposure parameter includes a shutter time, a sensitivity, and an aperture value. Specifically, the preset parameter table may include a parameter corresponding to the preset brightness range, and the obtained ambient brightness value is matched with each preset brightness range in the preset parameter table, and the ambient brightness is obtained in a preset range. The corresponding target parameter may be included in the preset parameter table, or the parameter corresponding to the preset brightness set by the technician may be included, and the target parameter corresponding to the preset brightness closest to the ambient brightness is obtained, according to the acquired target parameter. The setting of the exposure parameters is automatically completed.
步骤S30,在接收到拍照指令时,基于所述曝光参数执行拍照任务。Step S30, when receiving the photographing instruction, performing a photographing task based on the exposure parameter.
在本实施例中,该拍照指令可以由用户通过点击拍照按钮触发拍照指令,然后摄像头进行拍照,曝光参数包括快门时间、感光度及光圈值,感光度是指传感器胶片对光线的感受能力,一般来说,感光度越大,拍出的照片噪点越多,但也要根据当前环境亮度及快门时间来进行取值,所以,在预设参数表中存储着不同环境亮度下对应的感光度及快门时间,这样有效的减少了噪点,在手机进行抓拍时,快门时间设置的很短,当用户点击拍照按钮时,在触发拍照指令后的很短时间内摄像头进行拍照,该时间可以是0.1秒、0.2秒等。In this embodiment, the photographing instruction may be triggered by the user by clicking a photographing button, and then the camera performs photographing, and the exposure parameters include a shutter time, a sensitivity, and an aperture value, and the sensitivity refers to a sensor film's ability to sense light, generally In other words, the greater the sensitivity, the more noise the photo takes, but the value is also based on the current ambient brightness and shutter time. Therefore, the sensitivity of the corresponding ambient brightness is stored in the preset parameter table. Shutter time, which effectively reduces the noise. When the mobile phone captures, the shutter time is set very short. When the user clicks the camera button, the camera takes a photo in a short time after the camera command is triggered. The time can be 0.1 second. , 0.2 seconds, etc.
本实施例提出的移动终端的拍照方法,通过在接收到预设操作指令时,获取当前环境亮度值,然后在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数,并基于所述目标参数设置曝光参数,最后在接收到拍照指令时,基于所述曝光参数执行拍照任务;实现了在进入拍照界面之前获取环境亮度值,并根据环境亮度值设置曝光参数,完成自动曝光,有效的减短了拍照的时间,并且减少了拍照的噪点,从而提高了用户体验。The photographing method of the mobile terminal provided by the embodiment obtains the current ambient brightness value when receiving the preset operation instruction, and then finds the target corresponding to the current ambient brightness value in the preset parameter table when entering the photographing interface. And setting an exposure parameter based on the target parameter, and finally performing a photographing task based on the exposure parameter when receiving the photographing instruction; obtaining an ambient brightness value before entering the photographing interface, and setting an exposure parameter according to the ambient brightness value, The automatic exposure is completed, which effectively shortens the time of taking pictures and reduces the noise of photographing, thereby improving the user experience.
基于第一实施例,提出本发明移动终端的拍照方法的第二实施例,参照图3,本实施例中,步骤S10包括:Based on the first embodiment, a second embodiment of the method for photographing the mobile terminal of the present invention is provided. Referring to FIG. 3, in this embodiment, step S10 includes:
步骤S11,获取拍摄区域内的亮度值,其中,拍摄区域内存在多个亮度值;Step S11, obtaining a brightness value in the shooting area, wherein a plurality of brightness values exist in the shooting area;
在本实施例中,移动终端设有光线传感器,拍摄区域是指摄像头所采集到的图像区域,在拍摄区域内的亮度是不均匀的,光线传感器能够获取到拍摄区域内的各个亮度值。In this embodiment, the mobile terminal is provided with a light sensor, and the shooting area refers to an image area collected by the camera, and the brightness in the shooting area is uneven, and the light sensor can acquire various brightness values in the shooting area.
步骤S12,计算获得所述拍摄区域内的平均亮度值,并将所述平均亮度值设置为环境亮度值。Step S12, calculating an average brightness value in the shooting area, and setting the average brightness value as an ambient brightness value.
在本实施例中,移动终端包括计算程序,能根据各个亮度值自动计算拍摄区域内的平均亮度值,该平均亮度值则为最接近环境亮度值,将该平均亮度值设置为环境亮度值,具体地,可以通过在获取到的各个亮度值中取一个平均值作为平均亮度值,还可以根据各个亮度值所在拍摄区域内的面积进行计算平均面积内的亮度值,本实施例对该计算平均亮度值的方法不作具体限定。In this embodiment, the mobile terminal includes a calculation program, and can automatically calculate an average brightness value in the shooting area according to each brightness value, where the average brightness value is the closest to the ambient brightness value, and the average brightness value is set as the ambient brightness value. Specifically, an average value may be taken as an average brightness value among the obtained brightness values, and a brightness value in the average area may be calculated according to an area in a shooting area where each brightness value is located. The method of the luminance value is not specifically limited.
在其他实施例中,该移动终端能够获取拍摄区域内的各个亮度值与各个亮度值对应的坐标,并将各个亮度值与预设亮度值进行对比,获取各个亮度值与预设亮度的差值,并根据该差值对各个亮度对应的区域进行曝光补偿设置,例如,暗一点的区域调大感光度或者增加快门时间。In other embodiments, the mobile terminal can acquire coordinates corresponding to the respective brightness values in the shooting area, and compare the respective brightness values with the preset brightness values to obtain a difference between each brightness value and the preset brightness. And according to the difference, the exposure compensation setting is performed on the area corresponding to each brightness, for example, the dark area increases the sensitivity or increases the shutter time.
本实施例提出的移动终端的拍照方法,通过获取拍摄区域内的亮度值,其中,拍摄区域内存在多个亮度值,然后计算获得所述拍摄区域内的平均亮度值,并将所述平均亮度值设置为环境亮度值;实现了准确获取环境亮度值,从而能设置好曝光参数,提高了拍照质量,减少拍照的噪点。The photographing method of the mobile terminal proposed in this embodiment obtains a brightness value in a shooting area, wherein a plurality of brightness values exist in the shooting area, and then calculates an average brightness value in the shooting area, and the average brightness is obtained. The value is set to the ambient brightness value; the accurate acquisition of the ambient brightness value is achieved, so that the exposure parameters can be set, the quality of the photograph is improved, and the noise of the photograph is reduced.
基于第二实施例,提出本发明移动终端的拍照方法的第三实施例,参照图4,本实施例中,步骤S20包括:Based on the second embodiment, a third embodiment of the method for photographing the mobile terminal of the present invention is provided. Referring to FIG. 4, in the embodiment, step S20 includes:
步骤S21,获取预设参数表中各个参数对应的各个预设亮度范围;Step S21: Acquire each preset brightness range corresponding to each parameter in the preset parameter table;
在本实施例中,预设亮度范围是指由技术人员设置的某一参数对应一个亮度范围,即在这个亮度范围内的亮度值都对应该参数,例如,80-85为一个预设亮度范围,80至85内的任一的亮度都属于该预设亮度范围,当然,80与85也属于该预设亮度范围。In this embodiment, the preset brightness range refers to a certain parameter set by the technician corresponding to a brightness range, that is, the brightness value in the brightness range corresponds to the parameter, for example, 80-85 is a preset brightness range. The brightness of any of 80 to 85 belongs to the preset brightness range. Of course, 80 and 85 also belong to the preset brightness range.
步骤S22,将所述环境亮度值与各个所述预设亮度范围进行匹配,当所述环境亮度值在所述预设亮度范围时,获取所述预设亮度范围对应的目标参数。In step S22, the ambient brightness value is matched with each of the preset brightness ranges, and when the ambient brightness value is in the preset brightness range, the target parameter corresponding to the preset brightness range is acquired.
在本实施例中,将该环境亮度值与各个预设亮度范围进行对比,当该环境亮度处于某个预设亮度范围时,则获取该预设范围对应的目标参数,该目标参数包括快门时间、感光度及光圈值,例如,在步骤S21中,82属于80-85的预设亮度范围,则获取该预设亮度范围对应的快门时间、感光度及光圈值等。In this embodiment, the ambient brightness value is compared with each preset brightness range, and when the ambient brightness is in a certain preset brightness range, the target parameter corresponding to the preset range is acquired, and the target parameter includes a shutter time. The sensitivity and the aperture value. For example, in step S21, 82 belongs to a preset brightness range of 80-85, and the shutter time, the sensitivity, the aperture value, and the like corresponding to the preset brightness range are acquired.
本实施例提出的移动终端的拍照方法,通过获取预设参数表中各个参数对应的各个预设亮度范围,然后将所述环境亮度值与各个所述预设亮度范围进行匹配,当所述环境亮度值在所述预设亮度范围时,获取所述预设亮度范围对应的目标参数;实现了快速准确地在预设参数表中找到正确的参数,从而加快了拍照的速度。The photographing method of the mobile terminal provided in this embodiment obtains each preset brightness range corresponding to each parameter in the preset parameter table, and then matches the ambient brightness value with each of the preset brightness ranges, when the environment When the brightness value is in the preset brightness range, the target parameter corresponding to the preset brightness range is obtained; and the correct parameter is found in the preset parameter table quickly and accurately, thereby speeding up the photographing speed.
基于第一实施例,提出本发明移动终端的拍照方法的第四实施例,参照图5,本实施例中,步骤S20还包括:Based on the first embodiment, a fourth embodiment of the method for photographing the mobile terminal of the present invention is provided. Referring to FIG. 5, in the embodiment, step S20 further includes:
步骤S23,获取预设参数表中各个参数对应的各个亮度值,并计算各个亮度值与所述环境亮度值的差值;Step S23, acquiring respective brightness values corresponding to each parameter in the preset parameter table, and calculating a difference between each brightness value and the ambient brightness value;
在本实施例中,预设参数表包括亮度值及亮度值对应的参数,该参数包括快门时间、感光度及光圈值等,该预设参数表中的亮度值由技术人员进行设定,各个亮度值都有各自对应的参数,当进入拍照界面时,移动终端获取参数表中的亮度值。计算各个亮度值的差值就是为了在预设参数表中找到与环境亮度最接近的亮度值,当存在两个差值一致时,则可以取两个差值对应的亮度值的平均值。In this embodiment, the preset parameter table includes a brightness value and a brightness value corresponding to the parameter, the parameter includes a shutter time, a sensitivity, an aperture value, and the like, and the brightness value in the preset parameter table is set by a technician, and each The brightness values have corresponding parameters. When entering the camera interface, the mobile terminal acquires the brightness value in the parameter table. The difference between the respective brightness values is calculated to find the brightness value closest to the ambient brightness in the preset parameter table. When there are two differences, the average value of the brightness values corresponding to the two difference values can be taken.
步骤S24,获取各个差值中最小差值对应的参数,并将所述最小差值对应的参数设置为目标参数。Step S24: Obtain a parameter corresponding to the smallest difference among the differences, and set a parameter corresponding to the minimum difference as the target parameter.
在本实施例中,当获取到最小差值时,在预设参数表中找到最小差值对应的亮度值,然后根据亮度值找到最小差值对应的参数,将最小差值对应的参数设置为目标参数。In this embodiment, when the minimum difference is obtained, the brightness value corresponding to the minimum difference value is found in the preset parameter table, and then the parameter corresponding to the minimum difference value is found according to the brightness value, and the parameter corresponding to the minimum difference value is set to Target parameters.
本实施例提出的移动终端的拍照方法,通过获取预设参数表中各个参数对应的各个亮度值,并计算各个亮度值与所述环境亮度值的差值,然后获取各个差值中最小差值对应的参数,并将所述最小差值对应的参数设置为目标参数;实现了通过快速准确地找到合适的亮度值来查找目标参数,从而加快了拍照的速度。The photographing method of the mobile terminal proposed in this embodiment obtains each brightness value corresponding to each parameter in the preset parameter table, calculates a difference between each brightness value and the ambient brightness value, and then obtains a minimum difference among the differences. Corresponding parameters, and setting the parameter corresponding to the minimum difference as the target parameter; realizing the fast and accurate finding of the appropriate brightness value to find the target parameter, thereby speeding up the photographing speed.
基于第一实施例,提出本发明移动终端的拍照方法的第五实施例,参照图6,本实施例中,步骤S10之后,还包括:Based on the first embodiment, a fifth embodiment of the method for photographing the mobile terminal of the present invention is provided. Referring to FIG. 6, in this embodiment, after step S10, the method further includes:
步骤40,基于所述当前环境亮度值确定当前环境是否为暗环境;Step 40: Determine, according to the current ambient brightness value, whether the current environment is a dark environment;
在本实施例中,该暗环境是指环境亮度低于预设亮度,该预设亮度由技术人员进行设置,当计算出的环境亮度低于预设亮度时,确定当前环境为暗环境,例如,在晚上进行拍照时,移动终端获取拍摄区域的亮度,通过计算分析确定该当前环境亮度低于预设环境亮度时,确定当前环境亮度为暗环境。In this embodiment, the dark environment refers to the ambient brightness being lower than the preset brightness, and the preset brightness is set by a technician. When the calculated ambient brightness is lower than the preset brightness, determining that the current environment is a dark environment, for example, When taking a picture at night, the mobile terminal acquires the brightness of the shooting area, and determines that the current ambient brightness is lower than the preset ambient brightness by calculation and analysis, and determines that the current ambient brightness is a dark environment.
步骤S50,在所述当前环境为暗环境时,开启闪光灯。In step S50, when the current environment is a dark environment, the flash is turned on.
在本实施例中,当确定当前环境为暗环境时,自动触发开启闪光灯的指令,移动终端自动开启闪光灯,具体地,闪光灯在执行工作时会有一个预闪,该预闪是测试当前闪关灯的亮度是否能够达到预设曝光量,若当前闪光灯没有达到预设曝光量时,可以对当前闪光灯的亮度就行调整。In this embodiment, when it is determined that the current environment is a dark environment, the instruction to turn on the flash is automatically triggered, and the mobile terminal automatically turns on the flash. Specifically, the flash has a pre-flash when performing work, and the pre-flash is to test the current flash. Whether the brightness of the lamp can reach the preset exposure amount, if the current flash does not reach the preset exposure amount, the brightness of the current flash can be adjusted.
进一步地,用户可以根据实际需要进行关闭该预闪功能,当关闭该预闪功能时,移动终端将读取闪光灯的默认设置,闪光灯不会根据环境的变化而改变发出的光线强度,移动终端直接根据该闪光灯的光线强度及拍摄区域的亮度值进行计算环境亮度值,根据环境亮度值设置曝光参数。Further, the user can turn off the pre-flash function according to actual needs. When the pre-flash function is turned off, the mobile terminal will read the default setting of the flash, and the flash does not change the intensity of the emitted light according to the change of the environment, and the mobile terminal directly The ambient brightness value is calculated according to the light intensity of the flash and the brightness value of the shooting area, and the exposure parameter is set according to the ambient brightness value.
本实施例提出的移动终端的拍照方法,通过基于所述当前环境亮度值确定当前环境是否为暗环境,然后在所述当前环境为暗环境时,开启闪光灯;实现了在暗环境下自动开启闪光灯,能够在暗环境下拍出清晰的照片,减少了拍照的噪点,提高了用户体验。The photographing method of the mobile terminal according to the embodiment determines whether the current environment is a dark environment based on the current ambient brightness value, and then turns on the flash when the current environment is a dark environment; and automatically turns on the flash in a dark environment. It can take clear photos in a dark environment, reducing the noise of the photos and improving the user experience.
基于第五实施例,提出本发明移动终端的拍照方法的第六实施例,参照图7,本实施例中,步骤S40之后,还包括:Based on the fifth embodiment, a sixth embodiment of the method for photographing the mobile terminal of the present invention is provided. Referring to FIG. 7, in this embodiment, after step S40, the method further includes:
步骤S60,获取闪光灯预闪时的光线强度;Step S60, obtaining light intensity when the flash is pre-flashed;
在本实施例中,当闪光灯预闪时,光线传感器的光敏元件将获取预闪时的光线强度,转换器将光信号转化为电信号,根据该电信号确定该光线强度是否为预设曝光量。In this embodiment, when the flash pre-flashes, the light sensor of the light sensor will acquire the light intensity at the pre-flash, and the converter converts the light signal into an electrical signal, and determines whether the light intensity is a preset exposure according to the electrical signal. .
步骤S70,基于所述光线强度调节闪光灯的亮度,并当所述光线强度达到预设曝光量时,执行拍照任务。Step S70, adjusting the brightness of the flash based on the light intensity, and performing a photographing task when the light intensity reaches a preset exposure amount.
在本实施例中,当该光线强度没有达到预设曝光亮时,根据该光线强度调节闪光灯的亮度,该预设曝光亮度是指根据曝光参数进行自动计算,确定在合适的快门时间、感光度、光圈值确定好闪光灯主闪时的光线强度,当计算出的曝光量能达到预设曝光量时,进行拍照。该调节闪光灯的亮度就是根据闪光灯预闪时的亮度通过改变电路参数来控制闪光灯的亮度,该电路参数包括电流、电压等,将光线强度调节到预设曝光量时,可以进行拍照操作。In this embodiment, when the light intensity does not reach the preset exposure brightness, the brightness of the flash is adjusted according to the light intensity, and the preset exposure brightness is automatically calculated according to the exposure parameter to determine the appropriate shutter time and sensitivity. The aperture value determines the light intensity of the flash main flash, and when the calculated exposure amount reaches the preset exposure amount, the photograph is taken. The brightness of the adjustment flash is to control the brightness of the flash by changing the circuit parameters according to the brightness of the flash pre-flash. The circuit parameters include current, voltage, etc., and when the light intensity is adjusted to the preset exposure amount, the photographing operation can be performed.
本实施例提出的移动终端的拍照方法,通过获取闪光灯预闪时的光线强度,然后基于所述光线强度调节闪光灯的亮度,并当所述光线强度达到预设曝光量时,执行拍照任务;实现了自动调节闪光灯的亮度,使闪光灯的亮度能够达到预设曝光量,从而拍照更加清晰。The photographing method of the mobile terminal provided by the embodiment obtains the light intensity when the flash is pre-flashed, and then adjusts the brightness of the flash based on the light intensity, and performs the photographing task when the light intensity reaches the preset exposure amount; The brightness of the flash is automatically adjusted so that the brightness of the flash can reach the preset exposure, so that the picture is more clear.
基于第六实施例,提出本发明移动终端的拍照方法的第七实施例,本实施例中,步骤S70包括:Based on the sixth embodiment, a seventh embodiment of the method for photographing the mobile terminal of the present invention is proposed. In this embodiment, step S70 includes:
步骤S71,当所述光线强度大于预设阈值时,减弱闪光灯的亮度;Step S71, when the light intensity is greater than a preset threshold, the brightness of the flash is weakened;
步骤S72,当所述光线强度小于预设阈值时,增强闪光灯的亮度。Step S72, when the light intensity is less than a preset threshold, the brightness of the flash is enhanced.
在本实施例中,在闪光灯进行预闪时,光线传感器获取返回来的光线的光线强度,将获取到的光线强度转化为电信号,然后确定转化为电信号的光线强度是否大于预设阈值,该预设阈值是指由技术人员设置的一个标准的光线强度值,当返回来的光线强度大于预设阈值时,就通过调节电路参数来调节闪光灯的光线强度,例如,自动调节电流大小,将闪光灯闪光电流减小,闪光灯的光线强度就变弱,In this embodiment, when the flash is pre-flashed, the light sensor obtains the light intensity of the returned light, converts the obtained light intensity into an electrical signal, and then determines whether the light intensity converted into the electrical signal is greater than a preset threshold. The preset threshold is a standard light intensity value set by a technician. When the returned light intensity is greater than a preset threshold, the light intensity of the flash is adjusted by adjusting circuit parameters, for example, automatically adjusting the current level. When the flash flash current is reduced, the light intensity of the flash is weakened.
本实施例提出的移动终端的拍照方法,通过当所述光线强度大于预设阈值时,减弱闪光灯的亮度,然后当所述光线强度小于预设阈值时,增强闪光灯的亮度;实现自动调节闪光灯的亮度,提高了拍照的方便性,进一步减少了拍照的噪点,提高了用户体验。The photographing method of the mobile terminal provided by the embodiment is to reduce the brightness of the flash when the light intensity is greater than a preset threshold, and then enhance the brightness of the flash when the light intensity is less than a preset threshold; The brightness improves the convenience of photographing, further reduces the noise of photographing, and improves the user experience.
本发明还提供一种计算机可读存储介质,在本实施例中,计算机可读存储介质上存储有移动终端的拍照程序,其中:The present invention further provides a computer readable storage medium. In this embodiment, a computer readable storage medium stores a photographing program of the mobile terminal, wherein:
在接收到预设操作指令时,获取当前环境亮度值;Obtaining the current ambient brightness value when receiving the preset operation instruction;
在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数,并基于所述目标参数设置曝光参数;When entering the photographing interface, the target parameter corresponding to the current ambient brightness value is found in the preset parameter table, and the exposure parameter is set based on the target parameter;
在接收到拍照指令时,基于所述曝光参数执行拍照任务。Upon receiving the photographing instruction, the photographing task is performed based on the exposure parameter.
进一步地,该移动终端的拍照程序被所述处理器执行时,还实现如下步骤:Further, when the photographing program of the mobile terminal is executed by the processor, the following steps are further implemented:
获取拍摄区域内的亮度值,其中,拍摄区域内存在多个亮度值;Obtaining a brightness value in a shooting area, wherein a plurality of brightness values exist in the shooting area;
计算获得所述拍摄区域内的平均亮度值,并将所述平均亮度值设置为环境亮度值。The average brightness value in the shooting area is calculated and set to the ambient brightness value.
进一步地,该移动终端的拍照程序被所述处理器执行时,还实现如下步骤:Further, when the photographing program of the mobile terminal is executed by the processor, the following steps are further implemented:
获取预设参数表中各个参数对应的各个预设亮度范围;Obtaining each preset brightness range corresponding to each parameter in the preset parameter table;
将所述环境亮度值与各个所述预设亮度范围进行匹配,当所述环境亮度值在所述预设亮度范围时,获取所述预设亮度范围对应的目标参数。The ambient brightness value is matched with each of the preset brightness ranges, and when the ambient brightness value is in the preset brightness range, the target parameter corresponding to the preset brightness range is acquired.
进一步地,该移动终端的拍照程序被所述处理器执行时,还实现如下步骤:Further, when the photographing program of the mobile terminal is executed by the processor, the following steps are further implemented:
获取预设参数表中各个参数对应的各个亮度值,并计算各个亮度值与所述环境亮度值的差值;Obtaining respective brightness values corresponding to each parameter in the preset parameter table, and calculating a difference between each brightness value and the ambient brightness value;
获取各个差值中最小差值对应的参数,并将所述最小差值对应的参数设置为目标参数。Obtaining a parameter corresponding to the smallest difference among the differences, and setting a parameter corresponding to the minimum difference as the target parameter.
进一步地,该移动终端的拍照程序被所述处理器执行时,还实现如下步骤:Further, when the photographing program of the mobile terminal is executed by the processor, the following steps are further implemented:
基于所述当前环境亮度值确定当前环境是否为暗环境;Determining whether the current environment is a dark environment based on the current ambient brightness value;
在所述当前环境为暗环境时,开启闪光灯。When the current environment is a dark environment, the flash is turned on.
进一步地,该移动终端的拍照程序被所述处理器执行时,还实现如下步骤:Further, when the photographing program of the mobile terminal is executed by the processor, the following steps are further implemented:
获取闪光灯预闪时的光线强度;Get the light intensity when the flash is pre-flashed;
基于所述光线强度调节闪光灯的亮度,并当所述光线强度达到预设曝光量时,执行拍照任务。The brightness of the flash is adjusted based on the light intensity, and when the light intensity reaches a preset exposure amount, a photographing task is performed.
进一步地,该移动终端的拍照程序被所述处理器执行时,还实现如下步骤:Further, when the photographing program of the mobile terminal is executed by the processor, the following steps are further implemented:
当所述光线强度大于预设阈值时,减弱闪光灯的亮度;Attenuating the brightness of the flash when the light intensity is greater than a preset threshold;
当所述光线强度小于预设阈值时,增强闪光灯的亮度。The brightness of the flash is enhanced when the light intensity is less than a predetermined threshold.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (10)

  1. 一种移动终端的拍照方法,其特征在于,所述移动终端的拍照方法包括以下步骤: A photographing method for a mobile terminal, characterized in that the photographing method of the mobile terminal comprises the following steps:
    在接收到预设操作指令时,获取当前环境亮度值;Obtaining the current ambient brightness value when receiving the preset operation instruction;
    在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数,并基于所述目标参数设置曝光参数;When entering the photographing interface, the target parameter corresponding to the current ambient brightness value is found in the preset parameter table, and the exposure parameter is set based on the target parameter;
    在接收到拍照指令时,基于所述曝光参数执行拍照任务。Upon receiving the photographing instruction, the photographing task is performed based on the exposure parameter.
  2. 如权利要求1所述的移动终端的拍照方法,其特征在于,所述获取当前环境亮度值的步骤包括:The method for photographing a mobile terminal according to claim 1, wherein the step of acquiring a current ambient brightness value comprises:
    获取拍摄区域内的亮度值,其中,拍摄区域内存在多个亮度值;Obtaining a brightness value in a shooting area, wherein a plurality of brightness values exist in the shooting area;
    计算获得所述拍摄区域内的平均亮度值,并将所述平均亮度值设置为环境亮度值。The average brightness value in the shooting area is calculated and set to the ambient brightness value.
  3. 如权利要求1所述的移动终端的拍照方法,其特征在于,所述在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数的步骤包括:The method for photographing a mobile terminal according to claim 1, wherein the step of finding the target parameter corresponding to the current ambient brightness value in the preset parameter table when entering the photographing interface comprises:
    获取预设参数表中各个参数对应的各个预设亮度范围;Obtaining each preset brightness range corresponding to each parameter in the preset parameter table;
    将所述环境亮度值与各个所述预设亮度范围进行匹配,当所述环境亮度值在所述预设亮度范围时,获取所述预设亮度范围对应的目标参数。The ambient brightness value is matched with each of the preset brightness ranges, and when the ambient brightness value is in the preset brightness range, the target parameter corresponding to the preset brightness range is acquired.
  4. 如权利要求1所述的移动终端的拍照方法,其特征在于,所述在进入拍照界面时,在预设参数表中找到所述当前环境亮度值对应的目标参数的步骤还包括:The method for photographing a mobile terminal according to claim 1, wherein the step of finding the target parameter corresponding to the current ambient brightness value in the preset parameter table when the camera interface is entered further comprises:
    获取预设参数表中各个参数对应的各个亮度值,并计算各个亮度值与所述环境亮度值的差值;Obtaining respective brightness values corresponding to each parameter in the preset parameter table, and calculating a difference between each brightness value and the ambient brightness value;
    获取各个差值中最小差值对应的参数,并将所述最小差值对应的参数设置为目标参数。Obtaining a parameter corresponding to the smallest difference among the differences, and setting a parameter corresponding to the minimum difference as the target parameter.
  5. 如权利要求1所述的移动终端的拍照方法,其特征在于,所述在接收到预设操作指令时,获取当前环境亮度值的步骤之后,所述移动终端的拍照方法还包括:The photographing method of the mobile terminal according to claim 1, wherein the photographing method of the mobile terminal further comprises: after the step of acquiring the current ambient brightness value when the preset operation instruction is received, the photographing method of the mobile terminal further comprises:
    基于所述当前环境亮度值确定当前环境是否为暗环境;Determining whether the current environment is a dark environment based on the current ambient brightness value;
    在所述当前环境为暗环境时,开启闪光灯。When the current environment is a dark environment, the flash is turned on.
  6. 如权利要求5所述的移动终端的拍照方法,其特征在于,所述在所述当前环境为暗环境时,开启闪光灯的步骤之后,所述移动终端的拍照方法还包括:The method for photographing a mobile terminal according to claim 5, wherein the photographing method of the mobile terminal after the step of turning on the flash when the current environment is a dark environment further comprises:
    获取闪光灯预闪时的光线强度;Get the light intensity when the flash is pre-flashed;
    基于所述光线强度调节闪光灯的亮度,并当所述光线强度达到预设曝光量时,执行拍照任务。The brightness of the flash is adjusted based on the light intensity, and when the light intensity reaches a preset exposure amount, a photographing task is performed.
  7. 如权利要求6所述的移动终端的拍照方法,其特征在于,所述基于所述光线强度调节闪光灯的亮度的步骤包括:The method for photographing a mobile terminal according to claim 6, wherein the step of adjusting the brightness of the flash based on the light intensity comprises:
    当所述光线强度大于预设阈值时,减弱闪光灯的亮度;Attenuating the brightness of the flash when the light intensity is greater than a preset threshold;
    当所述光线强度小于预设阈值时,增强闪光灯的亮度。The brightness of the flash is enhanced when the light intensity is less than a predetermined threshold.
  8. 如权利要求1-7所述的移动终端的拍照方法,其特征在于,亮度值由光线传感器进行获取,光线传感器将获取到的光信号转化为电信号,从而设置曝光参数对应的电流强度。The photographing method of the mobile terminal according to any one of claims 1 to 7, wherein the brightness value is acquired by the light sensor, and the light sensor converts the acquired light signal into an electrical signal, thereby setting a current intensity corresponding to the exposure parameter.
  9. 一种移动终端的拍照装置,其特征在于,所述移动终端的拍照装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的移动终端的拍照程序,所述移动终端的拍照程序被所述处理器执行时实现如权利要求1至8中任一项所述的方法的步骤。A photographing apparatus for a mobile terminal, wherein the photographing apparatus of the mobile terminal comprises: a memory, a processor, and a photographing program of the mobile terminal stored on the memory and operable on the processor, The steps of the method of any one of claims 1 to 8 are implemented when the camera program of the mobile terminal is executed by the processor.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有移动终端的拍照程序,所述移动终端的拍照程序被处理器执行时实现如权利要求1至8中任一项所述的移动终端的拍照方法步骤。A computer readable storage medium, wherein the computer readable storage medium stores a photographing program of the mobile terminal, and the photographing program of the mobile terminal is executed by the processor to implement any one of claims 1 to 8 The method of photographing method of the mobile terminal described in the item.
PCT/CN2017/105166 2017-09-30 2017-09-30 Mobile terminal photographing method, device and computer readable storage medium WO2019061546A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105166 WO2019061546A1 (en) 2017-09-30 2017-09-30 Mobile terminal photographing method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105166 WO2019061546A1 (en) 2017-09-30 2017-09-30 Mobile terminal photographing method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2019061546A1 true WO2019061546A1 (en) 2019-04-04

Family

ID=65902310

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105166 WO2019061546A1 (en) 2017-09-30 2017-09-30 Mobile terminal photographing method, device and computer readable storage medium

Country Status (1)

Country Link
WO (1) WO2019061546A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339024A (en) * 2020-10-10 2022-04-12 上海汉时信息科技有限公司 Method for improving imaging reflection of camera, server and shooting equipment
CN114418923A (en) * 2020-10-28 2022-04-29 北京小米移动软件有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN114697591A (en) * 2020-12-29 2022-07-01 深圳Tcl新技术有限公司 Display picture adjusting method and device, storage medium and terminal equipment
CN114697595A (en) * 2020-12-28 2022-07-01 北京小米移动软件有限公司 Video recording method, device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010030707A1 (en) * 2000-03-07 2001-10-18 Shinichi Fujii Digital camera
JP2003090778A (en) * 2001-09-20 2003-03-28 Pentax Corp Image-inspecting apparatus
CN1533667A (en) * 2002-03-12 2004-09-29 ����ŷ�������ʽ���� Imaging apparatus including automatic brightness adjustment function and imaging method
CN101442613A (en) * 2007-11-20 2009-05-27 华晶科技股份有限公司 System and method for preventing hand vibration of camera and correction method
US20130176392A1 (en) * 2012-01-09 2013-07-11 Disney Enterprises, Inc. Method And System For Determining Camera Parameters From A Long Range Gradient Based On Alignment Differences In Non-Point Image Landmarks
CN103347152A (en) * 2013-07-08 2013-10-09 华为终端有限公司 Method, device and terminal for picture processing
CN104253941A (en) * 2013-06-26 2014-12-31 卡西欧计算机株式会社 Moving image generating apparatus and moving image generating method
CN104811690A (en) * 2015-04-01 2015-07-29 广东欧珀移动通信有限公司 Message prompting method and device
CN105721769A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Shooting setting method and shooting setting device
CN105872350A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Adjusting method and device for photographing parameter of camera

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010030707A1 (en) * 2000-03-07 2001-10-18 Shinichi Fujii Digital camera
JP2003090778A (en) * 2001-09-20 2003-03-28 Pentax Corp Image-inspecting apparatus
CN1533667A (en) * 2002-03-12 2004-09-29 ����ŷ�������ʽ���� Imaging apparatus including automatic brightness adjustment function and imaging method
CN101442613A (en) * 2007-11-20 2009-05-27 华晶科技股份有限公司 System and method for preventing hand vibration of camera and correction method
US20130176392A1 (en) * 2012-01-09 2013-07-11 Disney Enterprises, Inc. Method And System For Determining Camera Parameters From A Long Range Gradient Based On Alignment Differences In Non-Point Image Landmarks
CN104253941A (en) * 2013-06-26 2014-12-31 卡西欧计算机株式会社 Moving image generating apparatus and moving image generating method
CN103347152A (en) * 2013-07-08 2013-10-09 华为终端有限公司 Method, device and terminal for picture processing
CN104811690A (en) * 2015-04-01 2015-07-29 广东欧珀移动通信有限公司 Message prompting method and device
CN105872350A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Adjusting method and device for photographing parameter of camera
CN105721769A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Shooting setting method and shooting setting device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339024A (en) * 2020-10-10 2022-04-12 上海汉时信息科技有限公司 Method for improving imaging reflection of camera, server and shooting equipment
CN114418923A (en) * 2020-10-28 2022-04-29 北京小米移动软件有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN114697595A (en) * 2020-12-28 2022-07-01 北京小米移动软件有限公司 Video recording method, device and storage medium
CN114697591A (en) * 2020-12-29 2022-07-01 深圳Tcl新技术有限公司 Display picture adjusting method and device, storage medium and terminal equipment

Similar Documents

Publication Publication Date Title
WO2020045950A1 (en) Method, device, and system of selectively using multiple voice data receiving devices for intelligent service
WO2019061546A1 (en) Mobile terminal photographing method, device and computer readable storage medium
WO2019051683A1 (en) Fill light photography method, mobile terminal and computer-readable storage medium
EP3180908A1 (en) Image photographing apparatus, image photographing system for performing photographing by using multiple image photographing apparatuses, and image photographing methods thereof
WO2019041851A1 (en) Home appliance after-sales consulting method, electronic device and computer-readable storage medium
WO2017215116A1 (en) Photographing method and system for smart television
WO2019051905A1 (en) Air conditioner control method, air conditioner, and computer readable storage medium
EP2943860A1 (en) Method and apparatus for preventing a collision between subjects
WO2018223607A1 (en) Television terminal, method for converting hdr image into sdr image, and computer readable storage medium
WO2018233221A1 (en) Multi-window sound output method, television, and computer-readable storage medium
WO2018166224A1 (en) Target tracking display method and apparatus for panoramic video, and storage medium
WO2017090833A1 (en) Photographing device and method of controlling the same
WO2017018614A1 (en) Method of imaging moving object and imaging device
WO2022139262A1 (en) Electronic device for editing video by using object of interest, and operating method therefor
WO2019051903A1 (en) Terminal control method and apparatus, and computer-readable storage medium
WO2019125036A1 (en) Image processing method and display apparatus therefor
WO2018023925A1 (en) Photography method and system
WO2019042220A1 (en) Intelligent system adjusting method and apparatus, and computer readable storage medium
WO2019071775A1 (en) Node positioning method, server, system and computer-readable storage medium
WO2019091128A1 (en) Signal preview method for new access source and television set
WO2019061545A1 (en) Method and device for rapidly adjusting white balance of camera and computer-readable storage medium
WO2020017936A1 (en) Electronic device and method for correcting image on basis of image transmission state
WO2021158058A1 (en) Method for providing filter and electronic device supporting the same
EP3830821A1 (en) Method, device, and system of selectively using multiple voice data receiving devices for intelligent service
WO2014089801A1 (en) Inspection method and inspection device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17926581

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17926581

Country of ref document: EP

Kind code of ref document: A1