Human-machine interaction method and device for stretching shoulder and neck in vehicle, terminal and storage medium
By acquiring and analyzing the driver's status data, and using the posture algorithm model to judge and feedback stretching postures, the problem of low anti-fatigue participation in the car in the existing technology is solved, and driving safety and fatigue relief effects are improved.
Patent Information
- Application Number
- CN202410787675.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, in-car anti-fatigue methods have low participation and are difficult to effectively relieve driver fatigue, resulting in reduced driving safety.
By obtaining the user status data, determine the stretching posture sequence, and use the trained posture algorithm model to obtain the facial features and joint position information in the video data, generate a visual human body key point distribution map, determine whether the user's stretching posture meets the standards, and improve User engagement and fatigue relief effects.
It improves user engagement, achieves more objective and accurate fatigue relief, enhances driving safety, and specifically improves fatigue status by quantifying fatigue and recommending appropriate posture sequences.
Smart Images

Figure CN118570778A
Abstract
Description
Technical Field
[0001] The present application relates to the field of human-computer interaction technology, and specifically to a human-computer interaction method, device, terminal and storage medium for in-vehicle shoulder and neck stretching. Background Art
[0002] When driving for a long time in the car, users are prone to fatigue. Currently, there are some fatigue detection / reminder methods based on DMS algorithms, which can help users refresh themselves by lowering windows and other operations after detecting user fatigue. However, these methods are passive anti-fatigue methods, with low user participation, and it is difficult to effectively relieve fatigue, which will reduce driving safety.
[0003] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention
[0004] The present application provides a human-computer interaction method, device, terminal and storage medium for in-vehicle shoulder and neck stretching to solve the problem that the anti-fatigue methods in the related art have low user participation, are difficult to effectively achieve fatigue relief, and lead to reduced driving safety.
[0005] To achieve the above objectives, this application adopts the following technical solutions:
[0006] Acquiring status data of the user, and determining a stretching posture sequence according to the status data;
[0007] For each stretching posture in the stretching posture sequence, video data of a user performing the stretching posture is obtained, and facial features and joint position information of each frame image in the video data is obtained through a trained posture algorithm model;
[0008] Generate a visual distribution map of key points of the human body according to the facial features and joint position information of each frame of the image;
[0009] According to the human body key point distribution map of each frame image, it is judged whether the actual stretching posture of the user meets the standard.
[0010] According to the above technical means, the embodiment of the present application allows the user to independently check whether the stretching posture is standard by drawing the key points of the visual facial features and limbs. At the same time, the terminal performs data analysis based on these key points, and can more objectively and accurately determine whether the user's stretching posture is standard. The in-car limb interaction scene of the present invention increases user participation and can effectively relieve driving fatigue.
[0011] Optionally, in one embodiment of the present application, determining a stretching posture sequence according to the state data includes:
[0012] Calculating the user's fatigue level according to the status data;
[0013] According to the fatigue level, determining a target fatigue level interval from a plurality of preset fatigue level intervals;
[0014] The preset posture sequence corresponding to the target fatigue degree is used as the stretching posture sequence.
[0015] According to the above technical means, the embodiment of the present application quantifies the user's fatigue through status data analysis, and recommends a suitable stretching posture sequence according to the fatigue, which can improve the user's current fatigue state in a targeted manner.
[0016] Optionally, in one embodiment of the present application, the posture algorithm model includes a convolutional neural network and a convolutional spatiotemporal network, and the acquiring of facial features and joint position information of each frame image in the video data through the trained posture algorithm model includes:
[0017] For each frame of image, human body detection is performed according to the frame of image to obtain a local target image, and the local target image is input into the convolutional neural network to obtain image features of the frame of image;
[0018] Inputting the image features of each frame of image into the convolutional spatiotemporal network to obtain the spatiotemporal features corresponding to each frame of image;
[0019] For each frame of image, the facial features and joint position information are determined based on the image features and the spatiotemporal features of the frame of image.
[0020] According to the above technical means, the embodiment of the present application extracts the features of 2D posture estimation of each frame of image through a convolutional neural network to obtain image features, and converts these image features into spatiotemporal features through a spatiotemporal convolutional network, which can better capture the dynamic changes of human body movement.
[0021] Optionally, in one embodiment of the present application, generating a visualized human body key point distribution map according to the facial features and joint position information of each frame of image includes:
[0022] For each frame of image, a plurality of vertex data are generated according to the facial features and joint position information of the frame of image;
[0023] Selecting one of the vertex data, calculating pixel information according to the vertex data, and performing color attachment in the current frame buffer according to the pixel information to obtain a rendering texture;
[0024] Determine whether there is unprocessed vertex data;
[0025] If it exists, a new frame buffer is constructed, and the rendering texture is used as input data of the new frame buffer. For the unprocessed vertex data, the step of selecting one vertex data and calculating pixel information based on the vertex data is continued until all vertex data are processed to obtain a visualized distribution map of the key points of the human body.
[0026] According to the above technical means, the embodiment of the present application obtains the pixel information of each vertex by vertex calculation, and draws the key points by texture rendering, so that the user can intuitively feel his own limb movements through the position distribution and change process of the key points.
[0027] Optionally, in one embodiment of the present application, when the stretching posture performed by the user is a head bending posture, judging whether the actual stretching posture of the user meets the standard according to the human body key point distribution map of each frame image includes:
[0028] Determine the starting angle, the elbow amplitude and the elbow duration according to the human body key point distribution map of each frame image, wherein the starting angle is used to reflect the angle between the facial axis and the shoulder line, and the elbow amplitude is used to reflect the change in the angle between the facial axis and the shoulder line;
[0029] Compare the starting angle, the bend amplitude and the bend duration with their corresponding standard data respectively;
[0030] Whether the user's actual head bending posture meets the standard is determined based on the comparison result.
[0031] According to the above-mentioned technical means, the embodiment of the present application sets the judgment conditions of the elbow posture to include three indicators: starting angle, elbow amplitude and elbow duration. Only when these three indicators are met at the same time can it be determined that the user's actual elbow posture meets the standard, which can effectively improve the objectivity and accuracy of the elbow posture judgment.
[0032] Optionally, in one embodiment of the present application, when the stretching posture performed by the user is a head turning posture, the calculating the posture change information of the user according to the human body key points of each video frame includes:
[0033] Determine the initial relative position, final relative position and duration of the head turning between the key points located on the face and the key points located on the shoulders according to the human body key point distribution map of each frame image;
[0034] Comparing the starting relative position, the final relative position and the duration of the head rotation with the corresponding standard data respectively;
[0035] Whether the user's actual head turning posture meets the standard is determined based on the comparison result.
[0036] According to the above-mentioned technical means, the embodiment of the present application sets the judgment conditions of the head turning posture to include three indicators: the relative position between the facial key points and the shoulder key points at the beginning, the relative position between the facial key points and the shoulder key points at the end, and the duration of the head turning. Only when the three indicators are met at the same time can it be determined that the user's actual head turning posture meets the standard, which can effectively improve the objectivity and accuracy of the head turning posture judgment.
[0037] Optionally, in one embodiment of the present application, after determining whether the actual stretching posture of the user meets the standard, the method further includes:
[0038] If the current stretching posture meets the standard, the preset animation data is played, and the user is prompted to perform the next stretching posture in the stretching posture sequence;
[0039] If the current stretching posture does not meet the standard, the user is prompted to re-execute the current stretching posture until the current stretching posture meets the standard.
[0040] According to the above-mentioned technical means, the embodiment of the present application can further improve the fun of human-computer interaction and realize a more complete functional logic control process by setting a reward animation effect for reaching a posture standard.
[0041] A second aspect of the present application provides a human-machine interactive device for neck and shoulder stretching in a vehicle, comprising:
[0042] An acquisition module, used to acquire status data of the user and determine a stretching posture sequence according to the status data;
[0043] a recognition module, for obtaining, for each stretching posture in the stretching posture sequence, video data of a user performing the stretching posture, and obtaining facial features and joint position information of each frame of the video data through a trained posture algorithm model;
[0044] A drawing module, used to generate a visual distribution map of key points of the human body according to the facial features and joint position information of each frame of the image;
[0045] The judgment module is used to judge whether the actual stretching posture of the user meets the standard according to the human body key point distribution map of each frame image.
[0046] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a human-computer interaction program for in-vehicle shoulder and neck stretching stored in the memory and executable on the processor. When the processor executes the human-computer interaction program for in-vehicle shoulder and neck stretching, the steps of the human-computer interaction method for in-vehicle shoulder and neck stretching as described in any one of the above items are implemented.
[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a human-computer interaction program for in-vehicle shoulder and neck stretching is stored. When the human-computer interaction program for in-vehicle shoulder and neck stretching is executed by a processor, the steps of the human-computer interaction method for in-vehicle shoulder and neck stretching as described in any one of the above items are implemented.
[0048] Beneficial effects of this application:
[0049] (1) The embodiment of the present application draws visualized key points of facial features and limbs, allowing the user to independently check whether the stretching posture is standard. At the same time, the terminal performs data analysis based on these key points, and can more objectively and accurately determine whether the user's stretching posture is standard. The in-car limb interaction scene of the present invention improves user participation and can effectively relieve driving fatigue.
[0050] (2) The embodiment of the present application quantifies the user's fatigue through status data analysis, and determines the recommended stretching posture sequence based on the user's current fatigue level, so as to improve the user's current fatigue state in a targeted manner.
[0051] (3) The embodiment of the present application extracts the features of 2D posture estimation of each frame of the image through a convolutional neural network to obtain image features, and converts these image features into spatiotemporal features through a spatiotemporal convolutional network, which can better capture the dynamic changes of human body movements.
[0052] (4) The embodiment of the present application can further enhance the fun of human-computer interaction and realize a more complete functional logic control process by setting a reward animation effect for reaching a posture standard.
[0053] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0055] Figure 1 A schematic flow chart of a human-computer interaction method for shoulder and neck stretching in a vehicle according to an embodiment of the present application;
[0056] Figure 2 A schematic diagram of the software function flow of the body interaction application program according to an embodiment of the present application;
[0057] Figure 3 A schematic diagram of the data collection and processing flow of an embodiment of the present application;
[0058] Figure 4 A schematic diagram of a coordinate system for key points of an embodiment of the present application;
[0059] Figure 5 A schematic diagram showing the key points of an embodiment of the present application forming the horizontal axis and the vertical axis;
[0060] Figure 6 This is a schematic diagram of the distribution state of key points of the left elbow in an embodiment of the present application;
[0061] Figure 7 This is a schematic diagram of the distribution state of key points of the right elbow in an embodiment of the present application;
[0062] Figure 8 This is a schematic diagram of the distribution state of key points of turning the head left according to an embodiment of the present application;
[0063] Fig. 9 This is a schematic diagram of the distribution state of key points of right turning of the head according to an embodiment of the present application;
[0064] Fig.10 This is a structural schematic diagram of a human-machine interactive device for shoulder and neck stretching in a vehicle according to an embodiment of the present application;
[0065] Fig.11 This is a block diagram of the internal structure principles of the terminal device according to an embodiment of the present application. DETAILED DESCRIPTION
[0066] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0067] The following describes the human-computer interaction method, device, terminal and storage medium for shoulder and neck stretching in the vehicle of the embodiment of the present application with reference to the accompanying drawings. In view of the problem mentioned in the above background technology center that the anti-fatigue method with low user participation is difficult to effectively achieve fatigue relief, which will lead to reduced driving safety, the present application provides a human-computer interaction method for shoulder and neck stretching in the vehicle, in which the user's state data is obtained, and the stretching posture sequence is determined according to the state data; for each stretching posture of the stretching posture sequence, the video data of the user performing the stretching posture is obtained, and the facial features and joint position information of each frame image in the video data is obtained through the trained posture algorithm model; a visual human body key point distribution map is generated according to the facial features and joint position information of each frame image; according to the human body key point distribution map of each frame image, it is judged whether the actual stretching posture of the user meets the standard. The present invention prompts the user to perform a specific stretching posture sequence for relieving fatigue through the current state of the user. The video data of the user's movement is obtained according to the in-vehicle camera, and the key points of the facial features and limbs are established and displayed to the user, so that the user can independently check whether the stretching posture is standard. At the same time, the terminal performs data analysis based on these key points, which can more objectively and accurately judge whether the user's stretching posture is standard. The in-car body interaction scene of the present invention improves user participation and can effectively relieve driving fatigue.
[0068] For example, the driver's status data, such as eye movement data, steering wheel grip data, heart rate and breathing and other physiological data, are obtained, and a stretching posture sequence A for relieving fatigue is recommended to the driver based on the driver's status data, A includes stretching postures A1, A2, and A3. The driver is prompted to stop the vehicle in a safe area and perform limb movements according to the stretching posture sequence A. First, the driver is prompted to perform stretching posture A1, and the video data of the driver performing stretching posture A1 is recorded through the in-car camera. The video data is input into the trained posture algorithm model to identify the driver's eyes, nose, mouth, ears, shoulders, elbows and other facial features and joint position information in each frame image, and key points are drawn according to the identified position information to obtain a visualized human key point distribution map. According to the human key point distribution map of each frame image, it is judged that the driver's stretching posture A1 meets the standard, and the driver is prompted to continue to perform stretching posture A2, and so on, until the driver completes the stretching posture sequence A, then it is considered that the driver has relieved fatigue and can continue driving.
[0069] Specifically, Figure 1 A schematic flow chart of a human-computer interaction method for in-vehicle shoulder and neck stretching provided in an embodiment of the present application.
[0070] like Figure 1 As shown, the human-machine interactive method for shoulder and neck stretching in a car includes the following steps:
[0071] Step S100: Acquire user status data, and determine a stretching posture sequence according to the status data.
[0072] Specifically, the user in this embodiment can be a driver or a passenger in the car. In this embodiment, several sensors are pre-installed in the car to collect the user's status data, such as eye movement data, steering wheel grip data, heartbeat and breathing and other physiological data, and the user's status data is used to recommend a stretching posture sequence suitable for relieving fatigue.
[0073] In one embodiment, determining a stretching posture sequence according to the state data includes:
[0074] Calculating the user's fatigue level according to the status data;
[0075] According to the fatigue level, determining a target fatigue level interval from a plurality of preset fatigue level intervals;
[0076] The preset posture sequence corresponding to the target fatigue degree is used as the stretching posture sequence.
[0077] Specifically, the present embodiment pre-sets a number of fatigue intervals, each fatigue interval corresponds to a different degree of fatigue, such as mild fatigue, moderate fatigue, severe fatigue, etc., and different posture sequences are designed for different fatigue intervals to relieve fatigue. In actual application, the user's current fatigue level is analyzed through the currently collected state data to obtain a quantified amount of fatigue. The calculated fatigue level is compared with each preset fatigue interval, the fatigue interval in which the fatigue level is located is used as the target fatigue interval, and the posture sequence pre-designed for the target fatigue interval is used as the stretching posture sequence currently recommended for users to improve the user's current fatigue state in a targeted manner.
[0078] Step S200: for each stretching posture in the stretching posture sequence, obtain video data of the user performing the stretching posture, and obtain facial features and joint position information of each frame image in the video data through a trained posture algorithm model.
[0079] Specifically, in this embodiment, one or more cameras arranged in the vehicle are used to capture the user's body movements, such as Figure 2As shown, the video stream data of the camera can be obtained in real time through the preset data acquisition module, and after decoding, it is passed to the algorithm recognition module for identifying the facial features and joint positions. This embodiment also pre-sets a related body interaction application to assist users in shoulder and neck stretching. In actual application, when the terminal analyzes the user's state data and finds that the user's fatigue level is high, the user can be prompted to turn on the body interaction application. After the body interaction application is turned on, the camera in the car is automatically turned on to capture the user's body movements in real time, and the video data of the user performing each stretching posture is obtained through the data acquisition module. The video data is then transmitted to the algorithm recognition module of the software, which includes a posture algorithm model. The posture algorithm model has learned the complex mapping relationship between input and output through a large amount of training data, and can accurately identify the facial features and joint positions of the human body in each frame of the image.
[0080] In one embodiment, the posture algorithm model includes a convolutional neural network and a convolutional spatiotemporal network, and the acquiring of facial features and joint position information of each frame image in the video data through the trained posture algorithm model includes:
[0081] For each frame of image, human body detection is performed according to the frame of image to obtain a local target image, and the local target image is input into the convolutional neural network to obtain image features of the frame of image;
[0082] Inputting the image features of each frame of image into the convolutional spatiotemporal network to obtain the spatiotemporal features corresponding to each frame of image;
[0083] For each frame of image, the facial features and joint position information are determined based on the image features and the spatiotemporal features of the frame of image.
[0084] Specifically, the algorithm recognition module includes a posture algorithm model constructed using a deep learning model, which can identify the positions of the five sense organs and joints of the human body according to the video data transmitted by the data acquisition module, that is, the image captured by the camera. The posture algorithm model is mainly composed of a convolutional neural network and a spatiotemporal convolutional network, which are used to extract image features and spatiotemporal features respectively. The convolutional neural network uses convolution operations to replace the general matrix multiplication in at least one layer, is used to process pixel data, and is used for image recognition and processing. The spatiotemporal convolutional network combines spatial convolution with temporal convolution, uses two-dimensional convolution in the spatial dimension, and introduces one-dimensional convolution in the temporal dimension, so that the network can effectively capture the temporal and spatial information in the video. In practical applications, human body detection is first performed based on video data to determine the region of interest, that is, to obtain a local target image of each frame of the image. Then the local target image is input into the convolutional neural network to extract the features of 2D posture estimation, that is, to obtain image features. After that, the spatiotemporal convolutional network converts these image features into spatiotemporal features to better capture the dynamic changes of human body movement. The positions of the five sense organs and joints of the human body can be more accurately identified through the image features and spatiotemporal features of each frame of the image.
[0085] In one embodiment, the convolutional neural network includes several convolutional layers, linear rectification layers, pooling layers, and fully connected layers.
[0086] Specifically, each convolutional layer is composed of several convolutional units, and the parameters of each convolutional unit are optimized by the back-propagation algorithm. The convolutional layer extracts different features of the input data through convolution operations. The first convolutional layer is used to extract some low-level features such as edges, lines, and corners, and higher-level convolutional layers are used to iteratively extract more complex features from low-level features. Rectified Linear Units layer (ReLU layer), the activation function of this layer of neural network uses linear rectification (Rectified Linear Units, ReLU) f(x) = max(0, x) f(x) = max(0, x). Pooling layer, used to cut the large-dimensional features processed by the convolutional layer into several regions, take the maximum value or average value, and obtain new, smaller-dimensional features. The fully connected layer is used to combine all local features into global features to obtain image features. If the model task includes posture classification, this layer can also be used to calculate the score of each category. The score value can reflect the probability that the current posture belongs to different categories.
[0087] In one embodiment, the convolutional spatiotemporal network includes a three-dimensional convolution kernel having weights in two spatial directions and one temporal direction, and the three-dimensional convolution kernel is used to slide over the entire video sequence to extract temporal and spatial features, namely, spatiotemporal features.
[0088] Specifically, the spatiotemporal convolutional network uses a three-dimensional convolution kernel as the spatiotemporal convolution kernel to process video data. During the forward propagation of the convolutional spatiotemporal network, the spatiotemporal convolution kernel slides over the entire video sequence to extract temporal and spatial features, thereby achieving feature extraction and learning of video data under a unified framework.
[0089] In one embodiment, the posture algorithm model uses a multi-stage supervised learning method based on joint coordinates to fine-tune and optimize the position of each joint, so as to quickly and accurately estimate the posture of the human body to obtain correct human facial features and position information. In addition, the training data set of the posture algorithm model can adopt a standard face data set (Labeled Faces in the Wild (LFW), which contains a data set of more than 10,000 face images, covering upper body images of different angles, lighting and races. Using this face data set to train the posture algorithm model can effectively improve the model accuracy.
[0090] Step S300: Generate a visualized human body key point distribution map based on the facial features and joint position information of each frame image.
[0091] Specifically, in order to improve interactivity, this embodiment will generate corresponding key points based on the facial features and joint position information of each frame of the image, and render it into a visual human body key point distribution map through a preset rendering and drawing module, and output it on the central control screen for display, so that users can intuitively see their own body movements.
[0092] For example, Figure 3 As shown in the figure, the in-car camera is connected to the vehicle terminal system assembly HU through a wiring harness. The HU system opens the camera through the camera driver to obtain the camera raw data and transmits the data to the HU vehicle computer. After system processing, the vehicle computer draws the key points of the recognized facial features and joints in the video stream through openGL texture real-time rendering and displays them on the vehicle computer central control screen. Figure 4 As shown, there are 17 key points on the upper body and head of the person in the car, namely: 0-nose; 1-outside of the right eye; 2-right eye; 3-inside of the right eye; 4-inside of the left eye; 5-left eye; 6-outside of the left eye; 7-right ear; 8-left ear; 9-left side of the mouth; 10-right side of the mouth; 11-right shoulder; 12-left shoulder; 13-right arm bend; 14-left arm bend; 15-right wrist; 16-left wrist.
[0093] In one embodiment, generating a visual human body key point distribution map according to the facial features and joint position information of each frame of image includes:
[0094] For each frame of image, a plurality of vertex data are generated according to the facial features and joint position information of the frame of image;
[0095] Selecting one of the vertex data, calculating pixel information according to the vertex data, and performing color attachment in the current frame buffer according to the pixel information to obtain a rendering texture;
[0096] Determine whether there is unprocessed vertex data;
[0097] If it exists, a new frame buffer is constructed, and the rendering texture is used as input data of the new frame buffer. For the unprocessed vertex data, the step of selecting one vertex data and calculating pixel information based on the vertex data is continued until all vertex data are processed to obtain a visualized distribution map of the key points of the human body.
[0098] Specifically, this embodiment realizes real-time drawing of key points through real-time texture rendering. Taking a frame of image as an example, the facial features and joint position information recognized by the frame of image are converted into a number of vertex data and stored in the vertex buffer, and the index of each vertex data is stored in the index buffer. For each vertex data, the corresponding pixel information, such as pixel coordinates and pixel color, is calculated by the shader. Then, color attachment is performed in the current frame buffer according to the pixel information to obtain a rendered texture. The frame buffer is equivalent to a drawing board, and the process of color attachment is equivalent to outputting data to the corresponding canvas in the drawing board. The rendered texture / image will not be displayed on the screen immediately, but needs to be rendered multiple times, and the current rendering result is used as the input for the next rendering. In other words, when the color attachment of the frame buffer is set to a texture, after the current frame buffer is rendered, a new frame buffer is reconstructed, and the texture rendered last time is used as input, and the above-mentioned processing flow of one vertex data is repeated until all vertex data are processed.
[0099] For example, OpenGL's texture real-time rendering technology can be used to implement the key point drawing process. OpenGL is a graphics API, and all operations and result outputs need to be output through images. Textures and render buffers are objects that actually store image data. Render buffers and textures cannot be mounted on the same frame buffer at the same time. Vertex data is equivalent to the image skeleton of the drawing. OpenGL images are composed of primitives (points, lines, triangles), and vertex data is stored in the vertex buffer. When drawing an image, some vertices will be shared by multiple primitives. In order to achieve vertex reuse, vertex data has its own index data, and index data is stored in the index buffer. The vertex buffer and index buffer are essentially video memory. In actual application, the pixel information of vertex data is calculated by the preset shader. Shaders include vertex shaders and fragment shaders. Vertex shaders are used to calculate the vertex attributes of each vertex, such as pixel coordinates, vertex by vertex. Each vertex is executed in parallel, and other vertex data cannot be accessed during the vertex shader operation. Fragment shaders are used to calculate pixel colors. Each pixel will execute a fragment shader once, and each pixel is also executed in parallel. After the shader program is completed, the pixel data is obtained. The pixel data passes the test and then performs color attachment to the framebuffer.
[0100] In one embodiment, the OpenGL instruction calling method includes:
[0101] For each OpenGL instruction, before calling the OpenGL instruction, create an OpenGL context and set a dedicated thread for the OpenGL context;
[0102] OpenGL instructions are issued through a dedicated thread, and a serial command queue is established in the corresponding OpenGL context, which is executed asynchronously by the GPU.
[0103] Specifically, before calling any OpenGL instruction, this embodiment will create an OpenGL context as a state machine to save various states of OpenGL. Switching OpenGL contexts requires a large overhead, but different drawing modules require completely independent state management, and switching contexts on the same thread will be very slow. Therefore, this embodiment sets a dedicated thread for each context, and each thread issues a GL command, establishes a serial command queue in its context, and then executes it asynchronously by the GPU. When it is necessary to call multiple OpenGL instructions, multiple different OpenGL contexts can be created separately by the application, and different OpenGL contexts can be used in different threads. At the same time, OpenGL contexts share resources such as textures and buffers to avoid repeated context switching and cause large overhead.
[0104] In one embodiment, for systems with fewer available colors, OpenGL's texture rendering process also includes blending and dithering operations.
[0105] Specifically, the dithering operation increases the number of available colors by dithering the color values at the expense of resolution. When the machine resolution is higher than a preset resolution threshold, the dithering operation may not be activated.
[0106] Step S400: judging whether the actual stretching posture of the user meets the standard according to the human body key point distribution map of each frame image.
[0107] Specifically, this embodiment pre-sets a functional logic control module for logic control such as judgment and decision-making of posture recognition. In actual application, in addition to the visual display, the key points of the facial features and joints will also be transmitted to the functional logic control module at the same time. The functional logic control module will objectively judge whether the user's stretching posture is standard based on the distribution position and change of the key points, and realize complete user interaction logic control.
[0108] In one embodiment, when the stretching posture performed by the user is a head bending posture, judging whether the actual stretching posture of the user meets the standard according to the human body key point distribution map of each frame image includes:
[0109] Determine the starting angle, the elbow amplitude and the elbow duration according to the human body key point distribution map of each frame image, wherein the starting angle is used to reflect the angle between the facial axis and the shoulder line, and the elbow amplitude is used to reflect the change in the angle between the facial axis and the shoulder line;
[0110] Compare the starting angle, the bend amplitude and the bend duration with their corresponding standard data respectively;
[0111] Whether the user's actual head bending posture meets the standard is determined based on the comparison result.
[0112] Specifically, the elbow posture can be divided into a left elbow posture and a right elbow posture according to the direction of the elbow. In the left elbow posture, the body remains unchanged, and the head is pressed downward toward the left shoulder to stretch the shoulder and neck and relieve fatigue. The process of the user performing the left elbow posture is to slowly bend to the left from a sitting upright state. The time for the left elbow posture from upright to reaching the elbow amplitude must be less than the preset time (for example, 3 seconds). The right elbow posture is the same, except that the elbow direction is different, and the head is pressed downward toward the right shoulder. In this embodiment, the judgment conditions for the elbow posture are set to include three indicators: the starting angle, the elbow amplitude, and the elbow duration. The three indicators have their own compliance requirements. The compliance requirement of the starting angle needs to be within the preset angle range, the elbow amplitude needs to meet the preset angle threshold, and the elbow duration needs to meet the preset duration threshold. The three indicators need to be met at the same time to determine that the user's actual elbow posture meets the standard.
[0113] For example, in practical application, Figure 5 As shown in the figure, the identified key points are plotted in the form of coordinate points. The vertical direction is formed by the vertical line y formed by the nose point 0 and the middle point of point 11 and point 12, and the horizontal line X formed by point 11 and point 12, forming the X and Y axes. When a normal person sits in the main driver's seat, the angle formed by the head and the two shoulders (the left and right angles) should be 90°. Even if there are individual differences and the degrees of the left and right angles have errors, they are still close to 90°. Figure 6 As shown, when bending left, the angle between the horizontal axis X and the central axis Y (the angle corresponding to the direction of the bending) will gradually decrease from 90° to 0°. When the angle is set to be less than or equal to 45°, the user is judged to have met the bending amplitude. Therefore, the criteria for whether the left bending posture meets the standard are as follows: Condition 1, the user's starting angle, that is, the angle between X and Y at the beginning is between 90 and 110 degrees; Condition 2, the left bending amplitude, that is, the angle between X and Y (the angle corresponding to the direction of the left bending) reaches more than 45 degrees; Condition 3, the time from the starting angle to the left bending amplitude is less than 3 seconds; When all three conditions are met at the same time, the user's left bending posture is judged to have met the standard. Figure 7 As shown in the figure, when bending the head to the right, the angle between X and Y will gradually decrease from 90° to 0°. When the angle is set to be less than or equal to 45°, the user is judged to have met the right bending amplitude. Therefore, the conditions for judging whether the right bending posture meets the standard are as follows: Condition 1, the user's starting angle is between 90 and 110 degrees; Condition 2, the right bending amplitude, that is, the angle between X and Y (the angle corresponding to the right bending direction) reaches more than 45 degrees; Condition 3, the time from the starting angle to the right bending amplitude is less than 3 seconds; When all three conditions are met at the same time, the user's right bending posture is judged to meet the standard.
[0114] In one embodiment, when the stretching posture performed by the user is a head turning posture, calculating the posture change information of the user according to the human body key points of each video frame includes:
[0115] Determine the initial relative position, final relative position and duration of the head turning between the key points located on the face and the key points located on the shoulders according to the human body key point distribution map of each frame image;
[0116] Comparing the starting relative position, the final relative position and the duration of the head rotation with the corresponding standard data respectively;
[0117] Whether the user's actual head turning posture meets the standard is determined based on the comparison result.
[0118] Specifically, the head turning posture can be divided into left head turning posture and right head turning posture according to the direction of head turning. In the left head turning posture, the body remains unchanged, the head turns to the left, stretches the shoulder and neck, and relieves fatigue. The process of the user performing the left head turning posture is to slowly turn the head to the left from a sitting upright state. The time for the left head turning posture from upright to reaching the head turning amplitude must be less than the preset time (for example, 3 seconds). The right head turning posture is the same, but the direction of the head turning is different, the head turns to the right. The judgment conditions for the head turning posture set in this embodiment include three indicators: the relative position between the facial key points and the shoulder key points at the start, the relative position between the facial key points and the shoulder key points at the end, and the duration of the head turning. The three indicators have their own compliance requirements. The relative position between the facial key points and the shoulder key points at the start / end needs to meet the preset relative position relationship, and the duration of the head turning needs to meet the preset duration threshold. The three indicators need to be met at the same time to determine that the user's actual head turning posture meets the standard.
[0119] For example, in practical application, Figure 8 As shown, when turning the head to the left, three points of the right eye in the figure are involved: point 1-outside of the right eye, point 2-right eye and point 3-inside of the right eye. All three points will move to the left of the middle point between the left shoulder and the right shoulder when the head turns left. Therefore, the conditions for judging whether the left head turning posture meets the standard are: Condition 1, the point of the right eye in the user's starting state is to the right of the middle point between the left shoulder and the right shoulder; Condition 2, the point of the right eye in the user's ending state of turning the head is to the left of the middle point between the left shoulder and the right shoulder; Condition 3, the process time from the starting state to the ending state is less than 3 seconds; when all three conditions are met at the same time, it is judged that the user's left head turning posture meets the standard. Fig. 9As shown in the figure, when turning the head right, three points of the left eye in the figure are involved: point 4-inside of the left eye, point 5-left eye and point 6-outside of the left eye. All three points will move to the right of the middle point between the left shoulder and the right shoulder as the head turns right. Therefore, the conditions for judging whether the right head turning posture meets the standard are: condition 1, the point of the left eye of the user in the starting state is to the left of the middle point between the left shoulder and the right shoulder; condition 2, the point of the left eye of the user in the end state of turning the head is to the right of the middle point between the left shoulder and the right shoulder; condition 3, the process time from the starting state to the end state is less than 3 seconds; when all three conditions are met at the same time, it is judged that the user's right head turning posture meets the standard.
[0120] In one embodiment, after determining whether the user's actual stretching posture meets the standard, the method further includes:
[0121] If the current stretching posture meets the standard, the preset animation data is played, and the user is prompted to perform the next stretching posture in the stretching posture sequence;
[0122] If the current stretching posture does not meet the standard, the user is prompted to re-execute the current stretching posture until the current stretching posture meets the standard.
[0123] Specifically, in addition to realizing posture determination, the aforementioned functional logic control module is also responsible for realizing the interactive process between the user and the software screen animation display, etc. In actual application, the functional logic control module determines whether the user's posture meets the preset determination conditions based on the key points of the identified facial features and joints. If the conditions are met, the current stretching posture is determined to be up to standard, and the user is given an animation effect of successful action recognition; if the conditions are not met, the current stretching posture is determined to be unsatisfactory. In order to ensure the fatigue relief effect, the user is prompted to re-execute the current stretching posture until the stretching posture meets the standard.
[0124] In summary, the advantages of this application are:
[0125] 1. This application allows users to independently check whether their stretching posture is standard by drawing the key points of the facial features and limbs. At the same time, the terminal performs data analysis based on these key points to more objectively and accurately determine whether the user's stretching posture is standard. The in-car limb interaction scene of the present invention increases user participation and can effectively relieve driving fatigue.
[0126] 2. This application quantifies the user's fatigue through status data analysis, and determines the recommended stretching posture sequence based on the user's current fatigue level, which can achieve targeted improvement of the user's current fatigue state.
[0127] 3. This application extracts the features of 2D posture estimation of each frame of image through a convolutional neural network to obtain image features, and converts these image features into spatiotemporal features through a spatiotemporal convolutional network, which can better capture the dynamic changes of human body movement.
[0128] 4. This application can further improve the fun of human-computer interaction and achieve a more complete functional logic control process by setting reward animation effects for reaching posture standards.
[0129] Next, the human-computer interaction device for shoulder and neck stretching in a vehicle proposed according to an embodiment of the present application will be described with reference to the accompanying drawings.
[0130] like Fig.10 As shown, the human-machine interaction device 10 for shoulder and neck stretching in a vehicle includes: an acquisition module 100 , a recognition module 200 , a drawing module 300 and a judgment module 400 .
[0131] Specifically, the acquisition module 100 is used to acquire the user's state data and determine the stretching posture sequence according to the state data;
[0132] The recognition module 200 is used to obtain video data of a user performing each stretching posture in the stretching posture sequence, and obtain facial features and joint position information of each frame image in the video data through a trained posture algorithm model;
[0133] A drawing module 300, for generating a visual distribution map of key points of a human body according to the facial features and joint position information of each frame of image;
[0134] The judgment module 400 is used to judge whether the actual stretching posture of the user meets the standard according to the human body key point distribution map of each frame image.
[0135] In one embodiment, the acquisition module 100 specifically includes:
[0136] A data quantification unit, configured to calculate the user's fatigue level according to the status data;
[0137] an interval determination unit, configured to determine a target fatigue interval from a plurality of preset fatigue intervals according to the fatigue level;
[0138] A sequence determination unit is used to use the preset posture sequence corresponding to the target fatigue level as the stretching posture sequence.
[0139] In one embodiment, the posture algorithm model includes a convolutional neural network and a convolutional spatiotemporal network, and the recognition module 200 specifically includes:
[0140] An image feature extraction unit is used to perform human body detection on each frame of image according to the frame of image to obtain a local target image, and input the local target image into the convolutional neural network to obtain image features of the frame of image;
[0141] A temporal feature extraction unit, used to input the image features of each frame image into the convolutional spatiotemporal network to obtain the spatiotemporal features corresponding to each frame image;
[0142] The facial features and joints recognition unit is used to determine the facial features and joints position information for each frame of image based on the image features and the spatiotemporal features of the frame of image.
[0143] In one embodiment, the drawing module 300 specifically includes:
[0144] A vertex generation unit, for generating a plurality of vertex data according to the facial features and joint position information of each frame of image;
[0145] A shading unit, configured to select one of the vertex data, calculate pixel information according to the vertex data, and perform color attachment in a current frame buffer according to the pixel information to obtain a rendering texture;
[0146] The repeating unit is used to determine whether there is any unprocessed vertex data; if so, a new frame buffer is constructed, and the rendering texture is used as input data of the new frame buffer. For the unprocessed vertex data, the steps of selecting one vertex data and calculating pixel information according to the vertex data are continued until all vertex data are processed to obtain a visualized distribution map of the key points of the human body.
[0147] In one embodiment, when the stretching posture performed by the user is a head bending posture, the judging module 400 specifically includes:
[0148] An elbow index calculation unit is used to determine the starting angle, elbow amplitude and elbow duration according to the human body key point distribution map of each frame image, wherein the starting angle is used to reflect the angle between the facial axis and the shoulder line, and the elbow amplitude is used to reflect the change in the angle between the facial axis and the shoulder line;
[0149] An elbow index comparison unit, used to compare the starting angle, the elbow amplitude and the elbow duration with the corresponding standard data respectively;
[0150] The elbow determination unit is used to determine whether the user's actual elbow posture meets the standard based on the comparison result.
[0151] In one embodiment, when the stretching posture performed by the user is a head turning posture, the judging module 400 specifically includes:
[0152] A head turning index calculation unit, used to determine the initial relative position, final relative position and head turning duration between the key points located on the face and the key points located on the shoulders according to the human body key point distribution map of each frame image;
[0153] A head turning index comparison unit, used for comparing the starting relative position, the final relative position and the head turning duration with respective corresponding standard data;
[0154] The head turning determination unit is used to determine whether the user's actual head turning posture meets the standard according to the comparison result.
[0155] In one embodiment, the human-machine interaction device 10 for stretching the neck and shoulders in a vehicle further includes:
[0156] A playing module, used for playing preset animation data if the current stretching posture meets the standard, and prompting the user to perform the next stretching posture in the stretching posture sequence;
[0157] The prompting module is used to prompt the user to re-execute the current stretching posture if the current stretching posture does not meet the standard until the current stretching posture meets the standard.
[0158] It should be noted that the aforementioned explanation of the embodiment of the human-computer interaction method for stretching the shoulders and neck in a vehicle is also applicable to the human-computer interaction device for stretching the shoulders and neck in a vehicle of this embodiment, and will not be repeated here.
[0159] Fig.11 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. The terminal device may include:
[0160] A memory 1101 , a processor 1102 , and a computer program stored in the memory 1101 and executable on the processor 1102 .
[0161] When the processor 1102 executes the program, the human-computer interaction method for stretching the shoulder and neck in a vehicle provided in the above embodiment is implemented:
[0162] Acquiring status data of the user, and determining a stretching posture sequence according to the status data;
[0163] For each stretching posture in the stretching posture sequence, video data of a user performing the stretching posture is obtained, and facial features and joint position information of each frame image in the video data is obtained through a trained posture algorithm model;
[0164] Generate a visual distribution map of key points of the human body according to the facial features and joint position information of each frame of the image;
[0165] According to the human body key point distribution map of each frame image, it is judged whether the actual stretching posture of the user meets the standard.
[0166] Furthermore, the terminal device also includes:
[0167] The communication interface 1103 is used for communication between the memory 1101 and the processor 1102 .
[0168] The memory 1101 is used to store computer programs that can be executed on the processor 1102 .
[0169] The memory 1101 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0170] If the memory 1101, the processor 1102 and the communication interface 1103 are implemented independently, the communication interface 1103, the memory 1101 and the processor 1102 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0171] Optionally, in a specific implementation, if the memory 1101, the processor 1102 and the communication interface 1103 are integrated on a chip, the memory 1101, the processor 1102 and the communication interface 1103 can communicate with each other through an internal interface.
[0172] The processor 1102 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0173] This embodiment also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned human-computer interaction method for stretching the shoulder and neck in a vehicle:
[0174] Acquiring status data of the user, and determining a stretching posture sequence according to the status data;
[0175] For each stretching posture in the stretching posture sequence, video data of a user performing the stretching posture is obtained, and facial features and joint position information of each frame image in the video data is obtained through a trained posture algorithm model;
[0176] Generate a visual distribution map of key points of the human body according to the facial features and joint position information of each frame of the image;
[0177] According to the human body key point distribution map of each frame image, it is judged whether the actual stretching posture of the user meets the standard.
[0178] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0179] 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 technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0180] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes additional implementations, in which the order shown or discussed may not be followed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0181] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can read instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary and then storing it in a computer memory.
[0182] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0183] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0184] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0185] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A human-computer interaction method for stretching the neck and shoulders in a vehicle, characterized in that: The following steps are involved: Acquire status data of the user, and determine a stretching posture sequence according to the status data; For each stretching posture in the stretching posture sequence, video data of a user performing the stretching posture is obtained, and facial features and joint position information of each frame image in the video data is obtained through a trained posture algorithm model; Generate a visual distribution map of key points of the human body according to the facial features and joint position information of each frame of the image; According to the human body key point distribution map of each frame image, it is judged whether the actual stretching posture of the user meets the standard.
2. The human-computer interaction method for stretching the neck and shoulders in a vehicle as claimed in claim 1, characterized in that: Determining a stretching posture sequence according to the state data comprises: Calculating the user's fatigue level according to the status data; According to the fatigue level, determining a target fatigue level interval from a plurality of preset fatigue level intervals; The preset posture sequence corresponding to the target fatigue degree is used as the stretching posture sequence.
3. The human-computer interaction method for stretching the neck and shoulders in a vehicle as claimed in claim 1, characterized in that: The posture algorithm model includes a convolutional neural network and a convolutional spatiotemporal network. The facial features and joint position information of each frame image in the video data is obtained through the trained posture algorithm model, including: For each frame of image, human body detection is performed according to the frame of image to obtain a local target image, and the local target image is input into the convolutional neural network to obtain image features of the frame of image; Inputting the image features of each frame of image into the convolutional spatiotemporal network to obtain the spatiotemporal features corresponding to each frame of image; For each frame of image, the facial features and joint position information are determined based on the image features and the spatiotemporal features of the frame of image.
4. The human-computer interaction method for stretching the neck and shoulders in a vehicle as claimed in claim 1, characterized in that: The generating of a visual distribution map of key points of the human body according to the facial features and joint position information of each frame of the image comprises: For each frame of image, a plurality of vertex data are generated according to the facial features and joint position information of the frame of image; Selecting one of the vertex data, calculating pixel information according to the vertex data, and performing color attachment in the current frame buffer according to the pixel information to obtain a rendering texture; Determine whether there is unprocessed vertex data; If it exists, a new frame buffer is constructed, and the rendering texture is used as input data of the new frame buffer. For the unprocessed vertex data, the step of selecting one vertex data and calculating pixel information based on the vertex data is continued until all vertex data are processed to obtain a visualized distribution map of the key points of the human body.
5. The human-computer interaction method for stretching the shoulders and neck in a vehicle as claimed in claim 1, characterized in that: When the stretching posture performed by the user is a head bending posture, judging whether the actual stretching posture of the user meets the standard according to the human body key point distribution map of each frame image includes: Determine the starting angle, the elbow amplitude and the elbow duration according to the human body key point distribution map of each frame image, wherein the starting angle is used to reflect the angle between the facial axis and the shoulder line, and the elbow amplitude is used to reflect the change in the angle between the facial axis and the shoulder line; The starting angle, the bending amplitude and the bending duration are respectively compared with the corresponding standard data; and whether the actual bending posture of the user meets the standard is determined according to the comparison result.
6. The human-machine interactive method for stretching the neck and shoulders in a vehicle as claimed in claim 5, characterized in that: When the stretching posture performed by the user is a head-turning posture, the calculating the posture change information of the user according to the human body key points of each video frame includes: determining the starting relative position, the final relative position and the duration of the head-turning between the key points located on the face and the key points located on the shoulder according to the human body key point distribution map of each frame image; Comparing the starting relative position, the final relative position and the duration of the head rotation with the corresponding standard data respectively; Whether the user's actual head turning posture meets the standard is determined based on the comparison result.
7. The human-computer interaction method for stretching the shoulders and neck in a vehicle as claimed in claim 1, characterized in that: After determining whether the user's actual stretching posture meets the standard, the method further includes: If the current stretching posture meets the standard, the preset animation data is played, and the user is prompted to perform the next stretching posture in the stretching posture sequence; If the current stretching posture does not meet the standard, the user is prompted to re-execute the current stretching posture until the current stretching posture meets the standard.
8. A human-machine interactive device for stretching shoulders and necks in a car, characterized in that: include: An acquisition module, used to acquire status data of the user and determine a stretching posture sequence according to the status data; a recognition module, for obtaining, for each stretching posture in the stretching posture sequence, video data of a user performing the stretching posture, and obtaining facial features and joint position information of each frame of the video data through a trained posture algorithm model; A drawing module, used to generate a visual distribution map of key points of the human body according to the facial features and joint position information of each frame of the image; The judgment module is used to judge whether the actual stretching posture of the user meets the standard according to the human body key point distribution map of each frame image.
9. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a human-computer interaction program for in-vehicle shoulder and neck stretching stored in the memory and executable on the processor. When the processor executes the human-computer interaction program for in-vehicle shoulder and neck stretching, the steps of the human-computer interaction method for in-vehicle shoulder and neck stretching as described in any one of claims 1-7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a human-computer interaction program for in-vehicle shoulder and neck stretching. When the human-computer interaction program for in-vehicle shoulder and neck stretching is executed by the processor, the steps of the human-computer interaction method for in-vehicle shoulder and neck stretching as described in any one of claims 1-7 are implemented.
