WO2019037781A1 - 终端及其防抖拍照方法、存储装置 - Google Patents

终端及其防抖拍照方法、存储装置 Download PDF

Info

Publication number
WO2019037781A1
WO2019037781A1 PCT/CN2018/102295 CN2018102295W WO2019037781A1 WO 2019037781 A1 WO2019037781 A1 WO 2019037781A1 CN 2018102295 W CN2018102295 W CN 2018102295W WO 2019037781 A1 WO2019037781 A1 WO 2019037781A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
picture
camera
sharpness
current frame
Prior art date
Application number
PCT/CN2018/102295
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 WO2019037781A1 publication Critical patent/WO2019037781A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Definitions

  • the present invention relates to the field of electronic device technologies, and in particular, to a terminal, an anti-shake photographing method, and a storage device.
  • the camera has become the standard configuration of most mobile terminals to provide users with camera functions.
  • the camera function of mobile terminals is used more and more frequently, which brings great fun and convenience to people's life and work.
  • the camera's pixels are getting higher and higher, designed to let users take more clear pictures.
  • a smartphone as an example, after the user opens the camera software, just point the lens at the subject and then click the shutter icon displayed on the screen to get a photo.
  • clicking on the screen usually causes the smartphone to shake slightly.
  • the jitter process lasts for nearly 1 second, and the camera program of the smartphone will also image the subject within 1 second, which will make the subject
  • the imaging becomes blurred.
  • the high-pixel camera is very sensitive to this type of jitter, and the captured picture is more blurred.
  • the so-called full-size preview mode refers to a preview of shooting and imaging by the camera before shooting.
  • each frame of the image acquired by the shooting terminal is the largest size, so that the size change is not required when taking a picture, and can be based on the current Take a picture to generate a photo to complete the photo faster.
  • the shooting terminal caches multiple frames of images captured by the camera at any time, such as three frames, and selects the sharpest one to compare with the subsequent captured images to select the sharpest image. One as a photo.
  • the shooting time interval of three frames in the full-size preview mode is very short, and the three frames of images may be unclear when the shooting terminal is shaken, and if more frames are cached, a larger storage space is required. This will undoubtedly increase or even exceed the limits of the operating system.
  • the present invention provides a terminal and an anti-shake photographing method and storage device thereof, which can improve the anti-shake photographing effect, improve the sharpness of the photographed picture, and require less storage space.
  • an anti-shake photographing method includes:
  • a photographing terminal includes a processor and a camera, a transceiver, and a memory connected to the processor, wherein
  • the transceiver is configured to receive a user instruction
  • the processor is configured to set a shooting according to the user instruction to enter a full-size preview mode
  • the camera is used to capture pictures in full size preview mode
  • the processor is configured to obtain a frame of the clearest picture captured by the camera in the full-size preview mode
  • the memory is used to cache the clearest picture
  • the transceiver is further configured to receive a photographing instruction
  • the camera is also used to take a picture according to the photographing instruction
  • the processor is further configured to compare the sharpness values of one frame of the picture with the clearest picture, and select one of the highest resolution values as the photo to output the photo;
  • the processor is further configured to compare the sharpness values of the current frame and the previous frame after the camera captures each frame of the image and before the next frame is captured. And select one of the highest resolution values as the clearest picture.
  • the storage device stores program data, and the program data can be executed to implement the anti-shake photographing method.
  • the present invention compares one frame of the captured picture with the clearest picture of one frame collected in the full-size preview mode, and selects one of the highest resolution values as the photo, which can improve the anti-shake photo effect and enhance the taken picture.
  • the resolution is clear, and only one frame of picture is buffered in the full-size preview mode, and the required storage space is small. Compared with the case of buffering multiple frames of pictures, the present invention does not increase or exceed the limitation of the operating system.
  • FIG. 1 is a schematic flow chart of an anti-shake photographing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of buffering a clear picture according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a camera application according to an embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of an anti-shake photographing method according to another embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a photographing terminal according to an embodiment of the present invention.
  • the anti-shake photographing method of this embodiment may include steps S11-S14.
  • S11 Receive a user instruction, and accordingly set the shooting to enter the full-size preview mode.
  • the shooting terminal defaults to full size preview mode.
  • the related camera application can be clicked on the shooting terminal, thereby starting the camera and initiating a photo preview request, and the shooting enters the full-size preview mode.
  • the user instruction can be regarded as a trigger operation of the photo preview request, and the shooting terminal enters the full-size preview mode after receiving the photo preview request.
  • the input of the photo preview request may be in various manners, for example, the user clicks a virtual camera button displayed on the screen of the photographing terminal or a physical button such as a shutter on the side of the photographing terminal; and, for example, the photographing terminal is in a time-lapse photographing mode, and the user presets the photograph. Delay, the shooting terminal automatically triggers when it reaches the camera.
  • S12 The clearest picture of a frame captured by the cache camera in full-size preview mode.
  • the shooting terminal acquires the scene in the shooting range in real time through its own camera and images the image.
  • the photographing terminal establishes a cache queue and adds it to the cache queue every time a frame is acquired in the full-size preview mode, that is, the prior art needs to buffer a plurality of frames. In this embodiment, only one frame of the clearest picture is cached.
  • the sharpness value of the current frame and the previous frame is compared, thereby selecting one of the highest resolution values.
  • the clearest picture and cache is compared, thereby selecting one of the highest resolution values.
  • the shooting terminal acquires the sharpness value of the first frame of the picture, and then the camera captures the second frame of the picture, and the shooting terminal acquires The sharpness value of the second frame picture is compared with the sharpness value of the second frame picture. If the sharpness value of the second frame picture is smaller than the sharpness value of the first frame picture, the second frame picture is deleted, and the second frame picture is not buffered, then the camera takes a third frame picture, and the photographing terminal acquires the third frame The sharpness value of the picture is compared to the sharpness value of the first frame of the picture.
  • the sharpness value of the second frame image is greater than the sharpness value of the first frame image, the first frame image is deleted, only the second frame image is cached, then the camera captures the third frame image, and the photographing terminal acquires the third frame image.
  • the sharpness value is compared to the sharpness value of the second frame of the picture. For the case where the sharpness value of the second frame picture is equal to the sharpness value of the first frame picture, considering that the earlier the captured picture deviates from the photographer's shooting intention, the embodiment only buffers the second frame picture, and then The camera captures the third frame picture, and the photographing terminal acquires the sharpness value of the third frame picture and compares it with the sharpness value of the first frame picture.
  • the present embodiment compares the sharpness value with the sharpness value of the previous frame picture, and the cache clear value is the highest.
  • the photographing terminal In the entire full-size preview mode, the photographing terminal only buffers the first frame picture and the subsequent one frame picture for comparison, and finally only caches one frame picture with the highest sharpness value. Based on this, the embodiment does not need to establish a cache queue to cache all the pictures captured in the full-size preview mode, and the required storage space is small, and does not increase or exceed the limitation of the operating system of the shooting terminal.
  • the manner of obtaining the sharpness value of a frame of the image in this embodiment includes, but is not limited to, the capturing terminal acquiring the spectrum image of each frame of the image, and selecting one frame of the highest frequency component in the focus area as the clearest picture.
  • the photographing terminal recognizes the contour of the object in the current frame and the image in the previous frame. The larger the difference in the data of the contour boundary is, the clearer the image is, and the frame with the largest difference in data of the contour boundary is selected as the clearest picture.
  • the photographing terminal may select a plurality of regions from the current one frame image and the previous frame image, and perform contrast recognition thereon, and select one frame image with the highest contrast as the clearest image.
  • the shooting time is recorded, which is equivalent to setting a timestamp for each frame of the picture, and then comparing the current frame with the previous frame. Before the sharpness value, it is determined whether the shooting time interval between the current one frame picture and the previous frame picture is less than or equal to a preset time threshold. If yes, compare the sharpness values of the current frame and the previous frame, and select one of the highest resolution values as the clearest picture and cache. If not, only the current frame of the picture is cached.
  • the current frame of the image is directly cached. If the previously cached image is too old, for example, the image is cached before 1 second, then the current frame is directly used. Replace the old one; if the current frame is sharper than the cache, or the same, replace the image in the cache with the current frame.
  • the preset time threshold is only a set threshold, and the user can request a custom setting, which is only required to be greater than a time from a button such as clicking a shutter to a time when the camera application responds to the pressing operation and takes a photo. Usually less than 1 second.
  • the photographing terminal can perform the sharpness evaluation on each frame of the image captured by the camera in the full-size preview mode, thereby performing the foregoing sharpness comparison process only on the image conforming to the preset definition standard, as a whole. Make sure that the picture clarity of each frame is not poor.
  • the photographing terminal acquires the sharpness value of the current frame, and determines whether the sharpness value of the current frame is greater than or equal to Set the sharpness value; if yes, compare the sharpness values of the current frame image with the previous frame image, thereby selecting one of the highest sharpness values as the clearest image and buffering; if not, deleting the current value A frame of picture is taken and continues to be photographed by the camera, thereby performing a sharpness evaluation on the picture that continues to be captured.
  • S13 Receive a photographing instruction and take a frame of pictures through the camera.
  • the full-size preview mode can be regarded as the data acquisition stage in the early stage of photographing, which is used for previewing the shooting image by the camera before shooting.
  • each frame of the image acquired by the shooting terminal is the largest size, so that when photographing Instead of making a size change, you can take a photo based on the currently taken picture, allowing you to take a picture faster.
  • the photographing instruction can be regarded as the end of the full-size preview mode, and after receiving the photographing instruction, the camera takes the last frame of the photograph taken.
  • the process of the full-size preview mode to receiving the photographing instruction is a process in which the user presses a button such as a shutter to generate a photographing preview request to the camera application in response to the pressing operation and generates a photographing instruction.
  • the camera application of the photographing terminal is generally hierarchically designed, which includes an application layer 31, an adaptation layer 32, and a hardware layer 33.
  • the application layer 31 is responsible for displaying the interface of the camera application
  • the hardware layer 33 is responsible for acquiring images.
  • the adaptation layer 32 is responsible for displaying the image data acquired by the hardware layer 33 onto the preview interface or generating a photo and transmitting it back to the camera application.
  • the hardware layer 33 continuously generates image data, and the sharpness module 321 of the adaptation layer 32 calculates the sharpness value of one frame of the image according to the image data, and the adaptation layer 32
  • the preview module 322 refreshes the preview interface according to the image data, so that the user sees the real-time picture.
  • the camera application of the photographing terminal issues a photographing instruction, and the photographing instruction is transmitted to the adaptation layer 32, and the photographing module 323 of the adaptation layer 32 acquires image data generated by the hardware layer 33, and the cache module
  • the image data in 324 is compared to determine whether a photo is generated based on the image data of the cache module 324 or a photo is generated based on the image data of the hardware layer 33.
  • S14 Compare the sharpness values of the one-frame picture and the clearest picture, and select one of the highest-resolution values as a photo, and output the photo.
  • the last frame picture taken by the hardware layer 33 is compared with the clear picture of one frame collected in the full-size preview mode, and one of the highest resolution values is selected as the photo, which can improve the anti-shake. Take a photo effect and improve the clarity of the captured picture.
  • FIG. 4 is a specific application example of the anti-shake photographing method of the present invention.
  • the shooting terminal can obtain the clearest picture before shaking, because the shooting terminal is still before the shutter icon is clicked.
  • the picture obtained at this time is clear, so the clear picture will always be updated to the latest frame before the click, until the user shakes the shutter icon to make the image sharpness worse.
  • the photographing terminal can obtain a frame of pictures buffered before shaking as an output photograph, which is also the clearest photo.
  • FIG. 5 is a schematic structural view of an embodiment of a photographing terminal of the present invention.
  • the photographing terminal 50 includes a processor 51 and a camera 52, a transceiver 53, and a memory 54 connected to the processor 51.
  • the camera 52, the transceiver 53, and the memory 54 can be processed through the communication bus 55.
  • Device 51 is connected, wherein
  • the transceiver 53 is for receiving user commands.
  • the processor 51 is configured to set the shooting into the full-size preview mode according to the user instruction.
  • Camera 52 is used to capture pictures in full size preview mode.
  • the processor 51 is configured to obtain a frame of the clearest picture captured by the camera 52 in the full-size preview mode.
  • the memory 54 is used to buffer the clearest picture.
  • the transceiver 53 is also for receiving a photographing instruction.
  • the camera 52 is also used to take a frame of pictures according to the photographing instruction.
  • the processor 51 is further configured to compare the sharpness values of one frame of the picture with the clearest picture, and select one of the highest resolution values as the photo to output the photo.
  • the processor 51 compares the sharpness values of the current frame and the previous frame, thereby selecting the sharpness value. The highest one is the clearest picture.
  • the processor 51 is further configured to record the time when the camera 52 captures each frame of the picture. Before comparing the resolution values of the current frame and the previous frame, the processor 51 is further configured to determine whether the shooting time interval between the current frame and the previous frame is less than or equal to a preset time threshold. If so, the processor 51 compares the sharpness values of the current frame and the previous frame, so as to select one of the highest resolution values as the clearest picture. If not, the processor 51 controls the memory 54 to only buffer the current frame of pictures.
  • the photographing terminal 50 can perform the sharpness evaluation on each frame of the image captured by the camera in the full-size preview mode, thereby performing the foregoing sharpness comparison process only on the image conforming to the preset definition standard. Make sure that the picture clarity of each frame is not bad.
  • the processor 51 is further configured to obtain the sharpness value of the current frame, and determine whether the sharpness value of the current frame is greater than or equal to Preset sharpness value. If so, the processor 51 compares the sharpness values of the current frame and the previous frame, thereby selecting one of the highest resolution values as the clearest picture and buffering. If not, the processor 51 controls the memory 54 to delete the current frame of the picture and continue the shooting by the camera 52, thereby performing a sharpness evaluation on the picture that continues to be captured.
  • the above-described structural elements of the photographing terminal 50 of the present embodiment correspond to the anti-shake photographing method of the above-described embodiment, and have the same technical effects.
  • the photographing terminal 30 includes, but is not limited to, a mobile terminal such as a smart phone, a PDA (Personal Digital Assistant, or a personal digital assistant), and a photographing function that is worn on a limb or embedded in a garment, a jewelry, or an accessory. Wear the device.
  • a mobile terminal such as a smart phone, a PDA (Personal Digital Assistant, or a personal digital assistant)
  • PDA Personal Digital Assistant
  • a photographing function that is worn on a limb or embedded in a garment, a jewelry, or an accessory. Wear the device.
  • the above embodiments may be combined with each other, and if the above functions are implemented in the form of software functions and sold or used as separate products, they may be stored in an electronic device readable storage medium, that is, the present invention also provides A storage device storing program data, the program data being executable to implement the anti-shake photographing method of the above embodiment, the storage device being such as a USB flash drive, an optical disk, a server, or the like. That is, various embodiments of the present invention may be embodied in the form of a software product that includes instructions for causing a smart terminal to perform all or part of the steps of the anti-shake photographing method of various embodiments.

Abstract

本发明公开一种终端及其防抖拍照方法、存储装置。所述防抖拍照方法包括:设置拍摄进入全尺寸预览模式;缓存摄像头在全尺寸预览模式下采集到的一帧最清晰图片;接收拍照指令,并通过摄像头拍摄一帧图片;比较所述一帧图片与最清晰图片的清晰度值,并选取其中清晰度值最高的一者作为照片,输出所述照片。基于此,本发明能够改善防抖拍照效果,提升拍摄图片的清晰度,且所需存储空间较小。

Description

终端及其防抖拍照方法、存储装置 技术领域
本发明涉及电子设备技术领域,具体涉及一种终端及其防抖拍照方法、存储装置。
背景技术
随着电子设备技术的发展,摄像头已成为大多数移动终端的标准配置为用户提供拍照功能,移动终端的拍照功能使用越来越频繁,给人们生活和工作带来了极大的乐趣和方便,而且摄像头的像素越来越高,旨在让用户拍摄到更加清晰的照片。以智能手机为例,用户打开相机软件后,只需要将镜头对准拍摄物然后点击显示于屏幕上的快门图标,即可得到一张照片。但是,点击屏幕这一操作通常会造成智能手机轻微抖动,该抖动过程会持续近1秒,而智能手机的相机程序也会在这1秒内对拍摄物进行拍摄成像,这样就会使拍摄物的成像变得模糊。尤其是高像素摄像头,对这种抖动非常敏感,拍摄得到的图片更加模糊。
为了解决这一问题,现在很多拍摄终端均具有全尺寸预览模式。所谓全尺寸预览模式指的是在拍摄之前通过摄像头进行拍摄成像的预览,在该模式下拍摄终端获取的每一帧图片都是最大尺寸的,这样在拍照时就不用进行尺寸变化,可以根据当前拍摄的图片来生成照片,从而更快地完成拍照。在全尺寸预览模式下,拍摄终端会缓存摄像头随时采集到的多帧图片,例如三帧图片,并选择其中最清晰的一张与后续拍照得到的图片进行清晰度比较,从而选取清晰度最高的一张作为照片。但是,全尺寸预览模式下的三帧图片的拍摄时间间隔很短,拍摄终端抖动时这三帧图像都可能会是不清晰的,而如果缓存更多帧图片,又会需要较大的存储空间,这无疑会加重甚至超过操作系统的限制。
发明内容
鉴于此,本发明提供一种终端及其防抖拍照方法、存储装置,能够改善防抖拍照效果,提升拍摄图片的清晰度,且所需存储空间较小。
本发明一实施例的防抖拍照方法,所述防抖拍照方法包括:
接收用户指令,并据此设置拍摄进入全尺寸预览模式;
缓存摄像头在全尺寸预览模式下采集到的一帧最清晰图片;
接收拍照指令,并通过摄像头拍摄一帧图片;
比较所述一帧图片与最清晰图片的清晰度值,并选取其中清晰度值最高的一者作为照片,输出所述照片。
本发明一实施例的拍摄终端,包括处理器以及与所述处理器连接的摄像头、收发器和存储器,其中,
收发器用于接收用户指令;
处理器用于根据所述用户指令设置拍摄进入全尺寸预览模式;
摄像头用于在全尺寸预览模式下采集图片;
处理器用于获取摄像头在全尺寸预览模式下采集到的一帧最清晰图片;
存储器用于缓存最清晰图片;
收发器还用于接收拍照指令;
摄像头还用于根据拍照指令拍摄一帧图片;
处理器还用于比较一帧图片与最清晰图片的清晰度值,并选取其中清晰度值最高的一者作为照片,输出所述照片;
在所述全尺寸预览模式下,在所述摄像头拍摄到每一帧图片之后且拍摄下一帧图片之前,所述处理器还用于比较当前一帧图片与前一帧图片的清晰度值,并选取其中清晰度值最高的一者作为最清晰图片。
本发明一实施例的存储装置,存储有程序数据,所述程序数据能够被执行以实现上述防抖拍照方法。
有益效果:本发明将拍摄的一帧图片与全尺寸预览模式下采集到的一帧最 清晰图片进行比较,选取其中清晰度值最高的一者作为照片,能够改善防抖拍照效果,提升拍摄图片的清晰度,并且,全尺寸预览模式下仅缓存一帧图片,所需存储空间较小,相比较于缓存多帧图片的情况,本发明不会加重更不会超过操作系统的限制。
附图说明
图1是本发明一实施例的防抖拍照方法的流程示意图;
图2是本发明一实施例的缓存最清晰图片的流程示意图;
图3是本发明一实施例的相机应用程序的结构示意图;
图4是本发明另一实施例的防抖拍照方法的流程示意图;
图5是本发明一实施例的拍摄终端的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明所提供的各个示例性的实施例的技术方案进行清楚、完整地描述。在不冲突的情况下,下述各个实施例以及实施例中的特征可以相互组合。
图1是本发明第一实施例的防抖拍照方法的流程示意图。请参阅图1,本实施例的防抖拍照方法可以包括步骤S11~S14。
S11:接收用户指令,并据此设置拍摄进入全尺寸预览模式。
拍摄终端默认开启全尺寸预览模式。当用户欲通过拍摄终端进行拍照时,可在拍摄终端上点击相关相机应用程序,从而启动摄像头并发起拍照预览请求,此时拍摄进入全尺寸预览模式。
用户指令可视为拍照预览请求的触发操作,当拍摄终端接收到该拍照预览请求后设置拍摄进入全尺寸预览模式。所述拍照预览请求的输入有多种方式,例如用户点击显示于拍摄终端屏幕上的虚拟拍照键或者拍摄终端侧面的快门等实体按键;又例如拍摄终端在延时拍照模式下,用户预先设置拍照时延,拍摄终端在到达拍照时延时自动触发。
S12:缓存摄像头在全尺寸预览模式下采集到的一帧最清晰图片。
拍摄终端通过自身的摄像头实时获取拍摄范围内的景象并成像得到图片。在现有技术中,拍摄终端会建立缓存队列,并在全尺寸预览模式下每获取一帧图片后将其加入所述缓存队列,也就是说,现有技术需要缓存多帧图片。而本实施例仅缓存一帧最清晰图片。
具体地,本实施例在通过摄像头拍摄到每一帧图片之后且拍摄下一帧图片之前,比较当前一帧图片与前一帧图片的清晰度值,从而选取其中清晰度值最高的一者作为最清晰图片并缓存。
以在全尺寸预览模式下摄像头拍摄三帧图片为例,在摄像头拍摄到第一帧图片之后,拍摄终端获取该第一帧图片的清晰度值,然后摄像头拍摄到第二帧图片,拍摄终端获取该第二帧图片的清晰度值,并将第二帧图片的清晰度值与第一帧图片的清晰度值进行比较。如果第二帧图片的清晰度值小于第一帧图片的清晰度值,则删除第二帧图片,并不对第二帧图片进行缓存,然后摄像头拍摄第三帧图片,拍摄终端获取该第三帧图片的清晰度值,并将其与第一帧图片的清晰度值进行比较。而如果第二帧图片的清晰度值大于第一帧图片的清晰度值,则删除第一帧图片,仅缓存第二帧图片,然后摄像头拍摄第三帧图片,拍摄终端获取该第三帧图片的清晰度值,并将其与第二帧图片的清晰度值进行比较。而对于第二帧图片的清晰度值等于第一帧图片的清晰度值的情况,考虑到越早拍摄到的图片越偏离拍摄者的拍摄意图,因此本实施例仅缓存第二帧图片,然后摄像头拍摄第三帧图片,拍摄终端获取该第三帧图片的清晰度值,并将其与第一帧图片的清晰度值进行比较。
由上述可知,每拍摄一帧图片,本实施例就将其清晰度值与前一帧图片的清晰度值相比较,缓存清晰度值最高的一者。在整个全尺寸预览模式下,拍摄终端仅缓存第一帧图片和后续用于比较的当前一帧图片,并且最终仅缓存清晰度值最高的一帧图片。基于此,本实施例无需建立缓存队列以缓存全尺寸预览模式下拍摄到的所有图片,所需存储空间较小,不会加重更不会超过拍摄终端操作系统的限制。
其中,本实施例获取一帧图片的清晰度值的方式包括但不限于:拍摄终端获取每一帧图片的频谱图像,选取对焦区域中高频分量最多的一帧图片作为最 清晰图片。或者,拍摄终端识别当前一帧图片与前一帧图片中物体的轮廓,轮廓边界的数据差异越大,表示图片越清晰,由此选取轮廓边界的数据差异最大的一帧图片作为最清晰图片。又或者,拍摄终端可以从当前一帧图片与前一帧图片中选择多个区域,并对其进行对比度识别,选取对比度最高的一帧图片作为最清晰图片。
进一步地,请参阅图2,本实施例可以在摄像头拍摄每一帧图片时记录其拍摄时刻,相当于为每一帧图片设置一时间戳,然后在比较当前一帧图片与前一帧图片的清晰度值之前,判断所述当前一帧图片与前一帧图片的拍摄时间间隔是否小于或等于预设的时间阈值。若是,则比较当前一帧图片与前一帧图片的清晰度值,从而选取其中清晰度值最高的一者作为最清晰图片并缓存。若否,则仅缓存所述当前一帧图片。
也就是说,如果之前没有缓存任何图片,则直接把当前一帧图片进行缓存,如果之前缓存的一帧图片太老了,例如缓存的是1秒之前的图片,那么直接用当前一帧图片来替换老的;如果当前一帧图片的清晰度要比缓存的好,或者一样,那么用当前一帧图片替换缓存中的图片。
其中,预设的时间阈值只是设定的一个阈值,用户可以需求进行自定义设置,只需要大于从点击快门等按键到相机应用程序响应该按下操作并进行拍照的时间即可,该时间阈值通常低于1秒。
在本实施例中,拍摄终端可以对摄像头在全尺寸预览模式下拍摄到的每一帧图片进行清晰度评价,从而仅对符合预设清晰度标准的图片进行前述清晰度比较过程,从总体上确保每一帧图片的清晰度均不会较差。具体而言,在比较当前一帧图片与前一帧图片的清晰度值之前,拍摄终端获取当前一帧图片的清晰度值,并判断所述当前一帧图片的清晰度值是否大于或等于预设清晰度值;若是,则比较所述当前一帧图片与前一帧图片的清晰度值,从而选取其中清晰度值最高的一者作为最清晰图片并缓存;若否,则删除所述当前一帧图片,并通过所述摄像头继续拍摄,从而对继续拍摄得到的图片进行清晰度评价。
S13:接收拍照指令,并通过摄像头拍摄一帧图片。
全尺寸预览模式可视为拍照前期的数据采集阶段,其用于在拍摄之前通过 摄像头进行拍摄成像的预览,在该模式下拍摄终端获取的每一帧图片都是最大尺寸的,这样在拍照时就不用进行尺寸变化,可以根据当前拍摄的图片来生成照片,从而更快地进行拍照。而所述拍照指令可视为全尺寸预览模式的结束,在接收到拍照指令之后,摄像头拍摄的为本次拍摄的最后一帧图片。在应用场景中,全尺寸预览模式到接收拍照指令的这一过程为用户按下快门等按键以产生拍照预览请求至相机应用程序响应该按下操作并产生拍照指令的过程。
请参阅图3,拍摄终端的相机应用程序通常是分层设计的,其包括应用层31、适配层32以及硬件层33,应用层31负责展示相机应用程序的界面,硬件层33负责采集图像数据,适配层32负责把硬件层33采集到的图像数据显示到预览界面上或者生成照片并回传给相机应用程序。基于此,当拍摄终端开启相机应用程序时,硬件层33就会不停地产生图像数据,适配层32的清晰度模块321根据图像数据计算一帧图片的清晰度值,适配层32的预览模块322根据图像数据刷新预览界面,使用户看到实时的图片。当用户点击快门等实体按键之后,拍摄终端的相机应用程序发出拍照指令,此拍照指令传递到适配层32,适配层32的拍照模块323获取硬件层33产生的图像数据,并与缓存模块324中的图像数据进行比较,以判定是根据缓存模块324的图像数据生成照片,还是根据硬件层33的图像数据生成照片。
S14:比较所述一帧图片与最清晰图片的清晰度值,并选取其中清晰度值最高的一者作为照片,输出所述照片。
由上述可知,本实施例将硬件层33拍摄的最后一帧图片与全尺寸预览模式下采集到的一帧最清晰图片进行比较,选取其中清晰度值最高的一者作为照片,能够改善防抖拍照效果,提升拍摄图片的清晰度。
图4为本发明的防抖拍照方法一具体应用例。结合图4所示,用户在点击快门图标时,即使有轻微抖动影响了当时的图片质量,拍摄终端也可以得到抖动前最清晰的一帧图片,由于在点击快门图标前拍摄终端是静止的,此时所得到图片是清晰的,因此该清晰图片也会一直更新缓存到点击前的最新一帧图片,直到用户因点击快门图标造成了抖动而使图像清晰度变差。在整个拍照过程中,拍摄终端可以得到抖动前缓存的一帧图片作为输出照片,其也是最清晰的一张照片。
图5是本发明的拍摄终端一实施例的结构示意图。如图5所示,所述拍摄终端50包括处理器51以及与所述处理器51连接的摄像头52、收发器53和存储器54,摄像头52、收发器53和存储器54可以通过通信总线55与处理器51连接,其中,
收发器53用于接收用户指令。
处理器51用于根据所述用户指令设置拍摄进入全尺寸预览模式。
摄像头52用于在全尺寸预览模式下采集图片。
处理器51用于获取摄像头52在全尺寸预览模式下采集到的一帧最清晰图片。
存储器54用于缓存最清晰图片。
收发器53还用于接收拍照指令。
摄像头52还用于根据拍照指令拍摄一帧图片。
处理器51还用于比较一帧图片与最清晰图片的清晰度值,并选取其中清晰度值最高的一者作为照片,输出所述照片。
在所述全尺寸预览模式下,摄像头52拍摄到每一帧图片之后且拍摄下一帧图片之前,处理器51比较当前一帧图片与前一帧图片的清晰度值,从而选取其中清晰度值最高的一者作为最清晰图片。
其中,处理器51还用于记录摄像头52拍摄每一帧图片的时刻。在比较当前一帧图片与前一帧图片的清晰度值之前,处理器51进一步用于判断当前一帧图片与前一帧图片的拍摄时间间隔是否小于或等于预设的时间阈值。若是,则处理器51比较当前一帧图片与前一帧图片的清晰度值,从而选取其中清晰度值最高的一者作为最清晰图片。若否,则处理器51控制存储器54仅缓存当前一帧图片。
在本实施例中,拍摄终端50可以对摄像头在全尺寸预览模式下拍摄到的每一帧图片进行清晰度评价,从而仅对符合预设清晰度标准的图片进行前述清 晰度比较过程,从总体上确保每一帧图片的清晰度均不会较差。具体而言,比较当前一帧图片与前一帧图片的清晰度值之前,处理器51还用于获取当前一帧图片的清晰度值,并判断当前一帧图片的清晰度值是否大于或等于预设清晰度值。若是,则处理器51比较当前一帧图片与前一帧图片的清晰度值,从而选取其中清晰度值最高的一者作为最清晰图片并缓存。若否,则处理器51控制存储器54删除所述当前一帧图片,并通过摄像头52继续拍摄,从而对继续拍摄得到的图片进行清晰度评价。
本实施例的拍摄终端50的上述结构元件对应执行上述实施例的防抖拍照方法,具有与其相同的技术效果。
其中,所述拍摄终端30包括但不限于智能手机、PDA(Personal Digital Assistant,个人数字助理或平板电脑)等移动终端,及佩戴于肢体或者嵌入于衣物、首饰、配件中的具有拍摄功能的可穿戴设备。
另外,上述各实施例之间可以相互结合,并且上述功能如果以软件功能的形式实现并作为独立产品销售或使用时,可存储在一个电子设备可读取存储介质中,即,本发明还提供一种存储有程序数据的存储装置,所述程序数据能够被执行以实现上述实施例的防抖拍照方法,该存储装置可以为如U盘、光盘、服务器等。也就是说,本发明的各个实施例可以以软件产品的形式体现出来,其包括若干指令用以使得一台智能终端执行各个实施例所述防抖拍照方法的全部或部分步骤。
应理解,以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,例如各实施例之间技术特征的相互结合,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (13)

  1. 一种拍摄终端,其特征在于,所述拍摄终端包括处理器以及与所述处理器连接的摄像头、收发器和存储器,其中,
    所述收发器用于接收用户指令;
    所述处理器用于根据所述用户指令设置拍照进入全尺寸预览模式;
    所述摄像头用于在所述全尺寸预览模式下采集图片;
    所述处理器用于获取所述摄像头在所述全尺寸预览模式下采集到的一帧最清晰图片;
    所述存储器用于缓存所述最清晰图片;
    所述收发器还用于接收拍照指令;
    所述摄像头还用于根据所述拍照指令拍摄一帧图片;
    所述处理器还用于比较所述一帧图片与所述最清晰图片的清晰度值,并选取其中清晰度值最高的一者作为照片,输出所述照片;
    在所述全尺寸预览模式下,在所述摄像头拍摄到每一帧图片之后且拍摄下一帧图片之前,所述处理器还用于比较当前一帧图片与前一帧图片的清晰度值,并选取其中清晰度值最高的一者作为最清晰图片。
  2. 根据权利要求1所述的拍摄终端,其特征在于,所述处理器还用于记录所述摄像头拍摄每一帧图片的时刻;
    在比较当前一帧图片与前一帧图片的清晰度值之前,所述处理器进一步用于判断所述当前一帧图片与所述前一帧图片的拍摄时间间隔是否小于或等于预设的时间阈值;若是,则比较当前一帧图片与所述前一帧图片的清晰度值;若否,则所述存储器仅缓存所述当前一帧图片。
  3. 根据权利要求1所述的拍摄终端,其特征在于,比较当前一帧图片与前一帧图片的清晰度值之前,所述处理器还用于获取当前一帧图片的清晰度值, 并判断所述当前一帧图片的清晰度值是否大于或等于预设清晰度值;若是,则比较所述当前一帧图片与前一帧图片的清晰度值;若否,则删除所述当前一帧图片,并控制所述摄像头继续拍摄。
  4. 一种防抖拍照方法,其特征在于,所述防抖拍照方法包括:
    接收用户指令,并据此设置拍摄进入全尺寸预览模式;
    缓存摄像头在所述全尺寸预览模式下采集到的一帧最清晰图片;
    接收拍照指令,并通过所述摄像头拍摄一帧图片;
    比较所述一帧图片与所述最清晰图片的清晰度值,并选取其中清晰度值最高的一者作为照片,输出所述照片。
  5. 根据权利要求4所述的防抖拍照方法,其特征在于,缓存摄像头在所述全尺寸预览模式下采集到的一帧最清晰图片,包括:
    在通过所述摄像头拍摄到每一帧图片之后且拍摄下一帧图片之前,比较当前一帧图片与前一帧图片的清晰度值;
    选取其中清晰度值最高的一者作为最清晰图片并缓存。
  6. 根据权利要求5所述的防抖拍照方法,其特征在于,
    所述防抖拍照方法还包括:
    记录所述摄像头拍摄每一帧图片的时刻;
    在比较当前一帧图片与前一帧图片的清晰度值前,所述防抖拍照方法包括:
    判断所述当前一帧图片与所述前一帧图片的拍摄时间间隔是否小于或等于预设的时间阈值;
    若是,则比较当前一帧图片与所述前一帧图片的清晰度值;
    若否,则仅缓存所述当前一帧图片。
  7. 根据权利要求6所述的防抖拍照方法,其特征在于,所述时间阈值为1秒。
  8. 根据权利要求5所述的防抖拍照方法,其特征在于,比较当前一帧图片与前一帧图片的清晰度值之前,所述防抖拍照方法包括:
    获取当前一帧图片的清晰度值;
    判断所述当前一帧图片的清晰度值是否大于或等于预设清晰度值;
    若是,则比较所述当前一帧图片与前一帧图片的清晰度值;
    若否,则删除所述当前一帧图片,并通过所述摄像头继续拍摄。
  9. 一种存储装置,其特征在于,所述存储装置存储有程序数据,所述程序数据能够被执行以实现防抖拍照方法,所述防抖拍照方法包括:
    接收用户指令,并据此设置拍摄进入全尺寸预览模式;
    缓存摄像头在所述全尺寸预览模式下采集到的一帧最清晰图片;
    接收拍照指令,并通过所述摄像头拍摄一帧图片;
    比较所述一帧图片与所述最清晰图片的清晰度值,并选取其中清晰度值最高的一者作为照片,输出所述照片。
  10. 根据权利要求9所述的存储装置,其特征在于,缓存摄像头在所述全尺寸预览模式下采集到的一帧最清晰图片,包括:
    在通过所述摄像头拍摄到每一帧图片之后且拍摄下一帧图片之前,比较当前一帧图片与前一帧图片的清晰度值;
    选取其中清晰度值最高的一者作为最清晰图片并缓存。
  11. 根据权利要求10所述的存储装置,其特征在于,
    所述防抖拍照方法还包括:
    记录所述摄像头拍摄每一帧图片的时刻;
    在比较当前一帧图片与前一帧图片的清晰度值前,所述防抖拍照方法包括:
    判断所述当前一帧图片与所述前一帧图片的拍摄时间间隔是否小于或等于预设的时间阈值;
    若是,则比较当前一帧图片与所述前一帧图片的清晰度值;
    若否,则仅缓存所述当前一帧图片。
  12. 根据权利要求11所述的存储装置,其特征在于,所述时间阈值为1秒。
  13. 根据权利要求10所述的存储装置,其特征在于,比较当前一帧图片与前一帧图片的清晰度值之前,所述防抖拍照方法包括:
    获取当前一帧图片的清晰度值;
    判断所述当前一帧图片的清晰度值是否大于或等于预设清晰度值;
    若是,则比较所述当前一帧图片与前一帧图片的清晰度值;
    若否,则删除所述当前一帧图片,并通过所述摄像头继续拍摄。
PCT/CN2018/102295 2017-08-24 2018-08-24 终端及其防抖拍照方法、存储装置 WO2019037781A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710738621.3 2017-08-24
CN201710738621.3A CN107743191B (zh) 2017-08-24 2017-08-24 终端及其防抖拍照方法、存储装置

Publications (1)

Publication Number Publication Date
WO2019037781A1 true WO2019037781A1 (zh) 2019-02-28

Family

ID=61235610

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/102295 WO2019037781A1 (zh) 2017-08-24 2018-08-24 终端及其防抖拍照方法、存储装置

Country Status (2)

Country Link
CN (1) CN107743191B (zh)
WO (1) WO2019037781A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114326080A (zh) * 2022-01-11 2022-04-12 上海察微电子技术有限公司 一种用于显微镜的超大景深和防震防抖图像处理方法
CN114500838A (zh) * 2022-01-25 2022-05-13 维沃移动通信有限公司 防抖拍摄方法及装置
CN117156261A (zh) * 2023-03-28 2023-12-01 荣耀终端有限公司 图像处理方法及相关设备

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107743191B (zh) * 2017-08-24 2020-05-19 捷开通讯(深圳)有限公司 终端及其防抖拍照方法、存储装置
CN108712605A (zh) * 2018-05-04 2018-10-26 努比亚技术有限公司 一种拍摄方法、终端及计算机可读存储介质
CN110658965A (zh) * 2018-06-28 2020-01-07 Tcl集团股份有限公司 一种照片选择的方法、装置及终端
CN109598195B (zh) * 2018-10-26 2020-11-13 广州杰赛科技股份有限公司 一种基于监控视频的清晰人脸图像处理方法与装置
CN110049247B (zh) * 2019-04-28 2021-03-12 Oppo广东移动通信有限公司 图像优选方法、装置、电子设备及可读存储介质
CN113660426B (zh) * 2021-09-08 2023-07-18 英望科技(山东)有限公司 防止用户拍照抖动的方法及系统、计算机可读存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130265451A1 (en) * 2012-04-10 2013-10-10 Samsung Electronics Co., Ltd. Apparatus and method for continuously taking a picture
CN105049728A (zh) * 2015-08-17 2015-11-11 广东欧珀移动通信有限公司 一种拍摄图像的获取方法和装置
CN105578061A (zh) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 一种拍照防抖的方法、装置及移动终端
CN105657244A (zh) * 2015-11-06 2016-06-08 乐视移动智能信息技术(北京)有限公司 防抖拍照方法、装置及移动终端
CN105959537A (zh) * 2016-05-03 2016-09-21 广东欧珀移动通信有限公司 成像装置控制方法、成像装置控制装置及电子装置
CN106210496A (zh) * 2015-05-06 2016-12-07 小米科技有限责任公司 照片拍摄方法及装置
CN107018327A (zh) * 2017-03-31 2017-08-04 维沃移动通信有限公司 一种图像拍摄方法及移动终端
CN107743191A (zh) * 2017-08-24 2018-02-27 捷开通讯(深圳)有限公司 终端及其防抖拍照方法、存储装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130265451A1 (en) * 2012-04-10 2013-10-10 Samsung Electronics Co., Ltd. Apparatus and method for continuously taking a picture
CN106210496A (zh) * 2015-05-06 2016-12-07 小米科技有限责任公司 照片拍摄方法及装置
CN105049728A (zh) * 2015-08-17 2015-11-11 广东欧珀移动通信有限公司 一种拍摄图像的获取方法和装置
CN105657244A (zh) * 2015-11-06 2016-06-08 乐视移动智能信息技术(北京)有限公司 防抖拍照方法、装置及移动终端
CN105578061A (zh) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 一种拍照防抖的方法、装置及移动终端
CN105959537A (zh) * 2016-05-03 2016-09-21 广东欧珀移动通信有限公司 成像装置控制方法、成像装置控制装置及电子装置
CN107018327A (zh) * 2017-03-31 2017-08-04 维沃移动通信有限公司 一种图像拍摄方法及移动终端
CN107743191A (zh) * 2017-08-24 2018-02-27 捷开通讯(深圳)有限公司 终端及其防抖拍照方法、存储装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114326080A (zh) * 2022-01-11 2022-04-12 上海察微电子技术有限公司 一种用于显微镜的超大景深和防震防抖图像处理方法
CN114500838A (zh) * 2022-01-25 2022-05-13 维沃移动通信有限公司 防抖拍摄方法及装置
CN117156261A (zh) * 2023-03-28 2023-12-01 荣耀终端有限公司 图像处理方法及相关设备

Also Published As

Publication number Publication date
CN107743191A (zh) 2018-02-27
CN107743191B (zh) 2020-05-19

Similar Documents

Publication Publication Date Title
CN107743191B (zh) 终端及其防抖拍照方法、存储装置
US9596398B2 (en) Automatic image capture
KR101075826B1 (ko) 촬상 장치 및 기억 장치
US10440278B2 (en) Imaging device and system including imaging device and server
JP4872797B2 (ja) 撮像装置、撮像方法および撮像プログラム
JP4127491B2 (ja) オートフォーカス機能付きカメラ
JP6267502B2 (ja) 撮像装置、撮像装置の制御方法、及び、プログラム
KR20090119686A (ko) 디지털 영상 캡처링 방법 및 이를 이용한 디지털 카메라
WO2019214574A1 (zh) 图像拍摄方法、装置及电子终端
WO2011058675A1 (ja) 電子カメラ及び電子カメラ用の半導体集積回路装置
JP6391304B2 (ja) 撮像装置、制御方法およびプログラム
JP2016178699A (ja) 撮像装置および撮像方法
JP6758950B2 (ja) 撮像装置、その制御方法とプログラム
JP2019029954A (ja) 画像処理装置および画像処理方法
KR101630307B1 (ko) 디지털 촬영 장치, 그 제어 방법, 및 컴퓨터 판독가능 저장매체
WO2023220957A1 (zh) 图像处理方法、装置、移动终端及存储介质
WO2015129479A1 (ja) 撮像装置および方法、並びにプログラム
KR20110090093A (ko) 디지털 영상 처리 장치 및 그 제어 방법
JP2007208355A (ja) 撮影装置および方法並びにプログラム
JP4613829B2 (ja) 撮影装置、その制御方法及び制御プログラム
JP2016019253A (ja) 撮像システム
WO2019023966A1 (zh) 一种智能终端的拍照系统及拍照方法
JP2004236006A (ja) デジタルカメラ
JP6403511B2 (ja) 撮像装置、その制御方法及びプログラム
JP6470594B2 (ja) 撮像装置、その制御方法、及びプログラム

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

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

Country of ref document: EP

Kind code of ref document: A1