[go: up one dir, main page]

CN106303234A - photographing processing method and device - Google Patents

photographing processing method and device Download PDF

Info

Publication number
CN106303234A
CN106303234A CN201610656549.5A CN201610656549A CN106303234A CN 106303234 A CN106303234 A CN 106303234A CN 201610656549 A CN201610656549 A CN 201610656549A CN 106303234 A CN106303234 A CN 106303234A
Authority
CN
China
Prior art keywords
image
photographing
unit
photographic head
images
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610656549.5A
Other languages
Chinese (zh)
Inventor
张春雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201610656549.5A priority Critical patent/CN106303234A/en
Publication of CN106303234A publication Critical patent/CN106303234A/en
Pending legal-status Critical Current

Links

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/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • 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/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
    • H04N23/683Vibration or motion blur correction performed by a processor, e.g. controlling the readout of an image memory
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices

Landscapes

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

Abstract

The invention discloses a photographing processing method and a photographing processing device, wherein the photographing processing method comprises the following steps: receiving a photographing instruction; if the preset continuous photographing condition is met currently, triggering a camera of the electronic terminal to continuously execute N times of photographing actions under the instruction of the photographing instruction to obtain N images, wherein N is a natural number greater than 2; performing summary analysis on the N images to determine fuzzy images in the N images; selecting an image from the images except the blurred image from the N images; and outputting the selected image. The technical scheme provided by the invention can effectively improve the quality of the photographed image.

Description

拍照处理方法及装置Photo processing method and device

技术领域technical field

本发明涉及拍照技术领域,具体涉及一种拍照处理方法及装置。The present invention relates to the technical field of photographing, in particular to a photographing processing method and device.

背景技术Background technique

随着电子终端(例如智能手机、平板电脑等)的快速发展,目前基本上所有电子终端都具备拍照功能,由于带有拍照功能的电子终端相对于卡片相机、单反相机等专业摄像仪器,携带及使用都更为便捷,因此,大众更乐意于使用电子终端的拍照功能进行拍照。With the rapid development of electronic terminals (such as smart phones, tablet computers, etc.), at present, basically all electronic terminals have a camera function. It is more convenient to use, so the public is more willing to use the camera function of the electronic terminal to take pictures.

然而,用户要想通过电子终端拍出满意的照片也并非是一件容易的事情。目前,在用户使用电子终端拍照时,由于用户大多数情况下都是手持拍照(即手持电子终端进行拍照),因此,当用户触发电子终端执行拍照动作时(例如当用户点击电子终端的拍照按键时),很容易使得电子终端产生抖动而影响其摄像头对焦,导致拍照所得的图像可能很模糊。However, it is not easy for the user to take satisfactory photos through the electronic terminal. At present, when a user uses an electronic terminal to take pictures, since the user takes pictures with a hand in most cases (i.e., holds the electronic terminal to take pictures), therefore, when the user triggers the electronic terminal to take pictures (for example, when the user clicks the photo button of the electronic terminal) time), it is easy to cause the electronic terminal to shake and affect the focus of its camera, resulting in blurred images.

发明内容Contents of the invention

本发明提供一种拍照处理方法及装置,用于提高拍照所得图像的质量。The invention provides a photographing processing method and device for improving the quality of images obtained by photographing.

本发明第一方面提供一种拍照处理方法,包括:A first aspect of the present invention provides a photographing processing method, including:

接收拍照指令;Receive camera instructions;

若当前满足预设的连续拍照条件,则在上述拍照指令的指示下触发电子终端的摄像头连续执行N次拍照动作,获得N张图像,其中,上述N为大于2的自然数;If the preset continuous photographing conditions are currently satisfied, the camera of the electronic terminal is triggered to perform N consecutive photographing actions under the instruction of the above photographing instruction to obtain N images, wherein the above N is a natural number greater than 2;

对上述N张图像进行概要分析,确定上述N张图像中的模糊图像;Perform a summary analysis on the above N images, and determine the blurred images in the above N images;

从上述N张图像中的除上述模糊图像以外的图像里选取一张图像;Select an image from the images other than the blurred image in the above N images;

输出选取的图像。Output the selected image.

本发明第二方面提供一种拍照处理装置,包括:The second aspect of the present invention provides a camera processing device, including:

接收单元,用于接收拍照指令;a receiving unit, configured to receive a photographing instruction;

触发单元,用于在当前满足预设的连续拍照条件时,在上述接收单元接收到的上述拍照指令的指示下,触发电子终端的摄像头连续执行N次拍照动作,获得N张图像,其中,上述N为大于2的自然数;The trigger unit is configured to trigger the camera of the electronic terminal to continuously perform N times of photographing actions under the instruction of the photographing instruction received by the receiving unit when the preset continuous photographing conditions are currently satisfied, and obtain N images, wherein the above N is a natural number greater than 2;

分析确定单元,用于对上述N张图像进行概要分析,确定上述N张图像中的模糊图像;An analysis and determination unit, configured to perform a summary analysis on the above N images, and determine the blurred images in the above N images;

