[go: up one dir, main page]

CN108776800A - Image processing method, mobile terminal and computer readable storage medium - Google Patents

Image processing method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108776800A
CN108776800A CN201810579524.9A CN201810579524A CN108776800A CN 108776800 A CN108776800 A CN 108776800A CN 201810579524 A CN201810579524 A CN 201810579524A CN 108776800 A CN108776800 A CN 108776800A
Authority
CN
China
Prior art keywords
target
processing target
foreground
processing
image
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.)
Granted
Application number
CN201810579524.9A
Other languages
Chinese (zh)
Other versions
CN108776800B (en
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 Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810579524.9A priority Critical patent/CN108776800B/en
Publication of CN108776800A publication Critical patent/CN108776800A/en
Application granted granted Critical
Publication of CN108776800B publication Critical patent/CN108776800B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/07Target detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application is applicable to the technical field of image processing, and provides an image processing method, a mobile terminal and a computer readable storage medium, wherein the image processing method comprises the following steps: the method comprises the steps of obtaining a preview picture collected by a camera in the mobile terminal, identifying the preview picture to obtain an identification result, wherein the identification result is used for indicating whether a foreground target exists in the preview picture and a foreground label of the foreground target when the foreground target exists, recording a foreground target corresponding to a preset label combination as a processing target if at least two foreground targets exist in the preview picture and a preset label combination exists in a foreground label combination of the foreground target, obtaining a background image corresponding to each processing target in the preview picture, carrying out virtual processing on the background image corresponding to each processing target, and obtaining diversified images through the method.

Description

一种图像处理方法、移动终端及计算机可读存储介质An image processing method, mobile terminal and computer-readable storage medium

技术领域technical field

本申请属于图像处理技术领域,尤其涉及一种图像处理方法、移动终端及计算机可读存储介质。The present application belongs to the technical field of image processing, and in particular relates to an image processing method, a mobile terminal and a computer-readable storage medium.

背景技术Background technique

随着智能移动终端的发展,人们对于手机等移动终端上拍照的使用越来越频繁。现有的大部分移动终端的拍照功能支持图像处理,例如,针对人脸的滤镜功能、磨皮功能、美白功能等。With the development of smart mobile terminals, people use mobile phones and other mobile terminals to take pictures more and more frequently. The photographing functions of most existing mobile terminals support image processing, for example, filter functions, skin smoothing functions, whitening functions, etc. for human faces.

然而,目前图像处理的方式比较单一,例如,针对人脸进行的处理就是美颜相关的处理。所以,目前拍摄的照片的效果比较单一,用户的体验度较差。However, the current image processing methods are relatively simple, for example, the processing for human faces is processing related to beauty. Therefore, the effect of the photos currently taken is relatively simple, and the user experience is relatively poor.

发明内容Contents of the invention

有鉴于此,本申请实施例提供了一种图像处理方法、移动终端及计算机可读存储介质,以解决目前拍摄的照片效果单一、用户体验度较差的问题。In view of this, the embodiments of the present application provide an image processing method, a mobile terminal, and a computer-readable storage medium, so as to solve the problems of single effect of currently taken photos and poor user experience.

本申请实施例的第一方面提供了一种图像处理方法,包括:The first aspect of the embodiments of the present application provides an image processing method, including:

获取所述移动终端中摄像头采集的预览画面,并对所述预览画面进行识别获得识别结果,所述识别结果用于指示所述预览画面中是否存在前景目标、以及存在所述前景目标时所述前景目标的前景标签;Obtaining a preview picture collected by the camera in the mobile terminal, and identifying the preview picture to obtain a recognition result, the recognition result is used to indicate whether there is a foreground object in the preview picture, and when the foreground object exists, the the foreground label of the foreground target;

若所述预览画面中存在至少两个前景目标,则判断所述前景目标的前景标签的组合中是否存在预设的标签组合;If there are at least two foreground objects in the preview image, it is judged whether there is a preset label combination in the combination of foreground labels of the foreground objects;

若所述前景目标的前景标签的组合中存在预设的标签组合,则将所述预设的标签组合对应的前景目标记为处理目标,获取所述预览画面中每个处理目标对应的背景图像,并对每个处理目标对应的背景图像进行虚化处理。If there is a preset tag combination in the foreground tag combination of the foreground object, then mark the foreground object corresponding to the preset tag combination as a processing target, and obtain a background image corresponding to each processing target in the preview picture , and blur the background image corresponding to each processing target.

本申请实施例的第二方面提供了一种移动终端,包括:The second aspect of the embodiments of the present application provides a mobile terminal, including:

识别结果获取模块,用于获取所述移动终端中摄像头采集的预览画面,并对所述预览画面进行识别获得识别结果,所述识别结果用于指示所述预览画面中是否存在前景目标、以及存在所述前景目标时所述前景目标的前景标签;A recognition result acquisition module, configured to obtain a preview picture captured by a camera in the mobile terminal, and to identify the preview picture to obtain a recognition result, the recognition result being used to indicate whether there is a foreground target in the preview picture, and whether there is The foreground object is a foreground label of the foreground object;

判断模块,用于若所述预览画面中存在至少两个前景目标,则判断所述前景目标的前景标签的组合中是否存在预设的标签组合;A judging module, configured to judge whether there is a preset tag combination in the foreground tag combination of the foreground object if there are at least two foreground objects in the preview image;

虚化处理模块,用于若所述前景目标的前景标签的组合中存在预设的标签组合,则将所述预设的标签组合对应的前景目标记为处理目标,获取所述预览画面中每个处理目标对应的背景图像,并对每个处理目标对应的背景图像进行虚化处理。A blurring processing module, configured to mark the foreground object corresponding to the preset tag combination as a processing target if there is a preset tag combination in the foreground tag combination of the foreground object, and obtain each background images corresponding to each processing target, and blur the background image corresponding to each processing target.

本申请实施例的第三方面提供了一种移动终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请实施例第一方面提供的所述方法的步骤。The third aspect of the embodiments of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program The steps of the method provided in the first aspect of the embodiment of the present application are realized.

本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被一个或多个处理器执行时实现本申请实施例第一方面提供的所述方法的步骤。The fourth aspect of the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the first embodiment of the present application is implemented. The steps of the method provided in the aspect.

本申请实施例的第五方面提供了一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被一个或多个处理器执行时实现本申请实施例第一方面提供的所述方法的步骤。The fifth aspect of the embodiment of the present application provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by one or more processors, it implements the described method steps.

本申请实施例获取所述移动终端中摄像头采集的预览画面,并对所述预览画面进行识别获得识别结果,所述识别结果用于指示所述预览画面中是否存在前景目标、以及存在所述前景目标时所述前景目标的前景标签,若所述预览画面中存在至少两个前景目标,则判断所述前景目标的前景标签的组合中是否存在预设的标签组合,若所述前景目标的前景标签的组合中存在预设的标签组合,则将所述预设的标签组合对应的前景目标记为处理目标,获取所述预览画面中每个处理目标对应的背景图像,并对每个处理目标对应的背景图像进行虚化处理,本申请是在摄像头采集的预览画面中存在至少两个前景目标时,判断所述前景目标的前景标签的组合中是否存在预设的标签组合,若存在预设的标签组合,就可以对预设的标签组合对应的每个前景目标的背景图像进行虚化处理,这样可以使得拍摄的照片呈现多样化的效果。The embodiment of the present application acquires the preview picture collected by the camera in the mobile terminal, and recognizes the preview picture to obtain a recognition result, and the recognition result is used to indicate whether there is a foreground object in the preview picture and the presence of the foreground The object is the foreground label of the foreground object. If there are at least two foreground objects in the preview screen, it is judged whether there is a preset label combination in the foreground label combination of the foreground object. If the foreground object’s foreground If there is a preset tag combination in the tag combination, mark the foreground object corresponding to the preset tag combination as a processing target, obtain the background image corresponding to each processing target in the preview screen, and process each processing target The corresponding background image is blurred. In this application, when there are at least two foreground objects in the preview image captured by the camera, it is judged whether there is a preset tag combination in the foreground tag combination of the foreground object. If there is a preset tag combination, the background image of each foreground object corresponding to the preset tag combination can be blurred, so that the captured photos can present various effects.

附图说明Description of drawings

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

图1是本申请实施例提供的一种图像处理方法的实现流程示意图;FIG. 1 is a schematic diagram of an implementation flow of an image processing method provided in an embodiment of the present application;

图2是本申请实施例提供的另一种图像处理方法的实现流程示意图;Fig. 2 is a schematic diagram of the implementation flow of another image processing method provided by the embodiment of the present application;

图3是本申请实施例提供的另一种图像处理方法的实现流程示意图;FIG. 3 is a schematic diagram of an implementation flow of another image processing method provided by an embodiment of the present application;

图4是本申请实施例提供的一种移动终端的示意框图;FIG. 4 is a schematic block diagram of a mobile terminal provided by an embodiment of the present application;

图5是本申请实施例提供的另一种移动终端的示意框图。Fig. 5 is a schematic block diagram of another mobile terminal provided by an embodiment of the present application.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other features. , whole, step, operation, element, component and/or the presence or addition of a collection thereof.

还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.

还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .

如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.

为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in this application, specific examples are used below to illustrate.

图1是本申请实施例提供的一种图像处理方法的实现流程示意图,如图所示该方法可以包括以下步骤:Fig. 1 is a schematic diagram of the implementation flow of an image processing method provided in the embodiment of the present application. As shown in the figure, the method may include the following steps:

步骤S101,获取移动终端中摄像头采集的预览画面,并对所述预览画面进行识别获得识别结果,所述识别结果用于指示所述预览画面中是否存在前景目标、以及存在所述前景目标时所述前景目标的前景标签。Step S101, acquiring a preview image captured by a camera in the mobile terminal, and identifying the preview image to obtain an identification result, the identification result being used to indicate whether there is a foreground object in the preview image, and what to do when the foreground object exists. The foreground label for the described foreground target.

在本申请实施例中,所述预览画面是通过移动终端上的摄像头实时采集并显示在显示屏上的画面。对所述预览画面进行识别时,可以通过卷积神经网络模型识别所述预览画面中是否存在前景目标,若识别结果为存在前景目标,则可以输出带检测框的识别图像,检测框中为识别的前景目标,同时输出前景目标的前景标签。若在所述预览画面中未识别到前景目标,则可以输出原图像,即不存在前景目标,那么也不存在前景标签。In the embodiment of the present application, the preview image is an image captured in real time by a camera on the mobile terminal and displayed on a display screen. When the preview picture is identified, it is possible to identify whether there is a foreground target in the preview picture through a convolutional neural network model. If the recognition result is that there is a foreground target, the recognition image with a detection frame can be output, and the detection frame is a recognition image. The foreground object of , and output the foreground label of the foreground object at the same time. If no foreground object is identified in the preview image, the original image may be output, that is, if there is no foreground object, then there is no foreground label.

步骤S102,若所述预览画面中存在至少两个前景目标,则判断所述前景目标的前景标签的组合中是否存在预设的标签组合。Step S102, if there are at least two foreground objects in the preview image, then judge whether there is a preset label combination in the foreground label combination of the foreground objects.

在本申请实施例中,通常用户进行拍照时,通过目标识别模型能够识别到多个前景目标,例如,识别到三个人脸图像,或者识别到一个人脸图像和一个动物图像,还可能是识别到一个人脸图像和一个花朵图像。In this embodiment of the application, usually when a user takes a photo, multiple foreground targets can be identified through the target recognition model, for example, three human face images are recognized, or a human face image and an animal image are recognized, and it is also possible to recognize to a face image and a flower image.

本申请实施例是为了突出用户重点拍摄的前景目标,而对用户重点拍摄的前景目标周围的背景图像进行虚化图像。当用户需要拍摄两个人脸图像时,就需要对每个人脸图像周围的背景图像进行虚化处理,当用户拍摄人和狗的合照时,为了重点突出人和狗,就需要同时对人脸周围的背景图像和狗周围的背景图像进行虚化处理。所以我们可以预先设置一些标签组合,例如,人脸标签+人脸标签,人脸标签+动物标签等。In the embodiment of the present application, in order to highlight the foreground object that the user focuses on, the background image around the foreground object that the user focuses on is blurred. When the user needs to take two face images, the background image around each face image needs to be blurred. The background image of the dog and the background image around the dog are blurred. So we can pre-set some tag combinations, for example, face tag + face tag, face tag + animal tag, etc.

为了方便理解,我们通过举例说明:识别到的前景目标包括四个:人脸、人脸、狗、花朵,对应的前景标签依次为:人脸标签、人脸标签、动物标签、植物标签,预设的标签组合为:人脸标签+动物标签,则表示所述前景目标的前景标签的组合中存在预设的标签组合,则可以对预设的标签组合中人脸标签对应的前景目标周围的背景图像进行虚化处理(两个人脸图像对应的背景图像均进行虚化处理),同时,动物标签对应的前景目标周围的背景图像进行虚化处理(狗周围的背景图像进行虚化处理)。For the convenience of understanding, we use an example to illustrate: the recognized foreground targets include four: face, human face, dog, and flower, and the corresponding foreground tags are: face tag, face tag, animal tag, plant tag, preset If the set label combination is: face label+animal label, it means that there is a preset label combination in the foreground label combination of the foreground object, and then the foreground objects around the foreground object corresponding to the face label in the preset label combination can be The background image is blurred (the background images corresponding to the two face images are blurred), and at the same time, the background image around the foreground object corresponding to the animal label is blurred (the background image around the dog is blurred).

需要说明的是,四个前景标签(分别用A、B、C、D表示)对应的组合有:AB、AC、AD、BC、BD、CD、ABC、ABD、ACD、BCD、ABCD。It should be noted that the combinations corresponding to the four foreground labels (indicated by A, B, C, and D respectively) are: AB, AC, AD, BC, BD, CD, ABC, ABD, ACD, BCD, and ABCD.

当然,实际应用中,还可以设置为人脸标签+动物标签+其它标签,即只要识别到的前景目标的前景标签中同时存在人脸标签和动物标签,那么就认为所述前景目标的前景标签的组合为预设的标签组合,就可以对所有的前景目标对应的背景图像均进行虚化处理,还可以是人脸标签+其它标签,上述预设的标签组合仅用于举例,在此不做限制。Of course, in practical applications, it can also be set to face tags + animal tags + other tags, that is, as long as there are both face tags and animal tags in the foreground tags of the identified foreground target, then it is considered that the foreground tag of the foreground target Combined into a preset tag combination, you can blur the background images corresponding to all foreground objects, and it can also be face tags + other tags. The above preset tag combinations are just for example and will not be done here. limit.

步骤S103,若所述前景目标的前景标签的组合中存在预设的标签组合,则将所述预设的标签组合对应的前景目标记为处理目标,获取所述预览画面中每个处理目标对应的背景图像,并对每个处理目标对应的背景图像进行虚化处理。Step S103: If there is a preset tag combination in the foreground tag combination of the foreground object, mark the foreground object corresponding to the preset tag combination as a processing object, and obtain the corresponding background image, and blur the background image corresponding to each processing target.

在本申请实施例中,所述预览画面中每个处理目标对应的背景图像,可以是所述预览画面中每个处理目标对应的检测框内的图像去除处理目标之后的图像。当然,实际应用中,还可以设置其它区域的图像作为处理目标的背景图像,具体可参照图3所示实施例中的描述。In this embodiment of the present application, the background image corresponding to each processing target in the preview screen may be an image in which the processing target is removed from the image in the detection frame corresponding to each processing target in the preview screen. Of course, in practical applications, images of other regions may also be set as the background image of the processing target, for details, refer to the description in the embodiment shown in FIG. 3 .

作为本申请又一实施例,若所述前景目标的前景标签的组合中存在预设的标签组合,在将所述预设的标签组合对应的前景目标记为处理目标之前,还包括:As another embodiment of the present application, if there is a preset tag combination in the foreground tag combination of the foreground object, before marking the foreground object corresponding to the preset tag combination as a processing object, further include:

获取所述预设的标签组合对应的每个前景目标在所述预览画面中所占的比例;Obtain the proportion of each foreground object corresponding to the preset label combination in the preview screen;

若所述预设的标签组合对应的前景目标中,存在在所述预览画面中所占的比例大于预设值的前景目标,则将所述预设的标签组合对应的前景目标中,在所述预览画面中所占的比例大于预设值的前景目标记为处理目标。If among the foreground objects corresponding to the preset tag combination, there is a foreground object whose proportion in the preview screen is greater than a preset value, then among the foreground objects corresponding to the preset tag combination, in the foreground object The foreground object whose proportion in the above preview image is greater than the preset value is marked as the processing target.

在本申请实施例中,用户想要重点拍摄的目标通常在预览画面中所占的比例相对较大,这样,除了通过预设的标签组合判断哪个前景目标是用户重点拍摄的目标,还可以通过在所述预览画面中所占的比例进一步判断哪个前景目标是用户重点拍摄的目标。这样是为了避免用户在人群多的地方自拍时,有可能同时识别到多个人脸图像,实际上,用户可能重点拍摄的目标为自己,人群中识别到的人脸在预览画面中所占的比例相对较小,就可以不对人群中识别到的人脸对应的背景图像进行虚化处理。为了便于区分,可以将所述预设的标签组合对应的前景目标中,在所述预览画面中所占的比例大于预设值的前景目标记为处理目标,作为用户重点拍摄的目标。In this embodiment of the application, the target that the user wants to focus on usually takes up a relatively large proportion in the preview screen. In this way, in addition to judging which foreground target is the target that the user focuses on through the preset tag combination, you can also use the The proportion in the preview screen further determines which foreground object is the object that the user focuses on shooting. This is to prevent the user from recognizing multiple face images at the same time when taking a selfie in a crowded place. In fact, the user may focus on shooting himself, and the proportion of recognized faces in the crowd in the preview screen Relatively small, it is not possible to blur the background image corresponding to the recognized face in the crowd. In order to facilitate the distinction, among the foreground objects corresponding to the preset tag combination, the foreground objects whose proportion in the preview image is greater than a preset value may be marked as processing objects, as objects that the user focuses on shooting.

本申请是在摄像头采集的预览画面中存在至少两个前景目标时,判断所述前景目标的前景标签的组合中是否存在预设的标签组合,若存在预设的标签组合,就可以对预设的标签组合对应的每个前景目标的背景图像进行虚化处理,这样可以使得拍摄的照片呈现多样化的效果。In this application, when there are at least two foreground objects in the preview image captured by the camera, it is judged whether there is a preset label combination in the combination of foreground labels of the foreground objects. If there is a preset label combination, the preset The background image of each foreground object corresponding to the label combination of the corresponding object is blurred, which can make the photos taken show a variety of effects.

图2是本申请实施例提供的另一种图像处理方法的流程示意图,如图所示该方法是在图1所示实施例的基础上,描述如何对每个处理目标对应的背景图像进行虚化处理,可以包括以下步骤:Fig. 2 is a schematic flowchart of another image processing method provided by the embodiment of the present application. As shown in the figure, this method is based on the embodiment shown in Fig. 1, and describes how to virtualize the background image corresponding to each processing target. processing may include the following steps:

步骤S201,获取预览画面对应的准焦目标、以及所述处理目标的景深信息。Step S201, acquiring the in-focus target corresponding to the preview image and the depth information of the processing target.

在本申请实施例中,相机成像时,过焦点、且与主轴垂直的平面叫焦平面。为了方便理解,我们进行通俗的解释,通常和相机镜头等距离的物体,他们成像焦点处于一个平面上,成像在焦平面上的物体,我们称为准焦目标,他们与镜头之间的距离是相等的。而成像在焦平面前后的物体,他们在实际场景中分布在准焦目标的前后。成像在焦平面上的点(即准焦目标)能够构成相对清晰的图像,未成像在焦平面上的点构成的图像相对不清晰。In the embodiment of the present application, when the camera is imaging, the plane passing through the focal point and perpendicular to the main axis is called the focal plane. For the convenience of understanding, we give a popular explanation. Objects that are usually equidistant from the camera lens, their imaging focus is on a plane, and objects that are imaged on the focal plane are called quasi-focus targets. The distance between them and the lens is equal. Objects that are imaged in front of and behind the focal plane are distributed in front of and behind the in-focus target in the actual scene. Points imaged on the focal plane (that is, in-focus objects) can form a relatively clear image, while the images formed by points not imaged on the focal plane are relatively unclear.

所述获取所述预览画面对应的准焦目标包括:The acquisition of the quasi-focus target corresponding to the preview image includes:

基于所述移动终端的双摄像头捕捉的当前预览画面对应的景深信息分布、确定所述预览画面对应的焦平面,并基于所述焦平面确定准焦目标;Determining a focal plane corresponding to the preview image based on the depth of field information distribution corresponding to the current preview image captured by the dual cameras of the mobile terminal, and determining an in-focus target based on the focal plane;

或者,or,

获取用户通过显示所述预览画面的触控屏选择的前景目标,将用户通过所述触控屏选择的前景目标作为准焦目标;Acquiring the foreground target selected by the user through the touch screen displaying the preview image, and using the foreground target selected by the user through the touch screen as the in-focus target;

或者,or,

基于每个前景目标在所述预览画面中的位置信息,从所述前景目标中确定准焦目标。Based on the position information of each foreground object in the preview image, an in-focus object is determined from the foreground objects.

在本申请实施例中,移动终端上设置的双摄像头可以捕捉当前预览画面对应的场景中各个物体的景深信息,可以构成当前预览画面的景深信息分布,从所述景深信息分布中可以获取所述预览画面对应的焦平面,基于所述焦平面就可以确定出准焦目标。还可以获取用户通过显示所述预览画面的触控屏选择的前景目标,将用户通过所述触控屏选择的前景目标作为准焦目标。还可以基于每个前景目标在所述预览画面中的位置信息,从所述前景目标中确定准焦目标,例如,将位于预览画面中心区域的前景目标作为准焦目标。In the embodiment of the present application, the dual cameras set on the mobile terminal can capture the depth information of each object in the scene corresponding to the current preview image, and can form the depth information distribution of the current preview image, from which the depth information distribution can be obtained. The focal plane corresponding to the preview image, based on the focal plane, the in-focus target can be determined. The foreground object selected by the user through the touch screen displaying the preview image may also be obtained, and the foreground object selected by the user through the touch screen may be used as the in-focus object. The in-focus objects may also be determined from the foreground objects based on the position information of each foreground object in the preview image, for example, the foreground object located in the central area of the preview image is taken as the in-focus object.

所述处理目标的景深信息可以通过移动终端上的双摄像头获取,确定了准焦目标之后,移动终端上的双摄像头也可以获取到准焦目标的景深信息。The depth of field information of the processing target can be obtained through the dual cameras on the mobile terminal. After the in-focus target is determined, the dual cameras on the mobile terminal can also obtain the depth of field information of the in-focus target.

在确定了准焦目标以及每个处理目标的景深信息之后,就可以基于所述准焦目标和每个处理目标的景深信息,对每个处理目标对应的背景图像进行虚化处理。After the in-focus target and the depth information of each processing target are determined, the background image corresponding to each processing target may be blurred based on the in-focus target and the depth of field information of each processing target.

步骤S202,根据所述准焦目标的景深信息和所述处理目标的景深信息,确定所述处理目标和所述准焦目标在所述摄像头光轴方向上的距离。Step S202, according to the depth information of the in-focus object and the depth of field information of the processing object, determine the distance between the processing object and the in-focus object in the direction of the optical axis of the camera.

在本申请实施例中,准焦目标的景深信息可以理解为准焦目标与移动终端的摄像头之间的距离,处理目标的景深信息也可以理解为处理目标与移动终端的摄像头之间的距离。对于摄像头的光轴方向而言,所述处理目标和所述准焦目标之间的距离可以通过所述准焦目标的景深信息和所述处理目标的景深信息之间的差值确定。因此,所述处理目标和所述准焦目标之间的距离指的是所述处理目标和所述准焦目标在摄像头的光轴方向的距离。In the embodiment of the present application, the depth information of the in-focus target can be understood as the distance between the in-focus target and the camera of the mobile terminal, and the depth of field information of the processing target can also be understood as the distance between the processing target and the camera of the mobile terminal. For the direction of the optical axis of the camera, the distance between the processing target and the in-focus target may be determined by a difference between the depth of field information of the in-focus target and the depth of field information of the processing target. Therefore, the distance between the processing target and the in-focus target refers to the distance between the processing target and the in-focus target in the direction of the optical axis of the camera.

步骤S203,根据所述处理目标与所述准焦目标在所述摄像头光轴方向上的距离,确定所述处理目标的虚化等级。Step S203, according to the distance between the processing target and the in-focus target in the optical axis direction of the camera, determine the blurring level of the processing target.

步骤S204,基于所述处理目标的虚化等级,对所述处理目标对应的背景图像进行与所述虚化等级相关的虚化处理。Step S204, based on the blurring level of the processing target, perform blurring processing related to the blurring level on the background image corresponding to the processing target.

在本申请实施例中,准焦目标通常是指聚焦的目标,预览画面中所述准焦目标是相对清晰的区域,那么除准焦目标之外的其它处理目标则可能由于与所述准焦目标在光轴方向上的距离导致拍摄的清晰度较低。为了突显清晰度较低的其它处理目标,就可以将清晰度较低的处理目标周围的背景图像虚化的程度加强。因此,所述处理目标与所述准焦目标之间的距离越近,处理目标本身越清晰,则所述处理目标对应的虚化等级越低,虚化的程度越不明显;所述处理目标与所述准焦目标之间的距离越远,处理目标本身越模糊,则所述处理目标对应的虚化等级越高,虚化的程度越明显,这样才能够将本身模糊的处理目标突显出来。In this embodiment of the application, the in-focus target usually refers to the focused target, and the in-focus target in the preview screen is a relatively clear area, then other processing targets except the in-focus target may be related to the in-focus target The distance of the target in the direction of the optical axis results in lower sharpness of the shot. In order to highlight other processing targets with low definition, the blurring degree of the background image around the processing target with low definition can be strengthened. Therefore, the closer the distance between the processing target and the quasi-focus target is, the clearer the processing target itself is, the lower the blurring level corresponding to the processing target is, and the less obvious the degree of blurring is; the processing target The farther the distance from the in-focus target is, the more blurred the processing target itself is, the higher the blurring level corresponding to the processing target is, and the more obvious the degree of blurring is, so that the blurred processing target itself can be highlighted .

当然,实际应用中,为了获得多样化的图像效果,也可以设置其它虚化处理的方式,例如:所述处理目标与所述准焦目标之间的距离越近,处理目标本身越清晰,则所述处理目标对应的虚化等级越高,虚化的程度越明显;所述处理目标与所述准焦目标之间的距离越远,处理目标本身越模糊,则所述处理目标对应的虚化等级越低,虚化的程度越不明显,这样才能够将准焦目标突显出来。所以,可以根据实际应用设置不同的虚化处理方式。Of course, in practical applications, in order to obtain a variety of image effects, other methods of blurring processing can also be set, for example: the closer the distance between the processing target and the in-focus target, the clearer the processing target itself, then The higher the level of blurring corresponding to the processing target, the more obvious the degree of blurring; the farther the distance between the processing target and the quasi-focus target is, the more blurred the processing target itself is, the more blurred the processing target is. The lower the blur level, the less obvious the degree of blur, so that the in-focus target can be highlighted. Therefore, different blurring processing methods can be set according to actual applications.

需要说明的是,所述准焦目标可以不是处理目标,可以是预览画面中的任意一个目标物体。It should be noted that the in-focus target may not be the processing target, but may be any target object in the preview image.

图3是本申请实施例提供的另一种图像处理方法的流程示意图,如图所示该方法是在图1所示实施例的基础上,描述如何获取所述预览画面中每个处理目标对应的背景图像,可以包括以下步骤:Fig. 3 is a schematic flow chart of another image processing method provided by the embodiment of the present application. As shown in the figure, this method is based on the embodiment shown in Fig. 1, and describes how to obtain the corresponding processing target in the preview screen. A background image can include the following steps:

步骤S301,在所述预览画面中分割所述处理目标,获得所述处理目标的轮廓线。Step S301 , segmenting the processing target in the preview image to obtain a contour line of the processing target.

在本申请实施例中,所述处理目标周围的背景图像可以是所述处理目标对应的检测框内除所述处理目标之外的图像。由于检测框通常为矩形检测框,这样虚化区域和处理目标组成的形状就是矩形区域。为了获得多样化的虚化效果,可以从所述预览画面中分割出所述处理目标,获得所述处理目标的轮廓线。在获取所述处理目标的轮廓线之后,基于所述处理目标的轮廓线,获取所述处理目标对应的虚化区域。In this embodiment of the present application, the background image around the processing target may be an image other than the processing target within a detection frame corresponding to the processing target. Since the detection frame is usually a rectangular detection frame, the shape formed by the blurred area and the processing target is a rectangular area. In order to obtain various blurring effects, the processing target may be segmented from the preview image to obtain a contour line of the processing target. After the contour line of the processing target is acquired, based on the contour line of the processing target, a blurred area corresponding to the processing target is obtained.

步骤S302,基于所述处理目标的轮廓线,确定所述处理目标的最小外接圆形。Step S302, based on the contour line of the processing object, determine the smallest circumscribed circle of the processing object.

步骤S303,以所述最小外接圆形的圆心为中心点、以预设距离为半径的圆形区域中,去除所述处理目标之后的区域为所述虚化区域,所述预设距离大于或等于所述最小外接圆形的半径。Step S303, in a circular area with the center point of the smallest circumscribed circle as the center point and a preset distance as the radius, the area after removing the processing target is the blurred area, and the preset distance is greater than or equal to the radius of the smallest circumscribed circle.

步骤S304,将所述虚化区域对应的图像作为所述处理目标对应的背景图像。Step S304, using the image corresponding to the blurred area as the background image corresponding to the processing target.

在本申请实施例中,确定了处理目标的轮廓线之后,可以基于所述处理目标的轮廓线确定所述处理目标的最小外接圆形,这样,相当于所述处理目标在所述最小外接圆形内部。我们可以设置与所述最小外接圆形的同心圆,这个同心圆的半径大于或等于所述最小外接圆形的半径。这个同心圆内部除了处理目标之外的区域就是所述虚化区域,虚化区域和处理目标组成的区域就是圆形区域。In the embodiment of the present application, after the contour line of the processing target is determined, the minimum circumscribed circle of the processing target may be determined based on the contour line of the processing target. shape inside. We can set a concentric circle with the minimum circumscribed circle, and the radius of this concentric circle is greater than or equal to the radius of the minimum circumscribed circle. The area inside the concentric circle except for the processing target is the blurred area, and the area formed by the blurred area and the processing target is a circular area.

作为本申请又一实施例,所述基于所述处理目标的轮廓线,获取所述处理目标对应的虚化区域包括:As yet another embodiment of the present application, the acquiring the blurred area corresponding to the processing target based on the contour line of the processing target includes:

基于所述处理目标的轮廓线,确定所述处理目标的重心;determining the center of gravity of the processing object based on the contour line of the processing object;

以所述处理目标的重心为基准点,将所述处理目标的轮廓线放大预设倍数,获得放大后的目标轮廓线,从所述放大后的目标轮廓线表示的区域中去除所述处理目标之后的区域为所述虚化区域。Taking the center of gravity of the processing target as a reference point, enlarging the contour line of the processing target by a preset multiple to obtain an enlarged target contour line, and removing the processing target from the area indicated by the enlarged target contour line The subsequent area is the blurred area.

在本申请实施例中,还可以将虚化区域设置成与所述前景目标形状类似的区域,可以先基于所述处理目标的轮廓线,确定所述处理目标的重心,以所述处理目标的重心为基准点,将所述处理目标的轮廓线放大预设倍数,获得放大后的目标轮廓线,从所述放大后的目标轮廓线表示的区域中去除所述处理目标之后的区域为所述虚化区域,这样虚化区域和处理目标组成的区域就是所述处理目标形状的区域。In this embodiment of the present application, the blurred area can also be set as an area similar in shape to the foreground object, and the center of gravity of the processing object can be determined based on the contour line of the processing object first, and the center of gravity of the processing object can be determined based on the The center of gravity is the reference point, and the contour line of the processing target is enlarged by a preset multiple to obtain the enlarged target contour line, and the area after the processing target is removed from the area indicated by the enlarged target contour line is the The blurred area, such that the area formed by the blurred area and the processing target is the area of the shape of the processing target.

虚化区域就是处理目标对应的背景图像。在实际应用中,还可以存在其它获取虚化区域的方法,在此不一一举例。The blurred area is the background image corresponding to the processing target. In practical applications, there may also be other methods for obtaining the blurred area, which are not listed here.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.

图4是本申请一实施例提供的移动终端的示意框图,为了便于说明,仅示出与本申请实施例相关的部分。FIG. 4 is a schematic block diagram of a mobile terminal provided by an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.

该移动终端4可以是内置于手机、平板电脑、笔记本等移动终端内的软件单元、硬件单元或者软硬结合的单元,也可以作为独立的挂件集成到所述手机、平板电脑、笔记本等移动终端中。The mobile terminal 4 can be a software unit, a hardware unit, or a combination of software and hardware built in mobile terminals such as mobile phones, tablet computers, and notebooks, and can also be integrated into mobile terminals such as mobile phones, tablet computers, and notebooks as an independent pendant. middle.

所述移动终端4包括:Described mobile terminal 4 comprises:

识别结果获取模块41,用于获取所述移动终端中摄像头采集的预览画面,并对所述预览画面进行识别获得识别结果,所述识别结果用于指示所述预览画面中是否存在前景目标、以及存在所述前景目标时所述前景目标的前景标签;The recognition result acquisition module 41 is configured to obtain a preview picture collected by the camera in the mobile terminal, and identify the preview picture to obtain a recognition result, the recognition result is used to indicate whether there is a foreground object in the preview picture, and a foreground label of said foreground object when said foreground object is present;

判断模块42,用于若所述预览画面中存在至少两个前景目标,则判断所述前景目标的前景标签的组合中是否存在预设的标签组合;A judging module 42, configured to judge whether there is a preset tag combination in the foreground tag combination of the foreground object if there are at least two foreground objects in the preview image;

虚化处理模块43,用于若所述前景目标的前景标签的组合中存在预设的标签组合,则将所述预设的标签组合对应的前景目标记为处理目标,获取所述预览画面中每个处理目标对应的背景图像,并对每个处理目标对应的背景图像进行虚化处理。The blurring processing module 43 is configured to mark the foreground object corresponding to the preset tag combination as a processing target if there is a preset tag combination in the foreground tag combination of the foreground object, and obtain the A background image corresponding to each processing target is processed, and a blurring process is performed on the background image corresponding to each processing target.

可选的,所述虚化处理模块43包括:Optionally, the blur processing module 43 includes:

信息获取单元431,用于获取所述预览画面对应的准焦目标、以及所述处理目标的景深信息;An information acquiring unit 431, configured to acquire the in-focus target corresponding to the preview image and the depth of field information of the processing target;

虚化处理单元432,用于基于所述准焦目标和每个处理目标的景深信息,对每个处理目标对应的背景图像进行虚化处理。The blur processing unit 432 is configured to perform blur processing on the background image corresponding to each processing target based on the in-focus target and the depth information of each processing target.

可选的,所述信息获取单元431还用于:Optionally, the information acquiring unit 431 is also used for:

基于所述移动终端的双摄像头捕捉的当前预览画面对应的景深信息分布,确定所述预览画面对应的焦平面,并基于所述焦平面确定准焦目标;Determining a focal plane corresponding to the preview image based on the depth of field information distribution corresponding to the current preview image captured by the dual cameras of the mobile terminal, and determining an in-focus target based on the focal plane;

或者,or,

获取用户通过显示所述预览画面的触控屏选择的前景目标,将用户通过所述触控屏选择的前景目标作为准焦目标;Acquiring the foreground target selected by the user through the touch screen displaying the preview image, and using the foreground target selected by the user through the touch screen as the in-focus target;

或者,or,

基于每个前景目标在所述预览画面中的位置信息,从所述前景目标中确定准焦目标。Based on the position information of each foreground object in the preview image, an in-focus object is determined from the foreground objects.

可选的,所述虚化处理单元432包括:Optionally, the virtualization processing unit 432 includes:

距离确定子单元4321,用于根据所述准焦目标的景深信息和所述处理目标的景深信息,确定所述处理目标和所述准焦目标在所述摄像头光轴方向上的距离;A distance determining subunit 4321, configured to determine the distance between the processing target and the in-focus target in the direction of the optical axis of the camera according to the depth of field information of the in-focus target and the depth of field information of the processing target;

虚化等级确定子单元4322,用于根据所述处理目标与所述准焦目标在所述摄像头光轴方向上的距离,确定所述处理目标的虚化等级;A blurring level determining subunit 4322, configured to determine the blurring level of the processing target according to the distance between the processing target and the in-focus target in the direction of the optical axis of the camera;

虚化处理子单元4323,用于基于所述处理目标的虚化等级,对所述处理目标对应的背景图像进行与所述虚化等级相关的虚化处理。The blurring processing subunit 4323 is configured to perform blurring processing related to the blurring level on the background image corresponding to the processing target based on the blurring level of the processing target.

可选的,所述虚化处理模块43还包括:Optionally, the blur processing module 43 also includes:

轮廓线获取单元433,用于在所述预览画面中分割所述处理目标,获得所述处理目标的轮廓线;A contour line acquisition unit 433, configured to segment the processing target in the preview image, and obtain the contour line of the processing target;

背景图像获取单元434,用于基于所述处理目标的轮廓线,获取所述处理目标对应的虚化区域,并将所述虚化区域对应的图像作为所述处理目标对应的背景图像。The background image obtaining unit 434 is configured to obtain a blurred area corresponding to the processing target based on the contour line of the processing target, and use the image corresponding to the blurred area as a background image corresponding to the processing target.

可选的,所述背景图像获取单元434包括:Optionally, the background image acquiring unit 434 includes:

最小外接圆形确定子单元4341,用于基于所述处理目标的轮廓线,确定所述处理目标的最小外接圆形;A minimum circumscribed circle determining subunit 4341, configured to determine the minimum circumscribed circle of the processing target based on the contour line of the processing target;

第一虚化区域获取子单元4342,用于以所述最小外接圆形的圆心为中心点、以预设距离为半径的圆形区域中,去除所述处理目标之后的区域为所述虚化区域,所述预设距离大于或等于所述最小外接圆形的半径。The first blurring area acquisition subunit 4342 is configured to take the center of the smallest circumscribed circle as the center point and take the preset distance as the radius, and the area after removing the processing target is the blurring area, the preset distance is greater than or equal to the radius of the smallest circumscribed circle.

可选的,所述背景图像获取单元434包括:Optionally, the background image acquiring unit 434 includes:

重心确定子单元4343,用于基于所述处理目标的轮廓线,确定所述处理目标的重心;A center of gravity determining subunit 4343, configured to determine the center of gravity of the processing target based on the contour line of the processing target;

第二虚化区域确定子单元4344,用于以所述处理目标的重心为基准点,将所述处理目标的轮廓线放大预设倍数,获得放大后的目标轮廓线,从所述放大后的目标轮廓线表示的区域中去除所述处理目标之后的区域为所述虚化区域。The second blurred area determination subunit 4344 is configured to use the center of gravity of the processing object as a reference point to magnify the contour line of the processing object by a preset multiple to obtain an enlarged object contour line, from the enlarged object contour line In the area indicated by the outline of the object, the area after removing the processing target is the blurred area.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述移动终端的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述装置中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Module completion means that the internal structure of the mobile terminal is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above device, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.

图5是本申请又一实施例提供的移动终端的示意框图。如图5所示,该实施例的移动终端5包括:一个或多个处理器50、存储器51以及存储在所述存储器51中并可在所述处理器50上运行的计算机程序52。所述处理器50执行所述计算机程序52时实现上述各个图像处理方法实施例中的步骤,例如图1所示的步骤S101至S103。或者,所述处理器50执行所述计算机程序52时实现上述移动终端实施例中各模块/单元的功能,例如图4所示模块41至43的功能。Fig. 5 is a schematic block diagram of a mobile terminal provided by another embodiment of the present application. As shown in FIG. 5 , the mobile terminal 5 of this embodiment includes: one or more processors 50 , a memory 51 , and a computer program 52 stored in the memory 51 and operable on the processor 50 . When the processor 50 executes the computer program 52, it implements the steps in the above embodiments of the various image processing methods, such as steps S101 to S103 shown in FIG. 1 . Alternatively, when the processor 50 executes the computer program 52, functions of the various modules/units in the above mobile terminal embodiments, such as the functions of the modules 41 to 43 shown in FIG. 4 , are realized.

示例性的,所述计算机程序52可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器51中,并由所述处理器50执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序52在所述移动终端5中的执行过程。例如,所述计算机程序52可以被分割成识别结果获取模块、判断模块、虚化处理模块。Exemplarily, the computer program 52 can be divided into one or more modules/units, and the one or more modules/units are stored in the memory 51 and executed by the processor 50 to complete this application. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the mobile terminal 5 . For example, the computer program 52 can be divided into a recognition result acquisition module, a judgment module, and a virtualization processing module.

所述识别结果获取模块,用于获取所述移动终端中摄像头采集的预览画面,并对所述预览画面进行识别获得识别结果,所述识别结果用于指示所述预览画面中是否存在前景目标、以及存在所述前景目标时所述前景目标的前景标签;The identification result acquisition module is configured to acquire a preview image collected by a camera in the mobile terminal, and identify the preview image to obtain an identification result, the identification result is used to indicate whether there is a foreground object in the preview image, and a foreground label of said foreground object when said foreground object exists;

所述判断模块,用于若所述预览画面中存在至少两个前景目标,则判断所述前景目标的前景标签的组合中是否存在预设的标签组合;The judging module is configured to judge whether there is a preset tag combination in the foreground tag combination of the foreground object if there are at least two foreground objects in the preview image;

所述虚化处理模块,用于若所述前景目标的前景标签的组合中存在预设的标签组合,则将所述预设的标签组合对应的前景目标记为处理目标,获取所述预览画面中每个处理目标对应的背景图像,并对每个处理目标对应的背景图像进行虚化处理。The blur processing module is configured to mark the foreground object corresponding to the preset tag combination as a processing target if there is a preset tag combination in the foreground tag combination of the foreground object, and obtain the preview image The background image corresponding to each processing target, and the background image corresponding to each processing target is blurred.

其它模块或者单元可参照图4所示的实施例中的描述,在此不再赘述。For other modules or units, reference may be made to the description in the embodiment shown in FIG. 4 , and details are not repeated here.

所述移动终端包括但不仅限于处理器50、存储器51。本领域技术人员可以理解,图5仅仅是移动终端5的一个示例,并不构成对移动终端5的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述移动终端还可以包括输入设备、输出设备、网络接入设备、总线等。The mobile terminal includes but not limited to a processor 50 and a memory 51 . Those skilled in the art can understand that FIG. 5 is only an example of the mobile terminal 5, and does not constitute a limitation to the mobile terminal 5. It may include more or less components than those shown in the illustration, or combine certain components, or have different Components, for example, the mobile terminal may also include an input device, an output device, a network access device, a bus, and the like.

所述处理器50可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 50 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

所述存储器51可以是所述移动终端5的内部存储单元,例如移动终端5的硬盘或内存。所述存储器51也可以是所述移动终端5的外部存储设备,例如所述移动终端5上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器51还可以既包括所述移动终端5的内部存储单元也包括外部存储设备。所述存储器51用于存储所述计算机程序以及所述移动终端所需的其他程序和数据。所述存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The memory 51 may be an internal storage unit of the mobile terminal 5 , such as a hard disk or memory of the mobile terminal 5 . The memory 51 can also be an external storage device of the mobile terminal 5, such as a plug-in hard disk equipped on the mobile terminal 5, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc. Further, the memory 51 may also include both an internal storage unit of the mobile terminal 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the mobile terminal. The memory 51 can also be used to temporarily store data that has been output or will be output.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

在本申请所提供的实施例中,应该理解到,所揭露的移动终端和方法,可以通过其它的方式实现。例如,以上所描述的移动终端实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed mobile terminal and method can be implemented in other ways. For example, the mobile terminal embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components May be combined or may be integrated into another system, or some features may be omitted, 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 as separate components may or may not be physically separated, and the components shown 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 application 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-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。If the integrated module/unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments in the present application can also be completed by instructing related hardware through computer programs. The computer programs can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM, Read-Only Memory) , random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable Excluding electrical carrier signals and telecommunication signals.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing embodiments Modifications to the technical solutions described in the examples, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application, and should be included in the Within the protection scope of this application.

