Facial expression capturing method, equipment and device, computer equipment and storage medium
By performing anti-distortion correction and fusion processing on the eye and mouth images collected by the VR helmet wearer, the facial expression collection problem caused by VR helmet occlusion is solved, the user's emotions are accurately expressed, and the naturalness of expression capture is improved. and accuracy.
Patent Information
- Application Number
- CN202410761863.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-10
AI Technical Summary
When existing VR helmets are worn, facial expressions cannot be accurately captured, especially due to the shadows and insufficient light caused by the helmet's occlusion, which results in the external camera being unable to effectively capture the user's facial expressions, and thus unable to accurately express the user's emotions.
By acquiring the eye and mouth images, perform anti-distortion correction and anti-deformation processing, construct a mask image, and fuse the target eye and mouth images to generate a facial expression image, and use the trained coloring network model to perform infrared eye recognition. Images are color restored to ensure image quality and naturalness.
It achieves complete facial expression collection of VR helmet wearers, accurately expresses user emotions, significantly improves the quality of eye and mouth images, reduces image distortion caused by the optical characteristics of the lens, and ensures the naturalness and accuracy of expression capture.
Smart Images

Figure CN118629077A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of image processing, and in particular to a facial expression capturing method, device, apparatus, computer equipment and storage medium. Background Art
[0002] With the development of virtual reality technology (VR), users can freely socialize, attend classes, create art, play games, perform for a large number of players, or build a new virtual world in virtual social platforms by wearing VR helmets. In the virtual world, accurate transmission of facial expressions can better express the user's emotions and enhance the sense of presence.
[0003] In the prior art, when a user wears a VR helmet, most of the face is covered by the helmet, causing the eyes and eyebrows to be invisible from the outside of the helmet. The light in the mouth area is very dim, and there is a shadow caused by the helmet, which makes it impossible for the external camera to capture the user's facial expressions, and thus unable to accurately express the user's emotions. Summary of the invention
[0004] In view of this, the present disclosure proposes a facial expression capture method, device, apparatus, computer equipment and storage medium to solve the problem in the related art that the user's emotions cannot be accurately expressed due to the inability to collect the user's facial expressions.
[0005] The first aspect of the present disclosure provides a method for capturing facial expressions, the method comprising:
[0006] Acquire eye images and mouth images;
[0007] Performing anti-distortion correction on the eye image and the mouth image respectively to obtain an orthodontic eye image and an orthodontic mouth image;
[0008] Respectively performing inverse deformation on the orthodontic eye image and the orthodontic mouth image to obtain a target eye image and a target mouth image;
[0009] Constructing a mask image based on a preset facial image, the target eye image, and the target mouth image;
[0010] Based on the mask image, the target eye image and the target mouth image are fused to obtain a facial expression image.
[0011] In the disclosed embodiment, the target eye image and the target mouth image are fused by masking the image to obtain a facial expression image, which can capture the complete facial expression of the VR helmet wearer and accurately express the user's emotions.
[0012] In the embodiment of the present disclosure, the eye image includes a first eye image and a second eye image.
[0013] In the embodiment of the present disclosure, before respectively performing anti-distortion correction on the eye image and the mouth image, the method further includes:
[0014] The collected infrared eye image is colored by a trained coloring network model to obtain the eye image; the coloring network model is trained based on single-channel eye images under multiple different facial expressions.
[0015] The disclosed embodiment uses a trained coloring network model to colorize the collected eye infrared images, thereby achieving the purpose of restoring the infrared images to color images.
[0016] In an embodiment of the present disclosure, anti-distortion correction is performed on the eye image, including:
[0017] Determine the camera intrinsic parameters through a preset calibration plate, and determine the distortion algorithm corresponding to the camera based on the camera intrinsic parameters; the camera corresponding to the camera intrinsic parameters is the camera that collects the eye image;
[0018] Calculating the theoretical position of each pixel on the eye image in an undistorted state according to the distortion algorithm;
[0019] Based on the theoretical position of each pixel on the eye image and the camera internal parameters, calculating the orthogonal position of each pixel;
[0020] Each pixel on the eye image is mapped to the position of the corresponding pixel after orthodontic treatment to obtain the orthodontic eye image.
[0021] The embodiment of the present disclosure calculates the orthogonal position of each pixel on the eye image through the theoretical position of each pixel on the eye image and the camera internal parameters; and maps each pixel on the eye image to the orthogonal position of the corresponding pixel to obtain the orthogonal eye image, which can significantly improve the quality of the eye image and reduce the image distortion caused by the optical characteristics of the lens.
[0022] In the disclosed embodiment, the orthodontic eye image is subjected to reverse deformation, including:
[0023] Feature points are marked on a preset full-face image and the orthodontic eye image respectively to obtain a first feature group corresponding to the preset full-face image and a second feature group corresponding to the orthodontic eye image; a plurality of first feature points in the first feature group and a plurality of second feature points in the second feature group have a one-to-one correspondence;
[0024] Based on the one-to-one correspondence between the multiple first feature points and the multiple second feature points, each second feature point in the orthodontic eye image is transformed in position to obtain a target eye image.
[0025] The disclosed embodiment transforms the position of each second feature point in the orthodontic eye image through a one-to-one correspondence between multiple first feature points and multiple second feature points to obtain a target eye image. Through precise matching and transformation of feature points, the obtained eye image can be more naturally integrated into the full-face image, avoiding image distortion or unnaturalness caused by inaccurate position.
[0026] In the disclosed embodiment, the step of fusing the target eye image and the target mouth image based on the mask image to obtain a facial expression image includes:
[0027] The target eye image and the target mouth image are respectively integrated into corresponding contour areas in the mask image to obtain the facial expression image.
[0028] An embodiment of a second aspect of the present disclosure provides a facial expression capturing device, the device comprising a setting control unit, an eye region acquisition device, and a mouth region acquisition device;
[0029] The eye region acquisition device includes a first camera, an infrared fill light, and a first connecting component for connecting the first camera and the infrared fill light;
[0030] The mouth area acquisition device includes a second camera, and a second connecting component for connecting the second camera and an external connecting base of the VR helmet;
[0031] The control unit is used to acquire the eye image through the eye area acquisition device, acquire the mouth image through the mouth area acquisition device, and execute the specific execution steps of the facial expression capture method described in the first aspect through the eye image and the mouth image.
[0032] In the disclosed embodiment, the infrared fill light is arranged in a ring shape on the lens connecting base of the VR helmet.
[0033] An embodiment of a third aspect of the present disclosure provides a facial expression capturing device, the device comprising:
[0034] An image acquisition module, used for acquiring eye images and mouth images;
[0035] An anti-distortion correction module, used to perform anti-distortion correction on the eye image and the mouth image respectively to obtain an orthodontic eye image and an orthodontic mouth image;
[0036] An inverse deformation module, used for respectively inversely deforming the orthodontic eye image and the orthodontic mouth image to obtain a target eye image and a target mouth image;
[0037] A mask image construction module, used to construct a mask image based on a preset facial image, the target eye image and the target mouth image;
[0038] The image fusion module is used to fuse the target eye image and the target mouth image based on the mask image to obtain a facial expression image.
[0039] An embodiment of the fourth aspect of the present disclosure provides a computer device, which includes a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the facial expression capture method described in the first aspect by executing the computer instructions.
[0040] An embodiment of the fifth aspect of the present disclosure provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the facial expression capture method described in the first aspect.
[0041] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will become apparent from the following description or be learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] By reading the detailed description of the preferred embodiment below, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used for the purpose of illustrating the preferred embodiment and are not considered to be limitations of the present disclosure. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings.
[0043] In the attached picture:
[0044] Figure 1 A schematic flow chart of a facial expression capturing method provided by an embodiment of the present disclosure is shown;
[0045] Figure 2 A schematic flow chart of another facial expression capturing method provided by an embodiment of the present disclosure is shown;
[0046] Figure 3 A schematic flow chart of another facial expression capturing method provided by an embodiment of the present disclosure is shown;
[0047] Figure 4 A schematic structural diagram of a facial expression capturing device provided by an embodiment of the present disclosure is shown;
[0048] Figure 5 A schematic structural diagram of another facial expression capturing device provided by an embodiment of the present disclosure is shown;
[0049] Figure 6 A schematic structural diagram of another facial expression capturing device provided by an embodiment of the present disclosure is shown;
[0050] Figure 7 A schematic diagram of the structure of a facial expression capturing device provided by an embodiment of the present disclosure is shown;
[0051] Figure 8 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown;
[0052] Fig. 9 A schematic diagram of a storage medium provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0053] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0054] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in the present disclosure should have the common meanings understood by those skilled in the art to which the present disclosure belongs.
[0055] The following describes the technical scenarios involved in the embodiments of the present disclosure.
[0056] Existing VR helmets, such as the HTC PRO EYE external head-mounted device, are equipped with eye tracking components that can be used with software to detect 2D feature points of the eyes, so that the wearer's eyeballs and eyelids can be captured in 2D feature points after wearing the VR helmet. When expressing emotions such as fear and anger in the virtual character, the frowning and raising of the eyebrows are also key parts for capturing the expressions of the VR helmet wearer. For example: in the upper half of the face, the eyes and eyebrows need to move together to express eye emotions, and only capturing the expressions of the eyeballs and eyelids cannot fully express the wearer's actual emotions.
[0057] For the lower half of the face, since the VR helmet covers most of the face, the traditional facial capture helmet cannot be worn at the same time, and most facial capture algorithms cannot capture mouth expressions separately.
[0058] For facial capture, most of the existing facial capture algorithms are mainly based on the coordinate transformation of the 2D feature points of the face, driving the facial capture method of the virtual face model's expression and movement, or based on the camera to collect facial images, and input the collected images into the artificial intelligence facial capture algorithm to predict the expression, thereby driving the virtual face model to complete the expression and movement. Most of these algorithms are based on full-face images as input. When faced with images that only show part of the face, the facial capture algorithm basically fails to detect the face or the facial capture effect is inaccurate. Therefore, even if you simply collect mouth images, it is difficult to capture mouth movements through existing facial capture algorithms.
[0059] To this end, the embodiments of the present disclosure propose a facial expression capture method that can capture complete facial expression images, thereby accurately expressing the user's emotions.
[0060] According to an embodiment of the present disclosure, a facial expression capture method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0061] In this embodiment, a facial expression capturing method is provided, which can be used in a control unit of a facial expression capturing device. Figure 1 is a flowchart of a facial expression capturing method according to an embodiment of the present disclosure, such as Figure 1 As shown, the process includes the following steps:
[0062] Step S101, acquiring eye images and mouth images.
[0063] In this step, the eye image of the VR helmet wearer can be collected by the eye area collection device of the facial expression capture device, and the mouth image of the VR helmet wearer can be collected by the mouth area collection device of the facial expression capture device.
[0064] In this step, the eye image includes a first eye image and a second eye image, for example: Figure 2 The left eyebrow image and the right eyebrow image in the embodiment of the present invention are as follows; wherein each eye image includes corresponding eye features and eyebrow features.
[0065] In some specific disclosed embodiments, before step S102, the method further includes:
[0066] The collected eye infrared image is colored by using the trained coloring network model to obtain the eye image.
[0067] In the disclosed embodiment, the eye image is an infrared image of the eye, and the mouth image is a color image. Therefore, a trained colorization network model is required to colorize the collected infrared image of the eye.
[0068] In the disclosed embodiment, the coloring network model is trained based on single-channel eye images under multiple different facial expressions. The specific training process is as follows:
[0069] After experimental testing, it was found that among the three RGB channels, the R channel is closer to the color of the infrared image collected by the infrared camera. Therefore, the present invention converts the color image into a single-channel image from the image extracted by rendering to simulate the infrared camera collecting the infrared image of the eye. The present invention obtains multiple color images and corresponding red single-channel images by rendering as training data, and designs and trains the colorization network model of the infrared image of the eye based on the deep learning method to restore the infrared image to a color image. Figure 3 As shown:
[0070] Step 1, simulate rendering in a virtual environment to obtain a rendered infrared channel image of the eyebrow region and a rendered color image of the eyebrow region. Specifically, a three-dimensional animation production software (such as Unreal Engine 4) can be used. In a virtual environment, a virtual camera for collecting images of the eyebrow part of the face is placed inside the helmet. The internal and external parameters of the camera are the same as those of the camera in the real scene. Through random facial expression movements, the images of the eyebrow part of the face under different expressions collected by the virtual camera (i.e., the rendered infrared channel image of the eyebrow region and the rendered color image of the eyebrow region) can be rendered and extracted.
[0071] Step 2: Perform data enhancement processing on the rendered infrared channel image of the eyebrow area to obtain more training samples to form a model training sample set to improve the generalization ability of the coloring network model; data enhancement processing includes rotation, scaling, cropping, color transformation and other technologies.
[0072] Step 3: Use the simulated slag-dyed data and the augmented data to train the colorization network model. During the training process, the model continuously adjusts its parameters to minimize the difference between the predicted output and the actual color image.
[0073] Step 4: After the model training is completed, the coloring network model will colorize the input infrared image to generate a colored image.
[0074] Step 5, the accuracy of the colored image output by the coloring network model is judged. In the process of accuracy judgment, the rendered infrared channel image of the eyebrow area is input into the trained coloring network model, and the colored image is output. Then, the colored image is compared with the rendered color image of the eyebrow area for similarity. If the similarity is less than the preset threshold, the model needs to be further adjusted or retrained; otherwise, if the similarity is greater than or equal to the preset threshold, the coloring is considered successful, and the trained coloring network model can be saved.
[0075] Step S102, performing anti-distortion correction on the eye image and the mouth image respectively to obtain an orthodontic eye image and an orthodontic mouth image.
[0076] In some specific embodiments, the above step S102 includes steps S1021 to S1024:
[0077] Step S1021, determining the camera intrinsic parameters through a preset calibration plate, and determining the distortion algorithm corresponding to the camera based on the camera intrinsic parameters; the camera corresponding to the camera intrinsic parameters is the camera that captures the eye image.
[0078] In this step, the preset calibration plate refers to a pre-prepared calibration plate with a known geometric image, such as a checkerboard or dot pattern, whose size and spacing are known. Take multiple images of the calibration plate at different viewing angles and distances to ensure that different areas of the camera's field of view are covered; then detect and extract the corner point coordinates, and use the extracted corner point coordinates and the actual size of the calibration plate as input to calculate the camera's intrinsic parameters and distortion parameters.
[0079] Step S1022, calculating the theoretical position of each pixel on the eye image in an undistorted state according to the distortion algorithm.
[0080] In this step, first, a distortion model is needed to describe how the lens distorts the image. This usually includes radial distortion (such as barrel distortion or pincushion distortion) and tangential distortion (usually smaller); then, for each pixel in the eye image, the distortion model and distortion parameters are used to calculate its theoretical position through the inverse distortion algorithm.
[0081] Step S1023, based on the theoretical position of each pixel on the eye image and the camera internal parameters, the orthogonal position of each pixel is calculated.
[0082] In the step, the camera intrinsic parameters include focal length, principal point coordinates and pixel size. For each pixel's theoretical position, the camera intrinsic parameters are applied to calculate its position in the orthodontic image.
[0083] Step S1024, mapping each pixel on the eye image to the orthodontic position of the corresponding pixel to obtain the orthodontic eye image.
[0084] In this step, for each pixel in the eye image, its position in the orthodontic image is determined according to the new position calculated in step S1023. Then, the selected interpolation method is used to obtain the corresponding pixel value from the eye image and map it to the new position of the orthodontic eye image; this process is repeated for all pixels of the entire image until the entire orthodontic image is constructed.
[0085] In the above steps S1021 to S1024, since the infrared camera in the facial expression capture device that captures the eye image is set inside the VR helmet, its position is too close to the human face, so the wide angle of its lens will produce image distortion. Therefore, the present invention needs to perform anti-distortion correction on the eye image through the above steps S1021 to S1024. Similarly, although the camera responsible for collecting the mouth image is set outside the VR helmet, it is also too close to the human face, so the mouth image also needs to be anti-distorted.
[0086] Step S103, respectively performing inverse deformation on the orthodontic eye image and the orthodontic mouth image to obtain a target eye image and a target mouth image.
[0087] In some specific embodiments, the above step S103 includes step S1031-step S1032:
[0088] Step S1031 , marking feature points on a preset full face image and the orthodontic eye image respectively, to obtain a first feature group corresponding to the preset full face image and a second feature group corresponding to the orthodontic eye image.
[0089] In this step, the preset full face image refers to an unobstructed face image of the wearer of the VR helmet.
[0090] In this step, the multiple first feature points in the first feature group and the multiple second feature points in the second feature group have a one-to-one correspondence; for example: the first feature group has 5 feature points, namely A1, A2, A3, A4 and A5; the second feature group also has 5 feature points, namely B1, B2, B3, B4 and B5; among them, A1 corresponds to B1, A2 corresponds to B2, A3 corresponds to B3, A4 corresponds to B4, and A5 corresponds to B5.
[0091] In this step, the first feature points marked on the preset full-face image are the same as the second feature points marked on the orthodontic eye image. For example, the first feature points marked on the orthodontic eye image include eye feature points (including pupil center, iris center, eye corner, eyelid, eye socket, eyelashes, etc.) and eyebrow feature points (eyebrow center, eyebrow starting point and end point); the second feature points marked on the preset full-face image include eye feature points (including pupil center, iris center, eye corner, eyelid, eye socket, eyelashes, etc.) and eyebrow feature points (eyebrow center, eyebrow starting point and end point).
[0092] Step S1032: Based on the one-to-one correspondence between the multiple first feature points and the multiple second feature points, position transformation is performed on each second feature point in the orthodontic eye image to obtain a target eye image.
[0093] In this step, the corresponding position of each second feature point in the orthodontic eye image in the preset full face image can be determined through the correspondence between the two groups of feature points. Each feature point in the orthodontic eye image is transformed to a new position through the above correspondence to obtain the target eye image.
[0094] More specifically, since position transformation may cause pixels to be mapped to non-integer coordinates, interpolation is required to calculate the pixel values at the new positions. In addition, image reconstruction may also be required to ensure that the transformed image is visually coherent and natural.
[0095] Step S104: constructing a mask image based on the preset facial image, the target eye image and the target mouth image.
[0096] In this step, first, the center position of the eye area and the center position of the mouth area are marked in the preset facial image; then, the center position of the eye area is marked in the target eye image, and the center position of the mouth area is marked in the target mouth image; finally, two closed areas are drawn in an all-white image of the same size as the preset facial image, one covering the eye area and the other covering the mouth area, to obtain a mask image.
[0097] In some specific embodiments, feature points of a preset facial image, a target eye image, and a target mouth image are marked respectively, and a polygon filling method is used to connect the feature points in an all-white image of the same size as the full-face image to form a closed area. The inside of the closed area is set to black, and the outside of the closed area is set to white. Gaussian blur is performed on the black-and-white image constructed by this method, and the edges of the constructed polygons are smoothed to produce a smooth transition between the black and white colors of the constructed mask image.
[0098] Step S105 , based on the mask image, the target eye image and the target mouth image are fused to obtain a facial expression image.
[0099] Specifically, the target eye image and the target mouth image are respectively integrated into corresponding contour areas in the mask image to obtain the facial expression image.
[0100] In some specific embodiments, the center position of the eye area marked in the target eye image and the center position of the corresponding mouth area marked in the target mouth image can be overlapped with the eye area and mouth area in the preset facial image to perform Poisson fusion to obtain a complete facial image.
[0101] Corresponding to the implementation of the above facial expression capture method, the embodiment of the present disclosure further provides a facial expression capture device, the facial expression capture device comprising:
[0102] The device includes a setting control unit, an eye region acquisition device and a mouth region acquisition device;
[0103] The eye area acquisition device includes a first camera, an infrared fill light, and a first connecting component for connecting the first camera and the infrared fill light.
[0104] The mouth area acquisition device includes a second camera, and a second connecting component for connecting the second camera and an external connecting base of the VR helmet;
[0105] The control unit is used to obtain the eye image through the eye area acquisition device, obtain the mouth image through the mouth area acquisition device, and execute the specific execution steps of the facial expression capture method in the above-mentioned disclosed embodiment through the eye image and the mouth image.
[0106] In some specific embodiments, the eye region acquisition device includes an infrared wide-angle camera (e.g. Figure 4 "3" in the figure), infrared fill light (e.g. Figure 4 "1" in ), and integrated connecting parts (such as Figure 4 ”2” in the figure).
[0107] In some specific embodiments, the infrared wide-angle camera can be an infrared camera with a viewing angle of 110 degrees, one is set on each side, and is connected to the infrared fill light base through an integrated connector. The camera is tilted 5 degrees toward the center of the lens to fully capture the eye and eyebrow images. The camera frame rate is 60 frames per second to capture high-speed eye movements and avoid motion blur.
[0108] In some specific embodiments, the infrared fill light is arranged in a ring shape at the VR helmet lens connection base, so as to facilitate infrared image acquisition and fill light in a lightless environment inside the helmet.
[0109] In some specific embodiments, the VR helmet lens connection base is designed according to the internal shape of different VR helmets and adopts a slot connection method for easy installation.
[0110] The eye area acquisition device provided in the embodiment of the present disclosure adopts an infrared camera and a corresponding fill light device, which is beneficial for acquiring a complete eye image inside a VR helmet in a dark environment. Through the preset angle setting of the device, images of both eyes and eyebrows are captured at the same time.
[0111] In some specific embodiments, the mouth area acquisition device includes a VR helmet connection base (e.g. Figure 5 ), connecting components (e.g. Figure 5 "2" in the figure) and the mouth acquisition camera (e.g. Figure 5 ”3” in the figure).
[0112] In some specific embodiments, the VR helmet is connected to the base and can be fixed to the helmet by strong glue to adapt to VR helmets of different brands and models.
[0113] In some specific embodiments, the connecting component is used to connect the VR helmet connecting base and the mouth collection camera, and the camera collection angle can be adjusted by two adjustable screws of the connecting component.
[0114] In some specific embodiments, the mouth acquisition camera uses a 60 frame rate 1080p resolution RGB camera to capture mouth images. Since the mouth moves quickly, in order to prevent dynamic blur in the acquired image, a 60 frame rate camera is used to improve the image acquisition effect.
[0115] In some specific embodiments, the mouth area acquisition device further includes: a fill light plate arranged on the mouth acquisition camera. The fill light plate adopts a low-voltage, easy-to-dissipate chip LED. Since most of the face area of the VR helmet wearer is covered by the VR helmet, the external light cannot evenly illuminate the mouth area. Therefore, the fill light plate is used for fill light to make the collected mouth image uniform in color.
[0116] In some specific embodiments, the mouth area acquisition device further includes: adjustable and lockable screws are provided at both the helmet connection end and the camera connection end to facilitate the adjustment and fixation of the camera angle.
[0117] In some specific embodiments, the present invention also provides a schematic diagram of another viewing angle structure of the mouth area acquisition device, such as Figure 6 shown.
[0118] Corresponding to the implementation of the above facial expression capture method, the present disclosure also provides a facial expression capture device for performing the above Figures 1 to 3 The facial expression capturing method described in any of the embodiments shown in the figure. Figure 7 As shown, the facial expression capturing device comprises:
[0119] An image acquisition module, used for acquiring eye images and mouth images;
[0120] An anti-distortion correction module, used to perform anti-distortion correction on the eye image and the mouth image respectively to obtain an orthodontic eye image and an orthodontic mouth image;
[0121] An inverse deformation module, used for respectively inversely deforming the orthodontic eye image and the orthodontic mouth image to obtain a target eye image and a target mouth image;
[0122] A mask image construction module, used to construct a mask image based on a preset facial image, the target eye image and the target mouth image;
[0123] The image fusion module is used to fuse the target eye image and the target mouth image based on the mask image to obtain a facial expression image.
[0124] Optionally, the device also includes: a coloring module, used to color the collected eye infrared image through a trained coloring network model to obtain the eye image; the coloring network model is trained based on single-channel eye images under multiple different facial expressions.
[0125] Optionally, the anti-distortion correction module is also used to determine the camera intrinsic parameters through a preset calibration plate, and determine the distortion algorithm corresponding to the camera based on the camera intrinsic parameters; the camera corresponding to the camera intrinsic parameters is the camera that captures the eye image; the theoretical position of each pixel on the eye image in an undistorted state is calculated according to the distortion algorithm; based on the theoretical position of each pixel on the eye image and the camera intrinsic parameters, the orthogonal position of each pixel is calculated; each pixel on the eye image is mapped to the orthogonal position of the corresponding pixel to obtain the orthogonal eye image.
[0126] Optionally, the anti-deformation module is also used to mark feature points on a preset full-face image and the orthodontic eye image respectively, to obtain a first feature group corresponding to the preset full-face image, and a second feature group corresponding to the orthodontic eye image; the multiple first feature points in the first feature group have a one-to-one correspondence with the multiple second feature points in the second feature group; based on the one-to-one correspondence between the multiple first feature points and the multiple second feature points, each second feature point in the orthodontic eye image is transformed in position to obtain a target eye image.
[0127] Optionally, the image fusion module is further used to merge the target eye image and the target mouth image into corresponding contour areas in the mask image respectively to obtain the facial expression image.
[0128] The facial expression capture device provided by the above-mentioned embodiment of the present disclosure and the facial expression capture method provided by the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0129] The present disclosure also provides a computer device to execute the above-mentioned facial expression capture method. Figure 8 , which shows a schematic diagram of a computer device provided by some embodiments of the present disclosure. Figure 8 As shown, the computer device 8 includes: a processor 800, a memory 801, a bus 802 and a communication interface 803, wherein the processor 800, the communication interface 803 and the memory 801 are connected via the bus 802; the memory 801 stores a computer program that can be run on the processor 800, and the processor 800 executes the aforementioned Figures 1 to 3 A facial expression capturing method is provided in any of the illustrated embodiments.
[0130] The memory 801 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 803 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0131] The bus 802 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 801 is used to store programs. After receiving the execution instruction, the processor 800 executes the program. Figures 1 to 3The facial expression capturing method disclosed in any of the illustrated embodiments may be applied to the processor 800 or implemented by the processor 800 .
[0132] The processor 800 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 800 or the instruction in the form of software. The above processor 800 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 801, and the processor 800 reads the information in the memory 801 and completes the steps of the above method in combination with its hardware.
[0133] The computer device provided in the embodiment of the present disclosure and the facial expression capture method provided in the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by them.
[0134] The present disclosure also provides a computer-readable storage medium corresponding to the facial expression capture method provided in the above embodiment. Fig. 9 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the facial expression capture method provided by any of the aforementioned embodiments will be executed.
[0135] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0136] The computer-readable storage medium provided by the above-mentioned embodiments of the present disclosure and the facial expression capture method provided by the embodiments of the present disclosure are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
[0137] It should be noted that:
[0138] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present disclosure can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.
[0139] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present disclosure, the various features of the present disclosure are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed disclosure requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, the inventive aspects lie in less than all the features of the single embodiment disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present disclosure.
[0140] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of this disclosure and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0141] The above is only a preferred specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A facial expression capture method, characterized in that: The method comprises: Acquire eye images and mouth images; Performing anti-distortion correction on the eye image and the mouth image respectively to obtain an orthodontic eye image and an orthodontic mouth image; Respectively performing inverse deformation on the orthodontic eye image and the orthodontic mouth image to obtain a target eye image and a target mouth image; Constructing a mask image based on a preset facial image, the target eye image, and the target mouth image; Based on the mask image, the target eye image and the target mouth image are fused to obtain a facial expression image.
2. The method according to claim 1, characterized in that The eye image includes a first eye image and a second eye image.
3. The method according to claim 1 or 2, characterized in that: Before respectively performing anti-distortion correction on the eye image and the mouth image, the method further includes: The collected infrared eye image is colored by a trained coloring network model to obtain the eye image; the coloring network model is trained based on single-channel eye images under multiple different facial expressions.
4. The method according to claim 1 or 2, characterized in that: Performing anti-distortion correction on the eye image, comprising: Determine the camera intrinsic parameters through a preset calibration plate, and determine the distortion algorithm corresponding to the camera based on the camera intrinsic parameters; the camera corresponding to the camera intrinsic parameters is the camera that collects the eye image; Calculating the theoretical position of each pixel on the eye image in an undistorted state according to the distortion algorithm; Based on the theoretical position of each pixel on the eye image and the camera internal parameters, calculating the orthogonal position of each pixel; Each pixel on the eye image is mapped to the position of the corresponding pixel after orthodontic treatment to obtain the orthodontic eye image.
5. The method according to claim 4, characterized in that De-deforming the orthodontic eye image includes: Feature points are marked on a preset full-face image and the orthodontic eye image respectively to obtain a first feature group corresponding to the preset full-face image and a second feature group corresponding to the orthodontic eye image; a plurality of first feature points in the first feature group and a plurality of second feature points in the second feature group have a one-to-one correspondence; Based on the one-to-one correspondence between the multiple first feature points and the multiple second feature points, each second feature point in the orthodontic eye image is transformed in position to obtain a target eye image.
6. The method according to claim 1 or 2, characterized in that: The step of fusing the target eye image and the target mouth image based on the mask image to obtain a facial expression image includes: The target eye image and the target mouth image are respectively integrated into corresponding contour areas in the mask image to obtain the facial expression image.
7. A facial expression capture device, characterized in that: The device includes a setting control unit, an eye region acquisition device and a mouth region acquisition device; The eye region acquisition device includes a first camera, an infrared fill light, and a first connecting component for connecting the first camera and the infrared fill light; The mouth area acquisition device includes a second camera, and a second connecting component for connecting the second camera and an external connecting base of the VR helmet; The control unit is used to acquire the eye image through the eye area acquisition device, acquire the mouth image through the mouth area acquisition device, and execute the specific execution steps of any one of claims 1-6 through the eye image and the mouth image.
8. The device according to claim 7, characterized in that The infrared fill light is arranged in a ring shape on the lens connecting base of the VR helmet.
9. A facial expression capturing device, characterized in that: The device comprises: An image acquisition module, used for acquiring eye images and mouth images; An anti-distortion correction module, used to perform anti-distortion correction on the eye image and the mouth image respectively to obtain an orthodontic eye image and an orthodontic mouth image; An inverse deformation module, used for respectively inversely deforming the orthodontic eye image and the orthodontic mouth image to obtain a target eye image and a target mouth image; A mask image construction module, used to construct a mask image based on a preset facial image, the target eye image and the target mouth image; The image fusion module is used to fuse the target eye image and the target mouth image based on the mask image to obtain a facial expression image.
10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the facial expression capture method according to any one of claims 1 to 6 by executing the computer instructions.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the facial expression capturing method according to any one of claims 1 to 6.