选取单元,用于基于上述分析确定单元的分析结果,从上述N张图像中的除上述模糊图像以外的图像里选取一张图像;A selection unit, configured to select an image from the images other than the blurred image among the N images based on the analysis result of the analysis determination unit;

输出单元,用于输出上述选取单元选取的图像。An output unit, configured to output the image selected by the above selection unit.

由上可见,本发明方案中在接收到拍照指令且满足预设的连续拍照条件时,触发电子终端的摄像头连续执行连续拍照动作,并对多次拍照所获得的多张图像进行概要分析,确定出模糊图像,之后从除模糊图像以外的图像中选取一张图像输出。由于是从连续获得的多张图像中剔除了模糊图像后,选出其中一张作为图像输出,因此,可以有效提高拍照所得图像的质量。It can be seen from the above that in the solution of the present invention, when a photographing instruction is received and the preset continuous photographing conditions are met, the camera of the electronic terminal is triggered to continuously perform continuous photographing actions, and a summary analysis is performed on multiple images obtained by multiple photographing to determine A blurred image is output, and then an image is selected from the images other than the blurred image to output. Since the fuzzy image is removed from the continuously obtained multiple images, one of them is selected as an image output, therefore, the quality of the image obtained by photographing can be effectively improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明提供的拍照处理方法一个实施例流程示意图;Fig. 1 is a schematic flow chart of an embodiment of the photographing processing method provided by the present invention;

图2为本发明提供的拍照处理装置一个实施例结构示意图。Fig. 2 is a schematic structural diagram of an embodiment of a photographing processing device provided by the present invention.

具体实施方式detailed description

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明实施例提供一种拍照处理方法,包括:接收拍照指令;若当前满足预设的连续拍照条件,则在上述拍照指令的指示下触发电子终端的摄像头连续执行N次拍照动作,获得N张图像,其中,上述N为大于2的自然数;对上述N张图像进行概要分析,确定上述N张图像中的模糊图像;从上述N张图像中的除上述模糊图像以外的图像里选取一张图像;输出选取的图像。本发明实施例还提供相应的拍照处理装置,以下分别进行详细说明。An embodiment of the present invention provides a photographing processing method, including: receiving a photographing instruction; if the preset continuous photographing condition is currently met, triggering the camera of the electronic terminal to perform N consecutive photographing actions under the instruction of the photographing instruction to obtain N photos image, wherein the above-mentioned N is a natural number greater than 2; the above-mentioned N images are briefly analyzed to determine the blurred image in the above-mentioned N images; an image is selected from the above-mentioned N images except for the above-mentioned blurred image ; Output the selected image. The embodiment of the present invention also provides a corresponding photographing processing device, which will be described in detail below.

实施例一Embodiment one

请参阅图1,本发明实施例中的拍照处理方法包括:Please refer to Fig. 1, the photograph processing method in the embodiment of the present invention comprises:

步骤101、接收拍照指令;Step 101, receiving a camera instruction;

本发明实施例中,拍照指令用于触发电子终端的摄像头执行拍照动作。具体地,当电子终端的摄像头启动(在前台启动或者在后台启动)之后,用户可以通过触发预设的拍照按键(拍照按键可以为虚拟按键或实体按键)输入该拍照指令,或者也可以通过输入预设的语音的方式输入该拍照指令,本发明实施例不对拍照指令的具体输入方式进行限定。In the embodiment of the present invention, the photographing instruction is used to trigger the camera of the electronic terminal to perform the photographing action. Specifically, when the camera of the electronic terminal is started (started in the foreground or started in the background), the user can input the camera instruction by triggering the preset camera button (the camera button can be a virtual button or a physical button), or by inputting The camera instruction is input in a preset voice mode, and the embodiment of the present invention does not limit the specific input method of the camera instruction.