Claims (10)

1.一种图像处理方法,其特征在于,应用于移动终端,所述图像处理方法包括:1. An image processing method, characterized in that being applied to a mobile terminal, the image processing method comprises: 获取所述移动终端中摄像头采集的预览画面,并对所述预览画面进行识别获得识别结果,所述识别结果用于指示所述预览画面中是否存在前景目标、以及存在所述前景目标时所述前景目标的前景标签;Obtaining a preview picture collected by the camera in the mobile terminal, and identifying the preview picture to obtain a recognition result, the recognition result is used to indicate whether there is a foreground object in the preview picture, and when the foreground object exists, the the foreground label of the foreground target; 若所述预览画面中存在至少两个前景目标,则判断所述前景目标的前景标签的组合中是否存在预设的标签组合;If there are at least two foreground objects in the preview image, it is judged whether there is a preset label combination in the combination of foreground labels of the foreground objects; 若所述前景目标的前景标签的组合中存在预设的标签组合,则将所述预设的标签组合对应的前景目标记为处理目标,获取所述预览画面中每个处理目标对应的背景图像,并对每个处理目标对应的背景图像进行虚化处理。If there is a preset tag combination in the foreground tag combination of the foreground object, then mark the foreground object corresponding to the preset tag combination as a processing target, and obtain a background image corresponding to each processing target in the preview picture , and blur the background image corresponding to each processing target. 2.如权利要求1所述的图像处理方法,其特征在于,所述对每个处理目标对应的背景图像进行虚化处理包括:2. The image processing method according to claim 1, wherein said blurring the background image corresponding to each processing target comprises: 获取所述预览画面对应的准焦目标、以及所述处理目标的景深信息;Obtaining the in-focus target corresponding to the preview image and the depth of field information of the processing target; 基于所述准焦目标和每个处理目标的景深信息,对每个处理目标对应的背景图像进行虚化处理。Based on the in-focus target and the depth of field information of each processing target, a background image corresponding to each processing target is blurred. 3.如权利要求2所述的图像处理方法,其特征在于,所述获取所述预览画面对应的准焦目标包括:3. The image processing method according to claim 2, wherein said acquiring the in-focus target corresponding to said preview image comprises: 基于所述移动终端的双摄像头捕捉的当前预览画面对应的景深信息分布,确定所述预览画面对应的焦平面,并基于所述焦平面确定准焦目标;Determining a focal plane corresponding to the preview image based on the depth of field information distribution corresponding to the current preview image captured by the dual cameras of the mobile terminal, and determining an in-focus target based on the focal plane; 或者,or, 获取用户通过显示所述预览画面的触控屏选择的前景目标,将用户通过所述触控屏选择的前景目标作为准焦目标;Acquiring the foreground target selected by the user through the touch screen displaying the preview image, and using the foreground target selected by the user through the touch screen as the in-focus target; 或者,or, 基于每个前景目标在所述预览画面中的位置信息,从所述前景目标中确定准焦目标。Based on the position information of each foreground object in the preview image, an in-focus object is determined from the foreground objects. 4.如权利要求2所述的图像处理方法,其特征在于,所述基于所述准焦目标和每个处理目标的景深信息,对每个处理目标对应的背景图像进行虚化处理包括:4. The image processing method according to claim 2, wherein, based on the depth-of-field information of the quasi-focus target and each processing target, performing blur processing on the background image corresponding to each processing target comprises: 根据所述准焦目标的景深信息和所述处理目标的景深信息,确定所述处理目标和所述准焦目标在所述摄像头光轴方向上的距离;determining the distance between the processing target and the in-focus target in the optical axis direction of the camera according to the depth-of-field information of the in-focus target and the depth-of-field information of the processing target; 根据所述处理目标和所述准焦目标在所述摄像头光轴方向上的距离,确定所述处理目标的虚化等级;determining the blurring level of the processing target according to the distance between the processing target and the quasi-focus target in the optical axis direction of the camera; 基于所述处理目标的虚化等级,对所述处理目标对应的背景图像进行与所述虚化等级相关的虚化处理。Based on the blurring level of the processing target, perform blurring processing related to the blurring level on the background image corresponding to the processing target. 5.如权利要求1至4任一项所述的图像处理方法,其特征在于,所述获取所述预览画面中每个处理目标对应的背景图像包括:5. The image processing method according to any one of claims 1 to 4, wherein said acquiring a background image corresponding to each processing target in said preview image comprises: 在所述预览画面中分割所述处理目标,获得所述处理目标的轮廓线;segmenting the processing target in the preview image to obtain a contour line of the processing target; 基于所述处理目标的轮廓线,获取所述处理目标对应的虚化区域,并将所述虚化区域对应的图像作为所述处理目标对应的背景图像。Based on the contour line of the processing target, a blurred area corresponding to the processing target is acquired, and an image corresponding to the blurred area is used as a background image corresponding to the processing target. 6.如权利要求5所述的图像处理方法,其特征在于,所述基于所述处理目标的轮廓线,获取所述处理目标对应的虚化区域包括:6. The image processing method according to claim 5, wherein said obtaining the blurred area corresponding to the processing target based on the contour line of the processing target comprises: 基于所述处理目标的轮廓线,确定所述处理目标的最小外接圆形;determining a minimum circumscribed circle of the processing target based on the contour line of the processing target; 以所述最小外接圆形的圆心为中心点、以预设距离为半径的圆形区域中,去除所述处理目标之后的区域为所述虚化区域,所述预设距离大于或等于所述最小外接圆形的半径。In a circular area with the center point of the smallest circumscribed circle as the center point and a preset distance as the radius, the area after removing the processing target is the blurred area, and the preset distance is greater than or equal to the The radius of the smallest circumscribed circle. 7.如权利要求5所述的图像处理方法,其特征在于,所述基于所述处理目标的轮廓线,获取所述处理目标对应的虚化区域包括:7. The image processing method according to claim 5, wherein said obtaining the blurred area corresponding to the processing target based on the contour line of the processing target comprises: 基于所述处理目标的轮廓线,确定所述处理目标的重心;determining the center of gravity of the processing object based on the contour line of the processing object; 以所述处理目标的重心为基准点,将所述处理目标的轮廓线放大预设倍数,获得放大后的目标轮廓线,从所述放大后的目标轮廓线表示的区域中去除所述处理目标之后的区域为所述虚化区域。Taking the center of gravity of the processing target as a reference point, enlarging the contour line of the processing target by a preset multiple to obtain an enlarged target contour line, and removing the processing target from the area indicated by the enlarged target contour line The subsequent area is the blurred area. 8.一种移动终端,其特征在于,包括:8. A mobile terminal, characterized in that it comprises: 识别结果获取模块,用于获取所述移动终端中摄像头采集的预览画面,并对所述预览画面进行识别获得识别结果,所述识别结果用于指示所述预览画面中是否存在前景目标、以及存在所述前景目标时所述前景目标的前景标签;A recognition result acquisition module, configured to obtain a preview picture captured by a camera in the mobile terminal, and to identify the preview picture to obtain a recognition result, the recognition result being used to indicate whether there is a foreground target in the preview picture, and whether there is The foreground object is a foreground label of the foreground object; 判断模块,用于若所述预览画面中存在至少两个前景目标,则判断所述前景目标的前景标签的组合中是否存在预设的标签组合;A judging module, configured to judge whether there is a preset tag combination in the foreground tag combination of the foreground object if there are at least two foreground objects in the preview image; 虚化处理模块,用于若所述前景目标的前景标签的组合中存在预设的标签组合,则将所述预设的标签组合对应的前景目标记为处理目标,获取所述预览画面中每个处理目标对应的背景图像,并对每个处理目标对应的背景图像进行虚化处理。A blurring processing module, configured to mark the foreground object corresponding to the preset tag combination as a processing target if there is a preset tag combination in the foreground tag combination of the foreground object, and obtain each background images corresponding to each processing target, and blur the background image corresponding to each processing target. 9.一种移动终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7任一项所述方法的步骤。9. A mobile terminal, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, characterized in that, when the processor executes the computer program, the computer program according to claim The step of any one of 1 to 7. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被一个或多个处理器执行时实现如权利要求1至7任一项所述方法的步骤。10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the computer program according to any one of claims 1 to 7 is implemented. steps of the method described above.
CN201810579524.9A 2018-06-05 2018-06-05 Image processing method, mobile terminal and computer readable storage medium Expired - Fee Related CN108776800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810579524.9A CN108776800B (en) 2018-06-05 2018-06-05 Image processing method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810579524.9A CN108776800B (en) 2018-06-05 2018-06-05 Image processing method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108776800A true CN108776800A (en) 2018-11-09
CN108776800B CN108776800B (en) 2021-03-12

Family

ID=64024750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810579524.9A Expired - Fee Related CN108776800B (en) 2018-06-05 2018-06-05 Image processing method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108776800B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110363702A (en) * 2019-07-10 2019-10-22 Oppo(重庆)智能科技有限公司 Image processing method and Related product
CN110728632A (en) * 2019-09-04 2020-01-24 北京奇艺世纪科技有限公司 Image blurring processing method, image blurring processing device, computer device and storage medium
CN111144216A (en) * 2019-11-27 2020-05-12 北京三快在线科技有限公司 Picture label generation method and device, electronic equipment and readable storage medium
CN111311482A (en) * 2018-12-12 2020-06-19 Tcl集团股份有限公司 Background blurring method, device, terminal device and storage medium
CN111383305A (en) * 2018-12-27 2020-07-07 北京奇虎科技有限公司 Recognition method, device and electronic device of target object in intelligent terminal
CN113705447A (en) * 2021-08-27 2021-11-26 深圳市商汤科技有限公司 Picture display method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933613A (en) * 2016-06-28 2016-09-07 广东欧珀移动通信有限公司 Image processing method, device and mobile terminal
US20170206227A1 (en) * 2013-11-06 2017-07-20 Samsung Electronics Co., Ltd. Method and apparatus for processing image
CN107172346A (en) * 2017-04-28 2017-09-15 维沃移动通信有限公司 A kind of weakening method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170206227A1 (en) * 2013-11-06 2017-07-20 Samsung Electronics Co., Ltd. Method and apparatus for processing image
CN105933613A (en) * 2016-06-28 2016-09-07 广东欧珀移动通信有限公司 Image processing method, device and mobile terminal
CN107172346A (en) * 2017-04-28 2017-09-15 维沃移动通信有限公司 A kind of weakening method and mobile terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111311482A (en) * 2018-12-12 2020-06-19 Tcl集团股份有限公司 Background blurring method, device, terminal device and storage medium
CN111383305A (en) * 2018-12-27 2020-07-07 北京奇虎科技有限公司 Recognition method, device and electronic device of target object in intelligent terminal
CN110363702A (en) * 2019-07-10 2019-10-22 Oppo(重庆)智能科技有限公司 Image processing method and Related product
CN110363702B (en) * 2019-07-10 2023-10-20 Oppo(重庆)智能科技有限公司 Image processing method and related product
CN110728632A (en) * 2019-09-04 2020-01-24 北京奇艺世纪科技有限公司 Image blurring processing method, image blurring processing device, computer device and storage medium
CN110728632B (en) * 2019-09-04 2022-07-12 北京奇艺世纪科技有限公司 Image blurring processing method, image blurring processing device, computer device and storage medium
CN111144216A (en) * 2019-11-27 2020-05-12 北京三快在线科技有限公司 Picture label generation method and device, electronic equipment and readable storage medium
CN113705447A (en) * 2021-08-27 2021-11-26 深圳市商汤科技有限公司 Picture display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108776800B (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN108765278B (en) Image processing method, mobile terminal and computer readable storage medium
CN108776800B (en) Image processing method, mobile terminal and computer readable storage medium
CN110717452B (en) Image recognition method, device, terminal and computer readable storage medium
CN108776819A (en) Target identification method, mobile terminal and computer readable storage medium
CN109005368B (en) A method for generating high dynamic range image, mobile terminal and storage medium
CN109005367B (en) High dynamic range image generation method, mobile terminal and storage medium
CN110335216B (en) Image processing method, image processing apparatus, terminal device, and readable storage medium
CN109951636A (en) Photographing processing method and device, mobile terminal and storage medium
WO2020103604A1 (en) Method and device for photographing, terminal, and computer-readable storage medium
CN104486552A (en) Method and electronic device for obtaining images
CN107622497B (en) Image cropping method and device, computer readable storage medium and computer equipment
CN108805838A (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN116249015A (en) Camera occlusion detection method, device, camera equipment and storage medium
CN111368698B (en) Subject identification methods, devices, electronic equipment and media
CN108289176A (en) Photographing question searching method, question searching device and terminal equipment
CN108810407B (en) Image processing method, mobile terminal and computer-readable storage medium
CN108040244A (en) Grasp shoot method and device, storage medium based on light field video flowing
CN112036209A (en) Portrait photo processing method and terminal
CN111669492A (en) Method and terminal for processing digital image captured by terminal
CN108769521B (en) Photographing method, mobile terminal and computer readable storage medium
CN109981989B (en) Method and device for rendering image, electronic equipment and computer readable storage medium
CN109598195B (en) Method and device for processing clear face image based on monitoring video
CN108270973B (en) Photographing processing method, mobile terminal and computer readable storage medium
CN114495197A (en) Living body detection method and device
CN110610178A (en) Image recognition method, device, terminal and computer-readable storage medium

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210312

CF01 Termination of patent right due to non-payment of annual fee