CN108683857A - Photographing optimization method and device, storage medium and terminal equipment - Google Patents
Photographing optimization method and device, storage medium and terminal equipment Download PDFInfo
- Publication number
- CN108683857A CN108683857A CN201810935296.4A CN201810935296A CN108683857A CN 108683857 A CN108683857 A CN 108683857A CN 201810935296 A CN201810935296 A CN 201810935296A CN 108683857 A CN108683857 A CN 108683857A
- Authority
- CN
- China
- Prior art keywords
- shooting
- brightness
- parameters
- parameter
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
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/71—Circuitry for evaluating the brightness variation
-
- 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/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/681—Motion detection
- H04N23/6812—Motion detection based on additional sensors, e.g. acceleration sensors
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
本申请实施例中提供的一种拍照优化方法、装置、存储介质及终端设备,该方法通过在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数;获取所述拍摄装置的拍摄范围中的亮度信息;根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。通过采用上述技术方案,可以根据抖动参数和亮度变化信息来确定拍摄的连续拍摄参数,以使拍摄装置根据连续拍摄参数能够拍摄到更优的照片。
The embodiments of the present application provide a method, device, storage medium and terminal device for optimizing photography. The method determines the jitter parameter of the photography device when taking photos through the photography device; obtains the brightness information in the shooting range of the photography device; and determines the continuous shooting parameters of the photography according to the jitter parameter and the brightness information. By adopting the above technical solution, the continuous shooting parameters of the photography can be determined according to the jitter parameter and the brightness change information, so that the photography device can take better photos according to the continuous shooting parameters.
Description
技术领域technical field
本申请实施例涉及终端设备技术领域,尤其涉及一种拍照优化方法、装置、存储介质及终端设备。The embodiments of the present application relate to the technical field of terminal equipment, and in particular, to a photographing optimization method, device, storage medium, and terminal equipment.
背景技术Background technique
随着终端设备技术的发展,终端设备上一般都配置有摄像头,大部分的用户都拥有可以拍照的终端设备。与传统的相机不同,通过终端设备进行拍照是非常容易的操作,传统相机进行拍摄时,一般需要进行参数设置或调整镜头焦距的操作;但是通过终端设备拍照,用户只需要在对准拍摄物后按下拍照键就可以完成。由于拍照的操作简单化以及便利化,在不够理想的环境中所拍摄出来的照片也不太理想,所以需要对终端设备的拍照技术进行优化。With the development of terminal equipment technology, the terminal equipment is generally equipped with a camera, and most users have terminal equipment capable of taking pictures. Different from traditional cameras, taking pictures through terminal devices is very easy to operate. When shooting with traditional cameras, it is generally necessary to set parameters or adjust the focal length of the lens; but to take pictures through terminal devices, users only need to align the subject Just press the camera button and you're done. Due to the simplification and convenience of taking pictures, the pictures taken in less than ideal environments are not ideal, so it is necessary to optimize the picture taking technology of the terminal device.
发明内容Contents of the invention
本申请实施例提供的一种拍照优化方法、装置、存储介质及终端设备,可以根据拍摄环境的不同来对终端设备的拍照进行优化。The photographing optimization method, device, storage medium, and terminal device provided in the embodiments of the present application can optimize the photographing of the terminal device according to different photographing environments.
第一方面,本申请实施例提供了一种拍照优化方法,包括:In the first aspect, the embodiment of the present application provides a method for photographing optimization, including:
在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数;When shooting through the shooting device, determining the shaking parameters of the shooting device;
获取所述拍摄装置的拍摄范围中的亮度信息;acquiring brightness information in the shooting range of the shooting device;
根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。A continuous shooting parameter of the shooting is determined according to the shake parameter and the brightness information.
第二方面,本申请实施例提供了一种拍照优化装置,包括:In the second aspect, the embodiment of the present application provides a photographing optimization device, including:
抖动参数确定模块,用于在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数;A jitter parameter determination module, configured to determine the jitter parameters of the photographing device when shooting through the photographing device;
亮度获取模块,用于获取所述拍摄装置的拍摄范围中的亮度信息;a brightness acquisition module, configured to acquire brightness information in the shooting range of the shooting device;
参数确定模块,用于根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。A parameter determination module, configured to determine continuous shooting parameters of the shooting according to the shaking parameters and the brightness information.
第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例所述的拍照优化方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the photographing optimization method as described in the embodiment of the present application is implemented.
第四方面,本申请实施例提供了一种终端设备,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的拍照优化方法。In the fourth aspect, the embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the implementation of the present application is implemented. The photo optimization method described in the example.
本申请实施例中提供的一种拍照优化方案,通过在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数;获取所述拍摄装置的拍摄范围中的亮度信息;根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。通过采用上述技术方案,可以根据抖动参数和亮度变化信息来确定拍摄的连续拍摄参数,以使拍摄装置根据连续拍摄参数能够拍摄到更优的照片。In the photographing optimization solution provided in the embodiment of the present application, when the photographing device is used for photographing, the shake parameter of the photographing device is determined; the brightness information in the photographing range of the photographing device is acquired; according to the shake parameter and The brightness information determines continuous shooting parameters of the shooting. By adopting the above technical solution, the continuous shooting parameters for shooting can be determined according to the shaking parameters and the brightness change information, so that the shooting device can take better photos according to the continuous shooting parameters.
附图说明Description of drawings
图1为本申请实施例提供的一种拍照优化方法的流程示意图;FIG. 1 is a schematic flow diagram of a photographing optimization method provided in an embodiment of the present application;
图2为本申请实施例提供的一种拍照优化方法的场景示意图Fig. 2 is a schematic diagram of a scene of a photo-taking optimization method provided by an embodiment of the present application
图3为本申请实施例提供的另一种拍照优化方法的流程示意图;FIG. 3 is a schematic flow diagram of another photographing optimization method provided in the embodiment of the present application;
图4为本申请实施例提供的另一种拍照优化方法的流程示意图Fig. 4 is a schematic flow chart of another photographing optimization method provided by the embodiment of the present application
图5为本申请实施例提供的另一种拍照优化方法的流程示意图Fig. 5 is a schematic flow chart of another photographing optimization method provided by the embodiment of the present application
图6为本申请实施例提供的另一种拍照优化方法的场景示意图Fig. 6 is a schematic diagram of a scene of another photographing optimization method provided by the embodiment of the present application
图7为本申请实施例提供的另一种拍照优化方法的流程示意图Fig. 7 is a schematic flow chart of another photographing optimization method provided by the embodiment of the present application
图8为本申请实施例提供的另一种拍照优化方法的流程示意图Fig. 8 is a schematic flow chart of another photographing optimization method provided by the embodiment of the present application
图9为本申请实施例提供的一种拍照优化装置的结构框图;FIG. 9 is a structural block diagram of a photographing optimization device provided in an embodiment of the present application;
图10为本申请实施例提供的一种终端设备的结构示意图;FIG. 10 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
图11为本申请实施例提供的另一种终端设备的结构示意图。FIG. 11 is a schematic structural diagram of another terminal device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solution of the present application will be further described below in conjunction with the accompanying drawings and through specific implementation methods. It should be understood that the specific embodiments described here 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, only some structures related to the present application are shown in the drawings but not all structures.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
拍摄装置可以是智能手机、平板电脑、智能照相机或其他具有拍摄功能的终端设备,终端设备还可以是具备相应操作系统的设备。现有技术中,用户通过手持拍摄装置进行拍摄时,可能会手持不稳而导致拍摄装置抖动的情况,进而拍摄装置拍摄的图片可能会有模糊的问题。另外,如果拍摄的场景的光照情况不理想,也会导致拍摄的图片会有噪声过高的问题。本申请实施例可以根据拍摄环境的不同来控制拍摄装置连拍多张照片,并根据连拍的多张照片进行合成改善图像质量。The shooting device may be a smart phone, a tablet computer, a smart camera or other terminal equipment with a shooting function, and the terminal equipment may also be a device with a corresponding operating system. In the prior art, when a user takes a picture with a hand-held camera, the camera may shake unsteadily, and the pictures taken by the camera may be blurred. In addition, if the lighting conditions of the shooting scene are not ideal, it will also cause the problem of excessive noise in the captured pictures. The embodiment of the present application can control the photographing device to continuously take multiple photos according to different shooting environments, and perform synthesis according to the multiple photos taken continuously to improve image quality.
图1为本申请实施例提供的一种拍照优化方法的流程示意图,该方法可以由拍照优化装置执行,其中该装置可以由软件和/或硬件实现,一般可以集成在终端设备中,也可以集成在其他安装有操作系统的设备中。如图1所示,该方法包括:Fig. 1 is a schematic flow chart of a photographing optimization method provided by an embodiment of the present application. The method can be executed by a photographing optimization device, wherein the device can be implemented by software and/or hardware, and can generally be integrated in a terminal device or can be integrated In other devices with an operating system installed. As shown in Figure 1, the method includes:
S110、在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数。S110. Determine a shaking parameter of the photographing device when the photographing device is used for photographing.
其中,所述拍摄装置可以是智能手机、平板电脑、智能照相机或其他设备;所述拍摄装置还可以是终端设备上的拍摄装置,例如智能手机上的摄像头。所述通过拍摄装置进行拍摄时可以是:用户启动拍摄装置并开启拍摄装置的摄像头进行拍摄时。Wherein, the shooting device may be a smart phone, a tablet computer, a smart camera or other devices; the shooting device may also be a shooting device on a terminal device, such as a camera on a smart phone. The shooting by the shooting device may be: when the user starts the shooting device and turns on the camera of the shooting device to shoot.
可选地,所述拍摄可以是普通拍摄,即所述拍摄装置在接收到用户的拍摄操作时,在拍摄时间内拍摄一张照片。所述拍摄还可以是连续拍摄,连续拍摄为:所述拍摄装置在接收到用户的连续拍摄操作时,在拍摄时间内持续拍摄至少两张照片。示例性地,用户使用拍摄装置拍摄多人的合影时,由于多人的动作和表情无法统一,直接拍摄可能无法得到好的效果;所以可以通过拍摄装置在拍摄时间内持续拍摄多张连拍的照片,所以用户可以从多张连拍的照片中选取效果最好的照片。Optionally, the shooting may be normal shooting, that is, when the shooting device receives a user's shooting operation, it takes a photo within a shooting time. The photographing may also be continuous photographing, which means: when the photographing device receives a user's continuous photographing operation, it continuously photographs at least two photos within the photographing time. For example, when a user uses a shooting device to take a group photo of multiple people, since the actions and expressions of the people cannot be unified, good results may not be obtained by direct shooting; photos, so users can choose the best shot from multiple bursts of photos.
所述抖动参数为体现所述拍摄装置的抖动情况的参数,可选地,所述抖动参数可包括抖动频率和/或抖动幅度等。可以通过拍摄装置中设置的抖动传感器检测所述拍摄装置的抖动参数,可选地,所述抖动传感器可以是姿态传感器,通过姿态传感器可以检测到拍摄装置的姿态信息,进而根据姿态信息确定拍摄装置的抖动参数。The jitter parameter is a parameter that reflects the jitter of the photographing device. Optionally, the jitter parameter may include a jitter frequency and/or a jitter amplitude. The shaking parameters of the shooting device can be detected by the shaking sensor provided in the shooting device. Optionally, the shaking sensor can be an attitude sensor, and the attitude information of the shooting device can be detected by the attitude sensor, and then the shooting device can be determined according to the attitude information. jitter parameters.
示例性地,如果所述拍摄装置为智能手机,而一般的智能手机中都设置有陀螺仪和加速度传感器等用于测量手机姿态信息的传感器,可以根据陀螺仪和/或加速度传感器确定智能手机的抖动参数。Exemplarily, if the photographing device is a smart phone, and a general smart phone is provided with sensors such as a gyroscope and an acceleration sensor for measuring the attitude information of the mobile phone, the position of the smart phone can be determined according to the gyroscope and/or the acceleration sensor. Jitter parameter.
S111、获取所述拍摄装置的拍摄范围中的亮度信息。S111. Acquire brightness information in a shooting range of the shooting device.
所述拍摄装置的拍摄范围为:所述拍摄装置进行拍摄时,所能拍摄到的场景范围。示例性地,如图2所示,如果正在通过拍摄装置10拍摄人物13的证件照,则所述拍摄范围11包括该人物13以及人物背后的背景板区域12。The shooting range of the shooting device is: the range of scenes that can be captured by the shooting device when shooting. Exemplarily, as shown in FIG. 2 , if the ID photo of a person 13 is being taken by the shooting device 10 , the shooting range 11 includes the person 13 and the background plate area 12 behind the person.
所述亮度信息可以包括所述拍摄范围中所采集的亮度参数,可以通过拍摄装置中的亮度采集装置采集拍摄范围的亮度信息。The brightness information may include brightness parameters collected in the shooting range, and the brightness information of the shooting range may be collected by a brightness acquisition device in the shooting device.
可选地,所述亮度信息可以是亮度变化信息。所述亮度变化信息包括在预设时间区间内所述拍摄范围内的光线亮度所发生的变化信息。示例性地,在某个场景的拍摄范围中,光线亮度在预设时间区间内从亮度值80变化至60,则亮度变化信息则包括在预设时间区间内亮度值从80变化至60的信息。Optionally, the brightness information may be brightness change information. The brightness change information includes information about changes in light brightness within the shooting range within a preset time interval. For example, in the shooting range of a certain scene, the light brightness changes from a brightness value of 80 to 60 within a preset time interval, and the brightness change information includes the information that the brightness value changes from 80 to 60 within a preset time interval .
所述光线发生变化还会导致拍摄装置对拍摄范围拍摄所采集到的图像中的亮度信息发生变化,所述亮度变化信息还可以包括在预设时间区间内所述拍摄装置所生成的图像中的亮度信息发生的变化。The change of the light will also cause the brightness information in the image captured by the shooting device to shoot in the shooting range to change, and the brightness change information may also include the Changes in brightness information.
所述拍摄装置所生成的图像可以是:所述拍摄装置拍摄的拍摄范围并生成的对应的数字图像,所述数字图像可以是在拍摄装置对应的显示装置上暂时显示的预览图像,也可以是在生成后存储在拍摄装置的存储模块中的存储图像。The image generated by the photographing device may be: a corresponding digital image generated from the shooting range photographed by the photographing device, and the digital image may be a preview image temporarily displayed on a display device corresponding to the photographing device, or it may be The storage image stored in the storage module of the photographing device after being generated.
可选地,所述亮度信息还可以是环境亮度信息,所述环境亮度信息可以是根据至少两个预设坐标对应的亮度参数所确定的环境亮度信息。所述预设位置可以是系统预设,或者根据用户的选择进行设置。示例性地,如果所述预设位置包括两个预设坐标,两个预设坐标分别位于所述数字图像的上端和下端,而如果所述上端的预设坐标对应的亮度参数为80,而下端的亮度参数为60,则可以确定所述拍摄范围中的光源位于上端,所述拍摄范围中亮度情况包括上亮下暗,以此作为环境亮度信息。Optionally, the brightness information may also be ambient brightness information, and the ambient brightness information may be ambient brightness information determined according to brightness parameters corresponding to at least two preset coordinates. The preset location may be preset by the system, or set according to a user's choice. Exemplarily, if the preset position includes two preset coordinates, the two preset coordinates are respectively located at the upper end and the lower end of the digital image, and if the brightness parameter corresponding to the preset coordinates at the upper end is 80, and If the brightness parameter at the lower end is 60, it can be determined that the light source in the shooting range is located at the upper end, and the brightness in the shooting range includes upper bright and lower dark, which is used as the ambient brightness information.
S112、根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。S112. Determine continuous shooting parameters of the shooting according to the shaking parameter and the brightness information.
如果操作S110中的拍摄装置进行拍摄的是连续拍摄,则根据所述抖动参数和所述亮度信息确定所述连续拍摄的连续拍摄参数。If the shooting by the shooting device in operation S110 is continuous shooting, a continuous shooting parameter of the continuous shooting is determined according to the shaking parameter and the brightness information.
如果操作S110中的拍摄装置进行拍摄的是普通拍摄,则根据所述抖动参数和所述亮度信息将所述拍摄装置的拍摄模式调整为连续拍摄,并确定所述连续拍摄的连续拍摄参数。示例性地,如果所述抖动参数和所述亮度信息确定所述拍摄范围的拍摄环境不够理想,则可以将所述拍摄装置的拍摄模式调整为连续拍摄,并确定所述拍摄的连续拍摄参数,可以根据连续拍摄的多张照片合成一个更好的照片。If the shooting by the shooting device in operation S110 is normal shooting, adjust the shooting mode of the shooting device to continuous shooting according to the shake parameter and the brightness information, and determine the continuous shooting parameters of the continuous shooting. Exemplarily, if it is determined by the shaking parameters and the brightness information that the shooting environment of the shooting range is not ideal, the shooting mode of the shooting device may be adjusted to continuous shooting, and the continuous shooting parameters of the shooting may be determined, A better photo can be synthesized from multiple photos taken in succession.
其中,所述拍摄的连续拍摄参数为所述拍摄装置进行连续拍摄时所依据的参数。Wherein, the continuous shooting parameters of the shooting are parameters based on which the shooting device performs continuous shooting.
可以根据预设的连拍参数确定表、所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数;所述预设的连拍参数确定表中包括了抖动参数、亮度信息和连续拍摄参数的映射关系;所以可以根据抖动参数和亮度变化信息确定对应的连续拍摄参数,作为拍摄装置进行拍摄的连续拍摄参数。The continuous shooting parameters of the shooting can be determined according to the preset continuous shooting parameter determination table, the jitter parameters and the brightness information; the preset continuous shooting parameter determination table includes the jitter parameters, brightness information and continuous shooting The mapping relationship of the parameters; therefore, the corresponding continuous shooting parameters can be determined according to the shaking parameters and the brightness change information, and used as the continuous shooting parameters for shooting by the shooting device.
示例性地,可以根据抖动参数确定对应的抖动等级,以及根据亮度信息确定亮度等级。每个抖动等级中对应着不同的亮度等级,每个亮度等级对应至少一个连续拍摄参数,进而可以根据亮度信息确定对应的连续拍摄参数。Exemplarily, the corresponding shake level may be determined according to the shake parameter, and the brightness level may be determined according to the brightness information. Each shake level corresponds to a different brightness level, and each brightness level corresponds to at least one continuous shooting parameter, and then the corresponding continuous shooting parameter can be determined according to the brightness information.
可选地,所述连续拍摄参数包括拍摄数量和曝光时间;所述连续拍摄参数用于使所述拍摄装置在拍摄时间内根据所述曝光时间拍摄所述拍摄数量的图像,并根据所述采集的拍摄数量的图像合成目标图像。Optionally, the continuous shooting parameters include the number of shots and exposure time; the continuous shooting parameters are used to make the shooting device take the number of images according to the exposure time within the shooting time, and according to the collected The target image is synthesized from the captured number of images.
所述拍摄数量为在拍摄时间内连续拍摄所要拍摄的数量;所述曝光时间为在所述连续拍摄中的单个照片的拍摄所采用的曝光时间;所述连续拍摄中的所有照片的拍摄可以采用同一个曝光时间。还可以根据每个照片对应的时间点的不同,采用对应的曝光时间。The number of shots is the number of shots to be taken for continuous shooting within the shooting time; the exposure time is the exposure time used for shooting a single photo in the continuous shooting; the shooting of all photos in the continuous shooting can be taken the same exposure time. It is also possible to use a corresponding exposure time according to the time point corresponding to each photo.
曝光时间是在拍摄装置进行拍摄时快门开启的时间;快门开启时,外界的光可以投射到拍摄装置的感光材料的感光面上,所以曝光时间将会影响摄像装置的成像效果;而针对不同的场景,选用合适的曝光时间可以得到更清晰的照片。一般来说,在光线较差的情况,采用较长的曝光时间,可以使外界更多的光能够进入摄像装置的感光材料的感光面上,以便可以提高所成的图像的亮度值,得到更清晰的照片。相应地,对于光线比较好的情况则可以采用较短的曝光时间。另一方面,对于如果拍摄装置在进行拍摄时,拍摄装置本身处于抖动的状态,如果曝光时间过长,则会导致拍摄的图像出现虚化模糊的效果,所以对于拍摄装置出现抖动的情况,需要适当降低曝光时间。The exposure time is the time when the shutter is opened when the camera is shooting; when the shutter is opened, the light from the outside can be projected onto the photosensitive surface of the photosensitive material of the camera, so the exposure time will affect the imaging effect of the camera; and for different A clearer photo can be obtained by choosing an appropriate exposure time for the scene. Generally speaking, in the case of poor light, a longer exposure time can be used to allow more light from the outside to enter the photosensitive surface of the photosensitive material of the camera device, so that the brightness value of the formed image can be improved, and a better image can be obtained. Clear picture. Correspondingly, shorter exposure times can be used for better light conditions. On the other hand, if the camera itself is in a state of shaking when the camera is shooting, if the exposure time is too long, it will cause blurry effect in the captured image, so for the camera shaking, it is necessary Properly reduce the exposure time.
其中,根据所述采集的拍摄数量的图像合成目标图像可以通过下述方式实施:Wherein, synthesizing the target image according to the images of the captured shooting quantity can be implemented in the following manner:
从所述拍摄数量的图像中选择基准图像,确定所述基准图像中的待修正位置,并所述拍摄数量中的其他图像修正所述基准图像中的待修正位置,以得到目标图像。其中,所述待修正位置可以包括模糊的位置或亮度过暗的位置,可以根据图像处理技术确定所述基准图像中的待修正位置。Selecting a reference image from the captured images, determining a position to be corrected in the reference image, and correcting the positions to be corrected in the reference image with other images in the captured quantity, so as to obtain a target image. Wherein, the position to be corrected may include a blurred position or a position with too dark brightness, and the position to be corrected in the reference image may be determined according to an image processing technique.
本申请实施例中提供的一种拍照优化方法,通过在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数;获取所述拍摄装置的拍摄范围中的亮度信息;根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。通过采用上述技术方案,可以根据抖动参数和亮度变化信息来确定拍摄的连续拍摄参数,以使拍摄装置根据连续拍摄参数能够拍摄到更优的照片。According to a photo-taking optimization method provided in an embodiment of the present application, when the camera is used for shooting, determining the shaking parameters of the shooting device; obtaining brightness information in the shooting range of the shooting device; according to the shaking parameters and The brightness information determines continuous shooting parameters of the shooting. By adopting the above technical solution, the continuous shooting parameters for shooting can be determined according to the shaking parameters and the brightness change information, so that the shooting device can take better photos according to the continuous shooting parameters.
图3为本申请实施例提供的另一种拍照优化方法的流程示意图,在上述实施例所提供的技术方案的基础上,所述亮度信息包括亮度变化信息,对获取所述拍摄装置的拍摄范围中的亮度信息的操作进行了优化,可选地,如图3所示,该方法包括:Fig. 3 is a schematic flow chart of another photo-taking optimization method provided by the embodiment of the present application. On the basis of the technical solution provided by the above-mentioned embodiment, the brightness information includes brightness change information, which is essential for obtaining the shooting range of the shooting device The operation of the brightness information in is optimized, optionally, as shown in Figure 3, the method includes:
S120、在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数。S120. When the photographing device is used for photographing, determine a shake parameter of the photographing device.
具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners, reference may be made to relevant descriptions above, and details are not repeated here.
S121、在预设时间区间内确定预设数量的时间点,并获取每个时间点对应的拍摄范围中的亮度参数。S121. Determine a preset number of time points within a preset time interval, and acquire a brightness parameter in a shooting range corresponding to each time point.
S122、根据所述预设数量的时间点以及对应的亮度参数确定亮度变化信息。S122. Determine brightness change information according to the preset number of time points and corresponding brightness parameters.
其中,所述预设时间区间可以是从用户开启拍摄装置进行拍摄至具体进行连续拍摄之间的时间区间,所述时间区间的时长可以是预设。示例性地,可以是用户开启拍摄装置并按下快门键后至具体进行连续拍摄的时间点之间的时间区间,可以是3秒。从所述预设时间区间内确定预设数量的时间点,其中任意两个相邻的时间点之间的时间间隔可以是相同也可以不同;所述预设数量和时间间隔可以是系统预设或者用户设置,在此不作限定。Wherein, the preset time interval may be a time interval from when the user turns on the shooting device to shoot to when the continuous shooting is performed, and the duration of the time interval may be preset. Exemplarily, it may be the time interval between when the user turns on the shooting device and presses the shutter button to the specific time point for continuous shooting, which may be 3 seconds. Determine a preset number of time points from the preset time interval, wherein the time interval between any two adjacent time points can be the same or different; the preset number and time interval can be system preset Or user settings, which are not limited here.
获取每个时间点对应的拍摄范围中的亮度参数即:在每个时间点分别获取拍摄范围中的亮度参数。根据在预设区间内确定的预设数量的时间点,分别采集和时间点对应的预设数量的亮度参数,从而根据时间点以及对应的亮度参数可以确定亮度变化信息。通过亮度变化信息可以确定拍摄装置所处的拍摄场景中的亮度变化状况,进一步还可以预测拍摄装置在具体拍照采集生成图像时的亮度。Obtaining the brightness parameter in the shooting range corresponding to each time point is: acquiring the brightness parameter in the shooting range at each time point. According to the preset number of time points determined within the preset interval, a preset number of brightness parameters corresponding to the time points are respectively collected, so that brightness change information can be determined according to the time points and corresponding brightness parameters. The brightness change status of the shooting scene in which the shooting device is located can be determined through the brightness change information, and further, the brightness of the shooting device when capturing and generating an image can be predicted.
可选地,获取每个时间点对应的拍摄范围中的亮度参数可以通过下述方式实施:对于每个时间点,通过拍摄装置的亮度采集模块采集拍摄范围中的亮度参数,或者根据所述拍摄装置的拍摄范围所形成的图像确定亮度参数。Optionally, obtaining the brightness parameters in the shooting range corresponding to each time point can be implemented in the following manner: for each time point, the brightness parameters in the shooting range are collected by the brightness acquisition module of the shooting device, or according to the shooting The image formed by the shooting range of the device determines the brightness parameter.
其中,所述亮度采集模块可以是拍摄装置中的光线传感器,一般的拍摄装置中都配置有光线传感器,可以直接采集到拍摄场景中的光线状况,进而确定拍摄范围中的亮度参数。Wherein, the brightness acquisition module may be a light sensor in the shooting device, and a general shooting device is equipped with a light sensor, which can directly collect the light conditions in the shooting scene, and then determine the brightness parameters in the shooting range.
还可以根据所述拍摄装置的拍摄范围所形成的图像确定亮度参数;所述根据所述拍摄装置的拍摄范围所形成的图像可以是:所述拍摄装置拍摄的拍摄范围并生成的对应的数字图像,所述数字图像可以是在拍摄装置对应的显示装置上暂时显示的预览图像,也可以是在生成后存储在拍摄装置的存储模块中的存储图像。所形成的图像中包含了图像的亮度信息,可以根据形成的图像确定亮度参数;还可以所形成的图像中的像素点的像素值或RGB值确定所述图像的亮度信息。The brightness parameter can also be determined according to the image formed by the shooting range of the shooting device; the image formed according to the shooting range of the shooting device can be: the corresponding digital image generated by the shooting range captured by the shooting device The digital image may be a preview image temporarily displayed on a display device corresponding to the shooting device, or a stored image stored in a storage module of the shooting device after generation. The formed image contains the brightness information of the image, and brightness parameters can be determined according to the formed image; the brightness information of the image can also be determined by pixel values or RGB values of pixels in the formed image.
所述亮度变化信息可以包括亮度变化趋势信息,示例性地,可以对时间点及其对应的亮度参数进行拟合,得到的拟合函数即亮度变化信息;所述亮度变化信息即函数关系式,所述函数关系式可以体现时间和亮度参数的关系以及体现亮度变化的趋势,进而可以预测在具体进行拍照采集图像时的亮度。The brightness change information may include brightness change trend information. For example, time points and corresponding brightness parameters may be fitted, and the obtained fitting function is brightness change information; the brightness change information is a functional relational expression, The functional relational expression can reflect the relationship between time and brightness parameters and the trend of brightness changes, and then can predict the brightness when taking pictures and collecting images.
S123、根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。S123. Determine continuous shooting parameters of the shooting according to the shaking parameter and the brightness information.
如果仅根据直接采集的亮度参数和抖动参数来确定拍摄的连续拍摄参数,可能在拍摄装置具体进行连续拍摄时,拍摄范围的亮度信息已经发生变化,进而导致所确定的连续拍摄的照片不够理想。而亮度变化信息可以确定拍摄装置所处的拍摄场景中的亮度变化状况,进一步还可以预测拍摄装置在具体拍照采集生成图像时的亮度。所以根据亮度变化信息和抖动参数结合来确定所述拍摄装置的连续拍摄参数,可以提高连续拍摄参数的准确性。If the continuous shooting parameters for shooting are determined only based on directly collected brightness parameters and jitter parameters, the brightness information of the shooting range may have changed when the shooting device actually performs continuous shooting, which leads to unsatisfactory determined continuous shooting photos. The brightness change information can determine the brightness change status in the shooting scene where the shooting device is located, and can further predict the brightness of the shooting device when it captures and generates an image. Therefore, determining the continuous shooting parameters of the shooting device according to the combination of the brightness change information and the shaking parameters can improve the accuracy of the continuous shooting parameters.
具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners, reference may be made to relevant descriptions above, and details are not repeated here.
本申请实施例通过在预设时间区间内确定预设数量的时间点,并获取每个时间点对应的拍摄范围中的亮度参数,根据所述预设数量的时间点以及对应的亮度参数确定亮度变化信息,可以根据亮度变化信息来确定拍摄的连续拍摄参数,可以进一步提高连续拍摄参数的准确性,可以得到更好的连拍照片。In this embodiment of the present application, by determining a preset number of time points within a preset time interval, and obtaining brightness parameters in the shooting range corresponding to each time point, the brightness is determined according to the preset number of time points and corresponding brightness parameters The change information can determine the continuous shooting parameters for shooting according to the brightness change information, which can further improve the accuracy of the continuous shooting parameters and obtain better continuous shooting photos.
图4为本申请实施例提供的另一种拍照优化方法的流程示意图,在上述任意实施例所提供的技术方案的基础上,可选地,如图4所示,该方法包括:Fig. 4 is a schematic flow chart of another photographing optimization method provided by the embodiment of the present application. On the basis of the technical solution provided by any of the above embodiments, optionally, as shown in Fig. 4, the method includes:
S130、在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数。S130. Determine a shaking parameter of the photographing device when photographing with the photographing device.
具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners, reference may be made to relevant descriptions above, and details are not repeated here.
S131、在预设时间区间内确定至少三个的时间点,并获取每个时间点对应的拍摄范围中的亮度参数。S131. Determine at least three time points within a preset time interval, and acquire a brightness parameter in a shooting range corresponding to each time point.
S132、根据所述至少三个时间点对应的亮度参数确定亮度变化趋势信息。S132. Determine brightness change trend information according to the brightness parameters corresponding to the at least three time points.
其中,所述亮度变化趋势信息可以包括亮度变亮、亮度变低或亮度闪烁,对于两个时间点可以确定亮度变亮或亮度变暗,但是如果所述亮度变化趋势信息包括亮度闪烁的变化信息,则仅两个时间点无法准确确定亮度变化趋势。所以确定至少三个时间点,并根据至少三个时间点对应的亮度参数可以提高亮度变化趋势信息的准确性。Wherein, the brightness change trend information may include brighter brightness, lower brightness, or brightness flicker, and it may be determined that the brightness becomes brighter or darker at two time points, but if the brightness change trend information includes change information of brightness flicker , the brightness change trend cannot be accurately determined at only two time points. Therefore, determining at least three time points and according to brightness parameters corresponding to at least three time points can improve the accuracy of brightness change trend information.
S133、根据所述亮度变化趋势信息以及所述至少三个时间点对应的亮度参数确定基准亮度参数。S133. Determine a reference brightness parameter according to the brightness change trend information and the brightness parameters corresponding to the at least three time points.
其中,所述亮度变化趋势信息可以是体现时间和亮度参数的关系,即可以体现亮度变化的趋势,进而可以预测在具体进行拍照采集图像时的亮度。所以可以根据亮度变化趋势信息和至少三个时间点确定基准亮度参数,所述基准亮度参数为具体拍摄的时间点对应的亮度参数。所述亮度变化信息包括基准亮度参数。Wherein, the brightness change trend information can reflect the relationship between time and brightness parameters, that is, it can reflect the brightness change trend, and then can predict the brightness when taking pictures and collecting images. Therefore, a reference brightness parameter may be determined according to brightness change trend information and at least three time points, where the reference brightness parameter is a brightness parameter corresponding to a specific shooting time point. The brightness change information includes a reference brightness parameter.
示例性地,如果所述预设时间区间是用户开启拍摄装置并按下快门键后至时机进行拍摄的那一个时间点的时间区间,所述至少三个时间点和进行拍摄的那一个时间点是依次均匀排列。在确定亮度变化趋势信息后,则可以根据所述至少三个时间点和具体拍摄的时间点关系确定所述具体拍摄的时间点对应的亮度参数,即基准亮度参数。其中,所述至少三个时间点和具体拍摄的时间点的关系还可以是,第一个时间点距离第二个时间点a秒,第二个时间点距离第三个时间点2*a秒,第三个时间点距离具体拍摄的时间点3*a秒;所述至少三个时间点和具体拍摄的时间点的关系可以是系统预设或者根据用户的选择模式进行确定,在此不作限定。Exemplarily, if the preset time interval is the time interval from when the user turns on the shooting device and presses the shutter button to the time point when the shooting is performed, the at least three time points and the time point when the shooting is performed are arranged evenly. After the brightness change trend information is determined, the brightness parameter corresponding to the specific shooting time point, that is, the reference brightness parameter, may be determined according to the relationship between the at least three time points and the specific shooting time point. Wherein, the relationship between the at least three time points and the specific shooting time points may also be that the first time point is a second away from the second time point, and the second time point is 2*a seconds away from the third time point , the third time point is 3*a seconds away from the specific shooting time point; the relationship between the at least three time points and the specific shooting time point can be preset by the system or determined according to the user's selection mode, which is not limited here .
S134、根据所述抖动参数和所述基准亮度参数确定所述拍摄的连续拍摄参数。S134. Determine continuous shooting parameters of the shooting according to the shaking parameter and the reference brightness parameter.
具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners, reference may be made to relevant descriptions above, and details are not repeated here.
本申请实施例通过在预设时间区间内确定至少三个时间点,并获取每个时间点对应的拍摄范围中的亮度参数,根据所述至少三个时间点对应的亮度参数确定亮度变化趋势信息,根据所述亮度变化趋势信息以及所述至少三个时间点确定基准亮度参数,可以提高亮度变化趋势信息的准确性,以及进一步提高连续拍摄参数的准确性。In this embodiment of the present application, at least three time points are determined within a preset time interval, and the brightness parameters in the shooting range corresponding to each time point are obtained, and the brightness change trend information is determined according to the brightness parameters corresponding to the at least three time points Determining the reference brightness parameter according to the brightness change trend information and the at least three time points can improve the accuracy of the brightness change trend information and further improve the accuracy of the continuous shooting parameters.
图5为本申请实施例提供的另一种拍照优化方法的流程示意图,在上述任意实施例所提供的技术方案的基础上,对获取所述拍摄装置的拍摄范围中的亮度信息的操作进行了优化,可选地,如图5所示,该方法包括:Fig. 5 is a schematic flow chart of another photographing optimization method provided by the embodiment of the present application. On the basis of the technical solution provided by any of the above embodiments, the operation of obtaining the brightness information in the shooting range of the shooting device is carried out. Optimizing, optionally, as shown in Figure 5, the method includes:
S140、在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数。S140. Determine a shaking parameter of the photographing device when the photographing device is used for photographing.
具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners, reference may be made to relevant descriptions above, and details are not repeated here.
S141、分别获取至少两个预设坐标对应的亮度参数。S141. Obtain brightness parameters corresponding to at least two preset coordinates respectively.
其中,上述实施例中获取所述拍摄装置的拍摄范围中的亮度信息操作中的亮度信息包括预设位置的环境亮度信息,所述预设位置包括至少两个预设坐标。Wherein, the brightness information in the operation of acquiring the brightness information in the shooting range of the shooting device in the above embodiment includes ambient brightness information of a preset position, and the preset position includes at least two preset coordinates.
其中,所述拍摄范围中的预设位置为可以用于衡量拍摄范围中亮度情况的位置,预设位置可以是:在所述拍摄装置拍摄的拍摄范围生成的对应的数字图像上的预设坐标。Wherein, the preset position in the shooting range is a position that can be used to measure the brightness in the shooting range, and the preset position can be: the preset coordinates on the corresponding digital image generated in the shooting range captured by the shooting device .
所述环境亮度信息为体现所述拍摄范围的整体性亮度情况的信息;所述环境亮度信息可以是根据至少两个预设坐标对应的亮度参数所确定的。所述预设位置可以是系统预设,或者根据用户的选择进行设置。示例性地,如果所述预设位置包括两个预设坐标,两个预设坐标分别位于所述数字图像的上端和下端,而如果所述上端的预设坐标对应的亮度参数为80,而下端的亮度参数为60,则可以确定所述拍摄范围中的光源位于上端,所述拍摄范围中亮度情况包括上亮下暗,环境亮度信息包括上亮下暗的亮度情况。The ambient brightness information is information reflecting the overall brightness of the shooting range; the ambient brightness information may be determined according to brightness parameters corresponding to at least two preset coordinates. The preset location may be preset by the system, or set according to a user's choice. Exemplarily, if the preset position includes two preset coordinates, the two preset coordinates are respectively located at the upper end and the lower end of the digital image, and if the brightness parameter corresponding to the preset coordinates at the upper end is 80, and If the brightness parameter at the lower end is 60, it can be determined that the light source in the shooting range is located at the upper end, the brightness in the shooting range includes upper bright and lower dark, and the ambient brightness information includes upper bright and lower dark brightness.
根据至少两个预设坐标可以看到拍摄范围中的整体环境亮度信息,进而可以根据整体环境亮度信息确定一个更准确的连续拍摄参数。The overall ambient brightness information in the shooting range can be seen according to at least two preset coordinates, and a more accurate continuous shooting parameter can be determined according to the overall ambient brightness information.
可选地,所述拍摄范围均匀划分为至少两个区域,所述至少两个预设坐标分别平均地位于所述至少两个区域中。Optionally, the shooting range is evenly divided into at least two areas, and the at least two preset coordinates are equally located in the at least two areas.
其中,所述拍摄范围均匀划分为至少两个区域,相对应的就是在所述拍摄装置拍摄的拍摄范围生成的对应的数字图像上被均匀划分为至少两个区域,相应的至少两个预设坐标分别坐落在至少两个区域中;也就是在预设坐标的数量不小于区域的数量时,每个区域中都有至少一个的预设坐标。如此可以根据至少两个预设坐标的亮度参数确定拍摄范围的整体的环境亮度信息。Wherein, the shooting range is evenly divided into at least two areas, correspondingly, the corresponding digital image generated by the shooting range captured by the shooting device is evenly divided into at least two areas, and correspondingly at least two preset The coordinates are respectively located in at least two areas; that is, when the number of preset coordinates is not less than the number of areas, each area has at least one preset coordinate. In this way, the overall ambient brightness information of the shooting range can be determined according to the brightness parameters of at least two preset coordinates.
示例性地,如图6所示,将所述拍摄范围11均匀划分为3*3的区域,也就是总共包括9个区域,对应地,在所述拍摄装置拍摄的拍摄范围生成的对应的数字图像14上也被均匀划分为了9个区域;同时所述预设位置包括9个预设坐标15,这9个预设坐标分别设置在数字图像14中的9个区域中。通过所述9个预设坐标的亮度参数可以准确确定数字图像14的整体的环境亮度信息。其中,所述拍摄范围被划分的数量可以根据系统预设或者根据用户选择的模式进行确定,在此不作限定。Exemplarily, as shown in FIG. 6, the shooting range 11 is evenly divided into 3*3 areas, that is, a total of 9 areas are included. Correspondingly, the corresponding numbers generated in the shooting range captured by the shooting device The image 14 is also evenly divided into 9 areas; meanwhile, the preset position includes 9 preset coordinates 15 , and these 9 preset coordinates are respectively set in the 9 areas in the digital image 14 . The overall ambient brightness information of the digital image 14 can be accurately determined through the brightness parameters of the nine preset coordinates. Wherein, the number of divisions of the shooting range may be determined according to a system preset or a mode selected by a user, which is not limited herein.
可以根据所述拍摄装置的拍摄范围所形成的图像,分别确定每个预设坐标对应的亮度参数。The brightness parameter corresponding to each preset coordinate may be respectively determined according to the image formed by the shooting range of the shooting device.
所述根据所述拍摄装置的拍摄范围所形成的数字图像可以是:所述拍摄装置拍摄的拍摄范围并生成的对应的数字图像,所述数字图像可以是在拍摄装置对应的显示装置上暂时显示的预览图像,也可以是在生成后存储在拍摄装置的存储模块中的存储图像。The digital image formed according to the shooting range of the shooting device may be: a corresponding digital image generated from the shooting range captured by the shooting device, and the digital image may be temporarily displayed on a display device corresponding to the shooting device The preview image may also be a stored image stored in a storage module of the photographing device after being generated.
所生成的数字图像中包括多个像素点,以及每个像素点对应的亮度值、对应的像素值和对应的RGB值中的至少一个。可以确定预设坐标对应的像素点,并将所述像素点对应的亮度值确定为预设坐标的亮度参数;还可以根据所述像素点的像素值或RGB值确定所述预设坐标的亮度参数。The generated digital image includes a plurality of pixel points, and at least one of a brightness value corresponding to each pixel point, a corresponding pixel value and a corresponding RGB value. The pixel point corresponding to the preset coordinate can be determined, and the brightness value corresponding to the pixel point can be determined as the brightness parameter of the preset coordinate; the brightness of the preset coordinate can also be determined according to the pixel value or RGB value of the pixel point parameter.
S142、根据所述至少两个预设坐标以及对应的亮度参数确定基准亮度参数,并确定为环境亮度信息。S142. Determine a reference brightness parameter according to the at least two preset coordinates and the corresponding brightness parameter, and determine it as ambient brightness information.
其中,根据至少两个预设坐标以及其对应的亮度参数可以确定的拍摄范围光线的亮度趋势,所述基准亮度参数可以是根据所述亮度趋势所确定的中间值。Wherein, according to at least two preset coordinates and their corresponding brightness parameters, the brightness trend of light in the shooting range can be determined, and the reference brightness parameter can be an intermediate value determined according to the brightness trend.
示例性地,如果所述至少两个预设坐标所对应的亮度参数包括亮度值较高和亮度值较低的预设坐标,则表示所述拍摄范围的环境亮度信息即非如较高亮度值那么高,也非如较低亮度值那么低,则可以在较高亮度值和较低亮度值之间取中间值作为基准亮度参数,并将基准亮度参数确定环境亮度信息。所述中间值为较高亮度值和较低亮度值之间的至少一个亮度值,可以是根据预设权值、较高亮度值和较低亮度值确定基准亮度参数,作为环境亮度信息。所述预设权值可以根据所述亮度趋势确定,不同的亮度趋势对应不同的权值,可以得到准确的环境亮度信息。Exemplarily, if the brightness parameters corresponding to the at least two preset coordinates include preset coordinates with higher brightness values and lower brightness values, then the ambient brightness information representing the shooting range is not such as the higher brightness value If it is so high, it is not as low as the lower brightness value, then the middle value between the higher brightness value and the lower brightness value can be taken as the reference brightness parameter, and the reference brightness parameter can be used to determine the ambient brightness information. The intermediate value is at least one brightness value between the higher brightness value and the lower brightness value, and a reference brightness parameter may be determined according to a preset weight value, the higher brightness value, and the lower brightness value as ambient brightness information. The preset weight value can be determined according to the brightness trend, and different brightness trends correspond to different weight values, so that accurate ambient brightness information can be obtained.
S143、根据所述抖动参数和所述环境亮度信息确定所述拍摄的连续拍摄参数。S143. Determine continuous shooting parameters of the shooting according to the shaking parameter and the ambient brightness information.
其中,根据亮度信息和抖动参数结合来确定所述拍摄装置的连续拍摄参数,如果仅根据直接采集的单个坐标的亮度参数和抖动参数来确定拍摄装置的连续拍摄参数,单个坐标的亮度参数无法准确确定拍摄场景的亮度情况,可能导致所确定的连续拍摄参数不够准确,会拍摄到不清楚的照片。而所述环境亮度信息为体现所述拍摄范围的整体性亮度情况的信息;所述环境亮度信息可以是根据至少两个预设坐标对应的亮度参数所确定的,所以根据环境亮度信息和抖动参数结合来确定所述拍摄的连续拍摄参数,可以提高连续拍摄参数的准确性。Wherein, the continuous shooting parameters of the shooting device are determined according to the combination of brightness information and jitter parameters. If the continuous shooting parameters of the shooting device are determined only based on the directly collected brightness parameters and jitter parameters of a single coordinate, the brightness parameters of a single coordinate cannot be accurate. Determining the brightness of the shooting scene may cause the determined continuous shooting parameters to be inaccurate, and unclear photos may be taken. The ambient brightness information is information reflecting the overall brightness of the shooting range; the ambient brightness information may be determined according to brightness parameters corresponding to at least two preset coordinates, so according to the ambient brightness information and the shaking parameters Combined with determining the continuous shooting parameters of the shooting, the accuracy of the continuous shooting parameters can be improved.
具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners, reference may be made to relevant descriptions above, and details are not repeated here.
本申请实施例根据分别获取至少两个预设坐标对应的亮度参数,根据所述至少两个预设坐标以及对应的亮度参数确定基准亮度参数,并确定为环境亮度信息,根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数,可以根据抖动参数和环境亮度信息来确定拍摄的连续拍摄参数,以使拍摄装置根据连续拍摄参数拍摄到更优的照片。According to the embodiment of the present application, according to obtaining brightness parameters corresponding to at least two preset coordinates respectively, a reference brightness parameter is determined according to the at least two preset coordinates and corresponding brightness parameters, and determined as ambient brightness information, and according to the dithering parameters and The brightness information determines the continuous shooting parameters of the shooting, and the continuous shooting parameters of the shooting can be determined according to the shaking parameters and the ambient brightness information, so that the shooting device can take better photos according to the continuous shooting parameters.
图7为本申请实施例提供的另一种拍照优化方法的流程示意图,在上述任意实施例所提供的技术方案的基础上,对获取所述拍摄装置的拍摄范围中的亮度信息的操作进行了优化,可选地,如图7所示,该方法包括:Fig. 7 is a schematic flow chart of another photographing optimization method provided by an embodiment of the present application. On the basis of the technical solutions provided by any of the above embodiments, the operation of acquiring brightness information in the photographing range of the photographing device is carried out. Optimization, optionally, as shown in Figure 7, the method includes:
S150、在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数。S150. Determine a shaking parameter of the photographing device when photographing with the photographing device.
具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners, reference may be made to relevant descriptions above, and details are not repeated here.
S151、如果所述拍摄装置的拍摄范围中包括人脸图像,则根据所述人脸图像的位置确定预设位置。其中,所述预设位置的至少一个预设坐标位于所述人脸图像的区域内,其他预设坐标位于所述人脸图像的区域外。S151. If the photographing range of the photographing device includes a human face image, determine a preset position according to the position of the human face image. Wherein, at least one preset coordinate of the preset position is located within the area of the face image, and other preset coordinates are located outside the area of the face image.
其中,可以通过判断拍摄所述拍摄范围生成的数字图像中是否包括人脸图像,可以根据人脸识别技术确定所述数字图像中是否包括人脸图像。Wherein, by judging whether the digital image generated by shooting the shooting range includes a human face image, it may be determined according to the face recognition technology whether the digital image includes a human face image.
如果所述数字图像中包括人脸图像,那用户拍摄的照片是人物照片,而预设位置是用于衡量拍摄范围中的亮度情况的位置,所以当用户拍摄的照片是人物照片时,人脸位置的亮度情况会对整个照片的环境亮度信息影响较大,所以可以根据所述人脸图像的位置确定预设位置。If the digital image includes a face image, the photo taken by the user is a photo of a person, and the preset position is a position for measuring the brightness in the shooting range, so when the photo taken by the user is a photo of a person, the face The brightness of the location has a great influence on the ambient brightness information of the entire photo, so the preset location can be determined according to the location of the face image.
其中,如果所述拍摄装置的拍摄范围中包括人脸图像,即用户拍摄的是人物图照片时,拍摄范围中包括人脸位置和背景位置两个区域划分,所以可以将至少一个预设坐标设置在人脸图像对应的区域中,而其他预设坐标设置在人脸图像的区域外,可以对人脸区域和背景区域的亮度情况进行确定,进而可以准确得知整个拍摄范围的环境亮度信息。Wherein, if the shooting range of the shooting device includes a face image, that is, when the user takes a picture of a person, the shooting range includes two areas of the face position and the background position, so at least one preset coordinate can be set In the area corresponding to the face image, and other preset coordinates are set outside the area of the face image, the brightness of the face area and the background area can be determined, and then the ambient brightness information of the entire shooting range can be accurately obtained.
示例性地,如果根据位于人脸图像区域中的坐标,以及人脸图像区域外的坐标确定人脸图像的区域的亮度低于人脸图像外的区域的亮度,则可以对应提高拍摄曝光时间,以便可以提高拍摄后形成的数字图像中的人脸图像区域的亮度。For example, if it is determined according to the coordinates located in the face image area and the coordinates outside the face image area that the brightness of the area of the face image is lower than the brightness of the area outside the face image, the shooting exposure time can be correspondingly increased, In order to improve the brightness of the face image area in the digital image formed after shooting.
S152、分别获取至少两个预设坐标对应的亮度参数。S152. Obtain brightness parameters corresponding to at least two preset coordinates respectively.
S153、根据所述至少两个预设坐标以及对应的亮度参数确定基准亮度参数,并确定为环境亮度信息。S153. Determine a reference brightness parameter according to the at least two preset coordinates and the corresponding brightness parameter, and determine it as ambient brightness information.
S154、根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。S154. Determine continuous shooting parameters of the shooting according to the shaking parameter and the brightness information.
上述操作的具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners of the above operations, reference may be made to the relevant description above, and details are not repeated here.
本申请实施例通过判断所述拍摄装置的拍摄范围中是否包括人脸图像,并根据人脸图像的位置确定预设位置,可以进一步提高环境亮度信息的准确性,并根据环境亮度信息所确定的拍摄的连续拍摄参数可以优化拍摄的照片。In the embodiment of the present application, by judging whether the shooting range of the shooting device includes a face image, and determining the preset position according to the position of the face image, the accuracy of the ambient brightness information can be further improved, and The continuous shooting parameters of the shooting can optimize the captured pictures.
图8为本申请实施例提供的另一种拍照优化方法的流程示意图,在上述任意实施例所提供的技术方案的基础上,可选地,如图8所示,该方法包括:Fig. 8 is a schematic flow chart of another photographing optimization method provided by an embodiment of the present application. On the basis of the technical solution provided by any of the above embodiments, optionally, as shown in Fig. 8, the method includes:
S160、在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数。S160. Determine a shaking parameter of the photographing device when photographing with the photographing device.
S161、获取所述拍摄装置的拍摄范围中的亮度信息。S161. Acquire brightness information in a shooting range of the shooting device.
S162、在所述拍摄装置的拍摄范围聚焦区域中的物体发生相对移动时,获取所述物体的移动参数;其中,所述聚焦区域中包括至少两个物体,所述相对移动为物体之间发生的相对移动。S162. Acquire the movement parameters of the object when the object in the focus area of the shooting range of the photographing device moves relatively; wherein, the focus area includes at least two objects, and the relative movement occurs between the objects relative movement.
其中,所述拍摄装置在进行拍摄时,因为拍摄场景为三维空间,拍摄范围中的不同物体和拍摄装置的距离有所不同,所以拍摄装置一般会有一个聚焦区域,以便使聚焦区域中的物体能够被清楚地拍下来。所以聚焦区域中的物体一般是用户想要拍摄的照片中的主要物体。所述聚焦区域可以是拍摄装置自动识别并系统预设的,也可以是用户主动设置的。Wherein, when the shooting device is shooting, because the shooting scene is a three-dimensional space, the distance between different objects in the shooting range and the shooting device is different, so the shooting device generally has a focus area, so that the objects in the focus area can be clearly photographed. Therefore, the object in the focus area is generally the main object in the photo that the user wants to take. The focus area may be automatically identified by the photographing device and preset by the system, or may be actively set by the user.
所述聚焦区域中的物体如果在拍摄时候发生了移动,也可能会导致拍摄的照片中物体模糊的问题,所以进一步判断拍摄范围的聚焦区域中的物体是否移动,以便可以根据物体的移动参数进一步调整连续拍摄参数。If the object in the focus area moves during shooting, it may also cause blurred objects in the captured photos, so it is further judged whether the object in the focus area of the shooting range moves, so that further Adjust continuous shooting parameters.
一般聚焦区域中包括至少两个物体,例如被拍摄主体和背景。如果被摄主体主观发生了移动,则被摄主体和背景之间存在相对移动。而如果是拍摄装置发生了移动从而导致聚焦区域中的物体在镜头中发生了移动时,被摄主体和背景会同时发生移动。Generally, at least two objects are included in the focus area, such as the subject and the background. If the subject moves subjectively, there is relative movement between the subject and the background. And if the shooting device moves so that the object in the focus area moves in the lens, the subject and the background will move at the same time.
所以可以根据聚焦区域中的物体是否发生了相对移动来确定聚焦区域中的物体是否主观发生了移动,进而可以确定所述物体的移动参数。所述移动参数为体现聚焦区域中的物体发生的移动的参数,可以是物体的移动速度、移动距离和移动加速度中至少一个。Therefore, it can be determined whether the object in the focus area has moved subjectively according to whether the object in the focus area has moved relatively, and then the movement parameter of the object can be determined. The moving parameter is a parameter reflecting the movement of the object in the focus area, and may be at least one of the moving speed, moving distance and moving acceleration of the object.
可以根据预设的连拍参数确定表、所述抖动参数、所述物体的移动参数和所述亮度变化信息确定所述拍摄的连续拍摄参数。所述预设的连拍参数确定表中包括了抖动参数、物体的移动参数、亮度变化信息和连续拍摄参数的映射关系;所以可以根据抖动参数、物体的移动参数和亮度变化信息确定对应的连续拍摄参数,作为拍摄装置进行拍摄的连续拍摄参数。The continuous shooting parameters of the shooting may be determined according to a preset continuous shooting parameter determination table, the shaking parameters, the moving parameters of the object, and the brightness change information. The preset continuous shooting parameter determination table includes the mapping relationship between shaking parameters, object movement parameters, brightness change information and continuous shooting parameters; so the corresponding continuous shooting parameters can be determined according to the shaking parameters, object movement parameters and brightness change information. The shooting parameter is used as a continuous shooting parameter for shooting by the shooting device.
需要说明的是,操作S162的执行顺序不限于附图中所示,操作S162只需要在操作S163之前执行即可。It should be noted that the execution order of operation S162 is not limited to what is shown in the figure, and operation S162 only needs to be executed before operation S163.
S163、根据所述抖动参数确定基准参数;根据所述物体的移动参数和所述亮度信息调整所述基准参数,得到所述拍摄的连续拍摄参数。S163. Determine a reference parameter according to the shake parameter; adjust the reference parameter according to the movement parameter of the object and the brightness information to obtain continuous shooting parameters of the shooting.
其中,因为拍摄装置的抖动参数决定了拍摄装置所拍摄的图像的基准的效果。示例性地,如果所述拍摄装置抖动较大,即使拍摄范围中的物体没有发生移动,以及具有良好稳定的光线,也可能拍摄到不清楚的照片。所以首先根据所述抖动参数确定基准参数,进而根据所述物体的移动参数和所述亮度变化信息调整所述基准参数,可以提高连续拍摄参数的准确性。Wherein, because the shake parameter of the photographing device determines the reference effect of the image captured by the photographing device. For example, if the photographing device shakes a lot, even if the objects in the photographing range do not move and there is good and stable light, unclear pictures may be taken. Therefore, firstly, the reference parameter is determined according to the shake parameter, and then the reference parameter is adjusted according to the movement parameter of the object and the brightness change information, which can improve the accuracy of the continuous shooting parameter.
本申请实施例根据在所述拍摄装置的拍摄范围聚焦区域中的物体发生相对移动时,获取所述物体的移动参数,并根据所述抖动参数、所述物体的移动参数和所述亮度变化信息确定所述拍摄的连续拍摄参数,可以根据拍摄范围的聚焦区域中的物体的移动参数提高连续拍摄参数的准确性。According to the embodiment of the present application, when the object in the focus area of the shooting range of the shooting device moves relatively, the movement parameter of the object is obtained, and according to the shaking parameter, the movement parameter of the object and the brightness change information Determining the continuous shooting parameters of the shooting can improve the accuracy of the continuous shooting parameters according to the movement parameters of the objects in the focus area of the shooting range.
图9为本申请实施例提供的一种拍照优化装置的结构框图,该装置可以执行拍照优化方法,如图9所示,该装置包括:FIG. 9 is a structural block diagram of a photographing optimization device provided in an embodiment of the present application. The device can execute a photographing optimization method. As shown in FIG. 9 , the device includes:
抖动参数确定模块210,用于在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数;A shaking parameter determining module 210, configured to determine the shaking parameters of the shooting device when shooting through the shooting device;
亮度获取模块211,用于获取所述拍摄装置的拍摄范围中的亮度信息;A brightness acquisition module 211, configured to acquire brightness information in the shooting range of the shooting device;
参数确定模块212,用于根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。A parameter determining module 212, configured to determine continuous shooting parameters of the shooting according to the shaking parameters and the brightness information.
本申请实施例中提供的一种拍照优化装置,通过在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数;获取所述拍摄装置的拍摄范围中的亮度信息;根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。通过采用上述技术方案,可以根据抖动参数和亮度变化信息来确定拍摄的连续拍摄参数,以使拍摄装置根据连续拍摄参数能够拍摄到更优的照片。A photographing optimization device provided in an embodiment of the present application is determined by determining the shake parameter of the photographing device when photographing through the photographing device; acquiring brightness information in the photographing range of the photographing device; according to the shake parameter and The brightness information determines continuous shooting parameters of the shooting. By adopting the above technical solution, the continuous shooting parameters for shooting can be determined according to the shaking parameters and the brightness change information, so that the shooting device can take better photos according to the continuous shooting parameters.
可选地,所述亮度信息包括亮度变化信息;相应地,亮度获取模块具体包括:Optionally, the brightness information includes brightness change information; correspondingly, the brightness acquisition module specifically includes:
时间点模块,用于在预设时间区间内确定预设数量的时间点,并获取每个时间点对应的拍摄范围中的亮度参数;A time point module, configured to determine a preset number of time points within a preset time interval, and obtain brightness parameters in the shooting range corresponding to each time point;
时间点亮度模块,用于根据所述预设数量的时间点以及对应的亮度参数确定亮度变化信息。A time point brightness module, configured to determine brightness change information according to the preset number of time points and corresponding brightness parameters.
可选地,所述预设数量为至少三个,所述亮度变化信息包括亮度变化趋势信息;Optionally, the preset number is at least three, and the brightness change information includes brightness change trend information;
相应地,时间点亮度模块具体用于:Correspondingly, the point-in-time brightness module is specifically used for:
根据所述至少三个时间点对应的亮度参数确定亮度变化趋势信息;Determine brightness change trend information according to the brightness parameters corresponding to the at least three time points;
根据所述亮度变化趋势信息以及所述至少三个时间点对应的亮度参数确定基准亮度参数;determining a reference brightness parameter according to the brightness change trend information and the brightness parameters corresponding to the at least three time points;
相应地,参数确定模块具体用于:Accordingly, the parameter determination module is specifically used for:
根据所述抖动参数和所述基准亮度参数确定所述拍摄的连续拍摄参数。A continuous shooting parameter of the shooting is determined according to the shaking parameter and the reference brightness parameter.
可选地,所述亮度信息包括预设位置的环境亮度信息,所述预设位置包括至少两个预设坐标;Optionally, the brightness information includes ambient brightness information at a preset location, and the preset location includes at least two preset coordinates;
相应地,亮度获取模块具体包括:Correspondingly, the brightness acquisition module specifically includes:
坐标亮度获取模块,用于分别获取至少两个预设坐标对应的亮度参数;A coordinate brightness acquisition module, configured to respectively acquire brightness parameters corresponding to at least two preset coordinates;
环境亮度确定模块,用于根据所述至少两个预设坐标以及对应的亮度参数确定基准亮度参数,并确定为环境亮度信息。The ambient brightness determination module is configured to determine a reference brightness parameter according to the at least two preset coordinates and corresponding brightness parameters, and determine it as ambient brightness information.
可选地,还包括:Optionally, also include:
人脸图像模块,用于获取所述拍摄装置的拍摄范围中的亮度信息之前,如果所述拍摄装置的拍摄范围中包括人脸图像,则根据所述人脸图像的位置确定预设位置;其中,所述预设位置的至少一个预设坐标位于所述人脸图像的区域内,其他预设坐标位于所述人脸图像的区域外。The face image module is used to determine the preset position according to the position of the face image if the face image is included in the shooting range of the shooting device before acquiring the brightness information in the shooting range of the shooting device; wherein , at least one preset coordinate of the preset position is located within the area of the face image, and other preset coordinates are located outside the area of the face image.
可选地,所述拍摄范围均匀划分为至少两个区域,所述至少两个预设坐标分别平均地位于所述至少两个区域中。Optionally, the shooting range is evenly divided into at least two areas, and the at least two preset coordinates are equally located in the at least two areas.
可选地,所述连续拍摄参数包括拍摄数量和曝光时间;所述连续拍摄参数用于使所述拍摄装置在拍摄时间内根据所述曝光时间拍摄所述拍摄数量的图像,并根据所述采集的拍摄数量的图像合成目标图像。Optionally, the continuous shooting parameters include the number of shots and exposure time; the continuous shooting parameters are used to make the shooting device take the number of images according to the exposure time within the shooting time, and according to the collected The target image is synthesized from the captured number of images.
可选地,还包括:Optionally, also include:
相对移动模块,用于根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数之前,在所述拍摄装置的拍摄范围聚焦区域中的物体发生相对移动时,获取所述物体的移动参数;其中,所述聚焦区域中包括至少两个物体,所述相对移动为物体之间发生的相对移动;A relative movement module, configured to obtain the movement of the object when the object in the focus area of the shooting range of the shooting device moves relatively before determining the continuous shooting parameters of the shooting according to the shaking parameter and the brightness information parameter; wherein, at least two objects are included in the focus area, and the relative movement is the relative movement that occurs between the objects;
相应地,参数确定模块具体用于:Accordingly, the parameter determination module is specifically used for:
根据所述抖动参数确定基准参数;determining a reference parameter according to the jitter parameter;
根据所述物体的移动参数和所述亮度信息调整所述基准参数,得到所述拍摄的连续拍摄参数。The reference parameter is adjusted according to the movement parameter of the object and the brightness information to obtain continuous shooting parameters of the shooting.
本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的拍照优化操作,还可以执行本申请任意实施例所提供的拍照优化方法中的相关操作。A storage medium containing computer-executable instructions provided by an embodiment of the present application, the computer-executable instructions are not limited to the photographing optimization operations as described above, and can also perform related operations in the photographing optimization method provided in any embodiment of the present application. operate.
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行拍照优化方法,该方法包括:The embodiment of the present application also provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute a photographing optimization method when executed by a computer processor. The method includes:
在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数;When shooting through the shooting device, determining the shaking parameters of the shooting device;
获取所述拍摄装置的拍摄范围中的亮度信息;acquiring brightness information in the shooting range of the shooting device;
根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。A continuous shooting parameter of the shooting is determined according to the shake parameter and the brightness information.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media such as CD-ROMs, floppy disks or tape drives; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; non-volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. Also, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems connected by a network. The storage medium may store program instructions (eg embodied as computer programs) executable by one or more processors.
本申请实施例提供了一种终端设备,该终端设备中可集成本申请实施例提供的拍照优化装置。An embodiment of the present application provides a terminal device, in which the photographing optimization device provided in the embodiment of the present application can be integrated.
图10为本申请实施例提供的一种终端设备的结构示意图,本申请实施例提供了一种终端设备30,包括存储器31,处理器32及存储在存储器31上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现上述实施例所述的拍照优化方法。本申请实施例提供的终端设备,可以根据拍摄环境的不同来对终端设备的拍照进行优化。FIG. 10 is a schematic structural diagram of a terminal device provided by the embodiment of the present application. The embodiment of the present application provides a terminal device 30, including a memory 31, a processor 32, and a computer stored on the memory 31 and capable of running on the processor. program, when the processor executes the computer program, the photographing optimization method described in the foregoing embodiments is implemented. The terminal device provided in the embodiment of the present application can optimize the photographing of the terminal device according to different shooting environments.
图11为本申请实施例提供的一种终端设备的结构示意图。如图11所示,该终端设备可以包括:壳体(图中未示出)、触摸屏(图中未示出)、触摸按键(图中未示出)、存储器301、中央处理器(Central Processing Unit,CPU)302(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU302和所述存储器301设置在所述电路板上;所述电源电路,用于为所述终端设备的各个电路或器件供电;所述存储器301,用于存储可执行程序代码;所述CPU302通过读取所述存储器301中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:FIG. 11 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. As shown in Figure 11, the terminal device may include: a housing (not shown in the figure), a touch screen (not shown in the figure), touch keys (not shown in the figure), a memory 301, a central processing unit (Central Processing Unit, CPU) 302 (also known as processor, hereinafter referred to as CPU), a circuit board (not shown in the figure) and a power circuit (not shown in the figure). The circuit board is placed inside the space surrounded by the housing; the CPU 302 and the memory 301 are arranged on the circuit board; the power supply circuit is used to supply power to each circuit or device of the terminal device The memory 301 is used to store executable program codes; the CPU302 executes a computer program corresponding to the executable program codes by reading the executable program codes stored in the memory 301, to achieve the following steps:
在通过拍摄装置进行拍摄时,确定所述拍摄装置的抖动参数;When shooting through the shooting device, determining the shaking parameters of the shooting device;
获取所述拍摄装置的拍摄范围中的亮度信息;acquiring brightness information in the shooting range of the shooting device;
根据所述抖动参数和所述亮度信息确定所述拍摄的连续拍摄参数。A continuous shooting parameter of the shooting is determined according to the shake parameter and the brightness information.
所述终端设备还包括:外设接口303、RF(Radio Frequency,射频)电路305、音频电路306、扬声器311、电源管理芯片308、输入/输出(I/O)子系统309、触摸屏312、其他输入/控制设备310以及外部端口304,这些部件通过一个或多个通信总线或信号线307来通信。The terminal device also includes: peripheral interface 303, RF (Radio Frequency, radio frequency) circuit 305, audio circuit 306, speaker 311, power management chip 308, input/output (I/O) subsystem 309, touch screen 312, other Input/control devices 310 and external ports 304 , these components communicate via one or more communication buses or signal lines 307 .
应该理解的是,图示终端设备300仅仅是终端设备的一个范例,并且终端设备300可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated terminal device 300 is only an example of a terminal device, and the terminal device 300 may have more or fewer components than those shown in the figure, and two or more components may be combined, Or can have a different component configuration. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的用于实现拍照优化的终端设备进行详细的描述,该终端设备以手机为例。The following describes in detail the terminal device provided in this embodiment for realizing photo-taking optimization. The terminal device takes a mobile phone as an example.
存储器301,所述存储器301可以被CPU302、外设接口303等访问,所述存储器301可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 301, the memory 301 can be accessed by the CPU 302, the peripheral interface 303, etc., the memory 301 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.
外设接口303,所述外设接口303可以将设备的输入和输出外设连接到CPU302和存储器301。Peripheral interface 303 , which can connect the input and output peripherals of the device to CPU 302 and memory 301 .
I/O子系统309,所述I/O子系统309可以将设备上的输入输出外设,例如触摸屏312和其他输入/控制设备310,连接到外设接口303。I/O子系统309可以包括显示控制器3091和用于控制其他输入/控制设备310的一个或多个输入控制器3092。其中,一个或多个输入控制器3092从其他输入/控制设备310接收电信号或者向其他输入/控制设备310发送电信号,其他输入/控制设备310可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器3092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 309 , the I/O subsystem 309 can connect input and output peripherals on the device, such as a touch screen 312 and other input/control devices 310 , to the peripheral interface 303 . I/O subsystem 309 may include a display controller 3091 and one or more input controllers 3092 for controlling other input/control devices 310 . Among them, one or more input controllers 3092 receive electrical signals from or send electrical signals to other input/control devices 310, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It should be noted that the input controller 3092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏312,所述触摸屏312是用户终端设备与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch screen 312, the touch screen 312 is an input interface and an output interface between the user terminal device and the user, and displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like.
I/O子系统309中的显示控制器3091从触摸屏312接收电信号或者向触摸屏312发送电信号。触摸屏312检测触摸屏上的接触,显示控制器3091将检测到的接触转换为与显示在触摸屏312上的用户界面对象的交互,即实现人机交互,显示在触摸屏312上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 3091 in the I/O subsystem 309 receives electrical signals from the touch screen 312 or sends electrical signals to the touch screen 312 . The touch screen 312 detects the contact on the touch screen, and the display controller 3091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 312, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 312 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touchscreen.
RF电路305,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路305接收并发送RF信号,RF信号也称为电磁信号,RF电路305将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路305可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 305 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuit 305 receives and sends RF signals, which are also called electromagnetic signals, and the RF circuit 305 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 305 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, Codec) Chipset, Subscriber Identity Module (Subscriber Identity Module, SIM) and so on.
音频电路306,主要用于从外设接口303接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器311。The audio circuit 306 is mainly used to receive audio data from the peripheral interface 303 , convert the audio data into electrical signals, and send the electrical signals to the speaker 311 .
扬声器311,用于将手机通过RF电路305从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 311 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 305 into sound and play the sound to the user.
电源管理芯片308,用于为CPU302、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 308 is used for power supply and power management for the hardware connected to the CPU 302 , the I/O subsystem and the peripheral interface.
本申请实施例提供的终端设备,可以根据拍摄环境的不同来对终端设备的拍照进行优化。The terminal device provided in the embodiment of the present application can optimize the photographing of the terminal device according to different shooting environments.
上述实施例中提供的拍照优化装置、存储介质及终端设备可执行本申请任意实施例所提供的拍照优化方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的拍照优化方法。The photographing optimization device, storage medium, and terminal device provided in the above embodiments can execute the photographing optimization method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the above embodiments, refer to the photographing optimization method provided in any embodiment of the present application.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments and technical principles used in this application. 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, and the present application The scope is determined by the scope of the appended claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810935296.4A CN108683857A (en) | 2018-08-16 | 2018-08-16 | Photographing optimization method and device, storage medium and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810935296.4A CN108683857A (en) | 2018-08-16 | 2018-08-16 | Photographing optimization method and device, storage medium and terminal equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108683857A true CN108683857A (en) | 2018-10-19 |
Family
ID=63816301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810935296.4A Pending CN108683857A (en) | 2018-08-16 | 2018-08-16 | Photographing optimization method and device, storage medium and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108683857A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218620A (en) * | 2018-10-23 | 2019-01-15 | Oppo广东移动通信有限公司 | Photographing method and device based on ambient brightness, storage medium and mobile terminal |
CN113411505A (en) * | 2021-08-19 | 2021-09-17 | 深圳康易世佳科技有限公司 | Photographing control method and device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101031033A (en) * | 2006-03-03 | 2007-09-05 | 奥林巴斯映像株式会社 | Imaging apparatus and imaging method |
CN101035205A (en) * | 2006-03-10 | 2007-09-12 | 富士胶片株式会社 | Digital imaging apparatus with camera shake compensation and adaptive sensitivity switching function |
CN102342090A (en) * | 2009-03-02 | 2012-02-01 | 松下电器产业株式会社 | Image capture device, operator monitoring device, method and program for measuring distance to face |
US9307148B1 (en) * | 2013-05-15 | 2016-04-05 | Amazon Technologies, Inc. | Video enhancement techniques |
CN106257917A (en) * | 2015-06-18 | 2016-12-28 | 奥林巴斯株式会社 | Exposure-control device and exposal control method |
CN106375676A (en) * | 2016-09-20 | 2017-02-01 | 广东欧珀移动通信有限公司 | Camera control method and device for terminal equipment, and terminal equipment |
-
2018
- 2018-08-16 CN CN201810935296.4A patent/CN108683857A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101031033A (en) * | 2006-03-03 | 2007-09-05 | 奥林巴斯映像株式会社 | Imaging apparatus and imaging method |
CN101035205A (en) * | 2006-03-10 | 2007-09-12 | 富士胶片株式会社 | Digital imaging apparatus with camera shake compensation and adaptive sensitivity switching function |
CN102342090A (en) * | 2009-03-02 | 2012-02-01 | 松下电器产业株式会社 | Image capture device, operator monitoring device, method and program for measuring distance to face |
US9307148B1 (en) * | 2013-05-15 | 2016-04-05 | Amazon Technologies, Inc. | Video enhancement techniques |
CN106257917A (en) * | 2015-06-18 | 2016-12-28 | 奥林巴斯株式会社 | Exposure-control device and exposal control method |
CN106375676A (en) * | 2016-09-20 | 2017-02-01 | 广东欧珀移动通信有限公司 | Camera control method and device for terminal equipment, and terminal equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218620A (en) * | 2018-10-23 | 2019-01-15 | Oppo广东移动通信有限公司 | Photographing method and device based on ambient brightness, storage medium and mobile terminal |
CN113411505A (en) * | 2021-08-19 | 2021-09-17 | 深圳康易世佳科技有限公司 | Photographing control method and device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109547701B (en) | Image capturing method, device, storage medium and electronic device | |
CN109523485B (en) | Image color correction method, device, storage medium and mobile terminal | |
CN109167931B (en) | Image processing method, device, storage medium and mobile terminal | |
CN109496425B (en) | Photographing method, photographing device and mobile terminal | |
WO2019109801A1 (en) | Method and device for adjusting photographing parameter, storage medium, and mobile terminal | |
WO2020103526A1 (en) | Photographing method and device, storage medium and terminal device | |
US12069369B2 (en) | Electronic device for stabilizing image and method for operating same | |
CN108566516B (en) | Image processing method, device, storage medium and mobile terminal | |
CN109671106B (en) | Image processing method, device and equipment | |
KR102661185B1 (en) | Electronic device and method for obtaining images | |
CN109040589B (en) | Image processing method, device, storage medium and electronic device | |
CN109040524B (en) | Artifact removal method, device, storage medium and terminal | |
CN112602111A (en) | Electronic apparatus that blurs image obtained by combining a plurality of images based on depth information and method of driving the same | |
CN107395998A (en) | A kind of image capturing method and mobile terminal | |
CN109040523B (en) | Artifact eliminating method and device, storage medium and terminal | |
CN109361794B (en) | Zoom control method and device of mobile terminal, storage medium and mobile terminal | |
CN108683858A (en) | Photographing optimization method and device, storage medium and terminal equipment | |
CN108683859A (en) | Photographing optimization method and device, storage medium and terminal equipment | |
CN108650457A (en) | Automatic photographing method and device, storage medium and mobile terminal | |
CN105915815A (en) | Method and device for shooting based on mobile device, and mobile device | |
CN108551552A (en) | Image processing method, device, storage medium and mobile terminal | |
CN109714539B (en) | Image acquisition method and device based on gesture recognition and electronic equipment | |
CN112669231B (en) | Image processing method, training method, device and medium of image processing model | |
CN105391940A (en) | Image recommendation method and apparatus | |
CN108683857A (en) | Photographing optimization method and device, storage medium and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181019 |