可选的,步骤101具体为在熄屏拍照模式下接收拍照指令。其中,上述熄屏拍照模式是指在电子终端的熄屏状态下,由该电子终端的摄像头运行于后台的拍照模式。本发明实施例中,为上述电子终端配置熄屏拍照模式启动接口,以便用户可以在该电子终端处于熄屏状态时,通过该熄屏拍照模式启动接口触发上述熄屏拍照模式的启动运行。具体的,该熄屏拍照模式启动接口可以表现为一实体按键(为便于描述,将该实体按键描述为A键),当上述电子处于熄屏状态时,用户通过触发该A键(例如单击、双击或长按该A键)触发上述熄屏拍照模式的启动运行。或者,该熄屏拍照模式启动接口也可以是其它表现形式,例如,该熄屏拍照模式启动接口也可以表现为一触摸输入接口,当上述电子处于熄屏状态时,用户可以通过该触摸输入接口输入预设的手势来触发上述熄屏拍照模式的启动运行。本发明实施例中不对上述熄屏拍照模式的启动方式进行具体限定。上述熄屏拍照模式的启动运行具体表现为:在后台启动上述电子终端的摄像头(该摄像头可以为上述电子终端的内置摄像头,或者,也可以为对上述电子终端的外置摄像头)。其中,上述在后台启动上述电子终端的摄像头是指启动该摄像头进入拍摄准备但不显示该摄像头的预览窗口。Optionally, step 101 is specifically receiving a photographing instruction in a screen-off photographing mode. Wherein, the above-mentioned off-screen photographing mode refers to a photographing mode in which the camera of the electronic terminal operates in the background when the electronic terminal is in a screen-off state. In the embodiment of the present invention, the above-mentioned electronic terminal is equipped with an interface for starting the photo mode with the screen off, so that the user can trigger the startup and operation of the photo mode with the screen off through the interface for starting the photo mode with the screen off when the electronic terminal is in the state of the screen off. Specifically, the startup interface of the screen-off camera mode can be represented as a physical button (for the convenience of description, the physical button is described as an A key), and when the above-mentioned electronics is in the screen-off state, the user triggers the A button (for example, clicks , double-click or long-press the A key) to trigger the startup and operation of the above-mentioned off-screen photo mode. Alternatively, the interface for starting the screen-off camera mode can also be in other forms. For example, the interface for starting the screen-off camera mode can also be represented as a touch input interface. Input a preset gesture to trigger the startup and operation of the above-mentioned screen-off camera mode. In the embodiment of the present invention, no specific limitation is imposed on the starting manner of the above-mentioned off-screen photographing mode. The start-up and operation of the above-mentioned off-screen photographing mode is specifically shown as: starting the camera of the above-mentioned electronic terminal in the background (the camera can be a built-in camera of the above-mentioned electronic terminal, or can also be an external camera for the above-mentioned electronic terminal). Wherein, the above-mentioned starting the camera of the above-mentioned electronic terminal in the background refers to starting the camera to enter shooting preparation but not displaying the preview window of the camera.

当然,步骤101也可以表现为在其它预设的拍摄模式下接收上述拍照指令。Certainly, step 101 may also be expressed as receiving the above-mentioned photographing instruction in other preset photographing modes.

步骤102、若当前满足预设的连续拍照条件,则在上述拍照指令的指示下触发电子终端的摄像头连续执行N次拍照动作,获得N张图像;Step 102. If the preset continuous photographing conditions are currently met, trigger the camera of the electronic terminal to perform N consecutive photographing actions under the instruction of the above photographing instruction to obtain N images;

其中,上述N为大于2的自然数。Wherein, the above N is a natural number greater than 2.

举例说明,当上述N取10时,若当前满足预设的连续拍照条件,则在上述拍照指令的指示下触发电子终端的摄像头连续执行10次拍照动作,获得10张图像。For example, when the above-mentioned N is 10, if the preset continuous photographing condition is currently satisfied, the camera of the electronic terminal is triggered to perform 10 consecutive photographing actions under the instruction of the photographing instruction to obtain 10 images.

可选的,上述连续拍照条件为:上述摄像头的光感在预设的光感范围内,且,上述摄像头的拍摄距离在预设的拍摄距离范围内,且上述摄像头的拍摄距离在预设的时间段内的变化值小于预设的距离变化值。当接收到上述拍照指令,先检测上述摄像头是否满足上述连续拍照条件,若检测到满足上述连续拍照条件,则进入步骤102,若检测到不满足上述连续拍照条件,则可以立即、等待预设时间或等待预设事件发生后再次检测上述摄像头是否满足上述连续拍照条件或结束本次拍照流程。当然,本发明实施例中也可以由其它设备检测上述摄像头是否满足上述连续拍照条件并反馈检测的结果,当接收到上述拍照指令且上述其它设备反馈的检测结果为当前满足上述连续拍照条件时,进入步骤102。Optionally, the above-mentioned continuous photographing condition is: the light sensitivity of the above-mentioned camera is within the preset light-sensing range, and the shooting distance of the above-mentioned camera is within the preset shooting distance range, and the shooting distance of the above-mentioned camera is within the preset The change value within the time period is smaller than the preset distance change value. When the above-mentioned photographing instruction is received, first detect whether the above-mentioned camera meets the above-mentioned continuous photographing conditions, if it is detected that the above-mentioned continuous photographing conditions are met, then enter step 102, if it is detected that the above-mentioned continuous photographing conditions are not met, then you can immediately and wait for the preset time Or wait for the occurrence of the preset event to detect again whether the above-mentioned camera meets the above-mentioned continuous photographing condition or end the current photographing process. Of course, in the embodiment of the present invention, other devices can also detect whether the above-mentioned camera meets the above-mentioned continuous photographing conditions and feed back the detection results. Go to step 102.

步骤103、对上述N张图像进行概要分析,确定上述N张图像中的模糊图像;Step 103, perform a summary analysis on the above N images, and determine the blurred images in the above N images;

本发明实施例中,对步骤102获得的上述N张图像进行概要分析,确定上述N张图像中的模糊图像。In the embodiment of the present invention, a summary analysis is performed on the N images obtained in step 102 to determine blurred images in the N images.

在一种应用场景中,可以检测上述N张图像中是否存在未对焦图像,若存在上述未对焦图像,则将上述未对焦图像确定为模糊图像。其中,上述未对焦图像是指上述摄像头在未对焦的情况下(例如对焦失败或未来得及对焦的情况下)拍照所得的图像。In an application scenario, it may be detected whether there is an unfocused image in the N images, and if there is an unfocused image, the unfocused image is determined as a blurred image. Wherein, the above-mentioned unfocused image refers to an image obtained by taking pictures of the above-mentioned camera when it is not in focus (for example, in the case of focus failure or future focus).

由于模糊图像中的相邻像素点之间通常会比较平滑,因此,在另一种应用场景中,也可以针对上述N张图像中的各张图像逐一进行如下处理:计算各张图像中相邻像素点之间的差值;若小于预设阈值的差值占同一图像中全部差值的比例大于预设比例,则判定相应图像为模糊图像;若小于上述预设阈值的差值占同一图像中全部差值的比例不大于上述预设比例,则判定相应图像为非模糊图像。举例说明,对于一张100*100的图像,通过计算该图像中相邻像素点之间的差值,将得到99*99个差值,如果预设比例为10%,那么如果在该99*99个差值中,小于上述预设阈值的差值的个数大于99*99*10%,则判定该图像为模糊图像,如果在该99*99个差值中,小于上述预设阈值的差值的个数不大于99*99*10%,则判定该图像为非模糊图像。Since the adjacent pixels in the blurred image are usually relatively smooth, in another application scenario, the following processing can also be performed on each of the above N images one by one: calculate the adjacent pixels in each image The difference between pixels; if the proportion of the difference less than the preset threshold to all the differences in the same image is greater than the preset ratio, it is determined that the corresponding image is a blurred image; if the difference less than the above preset threshold accounts for the same image If the ratio of all the difference values in is not greater than the preset ratio, it is determined that the corresponding image is a non-blurred image. For example, for a 100*100 image, by calculating the difference between adjacent pixels in the image, 99*99 differences will be obtained. If the preset ratio is 10%, then if the 99* Among the 99 difference values, if the number of difference values smaller than the above-mentioned preset threshold is greater than 99*99*10%, it is determined that the image is a blurred image; if among the 99*99 difference values, the number of difference values smaller than the above-mentioned preset threshold If the number of difference values is not more than 99*99*10%, it is determined that the image is a non-blurred image.

本发明实施例中不对确定上述N张图像中的模糊图像的具体实现方式进行限定。The embodiment of the present invention does not limit the specific implementation manner of determining the blurred image in the above N images.

步骤104、从上述N张图像中的除上述模糊图像以外的图像里选取一张图像;Step 104, selecting an image from the images other than the blurred image among the above N images;

本发明实施例,可以采用随机选取的方式从上述N张图像中的除上述模糊图像以外的图像里选取一张图像,当然,若上述N张图像中的除上述模糊图像以外的图像只有一张,则直接选取该张图像。In the embodiment of the present invention, an image may be randomly selected from the images other than the blurred image among the N images. Of course, if there is only one image other than the blurred image among the N images , select the image directly.

举例说明,设上述N为10,步骤103确定出上述N张图像中有6张模糊图像,则在步骤104中,从剩余4张图像(即上述10张图像中的除上述6张模糊图像以外的图像)中选取一张图像。For example, if the above-mentioned N is 10, step 103 determines that there are 6 blurred images in the above-mentioned N images, then in step 104, from the remaining 4 images (that is, except the above-mentioned 6 blurred images in the above-mentioned 10 images) Select an image from the image in .

步骤105、输出选取的图像;Step 105, output the selected image;

本发明实施例,将步骤104选取的图像作为此次拍照所得照片输出。In the embodiment of the present invention, the image selected in step 104 is output as the photo obtained by taking this time.

具体的,步骤105可以表现为存储步骤104选取的图像,例如,将步骤104选取的图像存储在上述电子终端中。Specifically, step 105 may be expressed as storing the image selected in step 104, for example, storing the image selected in step 104 in the above-mentioned electronic terminal.

进一步,若本发明实施例是在熄屏拍照模式下进行的拍照处理,此时可能只会存储步骤104选取的图像而不会显示该图像,因此,在输出该图像的同时或之后,还可以输出提醒信号,以便通过该提醒信号提醒用户该图像已输出。具体地,该提醒信号的类型可以如下一种或两种以上的组合:声音、振动以及指示灯。Further, if the embodiment of the present invention is to perform the photographing process in the screen-off photographing mode, only the image selected in step 104 may be stored at this time and the image will not be displayed. Therefore, while or after outputting the image, you can also A reminder signal is output, so that the user is reminded that the image has been output through the reminder signal. Specifically, the type of the reminder signal may be one or a combination of two or more of the following: sound, vibration and indicator light.

需要说明的是,本发明实施例中的拍照处理方法可以由拍照处理装置实现,该拍照处理装置具体可以以软件(例如App的形式)集成在上述电子终端(例如智能手机、平板电脑、学习机等配置有摄像头的终端)中。It should be noted that the photographing processing method in the embodiment of the present invention can be implemented by a photographing processing device, and the photographing processing device can specifically be integrated in the above-mentioned electronic terminal (such as a smart phone, a tablet computer, a learning machine) in the form of software (such as an App). and other terminals equipped with cameras).

由上可见,本发明方案中在接收到拍照指令且满足预设的连续拍照条件时,触发电子终端的摄像头连续执行连续拍照动作,并对多次拍照所获得的多张图像进行概要分析,确定出模糊图像,之后从除模糊图像以外的图像中选取一张图像输出。由于是从连续获得的多张图像中剔除了模糊图像后,选出其中一张作为图像输出,因此,可以有效提高拍照所得图像的质量。It can be seen from the above that in the solution of the present invention, when a photographing instruction is received and the preset continuous photographing conditions are met, the camera of the electronic terminal is triggered to continuously perform continuous photographing actions, and a summary analysis is performed on multiple images obtained by multiple photographing to determine A blurred image is output, and then an image is selected from the images other than the blurred image to output. Since the fuzzy image is removed from the continuously obtained multiple images, one of them is selected as an image output, therefore, the quality of the image obtained by photographing can be effectively improved.

实施例二Embodiment two

本发明实施例中对一种拍照处理装置进行描述,请参阅图2,本发明实施例中的拍照处理装置200包括:In the embodiment of the present invention, a camera processing device is described, please refer to FIG. 2, the camera processing device 200 in the embodiment of the present invention includes:

接收单元201,用于接收拍照指令;a receiving unit 201, configured to receive a photographing instruction;

触发单元202,用于在当前满足预设的连续拍照条件时,在接收单元301接收到的上述拍照指令的指示下,触发电子终端的摄像头连续执行N次拍照动作,获得N张图像,其中,上述N为大于2的自然数;The triggering unit 202 is configured to trigger the camera of the electronic terminal to continuously perform N times of photographing actions under the instruction of the photographing instruction received by the receiving unit 301 to obtain N images when the preset continuous photographing conditions are currently met, wherein, The above N is a natural number greater than 2;

分析确定单元203,用于将上述N张图像进行概要分析,确定上述N张图像中的模糊图像;An analysis and determination unit 203, configured to perform a summary analysis on the above N images, and determine the blurred images in the above N images;

选取单元204,用于基于分析确定单元203的分析结果,从上述N张图像中的除上述模糊图像以外的图像里选取一张图像;The selection unit 204 is configured to select an image from the images other than the blurred image among the N images based on the analysis result of the analysis determination unit 203;

输出单元205,用于输出选取单元204选取的图像。The output unit 205 is configured to output the image selected by the selection unit 204 .

可选的,上述预设的连续拍照条件为:上述摄像头的光感在预设的光感范围内,且,上述摄像头的拍摄距离在预设的拍摄距离范围内,且上述摄像头的拍摄距离在预设的时间段内的变化值小于预设的距离变化值。本发明实施例中的拍照处理装置还包括:检测单元,用于在接收单元201接收到上述拍照指令后,检测上述摄像头是否满足上述连续拍照条件。Optionally, the above-mentioned preset continuous photographing conditions are as follows: the light sensitivity of the above-mentioned camera is within the preset light-sensing range, and the shooting distance of the above-mentioned camera is within the preset shooting distance range, and the shooting distance of the above-mentioned camera is within The change value within the preset time period is smaller than the preset distance change value. The photographing processing device in the embodiment of the present invention further includes: a detection unit, configured to detect whether the camera satisfies the above continuous photographing condition after the receiving unit 201 receives the photographing instruction.

在一种应用场景中,分析确定单元203包括:子检测单元,用于检测上述N张图像中是否存在未对焦图像,其中,上述未对焦图像是指上述摄像头在未对焦的情况下拍照所得的图像;子确定单元,用于当上述子检测单元检测到存在上述未对焦图像时,将上述未对焦图像确定为模糊图像。In one application scenario, the analysis and determination unit 203 includes: a sub-detection unit, configured to detect whether there is an unfocused image in the above N images, wherein the above-mentioned unfocused image refers to a photo obtained by the above-mentioned camera when it is not in focus Image; a sub-determining unit configured to determine the above-mentioned unfocused image as a blurred image when the above-mentioned sub-detection unit detects that the above-mentioned unfocused image exists.

