WO2016184060A1 - 终端的拍照方法及装置 - Google Patents

终端的拍照方法及装置 Download PDF

Info

Publication number
WO2016184060A1
WO2016184060A1 PCT/CN2015/094830 CN2015094830W WO2016184060A1 WO 2016184060 A1 WO2016184060 A1 WO 2016184060A1 CN 2015094830 W CN2015094830 W CN 2015094830W WO 2016184060 A1 WO2016184060 A1 WO 2016184060A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
jitter
jitter information
information
time period
Prior art date
Application number
PCT/CN2015/094830
Other languages
English (en)
French (fr)
Inventor
雷剑
徐峰
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016184060A1 publication Critical patent/WO2016184060A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6811Motion detection based on the image signal

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for photographing a terminal.
  • the first one is to configure the camera with hardware anti-shake function, and the anti-shake device in the camera module to improve the lens jitter problem; the second is By increasing the gain setting of the imaging sensor, the shutter time of shooting is shortened, thereby reducing jitter.
  • the camera module with hardware anti-shake function is very expensive, and the physical size is usually large, which will affect the hardware cost and structural design of the terminal;
  • the second anti-shake technology The gain of the large imaging sensor, while shortening the shutter time, also leads to an increase in imaging noise, which has a significant effect on the imaging effect. Therefore, the anti-shake function of the terminal photographing in the related art is limited, and thus the user's photographing experience is poor.
  • the anti-shake function of the terminal to realize photographing is high in cost, and the problem of poor photographing experience of the user has not proposed an effective solution at present.
  • the invention provides a method and a device for photographing a terminal, which are arranged to solve the problem that the anti-shake function of the terminal to achieve photographing is high in cost and the photographing experience of the user is poor.
  • a method for photographing a terminal including: acquiring a plurality of first jitter information of a terminal and imaging data corresponding to the plurality of first jitter information in a predetermined time period; The first jitter information obtains first jitter information with the smallest jitter; and outputs the image data corresponding to the smallest first jitter information.
  • the first jitter information includes at least one of the following: an acceleration of the terminal, the magnitude of the acceleration is proportional to the jitter of the terminal; the rotational acceleration of the terminal, the magnitude of the rotational acceleration is proportional to the jitter of the terminal;
  • the contrast of the picture to be captured, the contrast level is inversely proportional to the jitter of the terminal.
  • the second jitter information is determined by acquiring the second jitter information of the terminal within a predetermined time period, and determining that the second jitter information is the first jitter if the second jitter information exceeds the predetermined threshold. information.
  • acquiring the second jitter information of the terminal in the predetermined time period includes at least one of: acquiring the jitter information by the sensor of the terminal in the predetermined time period; or waiting for the current situation of the terminal within the predetermined time period
  • the motion vectors of the plurality of regions of the captured picture are averaged to obtain second jitter information.
  • the method before acquiring the plurality of first jitter information of the terminal and the imaging data corresponding to the plurality of first jitter information in the predetermined time period, the method further includes: receiving an instruction to enable the anti-shake shooting optimization function of the terminal .
  • a photographing apparatus for a terminal comprising: an obtaining module, configured to acquire a plurality of first jitter information of the terminal and corresponding to the plurality of first jitter information within a predetermined time period
  • the imaging module is configured to compare the plurality of first jitter information to obtain first jitter information with minimum jitter; and the output module is configured to output imaging data corresponding to the first jitter information that is the smallest.
  • the first jitter information includes at least one of the following: an acceleration of the terminal, the magnitude of the acceleration is proportional to the jitter of the terminal; the rotational acceleration of the terminal, the magnitude of the rotational acceleration is proportional to the jitter of the terminal;
  • the contrast of the picture to be captured, the contrast level is inversely proportional to the jitter of the terminal.
  • the first acquiring module is further configured to acquire second jitter information of the terminal within a predetermined time period; and determine that the second jitter information is first when the second jitter information exceeds a predetermined threshold Jitter information.
  • the acquiring module includes: a first acquiring unit, configured to acquire the jitter information by using a sensor of the terminal within a predetermined time period; and the second acquiring unit is configured to view the current to be photographed of the terminal within a predetermined time period.
  • the motion vectors of the plurality of regions of the picture are averaged to obtain second jitter information.
  • the device further includes: a receiving module, configured to receive the anti-shake of the open terminal before acquiring the plurality of first jitter information of the terminal and the imaging data corresponding to the plurality of first jitter information within a predetermined time period Shoot the instructions for the optimization function.
  • a receiving module configured to receive the anti-shake of the open terminal before acquiring the plurality of first jitter information of the terminal and the imaging data corresponding to the plurality of first jitter information within a predetermined time period Shoot the instructions for the optimization function.
  • the imaging data corresponding to the first jitter information solves the problem that the anti-shake function of the terminal to achieve photographing is high in the related art, and the user takes a photo experience.
  • the problem of the degree difference improves the imaging effect of the terminal and improves the user's photographing experience.
  • FIG. 1 is a flowchart 1 of a method for photographing a terminal according to an embodiment of the present invention
  • FIG. 2 is a second flowchart of a method for photographing a terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of parameter setting of an anti-shake preferred function of a preferred embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a method for acquiring jitter information according to a preferred embodiment of the present invention.
  • FIG. 5 is a flowchart of a photographing method of a terminal according to a preferred embodiment of the present invention.
  • FIG. 6 is a structural block diagram 1 of a photographing apparatus of a terminal according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram 2 of a photographing apparatus of a terminal according to an embodiment of the present invention.
  • Figure 8 is a block diagram showing the structure of a photographing apparatus in accordance with a preferred embodiment of the present invention.
  • FIG. 1 is a flowchart 1 of a method for photographing a terminal according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 Acquire a plurality of first jitter information of the terminal and imaging data corresponding to the plurality of first jitter information in a predetermined time period;
  • Step S104 comparing a plurality of first jitter information to obtain first jitter information with minimum jitter
  • Step S106 output imaging data corresponding to the smallest first jitter information.
  • the imaging data corresponding to the first jitter information solves the problem that the anti-shake function of the terminal to achieve photographing is high in the related art, and the user takes a photo experience.
  • the problem of the degree difference improves the imaging effect of the terminal and improves the user's photographing experience.
  • the predetermined time period may be an anti-shake delay, and the predetermined time period may be selected by the internal setting of the terminal, or may be set by the user according to his own needs, or may be selected in combination.
  • three options can be preset in the terminal: a 0.5 second option, a 1 second option, and a 2 second option. The user can select a predetermined time period of 0.5 seconds, 1 second option, or 2 seconds according to his or her own needs. Option.
  • the first jitter information may include at least one of the following: an acceleration of the terminal, a rotational acceleration of the terminal, and a contrast of a current picture to be captured of the terminal; wherein the magnitude of the acceleration is proportional to the jitter of the terminal, that is, the acceleration of the terminal is greater.
  • the jitter of the terminal is large, and the jitter is small when the acceleration is small;
  • the magnitude of the rotational acceleration is proportional to the jitter of the terminal, that is, the rotational acceleration of the terminal is large, the jitter of the terminal is large, and the jitter is small, the jitter is small;
  • the contrast is inversely proportional to the jitter of the terminal. That is, the contrast of the current shooting picture is high, the jitter of the terminal is small, and the contrast is low, and the jitter is large.
  • the first jitter information may be determined in the following manner.
  • FIG. 2 is a flowchart 2 of determining the first jitter information according to the embodiment of the present invention. As shown in FIG. 2, the method includes:
  • Step S202 acquiring second jitter information of the terminal within a predetermined time period
  • Step S204 if the second jitter information exceeds a predetermined threshold, determining that the second jitter information is the first jitter information.
  • the first jitter information is one type of second jitter information, that is, the second jitter information exceeding a predetermined threshold may be referred to as first jitter information, and thus, the content of the second jitter information and the foregoing The content contained in a jitter message should be essentially the same.
  • the predetermined threshold may be set in advance.
  • the predetermined threshold may be set to three large, medium, and small gears, and the user may select different gears according to different needs.
  • step S202 may include at least one of: acquiring jitter information by a sensor of the terminal within a predetermined time period; or motion vector of multiple regions of the current picture to be captured of the terminal within a predetermined time period The averaging process is performed to obtain second jitter information.
  • the sensor may be an acceleration sensor or a gyroscope.
  • the jitter information is acceleration
  • the sensor is an acceleration sensor.
  • the jitter information is a rotational acceleration
  • the sensor is a gyroscope;
  • the motion vector may be calculated by the following method. However, it is not limited to this: the current shooting picture is divided into 8*8 block areas, each block takes 4 blocks, a total of 16 areas, first grayscale projection, then calculate the contrast mean value, and use this value as the jitter information.
  • the reference value, the high contrast is considered to be small jitter, and the low contrast is considered to be large jitter.
  • the method before acquiring the plurality of first jitter information of the terminal and the imaging data corresponding to the plurality of first jitter information in the predetermined time period, the method further includes: receiving an instruction to enable the anti-shake shooting optimization function of the terminal .
  • the anti-shake shooting optimization function is not turned on, the jitter information of the terminal is not monitored during shooting.
  • the present invention provides a preferred method for photographing a terminal, the method comprising the following steps:
  • the system continuously monitors the jitter state of the mobile phone (ie, the jitter information in the above embodiment), and when the mobile phone jitter state is less than the threshold set by the user, the camera directly outputs the photo when the time limit is set.
  • the imaging data output at the minimum jitter state during the monitoring period is selected.
  • the above preferred method embodiment may include the following steps:
  • FIG. 3 is a schematic diagram of parameter setting of the anti-shake preference function according to a preferred embodiment of the present invention. As shown in FIG. 3, the method includes:
  • Step S3011 Setting whether to enable the anti-shake optimization function
  • Step S3012 setting a jitter threshold (available in three options: large, medium, and small for the user to select, the default is medium);
  • Step S3013 setting an anti-shake delay (available for 0.5 seconds, 1 second, 2 seconds, etc., for the user to select, the default is 1 second);
  • Step S302 monitoring mobile phone jitter information
  • the camera shake information is not monitored while shooting.
  • Step S3021 When the user sets the optimization function in the setting unit, the mobile phone shaking information is monitored and recorded in the setting period after the user presses the camera button.
  • 4 is a schematic diagram of a method for acquiring jitter information according to a preferred embodiment of the present invention. As shown in FIG. 4, the jitter information may be obtained through hardware, or may be obtained through software.
  • the sensor provides the jitter information, that is, the jitter information is obtained by hardware. If the mobile phone is not equipped with a gyroscope/acceleration sensor, the jitter information is obtained by averaging the motion vectors in the four corner regions of the picture, that is, the jitter information is obtained by software.
  • the calculation of the motion vector can adopt the following methods, but it is not limited to the method: the screen is divided into 8*8 block regions, and each block has 4 blocks, a total of 16 regions, first grayscale projection, and then calculate the contrast mean value. This value is used as a reference value for the jitter information. If the contrast is high, the jitter is considered to be small, and when the contrast is low, the jitter is considered to be large.
  • Step S303 Perform anti-shake shooting related processing
  • FIG. 5 is a flowchart of a method for photographing a terminal according to a preferred embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
  • Step S3031 After the user presses the camera button, the current cell phone jitter information (ie, the second jitter information in the above embodiment) is started.
  • Step S3032 If the jitter information is smaller than the threshold set by the user, the current imaging data is directly output, and the shooting operation is directly completed.
  • Step S3033 If the jitter information is greater than a threshold set by the user, the current jitter information (corresponding to the first jitter information in the above embodiment) and the imaging data are temporarily stored in the candidate queue.
  • Steps S3031, S3032, and S3033 are repeatedly executed to the set time delay.
  • Step S3034 If the jitter information is always greater than the threshold set by the user until the set delay, the image data with the smallest jitter information is selected as the output in the temporary candidate queue, and the shooting operation is completed.
  • the part can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD), including a number of instructions for making a terminal device (which can be a mobile phone, a computer)
  • a storage medium such as ROM/RAM, disk, CD
  • the server, or network device, etc. performs the methods described in various embodiments of the present invention.
  • a photographing device for the terminal is provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 6 is a structural block diagram of a photographing apparatus of a terminal according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes:
  • the obtaining module 62 is configured to acquire a plurality of first jitter information of the terminal and imaging data corresponding to the plurality of first jitter information within a predetermined time period;
  • the comparing module 64 is configured to compare the plurality of first jitter information to obtain the first jitter information with the smallest jitter;
  • the output module 66 is configured to output imaging data corresponding to the smallest first jitter information.
  • the imaging data corresponding to the first jitter information solves the problem that the anti-shake function of the terminal to achieve photographing is high in the related art, and the user takes a photo experience.
  • the problem of the degree difference improves the imaging effect of the terminal and improves the user's photographing experience.
  • the predetermined time period may be an anti-shake delay, and the predetermined time period may be selected by the internal setting of the terminal, or may be set by the user according to his own needs, or may be selected in combination.
  • three options can be preset in the terminal: a 0.5 second option, a 1 second option, and a 2 second option. The user can select a predetermined time period of 0.5 seconds, 1 second option, or 2 seconds according to his or her own needs. Option.
  • the first jitter information may include at least one of the following: an acceleration of the terminal, a rotational acceleration of the terminal, and a contrast of a current picture to be captured of the terminal; wherein the magnitude of the acceleration is proportional to the jitter of the terminal, that is, the acceleration of the terminal is greater.
  • the jitter of the terminal is large, and the jitter is small when the acceleration is small;
  • the magnitude of the rotational acceleration is proportional to the jitter of the terminal, that is, the rotational acceleration of the terminal is large, the jitter of the terminal is large, and the jitter is small, the jitter is small;
  • the contrast is inversely proportional to the jitter of the terminal. That is, the contrast of the current shooting picture is high, the jitter of the terminal is small, and the contrast is low, and the jitter is large.
  • the obtaining module 62 is further configured to acquire second jitter information of the terminal within a predetermined time period; and determine that the second jitter information is first jitter information if the second jitter information exceeds a predetermined threshold.
  • the first jitter information is one type of second jitter information, that is, the second jitter information exceeding a predetermined threshold may be referred to as first jitter information, and thus, the content of the second jitter information and the foregoing The content contained in a jitter message should be essentially the same.
  • the predetermined threshold may be set in advance.
  • the predetermined threshold may be set to three large, medium, and small gears, and the user may select different gears according to different needs.
  • FIG. 7 is a block diagram of a structure of a photographing apparatus of a terminal according to an embodiment of the present invention.
  • the obtaining module 62 includes: a first acquiring unit 622, which is set to be within a predetermined time period. Acquiring the jitter information by the sensor of the terminal; the second obtaining unit 624 is configured to perform averaging processing on motion vectors of the plurality of regions of the current image to be captured of the terminal within a predetermined time period to obtain second jitter information.
  • the sensor may be an acceleration sensor or a gyroscope.
  • the jitter information is acceleration
  • the sensor is an acceleration sensor.
  • the jitter information is a rotational acceleration
  • the sensor is a gyroscope;
  • the motion vector may be calculated by the following method. However, it is not limited to this: the current shooting picture is divided into 8*8 block areas, each block takes 4 blocks, a total of 16 areas, first grayscale projection, then calculate the contrast mean value, and use this value as the jitter information.
  • the reference value, the high contrast is considered to be small jitter, and the low contrast is considered to be large jitter.
  • the device further includes: a receiving module, configured to receive the anti-shake of the open terminal before acquiring the plurality of first jitter information of the terminal and the imaging data corresponding to the plurality of first jitter information within a predetermined time period Shoot the instructions for the optimization function.
  • a receiving module configured to receive the anti-shake of the open terminal before acquiring the plurality of first jitter information of the terminal and the imaging data corresponding to the plurality of first jitter information within a predetermined time period Shoot the instructions for the optimization function.
  • the anti-shake shooting optimization function is not turned on, the jitter information of the terminal is not monitored during shooting.
  • FIG. 8 is a block diagram of a camera device according to a preferred embodiment of the present invention.
  • the image stabilization device includes an anti-shake function setting unit 82.
  • the anti-shake function setting unit 82 may be configured to complete the parameter setting method shown in FIG. 3, and the jitter detecting unit 84 may be configured to complete the function of monitoring the mobile phone shaking information shown in FIG. 4;
  • the photographing execution unit 86 may be set to perform the anti-shake shooting function shown in FIG. 5.
  • the anti-shake shooting execution unit 86 in the preferred embodiment is identical in function to the first acquisition module 62, the comparison module 64, and the output module 66 described above.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • a plurality of first jitter information of the terminal and imaging data corresponding to the plurality of first jitter information are acquired in a predetermined time period; and the plurality of first jitter information are compared to obtain a minimum jitter a dithering information; outputting the image data corresponding to the first first dither information, that is, outputting the anti-shake function of the camera in the related art by outputting the imaging data corresponding to the first jitter information with the smallest jitter in the predetermined time period
  • the cost is high, and the problem of poor user experience is improved, thereby improving the imaging effect of the terminal and improving the user's photographing experience.

Landscapes

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

Abstract

本发明提供了一种终端的拍照方法及装置,其中,该方法包括:在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据;比较多个第一抖动信息,得到抖动最小的第一抖动信息;输出最小的第一抖动信息对应的成像数据;通过本发明,解决了相关技术中,终端实现拍照的防抖功能成本高,用户拍照体验度差的问题,进而提高了终端的成像效果,提高了用户的拍照体验。

Description

终端的拍照方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种终端的拍照方法及装置。
背景技术
近年来随着终端(如手机)软硬件的快速发展,终端拍摄已经成为用户日常使用的一个重要场景,而拍照时因为抖动导致的画面模糊问题,也亟待改善。
在相关技术中,主要有两种终端拍摄的防抖技术:第一种是通过配置带硬件防抖功能的摄像头,由摄像头模组中的防抖器件来改善镜头的抖动问题;第二种是通过提高成像传感器的增益设置,缩短拍摄的快门时间,从而起到减少抖动的作用。
对于第一种防抖技术,由于带硬件防抖功能的摄像头模组成本很高,且物理尺寸通常较大,因而会影响终端的硬件成本及结构设计;对于第二种防抖技术,由于增大成像传感器的增益,在缩短快门时间的同时也会导致成像噪点的增加,对成像效果会有较明显的影响。因而,相关技术中的终端拍照的防抖功能有限,因而,用户拍照的体验度较差。
针对相关技术中,终端实现拍照的防抖功能成本高,用户拍照体验度差的问题,目前并未提出有效的解决方案。
发明内容
本发明提供了一种终端的拍照方法及装置,设置为解决相关技术中,终端实现拍照的防抖功能成本高,用户拍照体验度差的问题。
根据本发明实施例的一个实施例,提供了一种终端的拍照方法,包括:在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据;比较多个第一抖动信息,得到抖动最小的第一抖动信息;输出最小的第一抖动信息对应的成像数据。
在本发明实施例中,第一抖动信息包括以下至少之一:终端的加速度,加速度的大小与终端的抖动成正比;终端的旋转加速度,旋转加速度的大小与终端的抖动成正比;终端的当前待拍摄画面的对比度,对比度的高低与终端的抖动成反比。
在本发明实施例中,通过以下方式确定第二抖动信息:在预定时间段内获取终端的第二抖动信息;在第二抖动信息超过预定阈值的情况下,确定第二抖动信息为第一抖动信息。
在本发明实施例中,在预定时间段内获取终端的第二抖动信息包括以下至少之一:在预定时间段内通过终端的传感器获取抖动信息;或者,在预定时间段内对终端的当前待拍摄画面的多个区域的运动矢量进行平均处理,得到第二抖动信息。
在本发明实施例中,在在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据之前,方法还包括:接收开启终端的防抖拍摄优化功能的指令。
根据本发明实施例的另一实施例,提供了一种终端的拍照装置,包括:获取模块,设置为在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据;比较模块,设置为比较多个第一抖动信息,得到抖动最小的第一抖动信息;输出模块,设置为输出最小的第一抖动信息对应的成像数据。
在本发明实施例中,第一抖动信息包括以下至少之一:终端的加速度,加速度的大小与终端的抖动成正比;终端的旋转加速度,旋转加速度的大小与终端的抖动成正比;终端的当前待拍摄画面的对比度,对比度的高低与终端的抖动成反比。
在本发明实施例中,上述第一获取模块,还设置为在预定时间段内获取终端的第二抖动信息;以及在第二抖动信息超过预定阈值的情况下,确定第二抖动信息为第一抖动信息。
在本发明实施例中,上述获取模块包括:第一获取单元,设置为在预定时间段内通过终端的传感器获取抖动信息;第二获取单元,设置为在预定时间段内对终端的当前待拍摄画面的多个区域的运动矢量进行平均处理,得到第二抖动信息。
在本发明实施例中,装置还包括:接收模块,设置为在在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据之前,接收开启终端的防抖拍摄优化功能的指令。
通过本发明,采用在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据;比较多个第一抖动信息,得到抖动最小的第一抖动信息;输出最小的第一抖动信息对应的成像数据,即通过输出该预定时间段内的抖动最小的第一抖动信息对应的成像数据,解决了相关技术中,终端实现拍照的防抖功能成本高,用户拍照体验度差的问题,进而提高了终端的成像效果,提高了用户的拍照体验。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的终端的拍照方法的流程图一;
图2是根据本发明实施例的终端的拍照方法的流程图二;
图3是本发明优选实施例的防抖优选功能的参数设置的示意图;
图4是本发明优选实施例的抖动信息获取方式的示意图;
图5是本发明优选实施例的终端的拍照方法的流程图;
图6是根据本发明实施例的终端的拍照装置的结构框图一;
图7是根据本发明实施例的终端的拍照装置的结构框图二;
图8是根据本发明优选实施例的拍照装置的结构框图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
在本实施例中提供了一种终端的拍照方法,图1是根据本发明实施例的终端的拍照方法的流程图一,如图1所示,该流程包括如下步骤:
步骤S102,在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据;
步骤S104,比较多个第一抖动信息,得到抖动最小的第一抖动信息;
步骤S106,输出最小的第一抖动信息对应的成像数据。
通过上述步骤,采用在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据;比较多个第一抖动信息,得到抖动最小的第一抖动信息;输出最小的第一抖动信息对应的成像数据,即通过输出该预定时间段内的抖动最小的第一抖动信息对应的成像数据,解决了相关技术中,终端实现拍照的防抖功能成本高,用户拍照体验度差的问题,进而提高了终端的成像效果,提高了用户的拍照体验。
需要说明的是,上述预定时间段可以是防抖时延,该预定时间段可以通过终端内部的设置进行自行选择,也可以用户根据自己的需求进行设定,也可以两者结合进行选择,在一个优选的实施例中,终端中可以预先设定三个选项:0.5秒选项、1秒选项、2秒选项,用户可以根据自己的需要选择预定时间段为0.5秒选项、1秒选项或者2秒选项。
上述第一抖动信息可以包括以下至少之一:终端的加速度,所述终端的旋转加速度,终端的当前待拍摄画面的对比度;其中,加速度的大小与终端的抖动成正比,即终端的加速度大则终端的抖动大,加速度小则抖动小;旋转加速度的大小与终端的抖动成正比,即终端的旋转加速度大则终端的抖动大,旋转加速度小则抖动小;对比度的高低与终端的抖动成反比,即当前拍摄画面的对比度高则终端的抖动小,对比度低则抖动大。
在本发明实施例中,可以通过以下方式确定上述第一抖动信息,图2是根据本发明实施例中的确定第一抖动信息的流程图二,如图2所示,包括:
步骤S202,在预定时间段内获取终端的第二抖动信息;
步骤S204,在第二抖动信息超过预定阈值的情况下,确定第二抖动信息为第一抖动信息。
需要说明的是,上述第一抖动信息是第二抖动信息的一种,即超过预定阈值的第二抖动信息可以称之为第一抖动信息,因而,第二抖动信息所包含的内容与上述第一抖动信息所包含的内容实质上应当是相同的。
上述预定阈值可以是预先进行设定的,在一个优选实施例中,该预定阈值可以设置成大,中,小三个档位,用户可以根据不同的需求选择不同的档位。
在本发明实施例中,步骤S202可以包括以下至少之一:在预定时间段内通过终端的传感器获取抖动信息;或者,在预定时间段内对终端的当前待拍摄画面的多个区域的运动矢量进行平均处理,得到第二抖动信息。
上述传感器可以是加速度传感器,也可以是陀螺仪,在抖动信息为加速度时,上述传感器为加速度传感器,在在抖动信息为旋转加速度时,上述传感器为陀螺仪;上述运动矢量可以通过以下方法计算获取,但不限于此:将当前拍摄画面按比例划分8*8块区域,每个角上各取4块,共16块区域,先进行灰度投影,再计算对比度均值,使用该值作为抖动信息的参考值,对比度高则认为抖动小,对比度低则认为抖动大。
在本发明实施例中,在在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据之前,方法还包括:接收开启终端的防抖拍摄优化功能的指令。
需要说明的是,如果未开启防抖拍摄优化功能,则在拍摄时,不监控终端的抖动信息。
为了更好的理解上述方法实施例,以下结合优选的方法实施例对上述方法实施例做进一步的解释:
以手机拍照为例,本发明提供了一种优选的终端的拍照方法,该方法包括以下步骤:
当用户在使用手机进行拍照时,系统会持续监控手机的抖动状态(即上述实施例中的抖动信息),当手机抖动状态小于用户设定的阈值时候,直接进行拍照输出,当在设定时限内抖动状态一直大于用户设定阈值时候,则选择监控时段内抖动状态最小时刻的成像数据输出。通过该优选的实施例可以获取较好的成像效果,改善手机拍照体验。
具体的,上述优选的方法实施例可以包括以下步骤:
步骤S301,防抖优化的参数设置,图3是本发明优选实施例的防抖优选功能的参数设置的示意图,如图3所示,包括:
步骤S3011:设置是否开启防抖优化功能;
步骤S3012:设置抖动阈值(可提供大,中,小三种选项,供用户选择,默认为中);
步骤S3013:设置防抖时延(可提供0.5秒、1秒、2秒等选项,供用户选择,默认为1秒);
需要说明的是,上述设置均持久化存储到移动终端系统中。
步骤S302:监控手机抖动信息;
1).未开启防抖拍摄优化功能时
在进行拍摄时,不监控手机抖动信息。
2).开启防抖拍摄优化功能时
步骤S3021:当用户在设置单元中设定开启优化功能时,在用户按下拍照键后的设定时段内,对手机抖动信息进行监控记录。图4是本发明优选实施例的抖动信息获取方式的示意图,如图4所示,抖动信息可以通过硬件方式获取,也可以通过软件方式获取,
若手机配备了陀螺仪/加速度传感器,由传感器提供抖动信息,即通过硬件方式获取抖动信息。若手机未配备陀螺仪/加速度传感器,则通过对画面四角区域的运动矢量做平均处理得出抖动信息,即通过软件方式获取抖动信息。
运动矢量的计算可以采用以下方法,但不仅限于该方法:将画面按比例划分8*8块区域,每个角上各取4块,共16块区域,先进行灰度投影,再计算对比度均值,使用该值作为抖动信息的参考值,对比度高则认为抖动小,对比度低则认为抖动大。
步骤S303:执行防抖拍摄相关处理;
1).未开启防抖拍摄优化功能时
在进行拍摄时,不做防抖优化处理。
2).开启防抖拍摄优化功能时
当用户在设置单元中设定开启优化功能时,防抖拍摄优化执行单元会在用户按下拍照键后,到设定时延的时段内,按照其相关设置项进行防抖优化处理。图5是本发明优选实施例的终端的拍照方法的流程图,如图5所示,包括以下步骤:
步骤S3031:当用户按下拍照键后,开始获取当前手机抖动信息(即上述实施例中的第二抖动信息)。
步骤S3032:如果抖动信息小于用户设定的阈值,则直接将当前成像数据输出,直接完成拍摄动作。
步骤S3033:如果抖动信息大于用户设定的阈值,则将当前抖动信息(相当于上述实施例中的第一抖动信息)及成像数据,暂存到备选队列中。
重复执行步骤S3031,S3032,S3033至设定的时延。
步骤S3034:如果直到设定时延,抖动信息始终大于用户设定的阈值,则在暂存的备选队列,选择抖动信息最小的那张成像数据作为输出,完成拍摄动作。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡 献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种终端的拍照装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图6是根据本发明实施例的终端的拍照装置的结构框图一,如图6所示,该装置包括:
获取模块62,设置为在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据;
比较模块64,设置为比较多个第一抖动信息,得到抖动最小的第一抖动信息;
输出模块66,设置为输出最小的第一抖动信息对应的成像数据。
通过上述装置,采用在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据;比较多个第一抖动信息,得到抖动最小的第一抖动信息;输出最小的第一抖动信息对应的成像数据,即通过输出该预定时间段内的抖动最小的第一抖动信息对应的成像数据,解决了相关技术中,终端实现拍照的防抖功能成本高,用户拍照体验度差的问题,进而提高了终端的成像效果,提高了用户的拍照体验。
需要说明的是,上述预定时间段可以是防抖时延,该预定时间段可以通过终端内部的设置进行自行选择,也可以用户根据自己的需求进行设定,也可以两者结合进行选择,在一个优选的实施例中,终端中可以预先设定三个选项:0.5秒选项、1秒选项、2秒选项,用户可以根据自己的需要选择预定时间段为0.5秒选项、1秒选项或者2秒选项。
上述第一抖动信息可以包括以下至少之一:终端的加速度,所述终端的旋转加速度,终端的当前待拍摄画面的对比度;其中,加速度的大小与终端的抖动成正比,即终端的加速度大则终端的抖动大,加速度小则抖动小;旋转加速度的大小与终端的抖动成正比,即终端的旋转加速度大则终端的抖动大,旋转加速度小则抖动小;对比度的高低与终端的抖动成反比,即当前拍摄画面的对比度高则终端的抖动小,对比度低则抖动大。
上述获取模块62,还设置为在预定时间段内获取终端的第二抖动信息;以及在第二抖动信息超过预定阈值的情况下,确定第二抖动信息为第一抖动信息。
需要说明的是,上述第一抖动信息是第二抖动信息的一种,即超过预定阈值的第二抖动信息可以称之为第一抖动信息,因而,第二抖动信息所包含的内容与上述第一抖动信息所包含的内容实质上应当是相同的。
上述预定阈值可以是预先进行设定的,在一个优选实施例中,该预定阈值可以设置成大,中,小三个档位,用户可以根据不同的需求选择不同的档位。
在本发明实施例中,图7是根据本发明实施例的终端的拍照装置的结构框图二,如图7所示,上述获取模块62包括:第一获取单元622,设置为在预定时间段内通过终端的传感器获取抖动信息;第二获取单元624,设置为在预定时间段内对终端的当前待拍摄画面的多个区域的运动矢量进行平均处理,得到第二抖动信息。
上述传感器可以是加速度传感器,也可以是陀螺仪,在抖动信息为加速度时,上述传感器为加速度传感器,在在抖动信息为旋转加速度时,上述传感器为陀螺仪;上述运动矢量可以通过以下方法计算获取,但不限于此:将当前拍摄画面按比例划分8*8块区域,每个角上各取4块,共16块区域,先进行灰度投影,再计算对比度均值,使用该值作为抖动信息的参考值,对比度高则认为抖动小,对比度低则认为抖动大。
在本发明实施例中,装置还包括:接收模块,设置为在在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据之前,接收开启终端的防抖拍摄优化功能的指令。
需要说明的是,如果未开启防抖拍摄优化功能,则在拍摄时,不监控终端的抖动信息。
为了更好的理解上述装置实施例,以下结合优选的实施例对上述装置实施例做进一步的解释:
以手机拍照为例,本发明提供了一种优选的终端的拍照装置,图8是根据本发明优选实施例的拍照装置的结构框图,如图8所示,包括:防抖功能设置单元82,抖动检测单元84,防抖拍摄执行单元86;其中,防抖功能设置单元82提供选项让用户设置防抖拍摄优化功能方面的设定,包括:是否开启防抖优化功能,可接受的抖动阈值,最大防抖时延等等;抖动检测单元84负责监控手机拍摄期间的抖动信息;防抖拍摄执行单元86根据当前用户的设置,来具体实施防抖拍摄优化功能。
需要说明的是,上述防抖功能设置单元82可以设置为完成图3所示的参数设置的方法实施例,抖动检测单元84可以设置为完成图4所示的监控手机抖动信息的功能;防抖拍摄执行单元86可以设置为完成图5所示的执行防抖拍摄功能。该优选实施例中的防抖拍摄执行单元86与上述第一获取模块62、比较模块64、输出模块66完成的功能部分相同。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据;
S2,比较多个第一抖动信息,得到抖动最小的第一抖动信息;
S3,输出最小的第一抖动信息对应的成像数据。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
基于本发明实施例提供的上述技术方案,在预定时间段内获取终端的多个第一抖动信息以及多个第一抖动信息对应的成像数据;比较多个第一抖动信息,得到抖动最小的第一抖动信息;输出最小的第一抖动信息对应的成像数据,即通过输出该预定时间段内的抖动最小的第一抖动信息对应的成像数据,解决了相关技术中,终端实现拍照的防抖功能成本高,用户拍照体验度差的问题,进而提高了终端的成像效果,提高了用户的拍照体验。

Claims (10)

  1. 一种终端的拍照方法,包括:
    在预定时间段内获取终端的多个第一抖动信息以及所述多个第一抖动信息对应的成像数据;
    比较所述多个第一抖动信息,得到抖动最小的第一抖动信息;
    输出所述最小的第一抖动信息对应的成像数据。
  2. 根据权利要求1所述的方法,其中,所述第一抖动信息包括以下至少之一:
    所述终端的加速度,所述加速度的大小与所述终端的抖动成正比;
    所述终端的旋转加速度,所述旋转加速度的大小与所述终端的抖动成正比;
    所述终端的当前待拍摄画面的对比度,所述对比度的高低与所述终端的抖动成反比。
  3. 根据权利要求1所述的方法,其中,通过以下方式确定所述第一抖动信息:
    在所述预定时间段内获取所述终端的第二抖动信息;
    在所述第二抖动信息超过预定阈值的情况下,确定所述第二抖动信息为所述第一抖动信息。
  4. 根据权利要求3所述的方法,其中,在所述预定时间段内获取所述终端的第二抖动信息包括以下至少之一:
    在所述预定时间段内通过所述终端的传感器获取所述抖动信息;或者,
    在所述预定时间段内对所述终端的当前待拍摄画面的多个区域的运动矢量进行平均处理,得到所述第二抖动信息。
  5. 根据权利要求1所述的方法,其中,在预定时间段内获取终端的多个第一抖动信息以及所述多个第一抖动信息对应的成像数据之前,所述方法还包括:接收开启所述终端的防抖拍摄优化功能的指令。
  6. 一种终端的拍照装置,包括:
    获取模块,设置为在预定时间段内获取终端的多个第一抖动信息以及所述多个第一抖动信息对应的成像数据;
    比较模块,设置为比较所述多个第一抖动信息,得到抖动最小的第一抖动信息;
    输出模块,设置为输出所述最小的第一抖动信息对应的成像数据。
  7. 根据权利要求6所述的装置,其中,所述第一抖动信息包括以下至少之一:
    所述终端的加速度,所述加速度的大小与所述终端的抖动成正比;
    所述终端的旋转加速度,所述旋转加速度的大小与所述终端的抖动成正比;
    所述终端的当前待拍摄画面的对比度,所述对比度的高低与所述终端的抖动成反比。
  8. 根据权利要求6所述的装置,其中,所述获取模块,还设置为在所述预定时间段内获取所述终端的第二抖动信息;以及在所述第二抖动信息超过预定阈值的情况下,确定所述第二抖动信息为所述第一抖动信息。
  9. 根据权利要求8所述的装置,其中,所述获取模块包括:
    第一获取单元,设置为在所述预定时间段内通过所述终端的传感器获取所述抖动信息;
    第二获取单元,设置为在所述预定时间段内对所述终端的当前待拍摄画面的多个区域的运动矢量进行平均处理,得到所述第二抖动信息。
  10. 根据权利要求6所述的装置,其中,所述装置还包括:接收模块,设置为在在预定时间段内获取终端的多个第一抖动信息以及所述多个第一抖动信息对应的成像数据之前,接收开启所述终端的防抖拍摄优化功能的指令。
PCT/CN2015/094830 2015-10-12 2015-11-17 终端的拍照方法及装置 WO2016184060A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510659223.3A CN106569685A (zh) 2015-10-12 2015-10-12 终端的拍照方法及装置
CN201510659223.3 2015-10-12

Publications (1)

Publication Number Publication Date
WO2016184060A1 true WO2016184060A1 (zh) 2016-11-24

Family

ID=57319332

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/094830 WO2016184060A1 (zh) 2015-10-12 2015-11-17 终端的拍照方法及装置

Country Status (2)

Country Link
CN (1) CN106569685A (zh)
WO (1) WO2016184060A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368725B (zh) 2017-06-16 2020-04-10 Oppo广东移动通信有限公司 虹膜识别方法、电子装置和计算机可读存储介质
CN107995413B (zh) * 2017-10-31 2020-09-29 维沃移动通信有限公司 一种拍照控制方法及移动终端
CN111193867B (zh) * 2020-01-08 2021-03-23 Oppo广东移动通信有限公司 图像处理方法、图像处理器、拍摄装置和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020051634A1 (en) * 2000-11-02 2002-05-02 Tatsuya Sato Camera having a blur notifying function
CN102547124A (zh) * 2012-01-16 2012-07-04 华为终端有限公司 拍照处理方法、装置和移动设备
CN103051836A (zh) * 2012-12-14 2013-04-17 中兴通讯股份有限公司 移动终端防抖动拍照方法和装置
CN104135622A (zh) * 2014-08-25 2014-11-05 广东欧珀移动通信有限公司 一种结合陀螺仪优化快拍的方法、装置及移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020051634A1 (en) * 2000-11-02 2002-05-02 Tatsuya Sato Camera having a blur notifying function
CN102547124A (zh) * 2012-01-16 2012-07-04 华为终端有限公司 拍照处理方法、装置和移动设备
CN103051836A (zh) * 2012-12-14 2013-04-17 中兴通讯股份有限公司 移动终端防抖动拍照方法和装置
CN104135622A (zh) * 2014-08-25 2014-11-05 广东欧珀移动通信有限公司 一种结合陀螺仪优化快拍的方法、装置及移动终端

