A speech recognition method based on lip shape and terminal device
By identifying the user's mouth shape changes through the camera, and combining the lip recognition model and audio information, it solves the problem of incomplete information caused by audio loss or noise interference in speech recognition, and improves the accuracy of recognition.
Patent Information
- Application Number
- CN202010484981.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-01
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-06-01
AI Technical Summary
Existing speech recognition technology obtains incomplete audio information and lacks accuracy due to audio loss or noise interference.
The camera identifies the user's mouth shape change characteristics, uses the lip recognition model to obtain pronunciation information, and combines the audio information to make up for the lost or interfered parts, thereby determining more accurate target audio information.
The accuracy of speech recognition is improved, especially when the audio information is incomplete or interfered by noise, and the user's target audio information can be obtained more effectively.
Smart Images

Figure CN111738100B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of education, and in particular to a speech recognition method and terminal equipment based on lip shape, and a computer-readable storage medium. Background Art
[0002] In the prior art, speech recognition mainly recognizes sound information. However, the audio information obtained through speech recognition is often incomplete due to problems such as audio loss or noise interference. Summary of the invention
[0003] The embodiments of the present invention provide a speech recognition method and terminal device based on lip shape, as well as a computer-readable storage medium, for identifying the lip shape change characteristics of a user through a camera, and obtaining the user's pronunciation information based on a lip reading recognition model. The pronunciation information obtained through the lip shape can compensate for the audio information lost due to audio loss or noise interference to a certain extent, thereby more accurately obtaining the user's target audio information.
[0004] In view of this, a first aspect of the present invention provides a speech recognition method based on lip shape, which may include:
[0005] Acquire multiple continuous images of a user through a camera, and acquire audio information of the user through a microphone;
[0006] According to the plurality of continuous images, identifying the lip shape change characteristics of the user;
[0007] Inputting the user's lip shape change characteristics into a preset lip reading recognition model of the user to identify and obtain the user's pronunciation information;
[0008] Target audio information is determined according to the pronunciation information and the audio information.
[0009] Optionally, in some embodiments of the present invention, the method further includes:
[0010] In response to the user's operation, generating a sending instruction;
[0011] According to the sending instruction, the target audio information is sent to other electronic devices.
[0012] Optionally, in some embodiments of the present invention, the method further includes:
[0013] If the target audio information is a help message, the target audio information is sent to 12110. Optionally, in some embodiments of the present invention, the method further includes:
[0014] Determining a profile picture of the user according to the multiple consecutive images;
[0015] If the target audio information is a help message, sending the target audio information to 12110 includes:
[0016] If the target audio information is a request for help, the target audio information and the avatar image are sent to 12110 .
[0017] Optionally, in some embodiments of the present invention, identifying the lip shape change characteristics of the user according to the plurality of continuous images includes:
[0018] Feature extraction is performed on the multiple continuous images according to a lip feature extraction algorithm and a mouth contour feature extraction algorithm to identify the lip shape change characteristics of the user. The lip feature extraction algorithm includes at least one of a template-based feature extraction algorithm and an image pixel-based feature extraction algorithm, and the mouth contour feature extraction algorithm includes at least one of a deformation template algorithm and a Snakes algorithm.
[0019] Optionally, in some embodiments of the present invention, the method further includes:
[0020] Matching the pronunciation information with the audio information;
[0021] If the matching rate between the pronunciation information and the audio information is greater than a first threshold, determining that the evaluation accuracy of the user's lip reading model is excellent;
[0022] If the matching rate between the pronunciation information and the audio information is less than or equal to the first threshold, it is determined that the evaluation accuracy of the user's lip reading model is average.
[0023] Optionally, in some embodiments of the present invention, the method further includes:
[0024] Acquire a plurality of continuous historical images of the user through the camera, and acquire historical audio information of the user through the microphone;
[0025] Identifying historical lip shape change features of the user according to a plurality of continuous historical images of the user;
[0026] Model training is performed based on the historical audio information and the historical lip shape change characteristics to obtain a lip reading recognition model for the user.
[0027] A second aspect of the present invention provides a terminal device, which may include:
[0028] An acquisition module, used to acquire multiple continuous images of a user through a camera, and to acquire audio information of the user through a microphone;
[0029] The processing module is used to identify the user's lip shape change characteristics based on the multiple continuous images; input the user's lip shape change characteristics into a preset lip reading recognition model of the user to identify the user's pronunciation information; and determine the target audio information based on the pronunciation information and the audio information.
[0030] Optionally, in some embodiments of the present invention, the terminal device further includes a transceiver module.
[0031] The processing module is further used to generate a sending instruction in response to the user's operation;
[0032] The transceiver module is used to send the target audio information to other electronic devices according to the sending instruction.
[0033] Optionally, in some embodiments of the present invention, the terminal device further includes a transceiver module.
[0034] The transceiver module is used to send the target audio information to 12110 if the target audio information is a request for help.
[0035] Optionally, in some embodiments of the present invention,
[0036] The processing module is further used to determine the user's avatar image based on the multiple continuous images;
[0037] The transceiver module is specifically used to send the target audio information and the avatar image to 12110 if the target audio information is a request for help.
[0038] Optionally, in some embodiments of the present invention,
[0039] The processing module is specifically used to extract features from the multiple continuous images according to a lip feature extraction algorithm and a mouth contour feature extraction algorithm to identify the lip change characteristics of the user, wherein the lip feature extraction algorithm includes at least one of a template-based feature extraction algorithm and an image pixel-based feature extraction algorithm, and the mouth contour feature extraction algorithm includes at least one of a deformation template algorithm and a Snakes algorithm.
[0040] Optionally, in some embodiments of the present invention,
[0041] The processing module is also used to match the pronunciation information with the audio information; if the matching rate of the pronunciation information and the audio information is greater than a first threshold, the evaluation accuracy of the user's lip reading model is determined to be excellent; if the matching rate of the pronunciation information and the audio information is less than or equal to the first threshold, the evaluation accuracy of the user's lip reading model is determined to be average.
[0042] Optionally, in some embodiments of the present invention,
[0043] The acquisition module is further used to acquire a plurality of continuous historical images of the user through the camera, and to acquire historical audio information of the user through the microphone;
[0044] The processing module is also used to identify the historical lip shape change characteristics of the user based on multiple continuous historical images of the user; and perform model training based on the historical audio information and the historical lip shape change characteristics to obtain the lip reading recognition model of the user.
[0045] A third aspect of the present invention provides a terminal device, which may include:
[0046] A memory storing executable program code;
[0047] a processor coupled to the memory;
[0048] A transceiver and a display connected to the processor;
[0049] The display, the transceiver, and the processor call the executable program code stored in the memory to execute the method as described in the first aspect of the present invention and any optional implementation of the first aspect.
[0050] A fourth aspect of an embodiment of the present invention provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in the first aspect of the present invention and any optional implementation of the first aspect is implemented.
[0051] A fifth aspect of an embodiment of the present invention discloses a computer program product. When the computer program product runs on a computer, the computer executes any one of the methods disclosed in the first aspect of the embodiment of the present invention.
[0052] A ninth aspect of an embodiment of the present invention discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes any one of the methods disclosed in the first aspect of the embodiment of the present invention.
[0053] It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
[0054] In an embodiment of the present invention, a plurality of continuous images of a user are obtained through a camera, and audio information of the user is obtained through a microphone; based on the plurality of continuous images, the lip shape change characteristics of the user are identified; the lip shape change characteristics of the user are input into a preset lip reading recognition model of the user to identify the pronunciation information of the user; and the target audio information is determined based on the pronunciation information and the audio information. That is, the lip shape change characteristics of the user are identified through a camera, and the pronunciation information of the user is obtained based on the lip reading recognition model. The pronunciation information obtained through the lip shape can compensate for the audio information lost due to audio loss or noise interference to a certain extent, thereby more accurately obtaining the target audio information of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and other drawings can be obtained based on these drawings.
[0056] Figure 1 Schematic diagram of an embodiment of a speech recognition method based on lip shape in an embodiment of the present invention;
[0057] Figure 2 FIG. 1 is a schematic diagram of another embodiment of a speech recognition method based on lip shape in an embodiment of the present invention;
[0058] Figure 3 FIG. 1 is a schematic diagram of another embodiment of a speech recognition method based on lip shape in an embodiment of the present invention;
[0059] Figure 4 A schematic diagram of an embodiment of a terminal device in an embodiment of the present invention;
[0060] Figure 5 A schematic diagram of another embodiment of a terminal device in an embodiment of the present invention;
[0061] Figure 6 FIG. 2 is a schematic diagram of another embodiment of a terminal device in an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The embodiments of the present invention provide a speech recognition method and terminal device based on lip shape, as well as a computer-readable storage medium, for identifying the lip shape change characteristics of a user through a camera, and obtaining the user's pronunciation information based on a lip reading recognition model. The pronunciation information obtained through the lip shape can compensate for the audio information lost due to audio loss or noise interference to a certain extent, thereby more accurately obtaining the user's target audio information.
[0063] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments in the present invention, they should all fall within the scope of protection of the present invention.
[0064] In the embodiments of the present invention, the terminal device may include a general handheld electronic terminal, such as a smart phone, a portable terminal, a terminal, a personal digital assistant (PDA), a portable multimedia player (Personal Media Player, PMP) device, a notebook computer, a notebook (Note Pad), a wireless broadband (Wireless Broadband, Wibro) terminal, a tablet computer (personal computer, PC) and a smart PC. The present application may also be applied to non-portable electronic devices, such as a smart TV providing a camera function.
[0065] Terminal devices may also include wearable devices. Wearable devices are portable electronic devices that can be worn directly on the user or integrated into the user's clothes or accessories. Wearable devices are not just hardware devices, but can also achieve powerful intelligent functions through software support, data interaction, and cloud interaction, such as: computing function, positioning function, and alarm function. They can also be connected to mobile phones and various terminals. Wearable devices may include but are not limited to watches supported by the wrist (such as watches, wrists, etc.), shoes supported by the feet (such as shoes, socks, or other products worn on the legs), Glass supported by the head (such as glasses, helmets, headbands, etc.), and various non-mainstream product forms such as smart clothing, school bags, crutches, accessories, etc.
[0066] like Figure 1 FIG. 1 is a schematic diagram of an embodiment of a speech recognition method based on lip shape in an embodiment of the present invention, which may include:
[0067] 101. Acquire multiple continuous images of a user through a camera, and acquire audio information of the user through a microphone.
[0068] The terminal device obtains multiple continuous images of the user through a camera, and obtains audio information of the user through a microphone. It is understandable that the camera or the microphone may be integrated into the terminal device. The multiple continuous images of the user include images of the user's face.
[0069] Optionally, a video of the user is obtained through a camera, and the video of the user is separated to obtain an audio stream (i.e., the user's audio information) and a video stream. A face recognition algorithm is used to track the face in the video stream, and the mouth area in the face is extracted to obtain a frame lip action video; the frame lip action video is processed to obtain a lip image sequence; the lip image sequence is segmented using a sequence segmentation rule to obtain a segmented image sequence; each segmented image sequence corresponding to the lip image sequence is sequentially input into a lip image recognition model for recognition to obtain the user's lip shape change characteristics.
[0070] Optionally, each segmented image sequence corresponding to the lip image sequence is sequentially input into a lip image recognition model for recognition to obtain the user's lip shape change characteristics, which may include: recognizing each segmented image sequence corresponding to the lip image sequence through the lip image recognition model to obtain segmented image characteristics; classifying the segmented image characteristics using a classification function to obtain segmented image recognition results; and splicing the segmented image recognition results in chronological order to obtain the user's lip shape change characteristics.
[0071] Optionally, the terminal device is a television set as an example for explanation. In actual application, the television set receives operation instructions input by the user. Specifically, the user may input the operation instructions through a remote control or by directly touching a button or by clicking a touch display area set on the television set. The operation instructions are divided into non-front-view state operation instructions and front-view state operation instructions. When it is detected that the user is no longer in the front-view state, the non-front-view state operation instructions input by the user are responded to; when it is detected that the user enters the front-view state again, the front-view state operation instructions input by the user are responded to. For example, through voice commands or other means, the television set is put into the "back-recording" state. The person turns from facing the television set to side-viewing, and the television set automatically turns on the recording mode. The person rotates a circle, and stops recording when facing the television set again, thereby obtaining a video of the user.
[0072] Optionally, when a user terminal device is detected, the preset corresponding computer visual recognition and voice recognition technology functions are started. Detecting whether the user is looking directly at the terminal device can be performed by comparing the image data when the user is looking directly at the terminal device and the currently collected image data. When they are consistent, it indicates that the current user is looking directly at the terminal device, and the computer's visual recognition and voice recognition technology functions (such as face recognition and voice recognition, etc.) are started; when they are inconsistent, it indicates that the current user has not yet looked directly at the terminal device, and the computer's visual recognition and voice recognition technology functions are not started. In practical applications, taking the terminal device as an air conditioner as an example, the user's current image data is collected in real time through a camera to obtain image data when the user is looking directly at the air conditioner; the image data when the user is looking directly at the air conditioner and the currently collected image data are compared. When the two are consistent, it indicates that the current user is looking directly at the air conditioner, and voice recognition technology, face recognition technology, and gesture recognition technology are started. Voice recognition technology is used to recognize user voice commands, and face recognition technology is used to recognize user identity.
[0073] 102. Identify the lip shape change characteristics of the user according to the multiple continuous images.
[0074] The terminal device identifies the user's lip shape change characteristics based on the multiple continuous images, which may include: performing feature extraction on the multiple continuous images according to a lip feature extraction algorithm and a mouth contour feature extraction algorithm to identify the user's lip shape change characteristics, the lip feature extraction algorithm including at least one of a template-based feature extraction algorithm and an image pixel-based feature extraction algorithm, and the mouth contour feature extraction algorithm including at least one of a deformation template algorithm and a Snakes algorithm.
[0075] It should be noted that since lip extraction plays a very important role in lip reading recognition, the selection of feature vectors will directly affect the lip reading recognition rate. One of the most important characteristics of feature extraction is "repeatability". The input image is generally smoothed in the scale space through Gaussian blur, and then one or more features of the image are calculated through local derivative operations.
[0076] The lip feature extraction algorithm can be used to extract the lip image from the image containing the lips. Exemplarily, the lip feature extraction algorithm includes at least one of a template-based feature extraction algorithm or an image pixel-based feature extraction algorithm, wherein the template-based feature extraction algorithm is also called a top-down algorithm, which mainly establishes a model for the contours of the inner and outer lips, and uses a set of parameters to describe the relevant lip contour information. These parameter sets or linear combinations of parameters used to describe the lips are used as visual features. This type of method usually requires a pre-assumption of which are important visual features. Specifically, it can be divided into three types: algorithms based on model points, algorithms based on active contour models, and algorithms based on variable models. The feature extraction algorithm based on image pixels is also called a bottom-up algorithm, which is an algorithm that directly uses the entire grayscale image containing the lips or uses a lip image that has been preprocessed to obtain a feature vector. Specifically, it can be divided into three types: direct pixel algorithm, vector quantization algorithm, and PCA.
[0077] After the lip image extraction is completed, it is necessary to further extract the lip contour features. The lip contour feature extraction algorithm can be used to extract lip reading features from the lip image signal. Exemplarily, the lip contour feature extraction algorithm includes at least one of the deformation template algorithm and the Snakes algorithm, wherein the deformation template algorithm uses a plurality of band parameter curves to approximate the lip contour, and combines the plurality of curves into a template, and then uses certain restrictions and an optimization method to bring the curve close to the most suitable lip position, and obtains parameters reflecting the change of the lip shape to describe the lip movement. The variable model algorithm is not affected by the deformation, rotation and scaling of the lips, and can well depict the shape of the lips. In order to be able to represent the lip shape, the method used is to extract the lip shape template using the outer side of the lips and the width and height of the lips. The Snakes algorithm can well depict the lip contour, which is to add a number of points on the lips, and then use the restrictions to detect these points. Similarly, it can be understood that the specific algorithm to be used can be set according to the actual situation, and no specific limitation is made here.
[0078] 103. Input the user's lip shape change characteristics into a preset lip reading recognition model of the user to obtain the user's pronunciation information.
[0079] The terminal device inputs the user's lip shape change characteristics into the preset lip reading recognition model of the user to identify the user's pronunciation information. In the case where the user cannot perform voice input or type input, the user's lip shape change characteristics can be obtained through the camera, and the user's lip shape change characteristics can be identified. Then, the user's pronunciation information can be identified based on the user's lip shape change characteristics, thereby providing help to the user. Optionally, the terminal device can also play the user's pronunciation information.
[0080] The lip reading recognition model of the user may be obtained in the following manner: that is, the lip reading recognition model is established based on the information collected by the terminal device over a long period of time, such as obtaining multiple continuous historical images of the user through the camera and obtaining the historical audio information of the user through the microphone; identifying the historical lip shape change characteristics of the user based on the multiple continuous historical images of the user; and performing model training based on the historical audio information and the historical lip shape change characteristics to obtain the lip reading recognition model of the user.
[0081] Optionally, in some embodiments of the present invention, the method further includes: the terminal device obtains the audio information of the user through a microphone; the terminal device matches the pronunciation information with the audio information; if the matching rate of the pronunciation information and the audio information is greater than a first threshold, the terminal device determines that the evaluation accuracy of the user's lip reading model is excellent; if the matching rate of the pronunciation information and the audio information is less than or equal to the first threshold, the terminal device determines that the evaluation accuracy of the user's lip reading model is average, and the lip reading model of the user can be reconstructed.
[0082] It is understandable that the identification of historical lip shape change features can refer to the description in step 102 and will not be repeated here. Further, the terminal device extracts features from the historical audio information. Exemplarily, algorithms such as LPCC (Linear Prediction Cepstrum Coefficient), MFCC (Mel Frequency Cepstrum Coefficient), HMM (Hidden Markov Model) and DTW (Dynamic Time Warping) can be used to extract features from historical audio information.
[0083] 104. Determine target audio information according to the pronunciation information and the audio information.
[0084] The terminal device can correct the audio information according to the pronunciation information to obtain the target audio information, that is, the audio information and the pronunciation information can be matched. The pronunciation information can be used to compensate for the audio information lost due to audio loss or noise interference to a certain extent, and the compensated audio information is referred to as the target audio information.
[0085] For example, a sentence input by the user's voice may be "I want to go shopping, who's coming with me?" However, the audio information obtained by the terminal device may be: "I want to go shopping, who's coming with me?", and the pronunciation information obtained through the lip reading recognition model is: "I want to go shopping, who's coming with me?". At this time, through the audio information and pronunciation information, the completed sentence can be obtained: "I want to go shopping, who's coming with me?".
[0086] For example, when a primary school student is running, it is inconvenient to type, so he uses voice input. However, due to the loud breathing during running, the audio information obtained by the terminal device is lost. Therefore, the terminal device can use the method in the embodiment of the present invention to obtain target audio information with higher reliability.
[0087] Optionally, the embodiment of the present invention can be applied to scenarios where students are participating in a Mandarin competition or preparing for a Mandarin competition, or in scenarios such as singing, concerts, speeches, and meetings (video call conferences, voice call conferences, etc.).
[0088] For example, when a singer is holding a concert, there are many audiences and it is quite noisy, but the singer wants to give the audience a good experience. When the singer is singing, the played audio information is lost or interfered by noise, so the experience may not be very good for the audience. If the technical solution in the embodiment of the present invention is adopted, when the singer is singing, the terminal device can collect multiple continuous images of the user, identify the user's lip shape change characteristics based on the multiple continuous images, and then identify the user's pronunciation information in the user's lip reading recognition model, and then repair the user's audio information obtained through the microphone based on the pronunciation information to obtain more accurate audio information, and then play it to improve the audience's experience.
[0089] In an embodiment of the present invention, a plurality of continuous images of a user are obtained through a camera, and audio information of the user is obtained through a microphone; based on the plurality of continuous images, the lip shape change characteristics of the user are identified; the lip shape change characteristics of the user are input into a preset lip reading recognition model of the user to identify the pronunciation information of the user; and the target audio information is determined based on the pronunciation information and the audio information. That is, the lip shape change characteristics of the user are identified through a camera, and the pronunciation information of the user is obtained based on the lip reading recognition model. The pronunciation information obtained through the lip shape can compensate for the audio information lost due to audio loss or noise interference to a certain extent, thereby more accurately obtaining the target audio information of the user.
[0090] like Figure 2 FIG. 2 is a schematic diagram of another embodiment of a speech recognition method based on lip shape in an embodiment of the present invention, which may include:
[0091] 201. When it is detected that a heartbeat of a user is greater than a first threshold and no audio information or touch input information of the user is detected, obtain a plurality of continuous images of the user through a camera.
[0092] 202. Identify the lip shape change characteristics of the user according to the multiple continuous images.
[0093] 203. Input the user's lip shape change characteristics into a preset lip reading recognition model of the user to obtain the user's pronunciation information.
[0094] 204. Determine target audio information according to the pronunciation information and the audio information.
[0095] Understandably, Figure 2 Steps 201-204 in the illustrated embodiment are similar to Figure 1 Steps 101 - 104 in the illustrated embodiment are similar and will not be described in detail here.
[0096] 205. In response to the user's operation, generate a sending instruction.
[0097] 206. Send the target audio information to other electronic devices according to the sending instruction.
[0098] After the terminal device generates a sending instruction in response to the user's operation, the target audio information can be sent to other electronic devices according to the sending instruction. It should be noted that the pronunciation information is used to obtain the pronunciation information through the user's mouth shape change characteristics when the user is unable to type, and then the pronunciation information is used to complete the user's audio information to obtain the target audio information, and then the target audio information is sent to other electronic devices to communicate with other users.
[0099] In an embodiment of the present invention, a plurality of continuous images of a user are acquired through a camera, and audio information of the user is acquired through a microphone; based on the plurality of continuous images, the lip shape change characteristics of the user are identified; the lip shape change characteristics of the user are input into a preset lip reading recognition model of the user to identify the pronunciation information of the user; and the target audio information is determined based on the pronunciation information and the audio information. That is, the lip shape change characteristics of the user are identified through a camera, and the pronunciation information of the user is acquired based on the lip reading recognition model. The pronunciation information acquired through the lip shape can make up for the audio information lost due to audio loss or noise interference to a certain extent, thereby acquiring the target audio information of the user more accurately. Furthermore, the target audio information can also be sent to other electronic devices to communicate with other users.
[0100] like Figure 3FIG. 2 is a schematic diagram of another embodiment of a speech recognition method based on lip shape in an embodiment of the present invention, which may include:
[0101] 301. When it is detected that a heartbeat of a user is greater than a first threshold and no audio information or touch input information of the user is detected, obtain a plurality of continuous images of the user through a camera.
[0102] 302. Identify the lip shape change characteristics of the user according to the multiple continuous images.
[0103] 303. Input the user's lip shape change characteristics into a preset lip reading recognition model of the user to obtain the user's pronunciation information.
[0104] 304. Determine target audio information according to the pronunciation information and the audio information.
[0105] Understandably, Figure 3 Steps 301-304 in the illustrated embodiment are similar to Figure 1 Steps 101 - 104 in the illustrated embodiment are similar and will not be described in detail here.
[0106] 305. If the target audio information is a request for help, the target audio information is sent to 12110.
[0107] It should be noted that if the target audio information determined by the terminal device is a help message, such as "help me", "help", or "call 110", etc., then the terminal device can directly send the target audio information to 12110. It should be noted that 12110 is a unified public welfare SMS alarm number of the Chinese public security organs. It is a form of SMS alarm, which is a supplement to the 110 telephone alarm and an auxiliary alarm help method.
[0108] Optionally, if the target audio information mentions a user name, such as "dad, mom, or teacher", the terminal device can pop up corresponding contact information of "dad, mom, or teacher" for the user to choose whether to contact them.
[0109] Optionally, the terminal device determines the user's avatar image based on the multiple continuous images; if the target audio information is a request for help, the target audio information and the avatar image are sent to 12110. It is understandable that, because the terminal device has previously acquired multiple continuous images of the user, when sending the request for help to 12110, the user's avatar image can also be determined first and sent to 12110, so that the police can more easily identify the victim, thereby improving the rescue efficiency.
[0110] In an embodiment of the present invention, a plurality of continuous images of a user are acquired through a camera, and audio information of the user is acquired through a microphone; based on the plurality of continuous images, the lip shape change characteristics of the user are identified; the lip shape change characteristics of the user are input into a preset lip reading recognition model of the user to identify the pronunciation information of the user; and the target audio information is determined based on the pronunciation information and the audio information. That is, the lip shape change characteristics of the user are identified through a camera, and the pronunciation information of the user is obtained according to the lip reading recognition model. The pronunciation information obtained through the lip shape can make up for the audio information lost due to audio loss or noise interference to a certain extent, thereby more accurately acquiring the target audio information of the user. Furthermore, if the target audio information of the user is a request for help, the pronunciation information of the user is sent to 12110 to provide help to the user.
[0111] like Figure 4 FIG. 1 is a schematic diagram of an embodiment of a terminal device in an embodiment of the present invention, which may include:
[0112] An acquisition module 401 is used to acquire multiple continuous images of a user through a camera, and to acquire audio information of the user through a microphone;
[0113] The processing module 402 is used to identify the user's lip shape change characteristics based on the multiple continuous images; input the user's lip shape change characteristics into a preset lip reading recognition model of the user to identify the user's pronunciation information; and determine the target audio information based on the pronunciation information and the audio information.
[0114] Optionally, in some embodiments of the present invention, Figure 5 FIG. 4 is a schematic diagram of another embodiment of a terminal device in an embodiment of the present invention, wherein the terminal device further includes a transceiver module 403.
[0115] The processing module 402 is further used to generate a sending instruction in response to the user's operation;
[0116] The transceiver module 403 is used to send the target audio information to other electronic devices according to the sending instruction.
[0117] Optionally, in some embodiments of the present invention, Figure 5 As shown, the terminal device also includes a transceiver module 403,
[0118] The transceiver module 403 is used to send the target audio information to 12110 if the target audio information is a help message.
[0119] Optionally, in some embodiments of the present invention,
[0120] The processing module 402 is further used to determine the user's avatar image according to the multiple continuous images;
[0121] The transceiver module 403 is specifically used to send the target audio information and the avatar image to 12110 if the target audio information is a request for help.
[0122] Optionally, in some embodiments of the present invention,
[0123] The processing module 402 is specifically used to extract features from the multiple continuous images according to a lip feature extraction algorithm and a mouth contour feature extraction algorithm to identify the lip shape change characteristics of the user, wherein the lip feature extraction algorithm includes at least one of a template-based feature extraction algorithm and an image pixel-based feature extraction algorithm, and the mouth contour feature extraction algorithm includes at least one of a deformation template algorithm and a Snakes algorithm.
[0124] Optionally, in some embodiments of the present invention,
[0125] The processing module 402 is also used to match the pronunciation information with the audio information; if the matching rate of the pronunciation information and the audio information is greater than a first threshold, the evaluation accuracy of the user's lip reading model is determined to be excellent; if the matching rate of the pronunciation information and the audio information is less than or equal to the first threshold, the evaluation accuracy of the user's lip reading model is determined to be average.
[0126] Optionally, in some embodiments of the present invention,
[0127] The acquisition module 401 is further used to acquire a plurality of continuous historical images of the user through the camera, and to acquire historical audio information of the user through the microphone;
[0128] The processing module 402 is further used to identify the historical lip shape change characteristics of the user based on multiple continuous historical images of the user; perform model training based on the historical audio information and the historical lip shape change characteristics to obtain the lip reading recognition model of the user.
[0129] like Figure 6As shown, it is a schematic diagram of another embodiment of a terminal device in an embodiment of the present invention. The terminal device is described by taking a mobile phone as an example, and may include: a radio frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, a wireless fidelity (WiFi) module 670, a processor 680, and a power supply 690. Among them, the RF circuit 610 includes a receiver 614 and a transmitter 612. Those skilled in the art can understand that Figure 6 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0130] Combine the following Figure 6 A detailed introduction to the various components of the mobile phone:
[0131] The RF circuit 610 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 680 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 610 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 610 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to the global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
[0132] The memory 620 can be used to store software programs and modules. The processor 680 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 620. The memory 620 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 620 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0133] The input unit 630 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 631 or near the touch panel 631 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 631 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 631, the input unit 630 may also include other input devices 632. Specifically, the other input devices 632 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
[0134] The display unit 640 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display panel 641. Optionally, the display panel 641 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 631 may cover the display panel 641. When the touch panel 631 detects a touch operation on or near it, it is transmitted to the processor 680 to determine the type of touch event. Subsequently, the processor 680 provides a corresponding visual output on the display panel 641 according to the type of touch event. Although in Figure 6 In the embodiment, the touch panel 631 and the display panel 641 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 631 and the display panel 641 can be integrated to realize the input and output functions of the mobile phone.
[0135] The mobile phone may also include at least one sensor 650, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 641 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 641 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0136] The audio circuit 660, the speaker 661, and the microphone 662 can provide an audio interface between the user and the mobile phone. The audio circuit 660 can transmit the received audio data to the speaker 661 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, and then the audio data is output to the processor 680 for processing, and then sent to another mobile phone through the RF circuit 610, or the audio data is output to the memory 620 for further processing.
[0137] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 670. It provides users with wireless broadband Internet access. Figure 6A WiFi module 670 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0138] The processor 680 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 620, and calling data stored in the memory 620, it executes various functions of the mobile phone and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 680.
[0139] The mobile phone also includes a power supply 690 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 680 through a power management system, so that the power management system can manage charging, discharging, power consumption management, etc. Although not shown, the mobile phone can also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0140] In an embodiment of the present invention, the processor 680 is used to obtain multiple continuous images of a user through a camera, and to obtain audio information of the user through a microphone; identify the lip shape change characteristics of the user based on the multiple continuous images; input the lip shape change characteristics of the user into a preset lip reading recognition model of the user to identify the pronunciation information of the user; and determine the target audio information based on the pronunciation information and the audio information.
[0141] Optionally, the processor 680 is further configured to generate a sending instruction in response to the user's operation;
[0142] The RF circuit 610 is used to send the target audio information to other electronic devices according to the sending instruction.
[0143] Optionally, the RF circuit 610 is used to send the target audio information to 12110 if the target audio information is a request for help.
[0144] Optionally, the processor 680 is further configured to determine an avatar image of the user according to the multiple continuous images;
[0145] The RF circuit 610 is specifically used to send the target audio information and the avatar image to 12110 if the target audio information is a request for help.
[0146] Optionally, processor 680 is specifically used to perform feature extraction on the multiple continuous images according to a lip feature extraction algorithm and a mouth contour feature extraction algorithm to identify the lip change characteristics of the user, the lip feature extraction algorithm includes at least one of a template-based feature extraction algorithm or an image pixel-based feature extraction algorithm, and the mouth contour feature extraction algorithm includes at least one of a deformation template algorithm or a Snakes algorithm.
[0147] Optionally, the processor 680 is also used to match the pronunciation information with the audio information; if the matching rate of the pronunciation information and the audio information is greater than a first threshold, the evaluation accuracy of the user's lip reading model is determined to be excellent; if the matching rate of the pronunciation information and the audio information is less than or equal to the first threshold, the evaluation accuracy of the user's lip reading model is determined to be average.
[0148] Optionally, processor 680 is further used to obtain multiple continuous historical images of the user through the camera, and to obtain historical audio information of the user through the microphone; identify historical lip shape change characteristics of the user based on the multiple continuous historical images of the user; and perform model training based on the historical audio information and the historical lip shape change characteristics to obtain a lip reading recognition model of the user.
[0149] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0150] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center to another website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0151] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0152] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0153] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0154] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0155] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0156] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A speech recognition method based on lip shape, characterized in that: include: When it is detected that the user's heartbeat is greater than a first threshold and no audio information or touch input information of the user is detected, obtaining a video of the user through a camera, separating the video of the user to obtain an audio stream and a video stream, wherein the audio stream is the audio information of the user; Using a face recognition algorithm to track the face in the video stream, and extracting the mouth area in the face to obtain a frame lip action video; processing the frame lip action video to obtain a lip image sequence; using a sequence segmentation rule to segment the lip image sequence to obtain a segmented image sequence; using a lip image recognition model to identify each segmented image sequence corresponding to the lip image sequence to obtain segmented image features; using a classification function to classify the segmented image features to obtain segmented image recognition results; splicing the segmented image recognition results in chronological order to obtain the user's lip shape change characteristics; Inputting the user's lip shape change characteristics into a preset lip reading recognition model of the user to identify and obtain the user's pronunciation information; Determining target audio information according to the pronunciation information and the audio information; Determine the user's avatar image according to the video stream; If the target audio information is a request for help, the target audio information and the avatar image are sent to 12110 .
2. The method according to claim 1, characterized in that The method further comprises: In response to the user's operation, generating a sending instruction; According to the sending instruction, the target audio information is sent to other electronic devices.
3. The method according to claim 1, characterized in that The method further comprises: Matching the pronunciation information with the audio information; If the matching rate between the pronunciation information and the audio information is greater than a first threshold, determining that the evaluation accuracy of the user's lip reading model is excellent; If the matching rate between the pronunciation information and the audio information is less than or equal to the first threshold, it is determined that the evaluation accuracy of the user's lip reading model is average.
4. The method according to claim 1, characterized in that The method further comprises: Acquire a plurality of continuous historical images of the user through the camera, and acquire historical audio information of the user through the microphone; Identifying historical lip shape change features of the user according to a plurality of continuous historical images of the user; Model training is performed based on the historical audio information and the historical lip shape change characteristics to obtain a lip reading recognition model for the user.
5. A terminal device, characterized in that: include: an acquisition module, configured to acquire a video of the user through a camera when a heartbeat of the user is detected to be greater than a first threshold and no audio information or touch input information of the user is detected, and separate the video of the user to obtain an audio stream and a video stream, wherein the audio stream is the audio information of the user; A processing module is used to track the face in the video stream using a face recognition algorithm, extract the mouth area in the face, and obtain a frame lip action video; process the frame lip action video to obtain a lip image sequence; segment the lip image sequence using a sequence segmentation rule to obtain a segmented image sequence; identify each segmented image sequence corresponding to the lip image sequence using a lip image recognition model to obtain segmented image features; classify the segmented image features using a classification function to obtain segmented image recognition results; splice the segmented image recognition results in chronological order to obtain the user's lip shape change features; Inputting the user's lip shape change characteristics into a preset lip reading recognition model of the user to identify and obtain the user's pronunciation information; determining target audio information based on the pronunciation information and the audio information; The processing module is further used to determine the user's avatar picture according to the video stream; The transceiver module is used to send the target audio information and the avatar image to 12110 if the target audio information is a request for help.
6. A terminal device, characterized in that: include: A memory storing executable program code; a processor coupled to the memory; a transceiver connected to the processor; The transceiver and the processor call the executable program code stored in the memory to execute the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The method comprises instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 4.