在另一种应用场景中,分析确定单元203包括:计算单元,用于针对上述N张图像中的各张图像,计算各张图像中相邻像素点之间的差值;判定单元,用于当小于预设阈值的差值占同一图像中全部差值的比例大于预设比例时,判定相应图像为模糊图像;当小于所述预设阈值的差值占同一图像中全部差值的比例不大于所述预设比例时,判定相应图像为非模糊图像。In another application scenario, the analysis and determination unit 203 includes: a calculation unit for calculating the difference between adjacent pixels in each image for each of the above N images; a determination unit for When the ratio of the difference values smaller than the preset threshold to all the differences in the same image is greater than the preset ratio, it is determined that the corresponding image is a blurred image; When it is greater than the preset ratio, it is determined that the corresponding image is a non-blurred image.

可选的,接收单元201具体用于:在熄屏拍照模式下接收拍照指令。其中,上述熄屏拍照模式是指在上述电子终端的熄屏状态下,由上述摄像头运行于后台的拍照模式。Optionally, the receiving unit 201 is specifically configured to: receive a photographing instruction in a screen-off photographing mode. Wherein, the above-mentioned off-screen photographing mode refers to a photographing mode in which the above-mentioned camera operates in the background when the above-mentioned electronic terminal is in a screen-off state.

可选的,输出单元205具体用于:存储选取单元204选取的图像;本发明实施例中的拍照处理装置还包括:提醒单元,用于当输出单元205输出选取单元204选取的图像的同时或之后,输出提醒信号,以便通过上述提醒信号提醒用户上述图像已输出。Optionally, the output unit 205 is specifically configured to: store the image selected by the selection unit 204; the photographing processing device in the embodiment of the present invention further includes: a reminder unit, used for when the output unit 205 outputs the image selected by the selection unit 204 or Afterwards, a reminder signal is output, so as to remind the user that the above-mentioned image has been output through the above-mentioned reminder signal.

需要说明的是,本发明实施例中的拍照处理装置具体可以以软件的方式(例如App的形式)集成在上述电子终端(例如智能手机、平板电脑、学习机等配置有摄像头的终端)中。It should be noted that the photographing processing device in the embodiment of the present invention can be specifically integrated in the above-mentioned electronic terminal (such as a smart phone, a tablet computer, a learning machine, etc., equipped with a camera) in the form of software (such as in the form of App).

应理解,本发明实施例中的拍照处理装置可以用于实现上述方法实施例中的全部技术方案,其各个功能模块的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述实施例中的相关描述,此处不再赘述。It should be understood that the camera processing device in the embodiment of the present invention can be used to realize all the technical solutions in the above method embodiments, and the functions of each functional module can be realized according to the methods in the above method embodiments, and the specific implementation process can refer to Relevant descriptions in the foregoing embodiments will not be repeated here.

由上可见,本发明方案中在接收到拍照指令且满足预设的连续拍照条件时,触发电子终端的摄像头连续执行连续拍照动作,并对多次拍照所获得的多张图像进行概要分析,确定出模糊图像,之后从除模糊图像以外的图像中选取一张图像输出。由于是从连续获得的多张图像中剔除了模糊图像后,选出其中一张作为图像输出,因此,可以有效提高拍照所得图像的质量。It can be seen from the above that in the solution of the present invention, when a photographing instruction is received and the preset continuous photographing conditions are met, the camera of the electronic terminal is triggered to continuously perform continuous photographing actions, and a summary analysis is performed on multiple images obtained by multiple photographing to determine A blurred image is output, and then an image is selected from the images other than the blurred image to output. Since the fuzzy image is removed from the continuously obtained multiple images, one of them is selected as an image output, therefore, the quality of the image obtained by photographing can be effectively improved.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例上述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the above integrated units are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the above-mentioned methods in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.

需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。It should be noted that, for the sake of simplicity of description, the aforementioned method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

以上为对本发明所提供的一种拍照处理方法及装置的描述,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is a description of a photographing processing method and device provided by the present invention. For those of ordinary skill in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application range. In summary , the contents of this specification should not be construed as limiting the present invention.

Claims (10)

