[go: up one dir, main page]

CN108574803B - Image selection method and device, storage medium and electronic equipment - Google Patents

Image selection method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108574803B
CN108574803B CN201810277025.4A CN201810277025A CN108574803B CN 108574803 B CN108574803 B CN 108574803B CN 201810277025 A CN201810277025 A CN 201810277025A CN 108574803 B CN108574803 B CN 108574803B
Authority
CN
China
Prior art keywords
image
user
images
processed
target
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
Application number
CN201810277025.4A
Other languages
Chinese (zh)
Other versions
CN108574803A (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 CN201810277025.4A priority Critical patent/CN108574803B/en
Publication of CN108574803A publication Critical patent/CN108574803A/en
Application granted granted Critical
Publication of CN108574803B publication Critical patent/CN108574803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/174Facial expression recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

本申请公开了一种图像的选取方法、装置、存储介质及电子设备。该方法包括:获取多帧包含人脸的待处理图像;对该待处理图像中每一用户的人脸图像进行表情识别,得到每一用户的表情识别结果;根据该每一用户的表情识别结果,从该待处理图像中选取基础图像。本实施例可以提高终端从多帧图像中选取用于进行处理的图像时的灵活性。

The present application discloses an image selection method, device, storage medium and electronic device. The method comprises: obtaining multiple frames of images to be processed containing human faces; performing expression recognition on the facial images of each user in the images to be processed to obtain expression recognition results of each user; and selecting a basic image from the images to be processed according to the expression recognition results of each user. This embodiment can improve the flexibility of the terminal in selecting images for processing from multiple frames of images.

Description

图像的选取方法、装置、存储介质及电子设备Image selection method, device, storage medium and electronic device

技术领域technical field

本申请属于图像技术领域,尤其涉及一种图像的选取方法、装置、存储介质及电子设备。The present application belongs to the field of image technology, and in particular, relates to an image selection method, device, storage medium and electronic device.

背景技术Background technique

拍照是终端的一项基本功能。随着摄像模组等硬件和图像处理算法的不断进步,终端的拍摄功能越来越强大。用户也越来越频繁地使用终端进行拍照,比如用户经常会使用终端拍摄人物照等等。相关技术中,终端可以采集多帧图像,再从这多帧图像中选取用于进行处理的图像。然而,当从多帧图像中选取用于进行处理的图像时,终端选取图像的灵活性较差。Taking pictures is a basic function of the terminal. With the continuous improvement of hardware and image processing algorithms such as camera modules, the shooting functions of terminals are becoming more and more powerful. Users also use the terminal to take pictures more and more frequently, for example, the user often uses the terminal to take pictures of people and so on. In the related art, a terminal may collect multiple frames of images, and then select an image for processing from the multiple frames of images. However, when an image for processing is selected from multiple frames of images, the terminal has poor flexibility in selecting an image.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种图像的选取方法、装置、存储介质及电子设备,可以提高终端从多帧图像中选取用于进行处理的图像时的灵活性。Embodiments of the present application provide an image selection method, apparatus, storage medium, and electronic device, which can improve the flexibility of a terminal when selecting images for processing from multiple frames of images.

本申请实施例提供一种图像的选取方法,包括:The embodiment of the present application provides a method for selecting an image, including:

获取多帧包含人脸的待处理图像;Get multiple frames of images to be processed that contain faces;

对所述待处理图像中每一用户的人脸图像进行表情识别,得到每一用户的表情识别结果;Perform facial expression recognition on the face image of each user in the image to be processed to obtain the facial expression recognition result of each user;

根据所述每一用户的表情识别结果,从所述待处理图像中选取基础图像。According to the expression recognition result of each user, a base image is selected from the to-be-processed images.

本申请实施例提供一种图像的选取装置,包括:An embodiment of the present application provides an image selection device, including:

获取模块,用于获取多帧包含人脸的待处理图像;an acquisition module, used to acquire multiple frames of images to be processed containing faces;

识别模块,用于对所述待处理图像中每一用户的人脸图像进行表情识别,得到每一用户的表情识别结果;A recognition module, for performing facial expression recognition on the face image of each user in the image to be processed, to obtain the facial expression recognition result of each user;

选取模块,用于根据所述每一用户的表情识别结果,从所述待处理图像中选取基础图像。The selection module is configured to select a basic image from the to-be-processed images according to the expression recognition result of each user.

本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行本申请实施例提供的图像的选取方法中的步骤。Embodiments of the present application provide a storage medium on which a computer program is stored, and when the computer program is executed on a computer, causes the computer to execute the steps in the image selection method provided by the embodiments of the present application.

本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本申请实施例提供的图像的选取方法中的步骤。Embodiments of the present application further provide an electronic device, including a memory and a processor, where the processor is configured to execute steps in the image selection method provided by the embodiments of the present application by invoking a computer program stored in the memory.

本实施例中,当需要从多帧待处理图像中选取基础图像时,终端可以先对该待处理图像中的每一用户的人脸图像进行表情识别,然后再根据每一用户的表情识别结果,从该待处理图像中确定出基础图像。即,本实施例可以根据用户的表情从待处理图像中选取出基础图像。因此,本实施例可以提高终端从多帧图像中选取用于进行处理的图像时的灵活性。此外,本实施例还可以提高终端拍摄的照片的成像效果。In this embodiment, when a basic image needs to be selected from multiple frames of images to be processed, the terminal may first perform expression recognition on the face image of each user in the to-be-processed image, and then perform expression recognition on the facial image of each user according to the expression recognition result of each user. , and determine the base image from the to-be-processed image. That is, in this embodiment, the basic image can be selected from the images to be processed according to the user's expression. Therefore, this embodiment can improve the flexibility of the terminal when selecting images for processing from multiple frames of images. In addition, this embodiment can also improve the imaging effect of the photo taken by the terminal.

附图说明Description of drawings

下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其有益效果显而易见。The technical solutions of the present invention and its beneficial effects will be apparent through the detailed description of the specific embodiments of the present invention below in conjunction with the accompanying drawings.

图1是本申请实施例提供的图像的选取方法的流程示意图。FIG. 1 is a schematic flowchart of an image selection method provided by an embodiment of the present application.

图2是本申请实施例提供的图像的选取方法的另一流程示意图。FIG. 2 is another schematic flowchart of an image selection method provided by an embodiment of the present application.

图3至图5是本申请实施例提供的图像的选取方法的场景示意图。FIG. 3 to FIG. 5 are schematic diagrams of scenarios of an image selection method provided by an embodiment of the present application.

图6是本申请实施例提供的图像的选取装置的结构示意图。FIG. 6 is a schematic structural diagram of an image selection apparatus provided by an embodiment of the present application.

图7是本申请实施例提供的图像的选取装置的另一结构示意图。FIG. 7 is another schematic structural diagram of an image selection apparatus provided by an embodiment of the present application.

图8是本申请实施例提供的移动终端的结构示意图。FIG. 8 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.

图9是本申请实施例提供的移动终端的另一结构示意图。FIG. 9 is another schematic structural diagram of a mobile terminal provided by an embodiment of the present application.

具体实施方式Detailed ways

请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Please refer to the drawings, in which the same reference numerals represent the same components, and the principles of the present invention are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be construed as limiting other embodiments of the invention not detailed herein.

可以理解的是,本申请实施例的执行主体可以是诸如智能手机或平板电脑等的终端设备。It can be understood that the execution body of the embodiment of the present application may be a terminal device such as a smart phone or a tablet computer.

请参阅图1,图1是本申请实施例提供的图像的选取方法的流程示意图,流程可以包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for selecting an image provided by an embodiment of the present application. The process may include:

在步骤S101中,获取多帧包含人脸的待处理图像。In step S101, multiple frames of images to be processed containing human faces are acquired.

拍照是终端的一项基本功能。随着摄像模组等硬件和图像处理算法的不断进步,终端的拍摄功能越来越强大。用户也越来越频繁地使用终端进行拍照,比如用户经常会使用终端拍摄人物照等等。然而,相关技术中,终端采集到的图像的成像效果较差。Taking pictures is a basic function of the terminal. With the continuous improvement of hardware and image processing algorithms such as camera modules, the shooting functions of terminals are becoming more and more powerful. Users also use the terminal to take pictures more and more frequently, for example, the user often uses the terminal to take pictures of people and so on. However, in the related art, the imaging effect of the image collected by the terminal is poor.

比如,终端可以先获取多帧包含人脸的待处理图像。例如,终端获取到A、B、C、D、E、F这六帧待处理图像。For example, the terminal may first acquire multiple frames of images to be processed that contain human faces. For example, the terminal acquires six frames of images A, B, C, D, E, and F to be processed.

在步骤S102中,对该待处理图像中每一用户的人脸图像进行表情识别,得到每一用户的表情识别结果。In step S102, the facial image of each user in the to-be-processed image is subjected to facial expression recognition to obtain the facial expression recognition result of each user.

比如,在获取A、B、C、D、E、F这六帧待处理图像后,终端可以对该六帧待处理图像中的每一用户的人脸图像进行表情识别,从而得到每一用户的表情识别结果。For example, after acquiring the six frames of images A, B, C, D, E, and F to be processed, the terminal can perform expression recognition on the face image of each user in the six frames of images to be processed, so as to obtain each user's facial expression. expression recognition results.

例如,若上述A、B、C、D、E、F六帧图像为终端连续、快速采集到的关于同一用户甲的单人图像,那么终端可以对每一帧待处理图像中用户甲的人脸图像进行表情识别,从而得到用户甲的表情识别结果。For example, if the above-mentioned six frames of images A, B, C, D, E, and F are single-person images of the same user A that are continuously and rapidly collected by the terminal, the terminal can analyze the person of user A in each frame to be processed The facial image is used for facial expression recognition, so as to obtain the facial expression recognition result of user A.

又如,若上述A、B、C、D、E、F六帧图像为终端连续、快速采集到的多人合影图像,例如上述六帧图像为甲、乙、丙、丁四人的合影图像,那么终端可以先对这六帧图像中用户甲的人脸图像进行表情识别,再依次对用户乙、用户丙、用户丁的人脸图像进行表情识别,从而分别得到这六帧图像中用户甲、乙、丙、丁四人的表情识别结果。For another example, if the above-mentioned six frames of images A, B, C, D, E, and F are group photo images of multiple people collected continuously and rapidly by the terminal, for example, the above-mentioned six frames of images are group photo images of four persons A, B, C, and D. , then the terminal can first perform expression recognition on the face image of user A in the six frames of images, and then perform expression recognition on the face images of user B, user C, and user D in turn, so as to obtain user A in the six frames of images respectively. , B, C, D four people's facial expression recognition results.

在一种实施方式中,终端可以通过如下方式来对识别待处理图像中的人脸图像的表情:先从人脸图像中的确定出表情关键点,该表情关键点可以是诸如眼睛、眉毛、嘴部、面颊等部位。然后,终端根据这些表情关键点,从人脸图像中提取局部图像。之后,终端可以将这些提取到的局部图像输入经过训练的表情识别算法模型中进行表情识别。In one embodiment, the terminal may recognize the expression of the face image in the image to be processed by the following method: first determine the expression key points in the face image, and the expression key points may be, for example, eyes, eyebrows, Mouth, cheeks, etc. Then, the terminal extracts a partial image from the face image according to these expression key points. After that, the terminal can input these extracted partial images into the trained expression recognition algorithm model for expression recognition.

在步骤S103中,根据该每一用户的表情识别结果,从该待处理图像中选取基础图像。In step S103, a base image is selected from the to-be-processed images according to the expression recognition result of each user.

比如,在得到待处理图像中每一用户的表情识别结果后,终端可以根据每一用户的表情识别结果,从待处理中选取其中一帧图像作为基础图像。For example, after obtaining the expression recognition result of each user in the image to be processed, the terminal may select one frame of images from the to-be-processed image as the base image according to the expression recognition result of each user.

可以理解的是,本实施例中,当需要从多帧待处理图像中选取基础图像时,终端可以先对该待处理图像中的每一用户的人脸图像进行表情识别,然后再根据每一用户的表情识别结果,从该待处理图像中确定出基础图像。即,本实施例可以根据用户的表情从待处理图像中选取出基础图像。因此,本实施例可以提高终端从多帧图像中选取用于进行处理的图像时的灵活性。It can be understood that, in this embodiment, when a basic image needs to be selected from multiple frames of images to be processed, the terminal can first perform expression recognition on the face image of each user in the to-be-processed image, and then perform expression recognition according to each The user's facial expression recognition result, and the basic image is determined from the to-be-processed image. That is, in this embodiment, the basic image can be selected from the images to be processed according to the user's expression. Therefore, this embodiment can improve the flexibility of the terminal when selecting images for processing from multiple frames of images.

请参阅图2,图2为本申请实施例提供的图像的选取方法的另一流程示意图,流程可以包括:Please refer to FIG. 2. FIG. 2 is another schematic flowchart of a method for selecting an image according to an embodiment of the present application. The process may include:

在步骤S201中,终端获取多帧包含人脸的待处理图像。In step S201, the terminal acquires multiple frames of images to be processed that include human faces.

在一种实施方式中,终端相机采集到的图像可以被保存到一定长的缓存队列中,那么当需要获取图像时,终端就可以从该缓存队列中获取。In an implementation manner, the images collected by the camera of the terminal can be stored in a buffer queue of a certain length, and then the terminal can acquire images from the buffer queue when it needs to acquire images.

比如,本实施例中,用户使用终端相机拍摄人物图像,那么当终端最近采集到的图像都可以被保存到缓存队列中,当用户按下拍照按钮后,终端可以从该缓存队列中获取多帧包含人脸的图像,这些图像即是待处理图像。For example, in this embodiment, if the user uses the terminal camera to take pictures of people, then the most recent images collected by the terminal can be stored in the cache queue, and when the user presses the camera button, the terminal can obtain multiple frames from the cache queue Images that contain faces, which are the images to be processed.

例如,终端获取到H、I、J、K、L、M这六帧待处理图像。这六帧待处理图像都是关于甲、乙、丙、丁四人的合影图像。For example, the terminal acquires six frames of H, I, J, K, L, and M images to be processed. The six frames of images to be processed are all group photos of four people, A, B, C, and D.

在步骤S202中,终端对该待处理图像中每一用户的人脸图像进行表情识别,得到每一用户的表情识别结果。In step S202, the terminal performs expression recognition on the face image of each user in the image to be processed, and obtains the expression recognition result of each user.

比如,在获取到关于甲、乙、丙、丁四人的合影图像H、I、J、K、L、M后,终端可以对这6帧待处理图像中每一用户的人脸图像进行表情识别,从而得到每一用户的表情识别结果。For example, after acquiring the group photo images H, I, J, K, L, and M of four persons A, B, C, and D, the terminal can express expressions on the face images of each user in the 6 frames of images to be processed. recognition, so as to obtain the facial expression recognition result of each user.

例如,终端可以先对这六帧图像中用户甲的人脸图像进行表情识别,再依次对用户乙、用户丙、用户丁的人脸图像进行表情识别,从而分别得到H、I、J、K、L、M这六帧图像中用户甲、乙、丙、丁四人的表情识别结果。For example, the terminal can first perform expression recognition on the face image of user A in the six frames of images, and then perform expression recognition on the face images of user B, user C, and user D in sequence, so as to obtain H, I, J, K respectively. The facial expression recognition results of users A, B, C, and D in the six frames of images , L and M.

在获得待处理图像中每一用户的表情识别结果后,终端可以根据每一用户的表情识别结果,判断待处理图像中本用户的表情是否发生变化。After obtaining the facial expression recognition result of each user in the image to be processed, the terminal may determine whether the facial expression of the user in the to-be-processed image has changed according to the facial expression recognition result of each user.

若根据每一用户的表情识别结果判断出所有用户在待处理图像中的表情均未发生变化,那么进入步骤S203中。If it is determined according to the facial expression recognition result of each user that the facial expressions of all users in the to-be-processed image have not changed, then proceed to step S203.

若根据每一用户的表情识别结果判断出待处理图像中某些用户的表情均发生变化,那么进入步骤S206中。If it is determined according to the facial expression recognition result of each user that the facial expressions of some users in the to-be-processed image have changed, step S206 is entered.

在步骤S203中,若根据每一用户的表情识别结果确定出所有用户在该待处理图像中的表情未发生变化,则终端获取每一该待处理图像中每一用户的眼部值,该眼部值为用于表示眼部大小的数值。In step S203, if it is determined that the expressions of all users in the to-be-processed image have not changed according to the expression recognition result of each user, the terminal obtains the eye value of each user in each of the to-be-processed images. The part value is a numerical value representing the size of the eye.

比如,终端根据用户甲的表情识别结果判断出用户甲的表情在这6帧待处理图像H、I、J、K、L、M中没有发生变化,即终端判断出用户甲在这6帧待处理图像中的表情一致,或者变化极其微小。同理,终端根据各个用户的表情识别结果判断出用户乙、丙、丁的表情在这6帧待处理图像中均没有发生变化。在这种情况下,终端可以获取每一待处理图像中每一用户的眼部值。其中,该眼部值可以是用于表示眼部大小的数值。例如,该眼部值可以是表示眼部的面积大小的数值,或者该眼部值可以是表示眼部竖直方向的高度的数值。For example, the terminal determines that the expression of user A has not changed in the six frames of images H, I, J, K, L, and M to be processed according to the expression recognition result of user A, that is, the terminal determines that user A is in the six frames to be processed. The expressions in the processed images are consistent, or the changes are minimal. Similarly, the terminal determines that the expressions of users B, C, and D have not changed in the 6 frames of images to be processed according to the expression recognition results of each user. In this case, the terminal can acquire the eye value of each user in each image to be processed. Wherein, the eye value may be a numerical value used to represent the size of the eye. For example, the eye value may be a numerical value representing the area size of the eye, or the eye value may be a numerical value representing the height of the eye in the vertical direction.

在步骤S204中,根据每一该待处理图像中每一用户的眼部值,终端确定出每一用户的目标人脸图像,该目标人脸图像为用户的眼部值中的最大值所对应的图像。In step S204, according to the eye value of each user in each of the images to be processed, the terminal determines the target face image of each user, and the target face image corresponds to the maximum value of the user's eye values Image.

比如,用户甲在待处理图像H、I、J、K、L、M中的眼部值分别为70、72、75、80、78、79。乙在待处理图像H、I、J、K、L、M中的眼睛大小的数值分别为80、80、81、82、85、82。丙在待处理图像H、I、J、K、L、M中的眼睛大小的数值分别为80、82、82、50、30、0。丁在待处理图像H、I、J、K、L、M中的眼睛大小的数值分别为82、83、84、88、85、81。其中,由待处理图像中丙的眼睛大小的变化可知,丙的眼睛从图像J开始不断变小,这可以认为丙在眨眼。其中图像M中丙处于闭眼状态(眼睛大小为0)。For example, the eye values of user A in the images H, I, J, K, L, and M to be processed are 70, 72, 75, 80, 78, and 79, respectively. The numerical values of the eye size of B in the images H, I, J, K, L, and M to be processed are 80, 80, 81, 82, 85, and 82, respectively. The numerical values of the eye size of C in the images H, I, J, K, L, and M to be processed are 80, 82, 82, 50, 30, and 0, respectively. The numerical values of Ding's eye size in the images H, I, J, K, L, and M to be processed are 82, 83, 84, 88, 85, and 81, respectively. Among them, from the change of the size of C's eyes in the image to be processed, it can be known that C's eyes keep getting smaller from the image J, which can be considered that C is blinking. In the image M, C is in a closed eye state (eye size is 0).

在得到每一用户在每一帧待处理图像中的眼部值之后,终端可以从待处理图像中确定出每一用户的目标人脸图像。其中,每一用户的目标人脸图像可以是该用户的眼部值中的最大值所对应的人脸图像。After obtaining the eye value of each user in each frame of the to-be-processed image, the terminal may determine the target face image of each user from the to-be-processed image. Wherein, the target face image of each user may be the face image corresponding to the maximum value among the eye values of the user.

例如,用户甲在待处理图像K中的眼部值80是所有待处理图像中甲的眼部值中的最大值,因此终端可以将待处理图像K中用户甲的人脸图像确定为用户甲的目标人脸图像。For example, the eye value 80 of user X in the image K to be processed is the maximum value among the eye values of X in all the images to be processed, so the terminal can determine the face image of user X in the image K to be processed as user X target face image.

同理,终端可以将待处理图像L中用户乙的人脸图像确定为用户乙的目标人脸图像,将待处理图像I或者J中用户丙的人脸图像确定为用户丙的目标人脸图像,将待处理图像K中用户丁的人脸图像确定为用户丁的目标人脸图像。Similarly, the terminal can determine the face image of user B in the image to be processed L as the target face image of user B, and determine the face image of user C in the image to be processed I or J as the target face image of user C. , and the face image of user D in the image K to be processed is determined as the target face image of user D.

在步骤S205中,终端将包含目标人脸图像个数最多的待处理图像选取为基础图像。In step S205, the terminal selects the image to be processed that contains the largest number of target face images as the base image.

比如,在确定出每一用户的目标人脸图像后,终端可以将包含目标人脸图像的个数最多的待处理图像选取为基础图像。For example, after determining the target face image of each user, the terminal may select the image to be processed that contains the largest number of target face images as the base image.

例如,由于待处理图像I和J中包含一个目标人脸图像(用户丙的目标人脸图像),待处理图像K中包含两个目标人脸图像(用户甲和丁的目标人脸图像),待处理图像L中包含一个目标人脸图像(用户乙的目标人脸图像),其他待处理图像中不包含目标人脸图像。因此,终端可以将待处理图像K选取为基础图像。For example, since images I and J to be processed contain one target face image (target face image of user C), and image K to be processed contains two target face images (target face images of users A and D), The image L to be processed includes a target face image (the target face image of user B), and the other images to be processed do not include the target face image. Therefore, the terminal can select the to-be-processed image K as the base image.

在步骤S206中,若根据每一用户的表情识别结果确定出该待处理图像中存在表情发生变化的用户的人脸图像,则终端将该表情发生变化的用户确定为目标用户。In step S206, if it is determined according to the expression recognition result of each user that there is a face image of a user whose expression changes in the to-be-processed image, the terminal determines the user whose expression changes as a target user.

在步骤S207中,对于每一该目标用户,终端将表情符合预设条件的人脸图像确定为该目标用户的目标人脸图像。In step S207, for each target user, the terminal determines a face image whose expression meets the preset condition as the target face image of the target user.

在步骤S208中,对于每一非目标用户,终端获取每一该待处理图像中每一非目标用户的眼部值,该眼部值为用于表示眼部大小的数值,将眼部值中的最大值所对应的图像确定为非目标用户的目标人脸图像。In step S208, for each non-target user, the terminal obtains the eye value of each non-target user in each image to be processed, the eye value is a numerical value used to indicate the size of the eye, and the eye value is The image corresponding to the maximum value of is determined as the target face image of the non-target user.

在步骤S209中,终端将包含目标人脸图像个数最多的待处理图像选取为基础图像。In step S209, the terminal selects the image to be processed that contains the largest number of target face images as the base image.

比如,步骤S206、S207、S208和S209可以包括:For example, steps S206, S207, S208 and S209 may include:

终端根据各个用户的表情识别结果,确定出待处理图像中存在表情发生变化的用户的人脸图像,即终端判断出待处理图像中某些用户的表情发生变化。例如,待处理图像为O、P、Q、R、S、T。根据表情识别结果,终端确定出在这六帧图像中用户丙的表情从不含微笑到包含微笑。用户丙在待处理图像O、P、Q、R、S、T的眼部值分别为82、80、60、50、30、0。也就是说,从图像O至图像T,用户丙的眼睛逐渐变小,但是用户丙的表情从不含微笑到包含微笑。并且,用户丙是女生,在微笑时,她的眼睛也跟着笑起来,使得眼睛呈现弯起来的效果。正是由于用户丙在微笑时眼睛弯起来了,导致用户丙的眼睛逐渐变小。在这种情况下,终端可以将表情发生变化的用户丙确定为目标用户。According to the facial expression recognition results of each user, the terminal determines that there are facial images of users whose expressions have changed in the image to be processed, that is, the terminal determines that the expressions of some users in the image to be processed have changed. For example, the images to be processed are O, P, Q, R, S, T. According to the expression recognition result, the terminal determines that the expression of user C in the six frames of images ranges from not containing a smile to including a smile. The eye values of user C in the images O, P, Q, R, S, and T to be processed are 82, 80, 60, 50, 30, and 0, respectively. That is, from the image O to the image T, the eyes of the user C gradually become smaller, but the expression of the user C changes from not containing a smile to containing a smile. Moreover, user C is a girl, and when she smiles, her eyes also smile, making the eyes appear curved. It is precisely because user C's eyes are bent when smiling that user C's eyes gradually become smaller. In this case, the terminal may determine the user C whose expression changes as the target user.

对于目标用户,终端可以将其表情符合预设条件的人脸图像确定为该目标用户的目标人脸图像。例如,预设条件可以为用户笑得最灿烂的表情。For the target user, the terminal may determine the face image whose expression meets the preset condition as the target face image of the target user. For example, the preset condition can be the expression that the user smiles the brightest.

例如,由于终端检测到用户丙的人脸图像中存在包含微笑表情的人脸图像,因此终端可以将包含微笑表情的人脸图像中用户丙笑得最灿烂的人脸图像,确定为用户丙的目标人脸图像。例如,终端检测到待处理图像T中用户丙的表情笑得最灿烂,那么终端可以将图像T中用户丙的人脸图像确定为用户丙的目标人脸图像。For example, since the terminal detects that there is a face image containing a smiling expression in the face image of user C, the terminal may determine the face image of user C who smiles most brilliantly among the face images containing the smiling expression as the face image of user C target face image. For example, if the terminal detects that the expression of user C in the image T to be processed is the brightest smile, the terminal may determine the face image of user C in the image T as the target face image of user C.

而对于每一非目标用户(即表情没有发生变化的用户),终端可以获取每一待处理图像中每一非目标用户的眼部值。其中,该眼部值可以是用于表示眼部大小的数值。然后,终端可以将每一用户的眼部值中的最大值所对应的人脸图像确定为该非目标用户的目标人脸图像。For each non-target user (that is, a user whose expression has not changed), the terminal may acquire the eye value of each non-target user in each image to be processed. Wherein, the eye value may be a numerical value used to represent the size of the eye. Then, the terminal may determine the face image corresponding to the maximum value of the eye values of each user as the target face image of the non-target user.

例如,用户甲、乙、丁在待处理图像中的表情没有发生变化或者变化极其微小,因此终端将用户甲、乙、丁确定为非目标用户。其中,用户甲在待处理图像O、P、Q、R、S、T中的眼部值分别为70、71、72、72、72、73,用户乙在待处理图像O、P、Q、R、S、T中的眼部值分别为80、81、81、83、82、82,用户丁在待处理图像O、P、Q、R、S、T中的眼部值分别为82、83、83、84、85、84。For example, the expressions of users A, B, and D in the image to be processed have not changed or the changes have been extremely small, so the terminal determines users A, B, and D as non-target users. Among them, the eye values of user A in the images O, P, Q, R, S, and T to be processed are 70, 71, 72, 72, 72, and 73, respectively, and the eye values of user B in the images O, P, Q, The eye values in R, S, and T are 80, 81, 81, 83, 82, and 82, respectively, and the eye values of user D in the images O, P, Q, R, S, and T to be processed are 82, 82, and 82, respectively. 83, 83, 84, 85, 84.

那么,终端可以将待处理图像T中用户甲的人脸图像确定为用户甲的目标人脸图像,将待处理图像R中用户乙的人脸图像确定为用户乙的目标人脸图像,将待处理图像S中用户丁的人脸图像确定为用户丁的目标人脸图像。Then, the terminal can determine the face image of user A in the image to be processed T as the target face image of user A, and the face image of user B in the image to be processed R as the target face image of user B, The face image of user D in the processed image S is determined as the target face image of user D.

然后,终端可以将包含目标人脸图像个数最多的待处理图像选取为基础图像。例如,由于待处理图像T中包含两个目标人脸图像(用户甲和丙的目标人脸图像),而待处理图像R中包含一个目标人脸图像(用户乙的目标人脸图像),待处理图像S中包含一个目标人脸图像(用户丁的目标人脸图像)。因此,终端可以将待处理图像T确定为基础图像。Then, the terminal may select the image to be processed that contains the largest number of target face images as the base image. For example, since the to-be-processed image T contains two target face images (target face images of users A and C), and the to-be-processed image R contains one target face image (the target face image of user B), the The processed image S contains a target face image (the target face image of user D). Therefore, the terminal can determine the image T to be processed as the base image.

在步骤S210中,终端从基础图像中确定出待替换人脸图像,该待替换人脸图像为用户的非目标人脸图像。In step S210, the terminal determines the face image to be replaced from the basic image, and the face image to be replaced is a non-target face image of the user.

在步骤S211中,从该待处理图像中,终端获取用于替换每一待替换人脸图像的目标人脸图像,每一待替换人脸图像及其对应的目标人脸图像为相同用户的人脸图像。In step S211, from the to-be-processed image, the terminal acquires a target face image for replacing each to-be-replaced face image, and each to-be-replaced face image and its corresponding target face image are people of the same user face image.

在步骤S212中,终端使用对应的目标人脸图像对每一待替换人脸图像进行图像替换处理,得到经过图像替换处理的基础图像。In step S212, the terminal uses the corresponding target face image to perform image replacement processing on each face image to be replaced to obtain a basic image that has undergone image replacement processing.

比如,步骤S210、S211和S212可以包括:For example, steps S210, S211 and S212 may include:

在确定出基础图像后,终端可以从该基础图像中确定出待替换人脸图像。其中,终端可以将基础图像中的非目标人脸图像确定为待替换人脸图像。After determining the base image, the terminal may determine the face image to be replaced from the base image. The terminal may determine the non-target face image in the base image as the face image to be replaced.

例如,基础图像T中,用户乙和用户丁的人脸图像不是各自的目标人脸图像,因此终端可以将基础图像T中用户乙和用户丁的人脸图像确定为待替换人脸图像。For example, in the base image T, the face images of user B and user D are not their respective target face images, so the terminal may determine the face images of user B and user D in the base image T as the face images to be replaced.

然后,终端可以从基础图像之外的其他待处理图像中,获取用于替换每一待替换人脸图像的目标人脸图像。可以理解的是,每一待替换人脸图像及其对应的目标人脸图像为相同用户的人脸图像。Then, the terminal may acquire, from images other than the base image to be processed, a target face image for replacing each face image to be replaced. It can be understood that each face image to be replaced and its corresponding target face image are face images of the same user.

例如,待处理图像R中用户乙的人脸图像为用户乙的目标人脸图像,待处理图像S中用户丁的人脸图像为用户丁的目标人脸图像,那么终端就可以获取待处理图像R中用户乙的人脸图像和待处理图像S中用户丁的人脸图像。For example, the face image of user B in the image to be processed R is the target face image of user B, and the face image of user D in the image to be processed S is the target face image of user D, then the terminal can obtain the image to be processed The face image of user B in R and the face image of user D in the image S to be processed.

在得到每一待替换人脸图像的目标人脸图像后,终端可以使用对应的目标人脸图像对每一待替换人脸图像进行图像替换处理,从而得到经过图像替换处理的基础图像。After obtaining the target face image of each face image to be replaced, the terminal can use the corresponding target face image to perform image replacement processing on each face image to be replaced, thereby obtaining a basic image subjected to image replacement processing.

例如,在基础图像T中,终端可以将基础图像T中用户乙的待替换人脸图像替换为待处理图像R中用户乙的目标人脸图像,将基础图像T中用户丁的待替换人脸图像替换为待处理图像S中用户丁的目标人脸图像,从而得到经过图像替换处理的基础图像T。For example, in the base image T, the terminal may replace the face image of user B to be replaced in the base image T with the target face image of user B in the image R to be processed, and the face image to be replaced of user D in the base image T The image is replaced with the target face image of the user D in the image S to be processed, so as to obtain a basic image T that has undergone image replacement processing.

可以理解的是,经过图像替换处理后的基础图像T中每一用户的人脸图像均为该用户的目标人脸图像了。例如,经过图像替换处理后,基础图像T中,用户甲、乙、丁的人脸图像是各自眼部值的最大值对应的人脸图像了,用户丙的人脸图像是用户丙笑得最灿烂的人脸图像了。It can be understood that the face image of each user in the basic image T after image replacement processing is the target face image of the user. For example, after image replacement processing, in the base image T, the face images of users A, B, and D are the face images corresponding to the maximum values of their respective eye values, and the face image of user C is the face image of user C who smiles the most Brilliant face images too.

在一种实施方式中,终端也可以对每一用户的表情进行数值化表示。比如,对于积极的表情,终端可以赋予正数的数值,对于消极表情,终端可以赋予负数的数值。对于积极的表情,终端可以根据表情的表现程度,赋予不同的正数值。例如对于微笑的笑容幅度较小的表情,终端可以赋予一个数值较小的正数,而对于微笑的笑容幅度较大的表情,终端可以赋予一个数值较大的正数。这样的话,用户的表情就都用表情值进行表示了。In one embodiment, the terminal may also numerically represent the expression of each user. For example, for a positive expression, the terminal may assign a positive value, and for a negative expression, the terminal may assign a negative value. For positive expressions, the terminal can assign different positive values according to the degree of expression of the expressions. For example, the terminal may assign a small positive number to a smiling expression with a small smile range, and the terminal may assign a large positive number to a smiling expression with a large smile range. In this case, the user's expressions are represented by expression values.

然后,终端可以根据表情值和眼部值,从待处理图像中综合确定出用户的目标人脸图像。比如,对于表情发生变化的用户的人脸图像,终端可以对表情值赋予一个较大的权重,而赋予眼部值一个较小的权重。例如,表情值的权重为85%,眼部值的权重为15%。Then, the terminal can comprehensively determine the user's target face image from the images to be processed according to the expression value and the eye value. For example, for a face image of a user whose expression changes, the terminal may assign a larger weight to the expression value and a smaller weight to the eye value. For example, the expression value is weighted 85%, and the eye value is weighted 15%.

以用户丙的人脸图像为例,用户丙在待处理图像O、P、Q、R、S、T中的眼部值分别为82、80、60、50、30、0。而用户丙在待处理图像O、P、Q、R、S、T中的眼部值分别为10、20、30、40、50、60。那么,待处理图像O中用户丙的综合值为20.8(82*15%+10*85%)。同理,待处理图像P、Q、R、S、T的综合值依次为29、34.5、41.5、47、51。那么,由于待处理图像T的综合值最大,因此终端可以将待处理图像T中用户丙的人脸图像确定为用户丙的目标人脸图像。然后,终端再将包含目标人脸图像的个数最多的待处理图像确定为基础图像。Taking the face image of user C as an example, the eye values of user C in the images O, P, Q, R, S, and T to be processed are 82, 80, 60, 50, 30, and 0, respectively. The eye values of user C in the images O, P, Q, R, S, and T to be processed are 10, 20, 30, 40, 50, and 60, respectively. Then, the comprehensive value of user C in the image O to be processed is 20.8 (82*15%+10*85%). Similarly, the comprehensive values of the images P, Q, R, S, and T to be processed are 29, 34.5, 41.5, 47, and 51 in sequence. Then, since the comprehensive value of the to-be-processed image T is the largest, the terminal may determine the face image of user C in the to-be-processed image T as the target face image of user C. Then, the terminal determines the to-be-processed image with the largest number of target face images as the base image.

在一种实施方式中,在获取多帧包含人脸的待处理图像的步骤之前,还可以包括如下步骤:In one embodiment, before the step of acquiring multiple frames of images to be processed containing human faces, the following steps may also be included:

当采集包含人脸的图像时,终端根据采集到的至少两帧图像确定出目标帧数。When collecting an image including a human face, the terminal determines the target frame number according to the at least two frames of images collected.

那么,终端获取多帧包含人脸的待处理图像的步骤,可以包括:从采集到的多帧图像中,终端获取数量为该目标帧数的待处理图像。Then, the step that the terminal acquires multiple frames of images to be processed including faces may include: from the multiple frames of images collected, the terminal acquires the number of images to be processed that is the target number of frames.

比如,在进入相机预览界面后,如果检测到终端在采集包含人脸的图像,那么终端可以根据采集到的至少两帧包含人脸的图像,确定出一个目标帧数。在一种实施方式中,该目标帧数可以大于或等于2。For example, after entering the camera preview interface, if it is detected that the terminal is collecting images containing faces, the terminal may determine a target frame number according to at least two collected images containing faces. In one embodiment, the target frame number may be greater than or equal to 2.

例如,当终端采集到四帧包含人脸的图像时,终端可以检测这四帧图像中的人脸所在的位置是否发生位移。若未发生位移或者位移很小,则可以认为图像中的人脸图像比较稳定,即用户没有大范围的摇动或转动头部。若发生位移,则可以认为人脸图像不稳定,即用户摇动或转动了头部,并且幅度较大。For example, when the terminal collects four frames of images containing a human face, the terminal can detect whether the position of the human face in the four frames of images is displaced. If there is no displacement or the displacement is very small, it can be considered that the face image in the image is relatively stable, that is, the user does not shake or turn his head in a large range. If displacement occurs, it can be considered that the face image is unstable, that is, the user shakes or turns his head, and the amplitude is large.

在一种实施方式中,可以通过如下方式来检测图像中的人脸是否发生位移:在获取到采集的四帧图像后,终端可以生成一个坐标系,然后终端可以用相同的方式将每一帧图像放入该坐标系中。之后,终端可以获取每一帧图像中的人脸图像特征点在该坐标系中的坐标。在得到每一帧图像中的人脸图像的特征点在该坐标系中的坐标后,终端就可以比较不同图像中的同一人脸图像特征点的坐标是否相同。若相同,则可以认为图像中的人脸图像未发生位移。若不同,则可以认为图像中的人脸图像发生位移。若检测到人脸图像发生位移,那么终端可以获取具体的位移数值。若该具体的位移数值处于预设数值范围内,则可以认为图像中的人脸图像位移较小。若该具体的位移数值处于预设数值范围外,那么可以认为图像中的人脸图像位移较大。In one embodiment, whether the face in the image is displaced can be detected by the following method: after acquiring the four frames of images collected, the terminal can generate a coordinate system, and then the terminal can use the same method to convert each frame The image is placed into this coordinate system. After that, the terminal can acquire the coordinates of the feature points of the face image in each frame of images in the coordinate system. After obtaining the coordinates of the feature points of the face image in each frame of images in the coordinate system, the terminal can compare whether the coordinates of the feature points of the same face image in different images are the same. If they are the same, it can be considered that the face image in the image is not displaced. If they are different, it can be considered that the face image in the image is displaced. If it is detected that the face image is displaced, the terminal can obtain a specific displacement value. If the specific displacement value is within the preset value range, it can be considered that the displacement of the face image in the image is small. If the specific displacement value is outside the preset value range, it can be considered that the displacement of the face image in the image is relatively large.

在一种实施方式中,例如,若人脸图像发生位移,则可以将目标帧数确定为4帧。若人脸图像未发生位移,则可以将目标帧数确定为6帧或8帧。In one embodiment, for example, if the face image is displaced, the target number of frames may be determined to be 4 frames. If the face image is not displaced, the target frame number can be determined to be 6 frames or 8 frames.

在用户按下拍照按钮后,终端可以从最近采集到的图像中,获取数量为目标帧数的待处理图像。After the user presses the photographing button, the terminal may acquire images to be processed whose number is the target number of frames from the recently collected images.

在一种实施方式中,在得到经过图像替换处理的基础图像的步骤之后,还可以包括如下步骤:In one embodiment, after the step of obtaining the basic image that has undergone image replacement processing, the following steps may also be included:

根据待处理图像,终端对该经过图像替换处理的基础图像进行图像降噪处理。According to the image to be processed, the terminal performs image noise reduction processing on the basic image that has undergone image replacement processing.

比如,在得到经过图像替换处理的基础图像后,终端可以根据待处理图像,对该经过图像替换处理的基础图像进行图像降噪处理。比如,终端可以获取一组包含基础图像在内的连续采集到的图像,并根据这组图像对该经过图像替换处理的基础图像进行多帧降噪处理。For example, after obtaining the basic image subjected to the image replacement processing, the terminal may perform image noise reduction processing on the basic image subjected to the image replacement processing according to the image to be processed. For example, the terminal may acquire a set of continuously collected images including the base image, and perform multi-frame noise reduction processing on the base image after image replacement processing according to the set of images.

例如,由于基础图像为图像T,因此终端可以获取待处理图像Q、R、S,并根据图像Q、R、S对经过图像替换处理的基础图像T进行多帧降噪处理。For example, since the base image is image T, the terminal may acquire images Q, R, and S to be processed, and perform multi-frame noise reduction processing on the base image T after image replacement processing according to images Q, R, and S.

在一种实施方式中,在进行多帧降噪时,终端可以先将图像Q、R、S、T对齐,并获取图像中每一组对齐像素的像素值。若同一组对齐像素的像素值相差不多,那么终端可以计算这组对齐像素的像素值均值,再用该像素值均值替换掉图像T的对应像素的像素值。若同一组对齐像素的像素值相差较多,那么可以不对图像T中的像素值进行调整。In one embodiment, when performing multi-frame noise reduction, the terminal may first align the images Q, R, S, and T, and obtain the pixel value of each group of aligned pixels in the image. If the pixel values of the aligned pixels in the same group are similar, the terminal may calculate the average pixel value of the aligned pixels in the group, and then replace the pixel value of the corresponding pixel of the image T with the average pixel value. If the pixel values of the same group of aligned pixels are quite different, the pixel values in the image T may not be adjusted.

例如,图像Q中的像素P1、图像R中的像素P2、图像S中的像素P3以及图像T中的像素P4是一组相互对齐的像素,其中P1的像素值为101,P2的像素值为102,P3的像素值为103,P4的像素值为104,那么这组相互对齐的像素的像素值均值为102.5,那么终端就可以将图像T中的P4像素的像素值由104调整为102.5,从而对图像T中的P4像素进行降噪处理。若P1的像素值为80,P2的像素值为83,P3的像素值为90,P4的像素值为103,那么由于它们的像素值相差较多,此时终端可以不调整P4的像素值,即P4的像素值保持104不变。For example, pixel P1 in image Q, pixel P2 in image R, pixel P3 in image S, and pixel P4 in image T are a set of mutually aligned pixels, where the pixel value of P1 is 101, and the pixel value of P2 is 101. 102, the pixel value of P3 is 103, and the pixel value of P4 is 104, then the average pixel value of this group of aligned pixels is 102.5, then the terminal can adjust the pixel value of the P4 pixel in the image T from 104 to 102.5, Thereby, noise reduction processing is performed on the P4 pixel in the image T. If the pixel value of P1 is 80, the pixel value of P2 is 83, the pixel value of P3 is 90, and the pixel value of P4 is 103, then because their pixel values are quite different, the terminal may not adjust the pixel value of P4 at this time. That is, the pixel value of P4 remains unchanged at 104.

请参阅图3至图5,图3至图5为本申请实施例提供的图像的选取方法的场景示意图。Please refer to FIG. 3 to FIG. 5 . FIG. 3 to FIG. 5 are schematic diagrams of scenes of a method for selecting an image provided by an embodiment of the present application.

本实施例中,在进入相机的预览界面后,如果检测到终端在采集人脸图像,那么终端可以采集当前的环境参数,并根据采集到的至少两帧人脸图像,确定出一个目标帧数。该环境参数可以是环境光亮度。In this embodiment, after entering the preview interface of the camera, if it is detected that the terminal is collecting face images, the terminal can collect the current environment parameters, and determine a target frame number according to the collected at least two frames of face images . The ambient parameter may be ambient light brightness.

若终端根据采集到在至少两帧人脸图像,确定出图像中的人脸未发生位移(或者位移很小),并且当前处于亮光环境,那么终端可以将目标帧数确定为8帧。若终端根据采集到在至少两帧人脸图像,确定出图像中的人脸未发生位移(或者位移很小),并且当前处于暗光环境,那么终端可以将目标帧数确定为6帧。若终端根据采集到在至少两帧人脸图像,确定出图像中的人脸发生位移,那么终端可以将目标帧数确定为4帧。If the terminal determines that the face in the image is not displaced (or the displacement is small) according to the collected face images in at least two frames, and the terminal is currently in a bright light environment, the terminal can determine the target frame number as 8 frames. If the terminal determines that the face in the image is not displaced (or the displacement is small) according to the collected face images in at least two frames, and is currently in a dark light environment, the terminal can determine the target frame number as 6 frames. If the terminal determines that the face in the images is displaced according to the collected face images in at least two frames, the terminal may determine the target frame number as 4 frames.

终端可以将采集到的图像保存到缓存队列。该缓存队列可以为定长队列,例如该缓存队列可以保存终端最新采集到的10帧图像。The terminal can save the collected images to the buffer queue. The buffer queue may be a fixed-length queue, for example, the buffer queue may store 10 frames of images newly collected by the terminal.

比如,甲、乙、丙、丁、戊五人外出游玩,并准备在一处风景旁拍照。其中,甲使用终端先为乙拍照,如图3所示。比如,在进入相机的预览界面后,终端根据当前采集到的环境参数,每隔50毫秒采集一帧图像。在甲按下相机的拍照按钮前,终端可以先从缓存队列中获取采集到的4帧图像,可以理解的是,这4帧图像中均包含乙的人脸图像。然后,终端可以检测这4帧图像中乙的人脸图像在画面中的位置是否发生位移。若未发生位移或者位移很小,则可以认为乙的人脸图像比较稳定,即乙没有大范围的摇动或转动头部。若发生位移,则可以认为乙的人脸图像不稳定,即乙摇动或转动了头部,并且幅度较大。例如,本实施例中,终端检测到上述4帧图像中乙的人脸图像在画面中的位置未发生位移。For example, five people, A, B, C, D, and E, go out to play and prepare to take pictures next to a landscape. Among them, A uses the terminal to take pictures of B first, as shown in Figure 3. For example, after entering the preview interface of the camera, the terminal collects a frame of image every 50 milliseconds according to the currently collected environmental parameters. Before A presses the camera button of the camera, the terminal can first obtain the 4 frames of images collected from the cache queue. It is understandable that these 4 frames of images all contain B's face image. Then, the terminal can detect whether the position of B's face image in the picture is displaced in these 4 frames of images. If there is no displacement or the displacement is small, it can be considered that B's face image is relatively stable, that is, B does not shake or turn his head in a large range. If displacement occurs, it can be considered that B's face image is unstable, that is, B shakes or turns his head, and the amplitude is large. For example, in this embodiment, the terminal detects that the position of the face image of B in the above-mentioned four frames of images does not shift in the picture.

然后,终端可以获取当前的环境光亮度,并根据该环境光亮度,判断当前是否处于暗光环境。例如,终端判断出当前处于暗光环境。Then, the terminal can acquire the current brightness of the ambient light, and judge whether it is currently in a dark light environment according to the brightness of the ambient light. For example, the terminal determines that it is currently in a dark light environment.

之后,终端可以根据上述获取到的信息:乙的人脸图像在画面中的位置未发生位移,以及当前处于暗光环境,确定出一个目标帧数。例如,确定出来的目标帧数为6帧。Afterwards, the terminal can determine a target frame number according to the information obtained above: the position of B's face image in the picture has not shifted, and it is currently in a dark light environment. For example, the determined target frame number is 6 frames.

此后,当甲按下拍照按钮后,终端可以获取6帧采集到的关于乙的图像。例如,终端可以从缓存队列中获取最近采集到的6帧关于乙的图像,例如按照时间先后,这6帧图像分别为A、B、C、D、E、F。可以理解的是,这六帧图像A、B、C、D、E、F即是终端获取到的待处理图像。After that, when A presses the camera button, the terminal can obtain 6 frames of collected images about B. For example, the terminal may acquire the most recently collected 6 frames of images about B from the cache queue. For example, in chronological order, the 6 frames of images are A, B, C, D, E, and F respectively. It can be understood that the six frames of images A, B, C, D, E, and F are the images to be processed obtained by the terminal.

在获取到6帧图像后,终端可以对该6帧图像进行人脸的表情识别,并检测图像中人脸图像的眼部值,该眼部值是用于表示眼部大小的数值。例如,A、B、C、D、E、F图像中乙的眼部值分别为80、82、83、84、85、84。例如,终端检测到用户乙在这6帧图像中的表情没有变化。After acquiring 6 frames of images, the terminal can perform facial expression recognition on the 6 frames of images, and detect the eye value of the face image in the image, where the eye value is a numerical value used to indicate the size of the eye. For example, the eye values of B in images A, B, C, D, E, and F are 80, 82, 83, 84, 85, and 84, respectively. For example, the terminal detects that the expression of user B has not changed in these 6 frames of images.

在确定出用户乙在待处理图像中的表情没有发生变化的情况下,由于这6帧图像为乙的单人图像,因此终端可以将这6帧图像中眼部值最大的那帧图像确定为基础图像,即图像E被确定为基础图像。In the case where it is determined that the expression of user B in the image to be processed has not changed, since the 6 frames of images are the single-person images of B, the terminal can determine the frame of the image with the largest eye value among the 6 frames of images as The base image, ie, the image E, is determined as the base image.

在将图像E确定为基础图像后,终端可以根据图像C、D、F,对图像E进行多帧降噪处理。在对图像E进行多帧降噪处理后,终端可以将经过降噪处理后的图像E存储到相册中成为一张照片。可以理解的是,图像E即是拍摄到的乙的大眼照片。After the image E is determined as the base image, the terminal may perform multi-frame noise reduction processing on the image E according to the images C, D, and F. After performing multi-frame noise reduction processing on the image E, the terminal may store the image E after the noise reduction processing in an album to become a photo. It can be understood that the image E is the big eye photo of B taken.

之后,戊为甲、乙、丙、丁四人拍摄合影。比如,在进入相机的预览界面后,终端检测到采集到的4帧图像中甲乙丙丁四人的人脸图像在画面中的位置未发生位移,并且当前处于暗光环境。基于此,终端确定出目标帧数为6帧。After that, Wu took a group photo for A, B, C, and D. For example, after entering the preview interface of the camera, the terminal detects that the positions of the faces of the four persons A, B, C, and D in the collected 4-frame images have not shifted in the screen, and they are currently in a dark environment. Based on this, the terminal determines that the target frame number is 6 frames.

此后,当戊按下拍照按钮后,终端可以获取6帧采集到的关于甲乙丙丁的图像,如图4所示。例如,终端可以从缓存队列中获取最近采集到的6帧关于甲乙丙丁的图像。例如,按照时间先后,这6帧图像分别为O、P、Q、R、S、T。可以理解的是,这6帧图像即是待处理图像。After that, when E presses the photo button, the terminal can obtain 6 frames of collected images about A, B, C, and D, as shown in FIG. 4 . For example, the terminal may acquire the most recently acquired 6 frames of images about AED3 from the buffer queue. For example, according to time sequence, the six frames of images are O, P, Q, R, S, and T, respectively. It can be understood that these 6 frames of images are the images to be processed.

之后,终端可以对这6帧待处理图像中每一用户的人脸图像进行表情识别,从而得到每一用户的表情识别结果。在获得待处理图像中每一用户的表情识别结果后,终端可以根据每一用户的表情识别结果,判断待处理图像中本用户的表情是否发生变化。Afterwards, the terminal may perform expression recognition on the face image of each user in the 6 frames of images to be processed, so as to obtain the expression recognition result of each user. After obtaining the facial expression recognition result of each user in the image to be processed, the terminal may determine whether the facial expression of the user in the to-be-processed image has changed according to the facial expression recognition result of each user.

例如,根据表情识别结果,终端确定出在这六帧图像中用户丙的表情从不含微笑到包含微笑。用户丙在待处理图像O、P、Q、R、S、T的眼部值分别为82、80、60、50、30、0。也就是说,从图像O至图像T,用户丙的眼睛逐渐变小,但是用户丙的表情从不含微笑到包含微笑。在这种情况下,终端可以将表情发生变化的用户丙确定为目标用户。例如,用户丙在从图像O至图像T的人脸图像如图5所示。For example, according to the expression recognition result, the terminal determines that the expression of user C in the six frames of images ranges from not containing a smile to including a smile. The eye values of user C in the images O, P, Q, R, S, and T to be processed are 82, 80, 60, 50, 30, and 0, respectively. That is, from the image O to the image T, the eyes of the user C gradually become smaller, but the expression of the user C changes from not containing a smile to containing a smile. In this case, the terminal may determine the user C whose expression changes as the target user. For example, the face images of user C from image O to image T are shown in FIG. 5 .

由于终端检测到用户丙的人脸图像中存在包含微笑表情的人脸图像,因此终端可以将包含微笑表情的人脸图像中用户丙笑得最灿烂的人脸图像,确定为用户丙的目标人脸图像。例如,终端检测到待处理图像T中用户丙的表情笑得最灿烂,那么终端可以将图像T中用户丙的人脸图像确定为用户丙的目标人脸图像。Since the terminal detects that there is a face image containing a smiling expression in the face image of user C, the terminal can determine the face image of user C who smiles the brightest among the face images containing the smiling expression as the target person of user C face image. For example, if the terminal detects that the expression of user C in the image T to be processed is the brightest smile, the terminal may determine the face image of user C in the image T as the target face image of user C.

另外,用户甲、乙、丁在待处理图像中的表情没有发生变化或者变化极其微小,因此终端将用户甲、乙、丁确定为非目标用户。其中,终端获取到用户甲在待处理图像O、P、Q、R、S、T中的眼部值分别为70、71、72、72、72、73,用户乙在待处理图像O、P、Q、R、S、T中的眼部值分别为80、81、81、83、82、82,用户丁在待处理图像O、P、Q、R、S、T中的眼部值分别为82、83、83、84、85、84。In addition, the expressions of users A, B, and D in the to-be-processed image do not change or the changes are extremely small, so the terminal determines users A, B, and D as non-target users. Among them, the eye values of user A in the images O, P, Q, R, S, and T to be processed obtained by the terminal are 70, 71, 72, 72, 72, and 73, respectively. User B is in the images O, P to be processed. , Q, R, S, and T eye values are 80, 81, 81, 83, 82, 82, respectively, and the eye values of user D in the images O, P, Q, R, S, and T to be processed are respectively 82, 83, 83, 84, 85, 84.

那么,终端可以将待处理图像T中用户甲的人脸图像确定为用户甲的目标人脸图像,将待处理图像R中用户乙的人脸图像确定为用户乙的目标人脸图像,将待处理图像S中用户丁的人脸图像确定为用户丁的目标人脸图像。Then, the terminal can determine the face image of user A in the image to be processed T as the target face image of user A, and the face image of user B in the image to be processed R as the target face image of user B, The face image of user D in the processed image S is determined as the target face image of user D.

然后,终端可以将包含目标人脸图像个数最多的待处理图像选取为基础图像。例如,由于待处理图像T中包含两个目标人脸图像(用户甲和丙的目标人脸图像),而待处理图像R中包含一个目标人脸图像(用户乙的目标人脸图像),待处理图像S中包含一个目标人脸图像(用户丁的目标人脸图像)。因此,终端可以将待处理图像T确定为基础图像。Then, the terminal may select the image to be processed that contains the largest number of target face images as the base image. For example, since the to-be-processed image T contains two target face images (target face images of users A and C), and the to-be-processed image R contains one target face image (the target face image of user B), the The processed image S contains a target face image (the target face image of user D). Therefore, the terminal can determine the image T to be processed as the base image.

在基础图像T中,由于用户乙和用户丁的人脸图像不是各自的目标人脸图像,因此终端可以将基础图像T中用户乙和用户丁的人脸图像确定为待替换人脸图像。In the base image T, since the face images of user B and user D are not their respective target face images, the terminal may determine the face images of user B and user D in the base image T as the face images to be replaced.

例如,待处理图像R中用户乙的人脸图像为用户乙的目标人脸图像,待处理图像S中用户丁的人脸图像为用户丁的目标人脸图像,那么终端就可以获取待处理图像R中用户乙的人脸图像和待处理图像S中用户丁的人脸图像。For example, the face image of user B in the image to be processed R is the target face image of user B, and the face image of user D in the image to be processed S is the target face image of user D, then the terminal can obtain the image to be processed The face image of user B in R and the face image of user D in the image S to be processed.

然后,终端可以将基础图像T中用户乙的待替换人脸图像替换为待处理图像R中用户乙的目标人脸图像,将基础图像T中用户丁的待替换人脸图像替换为待处理图像S中用户丁的目标人脸图像,从而得到经过图像替换处理的基础图像T。Then, the terminal can replace the face image to be replaced of user B in the base image T with the target face image of user B in the image to be processed R, and replace the face image to be replaced of user D in the base image T with the image to be processed The target face image of user D in S, so as to obtain the basic image T after image replacement processing.

可以理解的是,经过图像替换处理后的基础图像T中每一用户的人脸图像均为该用户的目标人脸图像了。例如,经过图像替换处理后,基础图像T中,用户甲、乙、丁的人脸图像是各自眼部值的最大值对应的人脸图像了,用户丙的人脸图像是用户丙笑得最灿烂的人脸图像了。It can be understood that the face image of each user in the basic image T after image replacement processing is the target face image of the user. For example, after image replacement processing, in the base image T, the face images of users A, B, and D are the face images corresponding to the maximum values of their respective eye values, and the face image of user C is the face image of user C who smiles the most Brilliant face images too.

之后,终端可以获取待处理图像Q、R、S,并根据图像Q、R、S对经过图像替换处理的基础图像T进行多帧降噪处理。然后,终端可以将经过降噪处理的图像T存储到相册中成为照片。Afterwards, the terminal may acquire the images Q, R, and S to be processed, and perform multi-frame noise reduction processing on the basic image T that has undergone image replacement processing according to the images Q, R, and S. Then, the terminal may store the image T subjected to noise reduction processing in an album as a photo.

可以理解的是,存储到相册中的照片中甲乙丙丁四人或者处于大眼状态或者处于表情(笑容)最佳状态,因此本实施例可以提高终端拍摄的照片的成像效果,提高用户体验。It can be understood that in the photos stored in the album, the four persons A, B, C, and D are either in the big-eyed state or in the best expression (smile) state. Therefore, this embodiment can improve the imaging effect of the photo taken by the terminal and improve the user experience.

请参阅图6,图6为本申请实施例提供的图像的选取装置的结构示意图。图像的选取装置300可以包括:获取模块301,识别模块302,以及选取模块303。Please refer to FIG. 6 , which is a schematic structural diagram of an image selection apparatus provided by an embodiment of the present application. The image selection apparatus 300 may include: an acquisition module 301 , an identification module 302 , and a selection module 303 .

获取模块301,用于获取多帧包含人脸的待处理图像。The acquiring module 301 is configured to acquire multiple frames of images to be processed including human faces.

识别模块302,用于对所述待处理图像中每一用户的人脸图像进行表情识别,得到每一用户的表情识别结果。The recognition module 302 is configured to perform facial expression recognition on the face image of each user in the to-be-processed image to obtain the facial expression recognition result of each user.

选取模块303,用于根据所述每一用户的表情识别结果,从所述待处理图像中选取基础图像。The selection module 303 is configured to select a basic image from the to-be-processed images according to the expression recognition result of each user.

在一种实施方式中,选取模块303可以用于:In one embodiment, the selection module 303 may be used to:

若根据每一用户的表情识别结果确定出所有用户在所述待处理图像中的表情未发生变化,则获取每一所述待处理图像中每一用户的眼部值,所述眼部值为用于表示眼部大小的数值;If it is determined that the expressions of all users in the to-be-processed image have not changed according to the expression recognition result of each user, the eye value of each user in each of the to-be-processed images is obtained, and the eye value is A numerical value used to represent the size of the eye;

根据每一所述待处理图像中每一用户的眼部值,从所述待处理图像中选取基础图像。According to the eye value of each user in each of the to-be-processed images, a base image is selected from the to-be-processed images.

在一种实施方式中,选取模块303可以用于:In one embodiment, the selection module 303 may be used to:

根据每一所述待处理图像中每一用户的眼部值,确定出每一用户的目标人脸图像,所述目标人脸图像为用户的眼部值中的最大值所对应的图像;Determine the target face image of each user according to the eye value of each user in each of the to-be-processed images, and the target face image is the image corresponding to the maximum value of the user's eye values;

将包含目标人脸图像个数最多的待处理图像选取为基础图像。The to-be-processed image containing the largest number of target face images is selected as the base image.

在一种实施方式中,选取模块303可以用于:In one embodiment, the selection module 303 may be used to:

若根据每一用户的表情识别结果确定出所述待处理图像中存在表情发生变化的用户的人脸图像,则将所述表情发生变化的用户确定为目标用户;If it is determined according to the expression recognition result of each user that there is a face image of a user whose expression has changed in the to-be-processed image, then the user whose expression has changed is determined as a target user;

对于每一所述目标用户,将表情符合预设条件的人脸图像确定为所述目标用户的目标人脸图像;For each target user, determining a face image whose expression meets the preset condition as the target face image of the target user;

对于每一非目标用户,获取每一所述待处理图像中每一非目标用户的眼部值,所述眼部值为用于表示眼部大小的数值,将眼部值中的最大值所对应的图像确定为非目标用户的目标人脸图像;For each non-target user, obtain the eye value of each non-target user in each of the images to be processed, the eye value is a numerical value used to represent the size of the eye, and the maximum value of the eye values The corresponding image is determined as the target face image of the non-target user;

将包含目标人脸图像个数最多的待处理图像选取为基础图像。The to-be-processed image containing the largest number of target face images is selected as the base image.

请一并参阅图7,图7为本申请实施例提供的图像的选取装置的另一结构示意图。在一实施例中,图像的选取装置300还可以包括:采集模块304和处理模块305。Please also refer to FIG. 7 . FIG. 7 is another schematic structural diagram of an image selection apparatus provided by an embodiment of the present application. In an embodiment, the image selection apparatus 300 may further include: a collection module 304 and a processing module 305 .

采集模块304,用于当采集包含人脸的图像时,根据采集到的至少两帧图像确定出目标帧数。The collection module 304 is configured to determine the target frame number according to the at least two frames of images collected when collecting an image containing a human face.

那么,获取模块301可以用于:从采集到的多帧图像中,获取数量为所述目标帧数的待处理图像。Then, the obtaining module 301 may be configured to obtain, from the collected multi-frame images, the to-be-processed images whose number is the target number of frames.

处理模块305用于在所述从所述待处理图像中选取基础图像的步骤之后:The processing module 305 is configured to: after the step of selecting a base image from the to-be-processed image:

从基础图像中确定出待替换人脸图像,所述待替换人脸图像为用户的非目标人脸图像;Determine the face image to be replaced from the base image, and the face image to be replaced is the non-target face image of the user;

从所述待处理图像中,获取用于替换每一待替换人脸图像的目标人脸图像,每一待替换人脸图像及其对应的目标人脸图像为相同用户的人脸图像;From the image to be processed, obtain a target face image for replacing each face image to be replaced, and each face image to be replaced and its corresponding target face image are the face images of the same user;

使用对应的目标人脸图像对每一待替换人脸图像进行图像替换处理,得到经过图像替换处理的基础图像。Perform image replacement processing on each face image to be replaced by using the corresponding target face image to obtain a basic image that has undergone image replacement processing.

在一种实施方式中,处理模块305还可以用于:根据所述待处理图像,对所述经过图像替换处理的基础图像进行图像降噪处理。In one embodiment, the processing module 305 may be further configured to: perform image noise reduction processing on the basic image that has undergone image replacement processing according to the to-be-processed image.

本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本实施例提供的图像的选取方法中的步骤。An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, causes the computer to execute the steps in the image selection method provided by this embodiment .

本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本实施例提供的图像的选取方法中的步骤。An embodiment of the present application further provides an electronic device, including a memory and a processor, where the processor is configured to execute the steps in the image selection method provided by this embodiment by calling a computer program stored in the memory.

例如,上述电子设备可以是诸如平板电脑或者智能手机等移动终端。请参阅图8,图8为本申请实施例提供的移动终端的结构示意图。For example, the above-mentioned electronic device may be a mobile terminal such as a tablet computer or a smart phone. Please refer to FIG. 8 , which is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.

该移动终端400可以包括摄像模组401、存储器402、处理器403等部件。本领域技术人员可以理解,图8中示出的移动终端结构并不构成对移动终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The mobile terminal 400 may include components such as a camera module 401, a memory 402, a processor 403, and the like. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 8 does not constitute a limitation on the mobile terminal, and may include more or less components than shown, or combine some components, or arrange different components.

摄像模组401可以包括单摄像模组和双摄像模组。The camera module 401 may include a single camera module and a dual camera module.

存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器403通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。Memory 402 may be used to store applications and data. The application program stored in the memory 402 contains executable code. Applications can be composed of various functional modules. The processor 403 executes various functional applications and data processing by executing the application programs stored in the memory 402 .

处理器403是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。The processor 403 is the control center of the mobile terminal, uses various interfaces and lines to connect various parts of the entire mobile terminal, and executes the mobile terminal by running or executing the application program stored in the memory 402 and calling the data stored in the memory 402. various functions and processing data, so as to monitor the mobile terminal as a whole.

在本实施例中,移动终端中的处理器403会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器402中,并由处理器403来运行存储在存储器402中的应用程序,从而实现步骤:In this embodiment, the processor 403 in the mobile terminal loads the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 403 executes the executable code stored in the memory The application in 402, thus implementing the steps:

获取多帧包含人脸的待处理图像;对所述待处理图像中每一用户的人脸图像进行表情识别,得到每一用户的表情识别结果;根据所述每一用户的表情识别结果,从所述待处理图像中选取基础图像。Acquiring multiple frames of images to be processed that include faces; performing facial expression recognition on the facial images of each user in the images to be processed, to obtain an expression recognition result for each user; according to the facial expression recognition results for each user, from A base image is selected from the to-be-processed images.

本发明实施例还提供一种电子设备。上述电子设备中包括图像处理电路,图像处理电路可以利用硬件和/或软件组件实现,可包括定义ISP(Image Signal Processing,图像信号处理)管线的各种处理单元。图9为一个实施例中图像处理电路的结构示意图。如图9所示,为便于说明,仅示出与本发明实施例相关的图像处理技术的各个方面。Embodiments of the present invention also provide an electronic device. The above electronic device includes an image processing circuit, and the image processing circuit may be implemented by hardware and/or software components, and may include various processing units that define an ISP (Image Signal Processing, image signal processing) pipeline. FIG. 9 is a schematic structural diagram of an image processing circuit in one embodiment. As shown in FIG. 9 , for the convenience of description, only various aspects of the image processing technology related to the embodiments of the present invention are shown.

如图9所示,图像处理电路包括图像信号处理器540和控制逻辑器550。成像设备510捕捉的图像数据首先由图像信号处理器540处理,图像信号处理器540对图像数据进行分析以捕捉可用于确定和/或成像设备510的一个或多个控制参数的图像统计信息。成像设备510可包括具有一个或多个透镜511和图像传感器512的照相机。图像传感器512可包括色彩滤镜阵列(如Bayer滤镜),图像传感器512可获取用图像传感器512的每个成像像素捕捉的光强度和波长信息,并提供可由图像信号处理器540处理的一组原始图像数据。传感器520可基于传感器520接口类型把原始图像数据提供给图像信号处理器540。传感器520接口可以利用SMIA(Standard Mobile Imaging Architecture,标准移动成像架构)接口、其它串行或并行照相机接口或上述接口的组合。As shown in FIG. 9 , the image processing circuit includes an image signal processor 540 and a control logic 550 . Image data captured by imaging device 510 is first processed by image signal processor 540 , which analyzes the image data to capture image statistics that can be used to determine and/or control one or more parameters of imaging device 510 . Imaging device 510 may include a camera having one or more lenses 511 and an image sensor 512 . Image sensor 512 may include an array of color filters (eg, Bayer filters), image sensor 512 may acquire light intensity and wavelength information captured with each imaging pixel of image sensor 512 and provide a set of raw image data. The sensor 520 may provide raw image data to the image signal processor 540 based on the sensor 520 interface type. The sensor 520 interface may utilize a SMIA (Standard Mobile Imaging Architecture) interface, other serial or parallel camera interfaces, or a combination of the above interfaces.

图像信号处理器540按多种格式逐个像素地处理原始图像数据。例如,每个图像像素可具有8、10、12或14比特的位深度,图像信号处理器540可对原始图像数据进行一个或多个图像处理操作、收集关于图像数据的统计信息。其中,图像处理操作可按相同或不同的位深度精度进行。The image signal processor 540 processes raw image data pixel by pixel in various formats. For example, each image pixel may have a bit depth of 8, 10, 12, or 14 bits, and the image signal processor 540 may perform one or more image processing operations on the raw image data, collecting statistical information about the image data. Among them, the image processing operations can be performed with the same or different bit depth precision.

图像信号处理器540还可从图像存储器530接收像素数据。例如,从传感器520接口将原始像素数据发送给图像存储器530,图像存储器530中的原始像素数据再提供给图像信号处理器540以供处理。图像存储器530可为存储器装置的一部分、存储设备、或电子设备内的独立的专用存储器,并可包括DMA(Direct Memory Access,直接直接存储器存取)特征。Image signal processor 540 may also receive pixel data from image memory 530 . For example, the raw pixel data is sent from the sensor 520 interface to the image memory 530, and the raw pixel data in the image memory 530 is provided to the image signal processor 540 for processing. The image memory 530 may be a part of a memory device, a storage device, or an independent dedicated memory in an electronic device, and may include a DMA (Direct Memory Access, direct memory access) feature.

当接收到来自传感器520接口或来自图像存储器530的原始图像数据时,图像信号处理器540可进行一个或多个图像处理操作,如时域滤波。处理后的图像数据可发送给图像存储器530,以便在被显示之前进行另外的处理。图像信号处理器540从图像存储器530接收处理数据,并对所述处理数据进行原始域中以及RGB和YCbCr颜色空间中的图像数据处理。处理后的图像数据可输出给显示器570,以供用户观看和/或由图形引擎或GPU(GraphicsProcessing Unit,图形处理器)进一步处理。此外,图像信号处理器540的输出还可发送给图像存储器530,且显示器570可从图像存储器530读取图像数据。在一种实施方式中,图像存储器530可被配置为实现一个或多个帧缓冲器。此外,图像信号处理器540的输出可发送给编码器/解码器560,以便编码/解码图像数据。编码的图像数据可被保存,并在显示于显示器570设备上之前解压缩。编码器/解码器560可由CPU或GPU或协处理器实现。When receiving raw image data from the sensor 520 interface or from the image memory 530, the image signal processor 540 may perform one or more image processing operations, such as temporal filtering. The processed image data may be sent to image memory 530 for additional processing before being displayed. The image signal processor 540 receives processed data from the image memory 530 and performs image data processing in the original domain and in the RGB and YCbCr color spaces on the processed data. The processed image data may be output to the display 570 for viewing by a user and/or further processed by a graphics engine or a GPU (Graphics Processing Unit, graphics processor). In addition, the output of the image signal processor 540 may also be sent to the image memory 530 , and the display 570 may read image data from the image memory 530 . In one embodiment, image memory 530 may be configured to implement one or more frame buffers. Also, the output of the image signal processor 540 may be sent to the encoder/decoder 560 for encoding/decoding the image data. The encoded image data may be saved and decompressed prior to display on the display 570 device. The encoder/decoder 560 may be implemented by a CPU or GPU or a coprocessor.

图像信号处理器540确定的统计数据可发送给控制逻辑器550。例如,统计数据可包括自动曝光、自动白平衡、自动聚焦、闪烁检测、黑电平补偿、透镜511阴影校正等图像传感器512统计信息。控制逻辑器550可包括执行一个或多个例程(如固件)的处理器和/或微控制器,一个或多个例程可根据接收的统计数据,确定成像设备510的控制参数以及的控制参数。例如,控制参数可包括传感器520控制参数(例如增益、曝光控制的积分时间)、照相机闪光控制参数、透镜511控制参数(例如聚焦或变焦用焦距)、或这些参数的组合。ISP控制参数可包括用于自动白平衡和颜色调整(例如,在RGB处理期间)的增益水平和色彩校正矩阵,以及透镜511阴影校正参数。Statistics determined by image signal processor 540 may be sent to control logic 550 . For example, the statistics may include image sensor 512 statistics such as auto exposure, auto white balance, auto focus, flicker detection, black level compensation, lens 511 shading correction, and the like. The control logic 550 may include a processor and/or microcontroller executing one or more routines (eg, firmware) that may determine control parameters of the imaging device 510 and control of the imaging device 510 based on the received statistics parameter. For example, control parameters may include sensor 520 control parameters (eg, gain, integration time for exposure control), camera flash control parameters, lens 511 control parameters (eg, focal length for focus or zoom), or a combination of these parameters. ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (eg, during RGB processing), and lens 511 shading correction parameters.

以下为运用图9中图像处理技术实现本实施例提供的图像的处理方法的步骤:The following are the steps of implementing the image processing method provided by this embodiment by using the image processing technology in FIG. 9 :

获取多帧包含人脸的待处理图像;对所述待处理图像中每一用户的人脸图像进行表情识别,得到每一用户的表情识别结果;根据所述每一用户的表情识别结果,从所述待处理图像中选取基础图像。Acquiring multiple frames of images to be processed that include faces; performing facial expression recognition on the facial images of each user in the images to be processed, to obtain an expression recognition result for each user; according to the facial expression recognition results for each user, from A base image is selected from the to-be-processed images.

在一种实施方式中,电子设备执行所述根据所述每一用户的表情识别结果从所述待处理图像中选取基础图像的步骤时,可以执行:若根据每一用户的表情识别结果确定出所有用户在所述待处理图像中的表情未发生变化,则获取每一所述待处理图像中每一用户的眼部值,所述眼部值为用于表示眼部大小的数值;根据每一所述待处理图像中每一用户的眼部值,从所述待处理图像中选取基础图像。In one embodiment, when the electronic device performs the step of selecting a basic image from the to-be-processed image according to the expression recognition result of each user, it may perform: if it is determined according to the expression recognition result of each user The expressions of all users in the images to be processed have not changed, then the eye value of each user in each of the images to be processed is obtained, and the eye value is a numerical value used to indicate the size of the eye; An eye value of each user in the to-be-processed image, and a base image is selected from the to-be-processed image.

在一种实施方式中,电子设备执行所述根据每一所述待处理图像中每一用户的眼部值从所述待处理图像中选取基础图像的步骤时,可以执行:根据每一所述待处理图像中每一用户的眼部值,确定出每一用户的目标人脸图像,所述目标人脸图像为用户的眼部值中的最大值所对应的图像;将包含目标人脸图像个数最多的待处理图像选取为基础图像。In one embodiment, when the electronic device performs the step of selecting a basic image from the images to be processed according to the eye value of each user in each of the images to be processed, the electronic device may perform: according to each of the images to be processed The eye value of each user in the image to be processed, and the target face image of each user is determined, and the target face image is the image corresponding to the maximum value of the user's eye value; the target face image will be included The image to be processed with the largest number is selected as the base image.

在一种实施方式中,电子设备执行所述根据所述每一用户的表情识别结果从所述待处理图像中选取基础图像的步骤时,可以执行:若根据每一用户的表情识别结果确定出所述待处理图像中存在表情发生变化的用户的人脸图像,则将所述表情发生变化的用户确定为目标用户;对于每一所述目标用户,将表情符合预设条件的人脸图像确定为所述目标用户的目标人脸图像;对于每一非目标用户,获取每一所述待处理图像中每一非目标用户的眼部值,所述眼部值为用于表示眼部大小的数值,将眼部值中的最大值所对应的图像确定为非目标用户的目标人脸图像;将包含目标人脸图像个数最多的待处理图像选取为基础图像。In one embodiment, when the electronic device performs the step of selecting a basic image from the to-be-processed image according to the expression recognition result of each user, it may perform: if it is determined according to the expression recognition result of each user If there is a face image of a user whose expression has changed in the image to be processed, the user whose expression has changed is determined as a target user; for each target user, a face image whose expression meets preset conditions is determined. is the target face image of the target user; for each non-target user, obtain the eye value of each non-target user in each of the to-be-processed images, and the eye value is used to represent the size of the eye. value, the image corresponding to the maximum value of the eye value is determined as the target face image of the non-target user; the to-be-processed image containing the largest number of target face images is selected as the base image.

在一种实施方式中,在所述获取多帧包含人脸的待处理图像的步骤之前,电子设备还可以执行:当采集包含人脸的图像时,根据采集到的至少两帧图像确定出目标帧数;In one embodiment, before the step of acquiring multiple frames of images to be processed containing human faces, the electronic device may further perform: when acquiring images containing human faces, determine the target according to the at least two frames of the acquired images number of frames;

那么,电子设备执行所述获取多帧包含人脸的待处理图像的步骤时,可以执行:从采集到的多帧图像中,获取数量为所述目标帧数的待处理图像;Then, when the electronic device performs the step of acquiring multiple frames of images to be processed that include a human face, it may perform: from the multiple frames of images collected, the number of images to be processed is the target number of frames acquired;

在所述从所述待处理图像中选取基础图像的步骤之后,电子设别还可以执行:从基础图像中确定出待替换人脸图像,所述待替换人脸图像为用户的非目标人脸图像;从所述待处理图像中,获取用于替换每一待替换人脸图像的目标人脸图像,每一待替换人脸图像及其对应的目标人脸图像为相同用户的人脸图像;使用对应的目标人脸图像对每一待替换人脸图像进行图像替换处理,得到经过图像替换处理的基础图像。After the step of selecting a base image from the image to be processed, the electronic identification can also perform: determining a face image to be replaced from the base image, and the face image to be replaced is a non-target face of the user Image; From the described image to be processed, obtain the target face image for replacing each face image to be replaced, and each face image to be replaced and its corresponding target face image are the face images of the same user; Perform image replacement processing on each face image to be replaced by using the corresponding target face image to obtain a basic image that has undergone image replacement processing.

在一种实施方式中,在所述得到经过图像替换处理的基础图像的步骤之后,电子设备还可以执行:根据所述待处理图像,对所述经过图像替换处理的基础图像进行图像降噪处理。In an embodiment, after the step of obtaining the basic image subjected to the image replacement processing, the electronic device may further perform: according to the to-be-processed image, perform image noise reduction processing on the basic image subjected to the image replacement processing .

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对图像的选取方法的详细描述,此处不再赘述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the detailed description of the image selection method above, which will not be repeated here.

本申请实施例提供的所述图像的选取装置与上文实施例中的图像的选取方法属于同一构思,在所述图像的选取装置上可以运行所述图像的选取方法实施例中提供的任一方法,其具体实现过程详见所述图像的选取方法实施例,此处不再赘述。The image selection apparatus provided in the embodiment of the present application and the image selection method in the above embodiments belong to the same concept, and any of the image selection method provided in the image selection apparatus can be executed on the image selection apparatus The specific implementation process is described in the image selection method embodiment, which will not be repeated here.

需要说明的是,对本申请实施例所述图像的选取方法而言,本领域普通技术人员可以理解实现本申请实施例所述图像的选取方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述图像的选取方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read OnlyMemory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the image selection method described in the embodiments of the present application, those of ordinary skill in the art can understand that all or part of the process for implementing the image selection method described in the embodiments of the present application can be controlled by a computer program. The computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process can include, for example, the implementation of the image selection method. example process. The storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), and the like.

对本申请实施例的所述图像的选取装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the image selection apparatus of the embodiments of the present application, each functional module may be integrated in one processing chip, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .

以上对本申请实施例所提供的一种图像的选取方法、装置、存储介质以及电子设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method, device, storage medium, and electronic device for selecting an image provided by the embodiments of the present application have been described in detail above. The principles and implementations of the present invention are described with specific examples in this paper. It is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific embodiments and application scope. The contents of the description should not be construed as limiting the present invention.

Claims (6)

1.一种图像的选取方法,其特征在于,包括:1. the selection method of an image, is characterized in that, comprises: 当采集包含人脸的图像时,根据采集到的至少两帧人脸图像中的人脸是否发生位移以及环境光亮度,确定目标帧数;When collecting an image containing a face, determine the target frame number according to whether the face in the collected at least two frames of the face image is displaced and the brightness of the ambient light; 从采集到的多帧包含人脸的图像中,获取数量为所述目标帧数的待处理图像;From the collected multiple frames of images containing faces, obtain images to be processed whose number is the target number of frames; 对所述待处理图像中每一用户的人脸图像进行表情识别,得到每一用户的表情识别结果;Perform facial expression recognition on the face image of each user in the image to be processed to obtain the facial expression recognition result of each user; 若根据每一用户的表情识别结果确定出所有用户在所述待处理图像中的表情未发生变化,则获取每一所述待处理图像中每一用户的眼部值,所述眼部值为用于表示眼部大小的数值;根据每一所述待处理图像中每一用户的眼部值,确定出每一用户的目标人脸图像,所述目标人脸图像为用户的眼部值中的最大值所对应的图像;将包含目标人脸图像个数最多的待处理图像选取为基础图像;If it is determined that the expressions of all users in the to-be-processed image have not changed according to the expression recognition result of each user, the eye value of each user in each of the to-be-processed images is obtained, and the eye value is A numerical value used to represent the size of the eye; according to the eye value of each user in each of the images to be processed, determine the target face image of each user, and the target face image is the value of the user's eye. The image corresponding to the maximum value of ; the to-be-processed image containing the largest number of target face images is selected as the base image; 或者,若根据每一用户的表情识别结果确定出所述待处理图像中存在表情发生变化的用户的人脸图像,则将所述表情发生变化的用户确定为目标用户;对于每一所述目标用户,将表情符合预设条件的人脸图像确定为所述目标用户的目标人脸图像;对于每一非目标用户,获取每一所述待处理图像中每一非目标用户的眼部值,所述眼部值为用于表示眼部大小的数值,将眼部值中的最大值所对应的图像确定为非目标用户的目标人脸图像;将包含目标人脸图像个数最多的待处理图像选取为基础图像。Or, if it is determined that there is a face image of a user whose expression changes in the to-be-processed image according to the expression recognition result of each user, the user whose expression changes are determined as the target user; for each target user The user determines the face image whose expression meets the preset conditions as the target face image of the target user; for each non-target user, obtains the eye value of each non-target user in each of the images to be processed, The eye value is a numerical value used to represent the size of the eye, and the image corresponding to the maximum value in the eye value is determined as the target face image of the non-target user; The image is selected as the base image. 2.根据权利要求1所述的图像的选取方法,其特征在于,在所述获取多帧包含人脸的待处理图像的步骤之前,还包括:2. The method for selecting an image according to claim 1, characterized in that, before the step of obtaining the multi-frame images to be processed comprising a human face, further comprising: 当采集包含人脸的图像时,根据采集到的至少两帧图像确定出目标帧数;When collecting an image containing a human face, determine the target frame number according to the at least two frames of images collected; 所述获取多帧包含人脸的待处理图像的步骤,包括:从采集到的多帧图像中,获取数量为所述目标帧数的待处理图像;The step of obtaining multiple frames of images to be processed including faces includes: from the collected multiple frames of images, obtaining images to be processed whose number is the target number of frames; 在从所述待处理图像中选取基础图像的步骤之后,还包括:After the step of selecting a base image from the to-be-processed image, the method further includes: 从基础图像中确定出待替换人脸图像,所述待替换人脸图像为用户的非目标人脸图像;Determine the face image to be replaced from the base image, and the face image to be replaced is the non-target face image of the user; 从所述待处理图像中,获取用于替换每一待替换人脸图像的目标人脸图像,每一待替换人脸图像及其对应的目标人脸图像为相同用户的人脸图像;From the image to be processed, obtain a target face image for replacing each face image to be replaced, and each face image to be replaced and its corresponding target face image are the face images of the same user; 使用对应的目标人脸图像对每一待替换人脸图像进行图像替换处理,得到经过图像替换处理的基础图像。Perform image replacement processing on each face image to be replaced by using the corresponding target face image to obtain a basic image that has undergone image replacement processing. 3.根据权利要求2所述的图像的选取方法,其特征在于,在所述得到经过图像替换处理的基础图像的步骤之后,还包括:3. The selection method of image according to claim 2, is characterized in that, after the described step of obtaining the basic image processed through image replacement, also comprises: 根据所述待处理图像,对所述经过图像替换处理的基础图像进行图像降噪处理。According to the to-be-processed image, image noise reduction processing is performed on the basic image that has undergone image replacement processing. 4.一种图像的选取装置,其特征在于,包括:4. an image selection device, is characterized in that, comprises: 获取模块,用于当采集包含人脸的图像时,根据采集到的至少两帧人脸图像中的人脸是否发生位移以及环境光亮度,确定目标帧数;从采集到的多帧包含人脸的图像中,获取数量为所述目标帧数的待处理图像;The acquisition module is used to determine the number of target frames according to whether the faces in the collected at least two frames of face images are displaced and the brightness of the ambient light when collecting images containing faces; In the image of , obtain the to-be-processed image whose quantity is the target frame number; 识别模块,用于对所述待处理图像中每一用户的人脸图像进行表情识别,得到每一用户的表情识别结果;A recognition module, for performing facial expression recognition on the face image of each user in the image to be processed, to obtain the facial expression recognition result of each user; 选取模块,用于若根据每一用户的表情识别结果确定出所有用户在所述待处理图像中的表情未发生变化,则获取每一所述待处理图像中每一用户的眼部值,所述眼部值为用于表示眼部大小的数值;根据每一所述待处理图像中每一用户的眼部值,确定出每一用户的目标人脸图像,所述目标人脸图像为用户的眼部值中的最大值所对应的图像;将包含目标人脸图像个数最多的待处理图像选取为基础图像;或者,若根据每一用户的表情识别结果确定出所述待处理图像中存在表情发生变化的用户的人脸图像,则将所述表情发生变化的用户确定为目标用户;对于每一所述目标用户,将表情符合预设条件的人脸图像确定为所述目标用户的目标人脸图像;对于每一非目标用户,获取每一所述待处理图像中每一非目标用户的眼部值,所述眼部值为用于表示眼部大小的数值,将眼部值中的最大值所对应的图像确定为非目标用户的目标人脸图像;将包含目标人脸图像个数最多的待处理图像选取为基础图像。The selection module is used to obtain the eye value of each user in each of the to-be-processed images if it is determined that the expressions of all users in the to-be-processed image have not changed according to the expression recognition result of each user, and the The eye value is a numerical value used to represent the size of the eye; according to the eye value of each user in each of the to-be-processed images, the target face image of each user is determined, and the target face image is the user The image corresponding to the maximum value in the eye value; the to-be-processed image containing the largest number of target face images is selected as the basic image; If there is a face image of the user whose expression changes, the user whose expression changes is determined as the target user; for each target user, the face image whose expression meets the preset conditions is determined as the target user's face image. target face image; for each non-target user, obtain the eye value of each non-target user in each of the to-be-processed images, the eye value is a numerical value used to represent the size of the eye, and the eye value is The image corresponding to the maximum value in the target face image is determined as the target face image of the non-target user; the to-be-processed image containing the largest number of target face images is selected as the basic image. 5.一种存储介质,其上存储有计算机程序,其特征在于,当所述计算机程序在计算机上执行时,使得所述计算机执行如权利要求1至3中任一项所述的方法。5. A storage medium on which a computer program is stored, characterized in that, when the computer program is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 3. 6.一种电子设备,包括存储器,处理器,其特征在于,所述处理器通过调用所述存储器中存储的计算机程序,用于执行如权利要求1至3中任一项所述的方法。6. An electronic device, comprising a memory and a processor, wherein the processor is configured to execute the method according to any one of claims 1 to 3 by invoking a computer program stored in the memory.
CN201810277025.4A 2018-03-30 2018-03-30 Image selection method and device, storage medium and electronic equipment Active CN108574803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810277025.4A CN108574803B (en) 2018-03-30 2018-03-30 Image selection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810277025.4A CN108574803B (en) 2018-03-30 2018-03-30 Image selection method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108574803A CN108574803A (en) 2018-09-25
CN108574803B true CN108574803B (en) 2020-01-14

Family

ID=63574060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810277025.4A Active CN108574803B (en) 2018-03-30 2018-03-30 Image selection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108574803B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111259689B (en) * 2018-11-30 2023-04-25 百度在线网络技术(北京)有限公司 Method and device for transmitting information
CN111062279B (en) * 2019-12-04 2023-06-06 深圳先进技术研究院 Photo processing method and photo processing device
CN111263073B (en) * 2020-02-27 2021-11-09 维沃移动通信有限公司 Image processing method and electronic device
CN112036311A (en) * 2020-08-31 2020-12-04 北京字节跳动网络技术有限公司 Image processing method and device based on eye state detection and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4720810B2 (en) * 2007-09-28 2011-07-13 富士フイルム株式会社 Image processing apparatus, imaging apparatus, image processing method, and image processing program
TWI447658B (en) * 2010-03-24 2014-08-01 Ind Tech Res Inst Facial expression capturing method and apparatus therewith
CN104899544B (en) * 2014-03-04 2019-04-12 佳能株式会社 Image processing apparatus and image processing method
CN104243818B (en) * 2014-08-29 2018-02-23 小米科技有限责任公司 Image processing method, device and equipment
CN105635567A (en) * 2015-12-24 2016-06-01 小米科技有限责任公司 Shooting method and device
CN107566748A (en) * 2017-09-22 2018-01-09 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium
CN107734253B (en) * 2017-10-13 2020-01-10 Oppo广东移动通信有限公司 Image processing method, image processing device, mobile terminal and computer-readable storage medium
CN107817939B (en) * 2017-10-27 2023-02-07 维沃移动通信有限公司 Image processing method and mobile terminal

Also Published As

Publication number Publication date
CN108574803A (en) 2018-09-25

Similar Documents

Publication Publication Date Title
CN109040609B (en) Exposure control method, exposure control device, electronic equipment and computer-readable storage medium
CN108520493A (en) Image replacement processing method, device, storage medium and electronic equipment
CN108259770B (en) Image processing method, image processing device, storage medium and electronic equipment
CN109068058B (en) Shooting control method, device and electronic device in super night scene mode
CN110166708B (en) Night scene image processing method and device, electronic equipment and storage medium
CN110191291B (en) Image processing method and device based on multi-frame images
WO2020207261A1 (en) Image processing method and apparatus based on multiple frames of images, and electronic device
CN108401110B (en) Image acquisition method and device, storage medium and electronic equipment
CN108574803B (en) Image selection method and device, storage medium and electronic equipment
CN108111749A (en) Image processing method and device
CN109151333B (en) Exposure control method, exposure control device and electronic equipment
CN110264420B (en) Image processing method and device based on multi-frame images
CN113012081A (en) Image processing method, device and electronic system
CN111182208B (en) Photographing method and device, storage medium and electronic equipment
CN110717871A (en) Image processing method, image processing device, storage medium and electronic equipment
CN108419012A (en) Photographing method, device, storage medium and electronic equipment
CN107743200A (en) Method, device, computer-readable storage medium and electronic device for taking pictures
CN108492266B (en) Image processing method, device, storage medium and electronic device
CN108052883B (en) User photographing method, device and device
CN108513068B (en) Image selection method, device, storage medium and electronic device
CN108401109B (en) Image acquisition method and device, storage medium and electronic equipment
CN108462831B (en) Image processing method, device, storage medium and electronic device
CN111277752A (en) Prompting method and device, storage medium and electronic equipment
CN108282616B (en) Image processing method and device, storage medium and electronic equipment
CN108520036B (en) Image selection method and device, storage medium and electronic equipment

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant