Human-computer interaction device and system based on facial features

Through human-computer interaction devices based on facial features, facial posture changes are used to control video playback, which solves the problem of interrupting the writing state by traditional methods, and achieves continuity of learning mentality and adaptability to multi-person learning scenarios.

CN113703564BActive Publication Date: 2024-08-23BEIJING JUJIANGYI MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010436213.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-21
Publication Date
2024-08-23
Estimated Expiration
2040-05-21

AI Technical Summary

Technical Problem

In the process of calligraphy education, traditional video playback control methods (manual clicks and voice control) will interrupt students' writing state and mental state, and are not suitable for multiple people learning at the same time.

Method used

Human-computer interaction equipment based on facial features is used to continuously collect user images through image acquisition devices, extract facial feature information, and generate control instructions based on facial posture changes to control video playback, such as fast forward, rewind, pause and other operations.

Benefits of technology

This interactive method does not require students to move their bodies significantly, avoids the destruction of the writing state, and maintains the continuity of the learning mentality. It is suitable for the informatization process of calligraphy education and has important practical value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113703564B
    Figure CN113703564B
Patent Text Reader

Abstract

The present invention provides a human-computer interaction device and system based on facial features, wherein the device includes: an image acquisition device, a processor and a display screen; the image acquisition device is used to continuously acquire user images; the processor is used to sequentially extract the user face image in each user image; extract the facial feature information in each user face image; determine the user's posture change information; generate corresponding control instructions according to the posture change information, perform corresponding control operations on a preset video according to the control instructions, and send the preset video after the control operation to a display screen; the display screen is also used to play the preset video after the control operation. The human-computer interaction device and system based on facial features provided by the embodiment of the present invention can determine the current motion state of the user's face by detecting the human facial biological features and its motion posture, and then can send control signals such as pause or play, so as to realize the control of video playback through facial movement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of human-computer interaction, and in particular to a human-computer interaction device and system based on facial features. Background Art

[0002] In the process of calligraphy education, physical state includes pen holding posture, hand movements, body posture, etc. Changes in psychological state include shifting of attention focus, fluctuation of learning interest, interruption of learning rhythm, etc. In the process of traditional calligraphy information-based teaching, students can practice calligraphy while watching teaching videos. While watching teaching videos, students may need to operate the equipment that plays teaching videos, which may change the physical or psychological state of students. Physical and psychological changes constitute a major obstacle in the students' learning process.

[0003] There are two existing methods for controlling playback devices: manual click and voice control. Manual click means clicking the buttons on the mobile terminal interface with your finger to control play, pause, fast forward and rewind, etc. The voice control method uses a voice recognition system to convert voice signals into control signals to control video playback, pause, fast forward and rewind, etc.

[0004] Manual click control requires learners to put down their pens, change their writing posture, and cause fluctuations in their writing mentality. Voice control of playback and pause requires learners to switch from static to dynamic speech, which will affect their psychological state, and voice recognition is prone to ambiguity, and is not suitable for multiple people learning at the same time. Summary of the invention

[0005] To solve the above problems, an object of the embodiments of the present invention is to provide a human-computer interaction device and system based on facial features.

[0006] In a first aspect, an embodiment of the present invention provides a human-computer interaction device based on facial features, comprising: an image acquisition device, a processor and a display screen, wherein the image acquisition device and the display screen are respectively connected to the processor;

[0007] The display screen is used to play a preset video;

[0008] The image acquisition device is used to continuously acquire user images when the display screen plays the preset video, and send the user images to the processor;

[0009] The processor is used to extract the user face image from each of the user images in turn; extract the facial feature information from each of the user face images; determine the user's posture change information according to the change values ​​of the facial feature information of the multiple user face images and the time interval between the acquisition of the user face images, wherein the posture change information includes the angle change value and the angular velocity change value; generate a corresponding control instruction according to the posture change information, perform a corresponding control operation on the preset video according to the control instruction, and send the preset video after the control operation to a digital display screen;

[0010] The display screen is also used to play the preset video after the control operation.

[0011] In a second aspect, an embodiment of the present invention further provides a human-computer interaction system based on facial features, comprising: a plurality of human-computer interaction devices as described above.

[0012] In the solution provided in the first aspect of the embodiment of the present invention, by detecting the human facial biometrics and its motion posture, the current motion state of the user's face can be determined, and then control signals such as pause or play can be issued to control video playback through facial movement. This interactive method is simple and does not require the user to move the body significantly. It can avoid the destruction of the writing state by traditional methods and make it easy for students to maintain the continuity of their learning mentality. The interactive method provided by this application provides a fundamental promotion to the informatization process of calligraphy education and has important practical value.

[0013] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0015] Figure 1 A first structural schematic diagram of a human-computer interaction device based on facial features provided by an embodiment of the present invention is shown;

[0016] Figure 2 A schematic diagram showing facial feature points extracted according to an embodiment of the present invention is shown;

[0017] Figure 3 A second structural schematic diagram of a human-computer interaction device based on facial features provided by an embodiment of the present invention is shown;

[0018] Figure 4 A schematic diagram of a front view of facial feature points provided by an embodiment of the present invention is shown;

[0019] Figure 5 A schematic top view of facial feature points provided by an embodiment of the present invention is shown;

[0020] Figure 6 A schematic diagram showing a head movement posture provided by an embodiment of the present invention is shown;

[0021] Figure 7 A structural schematic diagram of a human-computer interaction system based on facial features provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0022] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0023] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0024] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0025] The embodiment of the present invention provides a human-computer interaction device based on facial features, see Figure 1 As shown, it includes: an image acquisition device 10, a processor 20 and a display screen 30, and the image acquisition device 10 and the display screen 30 are connected to the processor 20 respectively.

[0026] The display screen 30 is used to play a preset video; the image acquisition device 10 is used to continuously acquire user images when the display screen plays the preset video, and send the user images to the processor 20.

[0027] The processor 20 is used to extract the user face image from each user image in turn; extract the facial feature information from each user face image; determine the user's posture change information according to the change value of the facial feature information of multiple user face images and the time interval between the user face images collected, and the posture change information includes the angle change value and the angular velocity change value; generate a corresponding control instruction according to the posture change information, perform a corresponding control operation on the preset video according to the control instruction, and send the preset video after the control operation to the digital display screen 30;

[0028] The display screen 30 is also used to play the preset video after the control operation.

[0029] In the embodiment of the present invention, the preset video refers to the video that the user currently needs to watch, such as the teaching video that the user needs to watch when practicing calligraphy. When the preset video is played through a certain device, the user image of the user in front of the device can be collected through a camera or other device. The device can be a smart phone, a tablet computer, a computer, etc., which is not limited in this embodiment. After the user image is obtained, the user's face image in the user image can be extracted through face detection technology.

[0030] Generally speaking, due to reasons such as lighting and shooting angle, the user image may be overexposed, have unreasonable contrast and distortion. At the same time, the image background obtained by the camera or camera may also have very serious pollution noise, so there are various unfavorable factors such as distortion, pollution, breakage, blur, distortion, etc., and these factors will affect the accuracy of subsequent feature extraction. Optionally, this embodiment also includes a process of preprocessing the user image. By preprocessing, background interference and noise are removed to obtain a good recognition rate, which can improve the accuracy of subsequent feature extraction. The preprocessing of the user image mainly adopts the following steps: grayscale enhancement, filtering, morphological processing and adaptive binarization of the image. After preprocessing the user image, the user's face image in the preprocessed user image can be extracted.

[0031] In addition, in this embodiment, the face detection network can be used to extract the user face image in the user image. Specifically, the face detection network is a convolutional neural network with a total of 16 layers, consisting of 1 convolution layer, 12 Inception layers, 3 pooling layers and 1 fully connected layer. The network input is a user image of 256×256 pixels, and the output is a 256-dimensional feature vector containing the extracted facial feature information.

[0032] The front end of the network consists of convolutional layers and pooling layers, which are used to extract the most basic low-level features of the user image, such as points, lines, and intersections. The main part of the network consists of 12 Inception layers and 2 pooling layers. From the perspective of network design, these 14 layers are responsible for arranging and combining the front-end input from simple to complex, learning structural features that can describe facial differences during network training, and finally compressing them to 1024-dimensional feature vectors. The output of the network consists of a fully connected layer, which compresses the input 1024-dimensional feature vector to 256-dimensional for output. This design can randomly shield the connection between the 1024-dimensional vector and the 256-dimensional vector, reduce the overfitting phenomenon during network training, and finally extract the user's face image.

