Robot interaction method and robot equipment

Through target image processing and action recognition technology, it solves the problem of low recognition accuracy of traditional human-computer interaction in noisy environments, realizes the robot's accurate response to user interaction instructions, and improves interactive intelligence.

CN118629093APending Publication Date: 2024-09-10SHENZHEN PUDU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410852569.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the traditional human-computer interaction method, the robot cannot accurately recognize the user's voice instructions in a noisy environment, resulting in low accuracy of interactive instruction recognition and the inability to accurately respond to the user's interaction.

Method used

By acquiring the target image, perform action recognition processing of the target user, determine whether to perform the greeting action, and respond according to the location information, using a method based on visual interaction, using the face orientation recognition model and human body key point recognition technology to accurately identify the user's head Head orientation and hand status, determine greeting actions, and then respond.

Benefits of technology

It improves the robot's recognition accuracy of user interaction instructions in a noisy environment, enhances the intelligence of robot interaction, and ensures that the robot can accurately respond to user interaction actions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629093A
    Figure CN118629093A
Patent Text Reader

Abstract

The invention relates to a robot interaction method and robot equipment. The method comprises the following steps: acquiring a target image, wherein the target image comprises a target user; performing action recognition processing on the target user according to the target image to determine whether the target user executes a greeting action or not; if the target user executes the greeting action, determining position information of the target user according to the target image; and responding to the greeting action of the target user according to the position information. By adopting the method, the interaction instruction of the target user can be accurately responded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robot control technology, and in particular to a robot interaction method and a robot device. Background Art

[0002] With the development of science and technology, the use of robots is becoming more and more widespread. In the process of human-computer interaction, robots recognize human intentions and make corresponding feedback, which is a manifestation of robot intelligence.

[0003] In traditional human-computer interaction, robots can interact with users based on voice recognition technology. For example, through a voice assistant or voice interface, users can use natural voice to issue commands to the robot, and the robot will recognize the user's intention after receiving the voice and give corresponding feedback. However, when human-computer interaction is carried out through traditional methods, the robot cannot accurately receive the user's voice and give feedback in a noisy environment. The robot has low accuracy in recognizing user interaction commands and cannot accurately respond to user interaction commands. Summary of the invention

[0004] Based on this, it is necessary to provide a robot interaction method and a robot device that can accurately respond to user interaction instructions in response to the above technical problems.

[0005] In a first aspect, the present application provides a robot interaction method, comprising:

[0006] Acquire a target image, the target image including a target user; perform action recognition processing on the target user based on the target image to determine whether the target user performs a greeting action; if the target user performs a greeting action, determine the location information of the target user based on the target image; and respond to the target user's greeting action based on the location information.

[0007] In one embodiment, the target image includes a first target image, and action recognition processing is performed on the target user based on the target image to determine whether the target user performs a greeting action, including: determining whether the target user's head is facing the robot based on the first target image, and / or, determining whether the target user's hand is raised based on the first target image; determining whether the target user performs a greeting action based on whether the target user's head is facing the robot and / or, whether the target user's hand is raised.

[0008] In one of the embodiments, determining whether the head of the target user is facing toward the robot based on the first target image includes: performing human body key point recognition processing on the first target image to obtain multiple human body key points corresponding to the target user; identifying the face area of ​​the target user based on the facial key points located at the face position among the multiple human body key points corresponding to the target user; inputting the image corresponding to the facial area into a face orientation recognition model, and determining whether the head of the target user is facing toward the robot based on the output of the face orientation recognition model.

[0009] In one embodiment, the face orientation recognition model is an fsa-net model, and the output of the face orientation recognition model includes the yaw angle and pitch angle of the face orientation. Whether the head of the target user is facing the robot is determined according to the output of the face orientation recognition model, including: if the yaw angle of the face orientation is less than a preset yaw angle threshold, and the pitch angle of the face orientation is less than a preset pitch angle threshold, then it is determined that the head of the target user is facing the robot.

[0010] In one of the embodiments, determining whether the target user's hands are raised based on the first target image includes: performing human body key point recognition processing on the first target image to obtain multiple human body key points corresponding to the target user; identifying the hand area of ​​the target user based on the hand key points located at the hand position among the multiple human body key points corresponding to the target user; if in the hand area, the left wrist is higher than the middle of the left elbow and the left shoulder, and / or the right wrist is higher than the middle of the right elbow and the right shoulder, then it is determined that the target user's hands are raised.

[0011] In one embodiment, the first target image includes two left and right fisheye images taken by the robot, and determining whether the head of the target user is facing the robot according to the first target image, and / or determining whether the hand of the target user is raised according to the first target image includes: stitching and reducing the two left and right fisheye images to obtain a stitched image; determining whether the head of the target user is facing the robot according to the stitched image, and / or determining whether the hand of the target user is raised according to the stitched image.

[0012] In one of the embodiments, the target image also includes a second target image, which is a depth image. Determining the location information of the target user based on the target image includes: dedistorting the first target image and mapping multiple body key points of the target user to the dedistorted first target image to obtain a third target image; mapping the point cloud in the second target image to the third target image to determine the pixel coordinates of the target user; and determining the location information of the target user based on the pixel coordinates.

[0013] In one embodiment, responding to a target user's greeting action based on location information includes: obtaining status information of the robot, the status information is used to describe whether the robot is idle; if the robot is idle, obtaining the initial position of the robot, and moving to the target point to respond to the target user's greeting action, and the distance between the target point and the location information satisfies a first preset distance; after the robot responds to the target user's greeting action, if no instruction from the target user is received within a preset time, it returns to the initial position.

[0014] In one of the embodiments, responding to a target user's greeting action based on location information also includes: if the robot is not idle, when the distance between the robot and the location information meets a second preset distance, adjusting the robot's moving speed to a first moving speed and responding to the target user's greeting action; after the robot responds to the target user's greeting action, adjusting the robot's moving speed to a second moving speed, the second moving speed being greater than the first moving speed.

[0015] In a second aspect, the present application also provides a robot interaction device, comprising:

[0016] An acquisition module, used for acquiring a target image, wherein the target image includes a target user;

[0017] A first determination module is used to perform action recognition processing on a target user according to a target image to determine whether the target user performs a greeting action;

[0018] A second determination module is used to determine the location information of the target user according to the target image if the target user performs a greeting action;

[0019] The response module is used to respond to the greeting action of the target user according to the location information.

[0020] In one embodiment, the first determination module is specifically used to determine whether the target user's head is facing the robot based on the first target image, and / or, determine whether the target user's hand is raised based on the first target image; and determine whether the target user performs a greeting action based on whether the target user's head is facing the robot and / or, whether the target user's hand is raised.

[0021] In one of the embodiments, the first determination module is specifically used to perform human key point recognition processing on the first target image to obtain multiple human key points corresponding to the target user; identify the face area of ​​the target user based on the facial key points located at the face position among the multiple human key points corresponding to the target user; input the image corresponding to the facial area into the face orientation recognition model, and determine whether the head of the target user is facing the robot based on the output of the face orientation recognition model.

[0022] In one embodiment, the face orientation recognition model is an fsa-net model, and the output of the face orientation recognition model includes the yaw angle and pitch angle of the face orientation. The first determination module is specifically used to determine that the head of the target user is facing the robot if the yaw angle of the face orientation is less than a preset yaw angle threshold, and the pitch angle of the face orientation is less than a preset pitch angle threshold.

[0023] In one of the embodiments, the first determination module is specifically used to perform human key point recognition processing on the first target image to obtain multiple human key points corresponding to the target user; identify the hand area of ​​the target user based on the hand key points located at the hand position among the multiple human key points corresponding to the target user; if in the hand area, the left wrist is higher than the middle of the left elbow and the left shoulder, and / or the right wrist is higher than the middle of the right elbow and the right shoulder, it is determined that the target user's hand is raised.

[0024] In one of the embodiments, the first target image includes two left and right fisheye images taken by the robot, and the first determination module is specifically used to stitch and reduce the two left and right fisheye images to obtain a stitched image; determine whether the head of the target user is facing the robot according to the stitched image, and / or determine whether the target user's hand is raised according to the stitched image.

[0025] In one of the embodiments, the target image also includes a second target image, which is a depth image. The second determination module is specifically used to dedistort the first target image and map multiple human body key points of the target user to the dedistorted first target image to obtain a third target image; map the point cloud in the second target image to the third target image to determine the pixel coordinates of the target user; and determine the location information of the target user based on the pixel coordinates.

[0026] In one embodiment, the response module is specifically used to obtain status information of the robot, where the status information is used to describe whether the robot is idle; if the robot is idle, the initial position of the robot is obtained, and it moves to a target point to respond to a greeting action of a target user, and the distance between the target point and the position information satisfies a first preset distance; after the robot responds to the greeting action of the target user, if no instruction from the target user is received within a preset time, it returns to the initial position.

[0027] In one of the embodiments, the response module is also used to adjust the robot's moving speed to a first moving speed and respond to a target user's greeting action if the robot is not idle and the distance between the robot and the location information meets a second preset distance; after the robot responds to the target user's greeting action, the robot adjusts the robot's moving speed to a second moving speed, and the second moving speed is greater than the first moving speed.

[0028] In a third aspect, the present application further provides a robot device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.

[0029] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.

[0030] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.

[0031] The above-mentioned robot interaction method and robot device obtain a target image, which includes a target user, and then perform action recognition processing on the target user according to the target image to determine whether the target user performs a greeting action. If the target user performs a greeting action, the location information of the target user is determined according to the target image, and finally the greeting action of the target user is responded to according to the location information. In an embodiment of the present application, by identifying the target user's action to determine whether to respond to the target user, this method based on visual interaction can avoid the problem that the robot cannot accurately identify the target user's interaction instructions in a noisy environment, and improve the accuracy of identifying the target user's instructions. Secondly, after determining that the target user performs a greeting action, that is, after identifying the target user's interaction instructions, responding to the target user's interaction instructions based on the target user's location information can accurately respond to the target user, and also improve the intelligence of the robot interaction. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0033] FIG1 is a schematic flow chart of a robot interaction method in one embodiment;

[0034] FIG2 is a flow chart of the steps of determining whether a target user performs a greeting action in one embodiment;

[0035] FIG3 is a schematic diagram of a flow chart of a step of determining whether the head of a target user is facing toward a robot in one embodiment;

[0036] FIG4 is a schematic diagram showing the distribution of multiple key points of a human body in one embodiment;

[0037] FIG5 is a schematic flow chart of the step of determining whether the target user's head is facing the robot in another embodiment;

[0038] FIG6 is a flowchart of the steps of determining whether the target user's hand is raised in one embodiment;

[0039] FIG7 is a flow chart of the steps of determining whether the target user performs a greeting action in another embodiment;

[0040] FIG8 is a step of determining the location information of a target user according to a target image in one embodiment;

[0041] FIG9 is a flow chart of steps for responding to a greeting action of a target user in one embodiment;

[0042] FIG10 is a flow chart of steps for responding to a greeting action of a target user in another embodiment;

[0043] FIG11 is a schematic flow chart of a robot interaction method in another embodiment;

[0044] FIG12 is a block diagram of a robot interaction device in one embodiment;

[0045] FIG. 13 is a diagram showing the internal structure of a robot device in one embodiment. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] With the development of science and technology, the use of robots is becoming more and more widespread. In the process of human-computer interaction, robots recognize human intentions and make corresponding feedback, which is a manifestation of robot intelligence.

[0048] In traditional human-computer interaction, robots can interact with users based on voice recognition technology. For example, through a voice assistant or voice interface, users can use natural voice to issue commands to the robot, and the robot will recognize the user's intention after receiving the voice and give corresponding feedback. However, when human-computer interaction is carried out through traditional methods, the robot cannot accurately receive the user's voice and give feedback in a noisy environment. The robot has low accuracy in recognizing user interaction commands and cannot accurately respond to user interaction commands.

[0049] In view of this, the present application provides a robot interaction method that can accurately respond to user interaction instructions. The robot interaction method provided in the embodiment of the present application, its execution subject can be a robot interaction device, and the robot interaction device can be implemented by software, hardware, or a combination of software and hardware. It can be embedded in or independent of the processor in the robot device in the form of hardware, or it can be stored in the memory of the robot device in the form of software. In the following method embodiments, the execution subject is a robot as an example for explanation.

[0050] In an exemplary embodiment, as shown in FIG1 , a robot interaction method is provided, comprising the following steps 101 to 104. Among them:

[0051] S101, acquiring a target image.

[0052] The target image includes a target user.

[0053] Optionally, the target user in the target image may be a user who is greeting the robot or is about to greet the robot.

[0054] Optionally, the target image may be an image captured in real time by an imaging device in the robot device, or may be an image obtained by preprocessing the captured image, or may be an image of the current frame obtained by acquiring a video in real time by an imaging device and parsing the video, and taking the current frame image as the target image. This is not limited in the embodiments of the present application.

[0055] Optionally, the imaging device in the robot device may include: a fisheye camera, a depth camera or an RGBD camera, etc., and the above cameras may be single-purpose or dual-purpose, which is not limited in the embodiments of the present application.

[0056] S102: Perform action recognition processing on the target user according to the target image to determine whether the target user performs a greeting action.

[0057] Optionally, the target image can be input into a preset posture recognition model, and the posture of the target user in the target image can be detected through computer vision and deep learning technology to identify the target user's actions and compare them with preset greeting actions to determine whether the target user performs a greeting action.

[0058] In one possible implementation, the preset posture recognition model can be implemented based on yolov8-pose. Yolov8-pose is a posture recognition model based on yolov8, that is, based on the yolov8 target detection model, the posture estimation function is added, which can accurately estimate the posture information of the target user, and then accurately perform posture recognition.

[0059] In another possible implementation, the preset posture recognition model can be implemented based on OpenPose. OpenPose uses convolutional neural networks to extract image features and predicts the relationship between human body parts and limbs through part affinity fields (PAF), which can perform multi-person human posture estimation more real-time and accurately.

[0060] In another possible implementation, the preset posture recognition model can be implemented based on AlphaPose. The processing flow of AlphaPose can be divided into three stages: target detection, posture estimation and tracking. A target detection algorithm based on region proposal is used to detect the user position in the image and perform key point detection on each user. A regression-based method is used to predict the position of each key point. At the same time, a matching method based on the Hungarian algorithm is used to match and track users in consecutive frames. Through the three-stage processing flow, AlphaPose can achieve efficient and accurate human posture estimation and tracking.

[0061] S103: If the target user performs a greeting action, the location information of the target user is determined according to the target image.

[0062] Optionally, after determining that the target user performs a greeting action based on the target image, it is necessary to determine the location information of the target user so that the robot can interact with the target user. The location information includes the geographic coordinate information of the target user.

[0063] In one possible implementation, the target image can be input into a preset machine learning model to analyze the terrain, architectural style and other visual clues in the target image to determine the location information of the target user.

[0064] In another possible implementation method, the parameters of the imaging device of the robot device can be obtained. After obtaining the parameters of the imaging device and the target image, the interface provided by the computer vision open source library such as OpenCV can be called to determine the position of the target user in the coordinate system of the robot device, and then the position information of the target user can be determined based on the position information of the robot device.

[0065] S104: respond to the target user's greeting action according to the location information.

[0066] Optionally, after determining the location information of the target user, the robot may respond to the target user's greeting action according to a preset greeting process.

[0067] Optionally, the robot can move to the location of the target user and respond to the target user's greeting by displaying information on the screen or playing an animation, or respond to the target user's greeting through voice or light. The embodiment of the present application does not limit the way in which the robot responds to the target user's greeting.

[0068] The above-mentioned robot interaction method obtains a target image, which includes a target user. Then, based on the target image, the target user is subjected to action recognition processing to determine whether the target user performs a greeting action. If the target user performs a greeting action, the target user's location information is determined based on the target image, and finally the target user's greeting action is responded to based on the location information. In an embodiment of the present application, by identifying the target user's action to determine whether to respond to the target user, this method based on visual interaction can avoid the problem that the robot cannot accurately identify the target user's interaction instructions in a noisy environment, and improve the accuracy of identifying the target user's instructions. Secondly, after determining that the target user performs a greeting action, that is, after identifying the target user's interaction instructions, the target user's interaction instructions are responded to based on the target user's location information, which can accurately respond to the target user and also improve the intelligence of the robot interaction.

[0069] In an exemplary embodiment, as shown in FIG2 , optionally, the target image includes a first target image, and the target user is subjected to action recognition processing according to the target image to determine whether the target user performs a greeting action, including the following steps 201 to 202. Among them:

[0070] S201, determining whether the target user's head is facing the robot according to the first target image, and / or determining whether the target user's hand is raised according to the first target image.

[0071] Optionally, the first target image may be an RGB image including the target user.

[0072] Optionally, when determining whether the target user's head is facing the robot based on the first target image, the target user's facial image can be first determined from the first target image, and then determined whether the target user's head is facing the robot based on the target user's facial image.

[0073] In a possible implementation manner, determining the face image of the target user from the first target image may be achieved by using a face detection algorithm, such as a Haar cascade classifier or HOG+SVM.

[0074] In another possible implementation, determining the facial image of the target user from the first target image can be achieved through the target user's body key points in the first target image, and the target user's head position can be determined based on the body key points, and then the target user's body image can be determined from the area where the target user's head position is located.

[0075] In one possible implementation, when determining whether the target user's hand is raised according to the first target image, feature matching, contour detection and other algorithms in computer vision open source libraries such as OpenCV can be used to identify the hand area image in the first target image. The hand area image includes the target user's hand and shoulder, etc. After extracting the target user's hand contour, a vertex detection algorithm (for example, convex hull Convex) can be used to detect the hand area image. Hull algorithm) to determine the vertex of the hand contour, or by analyzing the geometric position of the hand contour, find the vertex of the hand contour, which can be used as the upper boundary of the hand contour, and then determine whether the target user's hand is raised by analyzing the upper boundary of the hand contour. For example, when the upper boundary of the hand contour is higher than the center line of the hand area image, it can be considered that the target user's hand is raised, and when the upper boundary of the hand contour is not higher than the center line of the hand area image, it is considered that the target user's hand is not raised, wherein the center line of the hand area image can be a straight line that divides the hand area image into two equal parts in the horizontal direction, or a straight line that passes through the geometric center of the hand contour and is perpendicular to the main axis direction, wherein the geometric center of the hand contour can be determined by calculating the mean position of all pixel points of the hand contour. The following is an explanation of the method for determining the main axis direction: calculate the covariance matrix of the contour points in the hand contour, and determine the eigenvalues ​​and eigenvectors of the covariance matrix by principal component analysis, find out the main change direction of the hand contour, and determine the straight line that passes through the geometric center of the hand contour and along the eigenvector direction corresponding to the maximum eigenvalue as the main axis direction.

[0076] In another possible implementation method, the depth information of the target user's hand can be determined by acquiring a depth image corresponding to the first target image, and then the position of the target user's hand in three-dimensional space can be determined based on the depth information of the target user's hand to determine whether the target user's hand is raised according to the position.

[0077] In another possible implementation, the hand region of the target user may be determined through key points in the first target image, and then whether the hand of the target user is raised may be determined based on the relative positions of the key points in the hand region.

[0078] S202: Determine whether the target user performs a greeting action according to whether the target user's head is facing the robot and / or whether the target user's hand is raised.

[0079] In one possible implementation, if the target user's head is facing the robot and the target user's hand is raised, it is determined that the target user is performing a greeting gesture; if the target user's head is facing the robot but the target user's hand is not raised, or the target user's hand is raised but the target user's head is not facing the robot, or the target user's head is not facing the robot and the target user's hand is not raised, it is determined that the target user is not performing a greeting gesture and there is no need to respond to the target user.

[0080] In another possible implementation, if the target user's head is facing the robot, or if the target user's hand is raised, it can be determined that the target user is performing a greeting gesture. Only when the target user's head is not facing the robot and the target user's hand is not raised, it is determined that the target user is not performing a greeting gesture and there is no need to respond to the target user.

[0081] The above method determines whether the target user's head is facing the robot according to the first target image, and / or determines whether the target user's hands are raised according to the first target image, and then determines whether the target user is performing a greeting action according to whether the target user's head is facing the robot and / or whether the target user's hands are raised. In this way, the target user's posture can be accurately identified based on the first target image to determine whether the target user is performing a greeting action, so that the target user can be responded to accurately.

[0082] In an exemplary embodiment, optionally, the target image includes multiple frames of first target images, and determining whether the target user performs a greeting action according to whether the head of the target user is facing the robot and / or whether the hand of the target user is raised includes:

[0083] If the target user's head is facing the robot in each frame of the first target image, and / or the target user's hand is raised in each frame of the first target image, it is determined that the target user performs a greeting action.

[0084] Optionally, the target user may be tracked, and whether the target user has performed a greeting action may be more accurately determined by tracking the actions of the target user.

[0085] Optionally, the multiple frames of first target images may be multiple consecutive frames of images.

[0086] In one possible implementation, the bytetrack algorithm can be used to track the target user. If the target user's head is facing the robot and / or the hands are raised in M ​​consecutive first target images, it is determined that the target user is performing a greeting gesture, where M can be a preset number of first image frames. For example, when it is detected in 4 consecutive first target images that the target user's head is facing the robot, it can be considered that the target user is performing a greeting gesture; or, when it is detected in 4 consecutive first target images that the target user's hands are raised, it can be considered that the target user is performing a greeting gesture; or, when it is detected in 4 consecutive first target images that the target user's head is facing the robot and the target user's hands are raised, it can be considered that the target user is performing a greeting gesture.

[0087] Optionally, when the bytetrack algorithm is used to track the target user, the algorithm flow may include the following steps:

[0088] The first step is to obtain an existing tracking sequence. If it is the first frame of the first target image, the target detection result of the first frame of the target image is the tracking sequence. The target detection result may include the detection frame and confidence of the target user.

[0089] In the second step, Kalman filtering is used to perform trajectory prediction on the tracking sequence to obtain a predicted trajectory sequence of the current frame, including an uncertain tracking trajectory and a determined tracking trajectory. At the same time, target detection is performed on the current frame to obtain a target detection result. The detection frame is divided into a high-score frame or a low-score frame according to the confidence and a preset confidence threshold. The preset confidence threshold may include a high-score threshold and a low-score threshold. If the confidence of the detection frame is greater than the high-score threshold, the detection frame is divided into a high-score frame. If the confidence of the detection frame is less than the low-score threshold, the detection frame is divided into a low-score frame.

[0090] The third step is to match the high-resolution frame with the determined tracking trajectory. If the match is successful, it is returned to the Kalman filter to update the trajectory. If the match is unsuccessful, it is matched together with the low-resolution frame obtained by the previous detection. Finally, the Kalman filter is updated and the unmatched trajectory is temporarily stored in the tracking sequence. The unmatched detection frames of multiple consecutive frames are regarded as new trajectories and added to the tracking sequence until the last frame of the first target image.

[0091] Optionally, when using the bytetrack algorithm to track the target user, target detection can be performed on the first target image based on yolov8-pose. On the one hand, yolov8-pose can detect the posture of the target user in the first target image, and on the other hand, the detection box and confidence of the target user in the yolov8-pose detection result can be used as input of the bytetrack algorithm to track the target user. Other target detection algorithms can also be used for target detection to obtain the detection box and confidence of the target user, such as yolov5, Faster R-CNN, etc.

[0092] Optionally, ByteTrack uses a unified 2D and 3D data association strategy, which can extract real targets from low-confidence detection boxes, solve problems such as missed detection of target users and trajectory fragmentation, improve tracking continuity and enhance the ability to handle complex samples.

[0093] If the target user's head is facing the robot in each frame of the first target image, and / or the target user's hands are raised in each frame of the first target image, it is determined that the target user is performing a greeting action. The target user can be tracked in real time, and the target user's posture can be determined more accurately, thereby accurately performing action recognition processing on the target user.

[0094] In an exemplary embodiment, as shown in FIG3 , optionally, determining whether the target user's head is facing the robot according to the first target image includes the following steps 301 to 302 . Among them:

[0095] S301, performing human body key point recognition processing on a first target image to obtain a plurality of human body key points corresponding to a target user.

[0096] Optionally, the first target image may be input into a preset posture recognition model to output a plurality of human body key points corresponding to the target user. The preset posture recognition model may be implemented based on yolov8-pose.

[0097] Optionally, as shown in Figure 4, it is a schematic diagram of multiple human body key points corresponding to the target user output by the preset posture recognition model, with a total of 17 key points, and the human body parts of the target user corresponding to each key point include: 0: nose, 1: left eye, 2: right eye, 3: left ear, 4: right ear, 5: left shoulder, 6: right shoulder, 7: left elbow, 8: right elbow, 9: left wrist, 10: right wrist, 11: left hip, 12: right hip, 13: left knee, 14: right knee, 15: left ankle, 16: right ankle.

[0098] S302: Determine whether the head of the target user is facing the robot according to a plurality of human body key points corresponding to the target user.

[0099] In a possible implementation, it can be determined whether the head of the target user is facing the robot based on whether the positions of the human body key points corresponding to the target user in the first target image correspond to the preset positions.

[0100] In another possible implementation, the face region image of the target user may be determined based on the key points of the human body corresponding to the target user, and then it may be determined whether the head of the target user is facing toward the robot.

[0101] Optionally, by performing human body key point recognition processing on the first target image, multiple human body key points corresponding to the target user are obtained, and based on the multiple human body key points corresponding to the target user, it is determined whether the target user's head is facing the robot. In this way, the behavior of the target user in various complex environments can be analyzed based on the human body key points, and the head and hand postures of the target user can be judged simultaneously based on multiple key points, so as to accurately perform action recognition processing on the target user.

[0102] Optionally, as shown in FIG5 , determining whether the target user's head is facing the robot according to a plurality of human body key points corresponding to the target user includes the following steps 501 to 502. Among them:

[0103] S501, identifying a face region of a target user according to face key points located at face positions among a plurality of body key points corresponding to the target user.

[0104] Optionally, the facial key points located at the face position may include the left ear, right ear, left eye, right eye and nose, or may be other characteristic parts used to identify the face such as the mouth and eyebrows, and the facial area of ​​the target user can be determined based on the positions of the above facial key points.

[0105] S502: Input the image corresponding to the face area into a face orientation recognition model, and determine whether the head of the target user is facing the robot according to the output of the face orientation recognition model.

[0106] In one possible implementation, the facial orientation angle of the target user can be determined based on the image corresponding to the facial area of ​​the target user, and then whether the target user's head is facing the robot can be determined. Optionally, the face orientation recognition model is an fsa-net model, and the output of the face orientation recognition model includes the yaw angle and pitch angle of the face orientation. Whether the target user's head is facing the robot is determined based on the output of the face orientation recognition model, including: if the yaw angle of the face orientation is less than a preset yaw angle threshold, and the pitch angle of the face orientation is less than a preset pitch angle threshold, then it is determined that the target user's head is facing the robot.

[0107] Optionally, the fsa-net model is a deep learning model for head pose estimation, which uses a multi-scale convolutional neural network to extract features of face images at different scales, which can improve the accuracy of head pose estimation. Moreover, by fusing features at different levels using a feature pyramid network, the model's adaptability to faces of different sizes can be enhanced. At the same time, a fine-grained pose regression method is used to accurately predict fine pose changes of the head by introducing additional network branches.

[0108] Optionally, the yaw angle and pitch angle of the face orientation are two important parameters that describe the direction of the head in three-dimensional space. The yaw angle can be the angle of rotation of the head around the vertical axis, and its value range can be 0° to 360°, or from -180° to 180°. When the target user turns his head left or right, the yaw angle of his face orientation changes; the pitch angle can be the angle of rotation of the head around the horizontal axis, and its value range is the same as the yaw angle. When the target user nods or raises his head, the pitch angle of his face orientation changes.

[0109] Optionally, taking the preset yaw angle threshold and the preset pitch angle threshold as 20° as an example, when the yaw angle and the pitch angle of the face are less than 20°, it can be determined that the head of the target user is facing the robot.

[0110] In another possible implementation, the line of sight direction of the target user is determined based on the image corresponding to the target user's facial area, and then it is determined whether the target user's head is facing the robot. The output of the face recognition model is the eye gaze angle of the target user. If the eye gaze angle of the target user meets the preset line of sight angle threshold, it is determined that the target user's head is facing the robot.

[0111] The above method identifies the face area of ​​the target user according to the facial key points located at the face position among the multiple human body key points corresponding to the target user, inputs the image corresponding to the face area into the face orientation recognition model, and determines whether the head of the target user is facing the robot according to the output of the face orientation recognition model. In this way, the image corresponding to the face area of ​​the target user is determined according to the facial key points, and the face image of the target user can be accurately framed. Then, the head posture of the target user can be accurately estimated according to the face orientation recognition model, which can improve the accuracy of judging whether the head of the target user is facing the robot.

[0112] Optionally, the method for determining whether the target user's hand is raised is the same as the above method, and it can be determined whether the position of the human body key point corresponding to the target user meets the preset position, or the hand area of ​​the target user is determined based on the human body key point, and whether the target user's hand is raised is determined based on the image of the target user's hand area.

[0113] In an exemplary embodiment, as shown in FIG6 , optionally, determining whether the target user's hand is raised according to the first target image includes the following steps 601 to 603. Among them:

[0114] S601, performing human body key point recognition processing on a first target image to obtain a plurality of human body key points corresponding to a target user.

[0115] Optionally, the method of performing human body key point recognition processing on the first target image is the same as that in the above step 301, and this embodiment of the present application will not be repeated herein.

[0116] S602: Identify a hand region of the target user according to a hand key point located at a hand position among a plurality of human body key points corresponding to the target user.

[0117] Optionally, the hand key points located at the hand position may include the left shoulder, the right shoulder, the left elbow, the right elbow, the left wrist and the right wrist, and the hand area of ​​the target user may be determined according to the positions of the above hand key points.

[0118] Optionally, when identifying the hand area of ​​the target user based on the hand key points, only the left hand area of ​​the target user can be identified, or only the right hand area of ​​the target user can be identified, or both the left and right hand areas can be identified at the same time. This is not limited in the embodiments of the present application.

[0119] S603: If, in the hand area, the left wrist is higher than the middle of the left elbow and the left shoulder, and / or the right wrist is higher than the middle of the right elbow and the right shoulder, it is determined that the hand of the target user is raised.

[0120] Optionally, it may be determined whether the target user's hand is raised according to the relative positions of the target user's hand key points in the hand area.

[0121] Optionally, when the left wrist is higher than the middle of the left elbow and the left shoulder, the positions of the left wrist and the left shoulder can be further judged. For example, when the left wrist is higher than the middle of the left elbow and the left shoulder and the left wrist is further to the left of the left shoulder, it can be determined that the target user's hand is raised, or when the left wrist is higher than the middle of the left elbow and the left shoulder and the left wrist is further to the right of the left shoulder, it can be determined that the target user's hand is raised, or when the left wrist is higher than the middle of the left elbow and the left shoulder and the left wrist is on the same line as the left shoulder, it can be determined that the target user's hand is raised. The embodiments of the present application are not limited to this.

[0122] Optionally, similarly, when the right wrist is higher than the middle of the right elbow and right shoulder, the positions of the right wrist and right shoulder can also be judged. For example, when the right wrist is higher than the middle of the right elbow and right shoulder and the right wrist is further to the right than the right shoulder, it can be determined that the target user's hand is raised, or, when the right wrist is higher than the middle of the right elbow and right shoulder and the right wrist is further to the left than the right shoulder, it can be determined that the target user's hand is raised, or, when the right wrist is higher than the middle of the right elbow and right shoulder and the right wrist is on the same line as the right shoulder, it can be determined that the target user's hand is raised. The embodiments of the present application are not limited to this.

[0123] The above method identifies the hand area of ​​the target user according to the hand key points located at the hand position among the multiple human body key points corresponding to the target user. If, in the hand area, the left wrist is higher than the middle of the left elbow and the left shoulder, and / or the right wrist is higher than the middle of the right elbow and the right shoulder, or the left wrist is higher than the middle of the left elbow and the left shoulder and the left wrist is further to the left than the left shoulder, or the right wrist is higher than the middle of the right elbow and the right shoulder and the right wrist is further to the right than the right shoulder, then it is determined that the hand of the target user is raised. In this way, the hand area of ​​the target user can be accurately determined according to the positions of the multiple key points, and then whether the hand of the target user is raised can be determined according to the relative positions of the multiple key points, which can improve the accuracy of judging the hand posture of the target user.

[0124] In an exemplary embodiment, as shown in FIG7 , optionally, the first target image includes two left and right fisheye images taken by the robot, and determining whether the target user's head is facing the robot according to the first target image, and / or determining whether the target user's hand is raised according to the first target image, includes the following steps 701 to 702. Among them:

[0125] S701, stitching and reducing the two left and right fisheye images to obtain a stitched image.

[0126] Optionally, a binocular fisheye camera can be used as an imaging device of the robot to obtain two left and right fisheye images, which can effectively increase the shooting viewing angle range.

[0127] Optionally, the stitched image may be an RGB image including the target user.

[0128] Optionally, the left and right fisheye images can be stitched together to obtain an initial stitched image, which can obtain a wider viewing angle or a higher resolution, and the initial stitched image can be reduced to obtain a stitched image, which can reduce the time consumption of subsequent target user action recognition processing and improve processing efficiency.

[0129] Optionally, the process of image stitching may include feature detection and extraction, feature matching, geometric change and image fusion. First, key feature points, such as corner points, edges or specific textures, are identified and extracted from the two fisheye images to be stitched. Feature detection and extraction can be achieved through algorithms such as Scale Invariant Feature Transform (SIFT) and speed-up robust features (SURF). Then, feature matching is performed. The purpose of this step is to establish a correspondence between different images. By comparing the similarity of feature descriptors, matching feature point pairs can be found. Next, geometric transformation is performed. In order to align images for seamless stitching, it is necessary to estimate geometric transformation parameters between images, such as translation, rotation and scaling. Finally, image fusion is performed. This step is to seamlessly merge the aligned images together, eliminate visible seams and achieve smooth transition. Image fusion can be performed by pixel-level fusion, feature-level fusion and decision-level fusion to obtain an initial stitched image.

[0130] Optionally, the size of the initial stitched image may be adjusted by calling a resize function in the OpenCV library to obtain a stitched image.

[0131] S702: Determine whether the target user's head is facing the robot according to the stitched image, and / or determine whether the target user's hand is raised according to the stitched image.

[0132] Optionally, when determining whether the target user's head is facing the robot based on the stitched image, and / or determining whether the target user's hand is raised based on the stitched image, the stitched image can be used as the first target image, and its processing method is consistent with the processing method of step 201, and the embodiments of the present application will not be repeated here.

[0133] The left and right fisheye images are stitched and reduced to obtain a stitched image, and whether the target user's head is facing the robot is determined based on the stitched image, and / or whether the target user's hand is raised is determined based on the stitched image. In this way, a wider viewing angle or a higher resolution can be obtained, and after the fisheye image is reduced, the efficiency of target user action recognition can be improved.

[0134] In an exemplary embodiment, as shown in FIG8 , optionally, the target image further includes a second target image, and the second target image is a depth image. Determining the location information of the target user according to the target image includes the following steps 801 to 803. Among them:

[0135] S801, dedistorting a first target image, and mapping a plurality of key points of a target user's body to the dedistorted first target image to obtain a third target image.

[0136] Optionally, the first target image can be dedistorted according to the internal parameters of the imaging device of the robot equipment, wherein the internal parameters may be parameters describing the optical characteristics and properties of the photosensitive element of the imaging device, such as focal length, optical center position, pixel size, etc.

[0137] Optionally, the first target image can be dedistorted by converting the distorted image coordinates into ideal undistorted coordinates according to the distortion model, and then calling the function in the OpenCV library to perform the dedistortion operation. For example, the undistort function, initUndistortRectifyMap function and remap function can be used, and the first target image, the intrinsic parameters of the imaging device and the distortion coefficient are taken as input, and the dedistorted first target image is output.

[0138] Optionally, a plurality of human body key points of the target user may be mapped to the dedistorted first target image through a function in the OpenCV library.

[0139] Optionally, if the target image includes multiple frames of the first target image, the target image may include multiple frames of the second target image, corresponding to the first target image one by one, or may include only one frame of the second target image, corresponding to the last frame of the first target image. When the first target image is dedistorted, only the last frame of the first target image may be dedistorted, and the target user's body key points in the last frame of the first target image are mapped to the last frame of the first target image after dedistortion.

[0140] S802: Map the point cloud in the second target image to the third target image to determine the pixel coordinates of the target user.

[0141] Optionally, the second target image is a depth image including the target user. The depth image may be a grayscale image, and each pixel value represents the distance from the imaging device to a corresponding point in the scene.

[0142] Optionally, the pixel coordinates of the target user may be the three-dimensional coordinates of the target user in the coordinate system of the imaging device.

[0143] Optionally, the point cloud in the second target image can be generated by converting each pixel in the second target image into a point in three-dimensional space, and each pixel in the second target image can be converted into a three-dimensional point (x, y, z) in the coordinate system of the imaging device based on the intrinsic parameters of the imaging device (such as focal length and principal point coordinates) and the coordinates of the pixel.

[0144] Optionally, the point cloud in the second target image is mapped to the third target image according to the internal parameters of each imaging device and the relative positional relationship between the first target image imaging device and the second target image imaging device.

[0145] In one possible implementation, the pixel coordinates of the target user can be determined by finding the point cloud corresponding to each human body key point of the target user in the third target image, wherein the point cloud corresponding to each human body key point can be a point cloud whose distance from the human body key point is consistent with a preset distance, and the preset distance is as small as possible. Then, the three-dimensional coordinates of each point cloud are determined and averaged to obtain the average three-dimensional coordinates, and the average three-dimensional coordinates are used as the pixel coordinates of the target user.

[0146] In another possible implementation, the pixel coordinates of the target user can be determined by determining the average position of the target user based on the key points of the target user in the third target image, and then determining the point cloud corresponding to the average position of the target user, and using the three-dimensional coordinates of the point cloud as the pixel coordinates of the target user.

[0147] S803: Determine the location information of the target user according to the pixel coordinates.

[0148] Optionally, external parameters of an imaging device of the robot equipment may be acquired, and the position information of the target user may be determined according to the pixel coordinates of the target user and the external parameters.

[0149] Optionally, the external parameters of the imaging device may be parameters describing the position and orientation of the imaging device in a specific scene or environment, including a rotation matrix R and a translation vector t.

[0150] In one possible implementation, after determining the three-dimensional coordinates of the target user in the imaging device coordinate system, determining the position of the target user in the robot coordinate system according to the external parameters of the imaging device in the robot coordinate system can be achieved by the following formula:

[0151]

[0152] Among them, the three-dimensional coordinates of the target user in the imaging device coordinate system are ( , , ), the position of the target user in the robot coordinate system is ( , , ).

[0153] Optionally, the position information of the target user may be determined according to the position of the robot and the position of the target user in the robot coordinate system.

[0154] In the above, the first target image is dedistorted, and multiple human body key points of the target user are mapped to the dedistorted first target image to obtain the third target image, and then the first target image is dedistorted, and multiple human body key points of the target user are mapped to the dedistorted first target image to obtain the third target image, and then the position information of the target user is determined according to the pixel coordinates. The position information of the target user can be accurately determined, and the robot can accurately interact with the target user.

[0155] In an exemplary embodiment, as shown in FIGS. 9 and 10 , optionally, responding to the greeting action of the target user according to the location information includes the following steps 901 to 903 . Among them:

[0156] S901, obtaining the status information of the robot.

[0157] Among them, the status information is used to describe whether the robot is idle.

[0158] In one possible implementation, the robot's moving speed can be obtained by acquiring data from sensors carried by the robot device, and the robot's state information can be determined based on the robot's moving speed. When the robot's moving speed is 0 m / s, the robot is in an idle state. When the robot's moving speed meets a preset moving speed threshold, the robot is considered not to be in an idle state.

[0159] In another possible implementation, the robot's position information can be obtained to determine the robot's state information. If the robot's position information does not change within a preset time period, the robot can be considered to be in an idle state. If the robot's position information changes within the preset time period, the robot is considered not to be in an idle state.

[0160] In another possible implementation, the status information of the robot can also be obtained through the monitoring system of the robot. The detection system can be a terminal device, which obtains the status information of the robot by directly or indirectly communicating with the robot.

[0161] In another possible implementation method, the robot's status information can also be obtained based on the robot's task list. If the robot's task list contains tasks being executed or tasks in queue, the robot is considered to be not in an idle state; if the robot's task list contains no tasks being executed or to be executed, the robot is considered to be in an idle state.

[0162] S902: If the robot is idle, obtain the initial position of the robot and move to the target point to respond to the target user's greeting action.

[0163] The distance between the target point and the position information satisfies a first preset distance.

[0164] Optionally, the response method includes at least one of the following: voice, light, or animation.

[0165] Optionally, the initial position of the robot may be the position of the robot before recognizing the greeting action of the target user.

[0166] Optionally, the robot may respond to the target user's greeting during movement, or may respond to the target user's greeting after moving to the target point, and the present application embodiment does not limit this. For example, the first preset distance may be 70 cm. After determining the location information of the target user, the robot may move to 70 cm in front of the target user, turn to the target user, and then respond to the target user's greeting, so that the target user can clearly see or hear the robot's response, which can improve the intelligence of the robot's interaction, and the robot and the target user maintain a certain spatial distance, which can give the target user a better experience, or the robot can attract the target user's attention through sound or light when it is far away from the target user, and when it is 70 cm away from the target user, it can respond to the target user's greeting by playing animation or in a more personalized way, which can improve the intelligence of the robot's interaction.

[0167] Optionally, if an abnormality occurs when the robot responds to the target user's greeting action, such as hardware failure, software failure or external environmental interference, the external environmental interference may include obstacles in the environment that may block the robot's sensors, affecting its obstacle avoidance and navigation capabilities, or other dynamic obstacles blocking the movement path. First, determine whether the abnormality affects the robot's movement. If the robot can still move under abnormal circumstances, it may be an abnormality caused by external environmental interference. When the blocking time is less than the preset blocking time threshold, the robot can continue to move to the target point after the blocking ends. If the blocking time is greater than the preset blocking time threshold, it may be an abnormality caused by an internal failure of the robot, and then return to the initial position. For example, the preset blocking time threshold can be 10s.

[0168] Optionally, when the target point cannot be determined, it can be considered that the target user is currently blocked, and the robot can respond to the target user's greeting action at the initial position.

[0169] S903, after the robot responds to the target user's greeting action, if it does not receive the target user's command within a preset time, it returns to the initial position.

[0170] Optionally, after the robot responds to the target user's greeting, it can determine the target user's further instructions by recognizing the target user's actions, recognizing the target user's voice, or receiving the target user's input, such as navigating for the target user. If no relevant instructions from the target user are received within a preset time, the robot can return to the initial position. The preset time is 30 seconds for example. If relevant instructions from the target user are received within the preset time, the robot will respond to the target user according to the target user's instructions and reset the time.

[0171] Optionally, referring to Figure 10, when responding to the target user's greeting action according to the location information, it may also include: if the robot is not idle, when the distance between the robot and the location information meets the second preset distance, the robot's moving speed is adjusted to the first moving speed, and responds to the target user's greeting action; after the robot responds to the target user's greeting action, the robot's moving speed is adjusted to the second moving speed, and the second moving speed is greater than the first moving speed.

[0172] Optionally, if the robot is not idle, the robot may be performing tasks according to the instructions of other target users, such as navigation or delivery. At this time, the robot is in a moving state. When the distance between the robot and the target user's location information meets a second preset distance, the robot's moving speed can be reduced. For example, when the robot is at the second preset distance from the target user's location information, the robot's moving speed can be reduced to 75% of the original moving speed; after responding to the target user's greeting action, the robot's speed can be restored to the original moving speed, or the robot's moving speed can be increased and be greater than the original moving speed.

[0173] Optionally, the second preset distance may be the same as the first preset distance, or may be greater than the first preset distance. The embodiment of the present application does not limit this. Taking the second preset distance of 3m as an example, when the robot moves to 3m away from the target user, it needs to reduce the moving speed and respond to the target user's greeting, so that the target user can clearly see or hear the robot's response. However, if the moving speed is reduced to respond to the target user after reaching the target user's location information, the target user cannot accurately know that the robot is responding to a greeting. At the same time, reducing the moving speed when the robot is at the second preset distance from the target user can protect the safety of the target user and the robot, avoid collision, and improve the intelligence of the robot's interaction.

[0174] Optionally, as shown in FIG10 , it is a flowchart of the steps of responding to the greeting action of the target user, which includes the process of the robot responding to the greeting action of the target user in both idle and non-idle states. For details, please refer to the description of steps 901 to 903, which will not be repeated here.

[0175] After determining that the target user has executed a greeting action, the target user's location information is determined, and the robot's status information is further obtained. The target user's greeting action is responded to according to the status information and location information. The robot can respond to the target user's greeting action according to the different states of the robot, and respond to the target user's interaction instructions based on the target user's location information. The target user can be responded to accurately, and the intelligence of the robot's interaction is also improved.

[0176] As an optional implementation, as shown in FIG11 , the robot interaction method provided by the present application may include the following specific steps:

[0177] S1101, acquiring a target image.

[0178] Wherein, the target image includes the target user,

[0179] S1102, the target image includes a first target image, and a human body key point recognition process is performed on the first target image to obtain a plurality of human body key points corresponding to the target user.

[0180] S1103, identifying the face area of ​​the target user according to the face key points located at the face position among the multiple body key points corresponding to the target user.

[0181] S1104: Input the image corresponding to the face area into a face orientation recognition model, and determine whether the head of the target user is facing the robot according to the output of the face orientation recognition model.

[0182] Among them, the face orientation recognition model is the fsa-net model, and the output of the face orientation recognition model includes the yaw angle and pitch angle of the face orientation. If the yaw angle of the face orientation is less than the preset yaw angle threshold, and the pitch angle of the face orientation is less than the preset pitch angle threshold, it is determined that the target user's head is facing the robot.

[0183] S1105, identifying the hand region of the target user according to the hand key points located at the hand position among the multiple human body key points corresponding to the target user.

[0184] S1106: If, in the hand area, the left wrist is higher than the middle of the left elbow and the left shoulder, and / or the right wrist is higher than the middle of the right elbow and the right shoulder, it is determined that the target user's hand is raised.

[0185] S1107, the target image includes multiple frames of first target images. If the head of the target user in each frame of the first target image is facing the robot, and / or the hand of the target user in each frame of the first target image is raised, it is determined that the target user performs a greeting action.

[0186] S1108: If the target user performs a greeting action, the first target image is dedistorted, and a plurality of body key points of the target user are mapped to the dedistorted first target image to obtain a third target image.

[0187] S1109, mapping the point cloud in the second target image to the third target image to determine the pixel coordinates of the target user.

[0188] S1110, determining location information of the target user according to the pixel coordinates.

[0189] S1111, obtain status information of the robot.

[0190] Among them, the status information is used to describe whether the robot is idle;

[0191] S1112, if the robot is idle, obtain the initial position of the robot, and move to the target point to respond to the target user's greeting action.

[0192] Among them, the distance between the target point and the position information meets the first preset distance, and the response method includes at least one of the following: voice, light or playing animation.

[0193] S1113, after the robot responds to the target user's greeting action, if it does not receive any instruction from the target user within a preset time, it returns to the initial position.

[0194] S1114, if the robot is not idle, when the distance between the robot and the location information meets the second preset distance, the moving speed of the robot is adjusted to the first moving speed, and the robot responds to the greeting action of the target user.

[0195] S1115, after the robot responds to the target user's greeting action, the robot adjusts its moving speed to a second moving speed, where the second moving speed is greater than the first moving speed.

[0196] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0197] Based on the same inventive concept, the embodiment of the present application also provides a robot interaction device for implementing the robot interaction method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more robot interaction device embodiments provided below can refer to the limitations of the robot interaction method above, and will not be repeated here.

[0198] In an exemplary embodiment, as shown in FIG. 12 , a robot interaction device 1200 is provided, comprising: an acquisition module 1201 , a first determination module 1202 , a second determination module 1203 and a response module 1204 , wherein:

[0199] An acquisition module 1201 is used to acquire a target image, where the target image includes a target user;

[0200] The first determination module 1202 is used to perform action recognition processing on the target user according to the target image to determine whether the target user performs a greeting action;

[0201] The second determination module 1203 is used to determine the location information of the target user according to the target image if the target user performs a greeting action;

[0202] The response module 1204 is used to respond to the greeting action of the target user according to the location information.

[0203] In an exemplary embodiment, the first determination module 1201 is specifically used to determine whether the target user's head is facing the robot based on the first target image, and / or, determine whether the target user's hand is raised based on the first target image; and determine whether the target user performs a greeting action based on whether the target user's head is facing the robot and / or, whether the target user's hand is raised.

[0204] In an exemplary embodiment, the first determination module 1201 is specifically used to perform human key point recognition processing on the first target image to obtain multiple human key points corresponding to the target user; identify the face area of ​​the target user based on the facial key points located at the face position among the multiple human key points corresponding to the target user; input the image corresponding to the facial area into the face orientation recognition model, and determine whether the head of the target user is facing the robot based on the output of the face orientation recognition model.

[0205] In an exemplary embodiment, the face orientation recognition model is an fsa-net model, and the output of the face orientation recognition model includes the yaw angle and pitch angle of the face orientation. The first determination module 1201 is specifically used to determine that the target user's head is facing the robot if the yaw angle of the face orientation is less than a preset yaw angle threshold, and the pitch angle of the face orientation is less than a preset pitch angle threshold.

[0206] In an exemplary embodiment, the first determination module 1201 is specifically used to perform human key point recognition processing on the first target image to obtain multiple human key points corresponding to the target user; identify the hand area of ​​the target user according to the hand key points located at the hand position among the multiple human key points corresponding to the target user; if in the hand area, the left wrist is higher than the middle of the left elbow and the left shoulder, and / or the right wrist is higher than the middle of the right elbow and the right shoulder and the right wrist is further to the right than the right shoulder, then it is determined that the target user's hand is raised.

[0207] In an exemplary embodiment, the first target image includes two left and right fisheye images taken by the robot, and the first determination module 1201 is specifically used to stitch and reduce the two left and right fisheye images to obtain a stitched image; determine whether the target user's head is facing the robot according to the stitched image, and determine whether the target user's hand is raised according to the stitched image.

[0208] In an exemplary embodiment, the target image also includes a second target image, which is a depth image. The second determination module 1202 is specifically used to dedistort the first target image and map multiple human body key points of the target user to the dedistorted first target image to obtain a third target image; map the point cloud in the second target image to the third target image to determine the pixel coordinates of the target user; and determine the location information of the target user based on the pixel coordinates.

[0209] In an exemplary embodiment, the response module 1203 is specifically used to obtain the status information of the robot, and the status information is used to describe whether the robot is idle; if the robot is idle, the initial position of the robot is obtained, and it moves to the target point to respond to the target user's greeting action, and the distance between the target point and the position information satisfies a first preset distance; after the robot responds to the target user's greeting action, if no instruction from the target user is received within a preset time, it returns to the initial position.

[0210] In an exemplary embodiment, the response module 1203 is also used to adjust the robot's moving speed to a first moving speed and respond to a target user's greeting action if the robot is not idle and the distance between the robot and the location information meets a second preset distance; after the robot responds to the target user's greeting action, the robot adjusts its moving speed to a second moving speed, which is greater than the first moving speed.

[0211] Each module in the above robot interaction device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor in the robot device in the form of hardware, or can be stored in the memory in the robot device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0212] In an exemplary embodiment, a robot device is provided, and the internal structure diagram of the robot device can be shown in Figure 13. The robot device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the robot device is used to provide computing and control capabilities. The memory of the robot device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the robot device is used to exchange information between the processor and an external device. The communication interface of the robot device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a robot interaction method is implemented. The display unit of the robot device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the robot device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the robot device shell, or an external keyboard, touchpad or mouse.

[0213] Those skilled in the art will understand that the structure shown in FIG. 13 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the robot device to which the scheme of the present application is applied. The specific robot device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0214] In an exemplary embodiment, a robot device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps described in any of the above method embodiments when executing the computer program.

[0215] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps described in any of the above method embodiments are implemented.

[0216] In one embodiment, a computer program product is provided, including a computer program, which implements the steps described in any of the above method embodiments when executed by a processor.

[0217] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0218] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0219] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A robot interaction method, characterized in that: For a robot, the method comprises: Acquire a target image, where the target image includes a target user; Performing action recognition processing on the target user according to the target image to determine whether the target user performs a greeting action; If the target user performs a greeting action, determining the location information of the target user according to the target image; The target user's greeting action is responded to according to the location information.

2. The method according to claim 1, characterized in that The target image includes a first target image, and the performing action recognition processing on the target user according to the target image to determine whether the target user performs a greeting action includes: determining, according to the first target image, whether the head of the target user is facing toward the robot, and / or determining, according to the first target image, whether the hand of the target user is raised; Whether the target user performs a greeting action is determined according to whether the target user's head is facing the robot and / or whether the target user's hand is raised.

3. The method according to claim 2, characterized in that The determining, according to the first target image, whether the head of the target user is facing toward the robot comprises: Performing human body key point recognition processing on the first target image to obtain a plurality of human body key points corresponding to the target user; Identifying a face region of the target user according to a face key point located at a face position among a plurality of body key points corresponding to the target user; The image corresponding to the face area is input into a face orientation recognition model, and it is determined whether the head of the target user is facing the robot according to the output of the face orientation recognition model.

4. The method according to claim 3, characterized in that The face orientation recognition model is an fsa-net model, the output of the face orientation recognition model includes a yaw angle and a pitch angle of the face orientation, and determining whether the head of the target user is facing the robot according to the output of the face orientation recognition model includes: If the yaw angle of the face direction is less than a preset yaw angle threshold, and the pitch angle of the face direction is less than a preset pitch angle threshold, it is determined that the head of the target user is facing the robot.

5. The method according to claim 2, characterized in that: The determining, according to the first target image, whether the hand of the target user is raised includes: Performing human body key point recognition processing on the first target image to obtain a plurality of human body key points corresponding to the target user; Identifying a hand region of the target user according to a hand key point located at a hand position among a plurality of human body key points corresponding to the target user; If, in the hand area, the left wrist is higher than the middle of the left elbow and the left shoulder, and / or the right wrist is higher than the middle of the right elbow and the right shoulder, it is determined that the target user's hand is raised.

6. The method according to claim 2, characterized in that The first target image includes two left and right fisheye images taken by the robot, and determining whether the head of the target user is facing the robot according to the first target image, and / or determining whether the hand of the target user is raised according to the first target image includes: The two left and right fisheye images are stitched and reduced to obtain a stitched image; Determine whether the target user's head is facing the robot according to the stitched image, and / or determine whether the target user's hand is raised according to the stitched image.

7. The method according to claim 2, characterized in that The target image further includes a second target image, where the second target image is a depth image, and determining the location information of the target user according to the target image includes: Dedistorting the first target image, and mapping a plurality of key points of the target user's body to the dedistorted first target image to obtain a third target image; Mapping the point cloud in the second target image into the third target image to determine the pixel coordinates of the target user; The location information of the target user is determined according to the pixel coordinates.

8. The method according to claim 1, characterized in that The responding to the greeting action of the target user according to the location information includes: Acquire status information of the robot, where the status information is used to describe whether the robot is idle; If the robot is idle, obtaining the initial position of the robot, and moving to a target point to respond to the target user's greeting action, the distance between the target point and the position information satisfies a first preset distance; After the robot responds to the target user's greeting action, if it does not receive any instruction from the target user within a preset time period, it returns to the initial position.

9. The method according to claim 8, characterized in that The responding to the target user's greeting action according to the location information further includes: If the robot is not idle, when the distance between the robot and the position information meets the second preset distance, the moving speed of the robot is adjusted to the first moving speed, and the robot responds to the greeting action of the target user; After the robot responds to the greeting action of the target user, the robot adjusts its moving speed to a second moving speed, where the second moving speed is greater than the first moving speed.

10. A robot device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.