E-audio Bluetooth earphone gesture recognition method
By collecting and processing gesture images on the camera side of the LE-Audio Bluetooth headset, using YOLOv4 and convolutional neural network to identify finger tips, and combining the optical flow method and the predicted bone phase judgment method, the problem of inconvenient operation of the headset and accuracy of gesture recognition is solved. Achieving flexible interaction and quick response.
Patent Information
- Application Number
- CN202410703767.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-30
AI Technical Summary
The existing LE-Audio Bluetooth headsets are inconvenient to operate in a quiet environment. The physical buttons have single and small functions, making it difficult to quickly and accurately recognize complex gesture information, and are prone to command loss due to environmental interference and self-occlusion.
The camera is used to collect user gesture images, and the YOLOv4 model and convolutional neural network are used to identify fingertips. The optical flow method is used to track the fingertip position, and the accuracy of the recognition frame is ensured through the Euclidean distance formula and the predicted bone phase judgment method. Achieve stable recognition and transmission of gesture information.
Users can operate without touching the device, making the interaction more flexible, reducing the inconvenience of traditional button-type adjustments, speeding up rapid recognition and feedback, automatic prediction and secondary judgment to avoid operational errors, and achieving rapid response and execution.
Smart Images

Figure CN118570873A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of gesture recognition, and in particular to a LE-Audio Bluetooth headset gesture recognition method. Background Art
[0002] LE-Audio, or low-power audio, is centered around low-power transmission of audio signals through efficient encoding and decoding technology. This means that LE-Audio Bluetooth headsets can significantly reduce power consumption while maintaining high sound quality, thereby extending the battery life of the device. At the same time, LE-Audio also has the function of connecting multiple devices. Users can seamlessly switch audio sources between multiple devices and achieve collaborative work between multiple devices. However, in the use of existing le-audio Bluetooth headsets, most of them still use voice wake-up and voice commands. However, in general, the use of headsets is mostly in a quiet environment, and in a quiet environment, the Bluetooth headset can only be adjusted through physical buttons, but most of the physical buttons are bound to a single function, and the buttons are small, making them inconvenient to operate.
[0003] The patent with the authorized name: Gesture Recognition Method and Device and the application number: CN202010227340.3 states that with the development of artificial intelligence, human-computer interaction has been gradually applied to all aspects of people's lives, and gestures are becoming more and more important in the process of human-computer interaction. The natural and convenient characteristics of gestures greatly improve the efficiency of human-computer interaction and greatly expand the application scenarios of human-computer interaction. However, human gestures are inherently very complex, and different recognition methods will be affected by various environmental interferences. How to quickly and accurately recognize the complex semantic information contained in human gestures has become a problem that needs to be solved in the process of gesture recognition research. The gesture recognition model is trained through color images, depth images, infrared images and human bone point information when the user makes static gestures, and then the semantic information corresponding to the user's gestures is recognized according to the trained gesture recognition model, thereby achieving the technical effect of quickly and accurately recognizing the semantic information contained in the user's gestures. However, in actual use, the user often loses the picture when making gestures due to factors such as the picture and the external environment, and the content of the human gesture cannot be recognized. In the process of human-computer interaction, the human body often issues command information through fingers, and when using images to collect information, human gesture self-occlusion often occurs. Once self-occlusion occurs, the gesture command information will be lost, and commands cannot be accurately issued, and command feedback is missing. Summary of the invention
[0004] The object of the present invention is to provide a le-audio bluetooth headset gesture recognition method to solve the problems raised in the above background technology.
[0005] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: a LE-audio Bluetooth headset gesture recognition method, which is applied to a Bluetooth headset and a terminal device supporting the LE-Audio standard. The Bluetooth headset supporting the LE-Audio standard also includes a headset end and a camera end. The camera end is divided into a left camera end and a right camera end. The two camera ends are respectively arranged on the left and right sides of the headset. The camera end is used to collect user gesture image information and process and recognize the image information. The recognition method includes the following steps:
[0006] S1. The camera in the camera end captures the external environment of the headset end to form an external environment video stream, captures the human hand image in the external environment video stream, and puts the captured image into the trained YOLOv4 model. According to the YOLOv4 model, new images and videos are recognized, and gesture data is output after recognition. Recognition frames are drawn on the images and videos according to the gesture data to form a layer of recognition frames;
[0007] S2, preprocessing the human hand image, using the convolutional neural network learning model to identify the fingertips in the human hand image using the preprocessed image data, and forming identification points by identifying the fingertips;
[0008] S3. After the identification point is determined, the identification point data is output through the YOLOv4 model, and the identification frame is drawn again on the identification point to form a second-layer identification and tracking frame, and the identification point is determined inside the second-layer identification and tracking frame, and the identification point is used as the center point of the second-layer identification and tracking frame;
[0009] S4, anchoring the center point of the mark at the fingertip position captured by the camera, using the optical flow method to verify the finger position between consecutive frames in the video stream, and continuously fixing the anchor mark point at the fingertip position;
[0010] S5. Dynamically check the distance between the anchor mark point and the second-layer recognition tracking frame and the first-layer recognition frame during the continuous movement. In the dynamic distance check process, the straight-line distance between the two center points is calculated using the Euclidean distance formula through the coordinate data of the first-layer recognition frame and the coordinate data of the second-layer recognition frame. The calculation formula is: [d=\sqrt{(cx_2-cx_1)^2+(cy_2-cy_1)^2}], where ((cx_2,cy_2)) is the coordinate data of the mark center point, and ((cx_1,cy_1)) is the coordinate data of the first-layer recognition frame. The calculation formula of the coordinate data of the first-layer recognition frame is: [cx_1=\frac{x_1+x_2}{2}], [cy_1=\frac{y_1+y_ 2}{2}], wherein the coordinates of the upper left corner of a layer of recognition frame are ((x_1, y_1)), the coordinates of the lower right corner are ((x_2, y_2)), and the coordinates of the center point are: ((cx_1, cy_1)). The straight-line distance data between the two recognition frames is continuously calculated to obtain the error verification interval value. When the error verification interval value is greater than a preset threshold, it is determined that the motion trajectory of the anchor mark point is wrong. When the motion trajectory of the anchor mark point is determined to be wrong, a predicted trajectory value is generated by a predicted bone phase judgment method. The predicted trajectory value is subjected to a secondary judgment with the preset threshold. When the secondary judgment value is still greater than the preset threshold, it is determined that the mark point is offset or lost. At this time, a re-recognition process is triggered, that is, returning to step S2, and re-preprocessing and fingertip recognition of the human hand image is performed;
[0011] S6. If the dynamic distance is verified to be correct, that is, the marker point is continuously and stably anchored at the fingertip position, the movement trajectory of the marker point and the gesture information are transmitted to a terminal device supporting the LE-Audio standard via Bluetooth;
[0012] S7. After receiving the gesture information, the terminal device performs pairing recognition on the received gesture information according to preset gesture recognition content, and then performs a corresponding operation or issues a corresponding instruction.
[0013] Preferably, the method further comprises the following steps:
[0014] X1. Collect the voice command information issued by the user through the receiving end of the Bluetooth headset, transmit the voice command information to the training model after collecting the voice command information, convert the voice command information into command text, and use the command text to match the preset control command;
[0015] X2. Set priority weights. When gesture command information and voice command information are detected at the same time, the voice command information is set to a second-level weight priority, and the gesture command information is set to a third-level weight priority. Specific command information is set in both the gesture command information and the voice command information. The specific command information is used to switch or stop using the gesture command information or the voice command information. The specific command is set to a first-level weight.
[0016] Preferably, in S2, in the process of forming identification points by identifying the positions of fingertips, when multiple fingertips appear and multiple identification points are formed, the multiple finger edge images are segmented, and after the image is segmented, multiple identification points are generated according to the finger feature values, and the coordinate data of the multiple identification points are input into the probability calculation decision model to calculate the probability value of the optimal selection, and the identification point with the optimal selection probability value is set as the single optimal identification point.
[0017] Preferably, in S4, when the anchor identification point is lost during the dynamic gesture movement, the identification point with the next-level optimal selection probability value is immediately set as the optimal identification point, that is, a secondary anchor identification point is formed. When all probability values are lost in turn and there is still a layer of identification box in the video stream, a probability identification point is generated according to the predictive recognition method, and step S5 is executed through the probability identification point.
[0018] Preferably, the prediction and identification method comprises the following steps:
[0019] S401, extracting the joint data points of the user's palm and fingers according to the frontal photos of the user's palm and fingers stored in advance, forming a joint sequence with the joint data points, traversing all the point data in the sequence, and recording the coordinate data of each point;
[0020] S402, compare all coordinate data points to find the coordinate data point with the maximum or minimum X and Y coordinates;
[0021] S403, calculate the centroid of the X and Y coordinate data points,
[0022] The X coordinate of the center of mass is calculated as:
[0023] The Y coordinate of the center of mass is calculated as:
[0024] Where N is the number of points on the contour, x i and i is the coordinate of the i-th point;
[0025] Compare the positions of the centroid data and the joint data points. When the endpoints of the joint data points are in the extension direction of the centroid and conform to the extension pattern of the finger, these endpoints are the last endpoints.
[0026] S404, correcting the data of the last endpoint according to the curvature change of a layer of recognition frame to obtain a final judgment value, and setting the final judgment value as a probability identification point.
[0027] Preferably, when a first layer identification frame is not detected in S104, a virtual first layer identification frame is reversely generated based on the front-end data point in the joint sequence. After the virtual first layer identification frame and the probability identification mark point are generated, the dynamic instructions determined by the virtual first layer identification frame and the probability identification mark point are four-level weights.
[0028] Preferably, in S5, the bone phase prediction method comprises the following steps:
[0029] S501, integrating the fingertip identification point data identified in S2, the center point data of the second-layer identification and tracking frame in S3, and the anchor identification point data between consecutive frames in S4, and comparing them one by one with the palm and finger joint point data reserved by the user;
[0030] S502: Use the bone phase prediction model to combine the integrated data with the pre-stored joint point data to predict the bone phase position of the fingers in the current gesture, and generate a predicted trajectory value based on the output of the bone phase prediction model.
[0031] Preferably, in S5, when the re-identification process returns to step S2, the moving coordinate data of the identification point of the current operation is recorded, and when the re-identification process returns to step S2 for the second time, the moving coordinate data value of the first identification point and the moving coordinate data value of the second identification point are integrated, and the moving coordinate data value of the first identification point and the moving coordinate data value of the second identification point are compared to obtain the difference, and the difference is added to the third S2 step.
[0032] Preferably, in S7, the preset gesture recognition content includes a plurality of gesture samples with semantic information having been annotated and defined.
[0033] Preferably, in S1, the video stream images captured by the camera are color images, depth images and infrared images.
[0034] Compared with the prior art, the present invention has the following beneficial effects:
[0035] In the present invention, gesture images are collected and processed by the camera on the Bluetooth headset, and the user can complete the operation without touching the device, making the interaction more flexible and reducing the inconvenience of traditional button-type adjustment. At the same time, by identifying a single identification point, the complexity of uploading data is reduced, and the speed of command recognition and feedback is accelerated. At the same time, through a stable recognition and tracking mechanism, when problems occur in recognition, predictions and secondary judgments are automatically made to avoid operational errors and achieve rapid response and execution. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 is a flow chart of an embodiment of the present invention;
[0037] Figure 2Schematic diagram of the connection status between the camera end and the Bluetooth headset in an embodiment of the present invention. DETAILED DESCRIPTION
[0038] 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.
[0039] In the present invention, in the process of gesture command recognition, the human hand image is captured, and the human fingertip image is further captured, and the fingertip is used as an anchor identification point. In the process of uploading and calculating the gesture content, a single instruction point is generated by the anchor identification point. Reducing image processing and uploading through the recognition of a single instruction point can reduce the complexity of data processing. The single identification of the fingertip position can focus on key information, simplify the data processing flow, and improve the response speed and real-time performance of the system. At the same time, in order to reduce the recognition error caused by a single instruction point in the recognition process, a controllable interval comparison is performed by generating a first-layer recognition frame and a second-layer recognition frame, and the phenomenon of excessive errors in trajectory recognition is reduced by pre-comparison.
[0040] Embodiment 1: Figure 1 As shown, the present application discloses a LE-audio Bluetooth headset gesture recognition method, which is applied to a Bluetooth headset and a terminal device supporting the LE-Audio standard. The Bluetooth headset supporting the LE-Audio standard also includes a headset end and a camera end. The camera end is divided into a left camera end and a right camera end. The two camera ends are respectively arranged on the left and right sides of the headset. The camera end is used to collect user gesture image information and process and recognize the image information. The recognition method includes the following steps:
[0041] S1. The camera in the camera end captures the external environment of the headset end to form an external environment video stream, captures the human hand image in the external environment video stream, and puts the captured image into the trained YOLOv4 model. According to the YOLOv4 model, new images and videos are recognized, and gesture data is output after recognition. Recognition frames are drawn on the images and videos according to the gesture data to form a layer of recognition frames;
[0042] S2, preprocessing the human hand image, using the convolutional neural network learning model to identify the fingertips in the human hand image using the preprocessed image data, and forming identification points by identifying the fingertips;
[0043] S3. After the identification point is determined, the identification point data is output through the YOLOv4 model, and the identification frame is drawn again on the identification point to form a second-layer identification and tracking frame, and the identification point is determined inside the second-layer identification and tracking frame, and the identification point is used as the center point of the second-layer identification and tracking frame;
[0044] S4, anchoring the center point of the mark at the fingertip position captured by the camera, using the optical flow method to verify the finger position between consecutive frames in the video stream, and continuously fixing the anchor mark point at the fingertip position;
[0045] S5. Dynamically check the distance between the anchor mark point and the second-layer recognition tracking frame and the first-layer recognition frame during the continuous movement. In the dynamic distance check process, the straight-line distance between the two center points is calculated using the Euclidean distance formula through the coordinate data of the first-layer recognition frame and the coordinate data of the second-layer recognition frame. The calculation formula is: [d=\sqrt{(cx_2-cx_1)^2+(cy_2-cy_1)^2}], where ((cx_2,cy_2)) is the coordinate data of the mark center point, and ((cx_1,cy_1)) is the coordinate data of the first-layer recognition frame. The calculation formula of the coordinate data of the first-layer recognition frame is: [cx_1=\frac{x_1+x_2}{2}], [cy_1=\frac{y_1+y_ 2}{2}], wherein the coordinates of the upper left corner of a layer of recognition frame are ((x_1, y_1)), the coordinates of the lower right corner are ((x_2, y_2)), and the coordinates of the center point are: ((cx_1, cy_1)). The straight-line distance data between the two recognition frames is continuously calculated to obtain the error verification interval value. When the error verification interval value is greater than a preset threshold, it is determined that the motion trajectory of the anchor mark point is wrong. When the motion trajectory of the anchor mark point is determined to be wrong, a predicted trajectory value is generated by a predicted bone phase judgment method. The predicted trajectory value is subjected to a secondary judgment with the preset threshold. When the secondary judgment value is still greater than the preset threshold, it is determined that the mark point is offset or lost. At this time, a re-recognition process is triggered, that is, returning to step S2, and re-preprocessing and fingertip recognition of the human hand image is performed;
[0046] S6. If the dynamic distance is verified to be correct, that is, the marker point is continuously and stably anchored at the fingertip position, the movement trajectory of the marker point and the gesture information are transmitted to a terminal device supporting the LE-Audio standard via Bluetooth;
[0047] S7. After receiving the gesture information, the terminal device performs pairing recognition on the received gesture information according to preset gesture recognition content, and then performs a corresponding operation or issues a corresponding instruction.
[0048] Furthermore, in order to combine with the voice command of the Bluetooth headset, the voice command and gesture recognition form a master-slave mutual backup feedback step, which specifically includes the following steps:
[0049] X1. Collect the voice command information issued by the user through the receiving end of the Bluetooth headset, transmit the voice command information to the training model after collecting the voice command information, convert the voice command information into command text, and use the command text to match the preset control command;
[0050] X2. Set priority weights. When gesture command information and voice command information are detected at the same time, the voice command information is set to a second-level weight priority, and the gesture command information is set to a third-level weight priority. Specific command information is set in both the gesture command information and the voice command information. The specific command information is used to switch or stop using the gesture command information or the voice command information. The specific command is set to a first-level weight.
[0051] Furthermore, in S7, the preset gesture recognition content includes gesture samples with semantic information defined by multiple annotations, and gesture recognition is performed on the dynamic movement process of the identification point through the gesture samples with semantic information defined by multiple annotations, so as to quickly match the gesture samples.
[0052] The technical solutions in the above-mentioned embodiments of the present application have at least the following technical effects or advantages: compared with the prior art, in the present embodiment, gesture images are collected and processed by the camera on the Bluetooth headset, and the user can complete the operation without touching the device, making the interaction more flexible and reducing the inconvenience of traditional button-type adjustment. At the same time, by identifying a single identification point, the complexity of uploading data is reduced, and the speed of command recognition and feedback is accelerated. At the same time, through a stable recognition and tracking mechanism, when there is a problem in recognition, prediction and secondary judgment are automatically performed to avoid operational errors and achieve rapid response and execution.
[0053] Embodiment 2: Considering that the camera will capture the overall shape of the hand during the shooting process, and multiple identification points will be generated in the process of generating identification points, and the movement trajectory and movement direction of each finger in the movement of the human hand are different, the existence of multiple identification points in different situations may cause gesture recognition errors. In view of the above technical problems, this application proposes the following technical solutions to solve the above technical problems, specifically:
[0054] like Figure 1 As shown, in S2, in the process of forming identification points by identifying the positions of fingertips, when multiple fingertips appear and multiple identification points are formed, the multiple finger edge images are segmented, and after the image is segmented, multiple identification points are generated according to the finger feature values, and the coordinate data of the multiple identification points are put into the probability calculation decision model to calculate the probability value of the optimal choice, and the identification point with the optimal selection probability value is set as the single optimal identification point.
[0055] Furthermore, in S4, when the anchor identification point is lost during the dynamic gesture movement, the identification point with the next-level optimal selection probability value is immediately set as the optimal identification point, that is, a secondary anchor identification point is formed. When all probability values are lost in turn and there is still a layer of identification box in the video stream, a probability identification point is generated according to the predictive recognition method, and step S5 is executed through the probability identification point.
[0056] Furthermore, the prediction and recognition method includes the following steps:
[0057] S401, extracting the joint data points of the user's palm and fingers according to the frontal photos of the user's palm and fingers stored in advance, forming a joint sequence with the joint data points, traversing all the point data in the sequence, and recording the coordinate data of each point;
[0058] S402, compare all coordinate data points to find the coordinate data point with the maximum or minimum X and Y coordinates;
[0059] S403, calculate the centroid of the X and Y coordinate data points,
[0060] The X coordinate of the center of mass is calculated as:
[0061] The Y coordinate of the center of mass is calculated as:
[0062] Where N is the number of points on the contour, x i and i is the coordinate of the i-th point;
[0063] Compare the positions of the centroid data and the joint data points. When the endpoints of the joint data points are in the extension direction of the centroid and conform to the extension pattern of the finger, these endpoints are the last endpoints.
[0064] S404, correcting the data of the last endpoint according to the curvature change of a layer of recognition frame to obtain a final judgment value, and setting the final judgment value as a probability identification point.
[0065] Furthermore, when multiple identification points are segmented and identified in S2, that is, when several identification points are segmented, several probability identification points are calculated, up to 5, and the priority weights of the probability identification points are set by probability values. When the probability identification point of the first priority weight is lost, the probability priority weight of the next level is adopted.
[0066] Furthermore, when a first layer identification frame is not detected in S104, a virtual first layer identification frame is reversely generated based on the front-end data point in the joint sequence. After the virtual first layer identification frame and the probability identification mark point are generated, the dynamic instructions determined by the virtual first layer identification frame and the probability identification mark point are of level four weight. The level four weight will only be executed when the picture continues to be unclear and the infrared picture continues to be distorted.
[0067] The technical solution in the above-mentioned embodiment of the present application has at least the following technical effects or advantages: relative to embodiment one, in this embodiment, multiple finger recognition points formed in the initial state are calculated to obtain the most preferred movement probability value, and the most preferred movement probability value is set as a single optimal identification point to speed up the recognition of the identification point, and provide the optimal dynamic gesture recognition rate under the combination of comprehensive data. At the same time, when the optimal recognition point is lost, the next-level recognition point can be used to reduce the recognition incoherence caused by data loss.
[0068] Embodiment 3: Considering that during use, when the camera end is collecting images, there is often a situation where there are no fingers in the captured images, that is, the captured images only have the back of the hand. When this self-occlusion occurs, the identification point cannot be generated. When the identification point cannot be generated, the overall gesture cannot be recognized, which reduces the effect of gesture recognition. In view of the above technical problems, this application proposes the following technical solutions to solve the above technical problems, specifically:
[0069] like Figure 2 As shown, in S5, the bone phase prediction method includes the following steps:
[0070] S501, integrating the fingertip identification point data identified in S2, the center point data of the second-layer identification and tracking frame in S3, and the anchor identification point data between consecutive frames in S4, and comparing them one by one with the palm and finger joint point data reserved by the user;
[0071] S502: Use the bone phase prediction model to combine the integrated data with the pre-stored joint point data to predict the bone phase position of the fingers in the current gesture, and generate a predicted trajectory value based on the output of the bone phase prediction model.
[0072] Specifically, when the anchor identification point data is lost or the camera does not capture the fingertip image before starting to shoot, that is, the fingerless picture captured in step S1 is separately cut out in S2, and the five-finger terminal endpoint data is formed according to the back of the hand after the fingerless picture is cut out, and the five-finger terminal endpoint data is integrated with the second-layer recognition and tracking frame data in step S3. At the same time, in step S4, it can be determined that all optimal identification points are lost, and the probabilistic identification points are immediately enabled. The probabilistic identification points in step S4 are again integrated and compared with the data in S2 and S3, and the current data is fed into the bone phase prediction model, and the bone phase prediction model is used to output the bone phase data, and the identification points are reversely generated through the bone phase data, and step S2 is continuously executed after the identification points are generated.
[0073] Furthermore, in the bone phase prediction model, a recurrent neural network model is used for calculation. During the training process, the pre-collected hand gesture data is integrated with the two-layer identification frame data. That is, the hand gesture data and the two-layer representation frame data are used as sampling points in the data integration process, and a 2D offset variable is added to each sampling point, so that the convolution kernel can be convolved near the original position. At the same time, the convolution data and the skeleton features are feature mapped, and the attention score is calculated by softmax, and then multiplied and accumulated with the original collected hand gesture skeleton features. After that, it is mapped again and the original skeleton features are added to obtain the global information features. The bone phase points are formed by matching the global information feature values with the original collected hand gesture skeleton information, and the bone phase data is output through the generated bone phase points.
[0074] Furthermore, in S5, when the re-identification process returns to step S2, the moving coordinate data of the identification point of the current operation is recorded, and when the re-identification process returns to step S2 for the second time, the moving coordinate data value of the first identification point and the moving coordinate data value of the second identification point are integrated, and the moving coordinate data value of the first identification point and the moving coordinate data value of the second identification point are compared to obtain the difference, and the difference is added to the third S2 step.
[0075] The technical scheme in the above-mentioned embodiments of the present application has at least the following technical effects or advantages: relative to embodiment 2, in this embodiment, when no identification point data is initially collected, virtual identification points are generated using image information, and the comparison step is continuously performed using the virtual identification points, and the bone phase data is supplemented using the continuously collected data during the comparison step, and executable identification point data is generated through the supplemented bone phase data, and gesture recognition is continuously performed through the executable identification point data. During the comparison process, even if the camera segment produces self-occlusion of the human body during the shooting process, that is, only the back of the hand is present, the gesture action can still be continuously and quickly recognized, thereby reducing the recognition error rate and enhancing the recognition effect.
[0076] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. 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 le-audio Bluetooth headset gesture recognition method, characterized in that: Applicable to a Bluetooth headset and terminal device supporting the LE-Audio standard, the Bluetooth headset supporting the LE-Audio standard further includes a headset end and a camera end, the camera end is divided into a left camera end and a right camera end, the two camera ends are respectively arranged on the left and right sides of the headset, the camera end is used to collect user gesture image information and process and recognize the image information, and the recognition method includes the following steps: S1. The camera in the camera end captures the external environment of the headset end to form an external environment video stream, captures the human hand image in the external environment video stream, and puts the captured image into the trained YOLOv4 model. According to the YOLOv4 model, new images and videos are recognized, and gesture data is output after recognition. Recognition frames are drawn on the images and videos according to the gesture data to form a layer of recognition frames; S2, preprocessing the human hand image, using the convolutional neural network learning model to identify the fingertips in the human hand image using the preprocessed image data, and forming identification points by identifying the fingertips; S3. After the identification point is determined, the identification point data is output through the YOLOv4 model, and the identification frame is drawn again on the identification point to form a second-layer identification and tracking frame, and the identification point is determined inside the second-layer identification and tracking frame, and the identification point is used as the center point of the second-layer identification and tracking frame; S4, anchoring the center point of the mark at the fingertip position captured by the camera, using the optical flow method to verify the finger position between consecutive frames in the video stream, and continuously fixing the anchor mark point at the fingertip position; S5. Dynamically check the distance between the anchor mark point and the second-layer recognition tracking frame and the first-layer recognition frame during the continuous movement. In the dynamic distance check process, the straight-line distance between the two center points is calculated using the Euclidean distance formula through the coordinate data of the first-layer recognition frame and the coordinate data of the second-layer recognition frame. The calculation formula is: [d=\sqrt{(cx_2-cx_1)^2+(cy_2-cy_1)^2}], where ((cx_2,cy_2)) is the coordinate data of the mark center point, and ((cx_1,cy_1)) is the coordinate data of the first-layer recognition frame. The calculation formula of the coordinate data of the first-layer recognition frame is: [cx_1=\frac{x_1+x_2}{2}], [cy_1=\frac{y_1+y_ 2}{2}], wherein the coordinates of the upper left corner of a layer of recognition frame are ((x_1, y_1)), the coordinates of the lower right corner are ((x_2, y_2)), and the coordinates of the center point are: ((cx_1, cy_1)). The straight-line distance data between the two recognition frames is continuously calculated to obtain the error verification interval value. When the error verification interval value is greater than a preset threshold, it is determined that the motion trajectory of the anchor mark point is wrong. When the motion trajectory of the anchor mark point is determined to be wrong, a predicted trajectory value is generated by a predicted bone phase judgment method. The predicted trajectory value is subjected to a secondary judgment with the preset threshold. When the secondary judgment value is still greater than the preset threshold, it is determined that the mark point is offset or lost. At this time, a re-recognition process is triggered, that is, returning to step S2, and re-preprocessing and fingertip recognition of the human hand image is performed; S6. If the dynamic distance is verified to be correct, that is, the marker point is continuously and stably anchored at the fingertip position, the movement trajectory of the marker point and the gesture information are transmitted to a terminal device supporting the LE-Audio standard via Bluetooth; S7. After receiving the gesture information, the terminal device performs pairing recognition on the received gesture information according to preset gesture recognition content, and then performs a corresponding operation or issues a corresponding instruction.
2. A le-audio Bluetooth headset gesture recognition method according to claim 1, characterized in that: The following steps are also included: X1. Collect the voice command information issued by the user through the receiving end of the Bluetooth headset, transmit the voice command information to the training model after collecting the voice command information, convert the voice command information into command text, and use the command text to match the preset control command; X2. Set priority weights. When gesture command information and voice command information are detected at the same time, the voice command information is set to a second-level weight priority, and the gesture command information is set to a third-level weight priority. Specific command information is set in both the gesture command information and the voice command information. The specific command information is used to switch or stop using the gesture command information or the voice command information. The specific command is set to a first-level weight.
3. A le-audio Bluetooth headset gesture recognition method according to claim 1, characterized in that: In the S2, in the process of forming identification points by identifying the positions of fingertips, when multiple fingertips appear and multiple identification points are formed, the multiple finger edge images are segmented, and after the image is segmented, multiple identification points are generated according to the finger feature values, and the coordinate data of the multiple identification points are put into the probability calculation decision model to calculate the probability value of the optimal choice, and the identification point with the optimal selection probability value is set as the single optimal identification point.
4. A le-audio Bluetooth headset gesture recognition method according to claim 3, characterized in that: In S4, when the anchor identification point is lost during the dynamic gesture movement, the identification point with the next best selection probability value is immediately set as the best identification point, that is, a secondary anchor identification point is formed. When all probability values are lost in turn and there is still a layer of identification box in the video stream, a probability identification point is generated according to the predictive recognition method, and step S5 is executed through the probability identification point.
5. A le-audio Bluetooth headset gesture recognition method according to claim 1, characterized in that: The prediction recognition method includes the following steps: S401, extracting the joint data points of the user's palm and fingers according to the frontal photos of the user's palm and fingers stored in advance, forming a joint sequence with the joint data points, traversing all the point data in the sequence, and recording the coordinate data of each point; S402, compare all coordinate data points to find the coordinate data point with the maximum or minimum X and Y coordinates; S403, calculate the centroid of the X and Y coordinate data points, The X coordinate of the center of mass is calculated as: The Y coordinate of the center of mass is calculated as: Where N is the number of points on the contour, x i and i is the coordinate of the i-th point; Compare the positions of the centroid data and the joint data points. When the endpoints of the joint data points are in the extension direction of the centroid and conform to the extension pattern of the finger, these endpoints are the last endpoints. S404, correcting the data of the last endpoint according to the curvature change of a layer of recognition frame to obtain a final judgment value, and setting the final judgment value as a probability identification point.
6. A le-audio Bluetooth headset gesture recognition method according to claim 1, characterized in that: When no one-layer identification frame is detected in S104, a virtual one-layer identification frame is reversely generated based on the front-end data point in the joint sequence. After the virtual one-layer identification frame and the probability identification mark point are generated, the dynamic instruction determined by the virtual one-layer identification frame and the probability identification mark point is a four-level weight.
7. A le-audio Bluetooth headset gesture recognition method according to claim 1, characterized in that: In S5, the bone phase prediction method includes the following steps: S501, integrating the fingertip identification point data identified in S2, the center point data of the second-layer identification and tracking frame in S3, and the anchor identification point data between consecutive frames in S4, and comparing them one by one with the palm and finger joint point data reserved by the user; S502: Use the bone phase prediction model to combine the integrated data with the pre-stored joint point data to predict the bone phase position of the fingers in the current gesture, and generate a predicted trajectory value based on the output of the bone phase prediction model.
8. A le-audio Bluetooth headset gesture recognition method according to claim 1, characterized in that: In S5, when the re-identification process returns to step S2, the moving coordinate data of the identification point of the current operation is recorded. When the re-identification process returns to step S2 for the second time, the moving coordinate data value of the first identification point and the moving coordinate data value of the second identification point are integrated, and the moving coordinate data value of the first identification point and the moving coordinate data value of the second identification point are compared to obtain the difference, and the difference is added to the third S2 step.
9. A le-audio Bluetooth headset gesture recognition method according to claim 1, characterized in that: In S7, the preset gesture recognition content includes a plurality of gesture samples with semantic information having been annotated and defined.
10. A le-audio Bluetooth headset gesture recognition method according to claim 1, characterized in that: In S1, the video stream images captured by the camera are color images, depth images and infrared images.
Citation Information
Patent Citations
AI identification method, electronic equipment and camera
CN114694242A
Method for controlling intelligent Bluetooth headset through gestures across air
CN115937976A
Air gesture recognition method, electronic equipment and chip system
CN117130469A
Hand tracking method, device and system
US20220383523A1
Method for tracking pinched fingertips based on video
WO2018076484A1