[0033] In the embodiment of the present invention, the facial feature information includes feature points extracted from the user's face image, or information related to the feature points, such as the coordinate values ​​of the feature points. The feature points of the face refer to the outer contour of the face and key points near the facial features, including the outer contour of the eyebrows, the upper and lower contours of the eyes, the midline of the nose, the upper and lower contours of the lips, etc. Figure 2 As shown. Using the facial feature recognition algorithm, multiple feature points can be located from the user's face image, and the coordinates of each feature point can be determined, and the coordinates contain the posture information of the entire face. Figure 2 In the figure, 68 feature points (from 0 to 67) are located as an example.

[0034] In the embodiment of the present invention, multiple user images are collected continuously, that is, multiple user face images can be obtained continuously. Through the different facial feature information of different user face images, the change value between the facial feature information can be determined; at the same time, the time interval between different user images is obtained, and the speed change value can be determined based on the change value and the time interval. At the same time, in this embodiment, the information related to the angle is used as the posture change information, and the posture change information is used to describe the user's head rotation.

[0035] In the embodiment of the present invention, the rotation of the user's head is represented by the posture change information, and then a control instruction corresponding to the posture change information can be generated. For example, if the user's head turns left, a fast-rewind instruction is generated, if the user's head turns right, a fast-forward instruction is generated, and if the user's head turns upward, a pause instruction is generated. After asserting the control instruction, the playback of the preset video can be controlled, such as fast-forward playback.

[0036] The embodiment of the present invention provides a human-computer interaction device based on facial features. By detecting the biological features of the human face and its motion posture, it can determine the current motion state of the user's face, and then can send control signals such as pause or play, so as to control the video playback through facial movement. This interactive method is simple and does not require the user to move the body significantly. It can avoid the destruction of the writing state by traditional methods, and it is easy for students to maintain the continuity of their learning mentality. The interactive method provided by this application provides a fundamental promotion to the informatization process of calligraphy education and has important practical value.

[0037] Based on the above embodiments, see Figure 3 As shown, the human-computer interaction device based on facial features also includes: a memory 40, which is connected to the processor 20; the memory 40 is used to store a preset video, and send the preset video to the processor 20 when the preset video needs to be played, and the processor 20 instructs the display screen 30 to play the preset video.

[0038] Based on the above embodiments, see Figure 3 As shown, the human-computer interaction device based on facial features also includes: a communication device 50, which is connected to the processor 20; the communication device 50 is used to obtain a preset video and send the preset video to the processor 20, and the processor 20 instructs the display screen 30 to play the preset video.

[0039] In the embodiment of the present invention, the preset video may be pre-stored in a memory, or may be remotely acquired through a communication device, which is not limited in the present embodiment.

[0040] Based on the above embodiment, the processor 20 extracts facial feature information from each user's facial image, including: extracting feature points from the user's facial image, and performing similarity detection on images of preset sizes in the neighborhood of the feature points and the trained facial feature filters in turn; setting a unified coordinate system based on the camera's internal parameters, and determining the coordinate values ​​of the feature points that pass the similarity detection in the coordinate system, where the coordinate values ​​are an item of information in the facial feature information.

[0041] In the embodiment of the present invention, a sample set of labeled facial features is used for training in advance. After the training is completed, each set of parameters represents a specific small-piece filter, i.e., a facial feature filter, such as an eye filter, a mouth filter, etc. By training the facial feature filter, a small piece of image in the neighborhood of a feature point coordinate can be detected for similarity. For example, the image sampled near the eye feature point is detected using a small piece model of the eye, and the image sampled near the mouth feature point is detected using a small piece model of the mouth. Among them, the ASM algorithm can be used to obtain the feature points in the user's face image.

[0042] At the same time, the camera used by the user to collect the user image has specific camera intrinsic parameters, which are fixed. Based on the camera intrinsic parameters, a coordinate system, such as a world coordinate system, can be set. When a feature point passes the similarity test, it means that the feature point is a valid feature point and can be used as a reference for subsequent processing. Therefore, the coordinate value of the feature point can be determined at this time to facilitate the calculation of subsequent pose parameters.

[0043] On the basis of the above embodiment, the image acquisition device 10 can be specifically a camera. If the camera can acquire three-dimensional facial images, the head rotation can be conveniently determined according to the change of the three-dimensional coordinates of the facial feature points. However, since the camera of a general device can only acquire two-dimensional plane images, that is, the user's facial image acquired by the camera does not have depth information, a large amount of processing is required when using the two-dimensional plane image to determine the head rotation, which will reduce the processing efficiency. In this embodiment, the user's head rotation is determined by selecting some feature points. Specifically, the facial feature information includes the coordinate values ​​of the feature points. The processor 20 determines the user's posture change information including:

[0044] Step A1: Pre-select at least four standard feature points S from the user's feature points a ,S b ,S c ,S d ; Among them, in the standard face image, the standard feature point S a With S b The line segment between the standard feature point S c With S d The difference between the angle between the line segments and 90 degrees is less than a preset value.

[0045] In the embodiment of the present invention, at least four feature points are predetermined, namely, four standard feature points, two of which are a With S b The line segment between the feature point S c With S d The difference between the angle between the line segments and 90 degrees is less than a preset value, that is, the angle between the two line segments is approximately 90 degrees.

[0046] Specifically, the positions of certain feature points in a face are basically fixed, such as the position of the eyes. At the same time, if there are two perpendicular line segments in a plane, in three-dimensional space, the two line segments need to be rotated around certain specific axes so that the two line segments projected onto the plane remain perpendicular. The user's face image is a two-dimensional image. By selecting four perpendicular feature points, the position change of the user's head rotating around certain specific axes can be correctly identified. For example, Figure 2As shown, the four standard feature points are the leftmost feature point 36 of the left eye, the rightmost feature point 45 of the right eye, the feature point 33 of the nose tip, and the feature point 8 of the chin. Figure 4 The schematic diagram shows the positions of four standard feature points. a ,S b ,S c ,S d They are Figure 4 A, B, C, D, the angle θ between AB and CD is approximately 90 degrees.

[0047] It should be noted that the process of determining the four standard feature points in step A1 is a pre-executed process, that is, it is not necessary to determine the four standard feature points after the user's facial image is collected.

[0048] Step A2: Determine four feature points f in the facial feature information that correspond to the four standard feature points respectively a ,f b ,f c ,f d , determine the feature points f in each user's face image in turn a With f b The distance between the feature points f c With f d The distance between them and determine the feature point f a With f b The maximum distance between Feature point f c With f d The maximum distance between

[0049] In the embodiment of the present invention, in order to unify the reference for determining the angle, the maximum distance value between the feature points is used as the reference. Specifically, when the distance between the user's face and the camera is not considered, when the plane where the user's face is located is parallel to the plane captured by the camera, the distance between the feature points is the largest; when the user's face is offset, the distance between the feature points will decrease, and the angle that can characterize the head posture can be determined by the distance between the feature points and the maximum distance value.

[0050] Step A3: Determine the first angle and the second angle corresponding to the user's face image:

[0051] Where i∈[1,n], n is the number of user face images, Y i represents the first angle of the i-th user's face image, P i represents the second angle of the i-th user's face image, Represents the feature point f in the i-th user's face image a With f bThe distance between Represents the feature point f in the i-th user's face image c With f d The distance between.

[0052] In the embodiment of the present invention, the line segment between two feature points of the user's face image can be considered as the projection of the plane where the maximum distance line segment is located, so the first angle is Specifically, for the convenience of explanation, Figure 4 represents the front view of a face, Figure 4 The four feature points A, B, C, D in the image (corresponding to the four feature points f in the user's face image) a ,f b ,f c ,f d ) are in the same plane, and Figure 4 The distance between the corresponding feature points of the face in is the largest, that is Figure 4 The distance between AB is The distance between CDs is In addition, see Figure 5 As shown, Figure 5 represents a top view of a face, Figure 5 The line segment AB in Figure 4 The plane where the four feature points A, B, C, and D are located, and in Figure 5 The distance between AB is still In actual situations, with the camera as a reference, if the user's head is deflected in the left or right direction (that is, the user shakes his head to the left or right), that is, in the real world coordinate system, the feature points A and B of the user's head are located at positions A1 and B1 at this time. Without considering the up and down rotation of the user's head (that is, the user does not nod or raise his head), Figure 5 The distance between the midline segment A1B1 is still However, since the camera can only capture two-dimensional images, that is, in the user face image captured by the camera, the feature points A and B are mapped to Ai and Bi. For the i-th user face image captured, Ai and Bi are the positions of the feature points in the user face image, that is, the distance between the line segments Ai and Bi is the feature point f. a With f b The distance between Therefore, the angle of the user's deflection in the left and right directions is Similarly, the angle of the user's deflection in the up and down directions can be determined as

