Door and door handle positioning detection method and system based on sensor fusion

Through sensor fusion technology, YOLOv5s target detection algorithm and radar point cloud plane fitting are used to achieve precise positioning of the door handle, solving the problems of high difficulty in trajectory planning and poor accuracy of the mobile manipulator in the task of opening the door, and improving the success rate of opening the door. .

CN118534471AInactive Publication Date: 2024-08-23HARBIN INST OF TECH AT WEIHAI +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410619321.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-19
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The detection effect of existing mobile manipulators using radar point clouds to read target information is poor. The end of the manipulator does not move in a circular arc in a plane, resulting in high difficulty in trajectory planning and poor accuracy, making it impossible to accurately control the door opening task.

Method used

The door and door handle positioning detection method based on sensor fusion is used to obtain the normal vector and opening of the door plane through the construction of the perception system coordinate system, YOLOv5s target detection algorithm, radar point cloud division and segmentation, and plane fitting, combined with the binocular camera Visual ranging and lidar point cloud extraction enable precise positioning of door handles.

Benefits of technology

It significantly reduces the accuracy requirements of trajectory planning, improves the door opening success rate, ensures that the end of the robotic arm can smoothly grasp the door handle, and improves the positioning, navigation and planning accuracy of the mobile platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534471A
    Figure CN118534471A
Patent Text Reader

Abstract

The invention provides a door and door handle positioning detection method and system based on sensor fusion, and belongs to the field of image processing. The problems that when an existing mobile mechanical arm reads target information through radar point cloud, the detection effect is poor, it is not considered that the tail end of the mechanical arm does not do circular motion in a plane, the trajectory planning difficulty is high, and the precision is poor are solved. Comprising the following steps: establishing a sensing system coordinate system, acquiring a transformation matrix between a camera and a laser radar, detecting a door and a door handle by using a YOLOv5s target detection algorithm, detecting a door plane and an opening degree based on radar point cloud, dividing and segmenting the radar point cloud, performing plane fitting on the point cloud to obtain a normal vector of the door plane, and further detecting the door opening degree. The opening and closing angle of the door is obtained. By calculating the direction error between the mobile platform and the door handle, the requirement for planning precision is effectively reduced; by calculating the opening degree of the door plane, the door opening success rate is effectively improved, and subsequent positioning navigation and planning of the mobile platform are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a door and door handle positioning detection method and system based on sensor fusion. Background Art

[0002] For the door opening task, the mobile robot arm needs to fully perceive the external environment. Although the radar point cloud can also read the location information of the target, the radar detection effect is not good because the door handle is small and irregular in shape. When the mobile robot arm completes the door opening task, it needs to face the door handle. If the heading angle deviation of the mobile platform is large, the end of the robot arm will not move in a circular arc in the plane when the door handle is turned. Therefore, it is difficult to plan the trajectory of the mobile robot arm and the planning accuracy is required to be high. At the same time, when sliding the door, it is impossible to accurately control the forward or backward direction of the mobile robot arm, resulting in the failure of the door opening task.

[0003] Therefore, it is necessary to detect the opening and closing status of the door so that the mobile robot arm can face the door handle when moving the door, and the end effector of the robot arm can smoothly grasp the door handle. Summary of the invention

[0004] The technical problems to be solved by the present invention are:

[0005] In order to solve the problem that when the existing mobile robotic arm uses radar point cloud to read target information, the detection effect is poor, the end of the robotic arm does not move in an arc within the plane, and the trajectory planning is difficult and the accuracy is poor.

[0006] The present invention adopts the following technical solutions to solve the above technical problems:

[0007] The present invention provides a door and door handle positioning detection method based on sensor fusion, comprising the following steps:

[0008] S100, constructing a perception system coordinate system, obtaining a transformation matrix between the binocular camera and the radar, that is, a transformation matrix from the binocular camera coordinate system to the radar coordinate system;

[0009] S200, using the YOLOv5s target detection algorithm, detects the door and door handle, and obtains the predicted frame position information of the door and door handle through the visual ranging of the binocular camera;

[0010] S300, based on the door plane and opening detection of the radar point cloud, the radar point cloud is divided and segmented to obtain an orderly arranged point cloud;

[0011] S400. According to the point cloud information segmented in step S300, plane fitting is performed on the point cloud to obtain the normal vector of the door plane, that is, the relative position and posture of the door handle; the door opening is detected according to the solved plane normal vector to finally obtain the opening and closing angle of the door.

[0012] Furthermore, in step S100, it includes:

[0013] S110, establishing a perception system coordinate system, including a binocular camera coordinate system, a radar coordinate system, an image coordinate system, and a pixel coordinate system;

[0014] S120, convert the pixel coordinate system to the image coordinate system, assuming that the pixel coordinates of a point on the camera image are (u0, v0), and the physical size of each pixel in the binocular camera is y pt × pt , the pixel coordinate and image coordinate conversion can be solved by the following formula:

[0015]

[0016] Among them, u and v are the horizontal and vertical coordinates of the corresponding positions in the image coordinate system;

[0017] S130, establish a binocular camera distance measurement model, set the focal length to be f, the distance between the optical centers of the two lenses to be the base distance b of the camera; the object Q in space is in the image coordinate system O cl and O cr The corresponding positions on the l and a r , the coordinates are (y l ,z l ) and (y r ,z r ); Solving the equation, we can get the coordinates of object Q in the binocular vision coordinate system as follows:

[0018]

[0019] S140, converting the camera coordinate system to the radar coordinate system. There is a translation relationship between the two during calibration, and the conversion relationship is:

[0020]

[0021] Among them, a, b, and c are the translation amounts of the camera coordinate system on the x-axis, y-axis, and z-axis of the radar coordinate system, respectively;

[0022] Furthermore, in step S200, it includes:

[0023] S210, network model training, using a binocular camera to collect a door image data set, and divide the data set into a training set and a test set, input the training data and classification labels into the YOLOv5s network model for training, and extract features using a convolutional neural network, and mark the detection box with an output confidence greater than a threshold as "handle";

[0024] S220, image input and detection, inputting the RGB image collected in step S210 into the YOLOv5s network model trained in step S210, and judging whether there is an object in the input RGB image in the trained YOLOv5s network model, and outputting the center, length and width of the object bounding box if there is an object;

[0025] S230. Obtain predicted frame position information of the door and the door handle from the binocular vision ranging information obtained in step S130.

[0026] Furthermore, in step S300, it includes: setting the diagonal m(a m ,b m ,c m )、n(a n ,b n ,c n ) The size of the box is determined by two points m and n. The determination of points m and n is determined by the position information box obtained by binocular vision through the YOLOv5s network to detect the door. The point cloud belonging only to the door in the radar field of view is extracted to obtain the point cloud of the door.

[0027] Furthermore, in step S400, it includes:

[0028] S410, using laser radar to extract point cloud of the door and divide and segment the point cloud in step S300, performing plane fitting on the point cloud, and directly obtaining the normal vector of the door plane through the RANSAC algorithm door handle posture detection method;

[0029] S420, combined Figure 5 The coordinate system relationship diagram between the door plane and the radar is shown. The plane normal vector obtained by fitting the point cloud is in the radar coordinate system, and the plane equation obtained by fitting is:

[0030] Ax+By+Cz=D (4)

[0031] Its plane normal vector n is:

[0032]

[0033] When the door is closed, the radar y ozThe plane coincides with the door plane, and the x-axis direction is the plane normal vector of the door. When the door is opened to a certain angle, the angle is the angle between the door normal vector and the x-axis.

[0034] The gate plane normal vector has angles with the three coordinate axes in the radar space coordinate system. The three angles are as follows:

[0035]

[0036]

[0037]

[0038] A door and door handle positioning detection system based on sensor fusion, the system has a program module corresponding to the above steps, and executes the steps in the above door and door handle positioning detection method based on sensor fusion when running.

[0039] A computer-readable storage medium stores a computer program, wherein the computer program is configured to implement the steps of a door and door handle positioning detection method based on sensor fusion when called by a processor.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] The present invention discloses a door and door handle positioning detection method and system based on sensor fusion, establishes a perception system coordinate system, obtains the transformation matrix between the camera and the laser radar, uses the YOLOv5s target detection algorithm to detect the door and door handle, uses binocular vision ranging, detects the door plane and opening based on the radar point cloud, divides and segments the radar point cloud, and then performs plane fitting on the point cloud to obtain the normal vector of the door plane, and then detects the door opening to obtain the opening and closing angle of the door;

[0042] The present invention discloses a door and door handle positioning detection method and system based on sensor fusion. YOLOv5s is selected to detect the door and door handle information in an image, and the plane position and distance information of the target are accurately detected. The disordered point cloud collected by the radar is arranged in an orderly manner, so as to facilitate the subsequent segmentation and cropping operations of the point cloud. The RANSAC algorithm door handle posture detection method is used to extract the point cloud of the door by using a laser radar, and the obtained point cloud is plane fitted to obtain the plane normal vector of the door plane, and the direction error between the mobile platform and the door handle is calculated, so as to significantly reduce the requirement for planning accuracy. In the process of opening the door, the posture of the door handle changes with the trajectory. After the door plane opening is deduced, the door opening success rate can be effectively improved, and the subsequent positioning, navigation and planning of the mobile platform are convenient. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1This is a flow chart of a door and door handle positioning detection method based on sensor fusion in an embodiment of the present invention;

[0044] Figure 2 Schematic diagram of a perception system coordinate system in an embodiment of the present invention;

[0045] Figure 3 This is a binocular vision ranging model diagram in an embodiment of the present invention;

[0046] Figure 4 A point cloud image of a backdoor extracted by a boxed filter in an embodiment of the present invention;

[0047] Figure 5 is a diagram showing the relationship between the radar coordinate system and the gate normal vector in an embodiment of the present invention;

[0048] Figure 6 This is a diagram showing the actual effect of door and door handle detection in an embodiment of the present invention;

[0049] Figure 7 Schematic diagram of visualization of normal vectors of a door at different opening and closing angles in an embodiment of the present invention;

[0050] Figure 8 Schematic diagram of the change of door opening angle in an embodiment of the present invention. DETAILED DESCRIPTION

[0051] In the description of the present invention, it should be noted that the terminology nouns in the various embodiments, such as "up", "down", "front", "back", "left", "right", etc., which indicate directions, are only for simplifying the description of the positional relationship based on the drawings in the specification, and do not mean that the referred elements and devices must be operated according to the specific directions and defined operations and methods and structures in the specification. Such directional nouns do not constitute a limitation on the present invention.

[0052] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0053] Specific implementation plan 1: Combine Figures 1 to 7 As shown, the present invention provides a door and door handle positioning detection method based on sensor fusion, comprising the following steps:

[0054] S100, constructing the perception system coordinate system, obtaining the transformation matrix between the camera and the laser radar, that is, the transformation matrix from the camera coordinate system to the laser radar coordinate system, specifically including:

[0055] S110, combined Figure 2As shown in the figure, a perception system coordinate system is established, including a binocular camera coordinate system, a radar coordinate system, an image coordinate system, and a pixel coordinate system. In the binocular camera coordinate system, the center point of the lens of the left camera is the origin of the binocular camera coordinate system, the vertical direction from the origin to the door is the Zc axis, the direction from the origin to the opposite direction of the right camera is the Xc axis, and the direction vertically downward from the origin is the Yc axis; in the radar coordinate system, the center of the radar detection head is the origin of the radar coordinate system, and the direction vertically upward from the origin is the Z axis. L Axis, the vertical direction from the origin to the door is X L The axis from the origin to the same direction as the Xc axis is Y L Axis; in the image coordinate system, the center of the image captured by the binocular camera is the origin, and the vertical direction is Z O Axis, horizontal to the right is Y O Axis; In the pixel coordinate system, the upper left corner of the image captured by the binocular camera is the origin, and the horizontal right is Y T Axis, vertical downward is Z T axis;

[0056] S120, transform the pixel coordinate system into the image coordinate system, assuming that the pixel coordinates of a point on the camera image are (u0, v0), and the physical size of each pixel in the binocular camera is y pt × pt , the pixel coordinate and image coordinate conversion can be solved by the following formula:

[0057]

[0058] Among them, u and v are the horizontal and vertical coordinates of the corresponding positions in the image coordinate system;

[0059] S130, Combination Figure 3 As shown in the figure, a binocular camera distance measurement model is established, assuming that the focal length is f, the distance between the optical centers of the two lenses is the base distance b of the camera; the object Q in space is in the image coordinate system O cl and O cr The corresponding positions on the l and a r , the coordinates are (y l ,z l ) and (y r ,z r ); Solving the equation, we can get the coordinates of object Q in the binocular vision coordinate system as follows:

[0060]

[0061] S140, converting the camera coordinate system to the radar coordinate system. There is a translation relationship between the two during calibration, and the conversion relationship is:

[0062]

[0063] Among them, a, b, and c are the translation amounts of the camera coordinate system on the x-axis, y-axis, and z-axis of the radar coordinate system, respectively;

[0064] S200 uses the YOLOv5s target detection algorithm to detect the door and door handle, and obtains the predicted frame position information of the door and door handle through binocular vision ranging, including:

[0065] S210, network model training, using a binocular camera to collect a door image data set, and divide the data set into a training set and a test set, input the training data and classification labels into the YOLOv5s network model for training, and extract features using a convolutional neural network, and mark the detection box with an output confidence greater than a threshold as "handle";

[0066] S220, image input and detection, inputting the RGB image collected in step S210 into the YOLOv5s network model trained in step S210, and judging whether there is an object in the input RGB image in the YOLOv5s network model, and outputting the center, length and width of the object bounding box if there is an object;

[0067] S230, obtaining the predicted frame position information of the door and the door handle from the binocular vision ranging information obtained in step S130; the actual detection effects of different door handles are as follows Figure 6 As shown;

[0068] S300, based on the door plane and opening detection of the radar point cloud, the radar point cloud is divided and segmented to obtain an orderly arranged point cloud, specifically including:

[0069] Set the diagonal m(a m ,b m ,c m )、n(a n ,b n ,c n ) to determine the size of the box. The determination of points m and n is determined by the position information box obtained by binocular vision through the Yolov5s network to detect the door. The point cloud belonging to the door in the radar field of view is extracted as shown in the attached figure. Figure 4 As shown, it is prepared for the subsequent plane fitting;

[0070] S400, performing plane fitting on the point cloud according to the point cloud information segmented in step S300 to obtain the normal vector of the door plane, that is, the relative position and posture of the door handle; detecting the door opening according to the solved plane normal vector to obtain the opening and closing angle of the door, specifically including:

[0071] S410, using laser radar to extract the point cloud of the door and divide and segment the point cloud in step S300, perform plane fitting on the point cloud, and detect the door plane through the RANSAC algorithm, including treating all points in the point cloud as a large sample set P, selecting n as the smallest sampling set, and then randomly selecting S points from P as the sampling set; secondly, defining S* as the inner set of the sampling set S, the elements in S* are composed of the elements in the S set and the elements in the residual set P / S of S in P that meet the threshold condition N, and the number of elements is recorded as M; continuously extracting S random points from P to obtain its inner set, continuously iterating, the number of inner sets does not increase much, and continuously updating the M value. When the M value is no longer updated, all elements in the inner set are the required elements; and using this algorithm to obtain the normal vector of the door plane;

[0072] S420, combined Figure 5 The coordinate system relationship diagram between the door plane and the radar is shown. The plane normal vector obtained by fitting the point cloud is in the radar coordinate system, and the plane equation obtained by fitting is:

[0073] Ax+By+Cz=D (4)

[0074] Its plane normal vector n is:

[0075]

[0076] When the door is closed, the radar's y oz The plane coincides with the door plane, and the x-axis direction is the plane normal vector of the door. When the door is opened to a certain angle, the angle is the angle between the door normal vector and the x-axis.

[0077] The gate plane normal vector has angles with the three coordinate axes in the radar space coordinate system. The three angles are as follows:

[0078]

[0079]

[0080]

[0081] Combination Figure 7 As shown, this is a visualization of the normal vector of the door at different opening and closing angles.

[0082] In addition, a real-time door opening degree detection experiment was conducted during the door opening and closing process, and the calculated door opening and closing angles were output in real time, as shown in the attached figure. Figure 8As shown, it can be found that the angle changes continuously in real time according to the degree of opening and closing of the door. Before 11 seconds, the door was in a closed state, and the door opening angle was about 1-2°. When collecting data, there will be an angle error between the radar and the door plane and the installation of the radar on the mobile platform. The small angle has a negligible impact on the experiment. When the door gradually opens, the detected door opening angle increases continuously, and the door stops at 37°, 42°, and 45° respectively. When the door stops opening, the detected data will fluctuate up and down, and the floating degree is about 1°.

[0083] Specific implementation scheme 2: The present invention provides a door and door handle positioning detection system based on sensor fusion, which has a program module corresponding to the above steps and executes the steps in the above door and door handle positioning detection method based on sensor fusion during operation.

[0084] The other combinations and connection relationships of this embodiment are the same as those of the first embodiment.

[0085] Specific implementation scheme three: The present invention provides a computer-readable storage medium, which stores a computer program, and the computer program is configured to implement the steps of a door and door handle positioning detection method based on sensor fusion when called by a processor.

[0086] The other combinations and connection relationships of this embodiment are the same as those of the first embodiment.

[0087] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.

Claims

1. A door and door handle positioning detection method based on sensor fusion, characterized in that: The following steps are involved: S100, constructing a perception system coordinate system, obtaining a transformation matrix between the binocular camera and the radar, that is, a transformation matrix from the binocular camera coordinate system to the radar coordinate system; S200, using the YOLOv5s target detection algorithm, detects the door and door handle, and obtains the predicted frame position information of the door and door handle through the visual ranging of the binocular camera; S300, based on the door plane and opening detection of the radar point cloud, the radar point cloud is divided and segmented to obtain an orderly arranged point cloud; S400. According to the point cloud information segmented in step S300, plane fitting is performed on the point cloud to obtain the normal vector of the door plane, that is, the relative position and posture of the door handle; the door opening is detected according to the solved plane normal vector to finally obtain the opening and closing angle of the door.

2. A door and door handle positioning detection method based on sensor fusion according to claim 1, characterized in that: In step S100, it includes: S110, establishing a perception system coordinate system, including a binocular camera coordinate system, a radar coordinate system, an image coordinate system, and a pixel coordinate system; S120, convert the pixel coordinate system to the image coordinate system, assuming that the pixel coordinates of a point on the camera image are (u0, v0), and the physical size of each pixel in the binocular camera is y pt × pt , the pixel coordinate and image coordinate conversion can be solved by the following formula: Among them, u and v are the corresponding positions in the image coordinate system; S130, establish a binocular camera distance measurement model, set the focal length to be f, the distance between the optical centers of the two lenses to be the base distance b of the camera; the object Q in space is in the image coordinate system O cl and O cr The corresponding positions on the l and a r , the coordinates are (y l ,z l ) and (y r ,z r ); Solving the equation, we can get the coordinates of object Q in the binocular vision coordinate system as follows: S140, converting the camera coordinate system to the radar coordinate system. There is a translation relationship between the two during calibration, and the conversion relationship is: Among them, a, b, and c are the translation amounts of the camera coordinate system on the x-axis, y-axis, and z-axis of the radar coordinate system, respectively.

3. A door and door handle positioning detection method based on sensor fusion according to claim 2, characterized in that: In step S200, it includes: S210, network model training, using a binocular camera to collect the door image data set, and divide the data set into a training set and a test set, input the training data and classification labels into the YOLOv5s network model for training, and extract features using a convolutional neural network. The detection box with an output confidence greater than a threshold is marked as "handle". S220, image input and detection, inputting the RGB image collected in step S210 into the YOLOv5s network model trained in step S210, and judging whether there is an object in the input RGB image in the trained YOLOv5s network model, and outputting the center, length and width of the object bounding box if there is an object; S230. Obtain predicted frame position information of the door and the door handle from the binocular vision ranging information obtained in step S130.

4. A door and door handle positioning detection method based on sensor fusion according to claim 3, characterized in that: In step S300, it includes: setting the diagonal m(a m ,b m ,c m )、n(a n ,b n ,c n ) The size of the box is determined by two points m and n. The determination of points m and n is determined by the position information box obtained by binocular vision through the YOLOv5s network to detect the door. The point cloud belonging only to the door in the radar field of view is extracted to obtain the point cloud of the door.

5. A door and door handle positioning detection method based on sensor fusion according to claim 4, characterized in that: In step S400, it includes: S410, using laser radar to extract point cloud of the door and divide and segment the point cloud in step S300, performing plane fitting on the point cloud, and directly obtaining the normal vector of the door plane through the RANSAC algorithm door handle posture detection method; S420, in conjunction with the coordinate system relationship diagram between the door plane and the radar shown in FIG5 , the plane normal vector obtained by fitting the point cloud is in the radar coordinate system, and the plane equation obtained by fitting is: Ax+By+Cz=D (4) Its plane normal vector n is: When the door is closed, the radar's y oz The plane coincides with the door plane, and the x-axis direction is the plane normal vector of the door. When the door is opened to a certain angle, the angle is the angle between the door normal vector and the x-axis. The gate plane normal vector has angles with the three coordinate axes in the radar space coordinate system. The three angles are as follows:

6. A door and door handle positioning detection system based on sensor fusion, characterized in that: The system has a program module corresponding to the steps of any one of claims 1 to 5 above, and executes the steps in the above-mentioned door and door handle positioning detection method based on sensor fusion when running.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is configured to implement the steps of the door and door handle positioning detection method based on sensor fusion according to any one of claims 1 to 5 when called by a processor.

Citation Information

Patent Citations

  • Door opening degree judgment method based on depth image and azimuth angle

    CN104315998A

  • Robot autonomous door opening method and system based on visual guidance

    CN112571415A

  • Dynamic obstacle rapid point cloud elimination method and system based on YOLO

    CN117911271A

  • Systems and methods for detecting erroneous lidar data

    US20230417885A1

  • Detection method, system, and device based on fusion of image and point cloud information, and storage medium

    WO2022156175A1