WO2018040269A1 - 一种图像处理方法及终端 - Google Patents

一种图像处理方法及终端 Download PDF

Info

Publication number
WO2018040269A1
WO2018040269A1 PCT/CN2016/103998 CN2016103998W WO2018040269A1 WO 2018040269 A1 WO2018040269 A1 WO 2018040269A1 CN 2016103998 W CN2016103998 W CN 2016103998W WO 2018040269 A1 WO2018040269 A1 WO 2018040269A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
terminal
camera
image
frame images
Prior art date
Application number
PCT/CN2016/103998
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 WO2018040269A1 publication Critical patent/WO2018040269A1/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
    • 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/6812Motion detection based on additional sensors, e.g. acceleration sensors
    • 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/682Vibration or motion blur correction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to an image processing method and a terminal.
  • terminals such as smart phones and tablet computers are becoming more and more popular, and the imaging quality of cameras on terminals is getting higher and higher.
  • the use of terminals for photographing has become the first choice of more and more users.
  • the camera image often has a serious smear blur phenomenon due to the hand shake or the camera object is in a fast motion state, and the quality of the photographed image is poor and unsatisfactory.
  • the embodiment of the invention provides an image processing method and a terminal, which can eliminate the smear blur phenomenon of the image during photographing and improve the quality of the photographed image.
  • a first aspect of the embodiments of the present invention provides an image processing method, including:
  • the terminal When detecting the input photographing instruction, the terminal captures the preset first number of frame images by using the first camera.
  • the terminal captures a preset second number of frame images by using the second camera.
  • the terminal performs a synthesis process on the preset first quantity frame image and the preset second quantity frame image by using a preset algorithm.
  • the terminal uses the second camera to capture a preset second number of frame images, including:
  • the terminal When the terminal captures the last frame image in the preset first number of frame images by using the first camera, the terminal captures a preset second number of frame images by using the second camera.
  • the terminal uses the second camera to capture a preset second number of frame images, including:
  • the terminal determines whether the degree of jitter of the terminal is greater than or equal to a preset first jitter level.
  • the terminal captures a preset second number of frame images by using the second camera after experiencing a preset duration.
  • the terminal captures the preset second number of frame images by using the second camera.
  • the terminal performs a synthesis process on the preset first quantity frame image and the preset second quantity frame image by using a preset algorithm, including:
  • Determining, by the terminal, the first image in the preset first number of frame images that corresponds to the jitter degree of the terminal is less than or equal to a preset second jitter level, and determining that the preset second quantity frame image corresponds to the The second image of the terminal is less than or equal to the preset third jitter level.
  • the terminal performs a synthesis process on the first image and the second image by using a preset algorithm to obtain a photographed image.
  • the preset algorithm includes a linear superposition synthesis algorithm.
  • a second aspect of the embodiments of the present invention provides a terminal, including:
  • the detection module is configured to detect the input photographing instruction.
  • the capturing module is configured to capture, by the first camera, a preset first number of frame images when the detecting module detects the photographing instruction.
  • the capturing module is further configured to capture a preset second number of frame images by using the second camera.
  • a synthesizing module configured to perform a synthesizing process on the preset first quantity frame image and the preset second quantity frame image by using a preset algorithm.
  • the specific manner in which the capturing module captures the preset second number of frame images by using the second camera is:
  • the second camera is used to capture a preset second number of frame images.
  • the capturing module includes:
  • a first acquiring unit configured to acquire a degree of jitter of the terminal when capturing the first frame image in the preset first number of frame images by using the first camera.
  • the determining unit is configured to determine whether the jitter level of the terminal is greater than or equal to a preset first jitter level.
  • the capturing unit is configured to: when the determination result of the determining unit is YES, capture the preset second number of frame images by using the second camera after experiencing the preset time length.
  • the capturing unit is further configured to: when the determining result of the determining unit is negative, capture the preset second number of frame images by using the second camera.
  • the synthesizing module includes:
  • a second acquiring unit configured to acquire, when the image of each frame in the preset first number of frame images is captured, a degree of jitter of the terminal, and acquire a record of the preset second number of frames The degree of jitter of the terminal at each frame of the image.
  • a determining unit configured to determine, in the preset first number of frame images, a first image corresponding to a degree of jitter of the terminal that is less than or equal to a preset second jitter level, and determine a corresponding one of the preset second number of frame images The degree of jitter of the terminal is less than or equal to a second image of a preset third jitter level.
  • a synthesizing unit configured to perform a synthesizing process on the first image and the second image by using a preset algorithm to obtain a photographed image.
  • the preset algorithm includes a linear superposition synthesis algorithm.
  • a third aspect of the embodiments of the present invention provides a terminal, including: a processor, a first camera, a second camera, and a memory, wherein the memory stores a program, and the processor calls the program stored in the memory, And configured to: when the detected photographing instruction is detected, capture, by the first camera, a preset first number of frame images, and capture, by using the second camera, a preset second number of frame images, and use a preset algorithm to The first number of frame images and the preset second number of frame images are preset for synthesis processing.
  • the terminal when detecting the input photographing instruction, the terminal captures a preset first number of frame images by using the first camera, and captures a preset second number of frame images by using the second camera, and then uses a preset algorithm to Presetting the first number of frame images and the preset second number of frame images for synthesizing processing to obtain a composite image, which can eliminate the smear blur phenomenon of the image during photographing and improve the quality of the photographed image.
  • FIG. 1 is a schematic flow chart of a first embodiment of an image processing method according to an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of an image processing method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in the embodiment of the present invention may specifically be a smart phone, a tablet computer, a mobile internet device (MID), a smart wearable device, or the like with a dual camera.
  • MID mobile internet device
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of an image processing method according to an embodiment of the present invention.
  • the image processing method described in this embodiment includes the following steps:
  • the terminal captures a preset first number of frame images by using the first camera when detecting the input camera instruction.
  • the user may input a photographing instruction by using a touch operation/pressing physical button/voice control/gesture control, and the terminal continuously captures the preset first by using the first camera when detecting the photographing instruction input by the user.
  • a quantity frame image, wherein the preset first number can be, for example, 3, that is, the terminal continuously captures 3 frames of images by using the first camera.
  • the terminal captures, by using a second camera, a preset second number of frame images.
  • the terminal may continuously capture a preset second number of frame images by using the second camera when capturing the last frame image in the preset first number of frame images by using the first camera, where
  • the preset second number may be, for example, six, that is, when the terminal captures the third frame image in the three-frame image by using the first camera, the second camera continuously captures six frames of images.
  • the terminal performs a synthesis process on the preset first quantity frame image and the preset second quantity frame image by using a preset algorithm.
  • the preset algorithm may specifically be a linear superposition synthesis algorithm.
  • the terminal may synthesize the preset first quantity frame image and the preset second quantity frame image by using a linear superposition synthesis algorithm to obtain a photographed image.
  • one of the first camera and the second camera may be a normal camera and the other is a wide-angle camera.
  • the first camera is a normal camera
  • the second camera is a wide-angle camera.
  • the terminal may parse the captured image in real time to determine that the captured image has a smear a ambiguous area, and the terminal, when capturing the preset second number of frame images by using the second camera, may automatically focus the focus to the photographic object corresponding to the smear blur area, to capture the smear through the second camera
  • the blurred area corresponds to a clear image of the photographed object, so that the above-described smear blur area can be eliminated by image synthesis.
  • the size relationship between the preset first quantity and the preset second quantity is not limited, and the image of the preset first quantity frame image and the preset second quantity frame image is considered.
  • the synthesis process takes time.
  • the camera image can be seen in time after the camera command is input, and the sum of the preset first quantity and the preset second quantity can be limited to a preset value, for example, The sum of the preset first quantity and the preset second quantity does not exceed 9, and the foregoing is only the preset first quantity is 3, and the preset second quantity is 6, of course, the pre- Let the first number be 6, the preset second number be 3, and so on.
  • the terminal when detecting the input photographing instruction, the terminal captures a preset first number of frame images by using the first camera, and captures a preset second number of frame images by using the second camera, and then uses a preset algorithm to Presetting the first number of frame images and the preset second number of frame images for synthesizing processing to obtain a composite image, which can eliminate the smear blur phenomenon of the image during photographing and improve the quality of the photographed image.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of an image processing method according to an embodiment of the present invention.
  • the image processing method described in this embodiment includes the following steps:
  • the terminal captures a preset first number of frame images by using the first camera when detecting the input camera instruction.
  • the user may input a photographing instruction by using a touch operation/pressing physical button/voice control/gesture control, and the terminal continuously captures the preset first by using the first camera when detecting the photographing instruction input by the user.
  • a quantity frame image, wherein the preset first number can be, for example, 3, that is, the terminal continuously captures 3 frames of images by using the first camera.
  • the terminal may acquire and record, by using a gravity sensor, a gyroscope, or the like, the terminal captures the terminal to capture the preset first number of frame images.
  • the degree of jitter of the terminal at each frame of image, the degree of jitter of the terminal can be expressed, for example, by accelerations in three directions of three-dimensional coordinate systems X, Y, and Z.
  • the terminal acquires a jitter degree of the terminal when capturing, by using the first camera, the first frame image in the preset first number of frame images.
  • the terminal determines whether the jitter level of the terminal is greater than or equal to a preset first jitter level. If yes, step 204 is performed; if not, step 205 is performed.
  • the preset first jitter level may be a degree of jitter when the image sharpness is greatly affected, and the specific value may be flexibly adjusted according to actual requirements, which is not limited in the embodiment of the present invention.
  • the terminal acquires a pre-recorded degree of jitter of the terminal when the first frame image in the preset first number of frame images is captured by the first camera, and compares with the preset first jitter degree, If it is greater than or equal to the preset first jitter level, step 204 is performed; if it is less than the preset first jitter level, step 205 is performed.
  • the second camera captures a preset second number of frame images.
  • the terminal captures the first frame image in the preset first number of frame images by using the first camera
  • the jitter degree of the terminal is greater than or equal to the preset first jitter level, that is, the terminal jitter is In a serious case, after waiting for a preset duration, the second camera is used to capture the preset second number of frame images, and the delay may be delayed for a period of time to avoid using the second camera to capture the terminal when the terminal jitter is severe.
  • the second number of frame images is preset.
  • the selection of the preset duration may be, for example, the duration that the terminal uses the first camera to capture the preset first number of frame images, that is, the terminal captures the preset first number by using the first camera.
  • the terminal captures the last one of the preset first number of frame images by using the first camera.
  • the second camera is used to continuously capture the preset second number of frame images.
  • the embodiment of the present invention is not limited to the selection of the preset duration.
  • the terminal may also acquire the jitter level of the terminal at this time. If the jitter level of the terminal at this time is less than the preset first jitter level, the terminal is The preset second number of frame images are captured by the second camera.
  • the terminal captures the preset second quantity frame image by using the second camera.
  • the second camera can be used to continuously capture the preset second number of frame images.
  • the terminal may acquire and record the terminal to capture the preset second number of frame images by using a gravity sensor, a gyroscope, or the like.
  • the degree of jitter of the terminal in each frame of image, the degree of jitter of the terminal can be represented, for example, by accelerations in three directions of three-dimensional coordinate systems X, Y, and Z.
  • the terminal acquires a recorded degree of jitter of the terminal when capturing each frame image in the preset first number of frame images, and acquires a record in capturing the preset second number of frame images.
  • the degree of jitter of the terminal at each frame of the image.
  • the terminal determines, in the preset first number of frame images, a first image that is less than or equal to a preset second jitter level of the terminal, and determines a corresponding one of the preset second number of frame images.
  • the degree of jitter of the terminal is less than or equal to a second image of a preset third jitter level.
  • the preset second jitter level and the preset third jitter level may be respectively determined according to performance parameters of the first camera and the second camera, and the preset second jitter level and the preset third jitter level may be Equal or not.
  • the size relationship between the preset first jitter level, the preset second jitter level, and the preset third jitter level is not limited.
  • the terminal determines, according to the pre-recorded degree of jitter, the first image corresponding to the degree of jitter of the corresponding terminal that is less than or equal to the preset second jitter degree, and the slave image from the preset first number of frame images. Determining, in the preset second number of frame images, all second images corresponding to the degree of jitter of the terminal being less than or equal to the preset third jitter level, that is, the captured first number of frame images captured from the preset An image captured when the degree of jitter of the terminal is small is found in the second number of frame images.
  • the preset may be considered to be appropriately increased. And comparing the degree of jitter of each frame of the preset first number of frame images with the increased degree of the second jitter of the preset, until the preset first number of frame images Finding at least one image corresponding to the degree of jitter of the terminal is less than or equal to the increased degree of the second jitter.
  • the preset second number of frame images does not have an image corresponding to the degree of jitter of the terminal being less than or equal to the preset third jitter level, then it may be considered to appropriately increase the preset third jitter level. Comparing the degree of jitter of each of the preset second number of frame images corresponding to the terminal to the increased third jitter level until at least 1 is found from the preset second number of frame images The image corresponding to the jitter of the terminal is less than or equal to the image of the preset third jitter level.
  • the terminal performs a synthesis process on the first image and the second image by using a preset algorithm to obtain a photographed image.
  • the preset algorithm may specifically be a linear superposition synthesis algorithm.
  • the terminal may synthesize the first image and the second image by using a linear superposition synthesis algorithm to obtain a photographed image.
  • the terminal when detecting the input photographing instruction, the terminal captures a preset first number of frame images by using the first camera, and acquires a record of capturing the preset first number of frame images by using the first camera. If the degree of jitter of the terminal is greater than or equal to the preset first jitter level, the terminal captures the preset second number of frame images by using the second camera after experiencing the preset duration; if less than the preset a degree of jitter, the terminal directly captures a preset second number of frame images by using the second camera, and finds a jitter corresponding to the terminal from the captured first number of frame images and the preset second number of frame images.
  • the image captured when the degree is small, and then the image captured by the corresponding terminal is combined to obtain a photographed image by using a preset algorithm, and the image is captured when the degree of jitter of the terminal is small as much as possible, and the degree of jitter of the terminal is selected.
  • the image captured in the hour is synthesized, which can
  • FIG. 3 is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes:
  • the detecting module 301 is configured to detect the input photographing instruction.
  • the capturing module 302 is configured to capture a preset first number of frame images by using the first camera when the detecting module detects the photographing instruction.
  • the capturing module 302 is further configured to capture a preset second number of frame images by using the second camera.
  • the synthesizing module 303 is configured to perform a synthesizing process on the preset first quantity frame image and the preset second quantity frame image by using a preset algorithm.
  • the specific manner in which the capturing module 302 captures a preset second number of frame images by using the second camera is:
  • the second camera is used to capture a preset second number of frame images.
  • the capturing module 302 includes:
  • the first obtaining unit 3020 is configured to acquire a degree of jitter of the terminal when the first frame image in the preset first number of frame images is captured by using the first camera.
  • the determining unit 3021 is configured to determine whether the degree of jitter of the terminal is greater than or equal to a preset first jitter level.
  • the capturing unit 3022 is configured to: when the determination result of the determining unit is YES, capture the preset second number of frame images by using the second camera after experiencing the preset time length.
  • the capturing unit 3022 is further configured to: when the determination result of the determining unit is negative, capture the preset second number of frame images by using the second camera.
  • the synthesizing module 303 includes:
  • the second obtaining unit 3030 is configured to acquire, when the image of each frame in the preset first number of frame images is captured, the degree of jitter of the terminal, and acquire the record by capturing the preset second quantity. The degree of jitter of the terminal at each frame of the image in the frame image.
  • the determining unit 3031 is configured to determine, in the preset first number of frame images, a first image corresponding to a degree of jitter of the terminal that is less than or equal to a preset second jitter level, and determine the preset second number of frame images Corresponding to a second image in which the degree of jitter of the terminal is less than or equal to a preset third jitter level.
  • the synthesizing unit 3032 is configured to perform a synthesizing process on the first image and the second image by using a preset algorithm to obtain a photographed image.
  • the preset algorithm includes a linear superposition synthesis algorithm.
  • the terminal when detecting the input photographing instruction, the terminal captures a preset first number of frame images by using the first camera, and captures a preset second number of frame images by using the second camera, and then uses a preset algorithm to Presetting the first number of frame images and the preset second number of frame images for synthesizing processing to obtain a composite image, which can eliminate the smear blur phenomenon of the image during photographing and improve the quality of the photographed image.
  • FIG. 4 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes: a processor 401, a user interface 402, a network interface 403, and a memory 404.
  • the processor 401, the user interface 402, the network interface 403, and the memory 404 in the terminal may be connected by a bus or other means.
  • a bus connection is taken as an example.
  • the user interface 402 is a medium for realizing interaction and information exchange between the user and the terminal, and the specific embodiment thereof may include a display for output, a touch screen, a keyboard for input, and an image for capturing The camera and so on, it should be noted that the display screen and the touch screen here can be integrated design, the keyboard can be either a physical keyboard or a touch screen virtual keyboard, and can also be combined with physical and touch screen virtual.
  • the keyboard may specifically be a dual camera, including a first camera and a second camera.
  • the processor 401 (or CPU (Central Processing Unit)) is a computing core and a control core of the terminal, and can parse various types of instructions in the terminal and process various types of data of the terminal. For example, the CPU can be used for parsing.
  • CPU Central Processing Unit
  • Memory 404 is a memory device in the terminal for storing programs and data. It can be understood that the memory 404 herein may include the built-in memory of the terminal, and may also include the extended memory supported by the terminal.
  • the memory 404 provides a storage space, which stores the operating system of the terminal, and may include, but is not limited to, a Windows system (an operating system), an Android (Android, a mobile operating system) system, and an IOS (a mobile operating system). ) System and so on.
  • the processor 401 is configured to execute a program stored in the memory 404. among them:
  • the processor 401 is configured to capture a preset first number of frame images by using the first camera when detecting a photographing instruction input through the user interface 402.
  • the processor 401 is further configured to capture a preset second number of frame images by using the second camera.
  • the processor 401 is further configured to perform a synthesis process on the preset first quantity frame image and the preset second quantity frame image by using a preset algorithm.
  • the specific manner in which the processor 401 captures a preset second number of frame images by using the second camera is:
  • the second camera is used to capture a preset second number of frame images.
  • the specific manner in which the processor 401 captures a preset second number of frame images by using the second camera is:
  • the second camera captures the preset second number of frame images.
  • the specific manner in which the processor 401 performs a synthesis process on the preset first quantity frame image and the preset second quantity frame image by using a preset algorithm is:
  • the first image and the second image are combined and processed by a preset algorithm to obtain a photographed image.
  • the preset algorithm includes a linear superposition synthesis algorithm.
  • the processor 401, the user interface 402, and the network interface 403 described in the embodiments of the present invention may implement the implementation manner of the terminal described in the image processing methods provided by the embodiment of the present invention.
  • the implementation of the terminal described in FIG. 3 is performed in the embodiment of the present invention, and details are not described herein again.
  • the terminal when detecting the input photographing instruction, the terminal captures a preset first number of frame images by using the first camera, and captures a preset second number of frame images by using the second camera, and then uses a preset algorithm to Presetting the first number of frame images and the preset second number of frame images for synthesizing processing to obtain a composite image, which can eliminate the smear blur phenomenon of the image during photographing and improve the quality of the photographed image.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

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

Abstract

本发明实施例提供了一种图像处理方法及终端,所述方法包括:终端在检测到输入的拍照指令时,利用第一摄像头捕获预设第一数量帧图像;所述终端利用第二摄像头捕获预设第二数量帧图像;所述终端利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理。通过本发明实施例可以消除拍照时图像的拖影模糊现象,提升拍照图像的质量。

Description

一种图像处理方法及终端
本申请要求于2016年8月31日提交中国专利局,申请号为201610799795.6、发明名称为“一种图像处理方法及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及图像处理技术领域,具体涉及一种图像处理方法及终端。
背景技术
随着电子技术的飞速发展,智能手机、平板电脑等终端日益普及,终端上摄像头的成像质量越来越高,利用终端进行拍照已成为越来越多用户的首选。然而,在实践中发现,用户在手持终端进行拍照时经常会因为手抖或者拍照对象处于快速运动状态而造成拍照图像存在严重的拖影模糊现象,拍照图像质量较差,难以令人满意。
发明内容
本发明实施例提供了一种图像处理方法及终端,可以消除拍照时图像的拖影模糊现象,提升拍照图像的质量。
本发明实施例第一方面提供了一种图像处理方法,包括:
终端在检测到输入的拍照指令时,利用第一摄像头捕获预设第一数量帧图像。
所述终端利用第二摄像头捕获预设第二数量帧图像。
所述终端利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理。
可选的,所述终端利用第二摄像头捕获预设第二数量帧图像,包括:
所述终端在利用所述第一摄像头捕获到所述预设第一数量帧图像中的最后一帧图像时,利用第二摄像头捕获预设第二数量帧图像。
可选的,所述终端利用第二摄像头捕获预设第二数量帧图像,包括:
所述终端获取在利用所述第一摄像头捕获所述预设第一数量帧图像中的第一帧图像时,所述终端的抖动程度。
所述终端判断所述终端的抖动程度是否大于或等于预设第一抖动程度。
若所述终端的抖动程度大于或等于预设第一抖动程度,则所述终端在经历预设时长后,利用第二摄像头捕获预设第二数量帧图像。
若所述终端的抖动程度不是大于或等于预设第一抖动程度,则所述终端利用所述第二摄像头捕获所述预设第二数量帧图像。
可选的,所述终端利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理,包括:
所述终端获取记录的在捕获所述预设第一数量帧图像中的每一帧图像时,所述终端的抖动程度,以及获取记录的在捕获所述预设第二数量帧图像中的每一帧图像时,所述终端的抖动程度。
所述终端确定所述预设第一数量帧图像中对应所述终端的抖动程度小于或等于预设第二抖动程度的第一图像,以及确定所述预设第二数量帧图像中对应所述终端的抖动程度小于或等于预设第三抖动程度的第二图像。
所述终端利用预设算法对所述第一图像和所述第二图像进行合成处理,以得到拍照图像。
可选的,所述预设算法包括线性叠加合成算法。
本发明实施例第二方面提供了一种终端,包括:
检测模块,设置为检测输入的拍照指令。
捕获模块,设置为在所述检测模块检测到所述拍照指令时,利用第一摄像头捕获预设第一数量帧图像。
所述捕获模块,还设置为利用第二摄像头捕获预设第二数量帧图像。
合成模块,设置为利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理。
可选的,所述捕获模块利用第二摄像头捕获预设第二数量帧图像的具体方式为:
在利用所述第一摄像头捕获到所述预设第一数量帧图像中的最后一帧图像时,利用第二摄像头捕获预设第二数量帧图像。
可选的,所述捕获模块包括:
第一获取单元,设置为获取在利用所述第一摄像头捕获所述预设第一数量帧图像中的第一帧图像时,所述终端的抖动程度。
判断单元,设置为判断所述终端的抖动程度是否大于或等于预设第一抖动程度。
捕获单元,设置为在所述判断单元的判断结果为是时,在经历预设时长后,利用第二摄像头捕获预设第二数量帧图像。
所述捕获单元,还设置为在所述判断单元的判断结果为否时,利用所述第二摄像头捕获所述预设第二数量帧图像。
可选的,所述合成模块包括:
第二获取单元,设置为获取记录的在捕获所述预设第一数量帧图像中的每一帧图像时,所述终端的抖动程度,以及获取记录的在捕获所述预设第二数量帧图像中的每一帧图像时,所述终端的抖动程度。
确定单元,设置为确定所述预设第一数量帧图像中对应所述终端的抖动程度小于或等于预设第二抖动程度的第一图像,以及确定所述预设第二数量帧图像中对应所述终端的抖动程度小于或等于预设第三抖动程度的第二图像。
合成单元,设置为利用预设算法对所述第一图像和所述第二图像进行合成处理,以得到拍照图像。
可选的,所述预设算法包括线性叠加合成算法。
本发明实施例第三方面提供了一种终端,包括:处理器、第一摄像头、第二摄像头和存储器,所述存储器存储有程序,所述处理器调用所述存储器中存储的所述程序,用于在检测到输入的拍照指令时,利用所述第一摄像头捕获预设第一数量帧图像,并利用所述第二摄像头捕获预设第二数量帧图像,以及利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理。
本发明实施例中,终端在检测到输入的拍照指令时,利用第一摄像头捕获预设第一数量帧图像,并利用第二摄像头捕获预设第二数量帧图像,再利用预设算法对该预设第一数量帧图像和该预设第二数量帧图像进行合成处理,得到合成图像,可以消除拍照时图像的拖影模糊现象,提升拍照图像的质量。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种图像处理方法的第一实施例流程示意图;
图2是本发明实施例提供的一种图像处理方法的第二实施例流程示意图;
图3是本发明实施例提供的一种终端的第一实施例结构示意图;
图4是本发明实施例提供的一种终端的第二实施例结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例中所描述的终端具体可以是具备双摄像头的智能手机、平板电脑、移动互联网设备(mobile internet device,MID)以及智能可穿戴设备等。
请参阅图1,为本发明实施例提供的一种图像处理方法的第一实施例流程示意图。本实施例中所描述的图像处理方法,包括以下步骤:
101、终端在检测到输入的拍照指令时,利用第一摄像头捕获预设第一数量帧图像。
具体的,用户可以通过触摸操作/按压物理按键/语音控制/手势控制等方式输入拍照指令,该终端在检测到该用户输入的该拍照指令时,利用该第一摄像头连续地捕获预设第一数量帧图像,其中,该预设第一数量例如可以为3,即该终端利用该第一摄像头连续地捕获3帧图像。
102、所述终端利用第二摄像头捕获预设第二数量帧图像。
具体实现中,该终端可以在利用该第一摄像头捕获到该预设第一数量帧图像中的最后一帧图像时,再利用该第二摄像头连续地捕获预设第二数量帧图像,其中,该预设第二数量例如可以为6,即该终端利用该第一摄像头捕获到该3帧图像中的第3帧图像时,利用该第二摄像头连续地捕获6帧图像。
103、所述终端利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理。
其中,该预设算法具体可以是线性叠加合成算法。
具体的,该终端可以利用线性叠加合成算法将该预设第一数量帧图像与该预设第二数量帧图像合成,以得到拍照图像。
其中,该第一摄像头和该第二摄像头中,可以一个为普通摄像头,另一个为广角摄像头。本发明实施例中可以是该第一摄像头为普通摄像头,该第二摄像头为广角摄像头。
在一些可行的实施方式中,该终端在利用该第一摄像头连续地捕获该预设第一数量帧图像的过程中,可以实时地对捕获到的图像进行解析,确定捕获到的图像存在拖影模糊的区域,进而该终端在利用该第二摄像头捕获该预设第二数量帧图像时,可以将焦点自动对焦到上述拖影模糊区域对应的拍照对象,以通过该第二摄像头捕获上述拖影模糊区域对应的拍照对象的清晰图像,从而通过图像合成可以消除上述拖影模糊区域。
可以理解的是,根据对通过图像合成得到的拍照图像的效果的不同需求,可以采用其它类型的算法进行图像合成,本发明实施例不做限定。
需要说明的是,对于该预设第一数量与该预设第二数量之间的大小关系不做限制,考虑到对该预设第一数量帧图像和该预设第二数量帧图像进行像合成处理需要时间,为保证用户获得良好的拍照体验,在输入拍照指令后可以及时看到拍照图像,可以限制该预设第一数量与该预设第二数量的总和不得超过预设数值,例如,该预设第一数量与该预设第二数量的总和不超过9,上述仅是以该预设第一数量为3,该预设第二数量为6举例,当然,也可以是该预设第一数量为6,该预设第二数量为3,等等。
本发明实施例中,终端在检测到输入的拍照指令时,利用第一摄像头捕获预设第一数量帧图像,并利用第二摄像头捕获预设第二数量帧图像,再利用预设算法对该预设第一数量帧图像和该预设第二数量帧图像进行合成处理,得到合成图像,可以消除拍照时图像的拖影模糊现象,提升拍照图像的质量。
请参阅图2,为本发明实施例提供的一种图像处理方法的第二实施例流程示意图。本实施例中所描述的图像处理方法,包括以下步骤:
201、终端在检测到输入的拍照指令时,利用第一摄像头捕获预设第一数量帧图像。
具体的,用户可以通过触摸操作/按压物理按键/语音控制/手势控制等方式输入拍照指令,该终端在检测到该用户输入的该拍照指令时,利用该第一摄像头连续地捕获预设第一数量帧图像,其中,该预设第一数量例如可以为3,即该终端利用该第一摄像头连续地捕获3帧图像。
同时,该终端在利用该第一摄像头连续地捕获该预设第一数量帧图像时,可以利用重力传感器、陀螺仪等获取并记录该终端捕获该终端捕获该预设第一数量帧图像中的每一帧图像时该终端的抖动程度,该终端抖动程度例如可以通过三维坐标系X、Y、Z三个方向上的加速度表示。
202、所述终端获取在利用所述第一摄像头捕获所述预设第一数量帧图像中的第一帧图像时,所述终端的抖动程度。
203、所述终端判断所述终端的抖动程度是否大于或等于预设第一抖动程度,若是,则执行步骤204;若否,则执行步骤205。
其中,该预设第一抖动程度具体可以是对图像清晰度影响较大时的抖动程度,其具体值可以根据实际需求灵活调整,本发明实施例不做限定。
具体的,该终端获取预先记录的在利用该第一摄像头捕获该预设第一数量帧图像中的第一帧图像时,该终端的抖动程度,并与该预设第一抖动程度进行比较,如果大于或等于该预设第一抖动程度,则执行步骤204;如果小于该预设第一抖动程度,则执行步骤205。
204、所述终端在经历预设时长后,利用第二摄像头捕获预设第二数量帧图像。
具体的,该终端在利用该第一摄像头捕获该预设第一数量帧图像中的第一帧图像时,如果该终端的抖动程度大于或等于该预设第一抖动程度,即该终端抖动较严重时,可以等待预设时长后,再利用该第二摄像头捕获该预设第二数量帧图像,可以通过延迟一段时间,尽可能避开在该终端抖动较严重时利用该第二摄像头捕获该预设第二数量帧图像。
其中,对于该预设时长的选择,例如可以是该终端利用该第一摄像头捕获该预设第一数量帧图像所经历的时长,即在该终端利用该第一摄像头捕获该预设第一数量帧图像中的第一帧图像时,如果该终端的抖动程度大于或等于该预设第一抖动程度,则该终端在利用该第一摄像头捕获到该预设第一数量帧图像中的最后一帧图像时,利用该第二摄像头连续地捕获预设第二数量帧图。对于该预设时长的选择,本发明实施例不做限定。
在一些可行的实施方式中,该终端等待该预设时长后,也可以获取此时该终端的抖动程度,如果此时的该终端的抖动程度小于该预设第一抖动程度,则该终端才利用该第二摄像头捕获该预设第二数量帧图像。
205、所述终端利用所述第二摄像头捕获所述预设第二数量帧图像。
具体的,该终端在利用该第一摄像头捕获该预设第一数量帧图像中的第一帧图像时,如果该终端的抖动程度小于该预设第一抖动程度,即该终端抖动较轻微或者没有抖动时,可以立即利用该第二摄像头连续地捕获该预设第二数量帧图像。
同样地,该终端在利用该第二摄像头连续地捕获该预设第二数量帧图像时,可以利用重力传感器、陀螺仪等获取并记录该终端捕获该终端捕获该预设第二数量帧图像中的每一帧图像时该终端的抖动程度,该终端抖动程度例如可以通过三维坐标系X、Y、Z三个方向上的加速度表示。
206、所述终端获取记录的在捕获所述预设第一数量帧图像中的每一帧图像时,所述终端的抖动程度,以及获取记录的在捕获所述预设第二数量帧图像中的每一帧图像时,所述终端的抖动程度。
207、所述终端确定所述预设第一数量帧图像中对应所述终端的抖动程度小于或等于预设第二抖动程度的第一图像,以及确定所述预设第二数量帧图像中对应所述终端的抖动程度小于或等于预设第三抖动程度的第二图像。
其中,该预设第二抖动程度和该预设第三抖动程度可以分别根据该第一摄像头和该第二摄像头的性能参数确定,该预设第二抖动程度和该预设第三抖动程度可以相等,也可以不等。同时,对于该预设第一抖动程度、该预设第二抖动程度和该预设第三抖动程度三者之间的大小关系也不做限定。
具体的,该终端根据预先记录的抖动程度,分别从该预设第一数量帧图像中确定出全部的对应该终端的抖动程度小于或等于该预设第二抖动程度的第一图像,以及从该预设第二数量帧图像中确定出全部的对应该终端的抖动程度小于或等于该预设第三抖动程度的第二图像,即从捕获的该预设第一数量帧图像和该预设第二数量帧图像中找出对应该终端的抖动程度较小时捕获的图像。
在一些可行的实施方式中,如果该预设第一数量帧图像中没有对应该终端的抖动程度小于或等于该预设第二抖动程度的图像,则此时可以考虑适当增大该预设第二抖动程度,再将该预设第一数量帧图像中每一帧图像对应该终端的抖动程度与增大后的该预设第二抖动程度进行比较,直到从该预设第一数量帧图像中找出至少1张对应该终端的抖动程度小于或等于增大后的该预设第二抖动程度的图像。同样地,如果该预设第二数量帧图像中没有对应该终端的抖动程度小于或等于该预设第三抖动程度的图像,则此时可以考虑适当增大该预设第三抖动程度,再将该预设第二数量帧图像中每一帧图像对应该终端的抖动程度与增大后的该预设第三抖动程度进行比较,直到从该预设第二数量帧图像中找出至少1张对应该终端的抖动程度小于或等于增大后的该预设第三抖动程度的图像。
208、所述终端利用预设算法对所述第一图像和所述第二图像进行合成处理,以得到拍照图像。
其中,该预设算法具体可以是线性叠加合成算法。
具体的,该终端可以利用线性叠加合成算法将该第一图像与该第二图像合成,以得到拍照图像。
本发明实施例中,终端在检测到输入的拍照指令时,利用第一摄像头捕获预设第一数量帧图像,获取记录的在利用该第一摄像头捕获该预设第一数量帧图像中的第一帧图像时该终端的抖动程度,如果大于或等于预设第一抖动程度,则该终端在经历预设时长后,利用第二摄像头捕获预设第二数量帧图像;如果小于该预设第一抖动程度,则该终端直接利用第二摄像头捕获预设第二数量帧图像,并从捕获的该预设第一数量帧图像和该预设第二数量帧图像中找出对应该终端的抖动程度较小时捕获的图像,进而利用预设算法对对应该终端的抖动程度较小时捕获的图像进行合成处理得到拍照图像,通过尽可能的在终端抖动程度较小时捕获图像,以及选取终端抖动程度较小时捕获的图像进行合成处理,可以消除拍照时图像的拖影模糊现象,提升拍照图像的质量。
请参阅图3,为本发明实施例提供的一种终端的第一实施例结构示意图。本实施例中所描述的终端,包括:
检测模块301,设置为检测输入的拍照指令。
捕获模块302,设置为在所述检测模块检测到所述拍照指令时,利用第一摄像头捕获预设第一数量帧图像。
所述捕获模块302,还设置为利用第二摄像头捕获预设第二数量帧图像。
合成模块303,设置为利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理。
在一些可行的实施方式中,所述捕获模块302利用第二摄像头捕获预设第二数量帧图像的具体方式为:
在利用所述第一摄像头捕获到所述预设第一数量帧图像中的最后一帧图像时,利用第二摄像头捕获预设第二数量帧图像。
在一些可行的实施方式中,所述捕获模块302包括:
第一获取单元3020,设置为获取在利用所述第一摄像头捕获所述预设第一数量帧图像中的第一帧图像时,所述终端的抖动程度。
判断单元3021,设置为判断所述终端的抖动程度是否大于或等于预设第一抖动程度。
捕获单元3022,设置为在所述判断单元的判断结果为是时,在经历预设时长后,利用第二摄像头捕获预设第二数量帧图像。
所述捕获单元3022,还设置为在所述判断单元的判断结果为否时,利用所述第二摄像头捕获所述预设第二数量帧图像。
在一些可行的实施方式中,所述合成模块303包括:
第二获取单元3030,设置为获取记录的在捕获所述预设第一数量帧图像中的每一帧图像时,所述终端的抖动程度,以及获取记录的在捕获所述预设第二数量帧图像中的每一帧图像时,所述终端的抖动程度。
确定单元3031,设置为确定所述预设第一数量帧图像中对应所述终端的抖动程度小于或等于预设第二抖动程度的第一图像,以及确定所述预设第二数量帧图像中对应所述终端的抖动程度小于或等于预设第三抖动程度的第二图像。
合成单元3032,设置为利用预设算法对所述第一图像和所述第二图像进行合成处理,以得到拍照图像。
在一些可行的实施方式中,所述预设算法包括线性叠加合成算法。
需要说明的是,本发明实施例的终端的各功能模块以及单元的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
本发明实施例中,终端在检测到输入的拍照指令时,利用第一摄像头捕获预设第一数量帧图像,并利用第二摄像头捕获预设第二数量帧图像,再利用预设算法对该预设第一数量帧图像和该预设第二数量帧图像进行合成处理,得到合成图像,可以消除拍照时图像的拖影模糊现象,提升拍照图像的质量。
请参阅图4,为本发明实施例提供的一种终端的第二实施例结构示意图。本实施例中所描述的终端,包括:处理器401、用户接口402、网络接口403及存储器404。其中,终端内的处理器401、用户接口402、网络接口403及存储器404可通过总线或其他方式连接,在本发明实施例所示图4中以通过总线连接为例。
其中,用户接口402是实现用户与终端进行交互和信息交换的媒介,其具体体现可以包括用于输出的显示屏(Display)、触控屏、用于输入的键盘(Keyboard)、用于捕获图像的摄像头等等,需要说明的是,此处的显示屏和触控屏可以为一体化设计,键盘既可以为实体键盘,也可以为触屏虚拟键盘,还可以为实体与触屏虚拟相结合的键盘,摄像头具体可以是双摄像头,包括第一摄像头和第二摄像头。处理器401(或称CPU(Central Processing Unit,中央处理器))是终端的计算核心以及控制核心,其可以解析终端内的各类指令以及处理终端的各类数据,例如:CPU可以用于解析用户向终端所发送的开关机指令,并控制终端进行开关机操作;再如:CPU可以在终端内部结构之间传输各类交互数据,等等。存储器(Memory)404是终端中的记忆设备,用于存放程序和数据。可以理解的是,此处的存储器404既可以包括终端的内置存储器,当然也可以包括终端所支持的扩展存储器。存储器404提供存储空间,该存储空间存储了终端的操作系统,可包括但不限于:Windows系统(一种操作系统)、Android(安卓,一种移动操作系统)系统、IOS(一种移动操作系统)系统等等。处理器401 用于执行存储器404存储的程序。其中:
所述处理器401,用于在检测到通过用户接口402输入的拍照指令时,利用第一摄像头捕获预设第一数量帧图像。
所述处理器401,还用于利用第二摄像头捕获预设第二数量帧图像。
所述处理器401,还用于利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理。
在一些可行的实施方式中,所述处理器401利用第二摄像头捕获预设第二数量帧图像的具体方式为:
在利用所述第一摄像头捕获到所述预设第一数量帧图像中的最后一帧图像时,利用第二摄像头捕获预设第二数量帧图像。
在一些可行的实施方式中,所述处理器401利用第二摄像头捕获预设第二数量帧图像的具体方式为:
获取在利用所述第一摄像头捕获所述预设第一数量帧图像中的第一帧图像时,所述终端的抖动程度。
判断所述终端的抖动程度是否大于或等于预设第一抖动程度。
若是,则在经历预设时长后,利用第二摄像头捕获预设第二数量帧图像。
若否,则利用所述第二摄像头捕获所述预设第二数量帧图像。
在一些可行的实施方式中,所述处理器401利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理的具体方式为:
获取记录的在捕获所述预设第一数量帧图像中的每一帧图像时,所述终端的抖动程度,以及获取记录的在捕获所述预设第二数量帧图像中的每一帧图像时,所述终端的抖动程度。
确定所述预设第一数量帧图像中对应所述终端的抖动程度小于或等于预设第二抖动程度的第一图像,以及确定所述预设第二数量帧图像中对应所述终端的抖动程度小于或等于预设第三抖动程度的第二图像。
利用预设算法对所述第一图像和所述第二图像进行合成处理,以得到拍照图像。
在一些可行的实施方式中,所述预设算法包括线性叠加合成算法。
具体实现中,本发明实施例中所描述的处理器401、用户接口402、网络接口403可执行本发明实施例图1和图2提供的图像处理方法中所描述的终端的实现方式,也可执行本发明实施例图3所描述的终端的实现方式,在此不再赘述。
本发明实施例中,终端在检测到输入的拍照指令时,利用第一摄像头捕获预设第一数量帧图像,并利用第二摄像头捕获预设第二数量帧图像,再利用预设算法对该预设第一数量帧图像和该预设第二数量帧图像进行合成处理,得到合成图像,可以消除拍照时图像的拖影模糊现象,提升拍照图像的质量。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,简称RAM)等。
以上对本发明实施例所提供的一种图像处理方法及终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (11)

  1. 一种图像处理方法,其特征在于,包括:
    终端在检测到输入的拍照指令时,利用第一摄像头捕获预设第一数量帧图像;
    所述终端利用第二摄像头捕获预设第二数量帧图像;
    所述终端利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理。
  2. 根据权利要求1所述的方法,其特征在于,所述终端利用第二摄像头捕获预设第二数量帧图像,包括:
    所述终端在利用所述第一摄像头捕获到所述预设第一数量帧图像中的最后一帧图像时,利用第二摄像头捕获预设第二数量帧图像。
  3. 根据权利要求1所述的方法,其特征在于,所述终端利用第二摄像头捕获预设第二数量帧图像,包括:
    所述终端获取在利用所述第一摄像头捕获所述预设第一数量帧图像中的第一帧图像时,所述终端的抖动程度;
    所述终端判断所述终端的抖动程度是否大于或等于预设第一抖动程度;
    若所述终端的抖动程度大于或等于预设第一抖动程度,则所述终端在经历预设时长后,利用第二摄像头捕获预设第二数量帧图像;
    若所述终端的抖动程度不是大于或等于预设第一抖动程度,则所述终端利用所述第二摄像头捕获所述预设第二数量帧图像。
  4. 根据权利要求1~3中任一项所述的方法,其特征在于,所述终端利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理,包括:
    所述终端获取记录的在捕获所述预设第一数量帧图像中的每一帧图像时,所述终端的抖动程度,以及获取记录的在捕获所述预设第二数量帧图像中的每一帧图像时,所述终端的抖动程度;
    所述终端确定所述预设第一数量帧图像中对应所述终端的抖动程度小于或等于预设第二抖动程度的第一图像,以及确定所述预设第二数量帧图像中对应所述终端的抖动程度小于或等于预设第三抖动程度的第二图像;
    所述终端利用预设算法对所述第一图像和所述第二图像进行合成处理,以得到拍照图像。
  5. 根据权利要求1所述的方法,其特征在于,
    所述预设算法包括线性叠加合成算法。
  6. 一种终端,其特征在于,包括:
    检测模块,设置为检测输入的拍照指令;
    捕获模块,设置为在所述检测模块检测到所述拍照指令时,利用第一摄像头捕获预设第一数量帧图像;
    所述捕获模块,还设置为利用第二摄像头捕获预设第二数量帧图像;
    合成模块,设置为利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理。
  7. 根据权利要求6所述的终端,其特征在于,所述捕获模块利用第二摄像头捕获预设第二数量帧图像的具体方式为:
    在利用所述第一摄像头捕获到所述预设第一数量帧图像中的最后一帧图像时,利用第二摄像头捕获预设第二数量帧图像。
  8. 根据权利要求6所述的终端,其特征在于,所述捕获模块包括:
    第一获取单元,设置为获取在利用所述第一摄像头捕获所述预设第一数量帧图像中的第一帧图像时,所述终端的抖动程度;
    判断单元,设置为判断所述终端的抖动程度是否大于或等于预设第一抖动程度;
    捕获单元,设置为在所述判断单元的判断结果为是时,在经历预设时长后,利用第二摄像头捕获预设第二数量帧图像;
    所述捕获单元,还设置为在所述判断单元的判断结果为否时,利用所述第二摄像头捕获所述预设第二数量帧图像。
  9. 根据权利要求6~8中任一项所述的终端,其特征在于,所述合成模块包括:
    第二获取单元,设置为获取记录的在捕获所述预设第一数量帧图像中的每一帧图像时,所述终端的抖动程度,以及获取记录的在捕获所述预设第二数量帧图像中的每一帧图像时,所述终端的抖动程度;
    确定单元,设置为确定所述预设第一数量帧图像中对应所述终端的抖动程度小于或等于预设第二抖动程度的第一图像,以及确定所述预设第二数量帧图像中对应所述终端的抖动程度小于或等于预设第三抖动程度的第二图像;
    合成单元,设置为利用预设算法对所述第一图像和所述第二图像进行合成处理,以得到拍照图像。
  10. 根据权利要求6所述的终端,其特征在于,
    所述预设算法包括线性叠加合成算法。
  11. 一种终端,其特征在于,包括:处理器、第一摄像头、第二摄像头和存储器,所述存储器存储有程序,所述处理器调用所述存储器中存储的所述程序,用于在检测到输入的拍照指令时,利用所述第一摄像头捕获预设第一数量帧图像,并利用所述第二摄像头捕获预设第二数量帧图像,以及利用预设算法对所述预设第一数量帧图像和所述预设第二数量帧图像进行合成处理。
