CN108650462B - Shooting preview display method, device, terminal and storage medium - Google Patents
Shooting preview display method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN108650462B CN108650462B CN201810457232.8A CN201810457232A CN108650462B CN 108650462 B CN108650462 B CN 108650462B CN 201810457232 A CN201810457232 A CN 201810457232A CN 108650462 B CN108650462 B CN 108650462B
- Authority
- CN
- China
- Prior art keywords
- flash
- turned
- shooting
- working parameters
- preview
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及数字成像技术,尤其涉及一种拍摄预览显示方法、装置、终端及存储介质。The embodiments of the present application relate to digital imaging technologies, and in particular, to a method, device, terminal, and storage medium for displaying a shooting preview.
背景技术Background technique
为了提高用户的使用体验,各种具有拍摄功能的终端设备都提供了拍摄预览功能。用户可以在终端设备上预览摄像头获取到的画面,以便在正式拍摄前确定拍摄的效果,并可在改变摄像头的拍摄参数后在预览画面中实时观察到改变的拍摄效果,使得用户可以拍摄到更为满意的照片或视频。In order to improve the user experience, various terminal devices with a shooting function provide a shooting preview function. The user can preview the image captured by the camera on the terminal device, so as to determine the shooting effect before the official shooting, and can observe the changed shooting effect in the preview screen in real time after changing the shooting parameters of the camera, so that the user can shoot more for satisfactory photos or videos.
但目前的终端设备中,若在拍摄时开启了闪光灯,用户只有在完成拍摄后才能得知所拍照片效果如何,影响用户拍照体验。However, in the current terminal device, if the flash is turned on during shooting, the user can only know the effect of the shot after the shooting is completed, which affects the user's shooting experience.
发明内容SUMMARY OF THE INVENTION
本申请提供一种拍摄预览显示方法、装置、终端及存储介质,用于使用户可以在拍摄前获知开启闪光灯拍摄的照片效果。The present application provides a shooting preview display method, device, terminal and storage medium, which are used to enable a user to know the effect of a photo shot with a flash turned on before shooting.
第一方面,本申请实施例提供了一种拍摄预览显示方法,包括:In a first aspect, an embodiment of the present application provides a method for displaying a shooting preview, including:
当处于拍摄状态时,确定是否需要开启闪光灯;When shooting, determine whether to turn on the flash;
若确定需要开启闪光灯,则获取闪光灯的工作参数;If it is determined that the flash needs to be turned on, obtain the working parameters of the flash;
根据闪光灯的工作参数对摄像头采集的预览画面进行补偿,得到补偿后的预览画面;Compensate the preview image collected by the camera according to the working parameters of the flash to obtain the compensated preview image;
显示补偿后的预览画面。The preview screen after compensation is displayed.
在第一方面一种可能的实现方式中,当处于拍摄状态时,确定是否需要开启闪光灯,包括:In a possible implementation manner of the first aspect, when in a shooting state, determining whether to turn on the flash includes:
当处于拍摄状态时,根据环境光线亮度确定是否需要开启闪光灯;When shooting, determine whether the flash needs to be turned on according to the brightness of the ambient light;
若确定需要开启闪光灯,则获取闪光灯的工作参数,包括:If it is determined that the flash needs to be turned on, obtain the working parameters of the flash, including:
若环境光线亮度低于预设亮度阈值则确定需要开启闪光灯,根据环境光线亮度与闪光灯工作参数的对应关系获取闪光灯的工作参数。If the brightness of the ambient light is lower than the preset brightness threshold, it is determined that the flash needs to be turned on, and the working parameters of the flash are obtained according to the corresponding relationship between the brightness of the ambient light and the working parameters of the flash.
在第一方面一种可能的实现方式中,当处于拍摄状态时,确定是否需要开启闪光灯,包括:In a possible implementation manner of the first aspect, when in a shooting state, determining whether to turn on the flash includes:
当处于拍摄状态时,确定手动闪光灯开关是否被开启;When in the shooting state, determine whether the manual flash switch is turned on;
若确定需要开启闪光灯,则获取闪光灯的工作参数,包括:If it is determined that the flash needs to be turned on, obtain the working parameters of the flash, including:
若手动闪光灯开关被开启则确定需要开启闪光灯,根据环境光线亮度与闪光灯工作参数的对应关系获取闪光灯的工作参数。If the manual flash switch is turned on, it is determined that the flash needs to be turned on, and the working parameters of the flash are obtained according to the corresponding relationship between the brightness of the ambient light and the working parameters of the flash.
在第一方面一种可能的实现方式中,根据闪光灯的工作参数对摄像头采集的预览画面进行补偿,得到补偿后的预览画面,包括:In a possible implementation manner of the first aspect, the preview image collected by the camera is compensated according to the working parameters of the flash, and the compensated preview image is obtained, including:
根据闪光灯的工作参数调整拍摄参数后再采集预览画面并对预览画面进行补偿,得到补偿后的预览画面。After adjusting the shooting parameters according to the working parameters of the flash, the preview image is collected and compensated to obtain the compensated preview image.
在第一方面一种可能的实现方式中,闪光灯的工作参数包括闪光灯的工作时间和亮度。In a possible implementation manner of the first aspect, the working parameters of the flash include working time and brightness of the flash.
第二方面,本申请实施例提供了一种拍摄预览显示装置,包括:In a second aspect, an embodiment of the present application provides a shooting preview display device, including:
闪光灯开启确定模块,用于当处于拍摄状态时,确定是否需要开启闪光灯;The flash opening determination module is used to determine whether the flash needs to be turned on when it is in the shooting state;
闪光灯参数获取模块,用于若确定需要开启闪光灯,则获取闪光灯的工作参数;The flash parameter acquisition module is used to obtain the working parameters of the flash if it is determined that the flash needs to be turned on;
预览画面补偿模块,用于根据闪光灯的工作参数对摄像头采集的预览画面进行补偿,得到补偿后的预览画面;The preview image compensation module is used to compensate the preview image collected by the camera according to the working parameters of the flash to obtain the compensated preview image;
预览画面显示模块,用于显示补偿后的预览画面。The preview screen display module is used to display the preview screen after compensation.
在第二方面一种可能的实现方式中,闪光灯开启确定模块,具体用于当处于拍摄状态时,根据环境光线亮度确定是否需要开启闪光灯;In a possible implementation manner of the second aspect, the flash activation determination module is specifically configured to determine whether the flash needs to be turned on according to the brightness of the ambient light when it is in a shooting state;
闪光灯参数获取模块,具体用于若环境光线亮度低于预设亮度阈值则确定需要开启闪光灯,根据环境光线亮度与闪光灯工作参数的对应关系获取闪光灯的工作参数。The flash parameter acquisition module is specifically used to determine that the flash needs to be turned on if the brightness of the ambient light is lower than the preset brightness threshold, and obtain the working parameters of the flash according to the corresponding relationship between the brightness of the ambient light and the working parameters of the flash.
在第二方面一种可能的实现方式中,述闪光灯开启确定模块,具体用于当处于拍摄状态时,确定手动闪光灯开关是否被开启;In a possible implementation manner of the second aspect, the flash activation determination module is specifically configured to determine whether the manual flash switch is turned on when it is in a shooting state;
闪光灯参数获取模块,具体用于若手动闪光灯开关被开启则确定需要开启闪光灯,根据环境光线亮度与闪光灯工作参数的对应关系获取闪光灯的工作参数。The flash parameter acquisition module is specifically used to determine that the flash needs to be turned on if the manual flash switch is turned on, and obtain the working parameters of the flash according to the corresponding relationship between the brightness of the ambient light and the working parameters of the flash.
第三方面,本申请实施例提供了一种终端,包括:In a third aspect, an embodiment of the present application provides a terminal, including:
存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行程序时,以实现如第一方面任一种可能的实现方式的拍摄预览显示方法。A memory, a processor, and a computer program stored in the memory and running on the processor, when the processor executes the program, to implement the method for displaying a shooting preview in any possible implementation manner of the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时,实现如第一方面任一种可能的实现方式的拍摄预览显示方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, realizes the shooting preview display as in any possible implementation manner of the first aspect method.
本申请实施例提供的拍摄预览显示方法、装置、终端及存储介质,当处于拍摄状态时,确定是否需要开启闪光灯,若确定需要开启闪光灯,则获取闪光灯的工作参数,根据闪光灯的工作参数对摄像头采集的预览画面进行补偿,得到补偿后的预览画面,并显示补偿后的预览画面,使得用户可以在拍摄前获知开启闪光灯拍摄的照片效果,避免了开启闪光灯拍摄照片后用户对照片不满意再重新拍摄的情况,提高了用户的使用体验。In the shooting preview display method, device, terminal and storage medium provided by the embodiments of the present application, when in the shooting state, it is determined whether the flash needs to be turned on, and if it is determined that the flash needs to be turned on, the working parameters of the flash are obtained, and the camera The collected preview image is compensated, the compensated preview image is obtained, and the compensated preview image is displayed, so that the user can know the effect of the photo taken with the flash before shooting, so as to avoid the user being dissatisfied with the photo after the flash is turned on. The shooting situation improves the user experience.
附图说明Description of drawings
图1为本申请实施例提供的拍摄预览显示方法实施例一的流程图;FIG. 1 is a flowchart of Embodiment 1 of a shooting preview display method provided by an embodiment of the present application;
图2为本申请实施例提供的拍摄预览显示装置实施例一的结构示意图;FIG. 2 is a schematic structural diagram of Embodiment 1 of a shooting preview display device provided by an embodiment of the present application;
图3为本申请实施例提供的一种终端的结构示意图。FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all the structures related to the present application.
随着硬件集成化技术和光学技术的发展,摄像头模组的体积已经被发展到很小,目前各种智能终端都配置有至少一个摄像头模组,为用户提供拍照或摄像功能。各种带有拍摄功能的终端设备,例如数码相机、数码摄像机、智能手机、平板电脑等,都具有拍摄预览功能。用户可以在使用终端设备拍照或摄像时,在终端设备的显示屏中实时观察到摄像头获取的画面,这为用户的拍摄提供了极大的便利,能够使用户拍摄到效果更好,更为满意的照片或视频。With the development of hardware integration technology and optical technology, the volume of the camera module has been developed to a very small size. At present, various smart terminals are equipped with at least one camera module to provide users with the function of taking pictures or video. Various terminal devices with shooting functions, such as digital cameras, digital video cameras, smart phones, tablet computers, etc., all have shooting preview functions. When using the terminal device to take pictures or videos, the user can observe the picture obtained by the camera in real time on the display screen of the terminal device, which provides great convenience for the user's shooting, and enables the user to shoot better and more satisfied. photos or videos.
为了提高在光线较暗时拍摄照片的效果,在终端设备拍照时经常需要使用闪光灯,闪光灯为能够在短时间内发出较亮光线的光源,一般配置于终端设备的摄像头模组附近。在光线较暗时开启闪光灯进行拍照,能够提高照片中被拍摄物的亮度,提高照片的拍摄效果。但由于闪光灯是在用户按压或触摸拍照按键时才进行闪光的,加上闪光灯后的照片效果只有在拍摄完成后才能得知,若拍摄效果不佳则还需要重新拍摄。In order to improve the effect of taking pictures when the light is low, a flash is often used when taking pictures on a terminal device. The flash is a light source that can emit bright light in a short period of time, and is generally configured near the camera module of the terminal device. Turning on the flash to take a photo when the light is dim can improve the brightness of the subject in the photo and improve the shooting effect of the photo. However, since the flash only fires when the user presses or touches the camera button, the photo effect after adding the flash can only be known after the shooting is completed. If the shooting effect is not good, it needs to be taken again.
图1为本申请实施例提供的拍摄预览显示方法实施例一的流程图,如图1所示,本实施例提供的方法包括:FIG. 1 is a flowchart of Embodiment 1 of a shooting preview display method provided by an embodiment of the present application. As shown in FIG. 1 , the method provided by this embodiment includes:
步骤101,当处于拍摄状态时,确定是否需要开启闪光灯。
本申请实施例所提供的拍摄预览显示方法应用于任一种包括摄像头或者摄像模组,具有照片或视频拍摄能力,且具有显示屏,可以在显示屏中显示拍摄预览的终端设备。例如数码相机、数码摄像机、智能手机、平板电脑等。并且该终端设备配置有闪光灯,可以由用户手动开启闪光灯或者通过检测环境光线自动开启闪光灯,配合摄像头模组完成拍摄。The shooting preview display method provided by the embodiments of the present application is applicable to any terminal device including a camera or a camera module, capable of shooting photos or videos, and having a display screen, which can display a shooting preview on the display screen. Such as digital cameras, digital video cameras, smart phones, tablet computers, etc. In addition, the terminal device is equipped with a flash, which can be manually turned on by the user or automatically turned on by detecting ambient light, and completes shooting with the camera module.
当用户需要使用终端设备进行拍照时,首先需要使终端设备处于拍摄状态,也就是进入拍摄模式。在进入拍摄模式后,用户可以手动开启闪光灯,强制闪光灯工作,也就是手动闪光灯模式;或者还可以设置自动闪光灯模式,通过采集环境光线亮度,在环境光线亮度低于预设亮度阈值时,终端设备即确定开启闪光灯。When a user needs to use a terminal device to take a picture, first, the terminal device needs to be in a shooting state, that is, enter a shooting mode. After entering the shooting mode, the user can manually turn on the flash to force the flash to work, that is, the manual flash mode; or can also set the automatic flash mode, by collecting the ambient light brightness, when the ambient light brightness is lower than the preset brightness threshold, the terminal device That is, confirm to turn on the flash.
步骤102,若确定需要开启闪光灯,则获取闪光灯的工作参数。Step 102: If it is determined that the flash needs to be turned on, the working parameters of the flash are acquired.
闪光灯实际上就是一个能够被短时间点亮的光源,为了使闪光灯工作,在确定需要开启闪光灯后,需要确定闪光灯的工作参数。闪光灯的工作参数包括但不限于闪光灯的工作时间和亮度,其中,闪光灯的亮度可以通过闪光灯的工作功率来进行调整。使用不同工作参数工作的闪光灯,对摄像头模组拍摄照片所产生的影响是不同的。The flash is actually a light source that can be lit for a short time. In order to make the flash work, after it is determined that the flash needs to be turned on, it is necessary to determine the working parameters of the flash. The working parameters of the flash include but are not limited to the working time and brightness of the flash, wherein the brightness of the flash can be adjusted by the working power of the flash. Flashes with different working parameters have different effects on the photos taken by the camera module.
若在手动闪光灯模式下,确定手动闪光灯开关被开启,则终端设备确定需要开启闪光灯,此时再获取闪光灯的工作参数;若在自动闪光灯模式下,根据当环境光线亮度低于预设亮度阈值时确定需要开启闪光灯,此时再获取闪光灯的工作参数。If it is determined that the manual flash switch is turned on in the manual flash mode, the terminal device determines that the flash needs to be turned on, and then obtains the working parameters of the flash; if in the automatic flash mode, according to when the ambient light brightness is lower than the preset brightness threshold It is determined that the flash needs to be turned on, and then the working parameters of the flash are obtained.
步骤103,根据闪光灯的工作参数对摄像头采集的预览画面进行补偿,得到补偿后的预览画面。Step 103: Compensate the preview image collected by the camera according to the working parameters of the flash to obtain the compensated preview image.
在终端设备进入拍照状态后,若终端设备具有拍摄预览功能,那么即可在终端设备的显示屏中实时地显示摄像头采集到的画面,即预览画面。用户可以通过查看预览画面确定是否满足拍摄需求,而现有技术中,预览画面所显示的内容就是摄像头实时获取到的画面,仅根据摄像头的物理参数所确定。在本申请实施例中,若在终端设备进入拍摄状态后,确定需要开启闪光灯,则先不在预览画面中显示摄像头获取到的画面,而是在确定了闪光灯的工作参数后,使用闪光灯的工作参数对摄像头采集的预览画面进行补偿,得到补偿后的预览画面。After the terminal device enters the photographing state, if the terminal device has a photographing preview function, the image captured by the camera, that is, the preview image, can be displayed in real time on the display screen of the terminal device. The user can determine whether the shooting requirements are met by viewing the preview image. In the prior art, the content displayed on the preview image is the image obtained by the camera in real time, and is only determined according to the physical parameters of the camera. In the embodiment of the present application, if it is determined that the flash needs to be turned on after the terminal device enters the shooting state, the image obtained by the camera is not displayed in the preview screen first, but the working parameters of the flash are used after the working parameters of the flash are determined. Compensate the preview image collected by the camera to obtain the compensated preview image.
闪光灯的作用就是为了提高拍摄时的环境光线亮度,因此,使用闪光灯的工作参数对摄像头采集的预览画面进行补偿,就是对预览画面的亮度进行补偿,也就是提高预览画面中的亮度。对预览画面进行补偿的补偿量大小是根据闪光灯的工作参数确定的,可以预设不同工作参数对应的补偿量的大小,也可以根据闪光灯的工作参数实时计算补偿量的大小。根据补偿量的大小调整预览画面后,得到的补偿后的预览画面与开启闪光灯拍摄照片后的照片效果一致。The function of the flash is to improve the brightness of the ambient light during shooting. Therefore, using the working parameters of the flash to compensate the preview image captured by the camera is to compensate the brightness of the preview image, that is, to increase the brightness in the preview image. The compensation amount for compensating the preview screen is determined according to the working parameters of the flash. The compensation amount corresponding to different working parameters can be preset, or the compensation amount can be calculated in real time according to the working parameters of the flash. After adjusting the preview image according to the compensation amount, the obtained preview image after compensation is consistent with the photo effect after the photo is taken with the flash turned on.
进一步地,在终端设备拍摄时,若开启闪光灯,由于亮度的变化,摄像头的拍摄参数也会进行相应的调整。而在进行拍摄预览时,虽然还未进行实际拍摄,但为了使预览画面与实际拍摄照片保持一致,在确定了闪光灯的工作参数后,还可以根据闪光灯工作参数控制摄像头进行从动调整。对摄像头进行调整的具体方法与实际拍摄时的调整方法一致,区别仅在于实际拍摄时是摄像头实际检测到闪光灯闪光后根据当前亮度调整拍摄参数。而在本申请实施例中,是将获取到的闪光灯的工作参数直接发送给摄像头,摄像头根据闪光灯的工作参数对原有拍摄参数进行补偿调整。在对摄像头的拍摄参数进行调整后,摄像头所采集的预览画面更加符合实际拍摄时的状态,因此预览画面再根据闪光灯的工作参数进行补偿后,得到的补偿后的预览画面更接近于实际拍摄的照片。Further, when the terminal device is shooting, if the flash is turned on, the shooting parameters of the camera will also be adjusted accordingly due to changes in brightness. During the shooting preview, although the actual shooting has not been carried out, in order to keep the preview image consistent with the actual shooting photo, after the working parameters of the flash are determined, the camera can be controlled to perform slave adjustment according to the working parameters of the flash. The specific method of adjusting the camera is the same as the adjustment method during actual shooting, the only difference is that during actual shooting, the camera adjusts the shooting parameters according to the current brightness after the camera actually detects the flash. However, in the embodiment of the present application, the acquired working parameters of the flash are directly sent to the camera, and the camera compensates and adjusts the original shooting parameters according to the working parameters of the flash. After adjusting the shooting parameters of the camera, the preview image collected by the camera is more in line with the actual shooting state. Therefore, after the preview image is compensated according to the working parameters of the flash, the compensated preview image is closer to the actual shooting. photo.
步骤104,显示补偿后的预览画面。
在对预览画面进行补偿后,即可再终端设备的显示屏中显示补偿后的预览画面,由于补偿后的预览画面根据闪光灯的工作参数进行了补偿,那么补偿后的预览画面与实际开启闪光灯拍摄后的照片效果一致,用户在预览画面中即可获知开启闪光灯后拍摄的照片效果是否满意,在满意后再进行实际拍摄,这样就避免了用户多余的拍摄。After the preview picture is compensated, the compensated preview picture can be displayed on the display screen of the terminal device. Since the compensated preview picture is compensated according to the working parameters of the flash, the compensated preview picture is the same as the actual flash shooting. After the photos are the same, the user can know in the preview screen whether the photos taken after turning on the flash are satisfactory or not, and then take the actual photos after they are satisfied, so as to avoid unnecessary shooting by the user.
本申请实施例提供的拍摄预览显示方法,当处于拍摄状态时,确定是否需要开启闪光灯,若确定需要开启闪光灯,则获取闪光灯的工作参数,根据闪光灯的工作参数对摄像头采集的预览画面进行补偿,得到补偿后的预览画面,并显示补偿后的预览画面,使得用户可以在拍摄前获知开启闪光灯拍摄的照片效果,避免了开启闪光灯拍摄照片后用户对照片不满意再重新拍摄的情况,提高了用户的使用体验。In the shooting preview display method provided by the embodiment of the present application, when in the shooting state, it is determined whether the flash needs to be turned on, and if it is determined that the flash needs to be turned on, the working parameters of the flash are obtained, and the preview image collected by the camera is compensated according to the working parameters of the flash, The preview screen after compensation is obtained, and the preview screen after compensation is displayed, so that the user can know the effect of the photo taken with the flash turned on before shooting, which avoids the situation that the user is dissatisfied with the photo after turning on the flash to take a photo and then retakes the photo, which improves the user experience. user experience.
图2为本申请实施例提供的拍摄预览显示装置实施例一的结构示意图,如图2所示,本实施例提供的拍摄预览显示装置,包括:FIG. 2 is a schematic structural diagram of Embodiment 1 of a shooting preview display device provided by an embodiment of the present application. As shown in FIG. 2 , the shooting preview display device provided by this embodiment includes:
闪光灯开启确定模块21,用于当处于拍摄状态时,确定是否需要开启闪光灯。The flash
闪光灯参数获取模块22,用于若确定需要开启闪光灯,则获取闪光灯的工作参数。The flash
预览画面补偿模块23,用于根据闪光灯的工作参数对摄像头采集的预览画面进行补偿,得到补偿后的预览画面。The preview
预览画面显示模块24,用于显示补偿后的预览画面。The preview
本申请实施例所提供的拍摄预览显示装置可执行图1所示实施例所提供的拍摄预览显示方法,具备执行方法相应的功能模块和有益效果。The shooting preview display device provided by the embodiment of the present application can execute the shooting preview display method provided by the embodiment shown in FIG. 1 , and has functional modules and beneficial effects corresponding to the execution method.
进一步地,在图2所示实施例的基础上,闪光灯开启确定模块21,具体用于当处于拍摄状态时,根据环境光线亮度确定是否需要开启闪光灯;闪光灯参数获取模块22,具体用于若环境光线亮度低于预设亮度阈值则确定需要开启闪光灯,根据环境光线亮度与闪光灯工作参数的对应关系获取闪光灯的工作参数。Further, on the basis of the embodiment shown in FIG. 2 , the flash light
进一步地,在图2所示实施例的基础上,闪光灯开启确定模块21,具体用于当处于拍摄状态时,确定手动闪光灯开关是否被开启;闪光灯参数获取模块22,具体用于若手动闪光灯开关被开启则确定需要开启闪光灯,根据环境光线亮度与闪光灯工作参数的对应关系获取闪光灯的工作参数。Further, on the basis of the embodiment shown in FIG. 2 , the flash
进一步地,在图2所示实施例的基础上,预览画面补偿模块23,具体用于根据闪光灯的工作参数控制摄像头调整拍摄参数后再采集预览画面并对预览画面进行补偿,得到补偿后的预览画面。Further, on the basis of the embodiment shown in FIG. 2 , the preview
进一步地,在图2所示实施例的基础上,闪光灯的工作参数包括闪光灯的工作时间和亮度。Further, on the basis of the embodiment shown in FIG. 2 , the working parameters of the flashlight include the working time and brightness of the flashlight.
图3为本申请实施例提供的一种终端的结构示意图,如图3所示,该终端包括处理器31、存储器32、摄像头组件33和显示屏34;终端中处理器31的数量可以是一个或多个,图3中以一个处理器31为例;终端中的处理器31、存储器32和摄像头组件33和显示屏34;可以通过总线或其他方式连接,图3中以通过总线连接为例。FIG. 3 is a schematic structural diagram of a terminal provided by an embodiment of the present application. As shown in FIG. 3 , the terminal includes a
存储器32作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请图1实施例中的拍摄预览显示方法对应的程序指令/模块(例如,拍摄预览显示装置中的闪光灯开启确定模块21、闪光灯参数获取模块22、预览画面补偿模块23、预览画面显示模块24)。处理器31通过运行存储在存储器32中的软件程序、指令以及模块,从而终端的各种功能应用以及数据处理,即实现上述的拍摄预览显示方法。As a computer-readable storage medium, the
存储器32可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器32可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。The
摄像头组件33的数量可以为一个或多个,可以为任意形式的摄像头或摄像头模组,可以通过处理器31的控制进行图像的拍摄,并可以将预览图像在显示屏中显示。显示屏34可以是任一种形式的显示装置或显示模块,能够显示终端设备内置或外界的摄像头所采集的预览画面。The number of
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种拍摄预览显示方法,该方法包括:Embodiments of the present application further provide a storage medium containing computer-executable instructions, when the computer-executable instructions are executed by a computer processor for executing a shooting preview display method, the method includes:
当处于拍摄状态时,确定是否需要开启闪光灯;When shooting, determine whether to turn on the flash;
若确定需要开启闪光灯,则获取闪光灯的工作参数;If it is determined that the flash needs to be turned on, obtain the working parameters of the flash;
根据闪光灯的工作参数对摄像头采集的预览画面进行补偿,得到补偿后的预览画面;Compensate the preview image collected by the camera according to the working parameters of the flash to obtain the compensated preview image;
显示补偿后的预览画面。The preview screen after compensation is displayed.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的方法操作,还可以执行本申请任意实施例所提供的拍摄预览显示方法中的相关操作.Of course, a storage medium containing computer-executable instructions provided by the embodiments of the present application, the computer-executable instructions of the storage medium are not limited to the above-mentioned method operations, and can also execute any of the shooting preview display methods provided in any of the embodiments of the present application. related operations.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。From the above description of the embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software and necessary general-purpose hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation manner . Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in a computer-readable storage medium, such as a floppy disk of a computer , read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD, etc., including several instructions to make a computer device (which can be a personal computer, A server, or a network device, etc.) executes the methods described in the various embodiments of the present application.
值得注意的是,上述搜索装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。It is worth noting that, in the above embodiments of the search device, the units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, each function The specific names of the units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present application and applied technical principles. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application. The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810457232.8A CN108650462B (en) | 2018-05-14 | 2018-05-14 | Shooting preview display method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810457232.8A CN108650462B (en) | 2018-05-14 | 2018-05-14 | Shooting preview display method, device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108650462A CN108650462A (en) | 2018-10-12 |
CN108650462B true CN108650462B (en) | 2020-06-09 |
Family
ID=63755306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810457232.8A Active CN108650462B (en) | 2018-05-14 | 2018-05-14 | Shooting preview display method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108650462B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103971547A (en) * | 2014-05-30 | 2014-08-06 | 深圳市中兴移动通信有限公司 | Mobile-terminal-based photography simulation teaching method and system |
CN104950555A (en) * | 2015-06-12 | 2015-09-30 | 联想(北京)有限公司 | Control method and electronic equipment |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7262798B2 (en) * | 2001-09-17 | 2007-08-28 | Hewlett-Packard Development Company, L.P. | System and method for simulating fill flash in photography |
US7471846B2 (en) * | 2003-06-26 | 2008-12-30 | Fotonation Vision Limited | Perfecting the effect of flash within an image acquisition devices using face detection |
CA2600185C (en) * | 2005-03-07 | 2016-04-26 | Dxo Labs | Method of controlling an action, such as a sharpness modification, using a colour digital image |
CN105227823A (en) * | 2014-06-03 | 2016-01-06 | 维科技术有限公司 | Shooting method and device of mobile terminal |
CN106534707A (en) * | 2015-09-14 | 2017-03-22 | 中兴通讯股份有限公司 | Photographing method and device |
CN106375677A (en) * | 2016-10-08 | 2017-02-01 | 珠海格力电器股份有限公司 | Control method and system for electronic equipment flash lamp |
CN106791460A (en) * | 2016-11-23 | 2017-05-31 | 滁州昭阳电信通讯设备科技有限公司 | The method and mobile terminal of a kind of brightness of flash lamp control |
CN106791203A (en) * | 2017-02-27 | 2017-05-31 | 维沃移动通信有限公司 | The control method and mobile terminal of a kind of photographic flashing function |
-
2018
- 2018-05-14 CN CN201810457232.8A patent/CN108650462B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103971547A (en) * | 2014-05-30 | 2014-08-06 | 深圳市中兴移动通信有限公司 | Mobile-terminal-based photography simulation teaching method and system |
CN104950555A (en) * | 2015-06-12 | 2015-09-30 | 联想(北京)有限公司 | Control method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108650462A (en) | 2018-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104754203B (en) | Image pickup method, device and terminal | |
CN111586282B (en) | Shooting method, shooting device, terminal and readable storage medium | |
WO2019214574A1 (en) | Image capturing method and apparatus, and electronic terminal | |
CN110493538A (en) | Image processing method, device, storage medium and electronic equipment | |
WO2017096857A1 (en) | Method and device for adjusting photographing parameter of camera | |
CN108600610A (en) | Shoot householder method and device | |
CN108322663B (en) | Photographing method, device, terminal and storage medium | |
CN104539864B (en) | The method and apparatus for recording image | |
CN107743191A (en) | Terminal and its anti-shake photographing method, and storage device | |
WO2017096866A1 (en) | Method and apparatus for generating high dynamic range image | |
CN105959581A (en) | Electronic device for image capture with dynamically controlled flash and related control method | |
WO2021169686A1 (en) | Photo capture control method and apparatus and computer readable storage medium | |
TW201533705A (en) | Dynamic exposure adjusting method and electronic apparatus using the same | |
CN111586308B (en) | Image processing method and device and electronic equipment | |
US10609265B2 (en) | Methods and apparatus for synchronizing camera flash and sensor blanking | |
CN108288044A (en) | Electronic device, face identification method and Related product | |
WO2017047012A1 (en) | Imaging device and system including imaging device and server | |
CN113497879B (en) | Photographing light supplementing method and device, terminal and storage medium | |
JP2015126326A (en) | Electronic apparatus and image processing method | |
CN104394329B (en) | A kind of photographic method, device and mobile terminal | |
CN108040204B (en) | A multi-camera-based image capturing method, device and storage medium | |
CN115914817A (en) | An image capturing method, terminal and storage medium | |
CN106657798A (en) | Photographing method for intelligent terminal | |
CN105744173A (en) | A method, device and mobile terminal for distinguishing front and rear areas of an image | |
CN111586280B (en) | Shooting method, device, terminal and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |