A method of object expression based on binocular vision

Through the object expression method of binocular vision, the Kalman filter and the Hungarian matching algorithm are used to extract semantic information in an environment lacking feature textures, solving the problem of poor robustness in the existing technology and achieving information-rich map construction and positioning accuracy. improvement.

CN115049949BActive Publication Date: 2024-09-24HARBIN ENG UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210473939.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2024-09-24
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

Existing robot vision SLAM technology has poor robustness in environments lacking feature textures, making it difficult to construct information-rich semantic maps, and point features cannot effectively utilize high-level semantic information in images.

Method used

The object expression method based on binocular vision is used to collect images through the binocular camera mounted on the robot for object recognition and matching. The Kalman filter and Hungarian matching algorithm are used for inter-frame tracking to extract the semantic information of the object, including size, position and attitude.

Benefits of technology

It improves the robot's robustness in environments lacking feature textures, builds information-rich semantic maps, and enhances the positioning accuracy and semantics of visual SLAM.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115049949B
    Figure CN115049949B
Patent Text Reader

Abstract

The present invention belongs to the field of robot navigation technology, and specifically relates to an object expression method based on binocular vision. The present invention obtains the current frame image of the scene through the binocular camera carried by the robot; detects objects in the scene from the left and right images of the current frame; matches the objects in the obtained left and right images to complete the pairing of the same objects; uses Kalman filtering and Hungarian matching to track the objects between binocular frames. Once the same object is detected, the four images in the two frames are used to complete the extraction of the semantic information of the object, including the size, position and posture of the object. The present invention proposes an object expression method with good reliability and wide applicability, which ensures that valuable semantic information can be extracted from objects of any shape in the scene, thereby promoting the accuracy and semantics of visual synchronous positioning and mapping.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of robot navigation, and in particular relates to an object expression method based on binocular vision. Background Art

[0002] Simultaneous Localization and Mapping (SLAM) technology was first proposed as an indoor positioning and mapping method, and has been widely studied. It allows robots to autonomously navigate and locate themselves in unknown environments without GPS (Global Position System, GPS) signals using only real-time sensor information, and collect data about the environment. It can also achieve real-time correction of its own position and environmental map through certain technologies.

[0003] At present, the research on robot vision SLAM mainly focuses on point features, that is, by extracting feature points for matching, data association is obtained. For scenes with less texture details, it is not conducive to the extraction of feature points. On the other hand, as a low-level feature, point features cannot utilize higher-level semantic information in the image. In addition to being used for robot positioning, the sparse point cloud map it constructs is difficult to extract useful environmental information from.

[0004] The technical problem involved in the present invention is to provide an advanced feature extraction method to enable visual SLAM to utilize objects in the scene, improve the robustness in an environment lacking feature textures, and construct an information-rich semantic map.

[0005] The patent application with application date of December 30, 2018, application number CN201811648994.2 and invention name “A visual SLAM method based on semantic constraints”, although the visual semantic part of this method achieves the same purpose as the present invention, this method uses a deep learning semantic segmentation network to identify objects, and uses the three-dimensional points of the depth camera and the plane map points as semantic constraints of visual SLAM, which is completely different from the present invention. In addition, this method does not explain how to perform semantic data association.

[0006] The patent application with application date of January 15, 2019, application number CN201910037102.3, and invention name "Robot semantic SLAM method, processor and robot based on object instance matching" also uses a deep learning semantic segmentation network to identify objects, and uses the object's point features and feature description vectors generated by encoding for object matching, which is completely different from the present invention. Summary of the invention

[0007] The purpose of the present invention is to provide an object expression method based on binocular vision.

[0008] A method for expressing an object based on binocular vision comprises the following steps:

[0009] Step 1: Use the binocular camera carried by the robot to collect the current frame image pair in the scene;

[0010] Step 2: Object single frame recognition and matching: Perform object recognition on the left and right images respectively, and use pixel overlap to determine whether the obtained object rectangles are the same object, complete the matching and proceed to step 3;

[0011] Step 3: Object inter-frame tracking: After obtaining the object set through step 2, determine whether each object appears in the historical frame, classify the objects that have appeared, initialize tracking for the objects that have not appeared, and remove the objects that failed to be tracked, and then go to step 4;

[0012] Step 4: Object semantic information extraction: Extract semantic information of the object that has been tracked for more than two frames in step 3, and proceed to step 5;

[0013] Step 5: Output the semantic information of scene objects and end.

[0014] Furthermore, the step 2 is specifically as follows:

[0015] Step 2.1: Object information extraction;

[0016] The information of the object in the image is defined as:

[0017] B=(w,h,b,σ,c)

[0018] Where w and h represent the pixel length and width of the object rectangle; b = (u, v) represents the center pixel position of the rectangle; σ and c represent the confidence and object category of the rectangle, respectively;

[0019] Perform object recognition on the left and right images to obtain all the objects in the image:

[0020] O L = {B Li =(w Li ,h Li ,b Li ,σ Li ,c Li )|c Li ∈C,σ Li ∈[0,1],i=1,2,...,k}

[0021] O R = {B Ri =(w Ri ,hRi ,b Ri ,σ Ri ,c Ri )|c Ri ∈C,σ Ri ∈[0,1],i=1,2,...,m}

[0022] Among them, O L and O R represents the set of all objects in the left and right images of the current frame; k and m represent the number of all objects in the left and right images of the current frame; C represents the set of object categories set first;

[0023] Step 2.2: Single frame object matching;

[0024] The pixel overlap between objects is defined as:

[0025]

[0026] Where S(·) = w·h represents the area of ​​the rectangular box; A and B represent two objects in the image;

[0027] Calculate the pixel overlap between the objects on the left image of the binocular single frame and the objects on the right image in turn, and select the objects with the largest overlap as candidate matching pairs to form a candidate matching pair set: M can ={(B Lcan ,B Rcan )|B Lcan ∈O L ,B Rcan ∈O R};

[0028] Step 2.3: False match identification: For the candidate matching pair set M can Any matching pair (B Lcan_i ,B Rcan_i ), first use the binocular characteristics to constrain the relative position of the center of the rectangular box b = (u, v). If u is not satisfied Lcan <u Rcan and |v Lcan -v Rcan |<10, then eliminate the candidate matching pair and go to step 2.4;

[0029] Step 2.4: Repeatability test: After the relative position of all candidate matching pairs is determined, if the set M can If there are two or more candidate matching pairs with the same object information B, all these candidate matching pairs are eliminated to ensure that each object information appears in at most one candidate matching pair, and then go to step 2.5;

[0030] Step 2.5: Finally, a set of matching pairs of left and right images of a single binocular frame is obtained, that is, each matching pair represents the imaging information of the same object in the left and right images:

[0031] M={(B LM ,B RM )|B LM ∈O L ,B RM ∈O R}.

[0032] Furthermore, the step 3 is specifically as follows:

[0033] Step 3.1: Determine whether the current key frame is the initial key frame, that is, i=0. If the current key frame is the initial key frame, execute step 3.2; otherwise, execute step 3.3;

[0034] Step 3.2: Initialize the tracking system and set the tracking sub-variable of the Kalman filter to and Indicates the speed of the pixel coordinates at the center of the rectangular frame; sets the process covariance matrix P, the measurement covariance matrix Q, the noise of the variables in the measurement matrix R, sets the conversion matrix H, the Kalman gain matrix K, and the state transfer matrix F; according to the initial key frame pairing set M 0 The left picture in the result Initialize tracking variables X 0 The number of objects tracked in Consistent, all and All are initialized to 0, and go to step 3.3;

[0035] Step 3.3: Object motion prediction: Tracking variable X of the previous keyframe i-1 Make a prediction to get the prior state of the object in the current key frame and the prior process covariance matrix

[0036]

[0037]

[0038] Step 3.4: Object matching: Calculating object prior information Each rectangular box and object measurement information The pixel overlap of all rectangular boxes in the matrix is ​​calculated, and its value is negative to form a matching cost matrix, and then the matching result is obtained;

[0039] Step 3.5: Update the object motion state: Update the object motion state from X according to the matching result i-1Filter out the set of objects that are successfully tracked And update its status:

[0040]

[0041]

[0042]

[0043] Among them, I is the unit matrix; K i is the Kalman gain; Z i is the measured value, according to the matching result from It is concluded that

[0044] Step 3.6: Update the tracking system: The unmatched objects in the Kalman filter are initialized with the same initialization parameters as in step 3.2, and added to the set of successfully tracked objects. The tracking variable X of the current key frame is finally formed. i .

[0045] Furthermore, the step 4 is specifically as follows:

[0046] Step 4.1: Object condition determination: From the tracked object X of the current keyframe i Objects whose tracking times are greater than 2 and whose semantic information is not extracted are selected to form a set O i ={o1,o2,...,o l}, go to step 4.2;

[0047] Step 4.2: Object semantic information recovery:

[0048] For set O i Any object in o i , the detection rectangles on the two binocular frames are obtained from the historical tracking process, that is, 4 rectangles, which are converted into 16 straight line sets according to the coordinates of the rectangle vertices Each straight line is represented by three parameters, i.e. l ​​= (a, b, c, 1);

[0049] The intersection of the space plane and the camera plane is a straight line:

[0050] π=P T L

[0051] Among them, π=(π1,π2,π3,π4) represents a plane in space, which is represented by four parameters; P=K[R|t] represents the camera projection matrix, which is composed of the camera intrinsic parameter K, the camera rotation matrix R and the displacement vector t;

[0052] It is known that the ellipsoid in space can be represented by a 4×4 symmetric matrix Q, so the space ellipsoid equation in the form of surface coordinates is:

[0053] π T Q * π=0

[0054] Among them, Q * is the adjoint matrix of Q, which is also a symmetric matrix with ten degrees of freedom, namely:

[0055]

[0056] Then the space ellipsoid equation in the form of surface coordinates can be rewritten as:

[0057]

[0058] The above formula can be simplified as aq = 0, so that the set of 16 planes tangent to the object's minimum enveloping ellipsoid can form a system of equations:

[0059] a i q=0,(i=1,2,...,16)

[0060] A least squares solution can be obtained using singular value decomposition:

[0061] Aq=UDV T

[0062] Among them, A is composed of a i The coefficient matrix of 16×10 is composed of U, D and V. U, D and V are the matrices obtained by singular value decomposition. Take the last column of V, that is, the least squares solution q, and you will get the companion matrix Q of the minimum envelope ellipsoid. * ;

[0063] The matrix Q * The corresponding adjoint matrix Q is further decomposed:

[0064]

[0065] Among them, s1, s2 and s3 are the lengths of the three semi-axes of the ellipsoid, that is, the size; Q is the quadratic surface matrix in the form of point coordinates, that is Q 33 is the 3×3 matrix in the upper left corner of matrix Q; λ1, λ2 and λ3 are 33 The eigenvalue of the ellipsoid is θ = (θ1, θ2, θ3), which is Q 33 The eigenvector of ; the displacement of the ellipsoid corresponds to the matrix The normalized coordinates of the last column of: t = (q4, q7, q9) / q 10 =(t1,t2,t3);

[0066] Step 4.3: Recover the semantic expression of the object from the two frames of the binocular camera

[0067] The beneficial effects of the present invention are:

[0068] The present invention obtains the current frame image of the scene through the binocular camera carried by the robot; detects the objects in the scene from the left and right images of the current frame; matches the objects in the obtained left and right images to complete the pairing of the same objects; uses Kalman filtering and Hungarian matching to track the objects between binocular frames, and once the same object is detected, uses four images in the two frames to complete the extraction of semantic information of the object, including the size, position and posture of the object. The present invention proposes a reliable and widely applicable object expression method, which ensures that valuable semantic information can be extracted from objects of any shape in the scene, thereby promoting the accuracy and semantics of visual synchronous positioning and mapping. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 It is the overall flow chart of the present invention.

[0070] Figure 2 This is a flow chart of single-frame object recognition and matching in the present invention.

[0071] Figure 3 This is a flow chart of object frame-to-frame tracking in the present invention.

[0072] Figure 4 This is a flow chart of object semantic information extraction in the present invention. DETAILED DESCRIPTION

[0073] The present invention is further described below in conjunction with the accompanying drawings.

[0074] The present invention relates to an object expression method based on binocular vision, which is used for visual synchronous positioning and semantic information extraction of environmental objects in mapping. The method comprises: obtaining a current frame image of a scene through a binocular camera carried by a robot; detecting objects in the scene from the left and right images of the current frame; matching the objects in the obtained left and right images to complete the pairing of the same objects; tracking the objects between binocular frames using Kalman filtering and Hungarian matching, and once the same object is detected, using four images in the two frames to complete the semantic information extraction of the object, including the size, position and posture of the object. The beneficial effect of the present invention is that a method for expressing an object with good reliability and wide applicability is proposed, which ensures that valuable semantic information can be extracted from objects of any shape in the scene, thereby promoting the accuracy and semantics of visual synchronous positioning and mapping.

[0075] Content of the present invention is achieved by comprising the following steps:

[0076] Step (1): Input binocular camera image: Use the binocular camera carried by the robot to collect the current frame image pair in the scene as the input of this method, and then enter step (2);

[0077] Step (2): Object single frame recognition and matching: Perform object recognition on the left and right images respectively, and use pixel overlap to determine whether the obtained object rectangles are the same object. The specific steps are as follows:

[0078] Step (2.1): Object information extraction: The information of the object in the image is defined as:

[0079] B=(w,h,b,σ,c)

[0080] Among them, w and h represent the pixel length and width of the object rectangle, b = (u, v) represents the center pixel position of the rectangle, σ and c represent the confidence and object category of the rectangle, respectively. Use the open source target detection algorithm YOLOv5 or other target detection methods to perform object recognition on the left and right images to obtain all the objects in the image:

[0081] O L = {B Li =(w Li ,h Li ,b Li ,σ Li ,c Li )|c Li ∈C,σ Li ∈[0,1],i=1,2,...,k}

[0082] O R = {B Ri =(w Ri ,h Ri ,b Ri ,σ Ri ,c Ri )|c Ri ∈C,σ Ri ∈[0,1],i=1,2,...,m}

[0083] Among them, O L and O R represents the set of all objects in the left and right images of the current frame, k and m represent the number of all objects in the left and right images of the current frame, C represents the set of object categories preset by the algorithm YOLOv5, and then proceed to step (2.2);

[0084] Step (2.2): Single frame object matching: Define the pixel overlap between objects as:

[0085]

[0086] Among them, S(·)=w·h represents the area of ​​the rectangular box, A and B represent two objects in the image. The pixel overlap between the object on the left image of the binocular single frame and the object on the right image is calculated in sequence, and the one with the largest overlap is selected as its candidate matching pair to form a candidate matching pair set:

[0087] M can ={(B Lcan ,B Rcan )|B Lcan ∈O L ,B Rcan ∈O R}

[0088] Step (2.3): False match determination: For the candidate matching pair set M can Any matching pair (B Lcan_i ,B Rcan_i ), first use the binocular characteristics to constrain the relative position of the center of the rectangular box b = (u, v). If u is not satisfied Lcan <u Rcan and |v Lcan -v Rcan |<10, then eliminate the candidate matching pair and go to step (2.4);

[0089] Step (2.4): Repeatability test: After the relative position of all candidate matching pairs is determined, if the set M can If there are two or more candidate matching pairs with the same object information B, all these candidate matching pairs are eliminated to ensure that each object information appears in at most one candidate matching pair, and then go to step (2.5);

[0090] Step (2.5): Finally, a set of matching pairs of left and right images of a single binocular frame is obtained, that is, each matching pair represents the imaging information of the same object in the left and right images:

[0091] M={(B LM ,B RM )|B LM ∈O L ,B RM ∈O R}

[0092] Step (3): Object tracking between frames: Assume that the set of matching pairs of the current key frame i is M i , then the matching pair set of the previous key frame i-1 is M i-1 , use the Kalman filter algorithm to track the objects identified in the scene between frames. The specific steps are as follows:

[0093] Step (3.1): Is the system initialized: Determine whether the current key frame is the initial key frame, that is, i=0. If so, proceed to step (3.2), otherwise proceed to step (3.3);

[0094] Step (3.2): Initialize the tracking system: The Kalman filter algorithm can be obtained from many open source projects such as the filterpy package in Python. Here is a brief description of the necessary parameter settings. Set the tracking sub-variables of the Kalman filter to 6, namely:

[0095]

[0096] in, and Indicates the speed of the pixel coordinates at the center of the rectangular box. Set the noise of variables u, v, w, h in the process covariance matrix P to 10, and the variables The noise of variables u, v, w, h in the measurement covariance matrix Q is set to 1, and the variable The noise is 0.01; the error of variables u, v in the measurement matrix R is set to 1, and the error of w, h is set to 10; the conversion matrix H is set to a unit diagonal matrix of latitude 4×7; the Kalman gain matrix K is set to 0, and the state transfer matrix F is set to:

[0097]

[0098] According to the initial key frame pairing set M 0 The left picture in the result Initialize tracking variables X 0 The number of objects tracked in consistent, all of which and All are initialized to 0 and go to step (3.3);

[0099] Step (3.3): Object motion prediction: The system tracks the variable X of the previous key frame i-1 Make a prediction and get the prior state of the object in the current key frame:

[0100]

[0101] And the prior process covariance matrix:

[0102]

[0103] Step (3.4): Object matching: Calculate object prior information Each rectangular box and object measurement information The pixel overlap of all rectangular boxes in the image is calculated and its value is negative to form a matching cost matrix. The matching result is obtained by using the Hungarian matching algorithm and the cost matrix. The specific algorithm can be obtained from many open source projects, such as the linear_sum_assignment function in the scipy package in Python. Go to step (3.5);

[0104] Step (3.5): Update the object motion state: Update the object motion state according to the matching result from X i-1 Filter out the set of objects that are successfully tracked And update its status:

[0105]

[0106]

[0107]

[0108] Among them, I is the unit matrix, K i is the Kalman gain, Z i is the measured value, according to the matching result from Go to step (3.6);

[0109] Step (3.6): Update the tracking system: The unmatched objects in the Kalman filter are initialized with the same initialization parameters as in step (3.2) and added to the set of successfully tracked objects. The tracking variable X of the current key frame is finally formed. i , proceed to step (4);

[0110] Step (4): Object semantic information extraction: From the tracked object X in the current key frame i Objects whose tracking times are greater than 2 and whose semantic information has not been extracted are selected, and the minimum enveloping ellipsoid of the object in space is restored through the theory of multi-view geometry. That is, the size and position of the ellipsoid are the semantic information of the object. The specific steps are as follows:

[0111] Step (4.1): Object condition determination: From the tracked object X of the current key frame i Objects whose tracking times are greater than 2 and whose semantic information is not extracted are selected to form a set O i ={o1,o2,...,o l}, go to step (4.2).

[0112] Step (4.2): Object semantic information recovery: for set O i Any object in o i, the detection rectangles on the two frames of the binocular can be obtained from the historical tracking process, that is, 4 rectangles, which can be converted into a set of 16 straight lines according to the coordinates of the rectangle vertices Each straight line is represented by three parameters, namely l = (a, b, c, 1). From projective geometry, we know that the intersection of the space plane and the camera plane is a straight line:

[0113] π=P T L

[0114] Among them, π=(π1,π2,π3,π4) represents a plane in space, which is represented by four parameters, and P=K[R|t] represents the camera projection matrix, which is composed of the camera intrinsic parameter K, the camera rotation matrix R and the displacement vector t, which can be obtained by the visual odometer of SLAM. In this way, a set of 16 planes tangent to the minimum envelope ellipsoid of the object can be obtained. It is known that the ellipsoid in space can be represented by a 4×4 symmetric matrix Q, then the spatial ellipsoid equation in the form of surface coordinates is:

[0115] π T Q * π=0

[0116] Among them, Q * is the adjoint matrix of Q, which is also a symmetric matrix with ten degrees of freedom, namely:

[0117]

[0118] Then the space ellipsoid equation in the form of surface coordinates can be rewritten as:

[0119]

[0120] The above formula can be simplified as aq = 0, so that the set of 16 planes tangent to the object's minimum enveloping ellipsoid can form a system of equations:

[0121] a i q=0,(i=1,2,...,16)

[0122] A least squares solution can be obtained using singular value decomposition:

[0123] Aq=UDV T

[0124] Where A is composed of a i The coefficient matrix of 16×10 is composed of U, D and V, respectively. The last column of V, i.e. the least squares solution q, is taken to obtain the companion matrix Q of the minimum envelope ellipsoid. * .

[0125] The matrix Q * The corresponding adjoint matrix Q is further decomposed:

[0126]

[0127] Among them, s1, s2 and s3 are the lengths of the three semi-axes of the ellipsoid, i.e., the size. Q is the quadratic surface matrix in the form of point coordinates, i.e. Q 33 is the 3×3 matrix in the upper left corner of matrix Q, λ1, λ2 and λ3 are 33 The eigenvalue of the ellipsoid is θ = (θ1, θ2, θ3), which is Q 33 The eigenvector of . The displacement of the ellipsoid corresponds to the matrix The normalized coordinates of the last column of: t = (q4, q7, q9) / q 10 =(t1, t2, t3). Finally, the semantic expression of the object is restored from the two frames of the binocular camera.

[0128] Step (5): Output the semantic information of the object and end.

[0129] Compared with the prior art, the beneficial effect of the present invention lies in proposing an object expression method with good reliability and wide applicability, which ensures that valuable semantic information can be extracted from objects of any shape in the scene, thereby promoting the accuracy and semantics of visual synchronous positioning and mapping.

[0130] The present invention provides a general object semantic expression method for visual SLAM algorithms, which serves the robot to meet navigation accuracy by using object semantic constraints when scene features are sparse, and to construct a semantic map different from a sparse point cloud. The present invention obtains the current frame image of the scene through the binocular camera carried by the robot; detects objects in the scene from the left and right images of the current frame; matches the objects in the obtained left and right images to complete the pairing of the same objects; uses Kalman filtering and Hungarian matching to track objects between binocular frames, and once the same object is detected, uses four images in the two frames to complete the extraction of semantic information of the object, including the size, position and posture of the object. The present invention proposes a reliable and widely applicable object expression method, which ensures that valuable semantic information can be extracted from objects of any shape in the scene, thereby promoting the accuracy and semantics of visual synchronous positioning and mapping.

[0131] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for expressing an object based on binocular vision, characterized in that: The following steps are involved: Step 1: Use the binocular camera carried by the robot to collect the current frame image pair in the scene; Step 2: Object single frame recognition and matching: Perform object recognition on the left and right images respectively, and use pixel overlap to determine whether the obtained object rectangles are the same object, complete the matching and proceed to step 3; Step 3: Object inter-frame tracking: After obtaining the object set through step 2, determine whether each object appears in the historical frame, classify the objects that have appeared, initialize tracking for the objects that have not appeared, and remove the objects that failed to be tracked, and then go to step 4; Step 4: Object semantic information extraction: Extract semantic information of the object that has been tracked for more than two frames in step 3, and proceed to step 5; Step 4.1: Object condition determination: From the tracked object X of the current keyframe i Objects whose tracking times are greater than 2 and whose semantic information is not extracted are selected to form a set O i ={o1,o2,...,o l }, go to step 4.2; Step 4.2: Object semantic information recovery: For set O i Any object in o i , the detection rectangles on the two binocular frames are obtained from the historical tracking process, that is, 4 rectangles, which are converted into 16 straight line sets according to the coordinates of the rectangle vertices Each straight line is represented by three parameters, i.e. l ​​= (a, b, c, 1); The intersection of the space plane and the camera plane is a straight line: π=P T L Among them, π=(π1,π2,π3,π4) represents a plane in space, which is represented by four parameters; P=K[R|t] represents the camera projection matrix, which is composed of the camera intrinsic parameter K, the camera rotation matrix R and the displacement vector t; It is known that the ellipsoid in space can be represented by a 4×4 symmetric matrix Q, so the space ellipsoid equation in the form of surface coordinates is: π T Q * π=0 Among them, Q * is the adjoint matrix of Q, which is also a symmetric matrix with ten degrees of freedom, namely: Then the space ellipsoid equation in the form of surface coordinates can be rewritten as: The above formula can be simplified as aq = 0, so that the set of 16 planes tangent to the object's minimum enveloping ellipsoid can form a system of equations: a i q=0,(i=1,2,...,16) A least squares solution can be obtained using singular value decomposition: Aq=UDV T Among them, A is composed of a i The coefficient matrix of 16×10 is composed of U, D and V. U, D and V are the matrices obtained by singular value decomposition. Take the last column of V, that is, the least squares solution q, and you will get the companion matrix Q of the minimum envelope ellipsoid. * ; The matrix Q * The corresponding adjoint matrix Q is further decomposed: Among them, s1, s2 and s3 are the lengths of the three semi-axes of the ellipsoid, that is, the size; Q is the quadratic surface matrix in the form of point coordinates, that is Q 33 is the 3×3 matrix in the upper left corner of matrix Q; λ1, λ2 and λ3 are 33 The eigenvalue of the ellipsoid is θ = (θ1, θ2, θ3), which is Q 33 The eigenvector of ; the displacement of the ellipsoid corresponds to the matrix The normalized coordinates of the last column of: t = (q4, q7, q9) / q 10 =(t1,t2,t3); Step 4.3: Recover the semantic expression of the object from the two frames of the binocular camera Step 5: Output the semantic information of scene objects and end.

2. The object expression method based on binocular vision according to claim 1, characterized in that: The step 2 is specifically as follows: Step 2.1: Object information extraction; The information of the object in the image is defined as: B=(w,h,b,σ,c) Where w and h represent the pixel length and width of the object rectangle; b = (u, v) represents the center pixel position of the rectangle; σ and c represent the confidence and object category of the rectangle, respectively; Perform object recognition on the left and right images to obtain all the objects in the image: The L ={B Li =(w Li ,h Li ,b Li ,s Li ,c Li )|c Li ∈C,σ Li ∈[0,1],i=1,2,...,k} The R ={B Ri =(w Ri ,h Ri ,b Ri ,s Ri ,c Ri )|c Ri ∈C,σ Ri ∈[0,1],i=1,2,...,m} Among them, O L and O R represents the set of all objects in the left and right images of the current frame; k and m represent the number of all objects in the left and right images of the current frame; C represents the set of object categories set first; Step 2.2: Single frame object matching; The pixel overlap between objects is defined as: Where S(·) = w·h represents the area of ​​the rectangular box; A and B represent two objects in the image; Calculate the pixel overlap between the objects on the left image of the binocular single frame and the objects on the right image in turn, and select the objects with the largest overlap as candidate matching pairs to form a candidate matching pair set: M can ={(B Lcan ,B Rcan )|B Lcan ∈O L ,B Rcan ∈O R }; Step 2.3: False match identification: For the candidate matching pair set M can Any matching pair (B Lcan_i ,B Rcan_i ), first use the binocular characteristics to constrain the relative position of the center of the rectangular box b = (u, v). If u is not satisfied Lcan <u Rcan and |v Lcan -v Rcan |<10, then eliminate the candidate matching pair and go to step 2.4; Step 2.4: Repeatability test: After the relative position of all candidate matching pairs is determined, if the set M can If there are two or more candidate matching pairs with the same object information B, all these candidate matching pairs are eliminated to ensure that each object information appears in at most one candidate matching pair, and then go to step 2.5; Step 2.5: Finally, a set of matching pairs of left and right images of a single binocular frame is obtained, that is, each matching pair represents the imaging information of the same object in the left and right images: M={(B LM ,B RM )|B LM ∈O L ,B RM ∈O R }。 3. The object expression method based on binocular vision according to claim 1, characterized in that: The step 3 is specifically as follows: Step 3.1: Determine whether the current key frame is the initial key frame, that is, i=0. If the current key frame is the initial key frame, execute step 3.2; otherwise, execute step 3.3; Step 3.2: Initialize the tracking system and set the tracking sub-variable of the Kalman filter to and Indicates the velocity magnitude of the pixel coordinates at the center of the rectangular frame; Set the process covariance matrix P, the measurement covariance matrix Q, the noise of the variables in the measurement matrix R, set the conversion matrix H, the Kalman gain matrix K, and the state transfer matrix F; according to the initial key frame pairing set M 0 The left picture in the result Initialize tracking variables X 0 The number of objects tracked in Consistent, all and All are initialized to 0, and go to step 3.3; Step 3.3: Object motion prediction: Tracking variable X of the previous keyframe i-1 Make a prediction to get the prior state of the object in the current key frame and the prior process covariance matrix Step 3.4: Object matching: Calculating object prior information Each rectangular box and object measurement information The pixel overlap of all rectangular boxes in the matrix is ​​calculated, and its value is negative to form a matching cost matrix, and then the matching result is obtained; Step 3.5: Update the object motion state: Update the object motion state from X according to the matching result i-1 Filter out the set of objects that are successfully tracked And update its status: Among them, I is the unit matrix; K i is the Kalman gain; Z i is the measured value, according to the matching result from It is concluded that Step 3.6: Update the tracking system: The unmatched objects in the Kalman filter are initialized with the same initialization parameters as in step 3.2, and added to the set of successfully tracked objects. The tracking variable X of the current key frame is finally formed. i .

Citation Information

Patent Citations

  • A visual SLAM method based on semantic constraint

    CN109815847A

  • Robot semantic SLAM method based on object instance matching, processor and robot

    CN109816686A

  • Dynamic scene dense modeling method based on binocular vision SLAM

    CN110706269A

  • Dynamic environment binocular vision SLAM method based on semantic segmentation

    CN114140527A

  • Application of Z-Webs and Z-factors to Analytics, Search Engine, Learning, Recognition, Natural Language, and Other Utilities

    US20140079297A1