Also Published As

Publication number Publication date
CN106569685A (zh) 2017-04-19

Similar Documents

Publication Publication Date Title
WO2017096866A1 (zh) 高动态范围图像的生成方法和装置
US20170163878A1 (en) Method and electronic device for adjusting shooting parameters of camera
WO2019071613A1 (zh) 一种图像处理方法及装置
JP6267502B2 (ja) 撮像装置、撮像装置の制御方法、及び、プログラム
US9357127B2 (en) System for auto-HDR capture decision making
CN108632596B (zh) 摄影装置及摄影装置的操作方法
US20170163902A1 (en) Method and electronic device for generating high dynamic range image
JP2019054536A (ja) 電子機器
CN103888661A (zh) 摄像设备、摄像系统和摄像设备的控制方法
JP6720881B2 (ja) 画像処理装置及び画像処理方法
WO2017076000A1 (zh) 夜景拍照方法、装置及移动终端
US9888176B2 (en) Video apparatus and photography method thereof
CN105391940B (zh) 一种图像推荐方法及装置
CN107864340B (zh) 一种摄影参数的调整方法及摄影设备
WO2016197657A1 (zh) 一种拍照处理方法和装置
CN103458210A (zh) 一种录制方法、装置及终端
US20150116471A1 (en) Method, apparatus and storage medium for passerby detection
WO2016184060A1 (zh) 终端的拍照方法及装置
US20190068883A1 (en) Automatic processing of automatic image capture parameter adjustment
US20170214847A1 (en) Method for Setting Shooting Parameters of HDR mode and Electronic Device Using the Same
WO2017076042A1 (zh) 防抖拍照方法、装置及移动终端
CN105306830B (zh) 一种拍照控制方法和装置
US9686523B2 (en) Method for image processing and an electronic device thereof
CN104811592A (zh) 摄像装置和摄像控制方法
CN105791659B (zh) 图像处理方法和电子设备

Legal Events

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

Ref document number: 15892434

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15892434

Country of ref document: EP

Kind code of ref document: A1