A posture recognition management system and method based on human-computer interaction
By using the action recognition module and feature extraction module in the gesture recognition system, combined with the command entry and action decomposition modules, the problem of user identity changes and unrepeatable actions is solved, low-latency, accurate gesture recognition and response are achieved, and the system is improved. sensitivity and user experience.
Patent Information
- Application Number
- CN202410830874.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-26
AI Technical Summary
The existing gesture recognition system is difficult to accurately recognize user instructions when the user's identity changes and the actions are not repeatable. When there are many instructions, the user needs to leave pause time, which affects the user experience. It is especially difficult to operate smoothly in the fields of medical monitoring and security monitoring. .
A posture recognition management system based on human-computer interaction is adopted, including an action recognition module, a feature extraction module, a command entry module, an action decomposition module and an instruction output module. It detects screen changes through a depth camera, marks feature areas, generates a mapping matrix, and calculates user usage. offset and isolation values to extract alternative commands to achieve accurate recognition and combination of actions.
It improves the sensitivity and accuracy of the gesture recognition system, provides an adaptive interactive experience, can better cope with the gesture recognition needs of different users and scenarios, and enhances the generalization ability of the system.
Smart Images

Figure CN118377385B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a posture recognition management system and method based on human-computer interaction. Background Art
[0002] Human gesture recognition refers to the use of computer vision and human-computer interaction device learning technology to analyze and understand human gestures and movements to achieve natural interaction between people and computers, so that computers can recognize, understand and interpret human gestures and movements to achieve various interactive tasks. Gesture recognition systems usually use sensors, cameras and other devices to capture user action information, and then process and analyze this information through pattern recognition algorithms.
[0003] In the process of gesture recognition, the computer needs to translate a series of actions performed by the user. However, in actual use, the user will inevitably make unnecessary actions or non-standard command actions, making it difficult for the computer to translate the instructions the user wants to express. The existing pattern exclusion algorithm matches instructions by analyzing the user's historical records or re-entering the user's instructions. However, when the user's identity changes and the actions are non-repeatable, the user's instructions cannot be accurately recognized.
[0004] In addition, when there are many instructions in the computer, the user needs to leave enough pause time between each action in order to distinguish different instructions. However, this will affect the smoothness of the user's actions and reduce the user's experience in human-computer interaction. In the fields of medical monitoring, security monitoring, etc., intermittent gesture recognition is also difficult to play a role. Summary of the invention
[0005] The purpose of the present invention is to provide a gesture recognition management system and method based on human-computer interaction to solve the problems raised in the above background technology.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a posture recognition management system based on human-computer interaction, comprising: an action recognition module, a feature extraction module, a command input module, an action decomposition module and an instruction output module;
[0007] The action recognition module is used to lock the user's face using the facial capture system, detect the picture changes using the depth camera, continuously take pictures at the same position when the picture changes, and number the pictures to form a picture set;
[0008] The feature extraction module is used to mark the changed feature areas in the picture set by using an image processing tool. The image processing tool represents software capable of batch analysis of pictures, including Adobe Bridge, ImageJ and XnView MP. According to the shape and pixel chromaticity of the feature area, the user part corresponding to the feature area is determined, and after the picture changes stop, the color value matrix before and after the change of the feature area is calculated, and the mapping matrix of each frame of the picture is generated according to the color value matrix;
[0009] The command input module is used for the user to input the corresponding action for each command in the human-computer interaction device in advance before the human-computer interaction device is put into use, calculate the mapping matrix of each action, calculate the user's usage offset according to the minimum rank between all mapping matrices, and calculate the isolation value of the input action during the input process. When the action isolation value is less than the user's usage offset, remind the user to input one more action. The human-computer interaction device refers to a machine that can provide feedback on the user's behavior according to the user's operation;
[0010] The action decomposition module is used to receive the actions made by the user in front of the camera of the human-computer interaction device after the human-computer interaction device is put into use, take pictures of the user when making each action, generate a series of mapping matrices, recorded as an input matrix set, calculate the generalization distance between the input matrix set and the command matrix entered in the human-computer interaction device, clean up the redundant data in the input matrix set, and extract the alternative commands in the instruction library of the human-computer interaction device.
[0011] The instruction output module is used to combine the candidate commands, calculate the matching degree of each combination with the input matrix set, record the combination with the highest matching degree as the output command combination, write the output command combination into the interactive function area of the human-computer interaction device, and complete the human-computer interaction process.
[0012] Furthermore, the action recognition module includes: a picture monitoring unit and a picture taking unit;
[0013] The picture monitoring unit is used to capture the user's facial information to activate the camera, and the camera continuously monitors whether there is any change in the captured picture;
[0014] The picture capturing unit is used to control the camera to continuously capture pictures when a change in the picture is detected, until there is no change between adjacent pictures.
[0015] Furthermore, the feature extraction module includes: a region labeling unit, a part judgment unit and a mapping unit;
[0016] The region labeling unit is used to identify the regions in the picture set that are always changing, and mark the captured regions as feature regions;
[0017] The part judgment unit is used to compare the area, shape and color value of the characteristic region in the database to identify the part represented by the characteristic region;
[0018] The mapping unit is used to generate a mapping matrix according to the change of color values in the feature area.
[0019] Further, the command entry module includes: using an offset unit and a command isolation unit;
[0020] The offset unit is used to receive the input of the command by the user before the human-computer interaction device is put into use, and calculate the minimum rank between the mapping matrices to calculate the offset of the input action;
[0021] The command isolation unit is used to calculate the isolation value between the action to be entered and the action already entered during the process of entering a command, and when the isolation value is less than the offset, remind the user to enter one more action.
[0022] Furthermore, the action decomposition module includes: a series matching unit, a decomposition and decongestion unit, and an instruction candidate unit;
[0023] The series matching unit is used to obtain a series of actions performed by the user after the human-computer interaction device is used, and translate the actions performed by the user into a series of mapping matrices, which are recorded as an input matrix set;
[0024] The decomposition and decongestion unit is used to match each matrix in the input matrix set with the command matrix set that has been entered in the human-computer interaction device, and remove matrices with a matching degree less than a threshold;
[0025] The instruction candidate unit is used to output candidate instructions from the instruction library according to the matching degree between the input matrix set and the command matrix set.
[0026] Further, the instruction output module includes: a translation arrangement unit and a human-computer interaction unit;
[0027] The translation arrangement unit is used to cut the command matrix set according to the number of matrices in the posture matrix set of the candidate instructions, calculate the matching degree of each cut part with each candidate instruction, so as to identify a series of command matrices represented by the command matrix set;
[0028] The human-computer interaction unit is used to input the translated command matrix into the interactive function area of the human-computer interaction device and provide feedback on the actions taken by the user.
[0029] A gesture recognition management method based on human-computer interaction comprises the following steps:
[0030] Step S1. After the camera captures the user's face, the user's actions are continuously recorded until the action is completed, and each frame of the captured image is numbered to form a unit image set;
[0031] Step S2. Using an image processing tool to identify areas in the unit image set that continuously change, marking them as feature areas, and generating an action mapping matrix based on changes in pixel color values in the feature areas of each frame of the image;
[0032] Step S3. Enter instruction actions for each command, decompose the instruction actions into segments, calculate the action mapping matrix corresponding to each segment, generate an instruction matrix set, and determine whether the newly entered instruction matrix set meets the isolation condition. If the isolation condition is not met, remind the user to enter one more action;
[0033] Step S4. After all commands are entered, the human-computer interaction device starts to work, converting the actions made by the user in front of the camera into a set of action mapping matrices, recorded as an input matrix set, and clearing out all element matrices in the input matrix set whose rank is less than a preset value;
[0034] Step S5: Calculate the matching degree between the input matrix set and each command matrix set, identify the command represented by the user action, and input the identified command into the human-computer interaction device for execution.
[0035] Further, step S1 includes:
[0036] Step S11. Before the human-computer interaction device is used, the camera of the human-computer interaction device uses facial capture technology to identify the user's facial information, and after capturing the user's facial information, detects the user's movements;
[0037] Step S12: When it is detected that the user starts an action, the human-computer interaction device records the video until the user's action ends, numbers each frame of the video in chronological order, and packages all the pictures into a unit picture set.
[0038] Further, step S2 includes:
[0039] Step S21. Mark pixels with different color values in two adjacent frames of the unit picture set, superimpose the marked pixels to form a pixel point cloud, and use a point cloud clustering algorithm to classify a rectangular area in the pixel point set from the pixel point cloud, which is recorded as a feature area;
[0040] Step S22: Execute a pixel mapping method on each frame of the unit picture set and output an adjacent frame mapping matrix. The pixel mapping method is as follows:
[0041] According to the color values of all pixels in the feature area in the current frame and the next frame, the matrix equation is listed:
[0042]
[0043] Among them, m represents the number of pixels contained in the width of the feature area, and n represents the number of pixels contained in the length of the feature area. Represents the color value of the pixel in the mth column and nth row in the feature area of the current frame. represents the color value of the pixel in the mth column and nth row of the feature area in the next frame, and E represents the adjacent frame mapping matrix between the current frame and the next frame;
[0044] Solve the above matrix equation to obtain the value of each element in the matrix E, and output the matrix E as the adjacent frame mapping matrix;
[0045] Step S23. Generate an action mapping matrix U, where U=E1·E2·…·E k-1 , where k represents the number of pictures in the unit picture set, E k-1 Represents the adjacent frame mapping matrix between the k-1th frame and the kth frame.
[0046] Further, step S3 includes:
[0047] Step S31. Check the command entry status. If all commands have been entered, go to step S5. If there are commands that have not been entered, enter the command entry state and start entering commands one by one, then go to step S32.
[0048] Step S32: Record the action of the user in front of the camera until the user action is finished, and decompose the user action according to the video decomposition method to separate the video clips. The video decomposition method is as follows:
[0049] If the color values of more than x pixels with the same coordinates in two adjacent frames of the video are changed, the previous frame is recorded as a dynamic frame, otherwise the previous frame is recorded as a static frame. When there are more than c static frames between two dynamic frames, all static frames between the two dynamic frames are discarded, so that the video is disconnected. In this way, all videos are disconnected into segments and all video segments are output, where x and c are preset parameters;
[0050] Step S33. For each video clip, generate a corresponding action mapping matrix according to the method in steps S1-S2 to form a command action set G={G1,G2,…,Gf}, where f represents the number of video clips, Gf represents the action mapping matrix corresponding to the f-th video clip, and the set G is recorded as the command matrix set of the command;
[0051] Step S34: Determine whether the entered action unit meets the isolation condition. If it does not meet the isolation condition, remind the user to enter one more action, generate an action mapping matrix and add it to the original instruction action set. The isolation condition is as follows:
[0052]
[0053] Where i represents the element number in the instruction action set, i∈{1,2,…,f}, Gi represents the i-th element in the newly entered instruction action set, Hi represents the i-th element in the already entered instruction action set, r(Gi|Hi) represents the rank of the matrix Gi and the augmented matrix of the matrix Hi, and r(Hi) represents the rank of the matrix H(i). If the inequality holds for each value of i, then the isolation condition is judged to be met, otherwise it is judged to be not met.
[0054] Step S35. Execute steps S32-S34 for each unrecorded command in the human-computer interaction device to obtain a command matrix set of all unrecorded commands.
[0055] Further, step S4 includes:
[0056] Step S41. Record the actions performed by the user in front of the camera, and decompose the recorded video into an input matrix set {D1, D2, ..., Dz} according to the method described in steps S32-S33, where z represents the number of video clips, and Dz represents the action mapping matrix corresponding to the zth video clip;
[0057] Step S42. Calculate the rank of each matrix in the input matrix set, clean out the matrices whose ranks are less than a preset value, and obtain the cleaned input matrix set {W1, W2, ..., Wy}, where y represents the number of elements in the cleaned input matrix set, and Wq represents the yth action mapping matrix in the cleaned input matrix set.
[0058] Further, step S5 includes:
[0059] Step S51. For each command matching degree calculation method that has been entered, obtain the matching degree between the input matrix set and the command. The matching degree calculation method is:
[0060] Get the instruction matrix set corresponding to the command, and calculate the matching degree with the input matrix set according to the formula:
[0061]
[0062] Among them, L represents the matching degree, Q0 represents the number of elements in the instruction matrix set, Wj represents the j-th matrix in the input matrix set, and Vj represents the j-th matrix in the instruction matrix set. represents the operation rules of matrices Wj and Vj, Q1 represents the number of rows in matrix Vj, Q2 represents the number of columns in matrix Vj, represents the element value of the pth row and qth column in the matrix Wj, Represents the element value of the p-th row and q-th column in the matrix Vj;
[0063] Step S52: Send the command with the highest matching degree as the first command to the human-computer interaction device for execution. The number of elements in the instruction matrix set of the first command is recorded as Q3. Remove the first Q3 elements in the input matrix set to form a new input matrix set.
[0064] Step S53: Execute steps S51-S53 again for the new input matrix set until no element exists in the new input matrix set.
[0065] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0066] After locating the user's face and determining the identity, the present invention can use a depth camera to detect changes in the picture and continuously take pictures, mark the feature areas that have changed in the detected pictures, and judge the user part corresponding to the area based on the shape and pixel chromaticity of the feature area. This can more comprehensively understand the user's actions and intentions, achieve low-latency gesture recognition and response, and improve the sensitivity of the gesture recognition system.
[0067] The present invention can calculate the user's usage offset for command entry control posture in a human-computer interaction device, determine the isolation value of the command based on the difference of the command mapping matrix and the preset characteristic value of the user's part, avoid command actions being too similar, and generate an adaptive posture recognition system that can be adjusted and optimized according to the user's personalized needs to provide a better interactive experience.
[0068] The present invention can decompose the action after the user completes the command action, match the instruction corresponding to the action according to the instruction mode set in the instruction library, and automatically identify the redundant actions in the instruction, and output the instruction statement, which can improve the generalization ability of the model. By identifying and combining action units, it can better cope with the posture recognition needs of different users and different scenarios, more accurately capture and identify the user's posture details, and improve the recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0070] Figure 1 It is a structural schematic diagram of a posture recognition management system based on human-computer interaction of the present invention;
[0071] Figure 2 It is a schematic diagram of the steps of a posture recognition management method based on human-computer interaction of the present invention. DETAILED DESCRIPTION
[0072] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0073] See also Figure 1 ,The present invention provides a technical solution: a posture recognition management system based on human-computer interaction, comprising: an action recognition module, a feature extraction module, a command entry module, an action decomposition module and an instruction output module;
[0074] The action recognition module is used to lock the user's face using the facial capture system, detect the picture changes using the depth camera, continuously take pictures at the same position when the picture changes, and number the pictures to form a picture set;
[0075] The action recognition module includes: a picture monitoring unit and a picture shooting unit;
[0076] The picture monitoring unit is used to capture the user's facial information to activate the camera, and the camera continuously monitors whether there is any change in the captured picture;
[0077] The picture capturing unit is used to control the camera to continuously capture pictures when a change in the picture is detected, until there is no change between adjacent pictures.
[0078] The feature extraction module is used to mark the changed feature areas in the picture set by using an image processing tool, determine the user part corresponding to the feature area according to the shape and pixel chromaticity of the feature area, and calculate the color value matrix before and after the change of the feature area after the picture stops, and generate a mapping matrix for each frame of the picture according to the color value matrix;
[0079] The feature extraction module includes: a region labeling unit, a part judgment unit and a mapping unit;
[0080] The region labeling unit is used to identify the regions in the picture set that are always changing, and mark the captured regions as feature regions;
[0081] The part judgment unit is used to compare the area, shape and color value of the characteristic region in the database to identify the part represented by the characteristic region;
[0082] The mapping unit is used to generate a mapping matrix according to the change of color values in the feature area.
[0083] The command input module is used for, before the human-computer interaction device is put into use, the user inputs the corresponding action for each command in the human-computer interaction device in advance, calculates the mapping matrix of each action, calculates the user's usage offset according to the minimum rank between all mapping matrices, and during the input process, calculates the isolation value of the input action, and when the action isolation value is less than the user's usage offset, reminds the user to input one more action;
[0084] The command entry module includes: a usage offset unit and a command isolation unit;
[0085] The offset unit is used to receive the input of the command by the user before the human-computer interaction device is put into use, and calculate the minimum rank between the mapping matrices to calculate the offset of the input action;
[0086] The command isolation unit is used to calculate the isolation value between the action to be entered and the action already entered during the process of entering a command, and when the isolation value is less than the offset, remind the user to enter one more action.
[0087] The action decomposition module is used to receive the actions made by the user in front of the camera of the human-computer interaction device after the human-computer interaction device is put into use, take pictures of the user when making each action, generate a series of mapping matrices, recorded as an input matrix set, calculate the generalization distance between the input matrix set and the command matrix entered in the human-computer interaction device, clean up the redundant data in the input matrix set, and extract the alternative commands in the instruction library of the human-computer interaction device.
[0088] The action decomposition module includes: a series matching unit, a decomposition and decongestion unit, and an instruction candidate unit;
[0089] The series matching unit is used to obtain a series of actions performed by the user after the human-computer interaction device is used, and translate the actions performed by the user into a series of mapping matrices, which are recorded as an input matrix set;
[0090] The decomposition and decongestion unit is used to match each matrix in the input matrix set with the command matrix set that has been entered in the human-computer interaction device, and remove matrices with a matching degree less than a threshold;
[0091] The instruction candidate unit is used to output candidate instructions from the instruction library according to the matching degree between the input matrix set and the command matrix set.
[0092] The instruction output module is used to combine the candidate commands, calculate the matching degree of each combination with the input matrix set, record the combination with the highest matching degree as the output command combination, write the output command combination into the interactive function area of the human-computer interaction device, and complete the human-computer interaction process.
[0093] The instruction output module includes: a translation arrangement unit and a human-computer interaction unit;
[0094] The translation arrangement unit is used to cut the command matrix set according to the number of matrices in the posture matrix set of the candidate instructions, calculate the matching degree of each cut part with each candidate instruction, so as to identify a series of command matrices represented by the command matrix set;
[0095] The human-computer interaction unit is used to input the translated command matrix into the interactive function area of the human-computer interaction device and provide feedback on the actions taken by the user.
[0096] like Figure 2 As shown, a gesture recognition management method based on human-computer interaction includes the following steps:
[0097] Step S1. After the camera in the human-computer interaction device captures the user's face, it shoots the user's actions. When it detects that the shooting picture changes, it continues to shoot pictures until the action ends, and the captured pictures are numbered to form a unit picture set;
[0098] Step S1 includes:
[0099] Step S11. Before the human-computer interaction device is used, the camera of the human-computer interaction device uses facial capture technology to identify the user's facial information, and after capturing the user's facial information, detects the user's movements;
[0100] Step S12: When it is detected that the user starts an action, the human-computer interaction device records the video until the user's action ends, numbers each frame of the video in chronological order, and packages all the pictures into a unit picture set.
[0101] Step S2. Using an image processing tool to identify areas in the unit image set that continuously change, marking them as feature areas, and generating an action mapping matrix based on the color values of the pixels of each image in the feature area;
[0102] Step S2 includes:
[0103] Step S21. Mark pixels with different color values in two adjacent frames of the unit picture set, superimpose the marked pixels to form a pixel point cloud, and use a point cloud clustering algorithm to classify a rectangular area in the pixel point set from the pixel point cloud, which is recorded as a feature area;
[0104] Step S22: Execute a pixel mapping method on each frame of the unit picture set and output an adjacent frame mapping matrix. The pixel mapping method is as follows:
[0105] According to the color values of all pixels in the feature area in the current frame and the next frame, the matrix equation is listed:
[0106]
[0107] Among them, m represents the number of pixels contained in the width of the feature area, and n represents the number of pixels contained in the length of the feature area. Represents the color value of the pixel in the mth column and nth row in the feature area of the current frame. represents the color value of the pixel in the mth column and nth row of the feature area in the next frame, and E represents the adjacent frame mapping matrix between the current frame and the next frame;
[0108] Solve the above matrix equation to obtain the value of each element in the matrix E, and output the matrix E as the adjacent frame mapping matrix;
[0109] Step S23. Generate an action mapping matrix U, where U=E1·E2·…·E k-1 , where k represents the number of pictures in the unit picture set, E k-1 Represents the adjacent frame mapping matrix between the k-1th frame and the kth frame.
[0110] Step S3. The user enters a command action for each command in the human-computer interaction device, decomposes the command action into segments, calculates the action mapping matrix corresponding to each segment, generates a command matrix set, and determines whether the newly entered command matrix set meets the isolation condition. If the isolation condition is not met, the user is reminded to enter one more action;
[0111] Step S3 includes:
[0112] Step S31. Check the command entry status. If all commands have been entered, go to step S5. If there are commands that have not been entered, enter the command entry state and start entering commands one by one, then go to step S32.
[0113] Step S32: Record the action of the user in front of the camera until the user action is finished, and decompose the user action according to the video decomposition method to separate the video clips. The video decomposition method is as follows:
[0114] If the color values of more than x pixels with the same coordinates in two adjacent frames of the video are changed, the previous frame is recorded as a dynamic frame, otherwise the previous frame is recorded as a static frame. When there are more than c static frames between two dynamic frames, all static frames between the two dynamic frames are discarded, so that the video is disconnected. In this way, all videos are disconnected into segments and all video segments are output, where x and c are preset parameters;
[0115] Step S33. For each video clip, generate a corresponding action mapping matrix according to the method in steps S1-S2 to form a command action set G={G1,G2,…,Gf}, where f represents the number of video clips, Gf represents the action mapping matrix corresponding to the f-th video clip, and the set G is recorded as the command matrix set of the command;
[0116] Step S34: Determine whether the entered action unit meets the isolation condition. If it does not meet the isolation condition, remind the user to enter one more action, generate an action mapping matrix and add it to the original instruction action set. The isolation condition is as follows:
[0117]
[0118] Where i represents the element number in the instruction action set, i∈{1,2,…,f}, Gi represents the i-th element in the newly entered instruction action set, Hi represents the i-th element in the already entered instruction action set, r(Gi|Hi) represents the rank of the matrix Gi and the augmented matrix of the matrix Hi, and r(Hi) represents the rank of the matrix H(i). If the inequality holds for each value of i, then the isolation condition is judged to be met, otherwise it is judged to be not met.
[0119] Step S35. Execute steps S32-S34 for each unrecorded command in the human-computer interaction device to obtain a command matrix set of all unrecorded commands.
[0120] Step S4. After the human-computer interaction device command is entered, the action performed by the user in front of the camera is converted into a set of action mapping matrices, recorded as an input matrix set, and all element matrices in the input matrix set whose rank is less than a preset value are cleaned out;
[0121] Step S4 includes:
[0122] Step S41. Record the actions performed by the user in front of the camera, and decompose the recorded video into an input matrix set {D1, D2, ..., Dz} according to the method described in steps S32-S33, where z represents the number of video clips, and Dz represents the action mapping matrix corresponding to the zth video clip;
[0123] Step S42. Calculate the rank of each matrix in the input matrix set, clean out the matrices whose ranks are less than a preset value, and obtain the cleaned input matrix set {W1, W2, ..., Wy}, where y represents the number of elements in the cleaned input matrix set, and Wq represents the yth action mapping matrix in the cleaned input matrix set.
[0124] Step S5. Based on the matching degree between the input matrix set and each command matrix set, identify the command represented by each user action, and input the identified command into the human-computer interaction device.
[0125] Step S5 includes:
[0126] Step S51. For each command matching degree calculation method that has been entered, obtain the matching degree between the input matrix set and the command. The matching degree calculation method is:
[0127] Get the instruction matrix set corresponding to the command, and calculate the matching degree with the input matrix set according to the formula:
[0128]
[0129] Among them, L represents the matching degree, Q0 represents the number of elements in the instruction matrix set, Wj represents the j-th matrix in the input matrix set, and Vj represents the j-th matrix in the instruction matrix set. represents the operation rules of matrices Wj and Vj, Q1 represents the number of rows in matrix Vj, Q2 represents the number of columns in matrix Vj, represents the element value of the pth row and qth column in the matrix Wj, Represents the element value of the p-th row and q-th column in the matrix Vj;
[0130] Step S52: Send the command with the highest matching degree as the first command to the human-computer interaction device for execution. The number of elements in the instruction matrix set of the first command is recorded as Q3. Remove the first Q3 elements in the input matrix set to form a new input matrix set.
[0131] Step S53: Execute steps S51-S53 again for the new input matrix set until no element exists in the new input matrix set.
[0132] Example: The user continuously makes hand-waving, hand-stretching and hand-waving movements in front of the human-computer interaction device. After the human-computer interaction device captures these movements, the mapping matrix of each movement is calculated according to the color value change in the movement area. , as well as , and the matrix set represented by the forward command in the human-computer interaction device is { , }, the back command set is { }, the input matrix set is { , , }, the matching degree between the first two matrices and the forward command is 2.5, and the matching degree between the first matrix and the backward command is 2. The human-computer interaction device first executes the backward command and then the forward command.
[0133] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0134] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A gesture recognition management method based on human-computer interaction, characterized in that: The method comprises the following steps: Step S1. After the camera captures the user's face, the user's actions are continuously recorded until the action is completed, and each frame of the captured image is numbered to form a unit image set; Step S2. Using an image processing tool to identify areas in the unit image set that continuously change, marking them as feature areas, and generating an action mapping matrix based on changes in pixel color values in the feature areas of each frame of the image; Step S3. Enter instruction actions for each command, decompose the instruction actions into segments, calculate the action mapping matrix corresponding to each segment, generate an instruction matrix set, and determine whether the newly entered instruction matrix set meets the isolation condition. If the isolation condition is not met, remind the user to enter one more action; Step S4. After all commands are entered, the human-computer interaction device starts to work, converting the actions made by the user in front of the camera into a set of action mapping matrices, recorded as an input matrix set, and clearing out all element matrices in the input matrix set whose rank is less than a preset value; Step S5. Calculate the matching degree between the input matrix set and each instruction matrix set, identify the command represented by the user action, and input the identified command into the human-computer interaction device for execution; Step S1 includes: Step S11. Before the human-computer interaction device is used, the camera of the human-computer interaction device uses facial capture technology to identify the user's facial information, and after capturing the user's facial information, detects the user's movements; Step S12. When the user starts to move, the human-computer interaction device records the video until the user moves, numbers each frame of the video in chronological order, and packages all the pictures into a unit picture set; Step S2 includes: Step S21. Mark the pixels with different color values in two adjacent frames of the unit picture set, superimpose the marked pixels to form a pixel point cloud, and use a point cloud clustering algorithm to classify a rectangular area in the pixel point set from the pixel point cloud and record it as a feature area; Step S22: Execute a pixel mapping method on each frame of the unit picture set and output an adjacent frame mapping matrix. The pixel mapping method is as follows: According to the color values of all pixels in the feature area in the current frame and the next frame, the matrix equation is listed: Among them, m represents the number of pixels contained in the width of the feature area, and n represents the number of pixels contained in the length of the feature area. Represents the color value of the pixel in the mth column and nth row in the feature area of the current frame. represents the color value of the pixel in the mth column and nth row of the feature area in the next frame, and E represents the adjacent frame mapping matrix between the current frame and the next frame; Solve the above matrix equation to obtain the value of each element in the matrix E, and output the matrix E as the adjacent frame mapping matrix; Step S23. Generate an action mapping matrix U, wherein U=E1·E2·…·E k-1 , where k represents the number of pictures in the unit picture set, E k-1 Represents the adjacent frame mapping matrix between the k-1th frame and the kth frame; Step S3 includes: Step S31. Check the command entry status. If all commands have been entered, go to step S5. If there are commands that have not been entered, enter the command entry state and start entering commands one by one, then go to step S32. Step S32: Record the action of the user in front of the camera until the user action is finished, and decompose the user action according to the video decomposition method to separate the video clips. The video decomposition method is as follows: If the color values of more than x pixels with the same coordinates in two adjacent frames of the video are changed, the previous frame is recorded as a dynamic frame, otherwise the previous frame is recorded as a static frame. When there are more than c static frames between two dynamic frames, all static frames between the two dynamic frames are discarded, so that the video is disconnected. In this way, all videos are disconnected into segments and all video segments are output, where x and c are preset parameters; Step S33. For each video clip, generate a corresponding action mapping matrix according to the method in steps S1-S2 to form a command action set G = {G1, G2, ..., Gf}, where f represents the number of video clips, Gf represents the action mapping matrix corresponding to the f-th video clip, and the set G is recorded as the command matrix set of the command; Step S34: Determine whether the entered action unit meets the isolation condition. If it does not meet the isolation condition, remind the user to enter one more action, generate an action mapping matrix and add it to the original instruction action set. The isolation condition is as follows: r(Gi|Hi)>r(Hi) Where i represents the element number in the instruction action set, i∈{1,2,…,f}, Gi represents the i-th element in the newly entered instruction action set, Hi represents the i-th element in the already entered instruction action set, r(Gi|Hi) represents the rank of the matrix Gi and the augmented matrix of the matrix Hi, and r(Hi) represents the rank of the matrix H(i). If the inequality holds for each value of i, then the isolation condition is judged to be met, otherwise it is judged to be not met. Step S35. Execute steps S32-S34 for each unrecorded command in the human-computer interaction device to obtain a command matrix set of all unrecorded commands; Step S4 includes: Step S41. Record the actions performed by the user in front of the camera, and decompose the recorded video into an input matrix set {D1, D2, ..., Dz} according to the method described in steps S32-S33, where z represents the number of video clips, and Dz represents the action mapping matrix corresponding to the zth video clip; Step S42. Calculate the rank of each matrix in the input matrix set, and remove the matrices whose ranks are less than a preset value, to obtain a cleaned input matrix set {W1, W2, ..., Wy}, where y represents the number of elements in the cleaned input matrix set, and Wy represents the yth action mapping matrix in the cleaned input matrix set; Step S5 includes: Step S51. For each command matching degree calculation method that has been entered, obtain the matching degree between the input matrix set and the command. The matching degree calculation method is: Get the instruction matrix set corresponding to the command, and calculate the matching degree with the input matrix set according to the formula: Where L represents the matching degree, Q0 represents the number of elements in the instruction matrix set, Wj represents the j-th matrix in the input matrix set, Vj represents the j-th matrix in the instruction matrix set, F(Wj,Vj) represents the operation rule of matrices Wj and Vj, Q1 represents the number of rows in matrix Vj, Q2 represents the number of columns in matrix Vj, and Wj (p,q) Represents the element value of the pth row and qth column in the matrix Wj, Vj (p,q) Represents the element value of the p-th row and q-th column in the matrix Vj; Step S52: Send the command with the highest matching degree as the first command to the human-computer interaction device for execution. The number of elements in the instruction matrix set of the first command is recorded as Q3. Remove the first Q3 elements in the input matrix set to form a new input matrix set. Step S53: Execute steps S51-S52 again for the new input matrix set until no element exists in the new input matrix set.
2. A gesture recognition management system based on human-computer interaction, the system executing the gesture recognition management method based on human-computer interaction as claimed in claim 1, characterized in that: The system includes the following modules: an action recognition module, a feature extraction module, a command input module, an action decomposition module and an instruction output module; The action recognition module is used to lock the user's face using the facial capture system, detect the picture change using the depth camera, continuously take pictures at the same position when the picture changes, and number the pictures to form a picture set; The feature extraction module is used to mark the changed feature areas in the picture set by using an image processing tool, determine the user part corresponding to the feature area according to the shape and pixel chromaticity of the feature area, and calculate the color value matrix before and after the change of the feature area after the picture stops, and generate a mapping matrix for each frame of the picture according to the color value matrix; The command input module is used for, before the human-computer interaction device is put into use, the user inputs the corresponding action for each command in the human-computer interaction device in advance, calculates the mapping matrix of each action, calculates the user's usage offset according to the minimum rank between all mapping matrices, and during the input process, calculates the isolation value of the input action, and when the action isolation value is less than the user's usage offset, reminds the user to input one more action; The action decomposition module is used to receive the actions made by the user in front of the camera of the human-computer interaction device after the human-computer interaction device is put into use, take pictures of the user when making each action, generate a series of mapping matrices, recorded as input matrix sets, calculate the generalization distance between the input matrix set and the command matrix entered in the human-computer interaction device, clean up the redundant data in the input matrix set, and extract the alternative commands in the instruction library of the human-computer interaction device; The instruction output module is used to combine the candidate commands, calculate the matching degree of each combination with the input matrix set, record the combination with the highest matching degree as the output command combination, write the output command combination into the interactive function area of the human-computer interaction device, and complete the human-computer interaction process.
3. The gesture recognition management system based on human-computer interaction according to claim 2, characterized in that: The action recognition module includes: a picture monitoring unit and a picture shooting unit; The picture monitoring unit is used to capture the user's facial information to activate the camera, and the camera continuously monitors whether there is any change in the captured picture; The picture capturing unit is used to control the camera to continuously capture pictures when a change in the picture is detected, until there is no change between adjacent pictures.
4. The posture recognition management system based on human-computer interaction according to claim 3, characterized in that: The feature extraction module includes: a region labeling unit, a part judgment unit and a mapping unit; The region labeling unit is used to identify the regions in the picture set that are always changing, and mark the captured regions as feature regions; The part determination unit is used to compare the area, shape and color value of the characteristic region in the database to identify the part represented by the characteristic region; The mapping unit is used to generate a mapping matrix according to the change of color values in the feature area.
5. The gesture recognition management system based on human-computer interaction according to claim 4, characterized in that: The command entry module includes: a usage offset unit and a command isolation unit; The offset unit is used to receive the input of the command by the user before the human-computer interaction device is put into use, and calculate the minimum rank between the mapping matrices to calculate the offset of the input action; The command isolation unit is used to calculate the isolation value between the action to be entered and the action already entered during the process of entering a command, and when the isolation value is less than the offset, remind the user to enter one more action.
6. A gesture recognition management system based on human-computer interaction according to claim 5, characterized in that: The action decomposition module includes: a series matching unit, a decomposition and decongestion unit, and an instruction candidate unit; The series matching unit is used to obtain a series of actions performed by the user after the human-computer interaction device is used, and translate the actions performed by the user into a series of mapping matrices, which are recorded as an input matrix set; The decomposition and decongestion unit is used to match each matrix in the input matrix set with the command matrix set entered in the human-computer interaction device, and remove matrices with a matching degree less than a threshold; The instruction candidate unit is used to output candidate instructions from the instruction library according to the matching degree between the input matrix set and the command matrix set; The instruction output module includes: a translation arrangement unit and a human-computer interaction unit; The translation arrangement unit is used to cut the command matrix set according to the number of matrices in the posture matrix set of the candidate instructions, calculate the matching degree of each cut part with each candidate instruction, so as to identify a series of command matrices represented by the command matrix set; The human-computer interaction unit is used to input the translated command matrix into the interactive function area of the human-computer interaction device and provide feedback on the actions taken by the user.