PCT/CN2016/103998 2016-08-31 2016-10-31 一种图像处理方法及终端 WO2018040269A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610799795.6A CN106331497B (zh) 2016-08-31 2016-08-31 一种图像处理方法及终端
CN201610799795.6 2016-08-31

Publications (1)

Publication Number Publication Date
WO2018040269A1 true WO2018040269A1 (zh) 2018-03-08

Family

ID=57786291

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103998 WO2018040269A1 (zh) 2016-08-31 2016-10-31 一种图像处理方法及终端

Country Status (2)

Country Link
CN (1) CN106331497B (zh)
WO (1) WO2018040269A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116582741A (zh) * 2020-05-07 2023-08-11 华为技术有限公司 一种拍摄方法及设备

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713656B (zh) * 2017-01-13 2020-03-31 努比亚技术有限公司 一种拍摄方法和移动终端
CN107360369B (zh) * 2017-07-18 2021-06-08 深圳天珑无线科技有限公司 摄像装置及摄像装置的拍照方法、计算机可读存储介质
KR102385360B1 (ko) * 2017-09-19 2022-04-12 삼성전자주식회사 이미지 보정을 수행하는 전자 장치 및 그 동작 방법
CN108668075A (zh) * 2018-03-29 2018-10-16 青岛海信移动通信技术股份有限公司 一种拍照方法和装置
CN109218628B (zh) * 2018-09-20 2020-12-08 Oppo广东移动通信有限公司 图像处理方法、装置、电子设备及存储介质
CN109257540B (zh) * 2018-11-05 2021-06-18 浙江舜宇光学有限公司 多摄镜头组的摄影校正方法及摄影装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051836A (zh) * 2012-12-14 2013-04-17 中兴通讯股份有限公司 移动终端防抖动拍照方法和装置
US20130222636A1 (en) * 2009-09-08 2013-08-29 Pantech Co., Ltd. Mobile terminal with multiple cameras and method for image processing using the same
CN103780840A (zh) * 2014-01-21 2014-05-07 上海果壳电子有限公司 一种高品质成像的双摄像成像装置及其方法
CN104954689A (zh) * 2015-06-30 2015-09-30 努比亚技术有限公司 一种利用双摄像头获得照片的方法及拍摄装置
CN105611187A (zh) * 2015-12-22 2016-05-25 歌尔声学股份有限公司 一种基于双摄像头的图像宽动态补偿方法及系统
CN105827964A (zh) * 2016-03-24 2016-08-03 维沃移动通信有限公司 一种图像处理方法及移动终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11155096A (ja) * 1997-11-21 1999-06-08 Canon Inc 撮像装置、コンピュータ読み取り可能な記憶媒体及び画像処理装置
CN103442169B (zh) * 2013-07-29 2016-10-05 北京智谷睿拓技术服务有限公司 操纵图像采集设备的拍摄功能的方法和图像采集设备
TWI549500B (zh) * 2014-09-12 2016-09-11 聚晶半導體股份有限公司 影像擷取方法及使用此方法之影像擷取裝置
CN105578023A (zh) * 2015-05-27 2016-05-11 宇龙计算机通信科技(深圳)有限公司 一种快速拍摄图像方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130222636A1 (en) * 2009-09-08 2013-08-29 Pantech Co., Ltd. Mobile terminal with multiple cameras and method for image processing using the same
CN103051836A (zh) * 2012-12-14 2013-04-17 中兴通讯股份有限公司 移动终端防抖动拍照方法和装置
CN103780840A (zh) * 2014-01-21 2014-05-07 上海果壳电子有限公司 一种高品质成像的双摄像成像装置及其方法
CN104954689A (zh) * 2015-06-30 2015-09-30 努比亚技术有限公司 一种利用双摄像头获得照片的方法及拍摄装置
CN105611187A (zh) * 2015-12-22 2016-05-25 歌尔声学股份有限公司 一种基于双摄像头的图像宽动态补偿方法及系统
CN105827964A (zh) * 2016-03-24 2016-08-03 维沃移动通信有限公司 一种图像处理方法及移动终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116582741A (zh) * 2020-05-07 2023-08-11 华为技术有限公司 一种拍摄方法及设备
CN116582741B (zh) * 2020-05-07 2023-11-28 华为技术有限公司 一种拍摄方法及设备

Also Published As

Publication number Publication date
CN106331497B (zh) 2019-06-11
CN106331497A (zh) 2017-01-11

Similar Documents

Publication Publication Date Title
WO2018040269A1 (zh) 一种图像处理方法及终端
WO2017014415A1 (en) Image capturing apparatus and method of operating the same
WO2018053906A1 (zh) 一种基于双摄像头的拍摄方法、装置和移动终端
WO2020171583A1 (en) Electronic device for stabilizing image and method for operating same
KR101772177B1 (ko) 사진을 획득하기 위한 방법 및 장치
WO2015102317A1 (en) Image processing apparatus and method
WO2015120673A1 (zh) 利用眼球跟踪技术控制拍照对焦的方法、系统及拍照设备
WO2016064248A1 (en) Electronic device and method for processing image
WO2018128472A1 (en) Virtual reality experience sharing
WO2014133278A1 (en) Apparatus and method for positioning image area using image sensor location
WO2014133277A1 (en) Apparatus and method for processing an image in device
WO2018040444A1 (zh) 一种双摄像头拍照控制方法、拍照控制装置及终端
WO2018053908A1 (zh) 一种双摄像头拍摄方法、系统及终端
WO2018021736A1 (en) Apparatus and method for processing a beauty effect
WO2018040174A1 (zh) 一种设置预览分辨率的方法、装置及终端
WO2018174505A1 (en) Methods and apparatus for generating video content
WO2018068533A1 (zh) 一种人脸检测的方法及装置
WO2015126060A1 (ko) 이미지를 처리하기 위한 전자 장치 및 방법
WO2013094891A1 (en) Digital photographing apparatus and method of controlling the same
WO2018040443A1 (zh) 一种拍照方法和装置
WO2018036160A1 (zh) 应用程序界面的显示方法和装置、终端和存储介质
WO2017213439A1 (ko) 멀티 스티커를 이용한 영상 생성 방법 및 장치
WO2020080845A1 (en) Electronic device and method for obtaining images
WO2020076128A1 (en) Method and electronic device for switching between first lens and second lens
WO2021049855A1 (en) Method and electronic device for capturing roi

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: 16914832

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: 16914832

Country of ref document: EP

Kind code of ref document: A1