[0053] Step A4: Determine the first angle change value ΔY, the second angle change value ΔP, and the first angular velocity change value Δω between the i-th and j-th user face images Y , the second angular velocity change value ΔωP :

[0054] ΔY=Y i -Y j , ΔP=P i -P j , Among them, Δt ij Indicates the time interval between collecting the i-th user face image and the j-th user face image.

[0055] In the embodiment of the present invention, each user face image can determine its own angle, that is, the first angle of the j-th user face image is Y j , the second angle is P j The angle change value is determined by the angle values ​​of two user face images (such as two adjacent frames of user face images), and the angular velocity change value can be determined according to the time interval.

[0056] Step A5: Determine the first angle change direction between the i-th and j-th user face images and the second angle change direction

[0057]

[0058]

[0059] Among them, the four feature points f a ,f b ,f c ,f d The coordinates of the i-th user’s face image are (xi a ,yi a )、(xi b ,yi b )、(xi c ,yi c )、(xi d ,yi d ); Feature point f a ,f b ,f c ,f d The coordinates of the jth user’s face image are (xj a ,yj a )、(xj b ,j b )、(xj c ,yj c )、(xj d ,yj d ).

[0060] In the embodiment of the present invention, in the above step A4, the angle change value can be determined, that is, it can be determined that the user's head has rotated left and right or up and down, but it cannot be distinguished whether it is rotated to the left or right. In this embodiment, the change in the coordinate value of the feature point is used to determine the rotation direction. Specifically, Figure 6 As shown in the figure, when the human head rotates, the head movement posture can be regarded as the movement of the head in six directions in three-dimensional space, including the six directions of up, down, left, right, front and back, and various combinations of the four directions of up, down, left, right and back and the two directions of front and back. Euler angles describe the three angular orientations of rigid body motion in a fixed coordinate system. Any direction can be expressed by a combination of the three angles of yaw, pitch and roll, which can accurately express the rotation angle of the head. Figure 6 As shown in the figure, the yaw angle refers to the angle caused by the left-right rotation of the head; the pitch angle refers to the angle caused by the up-and-down rotation of the head; and the roll angle refers to the angle caused by the rotation in the plane. Based on the characteristics of the human body, the head deflects based on the movement of the neck, that is, the rotation axis of the head when rotating is located at the neck. Therefore, when the head rotates, the feature points of the face will also shift as a whole. For example, when the head turns to the right under the action of the neck, the four feature points f in the user's face image will be displaced. a ,f b ,f c ,f d The whole body will also move to the right. In this embodiment, the rotation direction of the head is determined based on this feature.

[0061] Specifically, the j-th user face image is collected first, and then the i-th user face image is collected, that is, the time when the j-th user face image is collected is earlier than the time when the i-th user face image is collected. When determining the first angle change direction, the feature point f in the j-th user face image a and f b The coordinates of are (xj a ,yj a )、(xj b ,j b ); then, in the i-th user face image, the feature point f a and f b The coordinates of are (xi a ,yi a )、(xi b ,yi b ), that is, the feature point f a From (xj a ,yj a ) moved to (xi a ,yi a ), whose moving vector is Similarly, the feature point f bFrom (xj b ,j b ) moved to (xi b ,yi b ), similarly, its moving vector is Then the feature point f a and f b The overall motion vector Right now:

[0062]

[0063] Similarly, when the up and down rotation occurs, for the feature point f c ,f d , the second angle change direction for:

[0064] In an embodiment of the present invention, based on the characteristics of head rotation, the two-dimensional user face image can be used to determine the angle change value, angular velocity change value, angle change direction and other posture change information between two user face images, thereby determining the rotational displacement, rotation speed and rotation direction of the user's head, thereby facilitating the subsequent generation of control instructions consistent with the user's rotation posture.

[0065] Based on the above embodiment, the process of determining the posture change information requires that the distance between the user's face and the camera remain basically the same. If the distance between the user's face and the camera changes, the determined posture change information may be inaccurate. Therefore, in this embodiment, the processor 20 generates corresponding control instructions according to the posture change information, including:

[0066] Step B1: When the second angle change value ΔP is less than the first preset threshold and the first angle change value ΔY is greater than the second preset threshold, according to the first angle change value ΔY, the first angular velocity change value Δω Y and the first angle change direction Generate corresponding control instructions.

[0067] Step B2: When the first angle change value ΔY is less than the first preset threshold and the second angle change value ΔP is greater than the second preset threshold, according to the second angle change value ΔP, the second angular velocity change value Δω P and the second angle change direction Generate corresponding control instructions.