1. a processing method of taking pictures, it is characterised in that including:
Receive photographing instruction;
Meet, if current, the continuous photographical condition preset, then under the instruction of described photographing instruction, trigger the photographic head of electric terminal Continuously perform n times to take pictures action, it is thus achieved that N opens image, and wherein, described N is the natural number more than 2;
Described N is opened image and carries out profiling, determine that described N opens the broad image in image;
Open from described N and in the image in addition to described broad image image, choose an image;
The image that output is chosen.
Method the most according to claim 1, it is characterised in that described default continuous photographical condition is: described photographic head Light sensation in the range of default light sensation, and, the shooting distance of described photographic head is in the range of default shooting distance and described The shooting distance of photographic head changing value within the default time period is less than the distance changing value preset;
Also include after described reception photographing instruction:
Detect whether described photographic head meets described continuous photographical condition.
Method the most according to claim 1 and 2, it is characterised in that described image of opening described N carries out profiling, really Fixed described N opens the broad image in image, including:
Detecting described N opens whether there is non-focus image in image, wherein, described non-focus image refers to that described photographic head is not Take pictures in the case of focusing the image of gained;
If non-focus image described in Cuning, then described non-focus image is defined as broad image.
Method the most according to claim 1 and 2, it is characterised in that described image of opening described N carries out profiling, really Fixed described N opens the broad image in image, including:
Open each image in image for described N, calculate the difference between neighbor pixel in each image;
If accounting for the ratio of whole differences in same image less than the difference of predetermined threshold value more than preset ratio, then to judge respective image For broad image;
If accounting for the ratio of whole differences in same image less than the difference of described predetermined threshold value to be not more than described preset ratio, then sentence Determining respective image is Non-blurred image.
5. according to the method described in any one of claims 1 to 3, it is characterised in that described reception photographing instruction is particularly as follows: putting out Photographing instruction is received under screen exposal model;
Wherein, put out screen exposal model described in refer to put out under screen state, described photographic head after running at described electric terminal The exposal model of platform.
6. a processing means of taking pictures, it is characterised in that including:
Receive unit, be used for receiving photographing instruction;
Trigger element, for when the current continuous photographical condition meeting and presetting, in the described bat that described reception unit receives Under instruction according to instruction, trigger the photographic head of electric terminal and continuously perform n times and take pictures action, it is thus achieved that N opens image, wherein, described N For the natural number more than 2;
Analysis determines unit, carries out profiling for described N is opened image, determines that described N opens the broad image in image;
Choose unit, for determining the analysis result of unit based on described analysis, from described N open image except described fuzzy graph An image is chosen in image in addition;
Output unit, is used for choosing described in exporting the image of unit selection.
Processing means of taking pictures the most according to claim 6, it is characterised in that described default continuous photographical condition is: institute State the light sensation of photographic head in the range of default light sensation, and, the shooting distance of described photographic head is in default shooting distance scope In, and the changing value that the shooting distance of described photographic head is within the default time period is less than the distance changing value preset;
Described processing means of taking pictures also includes:
Detector unit, for after described reception unit receives described photographing instruction, detects whether described photographic head meets institute State continuous photographical condition.
8. according to the processing means of taking pictures described in claim 6 or 7, it is characterised in that described analysis determines that unit includes:
Sub-detector unit, is used for detecting described N opens whether there is non-focus image in image, and wherein, described non-focus image is Refer to that described photographic head is taken pictures the image of gained in the case of not focusing;
Son determines unit, for when non-focus image described in described sub-detector unit detects the presence of, by described figure of not focusing As being defined as broad image.
9. according to the processing means of taking pictures described in any one of claim 6 to 8, it is characterised in that described analysis determines unit bag Include:
Computing unit, for opening each image in image for described N, calculates the difference between neighbor pixel in each image Value;
Identifying unit, is more than preset ratio for accounting for the ratio of whole differences in same image less than the difference of predetermined threshold value Time, it is determined that respective image is broad image;When accounting for the ratio of whole differences in same image less than the difference of described predetermined threshold value When being not more than described preset ratio, it is determined that respective image is Non-blurred image.
Processing means of taking pictures the most according to claim 9, it is characterised in that
Described reception unit specifically for: put out screen exposal model under receive photographing instruction;
Wherein, put out screen exposal model described in refer to put out under screen state, described photographic head after running at described electric terminal The exposal model of platform.
CN201610656549.5A 2016-08-11 2016-08-11 photographing processing method and device Pending CN106303234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610656549.5A CN106303234A (en) 2016-08-11 2016-08-11 photographing processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610656549.5A CN106303234A (en) 2016-08-11 2016-08-11 photographing processing method and device

Publications (1)

Publication Number Publication Date
CN106303234A true CN106303234A (en) 2017-01-04

Family

ID=57669212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610656549.5A Pending CN106303234A (en) 2016-08-11 2016-08-11 photographing processing method and device

Country Status (1)

Country Link
CN (1) CN106303234A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982330A (en) * 2017-05-15 2017-07-25 珠海市魅族科技有限公司 Camera shooting control method and device, computer installation, readable storage medium storing program for executing
CN107231522A (en) * 2017-05-04 2017-10-03 广东欧珀移动通信有限公司 A mobile terminal, photographing method thereof, and computer-readable storage medium
CN107360370A (en) * 2017-07-27 2017-11-17 深圳市泰衡诺科技有限公司 A kind of method, photo taking and photo camera for smart machine
CN108021697A (en) * 2017-12-19 2018-05-11 广东小天才科技有限公司 Photographing and question searching method based on terminal equipment and terminal equipment
CN108289176A (en) * 2018-02-11 2018-07-17 广东小天才科技有限公司 Photographing question searching method, question searching device and terminal equipment
CN108399239A (en) * 2018-03-01 2018-08-14 广东小天才科技有限公司 Photographing question searching method and device and terminal equipment
CN112270254A (en) * 2020-10-27 2021-01-26 上海幻维数码创意科技有限公司 A method and device for processing element matching information based on camera vision

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100073549A1 (en) * 2008-09-19 2010-03-25 Hoya Corporation Digital camera having autofocus capability and continuous shooting capability
CN102595044A (en) * 2011-01-12 2012-07-18 宏碁股份有限公司 Electronic device with anti-shake photographing function and photographing method thereof
CN104657053A (en) * 2015-01-11 2015-05-27 汪念鸿 Method for realizing particular functions by multi-point gestures at touch screen terminal
CN104683692A (en) * 2015-02-04 2015-06-03 广东欧珀移动通信有限公司 Continuous shooting method and device
CN105531988A (en) * 2013-09-09 2016-04-27 苹果公司 Automated selection of keeper images from a burst photo captured set
CN105654463A (en) * 2015-11-06 2016-06-08 乐视移动智能信息技术(北京)有限公司 Image processing method applied to continuous shooting process and apparatus thereof
CN105681667A (en) * 2016-02-29 2016-06-15 广东欧珀移动通信有限公司 Control method, control device and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100073549A1 (en) * 2008-09-19 2010-03-25 Hoya Corporation Digital camera having autofocus capability and continuous shooting capability
CN102595044A (en) * 2011-01-12 2012-07-18 宏碁股份有限公司 Electronic device with anti-shake photographing function and photographing method thereof
CN105531988A (en) * 2013-09-09 2016-04-27 苹果公司 Automated selection of keeper images from a burst photo captured set
CN104657053A (en) * 2015-01-11 2015-05-27 汪念鸿 Method for realizing particular functions by multi-point gestures at touch screen terminal
CN104683692A (en) * 2015-02-04 2015-06-03 广东欧珀移动通信有限公司 Continuous shooting method and device
CN105654463A (en) * 2015-11-06 2016-06-08 乐视移动智能信息技术(北京)有限公司 Image processing method applied to continuous shooting process and apparatus thereof
CN105681667A (en) * 2016-02-29 2016-06-15 广东欧珀移动通信有限公司 Control method, control device and electronic device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231522A (en) * 2017-05-04 2017-10-03 广东欧珀移动通信有限公司 A mobile terminal, photographing method thereof, and computer-readable storage medium
CN106982330A (en) * 2017-05-15 2017-07-25 珠海市魅族科技有限公司 Camera shooting control method and device, computer installation, readable storage medium storing program for executing
CN107360370A (en) * 2017-07-27 2017-11-17 深圳市泰衡诺科技有限公司 A kind of method, photo taking and photo camera for smart machine
CN108021697A (en) * 2017-12-19 2018-05-11 广东小天才科技有限公司 Photographing and question searching method based on terminal equipment and terminal equipment
CN108021697B (en) * 2017-12-19 2020-11-06 广东小天才科技有限公司 Photographing and question searching method based on terminal equipment, terminal equipment and storage medium
CN108289176A (en) * 2018-02-11 2018-07-17 广东小天才科技有限公司 Photographing question searching method, question searching device and terminal equipment
CN108289176B (en) * 2018-02-11 2020-05-15 广东小天才科技有限公司 Photographing question searching method, question searching device and terminal equipment
CN108399239A (en) * 2018-03-01 2018-08-14 广东小天才科技有限公司 Photographing question searching method and device and terminal equipment
CN112270254A (en) * 2020-10-27 2021-01-26 上海幻维数码创意科技有限公司 A method and device for processing element matching information based on camera vision

Similar Documents

Publication Publication Date Title
CN106303234A (en) photographing processing method and device
CN104780316B (en) A camera startup detection method and camera startup detection device
US20210374447A1 (en) Method and device for processing image, electronic equipment, and storage medium
US20130120602A1 (en) Taking Photos With Multiple Cameras
WO2022134382A1 (en) Image segmentation method and apparatus, and electronic device, storage medium and computer program
CN105227838B (en) A kind of image processing method and mobile terminal
CN107480665B (en) Character detection method, device and computer readable storage medium
JP2018506755A (en) Image processing method, image processing method, computer program, and computer-readable storage medium
TWI633499B (en) Method and electronic device for displaying panoramic image
WO2017031901A1 (en) Human-face recognition method and apparatus, and terminal
CN111984347B (en) Interactive processing method, device, equipment and storage medium
CN111752465A (en) Method, device and storage medium for preventing false edge touch
CN104539843A (en) Terminal shooting method
CN106303235A (en) Photographing processing method and device
CN105227855B (en) Image processing method and terminal
EP3617990B1 (en) Picture processing method and apparatus, computer readable storage medium, and electronic device
EP2712176B1 (en) Method and apparatus for photography
CN106331497A (en) An image processing method and terminal
CN105391940B (en) An image recommendation method and device
CN106919326A (en) A kind of image searching method and device
CN108171222B (en) Real-time video classification method and device based on multi-stream neural network
WO2022116523A1 (en) Image processing method, image recognition apparatus, electronic device, and medium
CN105867858A (en) Control method, control device and electronic device
CN105120153B (en) A kind of image capturing method and device
CN110677580B (en) Shooting method, shooting device, storage medium and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication