A hand-eye collaborative target localization method
Through the hand-eye orientation collaborative target positioning method, image and depth information are used to automatically calculate the target position, which solves the problems of scene adaptability and operational convenience in traditional methods, and achieves higher positioning accuracy and convenient operation.
Patent Information
- Application Number
- CN202111003611.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-30
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-08-30
AI Technical Summary
Traditional target positioning methods have shortcomings in scene adaptability and operational convenience. Automatic positioning methods have high environmental requirements and poor accuracy, while manual-assisted positioning methods require additional auxiliary equipment and are difficult to operate.
The hand-eye orientation collaborative target positioning method is used to automatically detect human body areas through image acquisition and depth acquisition equipment, extract eye orientation and hand orientation vectors, calculate the position of the target in three-dimensional space, and use neural networks to establish a three-dimensional spatial model of the human body and hands. , calculate the eye orientation and hand orientation vectors, and locate the target position.
It improves the scene adaptability and target positioning accuracy, reduces the difficulty of operation, does not require manual operation of additional auxiliary equipment, and the operation is more in line with human habits.
Smart Images

Figure CN113850145B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to target positioning technology, and more specifically to a hand-eye coordination target positioning method for human-computer interaction. Background Art
[0002] Target positioning technology can obtain the position of a target in space through pre-set features or with human assistance. This technology can complete the analysis of the space where the target is located without contact, and then provide guidance for subsequent analysis and processing of decisions related to the target. In recent years, this function has played an important role in human-computer interaction, robot navigation, VR, AR and other fields.
[0003] Traditional target positioning methods include automatic target positioning and manually assisted target positioning. The automatic positioning method does not require human participation, and can complete the autonomous determination of the target through pre-set target features. However, this method has high requirements for the external environment and often cannot cover all real-life scenarios. Therefore, there are problems such as target positioning deviation and poor scene adaptability. The manually assisted positioning method requires human participation, and humans specify target features or locations. This method improves the accuracy of target positioning, but requires the assistance of other confirmation tools, such as a mouse, keyboard, laser positioning pen, etc., making the operation less convenient and difficult. Summary of the invention
[0004] In order to solve the problems in the prior art, the present invention provides a hand-eye collaborative target positioning method, which does not require manual operation of additional auxiliary equipment and can improve scene adaptability and target positioning accuracy while reducing the difficulty of operation.
[0005] The present invention provides a hand-eye coordinated target positioning method, comprising:
[0006] Step S1, collecting an image of the current scene and identifying a human body region image in the current scene;
[0007] Step S2, extracting a current eye orientation vector and a current hand orientation vector according to the human body region image in the current scene;
[0008] Step S3, calculating the spatial position of the current target to be located according to the current eye direction vector and the current hand direction vector.
[0009] Furthermore, the step 2 comprises:
[0010] Step S21, segmenting a head region image and a hand region image from the human region image according to a human body segmentation algorithm, and acquiring a depth image corresponding to the head region image and a depth image corresponding to the hand region image;
[0011] Step S22, establishing a spatial three-dimensional model of the current eye according to the head region image and the depth image corresponding to the head region image; and establishing a spatial three-dimensional model of the current hand according to the hand region image and the depth image corresponding to the hand region image;
[0012] Step S23, obtaining a current eye orientation vector according to the current three-dimensional spatial model of the eye; and obtaining a current hand orientation vector according to the current three-dimensional spatial model of the hand;
[0013] Furthermore, in step S22, a spatial three-dimensional model M of the current eye is established. i include:
[0014] Step S2211, training the pre-labeled facial key point data set to obtain a neural network based on facial key points;
[0015] Step S2212: the head area image A e Input into the neural network based on facial key points to obtain the two-dimensional key points of the current face;
[0016] Step S2213: from the head area image A e The corresponding depth image D e Get the depth information of the current face and get the three-dimensional key points K of the current face e , and according to the three-dimensional key points K of the current face e Establish the current head's three-dimensional spatial model M e ;
[0017] Step S2214: based on the spatial three-dimensional model M of the current head e Get the current head posture P h , and from the three-dimensional key points K of the current face e Extract the current eye's 3D key point K i ;
[0018] Step S2215: according to the current head posture P h And the three-dimensional key point K of the current eye i , establish the current eye space 3D model M i .
[0019] Furthermore, in step S22, a spatial three-dimensional model M of the current hand is established. h include:
[0020] Step S2221, training the pre-labeled hand key point data set to obtain a neural network based on the hand key points;
[0021] Step S2222: the hand area image A h Input into the neural network based on the hand key points to obtain the two-dimensional key points of the current hand;
[0022] Step S2223, from the hand area image A h The corresponding depth image D h Get the depth information of the current hand and get the three-dimensional key point K of the current hand h , and according to the three-dimensional key point K of the current hand h Establish the current hand's three-dimensional spatial model M h .
[0023] Furthermore, obtaining the current eye orientation vector e in step S23 includes:
[0024] Step S2311: from the head area image A e The two-dimensional coordinates of the current left and right pupils are obtained from the head area image A e The corresponding depth image D e Get the depth information of the current left and right pupils;
[0025] Step S2312, mapping the two-dimensional coordinates of the current left and right pupils and the depth information of the current left and right pupils to the spatial three-dimensional model M of the anterior ocular part i In the example above, we get the three-dimensional coordinates of the current left and right pupils. 1 and i 2 , and the current sight line vector e of the left and right pupils 1 and e 2 ;
[0026] Step S2313, according to the three-dimensional coordinates i of the current left and right pupils 1 and i 2 Calculate the midpoint e of the current left and right pupils c , and according to the current sight line of the left and right pupils towards the vector e 1 and e 2 Get the current convergence point c of the left and right pupils, the midpoint e of the current left and right pupils c The vector formed by the current sight convergence point c of the left and right pupils is the current eye direction vector e.
[0027] Furthermore, obtaining the current hand orientation vector h in step S23 includes:
[0028] Step S2321: based on the current hand spatial three-dimensional model M h , get the current hand posture P h and the direction of each finger 1 ~h5 , palm center h c ;
[0029] Step S2322: according to the current hand posture P h , get the contribution weight α of each finger's orientation to the current direction 1 ~α 5 ;
[0030] Step S2323: according to the direction h of each finger 1 ~h 5 And the contribution weight α of each finger's orientation to the current pointing direction 1 ~α 5 , calculate the current hand direction vector h.
[0031] Furthermore, the step S3 comprises:
[0032] Step S31, constructing an expression for an arbitrary point on the eye direction according to the current eye direction vector e, and constructing an expression for an arbitrary point on the hand direction according to the current hand direction vector h;
[0033] Step S32, according to the expression of any point on the eye direction and the expression of any point on the hand direction, find two points that make the distance between the hand direction and the eye direction shortest;
[0034] Step S33, find the midpoint of the line connecting the two points that are closest to the hand direction and the eye direction, and the spatial coordinates of the midpoint are the spatial position of the current target to be located.
[0035] The midpoint e of the current left and right pupils c Calculate according to the following formula:
[0036]
[0037] In the formula, i 1 and i 2 They are the three-dimensional coordinates of the current left pupil and right pupil respectively.
[0038] Furthermore, the contribution weight α of the orientation of each finger to the current pointing 1 ~α 5 are between 0 and 1.0 and satisfy α 1 +α 2 +α 3 +α 4 +α 5 =1.0.
[0039] Furthermore, the current hand orientation vector h is calculated according to the following formula:
[0040] h=α 1*h 1 +α 2 *h 2 +α 3 *h 3 +α 4 *h 4 +α 5 *h 5
[0041] In the formula, h 1 ~h 5 represents the direction of each finger, α 1 ~α 5 Indicates the contribution weight of each finger's orientation to the current direction.
[0042] The present invention automatically detects the positions of hands and eyes in a scene and obtains corresponding feature points through image acquisition equipment, depth acquisition equipment and calculation processing modules; then uses the positions of feature points to analyze the functional expressions of hand and eye orientation in three-dimensional space coordinates; finally, by calculating the intersection of the hand-eye orientation functional expressions, the position of the target in three-dimensional space is located. The target positioning method provided by the present invention does not require manual operation of additional auxiliary equipment and is more in line with human operating habits. In addition, the present invention can improve scene adaptability and target positioning accuracy while reducing the difficulty of operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a flow chart of the hand-eye collaborative target positioning method according to the present invention.
[0044] Figure 2 It is a schematic diagram of the key points of the face.
[0045] Figure 3 It is a schematic diagram of the key points of the hand.
[0046] Figure 4 This is a schematic diagram of the calculation of the eye direction vector.
[0047] Figure 5 This is a schematic diagram for calculating the hand direction vector.
[0048] Figure 6 It is a schematic diagram for obtaining the spatial position of the target to be located. DETAILED DESCRIPTION
[0049] The preferred embodiments of the present invention are given below in conjunction with the accompanying drawings and described in detail.
[0050] The target positioning method of the present invention is implemented based on an image acquisition device, a depth acquisition device and a calculation processing module connected to each other, wherein the image acquisition device is used to collect images of various scenes, the depth acquisition device is used to obtain depth information of the image, and the calculation processing module is used to perform various recognition, analysis, calculation, etc. on the image acquired by the image acquisition device and the depth information acquired by the depth acquisition device.
[0051] Therefore, if Figure 1 As shown, the hand-eye direction collaborative target positioning method provided by the present invention comprises the following steps:
[0052] Step S1, collect the image of the current scene and identify the human body area image A in the current scene b .
[0053] Step S2: based on the human body region image A in the current scene b , extract the current eye orientation vector e and the current hand orientation vector h. Specifically include:
[0054] Step S21, based on the human body segmentation algorithm, from the human body region image A b Segment the head area image A e and hand area image A h , and obtain the head area image A e The corresponding depth image D e and hand area image A h The corresponding depth image D h . Head area image A e and its corresponding depth image D e It can be acquired by using binocular cameras at the same time; it can also be acquired by using a monocular camera plus other depth acquisition equipment (such as a laser ranging module, etc.) and obtaining the information correspondence between the two through calibration. h and its corresponding depth image D h It can also be obtained through the above two methods.
[0055] Step S22: based on the head area image A e and head region image A e The corresponding depth image D e , establish the current eye space 3D model M i ; and according to the hand area image A h and hand area image A h The corresponding depth image D h , establish the current hand's spatial three-dimensional model M h .
[0056] Among them, the spatial three-dimensional model M of the current eye is established iThe following steps are involved:
[0057] Step S2211, training the pre-annotated facial key point data set to obtain a neural network based on facial key points. The pre-annotated facial key points include at least: 2 key points for each of the left and right eyebrows, 5 key points for each of the left and right eyes, 3 key points for the nose, and 3 key points for the mouth, which constitute the data set to be trained.
[0058] Step S2212: The head area image A e Input into the neural network based on facial key points to obtain the two-dimensional key points of the current face (such as Figure 2 shown).
[0059] Step S2213, from the head area image A e The corresponding depth image D e Get the depth information of the current face and get the three-dimensional key points K of the current face e , and according to the current three-dimensional key point K of the face e Establish the current head's three-dimensional spatial model M e .
[0060] Step S2214: based on the current head space three-dimensional model M e Get the current head posture P e , and from the current face 3D key point K e Extract the current eye's 3D key point K i Among them, the current head posture P e Including the three-dimensional coordinates of the head and the current pitch, turn, etc. of the head.
[0061] Step S2215: according to the current head posture P e And the current three-dimensional key point K of the eye i , establish the current eye space 3D model M i .
[0062] Establish the current hand's three-dimensional spatial model M h The following steps are involved:
[0063] Step S2221, training the pre-annotated hand key point data set to obtain a neural network based on the hand key points. The pre-annotated hand key points include: wrist key points and key points at each bone connection point of each finger, which constitute the data set to be trained.
[0064] Step S2222: hand area image A h Input into the neural network based on the hand key points to obtain the current two-dimensional key points of the hand (such as Figure 3 shown).
[0065] Step S2223, from the hand area image A h The corresponding depth image D h Get the depth information of the current hand and get the three-dimensional key point K of the current hand h , and according to the current three-dimensional key point K of the hand h Establish the current hand's three-dimensional spatial model M h .
[0066] Step S23, based on the current eye space three-dimensional model M i , get the current eye orientation vector e; and according to the current hand space 3D model M h , get the current hand direction vector h.
[0067] Wherein, obtaining the current eye orientation vector e includes the following steps:
[0068] Step S2311: From the head area image A e Get the two-dimensional coordinates of the current left and right pupils from the head area image A e The corresponding depth image D e Get the depth information of the current left and right pupils.
[0069] Step S2312: Map the current two-dimensional coordinates of the left and right pupils and the depth information of the left and right pupils to the current three-dimensional spatial model M of the eye. i In the example above, we get the three-dimensional coordinates of the current left and right pupils. 1 and i 2 , and the current sight line vector e of the left and right pupils 1 and e 2 .
[0070] Step S2313, based on the current three-dimensional coordinates i of the left and right pupils 1 and i 2 Calculate the midpoint e of the current left and right pupils c , and according to the current sight line of the left and right pupils, the vector e 1 and e 2 Get the current gaze convergence point c of the left and right pupils 1 , the midpoint of the current left and right pupils e c The current gaze convergence point c of the left and right pupils 1 The vector formed is the current eye direction vector e (such as Figure 4 As shown). Among them, the midpoint e of the current left and right pupils c Calculate according to the following formula:
[0071]
[0072] Obtaining the current hand orientation vector h includes the following steps:
[0073] Step S2321, based on the current hand space three-dimensional model M h , get the current hand posture P h and the direction of each finger h 1 ~h 5 , palm center h c (like Figure 5 As shown). Among them, the current hand posture P h Refers to the relative position and orientation of each finger, including gestures, three-dimensional positions, etc. The orientation of the finger h 1 ~h 5 It refers to the direction of the line connecting the first joint and the second joint of the finger.
[0074] Step S2322: according to the current hand posture P h , get the contribution weight α of each finger's orientation to the current direction 1 ~α 5 Among them, all weight values are between 0 and 1.0 and satisfy α 1 +α 2 +α 3 +α 4 +α 5 =1.0.
[0075] Step S2323, according to the direction h of each finger 1 ~h 5 And the contribution weight α of each finger's orientation to the current direction 1 ~α 5 , calculate the current hand direction vector h:
[0076] h=α 1 *h 1 +α 2 *h 2 +α 3 *h 3 +α 4 *h 4 +α 5 *h 5
[0077] Step S3, calculating the spatial position of the current target to be located according to the current eye direction vector e and the current hand direction vector h, the position of the current target to be located is the point in space where the sum of the distances between the hand and the eye is the minimum. Specifically, it includes:
[0078] Step S31, construct an expression for any point on the eye direction according to the current eye direction vector e: p =e*β e +ec , construct the expression of any point on the hand direction according to the current hand direction vector h: p =h*β h +h c , where β e and β h is the scale parameter.
[0079] Step S32, based on the expression of any point on the eye direction and the expression of any point on the hand direction, find the two points that make the distance between the hand direction and the eye direction the shortest. Construct the distance function between any two points on the hand direction and the eye direction:
[0080] Right now:
[0081] |h p e p | 2 =(h p -e p ) 2
[0082] The minimum value of the above expression is the shortest distance between the two directions, which can be solved by optimization. The expression |h p e p | 2 =(h p -e p ) 2 The minimum value of e p 、h p That is, the spatial coordinates h of the two points closest to the hand and eye directions pm and e pm .
[0083] Step S33, find the midpoint of the line connecting the two points that are closest to the hand direction and the eye direction, and the spatial coordinates of the midpoint are the spatial position of the current target to be located. Figure 6 As shown in the figure, it is assumed that the spatial coordinates of the two points closest to the hand and eye directions are h pm and e pm , then the midpoint T of their connecting line is the spatial position of the current target to be located.
[0084] The above is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. The above embodiment of the present invention can also be modified in various ways. That is, all simple, equivalent changes and modifications made according to the claims and the description of the present invention fall within the scope of protection of the claims of the present invention. The contents not described in detail in the present invention are all conventional technical contents.
Claims
1. A hand-eye collaborative target positioning method, characterized in that: include: Step S1, collecting an image of the current scene and identifying a human body region image in the current scene; Step S2, extracting a current eye orientation vector and a current hand orientation vector according to the human body region image in the current scene; include: Step S21, segmenting a head region image and a hand region image from the human region image according to a human body segmentation algorithm, and acquiring a depth image corresponding to the head region image and a depth image corresponding to the hand region image; Step S22, establishing a spatial three-dimensional model of the current eye according to the head region image and the depth image corresponding to the head region image; and establishing a spatial three-dimensional model of the current hand according to the hand region image and the depth image corresponding to the hand region image; Step S23, obtaining a current eye orientation vector according to the current three-dimensional spatial model of the eye; and obtaining a current hand orientation vector according to the current three-dimensional spatial model of the hand; obtaining the current hand orientation vector h includes: Step S2321: based on the current hand spatial three-dimensional model M h , get the current hand posture P h And the direction of each finger h1~h5, the center of the palm h c ; Step S2322: according to the current hand posture P h , obtain the contribution weight α1~α5 of each finger's orientation to the current pointing direction; Step S2323, calculating the current hand orientation vector h according to the orientation h1-h5 of each finger and the contribution weights α1-α5 of the orientation of each finger to the current pointing; Step S3, calculating the spatial position of the current target to be located according to the current eye orientation vector and the current hand orientation vector; Step S3 includes: Step S31, constructing an expression for an arbitrary point on the eye direction according to the current eye direction vector e, and constructing an expression for an arbitrary point on the hand direction according to the current hand direction vector h; Step S32, according to the expression of any point on the eye direction and the expression of any point on the hand direction, find two points that make the distance between the hand direction and the eye direction shortest; Step S33, find the midpoint of the line connecting the two points that are closest to the hand direction and the eye direction, and the spatial coordinates of the midpoint are the spatial position of the current target to be located.
2. The hand-eye coordinated target positioning method according to claim 1, characterized in that: In step S22, a spatial three-dimensional model M of the current eye is established. i include: Step S2211, training the pre-labeled facial key point data set to obtain a neural network based on facial key points; Step S2212: the head area image A e Input into the neural network based on facial key points to obtain the two-dimensional key points of the current face; Step S2213: from the head area image A e The corresponding depth image D e Get the depth information of the current face and get the three-dimensional key points K of the current face e , and according to the three-dimensional key points K of the current face e Establish the current head's three-dimensional spatial model M e ; Step S2214: based on the spatial three-dimensional model M of the current head e Get the current head posture P h , and from the three-dimensional key points K of the current face e Extract the current eye's 3D key point K i ; Step S2215: according to the current head posture P h And the three-dimensional key point K of the current eye i , establish the current eye space 3D model M i .
3. The hand-eye coordinated target positioning method according to claim 1, characterized in that: In step S22, a spatial three-dimensional model M of the current hand is established. h include: Step S2221, training the pre-labeled hand key point data set to obtain a neural network based on the hand key points; Step S2222: the hand area image A h Input into the neural network based on the hand key points to obtain the two-dimensional key points of the current hand; Step S2223, from the hand area image A h The corresponding depth image D h Get the depth information of the current hand and get the three-dimensional key point K of the current hand h , and according to the three-dimensional key point K of the current hand h Establish the current hand's three-dimensional spatial model M h .
4. The hand-eye coordinated target positioning method according to claim 1, characterized in that: The step S23 of obtaining the current eye orientation vector e includes: Step S2311: from the head area image A e The two-dimensional coordinates of the current left and right pupils are obtained from the head area image A e The corresponding depth image D e Get the depth information of the current left and right pupils; Step S2312, mapping the two-dimensional coordinates of the current left and right pupils and the depth information of the current left and right pupils to the spatial three-dimensional model M of the anterior ocular part i , obtain the current three-dimensional coordinates i1 and i2 of the left and right pupils, and the current sight direction vectors e1 and e2 of the left and right pupils; Step S2313, calculating the midpoint e of the current left and right pupils according to the three-dimensional coordinates i1 and i2 of the current left and right pupils c , and obtain the current sight convergence point c of the left and right pupils according to the current sight direction vectors e1 and e2 of the left and right pupils, the midpoint e of the current left and right pupils c The vector formed by the current sight convergence point c of the left and right pupils is the current eye direction vector e.
5. The hand-eye coordinated target positioning method according to claim 4, characterized in that: The midpoint e of the current left and right pupils c Calculate according to the following formula: Where i1 and i2 are the three-dimensional coordinates of the current left pupil and right pupil respectively.
6. The hand-eye coordinated target positioning method according to claim 1, characterized in that: The contribution weights α1-α5 of the orientation of each finger to the current pointing are all between 0 and 1.0, and satisfy α1+α2+α3+α4+α5=1.
0.
7. The hand-eye coordinated target positioning method according to claim 1, characterized in that: The current hand orientation vector h is calculated according to the following formula: h=α1*h1+α2*h2+α3*h3+α4*h4+α5*h5, Wherein, h1~h5 represents the direction of each finger, and α1~α5 represents the contribution weight of the direction of each finger to the current pointing.