[0068] In the embodiment of the present invention, when the second angle change value ΔP is less than the first preset threshold, due to the maximum distance value in the current time period is fixed, so it means that the feature point f between the two user face images c With f dThe distance between the user's face and the camera does not change much. At this time, it can be considered that the distance between the user's face and the camera remains basically the same, and the user's head is at the feature point f c With f d At the same time, if the first angle change value ΔY is greater than the second preset threshold, it means that the user's head is at the feature point f a With f b There is a large rotation in the direction (such as left and right rotation), then it can be determined that the user's head is in the f a With f b The rotation occurs in the direction, and then the first angle change value ΔY and the first angular velocity change value Δω can be used. Y and the first angle change direction Generate corresponding control instructions. For example, change the direction according to the first angle It can be determined that the user's head is rotating to the right, according to the first angle change value ΔY and the first angular velocity change value Δω Y The size of can determine that the rotation amplitude of the user's head is large enough, and at this time a control instruction corresponding to the user's head rotating to the right can be generated, such as a fast-forward instruction.

[0069] Similarly, in step B2, when the first angle change value ΔY is less than the first preset threshold and the second angle change value ΔP is greater than the second preset threshold, other corresponding control instructions can also be generated, such as generating a control instruction for playing the video when the user rotates his head downward (i.e. nods).

[0070] A human-computer interaction device based on facial features provided by an embodiment of the present invention can determine the current motion state of the user's face by detecting the human facial biometric features and its motion posture, and then can send control signals such as pause or play to achieve control of video playback through facial movement. This interactive method is simple and does not require the user to move the body significantly, which can avoid the destruction of the writing state by traditional methods and make it easy for students to maintain the continuity of their learning mentality. The interactive method provided by this application provides a fundamental promotion to the informatization process of calligraphy education and has important practical value. At the same time, the two-dimensional user face image can be used to determine the angle change value, angular velocity change value, and angle change direction and other posture change information between the two user face images, so that the rotational displacement, rotation speed, and rotation direction of the user's head can be determined, thereby facilitating the subsequent generation of control instructions consistent with the user's rotation posture.

[0071] Based on the same inventive concept, the embodiment of the present invention also provides a human-computer interaction system based on facial features, see Figure 7 As shown, the system comprises: a plurality of separately arranged human-computer interaction devices 1 as described above, Figure 7 In the description, three human-computer interaction devices 1 are taken as an example.

[0072] In an embodiment of the present invention, the human-computer interaction device 1 can be a device used in an information-based education environment, such as a smart device used in a classroom (such as a smart phone, a tablet computer), etc., or it can be a device pre-fixed and installed at a preset position. A user can watch the video played by the device 1 by sitting in front of the human-computer interaction device 1, and the user can conveniently control the video played by the human-computer interaction device 1 through head movements.

[0073] Optional, see Figure 7 As shown, the system further includes: a host computer 2; the human-computer interaction device 1 further includes a communication device 50.

[0074] The host computer 2 is connected to the human-computer interaction device 1 via the communication device 50, and is used to send the preset video to the human-computer interaction device 1, and instruct the human-computer interaction device 1 to play the preset video.

[0075] A human-computer interaction system based on facial features provided by an embodiment of the present invention can determine the current motion state of the user's face by detecting the human facial biometric features and its motion posture, and then can send control signals such as pause or play to achieve video playback control through facial movement. This interactive method is simple and does not require the user to move the body significantly, which can avoid the destruction of the writing state by traditional methods and make it easy for students to maintain the continuity of their learning mentality. The interactive method provided by this application provides a fundamental promotion to the informatization process of calligraphy education and has important practical value. At the same time, the two-dimensional user face image can be used to determine the angle change value, angular velocity change value, and angle change direction and other posture change information between the two user face images, so that the rotational displacement, rotation speed, and rotation direction of the user's head can be determined, thereby facilitating the subsequent generation of control instructions consistent with the user's rotation posture.

[0076] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A human-computer interaction device based on facial features, characterized in that: include: An image acquisition device, a processor and a display screen, wherein the image acquisition device and the display screen are respectively connected to the processor; The display screen is used to play a preset video; The image acquisition device is used to continuously acquire user images when the display screen plays the preset video, and send the user images to the processor; The processor is used to extract the user face image from each of the user images in turn; extract the facial feature information from each of the user face images; determine the user's posture change information according to the change values ​​of the facial feature information of the multiple user face images and the time interval between the acquisition of the user face images, wherein the posture change information includes the angle change value and the angular velocity change value; generate a corresponding control instruction according to the posture change information, perform a corresponding control operation on the preset video according to the control instruction, and send the preset video after the control operation to a digital display screen; The display screen is also used to play the preset video after the control operation; Wherein, the facial feature information includes feature points extracted from the user's face image; Among them, the feature points of the face refer to the outer contour of the face and the key points near the facial features; The control instructions include: fast rewind instruction, fast forward instruction, pause instruction and play instruction; The processor extracts facial feature information from each of the user's face images, including: Extracting feature points from the user's face image, and sequentially performing similarity detection between images of a preset size in the neighborhood of the feature points and the trained facial features filter; A unified coordinate system is set based on the camera internal parameters, and a coordinate value of a feature point detected by similarity in the coordinate system is determined, where the coordinate value is one of the facial feature information; The facial feature information includes coordinate values ​​of feature points, and the processor determines that the user's posture change information includes: Pre-select at least four standard feature points S from the user's feature points a ,S b ,S c ,S d ; Wherein, in the standard face image, the standard feature point S a With S b The line segment between the standard feature point S c With S d The difference between the angle between the line segments and 90 degrees is less than the preset value; Determine four feature points f in the facial feature information that correspond to the four standard feature points respectively a ,f b ,f c ,f d , determine the feature points f in each of the user's face images in turn a With f b The distance between the feature points f c With f d The distance between them and determine the feature point f a With f b The maximum distance between Feature point f c With f d The maximum distance between Determine the first angle and the second angle corresponding to the user face image: Where i∈[1,n], n is the number of the user's face images, Y i represents the first angle of the i-th user's face image, P i represents the second angle of the i-th user's face image, and represents the feature point f in the i-th user's face image a With f b The distance between them represents the feature point f in the i-th user's face image. c With f d The distance between Determine the first angle change value ΔY, the second angle change value ΔP, and the first angular velocity change value Δω between the i-th and j-th user face images Y , the second angular velocity change value Δω P : ΔY=Y i -Y j , ΔP=P i -P j , Among them, Δt ij Indicates the time interval between the collection of the i-th user's face image and the j-th user's face image; Determine the first angle change direction between the i-th and j-th user face images and the second angle change direction Among them, the four feature points f a ,f b ,f c ,f d The coordinates of the i-th user’s face image are (xi a ,yi a )、(xi b ,yi b )、(xi c ,yi c )、(xi d ,yi d ); feature point f a ,f b ,f c ,f d The coordinates of the jth user’s face image are (xj a ,yj a )、(xj b ,j b )、(xj c ,yj c )、(xj d ,yj d ).

2. The device according to claim 1, characterized in that The processor generates corresponding control instructions according to the posture change information, including: When the second angle change value ΔP is less than the first preset threshold and the first angle change value ΔY is greater than the second preset threshold, according to the first angle change value ΔY, the first angular velocity change value Δω Y and the first angle change direction Generate corresponding control instructions; When the first angle change value ΔY is less than a first preset threshold and the second angle change value ΔP is greater than a second preset threshold, according to the second angle change value ΔP, the second angular velocity change value Δω P and the second angle change direction Generate corresponding control instructions.

3. The device according to any one of claims 1-2, characterized in that: The processor extracting the user face image from each of the user images comprises: Preprocessing the user image, wherein the preprocessing includes one or more of grayscale enhancement, filtering, and binarization; A user face image is extracted from each preprocessed user image.

4. The device according to claim 1, characterized in that Also includes: a memory connected to the processor; The memory is used to store the preset video, and send the preset video to the processor when the preset video needs to be played, and the processor instructs the display screen to play the preset video.

5. The device according to claim 1, characterized in that Also includes: a communication device connected to the processor; The communication device is used to obtain a preset video and send the preset video to the processor, and the processor instructs the display screen to play the preset video.

6. A human-computer interaction system based on facial features, characterized in that: include: A plurality of separately arranged human-computer interaction devices as described in any one of claims 1 to 4.

7. The system according to claim 6, characterized in that Also includes: Host computer; the human-computer interaction device also includes a communication device; the host computer is connected to the human-computer interaction device through the communication device, and is used to send a preset video to the human-computer interaction device, instructing the human-computer interaction device to play the preset video.