CN109040604B - Shot image processing method and device, storage medium and mobile terminal - Google Patents
Shot image processing method and device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN109040604B CN109040604B CN201811238344.0A CN201811238344A CN109040604B CN 109040604 B CN109040604 B CN 109040604B CN 201811238344 A CN201811238344 A CN 201811238344A CN 109040604 B CN109040604 B CN 109040604B
- Authority
- CN
- China
- Prior art keywords
- moving
- image
- shooting
- target
- image frames
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及移动终端技术领域,尤其涉及一种拍摄图像的处理方法、装置、存储介质及移动终端。The embodiments of the present application relate to the technical field of mobile terminals, and in particular, to a method, an apparatus, a storage medium, and a mobile terminal for processing a captured image.
背景技术Background technique
目前,拍照功能已成为多数移动终端的标准配置,终端用户可通过随身携带的移动终端轻松快捷的实现拍照操作。At present, the photographing function has become a standard configuration of most mobile terminals, and terminal users can easily and quickly implement photographing operations through a mobile terminal that they carry with them.
在终端用户使用移动终端进行拍照时,若有干扰物突然闯进镜头,则拍摄图像中就会出现干扰物对应的伪影,造成拍摄图像的不清晰,因此,移动终端的图像预处理功能仍需要改进。When a terminal user uses a mobile terminal to take pictures, if an interfering object suddenly breaks into the lens, an artifact corresponding to the interfering object will appear in the captured image, causing the captured image to be unclear. Therefore, the image preprocessing function of the mobile terminal is still needs improvement.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种拍摄图像的处理方法、装置、存储介质及移动终端,可以提高拍摄质量。Embodiments of the present application provide a method, device, storage medium, and mobile terminal for processing a photographed image, which can improve photographing quality.
第一方面,本申请实施例提供了一种拍摄图像的处理方法,包括:In a first aspect, an embodiment of the present application provides a method for processing a captured image, including:
如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧;If it is detected that there is a moving distraction in the preview screen, shoot at least two image frames continuously;
确定所述至少两个图像帧中移动干扰物的移动信息;determining movement information of a moving distractor in the at least two image frames;
根据所述移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物。According to the movement information of the moving interference object, it is determined whether to retain the moving interference object in the generated target shot image.
第二方面,本申请实施例提供了一种拍摄图像的处理装置,包括:In a second aspect, an embodiment of the present application provides an apparatus for processing a captured image, including:
图像拍摄模块,用于如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧;an image capturing module, configured to continuously capture at least two image frames if it is detected that there is a moving interferer in the preview image;
信息确定模块,用于确定所述图像拍摄模块连续拍摄的至少两个图像帧中移动干扰物的移动信息;an information determination module, configured to determine the movement information of the moving interferers in at least two image frames continuously captured by the image capturing module;
保留确定模块,用于根据所述信息确定模块确定的移动干扰物的移动速度和/或移动轨迹信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物。A reservation determining module is configured to determine whether to retain the moving distractor in the generated target photographed image according to the moving speed and/or the moving track information of the moving distractor determined by the information determining module.
第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例所述的拍摄图像的处理方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the method for processing a captured image according to the embodiment of the present application.
第四方面,本申请实施例提供了一种移动终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的拍摄图像的处理方法。In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executed by the processor, and the processor executes the computer program to achieve the same implementation as the present application The processing method of the captured image described in the example.
本申请实施例中提供的拍摄图像的处理方案,首先,如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧;然后,确定所述至少两个图像帧中移动干扰物的移动信息;最后,根据所述移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物。能够避免移动干扰物对拍摄图像清晰度的影响,提高拍摄质量。In the processing solution for capturing images provided in the embodiments of the present application, first, if it is detected that there is a moving interference object in the preview screen, at least two image frames are continuously captured; then, the movement of the moving interference object in the at least two image frames is determined. information; finally, according to the movement information of the moving interference object, it is determined whether to retain the moving interference object in the generated target shot image. It can avoid the influence of moving interference objects on the sharpness of the captured image, and improve the shooting quality.
附图说明Description of drawings
图1为本申请实施例提供的一种拍摄图像的处理方法的流程示意图;FIG. 1 is a schematic flowchart of a method for processing a captured image provided by an embodiment of the present application;
图2为本申请实施例提供的另一种拍摄图像的处理方法的流程示意图;FIG. 2 is a schematic flowchart of another method for processing a captured image provided by an embodiment of the present application;
图3为本申请实施例提供的另一种拍摄图像的处理方法的流程示意图;3 is a schematic flowchart of another method for processing a captured image provided by an embodiment of the present application;
图4为本申请实施例提供的另一种拍摄图像的处理方法的流程示意图;4 is a schematic flowchart of another method for processing a captured image provided by an embodiment of the present application;
图5为本申请实施例提供的另一种拍摄图像的处理方法的流程示意图;5 is a schematic flowchart of another method for processing a captured image provided by an embodiment of the present application;
图6为本申请实施例提供的一种拍摄图像的处理装置的结构框图;6 is a structural block diagram of an apparatus for processing a captured image provided by an embodiment of the present application;
图7为本申请实施例提供的一种移动终端的结构示意图。FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solutions of the present application will be further described below with reference to the accompanying drawings and through specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all the structures related to the present application.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the steps as a sequential process, many of the steps may be performed in parallel, concurrently, or concurrently. Furthermore, the order of the steps can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
目前,拍照功能已成为多数移动终端的标准配置,终端用户可通过随身携带的移动终端轻松快捷的实现拍照操作。但是在终端用户使用移动终端进行拍照时,若有干扰物突然闯进镜头,则拍摄图像中就会出现干扰物对应的伪影,造成拍摄图像的不清晰,因此,移动终端的图像预处理功能仍需要改进。At present, the photographing function has become a standard configuration of most mobile terminals, and terminal users can easily and quickly implement photographing operations through a mobile terminal that they carry with them. However, when a terminal user uses a mobile terminal to take pictures, if an interfering object suddenly breaks into the lens, an artifact corresponding to the interfering object will appear in the captured image, causing the captured image to be unclear. Therefore, the image preprocessing function of the mobile terminal Still needs improvement.
本申请实施例提供了一种拍摄图像的处理方法,能够在预览画面存在移动干扰物时,连续拍摄多个图像帧确定移动干扰物的移动信息,以便判断是否在生成的目标拍摄图像中保留该移动干扰物,进而避免了移动干扰物对拍摄图像清晰度的影响,提高拍摄质量。具体方案如下所示:An embodiment of the present application provides a method for processing a captured image, which can continuously capture a plurality of image frames when there is a moving object in the preview screen to determine the movement information of the moving object, so as to determine whether to retain the object in the generated target captured image. Move the interference object, thereby avoiding the impact of the moving interference object on the clarity of the captured image and improving the shooting quality. The specific scheme is as follows:
图1为本申请实施例提供的一种拍摄图像的处理方法的流程示意图,该方法适用于在拍照过程中,拍摄视野内存在移动干扰物的情况。特别应用于人像拍摄模式且存在移动干扰物时进行拍照的情况,该方法可以由具有拍照功能的移动终端来执行,该移动终端可以为智能手机、平板电脑、可穿戴设备(智能手表或智能眼镜)等,该方法具体包括如下步骤:FIG. 1 is a schematic flowchart of a method for processing a captured image according to an embodiment of the present application, and the method is suitable for a situation where there is a moving interferer in the photographing field of view during the photographing process. It is especially used in the case of taking a picture in the portrait shooting mode and there is a moving interference object. This method can be executed by a mobile terminal with a photographing function, and the mobile terminal can be a smart phone, a tablet computer, a wearable device (smart watch or smart glasses) ) etc., the method specifically comprises the following steps:
步骤101、如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧。Step 101: If it is detected that there is a moving interference object in the preview image, at least two image frames are continuously captured.
其中,预览画面可以是在启动拍摄功能后,移动终端的显示屏上显示的画面。该画面可以是启动拍摄功能后,摄像头实时采集显示的图像。移动干扰物可以是预览画面中的非拍摄目标且处于移动状态下的物体,例如,终端用户采用人像模式进行拍摄,人像模式可以定位的多个人脸,但是有些人脸并不是用户所需要的拍摄目标,如突然闯进拍摄范围内的人脸,此时闯进拍摄范围内的人脸为移动干扰物。The preview image may be an image displayed on the display screen of the mobile terminal after the shooting function is activated. The picture may be an image captured and displayed by the camera in real time after the shooting function is activated. The moving distractor can be a non-shooting target in the preview screen and an object in a moving state. For example, if the end user shoots in portrait mode, the portrait mode can locate multiple faces, but some faces are not what the user needs to shoot. For a target, such as a face that suddenly breaks into the shooting range, the face that breaks into the shooting range at this time is a moving disturbance.
可选的,检测预览画面中是否存在移动干扰物,可以是在启动移动终端的拍摄功能后就开始实时或者每隔预设时间间隔(如1秒)检测一次预览画面中是否存在移动干扰物,并实时更新检测结果;也可以是在终端用户点击触发拍照(如点击拍摄按钮触发、语音触发、手势或表情触发等等)时,系统开始检测预览画面中是否存在移动干扰物。Optionally, to detect whether there is a moving interferer in the preview screen, it may be to start real-time or every preset time interval (such as 1 second) after starting the shooting function of the mobile terminal to detect whether there is a mobile interferer in the preview screen, And the detection results are updated in real time; it can also be that when the end user clicks to trigger a photo (such as triggering by clicking the shooting button, voice trigger, gesture or expression trigger, etc.), the system starts to detect whether there is a moving interferer in the preview screen.
可选的,检测到预览画面中存在移动干扰物,可以是若预览画面中连续的至少两个图像帧或周期性抽取的图像帧(如每隔1秒抽取的图像帧)间存在拍摄内容的变化,则检测到预览画面中存在移动干扰物。具体的,可以是获取相邻的至少两个图像帧或周期性抽取的图像帧进行比较,当图像帧之间出现拍摄内容的增加、减少、位移移动或模糊等中的至少一种时,则说明预览画面中存在移动干扰物;也可以是将相邻图像帧或周期性抽取的图像帧之间进行差分运算,若运算结果大于预设阈值,则说明存在移动干扰物。因为若不存在移动干扰物,相邻图像帧或周期性抽取的图像帧之间内容基本上是保持不变的,因此差分运算的结果较小;当出现移动干扰物时,摄像头获取的内容就会因移动干扰物的出现发生变化,此时差分运算的结果就会较大。Optionally, it is detected that there is a moving interferer in the preview image, which may be if there is shooting content between at least two consecutive image frames or periodically extracted image frames (such as image frames extracted every 1 second) in the preview image. changes, it is detected that there is a moving object in the preview screen. Specifically, at least two adjacent image frames or periodically extracted image frames can be obtained for comparison. It means that there is a moving interferer in the preview screen; it can also be a difference operation between adjacent image frames or periodically extracted image frames. If the operation result is greater than the preset threshold, it means that there is a moving interferer. Because if there is no moving interference, the content between adjacent image frames or periodically extracted image frames is basically unchanged, so the result of the difference operation is small; when there is a moving interference, the content obtained by the camera is It will change due to the appearance of moving interference, and the result of the difference operation will be larger at this time.
示例性的,若检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧可以是,若检测到预览画面中存在移动干扰物,则启动多帧连拍模式,连续拍摄至少两个图像帧。可选的,连续拍摄至少两个图像帧时的拍摄频率可以是移动终端配置的摄像头的采样频率,也可以是根据需求预先设置的,对此本申请不进行限定。Exemplarily, if it is detected that there is a moving interference object in the preview screen, the continuous shooting of at least two image frames may be, if it is detected that there is a moving interference object in the preview screen, the multi-frame continuous shooting mode is activated, and at least two image frames are continuously shot. image frame. Optionally, the shooting frequency when continuously shooting at least two image frames may be the sampling frequency of the camera configured on the mobile terminal, or may be preset according to requirements, which is not limited in this application.
步骤102、确定至少两个图像帧中移动干扰物的移动信息。Step 102: Determine the movement information of the moving interferer in at least two image frames.
其中,移动干扰物的移动信息可以是移动干扰物移动时的相关信息,至少包括移动速度信息和/或移动轨迹信息,可选的,移动速度信息又可以包括相邻帧的移动速度、平均移动速度或移动速度变化趋势等等。移动轨迹信息又可以包括:移动轨迹的长度、移动轨迹的范围或移动轨迹的延伸方向等等。Wherein, the movement information of the mobile interferer may be related information when the mobile interferer moves, including at least movement speed information and/or movement track information, optionally, the movement speed information may also include the movement speed of adjacent frames, the average movement speed Speed or movement speed trends, etc. The movement track information may further include: the length of the movement track, the range of the movement track, or the extension direction of the movement track, and the like.
可选的,在本申请实施例中,确定至少两个图像帧中移动干扰物的移动信息可以是依据图像帧的时域关联性,确定至少两个图像帧中移动干扰物的移动信息,其中,图像帧的时域关联性可以是连续拍摄的相邻图像帧之间的时间关联性以及图像帧间各特征像素点之间的位置关联性等。例如,连续拍摄至少两个图像帧时的拍摄频率是一秒拍摄10个图像帧,则相邻两个图像帧对应时刻相差十分之一秒,在这十分之一秒内移动干扰物发生了移动,因此,每两个相邻图像帧中的移动干扰物的位置也存在着一定的变化关系,可以对至少两个图像帧中的移动干扰物进行跟踪,从而拟合出移动干扰物的移动轨迹信息;根据拟合出的移动干扰物的移动轨迹信息中的移动位移以及图像帧之间的间隔时间,即可确定移动干扰物的移动速度信息。Optionally, in this embodiment of the present application, determining the movement information of the moving distractors in the at least two image frames may be determining the movement information of the moving distractors in the at least two image frames according to the temporal correlation of the image frames, wherein the image The temporal correlation of the frames may be the temporal correlation between consecutively photographed adjacent image frames and the positional correlation between each feature pixel point between the image frames, and the like. For example, when shooting at least two image frames continuously, the shooting frequency is 10 image frames per second, then the corresponding moments of two adjacent image frames differ by one tenth of a second, and the moving interference occurs within this tenth of a second. Therefore, there is a certain variation relationship between the positions of the moving distractors in every two adjacent image frames, and the moving distractors in at least two image frames can be tracked to fit the moving distractors. Movement track information; according to the moving displacement in the fitted movement track information of the moving interference object and the interval time between image frames, the moving speed information of the moving interference object can be determined.
步骤103、根据移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留移动干扰物。
可选的,在本申请实施例中,依据移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留移动干扰物时,可以是预先依据移动干扰物的移动信息,设置判断规则从而判断是否在生成的目标拍摄图像中保留移动干扰物。可选的,在设置判断规则时,可以是选择移动信息中的一种信息进行判断,例如,可以是移动信息中的移动速度大于预设速度阈值;也可以结合移动信息中的多种信息进行判断,例如,移动干扰物的移动速度大于预设阈值且移动速度变化趋势并没有减小。在根据判读规则确定是否保留移动干扰物时,可以是选择一种判断规则进行确定;也可以是将多个判断规则进行组合来判断是否保留移动干扰物。Optionally, in this embodiment of the present application, when determining whether to retain the mobile interferer in the generated target shooting image according to the movement information of the mobile interferer, it may be determined by setting a judgment rule based on the movement information of the mobile interferer in advance. Whether to keep moving distractors in the resulting target shot. Optionally, when setting the judgment rule, one type of information in the movement information may be selected for judgment, for example, the movement speed in the movement information may be greater than a preset speed threshold; It is judged that, for example, the moving speed of the moving interference object is greater than the preset threshold and the change trend of the moving speed does not decrease. When determining whether to retain the mobile interferer according to the interpretation rule, one judgment rule may be selected for determination, or a plurality of judgment rules may be combined to determine whether to retain the mobile interferer.
可选的,在确定是否在生成的目标拍摄图像中保留移动干扰物时,可以是根据移动干扰物的移动速度大小和/或变化趋势,确定是否在生成的目标拍摄图像中保留所述移动干扰物;和/或根据移动干扰物的移动轨迹的长度和/或轨迹走向,确定是否在生成的目标拍摄图像中保留移动干扰物。例如,可以是在移动干扰物的移动速度大于预设速度阈值,和/或移动速度的变化趋势并没有减小时,确定在生成的目标拍摄图像中不保留该移动干扰物;也可以是在移动干扰物的移动轨迹的长度大于预设长度阈值,和/或移动轨迹的变化走向朝图像边缘延伸时,确定在生成的目标拍摄图像中不保留该移动干扰物;还可以是在满足上述两种条件时,在确定在生成的目标拍摄图像中保留该移动干扰物。这样设置的好处在于,选择多维度的干扰物移动信息及其组合信息对应的判断规则,来确定是否在目标拍摄图像中保留移动干扰物,从而提高了确定是否保留移动干扰物的准确性,进而提高拍摄质量。Optionally, when determining whether to retain the moving interference object in the generated target photographed image, it may be determined whether to retain the moving interference object in the generated target photographed image according to the moving speed and/or change trend of the moving interference object. and/or according to the length and/or the direction of the trajectory of the moving distractor, determine whether to retain the moving distractor in the generated image of the target. For example, when the moving speed of the moving object is greater than the preset speed threshold, and/or the change trend of the moving speed does not decrease, it can be determined that the moving object is not retained in the generated image of the target; The length of the moving track of the distractor is greater than the preset length threshold, and/or when the change of the moving track extends toward the edge of the image, it is determined that the moving distractor is not retained in the generated target shot image; When conditions are met, it is determined that the moving distractor is retained in the generated target shot image. The advantage of this setting is that the multi-dimensional disturbance object movement information and the judgment rules corresponding to the combined information are selected to determine whether to retain the moving object in the target shot image, thereby improving the accuracy of determining whether to retain the moving object, and then Improve shooting quality.
需要说明的是,上述移动干扰物的移动速度大小可以是移动速度的平均移动速度大小,也可以是每两个图像帧对应的瞬时移动速度大小。在判断移动速度是否大于预设速度阈值时,可以是判断平均移动速度是否超过预设速度阈值;也可以是判断每两个图像帧对应的多个瞬时移动速度中是否存在超过预设速度阈值的瞬时移动速度。对此本申请并不进行限定。It should be noted that the magnitude of the moving speed of the above-mentioned moving interference object may be the magnitude of the average moving speed of the moving speed, or may be the magnitude of the instantaneous moving speed corresponding to every two image frames. When judging whether the moving speed is greater than the preset speed threshold, it can be judged whether the average moving speed exceeds the preset speed threshold; it can also be judged whether there is any instantaneous moving speed corresponding to each two image frames that exceeds the preset speed threshold. Instantaneous movement speed. This application is not limited to this.
可选的,在生成的目标拍摄图像中保留移动干扰物,可以是对包含有移动干扰物的各图像帧进行融合处理,去除移动干扰物的伪影,生成最终的包含移动干扰物的清晰的目标拍摄图像。在生成的目标拍摄图像中不保留移动干扰物,可以是先去除各图像帧中的移动干扰物,然后再对去除了移动干扰物的各图像帧进行融合处理,生成最终的不包含移动干扰物的清晰的目标拍摄图像。Optionally, retaining moving distractors in the generated image of the target may be to perform fusion processing on each image frame containing the moving distractors to remove the artifacts of the moving distractors, and generate a final clear image containing the moving distractors. The target captures the image. No moving objects are retained in the generated target shot images. The moving objects in each image frame can be removed first, and then the image frames from which the moving objects have been removed are fused to generate a final image that does not contain moving objects. image with a clear target.
本申请实施例提供的拍摄图像的处理方法,首先,如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧;然后,确定所述至少两个图像帧中移动干扰物的移动信息;最后,根据所述移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物。相对于相关技术中在拍照过程中,若拍摄视野内存在移动干扰物,则拍摄图像模糊、质量较差的问题。本申请实施例能够在预览画面存在移动干扰物时,连续拍摄多个图像帧确定移动干扰物的移动信息,以便判断是否在生成的目标拍摄图像中保留该移动干扰物,进而避免了移动干扰物对拍摄图像清晰度的影响,提高拍摄质量。In the method for processing a captured image provided by the embodiment of the present application, firstly, if it is detected that there is a moving interference object in the preview screen, at least two image frames are continuously captured; then, the movement information of the moving interference object in the at least two image frames is determined. and finally, according to the movement information of the moving interference object, determine whether to retain the moving interference object in the generated target shot image. Compared with the related art, during the photographing process, if there is a moving object in the photographing field of view, the photographed image is blurred and the quality is poor. In this embodiment of the present application, when there is a moving object in the preview screen, a plurality of image frames can be continuously captured to determine the movement information of the moving object, so as to determine whether to retain the moving object in the generated target image, thereby avoiding the moving object. The impact on the sharpness of the captured image, improve the shooting quality.
图2为本申请实施例提供的另一种拍摄图像的处理方法的流程示意图,作为对上述实施例的进一步说明,该方法包括如下步骤:FIG. 2 is a schematic flowchart of another method for processing a captured image provided by an embodiment of the present application. As a further description of the foregoing embodiment, the method includes the following steps:
步骤201、如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧。Step 201: If it is detected that there is a moving interference object in the preview image, at least two image frames are continuously captured.
步骤202、检测至少两个图像帧中的移动干扰物所在区域。Step 202: Detect the area where the moving interference object is located in at least two image frames.
其中,移动干扰物所在区域可以是移动干扰物在每一个图像帧中对应的区域。Wherein, the area where the moving disturbance object is located may be the area corresponding to the moving disturbance object in each image frame.
示例性的,在本申请实施例中,检测至少两个图像帧中的移动干扰物所在区域的方法有很多,本申请对此不进行限定。例如,可以是检测到预览画面中存在移动干扰物时,提取该移动干扰物的特征点,在检测每个图像帧中移动干扰物所在区域时寻找每个图像帧中具有该特征点的移动干扰物,提取该移动干扰物的轮廓,将其轮廓在图像中所在的区域作为该图像中的移动干扰物所在的区域。也可以是先确定每一个图像帧的拍摄内容中的各拍摄物所在区域,并提取各拍摄物的特征点,然后将相邻两个图像帧对应的各拍摄物所在区域及特征点进行比对,检测是否存在特征点相同,但拍摄物所在区域发生变化的拍摄物,若存在,则将该拍摄物作为移动干扰物,将该拍摄物所在区域作为该图像帧中的移动干扰物所在区域。可选的,为了防止因计算误差导致的区域变化误判,可以是当拍摄物所在区域位置变化大于预设变化阈值(如,移动像素超过10个像素)时,确定该拍摄物所在区域发生了变化。Exemplarily, in this embodiment of the present application, there are many methods for detecting the area where the moving interference object is located in at least two image frames, which is not limited in the present application. For example, when it is detected that there is a moving distractor in the preview image, the feature point of the moving distractor is extracted, and when the area where the moving distractor is located in each image frame is detected, the moving distractor with the feature point in each image frame is searched for , extract the contour of the moving distractor, and take the area where the contour is located in the image as the area where the moving distractor is located in the image. It is also possible to first determine the region where each object is located in the shooting content of each image frame, extract the feature points of each object, and then compare the region and feature points of each object corresponding to two adjacent image frames. , to detect whether there is a photographed object with the same feature points, but the area where the photographed object is located changes, if there is, the photographed object is regarded as a moving interference object, and the area where the photographed object is located is regarded as the moving interference object in the image frame. Optionally, in order to prevent the misjudgment of the area change caused by the calculation error, when the change of the position of the area where the photographed object is located is greater than the preset change threshold (for example, the moving pixel exceeds 10 pixels), it is determined that the area where the photographed object is located has occurred. Variety.
步骤203、根据拍摄参数以及各图像帧中的移动干扰物所在区域,计算移动干扰物的移动信息。Step 203: Calculate the movement information of the moving disturbance object according to the shooting parameters and the area where the moving disturbance object is located in each image frame.
其中,拍摄参数可以是配置在移动终端上的摄像头在连续拍摄图像时对应的设置参数,可以包括:摄像头的采样频率、分辨率以及拍摄视场大小等等。在计算移动干扰物的移动信息时,可以根据移动信息具体内容的不同,选择不同的一个或多个拍摄参数进行计算。The shooting parameters may be setting parameters corresponding to the camera configured on the mobile terminal when continuously shooting images, and may include the sampling frequency, resolution, and shooting field size of the camera, and the like. When calculating the movement information of the moving interference object, one or more different shooting parameters may be selected for calculation according to the specific content of the movement information.
可选的,根据拍摄参数以及各图像帧中移动干扰物所在区域,计算移动干扰物的移动轨迹信息时,可以根据每个图像帧中移动干扰物对应的区域位置坐标进行拟合,确定移动干扰物的移动轨迹。在计算该移动轨迹的长度时,可以是分别计算每两个图像帧中移动干扰物的区域位置坐标对应的轨迹长度,然后进行求和得到该移动轨迹的长度,例如,移动干扰物在拍摄的第一个图像帧中所在区域的中心位置坐标为(a,b),在第二个图像帧中所在区域的中心位置坐标为(c,d),在计算这两个图像帧中移动干扰物区域位置坐标对应的轨迹长度s时,可以是按照公式进行计算。在计算移动轨迹朝向时,可以是计算该移动干扰物与图像的某一边缘所呈的角度;也可以是计算该移动干扰物与拍摄目标所呈的角度,例如,移动干扰物的起点和拍摄目标所在的连线与移动干扰物轨迹所呈的角度。需要说明的是,上述方法计算出的轨迹长度为像素距离,为了提高本申请实施例判断是否保留移动干扰物的准确性,可以根据拍摄时摄像头的拍摄视场和分辨率之间的比例关系,将计算得到的像素距离转换为实际轨迹长度。例如,若像素拍摄视场和分辨率之间的比例关系为m/n,计算得到的像素轨迹长度为s,则实际轨迹长度为L=s×m/n。Optionally, when calculating the movement track information of the moving distractor according to the shooting parameters and the area where the moving distractor is located in each image frame, the location coordinates of the region corresponding to the moving distractor in each image frame can be fitted to determine the location of the moving distractor. movement track. When calculating the length of the moving track, the length of the track corresponding to the position coordinates of the moving object in each two image frames can be calculated separately, and then the length of the moving track can be obtained by summing up. The coordinates of the center position of the area in one image frame are (a, b), and the coordinates of the center position of the area in the second image frame are (c, d). In the calculation of the two image frames, the position of the area of the moving object is moved. When the coordinate corresponds to the trajectory length s, it can be according to the formula Calculation. When calculating the direction of the moving track, the angle between the moving object and an edge of the image can be calculated; it can also be calculated at the angle between the moving object and the shooting target, for example, the starting point and the shooting point of the moving object. The angle between the line where the target is located and the trajectory of the moving distractor. It should be noted that the trajectory length calculated by the above method is the pixel distance. In order to improve the accuracy of determining whether to retain the moving interference object in the embodiment of the present application, the proportional relationship between the shooting field of view and the resolution of the camera during shooting can be used. Convert the calculated pixel distance to the actual trajectory length. For example, if the proportional relationship between the pixel shooting field of view and the resolution is m/n, and the calculated pixel track length is s, the actual track length is L=s×m/n.
可选的,根据拍摄参数以及各图像帧中移动干扰物所在区域,计算干扰物的移动速度信息时,由于根据摄像头的采样频率,可以确定相邻两个图像帧之间的时间间隔;因此,可以根据相邻两个图像帧中移动干扰物对应的移动轨迹长度以及相邻两个图像帧之间的时间间隔,确定该移动干扰物的移动速度。可选的,还可以通过计算出每两个图像帧对应的速度值,确定该移动干扰物对应的平均速度值以及速度的变化趋势等等。Optionally, when calculating the moving speed information of the interferer according to the shooting parameters and the area where the moving interferer is located in each image frame, the time interval between two adjacent image frames can be determined according to the sampling frequency of the camera; therefore, it can be The moving speed of the moving interferer is determined according to the length of the moving track corresponding to the moving interferer in the two adjacent image frames and the time interval between the two adjacent image frames. Optionally, the average speed value and the change trend of the speed corresponding to the moving interference object can also be determined by calculating the speed value corresponding to every two image frames.
步骤204、根据移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留移动干扰物。
本申请实施例提供的拍摄图像的处理方法,能够在连续拍摄多张图像后,通过检测每个图像帧中移动干扰物的区域,结合当前拍摄参数,计算移动干扰物的移动信息以便判断是否在生成的目标拍摄图像中保留该移动干扰物,提高了移动干扰物移动信息计算的准确性,为准确判断是否在生成的目标拍摄图像中保留移动干扰物提供了保障,进而提高拍摄质量。The method for processing a captured image provided by the embodiment of the present application can calculate the movement information of the moving interference object by detecting the area of the moving interference object in each image frame after shooting multiple images continuously, in combination with the current shooting parameters, so as to determine whether the generation The moving interferer is retained in the target photographed image, which improves the accuracy of the calculation of the movement information of the mobile interferer, and provides a guarantee for accurately judging whether the mobile interferer is retained in the generated target photographed image, thereby improving the shooting quality.
图3为本申请实施例提供的另一种拍摄图像的处理方法的流程示意图,作为对上述各实施例的一个优选实例,该方法适用于人像拍摄模式下拍摄多人合影图像时,对拍摄图像进行处理的情况。该方法包括如下步骤:FIG. 3 is a schematic flowchart of another method for processing a captured image provided by an embodiment of the present application. As a preferred example of the above embodiments, the method is suitable for capturing a group photo image of multiple people in a portrait capturing mode. case of processing. The method includes the following steps:
步骤301、开始。
步骤302、如果检测到预览画面中存在移动干扰物,则判断移动干扰物是否为目标干扰物;若是,执行步骤303;若否,执行步骤307。
其中,目标干扰物可以是按照干扰物的种类进行划分的,例如,可以分为人物干扰物、动物干扰物、车辆干扰物等等。可以根据不同的拍摄模式来确定目标干扰物的具体类型。The target distractors may be classified according to the types of distractors, for example, they may be divided into human distractors, animal distractors, vehicle distractors, and the like. The specific type of the target interferer can be determined according to different shooting modes.
可选的,由于本实施例主要适用于人像拍摄模式,人像拍摄模式可以在合影时同时定位多个人物的人脸,但可能并不是所有的人物都是需要合影的人物,因此,本实施例中主要是为了对拍摄过程中移动的人物进行处理,判断是否要在最后生成的目标拍摄图像中保留该移动人物,所以本实施例中的目标干扰物可以为人物干扰物。优选的,该人物干扰物还可以具体到人物的人脸。需要说明的是,可以根据实际拍摄模式和拍摄需求,来改变目标干扰物的类型,例如,若拍摄目标为动物,可以是将目标干扰物确定的动物干扰物。Optionally, since this embodiment is mainly applicable to the portrait shooting mode, the portrait shooting mode can locate the faces of multiple people at the same time when taking a group photo, but maybe not all the people are the people who need to take a group photo. Therefore, this embodiment The main purpose is to process the moving person during the shooting process and determine whether to keep the moving person in the final generated target shooting image, so the target distractor in this embodiment can be a human distractor. Preferably, the character distractor may also be specific to the face of the character. It should be noted that the type of the target distractor can be changed according to the actual shooting mode and shooting requirements. For example, if the shooting target is an animal, it can be the animal distractor determined by the target distractor.
示例性的,判断移动干扰物是否是目标干扰物时,可以是预先提取目标干扰物的特征,判断检测画面中的移动干扰物是否具有该特征,若有,则说明是目标干扰物,执行步骤303,若没有,说明不是目标干扰物,执行步骤307。例如,若目标干扰物为人物,预先提取人脸的五官特征,判断检测画面中移动干扰物是否具有人脸的五官特征,若具有人脸的五官特征,则说明该干扰物为人物,可以执行步骤303,进一步判断是否需要保留该人物,若不具有人脸的五官特征,则说明该干扰物为非人物,可以执行步骤307,直接在生成的目标拍摄图像中不保留该移动干扰物。Exemplarily, when judging whether the mobile interferer is the target interferer, the feature of the target interferer can be extracted in advance, and it is judged whether the mobile interferer in the detection screen has the feature. 303 , if not, it means that it is not the target interferer, and step 307 is executed. For example, if the target distractor is a person, the facial features of the human face are extracted in advance, and it is determined whether the moving distractor in the detection screen has the facial features of the human face. 303, further determine whether the person needs to be retained, if it does not have the facial features of a human face, it means that the distractor is a non-person, and step 307 can be executed to directly not retain the moving distractor in the generated target photographed image.
需要说明的是,本申请实施例中,若移动干扰物不是目标干扰物,也可以是按照其他规则判断是否在生成的目标拍摄图像中保留移动干扰物,并不限定于必须执行步骤307在目标拍摄图像中不保留移动干扰物。It should be noted that, in the embodiment of the present application, if the moving distractor is not the target distractor, it can also be judged according to other rules whether to retain the moving distractor in the generated target shot image, and it is not limited to performing
步骤303、若移动干扰物为目标干扰物,则连续拍摄至少两个图像帧。Step 303: If the moving interferer is the target interferer, shoot at least two image frames continuously.
步骤304、确定至少两个图像帧中移动干扰物的移动信息。Step 304: Determine the movement information of the moving interferer in at least two image frames.
步骤305、判断移动干扰物的移动轨迹的长度是否大于预设长度阈值,或移动速度是否大于预设速度阈值;若是,执行步骤307,若否,执行步骤306。
示例性的,在众人合影的过程中,避免不了会出现有些人左右晃动或轻微移动的情况,但通常情况下,合影者的移动无论是速度还是移动轨迹的通常幅度较小,而突然闯入镜头的干扰者的速度和移动轨迹的幅度会相对较大,因此,可以通过判断移动干扰物的移动轨迹的长度是否大于预设长度阈值,或判断移动速度是否大于预设速度阈值,若是,则说明移动干扰物不是众多合影者中的一个,而是突然闯入镜头的干扰者,此时,执行步骤307,在生成的目标拍摄图像中不保留移动干扰物;否则,执行步骤306,在生成的目标拍摄图像中保留移动干扰物。Exemplarily, in the process of taking a group photo, it is unavoidable that some people shake left and right or move slightly, but usually, the movement of the group photo person is usually small in terms of speed and movement trajectory, and sudden intrusion. The speed and range of the movement trajectory of the disturber of the lens will be relatively large. Therefore, it can be determined whether the length of the movement trajectory of the moving distractor is greater than the preset length threshold, or whether the movement speed is greater than the preset speed threshold. If so, then It means that the moving distractor is not one of the many people in the group photo, but a distractor who suddenly breaks into the lens. At this time,
步骤306、在生成的目标拍摄图像中保留移动干扰物。Step 306: Retain moving interference objects in the generated target photographed image.
步骤307、在生成的目标拍摄图像中不保留移动干扰物。Step 307: Do not retain moving distractors in the generated target shot image.
本申请实施例提供的拍摄图像的处理方法,在拍摄图像为合影图像且移动干扰物为目标干扰物时,若移动轨迹长度大于预设长度阈值或移动速度大于预设速度阈值,则在生成的目标拍摄图像中不保留该移动干扰物,能够保留合影时小幅度移动的人物,去除大幅度移动的非合影人物的干扰,提高了拍摄质量。In the processing method for a captured image provided by the embodiment of the present application, when the captured image is a group photo image and the moving distractor is the target distractor, if the length of the moving trajectory is greater than the preset length threshold or the moving speed is greater than the preset speed threshold, then the generated The moving interference object is not retained in the target shooting image, which can retain the characters that move in a small range during the group photo, remove the interference of the non-group photo characters who move in a large amount, and improve the shooting quality.
图4为本申请实施例提供的另一种拍摄图像的处理方法的流程示意图,作为对上述各实施例的一个优选实例,该方法适用于拍摄模式为人像模式时,移动干扰物为另一个拍摄目标,其在拍照过程中跑向原有拍摄目标进行拍照的情况。该方法包括如下步骤:FIG. 4 is a schematic flowchart of another method for processing a captured image provided by an embodiment of the present application. As a preferred example of the above-mentioned embodiments, the method is applicable to when the capturing mode is the portrait mode, and the moving interference object is another capturing mode. The target, which runs to the original shooting target to take a picture during the photographing process. The method includes the following steps:
步骤401、开始。
步骤402、如果检测到预览画面中存在移动干扰物,则判断移动干扰物是否为目标干扰物;若是,执行步骤403;若否,执行步骤407。
步骤403、若移动干扰物为目标干扰物,则连续拍摄至少两个图像帧。Step 403: If the moving interferer is the target interferer, shoot at least two image frames continuously.
步骤404、确定至少两个图像帧中移动干扰物的移动信息。Step 404: Determine the movement information of the moving interferer in at least two image frames.
步骤405、判断移动干扰物的移动速度是否呈减小趋势,且移动干扰物的移动轨迹是否向拍摄目标方向延伸,若是,执行步骤406,若否,执行步骤407。
示例性的,本实施例适用于拍照过程中,移动干扰物并非误闯入镜头的干扰者,而是要一起进行合影的合影者的情况,例如,镜头外的用户B想和用户A一起合影,快速跑到用户A旁边的情况。针对该情况,跑入镜头的用户通常具有两个特征:(1)闯入镜头的移动速度会逐渐减小,当其达到原有拍摄目标旁边时,速度会减少到零。(2)移动轨迹会朝向原有拍摄目标方向,最终停止在原有拍摄目标周围。因此,可以基于以上两个特征,在移动干扰物的移动速度呈减小趋势,且移动干扰物的移动轨迹向拍摄目标方向延伸时,确认该移动干扰物并非为误闯入镜头的干扰者,执行步骤406,在生成的目标拍摄图像中保留该移动干扰物;否则,确认该移动干扰物为误闯入镜头的干扰者,执行步骤407,在生成的目标拍摄图像中不保留该移动干扰物。Exemplarily, this embodiment is applicable to the situation in which the moving interferer is not the interferer who accidentally broke into the camera, but the group photo who wants to take a group photo together. For example, user B outside the camera wants to take a group photo with user A. , run quickly to the situation next to user A. In view of this situation, users who run into the camera usually have two characteristics: (1) The moving speed of the intrusion camera will gradually decrease, and when it reaches the side of the original shooting target, the speed will be reduced to zero. (2) The movement trajectory will be directed towards the original shooting target, and finally stop around the original shooting target. Therefore, based on the above two characteristics, when the moving speed of the moving distractor tends to decrease, and the moving trajectory of the moving distractor extends toward the shooting target, it can be confirmed that the moving distractor is not a distractor who accidentally broke into the lens,
可选的,在判断移动干扰物的移动轨迹是否向拍摄目标方向延伸时,可以是判断移动干扰物的移动轨迹与其移动起点到拍摄目标所在直线的夹角是否逐渐减小,且移动干扰物到拍摄目标的距离是否逐渐减小,若都满足,则说明移动干扰物的移动轨迹向拍摄目标方向延伸。Optionally, when judging whether the movement trajectory of the moving distractor extends in the direction of the shooting target, it can be judged whether the angle between the moving trajectory of the moving distractor and its moving starting point to the line where the shooting target is located gradually decreases, and the moving distractor reaches the target. Whether the distance of the shooting target gradually decreases, and if all are satisfied, it means that the movement trajectory of the moving interference object extends toward the shooting target.
步骤406、在生成的目标拍摄图像中保留移动干扰物。Step 406: Retain moving interference objects in the generated target shot image.
步骤407、在生成的目标拍摄图像中不保留移动干扰物。Step 407: Do not retain moving interference objects in the generated target photographed image.
本申请实施例提供的拍摄图像的处理方法,在拍摄图像为人物图像且移动干扰物为目标干扰物时,若移动速度呈减小趋势,且移动轨迹向拍摄目标方向延伸,则在生成的目标拍摄图像中保留该移动干扰物,能够避免将跑向镜头的中原有拍摄目标旁边的另一拍摄目标误删除的情况,提高了拍摄质量。In the processing method for a captured image provided by the embodiment of the present application, when the captured image is a human image and the moving distractor is the target distractor, if the moving speed tends to decrease, and the moving trajectory extends toward the shooting target, then the generated target Retaining the moving interference object in the photographed image can avoid the situation of mistakenly deleting another photographing target next to the original photographing target running toward the lens, thereby improving the photographing quality.
图5为本申请实施例提供的另一种拍摄图像的处理方法的流程示意图,作为对上述实施例的进一步说明,该方法包括如下步骤:FIG. 5 is a schematic flowchart of another method for processing a captured image provided by an embodiment of the present application. As a further description of the foregoing embodiment, the method includes the following steps:
步骤501、如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧。Step 501: If it is detected that there is a moving interference object in the preview image, shoot at least two image frames continuously.
步骤502、确定至少两个图像帧中移动干扰物的移动信息。Step 502: Determine the movement information of the moving interferer in at least two image frames.
步骤503、根据移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留移动干扰物,若是,执行步骤504,若否,执行步骤505。
步骤504、若在生成的目标拍摄图像中保留移动干扰物,则根据图像帧的时域关联性,对包含有移动干扰物的至少两个图像帧进行融合,生成目标拍摄图像。
示例性的,若在生成的目标拍摄图像中保留移动干扰物,则需要对包含有移动干扰物的各图像帧进行融合处理,具体的融合处理过程可以是根据图像帧之间的时域关联性,确定各图像帧中移动干扰物所在区域位置之间的关联性。先对各图像帧中移动干扰物所在区域的图像进行融合,去除移动干扰物的伪影,得到清晰的目标干扰物图像,然后结合具体的拍摄场景,判断将融合后的移动干扰物放置在拍摄图像中的什么位置,例如,若移动干扰物为众多合影者中轻微晃动者,则可以对各图像帧中移动干扰物所在区域求均值,将融合后的移动干扰物放置在各图像帧对应的平均干扰物所在区域。若拍摄图像为闯进镜头想要参与拍照的拍摄目标,则可以是将融合后的移动干扰物放置在最后一个图像帧中移动干扰物所在区域。Exemplarily, if moving distractors are retained in the generated target shot image, it is necessary to perform fusion processing on each image frame containing the moving distractors. The specific fusion processing process may be based on the temporal correlation between the image frames. , to determine the correlation between the locations of the moving interference objects in each image frame. First, fuse the images of the area where the moving distractors are located in each image frame, remove the artifacts of the moving distractors, and obtain a clear image of the target distractors, and then combine the specific shooting scenes to determine whether the fused moving distractors should be placed in the captured image. For example, if the moving distractor is a slight swaying among many people in the group photo, the average value of the area where the moving distractor is located in each image frame can be averaged, and the fused moving distractor can be placed in the average disturbance corresponding to each image frame. the area where the object is located. If the captured image is a shooting target that the intruding lens wants to take part in, the fused moving distractor may be placed in the area where the moving distractor is located in the last image frame.
可选的,对包含有移动干扰物的至少两个图像帧进行融合时,可以是基于像素级融合算法和/或特征级融合算法对处理后的至少两个图像帧进行融合处理,生成目标拍摄图像。Optionally, when merging at least two image frames containing moving distractors, it may be based on a pixel-level fusion algorithm and/or a feature-level fusion algorithm to fuse the processed at least two image frames to generate a target shot. image.
其中,像素级融合也称数据级融合,可以是直接对采集到的包含有移动干扰物的图像数据进行处理而获得融合图像的过程。具体的,像素级融合算法可以包括空间域算法和变换域算法等,空间域算法中又可以包括多种融合规则方法,如逻辑滤波法、灰度加权平均法和对比调制法等;变换域算法中又可以包括金字塔分解融合法和小波变换法等。采用像素级融合算法的好处在于可以尽可能多的还原图像中的细节信息,如边缘、纹理的提取等。能够很好的判断移动干扰物的像素点信息,从而把模糊的移动干扰物还原出来。此外还可以尽可能多的保留图像非移动干扰物的图像信息,使得融合后的图片不论是移动干扰物所在区域还是非移动干扰物所在区域都能保证其清晰度。Among them, pixel-level fusion is also called data-level fusion, which may be a process of directly processing the collected image data containing moving interference objects to obtain a fusion image. Specifically, the pixel-level fusion algorithm can include spatial domain algorithms and transform domain algorithms, etc., and the spatial domain algorithms can include a variety of fusion rule methods, such as logical filtering methods, gray-scale weighted average methods, and contrast modulation methods; transform domain algorithms It can also include pyramid decomposition and fusion method and wavelet transform method. The advantage of using the pixel-level fusion algorithm is that it can restore as much detail information in the image as possible, such as the extraction of edges and textures. It can well judge the pixel point information of moving interference objects, so as to restore the blurred moving interference objects. In addition, as much image information of the non-moving interferers can be retained as possible, so that the fused image can ensure its clarity regardless of the area where the moving interferers are located or the areas where the non-moving interferers are located.
特征级图像融合算法可以是从采集到的包含有移动干扰物的图像中将特征信息提取出来,这些特征信息是移动干扰物所在区域的特征信息,然后对这些特征信息进行分析、处理与整合从而得到融合后的图像特征。采用特征级融合算法的好处在于融合后的移动干扰物的清晰度更高,且特征级融合对图像信息进行了压缩,再用计算机分析与处理,所消耗的内存与时间相对较小,拍摄图像处理的实时性就会有所提高。The feature-level image fusion algorithm can extract feature information from the collected images containing moving distractors, these feature information is the feature information of the area where the moving distractors are located, and then analyze, process and integrate these feature information to Get the fused image features. The advantage of using the feature-level fusion algorithm is that the fused mobile interferers have higher definition, and the feature-level fusion compresses the image information, and then analyzes and processes it with a computer, which consumes relatively little memory and time. The real-time performance of processing will be improved.
可选的,在对包含有移动干扰物的至少两个图像帧进行融合时,还可以是从至少两个图像帧中,去除含有伪影的不清楚的移动干扰物所在的图像,然后再基于上述融合方法对包含有清晰移动干扰物的图像进行融合。Optionally, when merging at least two image frames containing moving distractors, it may also be to remove the image where the unclear moving distractors containing artifacts are located from the at least two image frames, and then based on the at least two image frames. The above fusion method fuses images containing clear moving distractors.
步骤505、若在生成的目标拍摄图像中不保留移动干扰物,则根据图像帧的时域关联性,去除至少两个图像帧中的移动干扰物,得到预处理图像集合。
示例性的,预处理图像集合可以是去除了移动干扰物后的各图像帧的集合。根据图像帧的时域关联性,去除至少两个图像帧中的移动干扰物时,可以是根据图像帧之间的时域关联性,确定每一个图像帧中移动干扰物所在区域对应的原始拍摄内容,并将原始拍摄内容替换该图像帧中的移动干扰物所在区域,例如,第一个图像帧中移动干扰物所在区域位置为S1,则可以选择除第一个图像帧外的其余任何一帧拍摄图像中对应的S1区域中的内容即为第一个图像帧中移动干扰物对应的原始拍摄内容,此时,就将除第一个图像帧外的其余任何一帧拍摄图像中对应的S1区域中的内容替换第一个图像帧中移动干扰物所在区域。Exemplarily, the set of preprocessed images may be a set of image frames from which moving distractors are removed. According to the temporal correlation of the image frames, when removing the moving distractors in at least two image frames, the original shooting content corresponding to the area where the moving distractors are located in each image frame may be determined according to the temporal correlation between the image frames. , and replace the original shooting content in the area where the moving distractor is located in the image frame. For example, if the location of the moving distractor in the first image frame is S1, you can select any other frame except the first image frame to shoot The content in the corresponding S1 area in the image is the original shooting content corresponding to the moving interferer in the first image frame. replaces the area where the moving distractor is located in the first image frame.
步骤506、对预处理图像集合进行融合,生成目标拍摄图像。
示例性的,对预处理图像集合进行融合时,也可以基于像素级融合算法和/或特征级融合算法对处理后的至少两个图像帧进行融合处理,生成目标拍摄图像。Exemplarily, when the preprocessed image set is fused, the at least two processed image frames may also be fused based on a pixel-level fusion algorithm and/or a feature-level fusion algorithm to generate a target shot image.
本申请实施例提供的拍摄图像的处理方法,能够根据移动干扰物的移动信息,在确定保留该移动干扰物时,对包含有移动干扰物的各图像帧进行融合生成目标拍摄图像,在确定不保留该移动干扰物时,先对各图像帧去除移动干扰物后再融合生成目标拍摄图像。能够自动对拍摄过程中的移动干扰物进行分析处理,无论是否保留干扰物都能生成清晰的高质量拍摄图像。The method for processing a captured image provided by the embodiment of the present application can, according to the movement information of the moving interference object, fuse each image frame containing the moving interference object to generate the target captured image when it is determined to keep the moving interference object, and when it is determined that the moving interference object is not When the moving interference object is retained, the moving interference object is first removed from each image frame, and then the target shot image is generated by fusion. It can automatically analyze and process the moving interference during the shooting process, and can generate clear and high-quality shooting images regardless of whether the interference is retained.
图6为本申请实施例提供的一种拍摄图像的处理装置的结构框图,该装置可由软件和/或硬件实现,一般集成在具有拍照功能的移动终端中,可以执行上述各实施例所述的拍摄图像的处理方法。如图6所示,该装置包括:图像拍摄模块601、信息确定模块602和保留确定模块603。FIG. 6 is a structural block diagram of a processing apparatus for capturing images provided by an embodiment of the present application. The apparatus may be implemented by software and/or hardware, and is generally integrated in a mobile terminal with a photographing function, and may execute the above-described embodiments. The processing method of the captured image. As shown in FIG. 6 , the apparatus includes: an
图像拍摄模块601,用于如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧;An
信息确定模块602,用于确定所述图像拍摄模块601连续拍摄的至少两个图像帧中移动干扰物的移动信息;an
保留确定模块603,用于根据所述信息确定模块602确定的移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物。The
进一步的,信息确定模块602用于:Further, the
检测所述至少两个图像帧中的移动干扰物所在区域;detecting the area where the moving distractor is located in the at least two image frames;
根据拍摄参数以及各图像帧中的移动干扰物所在区域,计算所述移动干扰物的移动信息。The movement information of the moving disturbance object is calculated according to the shooting parameters and the area where the moving disturbance object is located in each image frame.
进一步的,图像拍摄模块601用于:Further, the
如果检测到预览画面中存在移动干扰物,则判断所述移动干扰物是否为目标干扰物;If it is detected that there is a mobile interferer in the preview screen, then determine whether the mobile interferer is a target interferer;
若所述移动干扰物为目标干扰物,则连续拍摄至少两个图像帧。If the moving distractor is the target distractor, at least two image frames are continuously captured.
进一步的,保留确定模块603用于:Further, the
若拍摄图像为合影图像,则当所述移动干扰物的移动轨迹的长度大于预设长度阈值,或移动速度大于预设速度阈值时,在生成的目标拍摄图像中不保留所述移动干扰物。If the captured image is a group photo image, when the length of the moving track of the moving distractor is greater than the preset length threshold, or the moving speed is greater than the preset speed threshold, the moving distractor is not retained in the generated target photographed image.
进一步的,保留确定模块603用于:Further, the
若拍摄模式为人像模式,则当所述移动干扰物的移动速度呈减小趋势,且所述移动干扰物的移动轨迹向拍摄目标方向延伸时,在生成的目标拍摄图像中保留所述移动干扰物。If the shooting mode is the portrait mode, when the moving speed of the moving distractor tends to decrease, and the moving trajectory of the moving distractor extends toward the shooting target, the moving distraction is retained in the generated target shooting image thing.
进一步的,上述装置还包括图像融合模块,用于在所述确定是否在生成的目标拍摄图像中保留所述移动干扰物之后,若在生成的目标拍摄图像中不保留移动干扰物,则根据图像帧的时域关联性,去除所述至少两个图像帧中的移动干扰物,得到预处理图像集合;对所述预处理图像集合进行融合,生成目标拍摄图像。Further, the above-mentioned device further includes an image fusion module, which is used for determining whether to retain the moving distractor in the generated target photographed image, if no moving distractor is retained in the generated target photographed image, then according to the image. The time domain correlation of the frames is used to remove the moving interference in the at least two image frames to obtain a set of pre-processed images; the set of pre-processed images is fused to generate a target shot image.
进一步的,图像融合模块,还用于在所述确定是否在生成的目标拍摄图像中保留所述移动干扰物之后,若在生成的目标拍摄图像中保留移动干扰物,则根据图像帧的时域关联性,对包含有移动干扰物的至少两个图像帧进行融合,生成目标拍摄图像。Further, the image fusion module is also used to determine whether to retain the moving distractor in the generated target photographed image, if the moving distractor is retained in the generated target photographed image, according to the time domain of the image frame. Correlation, at least two image frames containing moving distractors are fused to generate a target shot image.
本申请实施例提供的拍摄图像的处理装置,首先,图像拍摄模块601如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧;然后,信息确定模块602确定连续拍摄的至少两个图像帧中移动干扰物的移动信息,最后,保留确定模块603根据确定的移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物。相对于相关技术中在拍照过程中,若拍摄视野内存在移动干扰物,则拍摄图像模糊、质量较差的问题。本申请实施例能够在预览画面存在移动干扰物时,连续拍摄多个图像帧确定移动干扰物的移动信息,以便判断是否在生成的目标拍摄图像中保留该移动干扰物,进而避免了移动干扰物对拍摄图像清晰度的影响,提高拍摄质量。In the processing device for capturing images provided by the embodiments of the present application, firstly, if the
上述装置可执行本申请前述所有实施例所提供的方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请前述所有实施例所提供的方法。The above-mentioned apparatus can execute the methods provided by all the foregoing embodiments of the present application, and has corresponding functional modules and beneficial effects for executing the above-mentioned methods. For technical details not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of this application.
图7是本申请实施例提供的一种终端设备的结构示意图。如图7所示,该终端可以包括:壳体(图中未示出)、存储器701、中央处理器(Central ProcessingUnit,CPU)702(又称处理器,以下简称CPU)、存储在存储器701上并可在处理器702上运行的计算机程序、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU702和所述存储器701设置在所述电路板上;所述电源电路,用于为所述终端的各个电路或器件供电;所述存储器701,用于存储可执行程序代码;所述CPU702通过读取所述存储器701中存储的可执行程序代码来运行与所述可执行程序代码对应的程序。FIG. 7 is a schematic structural diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 7 , the terminal may include: a casing (not shown in the figure), a
所述终端还包括:外设接口703、RF(Radio Frequency,射频)电路705、音频电路706、扬声器711、电源管理芯片708、输入/输出(I/O)子系统709、触摸屏712、其他输入/控制设备710以及外部端口704,这些部件通过一个或多个通信总线或信号线707来通信。The terminal further includes: a
应该理解的是,图示终端设备700仅仅是终端的一个范例,并且终端设备700可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated
下面就本实施例提供的用于一种终端设备进行详细的描述,该终端设备以智能手机为例。The following is a detailed description of a terminal device provided in this embodiment, where a smart phone is used as an example for the terminal device.
存储器701,所述存储器701可以被CPU702、外设接口703等访问,所述存储器701可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
外设接口703,所述外设接口703可以将设备的输入和输出外设连接到CPU702和存储器701。A
I/O子系统709,所述I/O子系统709可以将设备上的输入输出外设,例如触摸屏712和其他输入/控制设备710,连接到外设接口703。I/O子系统709可以包括显示控制器7091和用于控制其他输入/控制设备710的一个或多个输入控制器7092。其中,一个或多个输入控制器7092从其他输入/控制设备710接收电信号或者向其他输入/控制设备710发送电信号,其他输入/控制设备710可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器7092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/
其中,按照触摸屏的工作原理和传输信息的介质分类,触摸屏712可以为电阻式、电容感应式、红外线式或表面声波式。按照安装方式分类,触摸屏712可以为:外挂式、内置式或整体式。按照技术原理分类,触摸屏712可以为:矢量压力传感技术触摸屏、电阻技术触摸屏、电容技术触摸屏、红外线技术触摸屏或表面声波技术触摸屏。Wherein, according to the working principle of the touch screen and the classification of the medium for transmitting information, the
触摸屏712,所述触摸屏712是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。可选的,触摸屏712将用户在触屏幕上触发的电信号(如接触面的电信号),发送给处理器702。The
I/O子系统709中的显示控制器7091从触摸屏712接收电信号或者向触摸屏712发送电信号。触摸屏712检测触摸屏上的接触,显示控制器7091将检测到的接触转换为与显示在触摸屏712上的用户界面对象的交互,即实现人机交互,显示在触摸屏712上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。
RF电路705,主要用于建立智能音箱与无线网络(即网络侧)的通信,实现智能音箱与无线网络的数据接收和发送。例如收发短信息、电子邮件等。The
音频电路706,主要用于从外设接口703接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器711。The
扬声器711,用于将智能音箱通过RF电路705从无线网络接收的语音信号,还原为声音并向用户播放该声音。The
电源管理芯片708,用于为CPU702、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The
在本实施例中,中央处理器702用于:In this embodiment, the
如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧;If it is detected that there is a moving distraction in the preview screen, shoot at least two image frames continuously;
确定所述至少两个图像帧中移动干扰物的移动信息;determining movement information of a moving distractor in the at least two image frames;
根据所述移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物。According to the movement information of the moving interference object, it is determined whether to retain the moving interference object in the generated target shot image.
进一步的,所述确定所述至少两个图像帧中移动干扰物的移动信息,包括:Further, the determining of the movement information of the moving interferers in the at least two image frames includes:
检测所述至少两个图像帧中的移动干扰物所在区域;detecting the area where the moving distractor is located in the at least two image frames;
根据拍摄参数以及各图像帧中的移动干扰物所在区域,计算所述移动干扰物的移动信息。The movement information of the moving disturbance object is calculated according to the shooting parameters and the area where the moving disturbance object is located in each image frame.
进一步的,所述如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧,包括:Further, if it is detected that there is a moving object in the preview image, at least two image frames are continuously captured, including:
如果检测到预览画面中存在移动干扰物,则判断所述移动干扰物是否为目标干扰物;If it is detected that there is a mobile interferer in the preview screen, then determine whether the mobile interferer is a target interferer;
若所述移动干扰物为目标干扰物,则连续拍摄至少两个图像帧。If the moving distractor is the target distractor, at least two image frames are continuously captured.
进一步的,所述根据所述移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物,包括:Further, according to the movement information of the moving interference object, determining whether to retain the moving interference object in the generated target shot image includes:
若拍摄图像为合影图像,则当所述移动干扰物的移动轨迹的长度大于预设长度阈值,或移动速度大于预设速度阈值时,在生成的目标拍摄图像中不保留所述移动干扰物。If the captured image is a group photo image, when the length of the moving track of the moving distractor is greater than the preset length threshold, or the moving speed is greater than the preset speed threshold, the moving distractor is not retained in the generated target photographed image.
进一步的,所述根据所述移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物,包括:Further, according to the movement information of the moving interference object, determining whether to retain the moving interference object in the generated target shot image includes:
若拍摄模式为人像模式,则当所述移动干扰物的移动速度呈减小趋势,且所述移动干扰物的移动轨迹向拍摄目标方向延伸时,在生成的目标拍摄图像中保留所述移动干扰物。If the shooting mode is the portrait mode, when the moving speed of the moving distractor tends to decrease, and the moving trajectory of the moving distractor extends toward the shooting target, the moving distraction is retained in the generated target shooting image thing.
进一步的,在所述确定是否在生成的目标拍摄图像中保留所述移动干扰物之后,还包括:Further, after the determining whether to retain the moving distractor in the generated target shot image, the method further includes:
若在生成的目标拍摄图像中不保留移动干扰物,则根据图像帧的时域关联性,去除所述至少两个图像帧中的移动干扰物,得到预处理图像集合;If no moving interference objects are retained in the generated target captured images, removing the moving interference objects in the at least two image frames according to the temporal correlation of the image frames, to obtain a set of preprocessed images;
对所述预处理图像集合进行融合,生成目标拍摄图像。The set of preprocessed images is fused to generate a target shot image.
进一步的,在所述确定是否在生成的目标拍摄图像中保留所述移动干扰物之后,还包括:Further, after the determining whether to retain the moving distractor in the generated target shot image, the method further includes:
若在生成的目标拍摄图像中保留移动干扰物,则根据图像帧的时域关联性,对包含有移动干扰物的至少两个图像帧进行融合,生成目标拍摄图像。If the moving interferer is retained in the generated target shot image, at least two image frames containing the moving interferer are fused according to the temporal correlation of the image frames to generate the target shot image.
本申请实施例还提供一种包含终端设备可执行指令的存储介质,所述终端设备可执行指令在由终端设备处理器执行时用于执行一种拍摄图像的处理方法,该方法包括:Embodiments of the present application further provide a storage medium containing executable instructions of a terminal device, where the executable instructions of the terminal device are used to execute a method for processing a captured image when executed by a processor of the terminal device, and the method includes:
如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧;If it is detected that there is a moving distraction in the preview screen, shoot at least two image frames continuously;
确定所述至少两个图像帧中移动干扰物的移动信息;determining movement information of a moving distractor in the at least two image frames;
根据所述移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物。According to the movement information of the moving interference object, it is determined whether to retain the moving interference object in the generated target shot image.
进一步的,所述确定所述至少两个图像帧中移动干扰物的移动信息,包括:Further, the determining of the movement information of the moving interferers in the at least two image frames includes:
检测所述至少两个图像帧中的移动干扰物所在区域;detecting the area where the moving distractor is located in the at least two image frames;
根据拍摄参数以及各图像帧中的移动干扰物所在区域,计算所述移动干扰物的移动信息。The movement information of the moving disturbance object is calculated according to the shooting parameters and the area where the moving disturbance object is located in each image frame.
进一步的,所述如果检测到预览画面中存在移动干扰物,则连续拍摄至少两个图像帧,包括:Further, if it is detected that there is a moving object in the preview image, at least two image frames are continuously captured, including:
如果检测到预览画面中存在移动干扰物,则判断所述移动干扰物是否为目标干扰物;If it is detected that there is a mobile interferer in the preview screen, then determine whether the mobile interferer is a target interferer;
若所述移动干扰物为目标干扰物,则连续拍摄至少两个图像帧。If the moving distractor is the target distractor, at least two image frames are continuously captured.
进一步的,所述根据所述移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物,包括:Further, according to the movement information of the moving interference object, determining whether to retain the moving interference object in the generated target shot image includes:
若拍摄图像为合影图像,则当所述移动干扰物的移动轨迹的长度大于预设长度阈值,或移动速度大于预设速度阈值时,在生成的目标拍摄图像中不保留所述移动干扰物。If the captured image is a group photo image, when the length of the moving track of the moving distractor is greater than the preset length threshold, or the moving speed is greater than the preset speed threshold, the moving distractor is not retained in the generated target photographed image.
进一步的,所述根据所述移动干扰物的移动信息,确定是否在生成的目标拍摄图像中保留所述移动干扰物,包括:Further, according to the movement information of the moving interference object, determining whether to retain the moving interference object in the generated target shot image includes:
若拍摄模式为人像模式,则当所述移动干扰物的移动速度呈减小趋势,且所述移动干扰物的移动轨迹向拍摄目标方向延伸时,在生成的目标拍摄图像中保留所述移动干扰物。If the shooting mode is the portrait mode, when the moving speed of the moving distractor tends to decrease, and the moving trajectory of the moving distractor extends toward the shooting target, the moving distraction is retained in the generated target shooting image thing.
进一步的,在所述确定是否在生成的目标拍摄图像中保留所述移动干扰物之后,还包括:Further, after the determining whether to retain the moving distractor in the generated target shot image, the method further includes:
若在生成的目标拍摄图像中不保留移动干扰物,则根据图像帧的时域关联性,去除所述至少两个图像帧中的移动干扰物,得到预处理图像集合;If no moving interference objects are retained in the generated target captured images, removing the moving interference objects in the at least two image frames according to the temporal correlation of the image frames, to obtain a set of preprocessed images;
对所述预处理图像集合进行融合,生成目标拍摄图像。The set of preprocessed images is fused to generate a target shot image.
进一步的,在所述确定是否在生成的目标拍摄图像中保留所述移动干扰物之后,还包括:Further, after the determining whether to retain the moving distractor in the generated target shot image, the method further includes:
若在生成的目标拍摄图像中保留移动干扰物,则根据图像帧的时域关联性,对包含有移动干扰物的至少两个图像帧进行融合,生成目标拍摄图像。If the moving interferer is retained in the generated target shot image, at least two image frames containing the moving interferer are fused according to the temporal correlation of the image frames to generate the target shot image.
本申请实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium of the embodiments of the present application may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable Programmable Read Only Memory (EPROM or Flash), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请操作的计算机程序代码,程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present application may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional procedural languages, or a combination thereof. Programming Language - such as "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的应用推荐操作,还可以执行本申请任意实施例所提供的拍摄图像的处理方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided by the embodiments of the present application is not limited to the above-mentioned application recommendation operation, and the computer-executable instructions can also perform the processing of captured images provided by any embodiment of the present application. related operations in the method.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present application and applied technical principles. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application. The scope is determined by the scope of the appended claims.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811238344.0A CN109040604B (en) | 2018-10-23 | 2018-10-23 | Shot image processing method and device, storage medium and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811238344.0A CN109040604B (en) | 2018-10-23 | 2018-10-23 | Shot image processing method and device, storage medium and mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109040604A CN109040604A (en) | 2018-12-18 |
| CN109040604B true CN109040604B (en) | 2020-09-15 |
Family
ID=64613854
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811238344.0A Active CN109040604B (en) | 2018-10-23 | 2018-10-23 | Shot image processing method and device, storage medium and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109040604B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111263071B (en) * | 2020-02-26 | 2021-12-10 | 维沃移动通信有限公司 | A shooting method and electronic device |
| CN113727095B (en) * | 2021-08-27 | 2024-07-02 | 杭州萤石软件有限公司 | Camera movement detection method, device, equipment, system and storage medium |
Citations (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7094164B2 (en) * | 2001-09-12 | 2006-08-22 | Pillar Vision Corporation | Trajectory detection and feedback system |
| CN102592128A (en) * | 2011-12-20 | 2012-07-18 | Tcl集团股份有限公司 | Method and device for detecting and processing dynamic image and display terminal |
| CN105046719A (en) * | 2015-07-03 | 2015-11-11 | 苏州科达科技股份有限公司 | Method and system for video monitoring |
| CN105744232A (en) * | 2016-03-25 | 2016-07-06 | 南京第五十五所技术开发有限公司 | Method for preventing power transmission line from being externally broken through video based on behaviour analysis technology |
| CN106210542A (en) * | 2016-08-16 | 2016-12-07 | 深圳市金立通信设备有限公司 | The method of a kind of photo synthesis and terminal |
| WO2016018487A8 (en) * | 2014-05-09 | 2016-12-08 | Eyefluence, Inc. | Systems and methods for biomechanically-based eye signals for interacting with real and virtual objects |
| CN106598046A (en) * | 2016-11-29 | 2017-04-26 | 北京智能管家科技有限公司 | Robot avoidance controlling method and device |
| CN107087106A (en) * | 2017-04-19 | 2017-08-22 | 深圳市金立通信设备有限公司 | A kind of image pickup method and terminal |
| CN107193032A (en) * | 2017-03-31 | 2017-09-22 | 长光卫星技术有限公司 | Multiple mobile object based on satellite video quickly tracks speed-measuring method |
| CN107343149A (en) * | 2017-07-31 | 2017-11-10 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
| CN107566724A (en) * | 2017-09-13 | 2018-01-09 | 维沃移动通信有限公司 | A kind of panoramic picture image pickup method and mobile terminal |
| CN107563282A (en) * | 2017-07-25 | 2018-01-09 | 大圣科技股份有限公司 | For unpiloted recognition methods, electronic equipment, storage medium and system |
| CN107820013A (en) * | 2017-11-24 | 2018-03-20 | 上海创功通讯技术有限公司 | A kind of photographic method and terminal |
| CN107844765A (en) * | 2017-10-31 | 2018-03-27 | 广东欧珀移动通信有限公司 | Photographing method, device, terminal and storage medium |
| CN107872644A (en) * | 2016-09-23 | 2018-04-03 | 亿阳信通股份有限公司 | Video frequency monitoring method and device |
| CN108052883A (en) * | 2017-11-30 | 2018-05-18 | 广东欧珀移动通信有限公司 | User's photographic method, device and equipment |
| CN108076290A (en) * | 2017-12-20 | 2018-05-25 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
| CN108184051A (en) * | 2017-12-22 | 2018-06-19 | 努比亚技术有限公司 | A kind of main body image pickup method, equipment and computer readable storage medium |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011053374A1 (en) * | 2009-10-30 | 2011-05-05 | Zoran Corporation | Method and apparatus for image detection with undesired object removal |
-
2018
- 2018-10-23 CN CN201811238344.0A patent/CN109040604B/en active Active
Patent Citations (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7094164B2 (en) * | 2001-09-12 | 2006-08-22 | Pillar Vision Corporation | Trajectory detection and feedback system |
| CN102592128A (en) * | 2011-12-20 | 2012-07-18 | Tcl集团股份有限公司 | Method and device for detecting and processing dynamic image and display terminal |
| WO2016018487A8 (en) * | 2014-05-09 | 2016-12-08 | Eyefluence, Inc. | Systems and methods for biomechanically-based eye signals for interacting with real and virtual objects |
| CN105046719A (en) * | 2015-07-03 | 2015-11-11 | 苏州科达科技股份有限公司 | Method and system for video monitoring |
| CN105744232A (en) * | 2016-03-25 | 2016-07-06 | 南京第五十五所技术开发有限公司 | Method for preventing power transmission line from being externally broken through video based on behaviour analysis technology |
| CN106210542A (en) * | 2016-08-16 | 2016-12-07 | 深圳市金立通信设备有限公司 | The method of a kind of photo synthesis and terminal |
| CN107872644A (en) * | 2016-09-23 | 2018-04-03 | 亿阳信通股份有限公司 | Video frequency monitoring method and device |
| CN106598046A (en) * | 2016-11-29 | 2017-04-26 | 北京智能管家科技有限公司 | Robot avoidance controlling method and device |
| CN107193032A (en) * | 2017-03-31 | 2017-09-22 | 长光卫星技术有限公司 | Multiple mobile object based on satellite video quickly tracks speed-measuring method |
| CN107087106A (en) * | 2017-04-19 | 2017-08-22 | 深圳市金立通信设备有限公司 | A kind of image pickup method and terminal |
| CN107563282A (en) * | 2017-07-25 | 2018-01-09 | 大圣科技股份有限公司 | For unpiloted recognition methods, electronic equipment, storage medium and system |
| CN107343149A (en) * | 2017-07-31 | 2017-11-10 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
| CN107566724A (en) * | 2017-09-13 | 2018-01-09 | 维沃移动通信有限公司 | A kind of panoramic picture image pickup method and mobile terminal |
| CN107844765A (en) * | 2017-10-31 | 2018-03-27 | 广东欧珀移动通信有限公司 | Photographing method, device, terminal and storage medium |
| CN107820013A (en) * | 2017-11-24 | 2018-03-20 | 上海创功通讯技术有限公司 | A kind of photographic method and terminal |
| CN108052883A (en) * | 2017-11-30 | 2018-05-18 | 广东欧珀移动通信有限公司 | User's photographic method, device and equipment |
| CN108076290A (en) * | 2017-12-20 | 2018-05-25 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
| CN108184051A (en) * | 2017-12-22 | 2018-06-19 | 努比亚技术有限公司 | A kind of main body image pickup method, equipment and computer readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109040604A (en) | 2018-12-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7295936B2 (en) | Motion recognition method, electronic device and storage medium | |
| US11321575B2 (en) | Method, apparatus and system for liveness detection, electronic device, and storage medium | |
| KR102121592B1 (en) | Method and apparatus for protecting eyesight | |
| KR101184460B1 (en) | Device and method for controlling a mouse pointer | |
| CN108566516B (en) | Image processing method, device, storage medium and mobile terminal | |
| CN109167893B (en) | Shot image processing method and device, storage medium and mobile terminal | |
| KR102488563B1 (en) | Apparatus and Method for Processing Differential Beauty Effect | |
| JP7181375B2 (en) | Target object motion recognition method, device and electronic device | |
| CN110456907A (en) | Virtual screen control method, device, terminal equipment and storage medium | |
| CN110992327A (en) | Lens contamination state detection method and device, terminal and storage medium | |
| CN108712606B (en) | Prompting method, prompting device, storage medium and mobile terminal | |
| US20170255260A1 (en) | Information processing apparatus, information processing method, and program | |
| CN109040523B (en) | Artifact eliminating method and device, storage medium and terminal | |
| SE538272C2 (en) | Improved identification of a gesture | |
| US9846956B2 (en) | Methods, systems and computer-readable mediums for efficient creation of image collages | |
| US9811916B1 (en) | Approaches for head tracking | |
| CN107835370A (en) | Camera switching method and device and electronic equipment | |
| CN109040524A (en) | Artifact eliminating method, device, storage medium and terminal | |
| CN113014846A (en) | Video acquisition control method, electronic equipment and computer readable storage medium | |
| EP3617851B1 (en) | Information processing device, information processing method, and recording medium | |
| CN112749590A (en) | Object detection method, device, computer equipment and computer readable storage medium | |
| CN114079729A (en) | Shooting control method, device, electronic device, and storage medium | |
| CN109040604B (en) | Shot image processing method and device, storage medium and mobile terminal | |
| CN107977636B (en) | Face detection method and device, terminal and storage medium | |
| CN108960213A (en) | Method for tracking target, device, storage medium and terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |