A method, device and storage medium for identifying and locating a door

By using a monocular camera on the robot to collect indoor images, identify the position information and confidence of the door, and combining the camera parameters and robot pose, the problems of low recognition accuracy and high cost in the existing technology are solved, and high accuracy is achieved and low-cost door positioning.

CN111950440BActive Publication Date: 2024-09-06HANGZHOU EZVIZ SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010795822.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-10
Publication Date
2024-09-06
Estimated Expiration
2040-08-10

AI Technical Summary

Technical Problem

Existing recognition and positioning gate technologies suffer from low recognition accuracy and high cost. In particular, methods that rely on binocular cameras or grid maps are prone to false detections.

Method used

The monocular camera configured on the robot is used to collect indoor images, and the position information and confidence of the door are determined through image recognition. The suspected position of the door in the indoor map is determined based on the camera parameters and the robot's posture, and is included in the set of recorded positioning information. Find and maintain door location information.

Benefits of technology

The door recognition accuracy is improved, the cost is reduced, and the door can be accurately positioned in the indoor map using only a monocular camera.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111950440B
    Figure CN111950440B
Patent Text Reader

Abstract

The present invention provides a method, device and storage medium for identifying and locating doors, the method comprising: using a camera configured on a robot to collect indoor images; performing image recognition on the current indoor images to obtain image recognition results; when the image recognition results contain the identified door information, performing the following operations: determining the suspected position of the door in the indoor map according to the position information of the door included in the door information, camera parameters, and the current position of the robot; searching and maintaining the positioning information of the door in a set of recorded door positioning information according to the confidence of the door included in the door information and the suspected position of the door in the indoor map. By applying the present invention, the door recognition accuracy is high and the cost is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robot vision technology, and in particular to a method, device and storage medium for identifying and locating a door. Background Art

[0002] Generally speaking, mobile robots use maps to plan their paths during movement. In order to make the path more efficient and intelligent, the map is often divided into zones, so that the robot can complete the task in one zone before moving into another zone.

[0003] In indoor maps, the location of doors is an important basis for map partitioning. For example, if the location of the door between the living room and the bedroom is marked in the map of the sweeper, the control program can automatically divide the living room and the bedroom into two areas based on the location information, so that the robot can first complete the cleaning in the living room and then enter the bedroom, greatly improving the cleaning efficiency and rationality. Therefore, the mobile robot needs to have the ability to detect doors and locate the location of doors on the map.

[0004] Existing technologies for identifying and locating doors can be divided into two categories. The first category is a method that uses a camera to collect image information for identification and positioning, and the second category is a method that uses strategies to divide on a grid map. Among them, the first category is such as patent "CN108615025A", which uses a binocular camera to collect images, and determines the effective suspected door by extracting vertical line features from the left and right images, and then determines the effective suspected door orientation features. In this patent, it is necessary to control the robot to move to the vicinity of the position to use a binocular camera for detection and identification, and to achieve positioning optimization by repeating this operation many times. The implementation method is complex and costly. The second category is such as patents "CN110141164A" and "CN110554700A", both of which use certain strategies to find possible door locations in a grid map. This type of method is completely dependent on the accuracy of the grid map, and the probability of false detection is very high. Summary of the invention

[0005] In view of this, an object of the present invention is to provide a method, device and storage medium for identifying and locating a door, which has high door recognition accuracy and low cost.

[0006] In order to achieve the above object, the present invention provides the following technical solutions:

[0007] A method for identifying and locating a door, comprising:

[0008] Use the camera configured on the robot to collect indoor images;

[0009] Perform image recognition on the current indoor image to obtain an image recognition result;

[0010] When the image recognition result includes the recognized door information, the following operations are performed:

[0011] Determine a suspected position of the door in the indoor map according to the position information of the door, the camera parameters, and the current position of the robot included in the door information;

[0012] According to the confidence of the door included in the door information and the suspected position of the door in the indoor map, the positioning information of the door is searched and maintained in a set of recorded door positioning information.

[0013] An apparatus for identifying and locating a door, comprising: a processor, and a non-transitory computer-readable storage medium connected to the processor via a bus;

[0014] The non-transitory computer-readable storage medium stores one or more computer programs executable by the processor; when the processor executes the one or more computer programs, the following steps are implemented:

[0015] Use the camera configured on the robot to collect indoor images;

[0016] Perform image recognition on the current indoor image to obtain an image recognition result;

[0017] When the image recognition result includes the recognized door information, the following operations are performed:

[0018] Determine a suspected position of the door in the indoor map according to the position information of the door, the camera parameters, and the current position of the robot included in the door information;

[0019] According to the confidence of the door included in the door information and the suspected position of the door in the indoor map, the positioning information of the door is searched and maintained in a set of recorded door positioning information.

[0020] A non-transitory computer-readable storage medium stores instructions, which, when executed by a processor, cause the processor to perform the steps in the method for identifying and locating a door as described above.

[0021] It can be seen from the above technical scheme that in the present invention, the camera configured on the robot is used to collect indoor images, and the current indoor image is recognized. When the door information is recognized in the indoor image, the suspected position of the door in the indoor map is first determined based on the position information of the door in the current indoor image, the camera parameters, and the current posture of the robot. Then, according to the confidence of the door and the suspected position of the door in the indoor map, the positioning information of the door is searched and maintained in the positioning information set of the recorded doors. It can be seen that by applying the method of the present invention, the robot can continuously identify the same or different doors during movement, and search and maintain the position information of the door in the positioning information set of the recorded doors, with a high accuracy rate; and because only a monocular camera is needed to realize the positioning of the door in the indoor map, the cost is low. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 is a flow chart of a method for identifying and locating a door provided in Embodiment 1 of the present invention;

[0024] Figure 2 is a flow chart of a method for identifying and locating a door provided in Embodiment 2 of the present invention;

[0025] Figure 3 is a flow chart of a method for identifying and locating a door provided in Embodiment 3 of the present invention;

[0026] Figure 4a is an example diagram of a current indoor image provided by an embodiment of the present invention;

[0027] Figure 4b is a schematic diagram of an image recognition result of a current indoor image according to an embodiment of the present invention;

[0028] Figure 5 is a flow chart of a method for identifying and locating a door provided in a fourth embodiment of the present invention;

[0029] Figure 6 is a flow chart of a method for identifying and locating a door provided in Embodiment 5 of the present invention;

[0030] Figure 7 is a flow chart of a method for identifying and locating a door provided in Embodiment 6 of the present invention;

[0031] Figure 8 is a schematic diagram of a viewing cone formed in camera imaging provided by an embodiment of the present invention;

[0032] Fig. 9 is a flow chart of a method for identifying and locating a door provided in Embodiment 7 of the present invention;

[0033] Fig.10 is a flow chart of a method for identifying and locating a door provided in Embodiment 8 of the present invention;

[0034] Fig.11 is a flow chart of a method for identifying and locating a door provided in Embodiment 9 of the present invention;

[0035] Fig.12 is a schematic diagram of two-dimensional projection rays of rays from the optical center of the camera to four corner points of a rectangular area surrounding a door in a current indoor image in an indoor map according to an embodiment of the present invention;

[0036] Fig.13 is a flow chart of a method for identifying and locating a door provided in Embodiment 10 of the present invention;

[0037] Fig.14 It is a schematic diagram of the indoor layout provided by an embodiment of the present invention;

[0038] Fig.15 It is a schematic diagram of combining two-dimensional projection rays and indoor maps provided by an embodiment of the present invention;

[0039] Fig.16 is a schematic diagram of an area prone to misidentification provided by an embodiment of the present invention;

[0040] Fig.17 is a flow chart of a method for identifying and locating a door provided in the eleventh embodiment of the present invention;

[0041] Fig.18 is a schematic diagram of indoor images of the same door observed at different positions according to an embodiment of the present invention;

[0042] Fig.19 is a flow chart of a method for identifying and locating a door provided in Embodiment 12 of the present invention;

[0043] Fig. 20 It is a schematic diagram of the structure of the device for identifying and locating a door provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] See also Figure 1 , Figure 1 is a flow chart of a method for identifying and locating a door provided in Embodiment 1 of the present invention. Figure 1 As shown, the method comprises the following steps:

[0046] Step 101: Use the camera configured on the robot to collect indoor images.

[0047] In this embodiment, the robot can use the configured camera to collect indoor images in real time during movement, and perform subsequent image recognition and door positioning operation steps on the collected indoor images.

[0048] In this embodiment, the camera may be a monocular camera, which has a relatively low configuration cost.

[0049] Step 102: Perform image recognition on the current indoor image to obtain an image recognition result.

[0050] In this embodiment, the image recognition result includes recognized door information; wherein the door information includes location information of the door and confidence level of the door.

[0051] In this embodiment, image recognition is performed on the current indoor image to determine whether the current indoor image contains a door. When the current indoor image does not contain a door (that is, when the image recognition result does not contain the recognized door information), there is no need to perform subsequent door positioning operations, so the current indoor image can be directly discarded. When the current indoor image contains a door (that is, when the image recognition result contains the recognized door information), it is necessary to continue to perform subsequent door positioning operations.

[0052] Step 103: When the image recognition result contains the door information, perform the following steps 104 to 105:

[0053] Step 104: Determine the suspected position of the door in the indoor map according to the position information of the door, the camera parameters, and the current position of the robot included in the door information.

[0054] Step 105: According to the confidence of the door included in the door information and the suspected position of the door in the indoor map, search and maintain the location information of the door in a set of recorded door location information.

[0055] from Figure 1It can be seen from the method shown that in this embodiment, the camera configured on the robot is used to collect indoor images and recognize the current indoor image. When the door exit information is recognized in the indoor image, the suspected position of the door in the indoor map is first determined based on the position information of the door in the current indoor image, the camera parameters, and the current position of the robot. Then, based on the confidence of the door and the suspected position of the door in the indoor map, the location information of the door is searched and maintained in the location information set of the recorded doors. It can be seen that by applying the method provided in this embodiment, the robot can continuously identify the same or different doors during movement, and search and maintain the location information of the door in the location information set of the recorded doors, with a high accuracy rate; and because only a monocular camera is needed to realize the location of the door in the indoor map, the cost is low.

[0056] See also Figure 2 , Figure 2 is a flow chart of a method for identifying and locating a door provided in Embodiment 2 of the present invention. Figure 2 As shown, the method comprises the following steps:

[0057] Step 201: Use the camera configured on the robot to collect indoor images;

[0058] Step 2021: pre-process the current indoor image;

[0059] After the current indoor image is collected, certain preprocessing measures can be taken on the current indoor image, such as Gaussian filtering, de-distortion, etc., to filter out various factors that affect the image recognition results, thereby improving the accuracy of the current indoor image recognition results.

[0060] Therefore, in this embodiment, the preprocessing includes Gaussian filtering and de-distortion processing.

[0061] Step 2022: Perform image recognition on the current indoor image using a door recognition model that is pre-trained using sample images with door location information annotated, to obtain an image recognition result for the current indoor image;

[0062] In this embodiment, the image recognition result includes recognized door information; wherein the door information includes location information of the door and confidence level of the door.

[0063] In this embodiment, a large number of indoor images with door location information marked can be collected in advance, and then these indoor images are used as training samples, and a door recognition model is obtained by training the convolutional neural network model. The door recognition model obtained by this training can be used to realize image recognition of the current indoor image. In addition, in practical applications, other non-neural network recognition methods can also be used to perform image recognition on the current indoor image, which is not the focus of the present invention and will not be described in detail.

[0064] The above steps 2021 to 2022 are Figure 1 The specific refinement of step 102 is shown.

[0065] Step 203: When the image recognition result contains the door information, perform the following steps 204 to 205:

[0066] Step 204: Determine the suspected position of the door in the indoor map according to the position information of the door, the camera parameters, and the current position of the robot included in the door information.

[0067] Step 205: According to the confidence of the door included in the door information and the suspected position of the door in the indoor map, search and maintain the location information of the door in the location information set of the recorded door.

[0068] from Figure 2 It can be seen from the method shown that in this embodiment, before performing image recognition on the current indoor image, certain pre-processing means, such as Gaussian filtering, de-distortion, etc., are used, and then the pre-trained door recognition model is used for image recognition. The pre-processing of the current indoor image can filter out interference factors that affect the image recognition result, thereby improving the accuracy of image recognition. In addition, this embodiment also has Figure 1 The advantage of the illustrated embodiment is that by applying the method provided by the embodiment of the present invention, the robot can continuously identify the same or different doors during movement, and search and maintain the location information of this door in the set of recorded door location information, with high accuracy; and because only a monocular camera is needed to locate the door in the indoor map, the cost is low.

[0069] See also Figure 3 , Figure 3 is a flow chart of a method for identifying and locating a door provided in Embodiment 3 of the present invention. Figure 3 As shown, the method comprises the following steps:

[0070] Step 301: Use the camera configured on the robot to collect indoor images;

[0071] Step 302: Perform image recognition on the current indoor image to obtain an image recognition result:

[0072] In this embodiment, the image recognition result includes the recognized door information; the door information includes the location information of the door and the confidence of the door; the location information of the door includes the coordinates of four corner points of a rectangular area surrounding the door in the current indoor image.

[0073] Figure 4a is an example of the current indoor image. Figure 4b is a schematic diagram of the image recognition result of the current indoor image, such as Figure 4b As shown, the rectangular area represents the position of the door in the current indoor image, which can be specifically represented by the coordinates of the four corner points of the rectangular area (the specific coordinates are not shown in the figure). The English and numbers displayed above the rectangular area represent the classification (door) and classification confidence (0.902302) of the object in the rectangular area, respectively. The higher the classification confidence, the greater the possibility that the classification (door) of the object in the rectangular area is correct.

[0074] In this embodiment, the image recognition result for the current indoor image may be empty (i.e., no door is recognized), or may include one or more result information, wherein the result information classified as door is the recognized door information. In this article, the classification confidence included in the recognized door information is collectively referred to as the confidence of the door.

[0075] Step 303: When the image recognition result contains the door information, perform the following steps 3041 to 305:

[0076] In this embodiment, the camera configured on the robot has pre-calibrated camera parameters, specifically including camera intrinsic parameters and camera extrinsic parameters.

[0077] In this embodiment, when the image recognition result includes the recognized door information, the following operations from step 3041 to step 305 are performed for each recognized door information.

[0078] Step 3041: Determine the three-dimensional projection range of the door in the world coordinate system according to the coordinates of four corner points of a rectangular area surrounding the door in the current indoor image included in the door position information in the door information, the camera parameters, and the current position and posture of the robot;

[0079] Step 3042: Determine the two-dimensional projection range of the door in the indoor map according to the three-dimensional projection range of the door in the world coordinate system;

[0080] Step 3043: Determine the suspected position of the door in the indoor map according to the two-dimensional projection range of the door in the indoor map.

[0081] The above steps 3041 to 3043 are Figure 1 The specific refinement of step 104 is shown.

[0082] Step 305: According to the confidence of the door included in the door information and the suspected position of the door in the indoor map, search and maintain the location information of the door in the location information set of the recorded door.

[0083] from Figure 3It can be seen from the method shown that in this embodiment, when determining the suspected position of the door in the indoor map, the three-dimensional projection range of the door in the world coordinate system is determined based on the position information of the door, the camera parameters and the current position of the robot, and then the two-dimensional projection range of the door in the indoor map is determined, and the suspected position of the door is determined in combination with the indoor map, and finally, based on the confidence of the door included in the door information and the suspected position of the door in the indoor map, the positioning information of the door is searched and maintained in the set of recorded door positioning information to achieve the positioning optimization of the door. By applying the method provided in this embodiment, the same or different doors can be continuously identified during the movement of the robot, and the positioning optimization of the door can be achieved with high accuracy; and it is achieved by only using a monocular camera, so the cost is low.

[0084] See also Figure 5 , Figure 5 is a flow chart of a method for identifying and locating a door provided in Embodiment 4 of the present invention. Figure 5 As shown, the method comprises the following steps:

[0085] Step 501: Use the camera configured on the robot to collect indoor images;

[0086] Step 502: Perform image recognition on the current indoor image to obtain an image recognition result:

[0087] In this embodiment, the image recognition result includes the recognized door information; the door information includes the location information of the door and the confidence of the door; the location information of the door includes the coordinates of four corner points of a rectangular area surrounding the door in the current indoor image.

[0088] Step 503: When the image recognition result contains the door information, perform the following steps 5041a to 505:

[0089] Step 5041a: for each of the four corner points of the rectangular area surrounding the door in the current indoor image, determine the expression of the ray from the optical center of the camera to the direction of the corner point in the world coordinate system according to the coordinates of the corner point, the camera parameters, and the current position and posture of the robot;

[0090] Here, the camera optical center is the origin of the camera coordinate system.

[0091] Step 5041b: determine the three-dimensional space range defined by the expression of the rays from the camera optical center to the four corner points in the world coordinate system as the three-dimensional projection range of the door in the world coordinate system.

[0092] The above steps 5041a to 5041b are Figure 3 The specific refinement of step 3041 is shown.

[0093] Step 5042: Determine the two-dimensional projection range of the door in the indoor map according to the three-dimensional projection range of the door in the world coordinate system;

[0094] Step 5043: Determine the suspected position of the door in the indoor map according to the two-dimensional projection range of the door in the indoor map.

[0095] The above steps 5041a to 5043 are Figure 1 The specific refinement of step 104 is shown.

[0096] Step 505: According to the confidence of the door included in the door information and the suspected position of the door in the indoor map, search and maintain the location information of the door in the location information set of the recorded door.

[0097] from Figure 5 It can be seen from the method shown that in this embodiment, when determining the suspected position of the door in the indoor map, the expression of the ray from the optical center of the camera to each of the four corner points of the rectangular area surrounding the door in the world coordinate system is first determined, and the three-dimensional space range defined by the expression of the four rays in the world coordinate system is determined as the three-dimensional projection range of the door in the world coordinate system, and then the two-dimensional projection range of the door in the indoor map is determined, and finally the suspected position of the door is determined in combination with the indoor map. Applying the method provided in this embodiment, the same or different doors can be continuously identified during the movement of the robot, and the positioning of the door can be optimized with high accuracy; and it is realized by only using a monocular camera, and the cost is low.

[0098] See also Figure 6 , Figure 6 is a flow chart of a method for identifying and locating a door provided in Embodiment 5 of the present invention. Figure 6 As shown, the method comprises the following steps:

[0099] Step 601: Use the camera configured on the robot to collect indoor images;

[0100] In this embodiment, the camera has already been calibrated with camera intrinsic parameters and camera extrinsic parameters in advance.

[0101] Step 602: Perform image recognition on the current indoor image to obtain an image recognition result:

[0102] In this embodiment, the image recognition result includes the recognized door information; the door information includes the location information of the door and the confidence of the door; the location information of the door includes the coordinates of four corner points of a rectangular area surrounding the door in the current indoor image.

[0103] Step 603: When the image recognition result contains the door information recognized, perform the following steps 6041a_1 to 605:

[0104] Step 6041a_1: for each of the four corner points of the rectangular area surrounding the door in the current indoor image, determine the expression of the ray from the camera optical center to the corner point in the camera coordinate system according to the coordinates of the corner point and the camera intrinsic parameters;

[0105] Step 6041a_2: for each of the four corner points of the rectangular area surrounding the door in the current indoor image, determine the expression of the ray from the camera optical center to the corner point in the robot coordinate system according to the expression of the ray from the camera optical center to the corner point in the camera coordinate system and the camera extrinsic parameter;

[0106] Step 6041a_3: For each of the four corner points of the rectangular area surrounding the door in the current indoor image, determine the expression of the ray from the optical center of the camera to the corner point in the world coordinate system based on the expression of the ray from the optical center of the camera to the corner point in the robot coordinate system and the current position of the robot.

[0107] The above steps 6041a_1 to 6041a_3 are Figure 5 A specific refinement of step 5041a is shown.

[0108] Step 6041b: determine the three-dimensional spatial range defined by the expression of the rays from the camera optical center to the four corner points in the world coordinate system as the three-dimensional projection range of the door in the world coordinate system.

[0109] The above steps 6041a to 6041b are Figure 3 The specific refinement of step 3041 is shown.

[0110] Step 6042: Determine the two-dimensional projection range of the door in the indoor map according to the three-dimensional projection range of the door in the world coordinate system;

[0111] Step 6043: Determine the suspected position of the door in the indoor map according to the two-dimensional projection range of the door in the indoor map.

[0112] The above steps 6041a to 6043 are Figure 1 The specific refinement of step 104 is shown.

[0113] Step 605: According to the confidence of the door included in the door information and the suspected position of the door in the indoor map, search and maintain the location information of the door in the location information set of the recorded door.

[0114] from Figure 6 It can be seen from the method shown that in this embodiment, when determining the suspected position of the door in the indoor map, the expressions of the rays from the optical center of the camera to each of the four corner points of the rectangular area surrounding the door in the camera coordinate system, the robot coordinate system, and the world coordinate system are first determined in turn, and the three-dimensional space range defined by the expressions of these four rays in the world coordinate system is determined as the three-dimensional projection range of the door in the world coordinate system, and then the two-dimensional projection range of the door in the indoor map is determined, and finally the suspected position of the door is determined in combination with the indoor map. By applying the method provided in this embodiment, the same or different doors can be continuously identified during the movement of the robot, and the positioning of the door can be optimized with high accuracy; and it is realized by only using a monocular camera, and the cost is low.

[0115] See also Figure 7 , Figure 7 is a flow chart of a method for identifying and locating a door provided in Embodiment 6 of the present invention. Figure 7 As shown, the method comprises the following steps:

[0116] Step 701: Use the camera configured on the robot to collect indoor images;

[0117] In this embodiment, the camera is calibrated with camera intrinsic parameters and camera extrinsic parameters.

[0118] Step 702: Perform image recognition on the current indoor image to obtain an image recognition result:

[0119] In this embodiment, the image recognition result includes the recognized door information; the door information includes the location information of the door and the confidence of the door; the location information of the door includes the coordinates of four corner points of a rectangular area surrounding the door in the current indoor image.

[0120] Step 703: When the image recognition result contains the door information, perform the following steps 7041a_1 to 705:

[0121] Step 7041a_1: for each of the four corner points of the rectangular area surrounding the door in the current indoor image, substitute the coordinates of the corner point and the intrinsic parameter matrix corresponding to the camera intrinsic parameter into the camera imaging formula to obtain an expression of the ray from the camera optical center to the corner point in the camera coordinate system;

[0122] See also Figure 8 The schematic diagram of the viewing cone formed in the camera imaging is shown in Figure 8 In the figure, P1 is the image plane of the camera (i.e., the image captured / photographed), P2 is the farthest visible range of the camera, and any box abcd on P1 may be obtained by projecting any quadrilateral in the four-sided pyramid OABCD (the camera's viewing cone). For example, Figure 8 The quadrilateral formed by four dotted lines is projected onto the image plane P1 to obtain the box abcd in P1. When a box is obtained in the image taken by the camera through the image recognition method, and it is known that there may be a door in the box, it actually means that there may be a door in the OABCD cone in the three-dimensional space.

[0123] In actual implementation, for each of the four corner points of the rectangular area surrounding the door in the door information, the coordinates of the corner point and the intrinsic parameter matrix corresponding to the camera intrinsic parameter are substituted into the camera imaging formula to obtain the expression of the ray from the camera optical center to the corner point in the camera coordinate system.

[0124] The following Figure 8 Taking the ray from the camera optical center O to the corner point a (ie OA / Oa) as an example, the principle of calculating the expression of the ray in the camera coordinate system is explained:

[0125] The principle of calculating the expression of ray OA (equivalent to ray Oa) in the camera coordinate system is as follows:

[0126] Assume that the camera's intrinsic parameter matrix M can be expressed as: Among them, f x Represents the scale factor in the X direction on the image plane, f y Represents the scale factor in the Y direction on the image plane, c x represents the X coordinate of the optical center, c y represents the Y coordinate of the optical center;

[0127] In addition, assume that the coordinates of the corner point a of the box on the image plane are a(u a , v a ), the coordinates of any point on ray OA are (x A ,y A , z A ), where z A Greater than 0;

[0128] These data can be substituted into the imaging formula Thus, the expression of ray OA in the camera coordinate system is calculated:

[0129] Similarly, the same calculation principle as above can be used to calculate the expressions of ray OB (equivalent to ray Ob), ray OC (equivalent to ray Oc), and ray OD (equivalent to ray Od) in the camera coordinate system.

[0130] The above step 7041a_1 is Figure 6 A specific refinement of 6041a_1 is shown.

[0131] Step 7041a_2: for each of the four corner points of the rectangular area surrounding the door in the current indoor image, determine the expression of the ray from the camera optical center to the corner point in the robot coordinate system according to the expression of the ray from the camera optical center to the corner point in the camera coordinate system and the camera extrinsic parameter;

[0132] Step 7041a_3: For each of the four corner points of the rectangular area surrounding the door in the current indoor image, determine the expression of the ray from the optical center of the camera to the corner point in the world coordinate system based on the expression of the ray from the optical center of the camera to the corner point in the robot coordinate system and the current position of the robot.

[0133] The above steps 7041a_1 to 7041a_3 are Figure 5 A specific refinement of step 5041a is shown.

[0134] Step 7041b: determine the three-dimensional space range defined by the expression of the rays from the camera optical center to the four corner points in the world coordinate system as the three-dimensional projection range of the door in the world coordinate system.

[0135] The above steps 7041a to 7041b are Figure 3 The specific refinement of step 3041 is shown.

[0136] Step 7042: Determine the two-dimensional projection range of the door in the indoor map according to the three-dimensional projection range of the door in the world coordinate system;

[0137] Step 7043: Determine the suspected position of the door in the indoor map according to the two-dimensional projection range of the door in the indoor map.

[0138] The above steps 7041a to 7043 are Figure 1 The specific refinement of step 104 is shown.

[0139] Step 705: According to the confidence of the door included in the door information and the suspected position of the door in the indoor map, search and maintain the location information of the door in the location information set of the recorded door.

[0140] from Figure 7It can be seen from the method shown that in this embodiment, when determining the suspected position of the door in the indoor map, the expression of the ray from the camera optical center to each of the four corner points of the rectangular area surrounding the door in the camera coordinate system is first determined in turn (this expression is calculated by substituting the corner point coordinates and the internal parameter matrix corresponding to the camera internal parameter into the camera imaging formula), the expression in the robot coordinate system, and the expression in the world coordinate system, and the three-dimensional space range defined by the expression of these four rays in the world coordinate system is determined as the three-dimensional projection range of the door in the world coordinate system, and then the two-dimensional projection range of the door in the indoor map is determined, and finally the suspected position of the door is determined in combination with the indoor map. Applying the method provided in this embodiment, the same or different doors can be continuously identified during the movement of the robot, and the positioning optimization of the door can be achieved with high accuracy; and it is realized by only using a monocular camera, and the cost is low.

[0141] See also Fig. 9 , Fig. 9 is a flow chart of a method for identifying and locating a door provided in Embodiment 7 of the present invention. Fig. 9 As shown, the method comprises the following steps:

[0142] Step 901: Use the camera configured on the robot to collect indoor images;

[0143] In this embodiment, the camera is calibrated with camera intrinsic parameters and camera extrinsic parameters.

[0144] Step 902: Perform image recognition on the current indoor image to obtain an image recognition result:

[0145] In this embodiment, the image recognition result includes the recognized door information; the door information includes the location information of the door and the confidence of the door; the location information of the door includes the coordinates of four corner points of a rectangular area surrounding the door in the current indoor image.

[0146] Step 903: When the image recognition result contains the door information, perform the following steps 9041a_1 to 905:

[0147] In this embodiment, the camera configured on the robot has pre-calibrated camera parameters, specifically including camera intrinsic parameters and camera extrinsic parameters.

[0148] Step 9041a_1: for each of the four corner points of the rectangular area surrounding the door in the current indoor image, determine the expression of the ray from the camera optical center to the corner point in the camera coordinate system according to the coordinates of the corner point and the camera intrinsic parameters.

[0149] Step 9041a_2: for each of the four corner points of the rectangular area surrounding the door in the current indoor image, substitute the expression of the ray from the camera optical center to the corner point in the camera coordinate system and the extrinsic parameter matrix corresponding to the camera extrinsic parameter into the transformation relationship from the camera coordinate system to the robot coordinate system, and obtain the expression of the ray from the camera optical center to the corner point in the robot coordinate system;

[0150] The following Figure 8 Taking the ray from the camera optical center O to the corner point a (ie OA / Oa) as an example, the principle of calculating the expression of the ray in the robot coordinate system is explained:

[0151] Assume that the camera's extrinsic matrix is in and They represent the rotation matrix and translation matrix from the camera coordinate system to the robot coordinate system respectively;

[0152] As mentioned above, the expression of ray OA in the camera coordinate system is And it is known that the camera coordinate system to the robot coordinate system satisfies the following transformation relationship: Among them, p c represents the coordinates of the line in the camera coordinate system, p r Represents the coordinates in the linear robot coordinate system.

[0153] Then, the expression of ray OA in the camera coordinate system and the extrinsic matrix corresponding to the camera extrinsic parameters can be substituted into the transformation relationship from the camera coordinate system to the robot coordinate system, thereby calculating the expression of ray OA in the robot coordinate system:

[0154] Similarly, the expressions of rays OB, OC, and OD in the robot coordinate system can also be calculated.

[0155] The above step 9041a_2 is Figure 6 Specific refinement of 6041a_2 shown.

[0156] Step 9041a_3: For each of the four corner points of the rectangular area surrounding the door in the current indoor image, determine the expression of the ray from the optical center of the camera to the corner point in the world coordinate system based on the expression of the ray from the optical center of the camera to the corner point in the robot coordinate system and the current position of the robot.

[0157] The above steps 9041a_1 to 9041a_3 are Figure 5 A specific refinement of step 5041a is shown.

[0158] Step 9041b: determine the three-dimensional space range defined by the expression of the rays from the camera optical center to the four corner points in the world coordinate system as the three-dimensional projection range of the door in the world coordinate system.

[0159] The above steps 9041a to 9041b are Figure 3 The specific refinement of step 3041 is shown.

[0160] Step 9042: Determine the two-dimensional projection range of the door in the indoor map according to the three-dimensional projection range of the door in the world coordinate system;

[0161] Step 9043: Determine the suspected position of the door in the indoor map according to the two-dimensional projection range of the door in the indoor map.

[0162] The above steps 9041a to 9043 are Figure 1 The specific refinement of step 104 is shown.

[0163] Step 905: According to the confidence of the door included in the door information and the suspected position of the door in the indoor map, search and maintain the location information of the door in the location information set of the recorded door.

[0164] from Fig. 9 It can be seen from the method shown that in this embodiment, when determining the suspected position of the door in the indoor map, the expression of the ray in the camera coordinate system from the optical center of the camera to each of the four corner points of the rectangular area surrounding the door is first determined in sequence (this expression is calculated by substituting the expression of the ray in the camera coordinate system and the extrinsic matrix corresponding to the camera extrinsic parameter into the conversion relationship from the camera coordinate system to the robot coordinate system), the expression in the robot coordinate system, and the expression in the world coordinate system, and the three-dimensional space range defined by the expression of these four rays in the world coordinate system is determined as the three-dimensional projection range of the door in the world coordinate system, and then the two-dimensional projection range of the door in the indoor map is determined, and finally the suspected position of the door is determined in combination with the indoor map. Applying the method provided in this embodiment, the same or different doors can be continuously identified during the movement of the robot, and the positioning optimization of the door can be achieved with high accuracy; and it is realized by only using a monocular camera, and the cost is low.

[0165] See also Fig.10 , Fig.10 is a flow chart of a method for identifying and locating a door provided in Embodiment 8 of the present invention. Fig.10 As shown, the method comprises the following steps:

[0166] Step 1001: Use the camera configured on the robot to collect indoor images;

[0167] In this embodiment, the camera has already been calibrated with camera intrinsic parameters and camera extrinsic parameters in advance.

[0168] Step 1002: Perform image recognition on the current indoor image to obtain an image recognition result:

[0169] In this embodiment, the image recognition result includes the recognized door information; the door information includes the location information of the door and the confidence of the door; the location information of the door includes the coordinates of four corner points of a rectangular area surrounding the door in the current indoor image.

[0170] Step 1003: When the image recognition result contains the door information recognized, perform the following steps 10041a_1 to 1005:

[0171] Step 10041a_1: for each of the four corner points of the rectangular area surrounding the door in the current indoor image, determine the expression of the ray from the optical center of the camera to the direction of the corner point in the camera coordinate system according to the coordinates of the corner point and the camera intrinsic parameters;

[0172] Step 10041a_2: for each of the four corner points of the rectangular area surrounding the door in the current indoor image, determine the expression of the ray from the camera optical center to the corner point in the robot coordinate system according to the expression of the ray from the camera optical center to the corner point in the camera coordinate system and the camera extrinsic parameter;

[0173] Step 10041a_31, determining the transformation matrix from the robot coordinate system to the world coordinate system according to the current posture of the robot;

[0174] In this embodiment, the current position and posture of the robot can be determined according to an existing method for determining the position and posture of the robot. For example, the current position of the robot can be determined using SLAM technology.

[0175] In this embodiment, the transformation matrix between the robot coordinate system and the world coordinate system can be determined according to the current posture of the robot. The transformation matrix is ​​expressed as follows: in, and They represent the rotation matrix and translation matrix from the robot coordinate system to the world coordinate system respectively.

[0176] Step 10041a_32: for each of the four corner points of the rectangular area surrounding the door in the current indoor image, substitute the expression of the ray from the optical center of the camera to the direction of the corner point in the robot coordinate system and the transformation matrix from the robot coordinate system to the world coordinate system into the transformation relationship from the robot coordinate system to the world coordinate system to obtain the expression of the ray from the optical center of the camera to the direction of the corner point in the world coordinate system.

[0177] The following Figure 8 Taking the ray from the camera optical center O to the corner point a (ie OA / Oa) as an example, the principle of calculating the expression of the ray in the world coordinate system is explained:

[0178] As mentioned above, the transformation matrix from the robot coordinate system to the world coordinate system is

[0179] Since the expression of ray OA in the robot coordinate system is And it is known that the robot coordinate system to the world coordinate system satisfies the following transformation relationship: Among them, p w Represents the coordinates of the line in the world coordinate system, p r Represents the coordinates of the line in the robot coordinate system.

[0180] Then the expression of ray OA in the robot coordinate system and the transformation matrix from the robot coordinate system to the world coordinate system can be substituted into the transformation relationship from the robot coordinate system to the world coordinate system, thereby obtaining the expression of ray OA in the world coordinate system:

[0181] The above steps 10041a_31 to 10041a_32 are Figure 6 The specific refinement of step 6041a_3 is shown.

[0182] The above steps 10041a_1 to 10041a_32 are Figure 5 A specific refinement of step 5041a is shown.

[0183] Step 10041b: determine the three-dimensional space range defined by the expression of the rays from the camera optical center to the four corner points in the world coordinate system as the three-dimensional projection range of the door in the world coordinate system.

[0184] The above steps 10041a to 10041b are Figure 3 The specific refinement of step 3041 is shown.

[0185] Step 10042: Determine the two-dimensional projection range of the door in the indoor map according to the three-dimensional projection range of the door in the world coordinate system;

[0186] Step 10043: Determine the suspected position of the door in the indoor map according to the two-dimensional projection range of the door in the indoor map.

[0187] The above steps 10041a to 10043 are Figure 1 The specific refinement of step 104 is shown.

[0188] Step 1005: search and maintain the location information of the door in a set of recorded door location information according to the confidence of the door included in the door information and the suspected location of the door in the indoor map.

[0189] from Fig.10 It can be seen from the method shown that in this embodiment, when determining the suspected position of the door in the indoor map, the expressions of the rays from the optical center of the camera to each of the four corner points of the rectangular area surrounding the door in the camera coordinate system, the robot coordinate system, and the world coordinate system are first determined in sequence (the expression of the ray in the robot coordinate system and the transformation matrix from the robot coordinate system to the world coordinate system are substituted into the transformation relationship from the robot coordinate system to the world coordinate system to calculate this expression), and the three-dimensional space range defined by the expressions of the four rays in the world coordinate system is determined as the three-dimensional projection range of the door in the world coordinate system, and then the two-dimensional projection range of the door in the indoor map is determined, and finally the suspected position of the door is determined in combination with the indoor map. By applying the method provided in this embodiment, the same or different doors can be continuously identified during the movement of the robot, and the positioning optimization of the door can be achieved with high accuracy; and it is realized by only using a monocular camera, and the cost is low.

[0190] See also Fig.11 , Fig.11 is a flow chart of a method for identifying and locating a door provided in Embodiment 9 of the present invention. Fig.11 As shown, the method comprises the following steps:

[0191] Step 1101: Use the camera configured on the robot to collect indoor images;

[0192] Step 1102: Perform image recognition on the current indoor image to obtain an image recognition result:

[0193] In this embodiment, the image recognition result includes the recognized door information; the door information includes the location information of the door and the confidence of the door; the location information of the door includes the coordinates of four corner points of a rectangular area surrounding the door in the current indoor image.

[0194] Step 1103: When the image recognition result contains the door information, perform the following steps 11041a to 1105:

[0195] Step 11041a: for each of the four corner points of the rectangular area surrounding the door in the current indoor image, determine the expression of the ray from the optical center of the camera to the direction of the corner point in the world coordinate system according to the coordinates of the corner point, the camera parameters, and the current position and posture of the robot;

[0196] The camera optical center is the origin of the camera coordinate system.

[0197] Step 11041b: determine the three-dimensional spatial range defined by the expression of the rays from the camera optical center to the four corner points in the world coordinate system as the three-dimensional projection range of the door in the world coordinate system.

[0198] The above steps 11041a to 11041b are Figure 3 The specific refinement of step 3041 is shown.

[0199] Step 11042a: for the expression of the ray from the optical center of the camera to each of the four corner points in the world coordinate system, set the variable value of the dimension that does not belong to the indoor map in the expression to 0, and obtain the expression of the two-dimensional projection ray of the ray from the optical center of the camera to the direction of the corner point on the indoor map;

[0200] by Figure 8 As an example, as mentioned earlier, the expression of ray OA in the world coordinate system is Assuming that the indoor map is the xy plane of the world coordinate system (that is, dimension z does not belong to the dimension of the indoor map), we can convert z″ A Set it to 0 and solve for x″ A and y″ A The expression of , that is, the expression of the two-dimensional projection ray of ray OA on the indoor map.

[0201] Similarly, the expressions of the two-dimensional projection rays of rays OB, OC, and OD on the indoor map can also be obtained.

[0202] According to the expressions of the two-dimensional projection rays of rays OA, OB, OC, and OD on the indoor map, the positions of the four two-dimensional projection rays in the indoor map can be determined, which can be specifically as follows: Fig.12 The four two-dimensional projection rays shown in the figure are as follows, and the maximum angle between these four two-dimensional projection rays is Figure 8 The two-dimensional projection range of the door enclosed by the box abcd in the indoor map.

[0203] Step 11042b, determine the maximum angle of the two-dimensional projection rays, and determine the two-dimensional spatial range defined by the expression of the two two-dimensional projection rays constituting the maximum angle as the two-dimensional projection range of the door in the indoor map.

[0204] The above steps 11042a to 11042b are Figure 3 Specific refinement of 3042 is shown.

[0205] Step 11043: Determine the suspected position of the door in the indoor map according to the two-dimensional projection range of the door in the indoor map.

[0206] The above steps 11041a to 11043 are Figure 1 The specific refinement of step 104 is shown.

[0207] Step 1105: search and maintain the location information of the door in a set of recorded door location information according to the confidence of the door included in the door information and the suspected location of the door in the indoor map.

[0208] from Fig.11 It can be seen from the method shown that in this embodiment, when determining the suspected position of the door in the indoor map, the expression of the ray from the optical center of the camera to each of the four corner points of the rectangular area surrounding the door in the world coordinate system is first determined, and the three-dimensional space range defined by the expression of the four rays in the world coordinate system is determined as the three-dimensional projection range of the door in the world coordinate system; then the dimension variables that do not belong to the indoor map in the expression of the ray from the optical center of the camera to each of the four corner points of the rectangular area surrounding the door in the world coordinate system are set to 0, so as to obtain the two-dimensional projection ray of the ray in the indoor map, and the two-dimensional space range defined by the maximum angle of the four two-dimensional projection rays is determined as the two-dimensional projection range of the door in the indoor map; finally, the suspected position of the door is determined in combination with the indoor map. By applying the method provided in this embodiment, the same or different doors can be continuously identified during the movement of the robot, and the positioning optimization of the door can be achieved with high accuracy; and it is realized by only using a monocular camera, and the cost is low.

[0209] See also Fig.13 , Fig.13 is a flow chart of a method for identifying and locating a door provided in Embodiment 10 of the present invention. Fig.13 As shown, the method comprises the following steps:

[0210] Step 1301: Use the camera configured on the robot to collect indoor images;

[0211] Step 1302: Perform image recognition on the current indoor image to obtain an image recognition result:

[0212] In this embodiment, the image recognition result includes the recognized door information; the door information includes the location information of the door and the confidence of the door; the location information of the door includes the coordinates of four corner points of a rectangular area surrounding the door in the current indoor image.

[0213] Step 1303: When the image recognition result contains the door information recognized, perform the following steps 13041a to 1305:

[0214] Step 13041a: for each of the four corner points, determine the expression of the ray from the optical center of the camera to the direction of the corner point in the world coordinate system according to the coordinates of the corner point, the camera parameters, and the current posture of the robot;

[0215] The camera optical center is the origin of the camera coordinate system.

[0216] Step 13041b: determine the three-dimensional spatial range defined by the expression of the rays from the camera optical center to the four corner points in the world coordinate system as the three-dimensional projection range of the door in the world coordinate system.

[0217] The above steps 13041a to 13041b are Figure 3 The specific refinement of step 3041 is shown.

[0218] Step 13042a: for the expression of the ray from the optical center of the camera to each of the four corner points in the world coordinate system, set the variable value of the dimension that does not belong to the indoor map in the expression to 0, and obtain the expression of the two-dimensional projection ray of the ray from the optical center of the camera to the direction of the corner point on the indoor map;

[0219] Step 13042b, determine the maximum angle of the two-dimensional projection rays, and determine the two-dimensional spatial range defined by the expression of the two two-dimensional projection rays constituting the maximum angle as the two-dimensional projection range of the door in the indoor map.

[0220] In this embodiment, the indoor map is a grid map constructed based on the indoor layout, for example Fig.14 As shown, the indoor layout may specifically be the layout of the walls.

[0221] The above steps 13042a to 13042b are Figure 3 Specific refinement of 3042 is shown.

[0222] Step 13043a: for each two-dimensional projection ray defining the two-dimensional projection range of the door in the indoor map, determine the first intersection point of the two-dimensional projection ray with the obstacle in the indoor map;

[0223] like Fig.15 As shown, the two-dimensional projection range defined by rays OP and OQ is the two-dimensional projection range of the door in the indoor map, the first intersection point of ray OP with the obstacle in the indoor map (the obstacle in the indoor map is usually a wall) is P, and the first intersection point of ray OQ with the obstacle in the indoor map is Q.

[0224] In practical applications, a door will never appear out of thin air in an open space. Therefore, the hole near the obstacle on the indoor map is more likely to be a door. The two-dimensional projection range of the door in the indoor map gives two rays that are very likely to "include" the door. Therefore, the first intersection between these two rays and the obstacle in the indoor map is most likely to be a door. For example Fig.15 There is a high possibility that there is a gate between the two points PQ.

[0225] It should be noted that the holes near obstacles on the indoor map are more likely to be doors, but they may not be doors, for example Fig.16 As shown in the figure, the positions marked by the two ellipses are also holes with obstacles on both sides. However, there is no door near this hole. It can be seen that the door determined by this feature alone may be wrong. For example, in patents "CN110141164A" and "CN110554700A", only grid map features are used to locate the door, which may lead to the wrong door. Fig.16 The positions marked by the two ellipses are identified as doors. In the present invention, since image recognition is first performed on the current indoor image, and operations such as determining the suspected position of the door are performed only when the door is identified, such misidentification can be effectively avoided, thereby improving the accuracy of identifying and locating the door.

[0226] Step 13043b: connect the two two-dimensional projection rays defining the two-dimensional projection range of the door in the indoor map with the first intersection point of the obstacle in the indoor map to obtain an intersection line, and remove the line segment portion where the obstacle exists on the intersection line.

[0227] like Fig.15 As shown, some line segments on the intersection line PQ overlap with obstacles. The line segments on the intersection line PQ that overlap with obstacles include line segments PP' and QQ'. After removing the line segments on the intersection line PQ that overlap with obstacles, the remaining line segments are P'Q'.

[0228] In practical applications, a door and an obstacle cannot occupy the same position, so there should be no overlapping parts. The intersection PQ is very likely to contain a door. Then, after removing the line segment part overlapping with the obstacle, the remaining line segment P'Q' may be the location of the door, that is, the suspected position.

[0229] Step 13043c: determine the coordinates of the two endpoints of the remaining line segment in the indoor map, and use the coordinates of the two endpoints to represent the suspected position of the door in the indoor map.

[0230] like Fig.15 As shown, the two endpoints of the remaining line segment P'Q' are P' and Q', and the coordinates of the point P' in the indoor map and the coordinates of the point Q' in the indoor map can be used to represent the suspected position of the door in the indoor map.

[0231] The above steps 13041a to 13043c are Figure 1 The specific refinement of step 104 is shown.

[0232] Step 1305: According to the confidence of the door included in the door information and the suspected position of the door in the indoor map, search and maintain the location information of the door in the location information set of the recorded door.

[0233] from Fig.13 It can be seen from the method shown that in this embodiment, when determining the suspected position of the door in the indoor map, the expression of the ray from the camera optical center to each of the four corner points of the rectangular area surrounding the door in the world coordinate system is first determined, and the three-dimensional space range defined by the expression of the four rays in the world coordinate system is determined as the three-dimensional projection range of the door in the world coordinate system; then, the dimension variables that do not belong to the indoor map in the expression of the ray from the camera optical center to each of the four corner points of the rectangular area surrounding the door in the world coordinate system are set to 0, so as to obtain the two-dimensional projection ray of the ray in the indoor map, and the two-dimensional space range defined by the maximum angle of the four two-dimensional projection rays is determined as the two-dimensional projection range of the door in the indoor map; finally, the suspected position of the door is determined in combination with the two-dimensional projection range of the door in the indoor map and the specific indoor layout in the indoor map. By applying the method provided in this embodiment, the same or different doors can be continuously identified during the movement of the robot, and the positioning optimization of the door can be realized with high accuracy; and it is realized by only using a monocular camera, and the cost is low.

[0234] See also Fig.17 , Fig.17 is a flow chart of a method for identifying and locating a door provided in the eleventh embodiment of the present invention. Fig.17 As shown, the method comprises the following steps:

[0235] Step 1701: Use the camera configured on the robot to collect indoor images.

[0236] In this embodiment, the robot can use the configured camera to collect indoor images in real time during movement, and perform subsequent image recognition and door positioning operation steps on the collected indoor images.

[0237] In this embodiment, the camera may be a monocular camera, which has a relatively low configuration cost.

[0238] Step 1702: Perform image recognition on the current indoor image to obtain an image recognition result.

[0239] In this embodiment, the image recognition result includes recognized door information; wherein the door information includes location information of the door and confidence level of the door.

[0240] In this embodiment, image recognition is performed on the current indoor image to determine whether the current indoor image contains a door. When the current indoor image does not contain a door (that is, when the image recognition result does not contain the recognized door information), there is no need to perform subsequent door positioning operations, so the current indoor image can be directly discarded. When the current indoor image contains a door (that is, when the image recognition result contains the recognized door information), it is necessary to continue to perform subsequent door positioning operations.

[0241] Step 1703: When the image recognition result contains the door information, perform the following steps 1704 to 17055:

[0242] Step 1704: Determine the suspected position of the door in the indoor map according to the position information of the door, the camera parameters, and the current position of the robot included in the door information.

[0243] Step 17051: Determine the confidence of the suspected position of the door according to the confidence of the door included in the door information and the suspected position of the door in the indoor map;

[0244] Step 17052: Search the recorded door location information set for the recorded door location information whose indoor image matches the current indoor image;

[0245] In this embodiment, the recorded door positioning information includes at least: an indoor image, the recorded door position information, and the confidence level of the recorded door position information.

[0246] In this embodiment, after identifying a door in the current indoor image, when determining the suspected position of the door, the current indoor image can also be image matched with the indoor image contained in the recorded door positioning information to find the recorded door positioning information whose indoor image matches the current indoor image. The image matching method can adopt existing common image matching methods, such as MAD, SSDA, SATD, etc.

[0247] When the image matching is successful, it means that the same door is observed in the two indoor images (for example Fig.18In the case where the doors in the two indoor images shown in the figure are actually the same door, when the positioning information of the door is subsequently maintained, the confidence of the suspected position of the door can be compared with the confidence contained in the positioning information of the recorded door found through image matching, and the result with higher confidence can be saved. For example, if the confidence of the current door is 0.9, and the positioning information of the recorded door found contains a confidence of 0.8, then the result is saved (i.e., the current indoor image, the suspected position of the door, and the confidence of the suspected position of the door are used as the new positioning information of the recorded door, replacing the found positioning information of the recorded door).

[0248] When the image matching fails, it means that a new door is detected this time. You only need to add the current indoor image, the suspected position of the door and the confidence of the suspected position of the door as the new recorded door positioning information to the recorded door positioning information set.

[0249] In this way, the door positioning information set is continuously recorded with detection results with higher confidence, so as to obtain the positioning information of one or more doors with higher accuracy.

[0250] Step 17053: determine whether the location information of the recorded door that matches the indoor image with the current indoor image is found, if yes, execute step 17054, otherwise, execute step 17055;

[0251] Step 17054: compare the confidence of the suspected position of the door with the confidence of the recorded door position information in the found recorded door position information; if the former is greater than the latter, use the current indoor image, the suspected position of the door in the indoor map, and the confidence of the suspected position of the door as the door position information to replace the found recorded door position information; otherwise, keep the recorded door position information set unchanged;

[0252] Step 17055: Add the current indoor image, the suspected position of the door in the indoor map, and the confidence of the suspected position of the door as the positioning information of the door to the set of recorded door positioning information.

[0253] The above steps 17051 to 17055 are Figure 1 The specific refinement of step 105 is shown.

[0254] from Fig.17It can be seen from the method shown that in this embodiment, the camera configured on the robot is used to collect indoor images, and the current indoor image is recognized. When the door information is recognized in the indoor image, the suspected position of the door in the indoor map is first determined based on the position information of the door in the current indoor image, the camera parameters, and the current posture of the robot, and then the confidence of the suspected position of the door is determined based on the confidence of the door included in the door information, so as to search and update the positioning information of the door in the set of recorded door positioning information based on the confidence of the suspected position of the door and the current indoor image. By applying the method provided in this embodiment, the robot can continuously identify the same or different doors during movement, and search and update the position information of the door in the set of recorded door positioning information, so that the suspected position of the door with the highest confidence is always stored in the recorded door positioning information, so the accuracy is high; and because only a monocular camera is needed to realize the positioning of the door in the indoor map, the cost is low.

[0255] See also Fig.19 , Fig.19 is a flow chart of a method for identifying and locating a door provided in Embodiment 12 of the present invention. Fig.19 As shown, the method comprises the following steps:

[0256] Step 1901: Use the camera configured on the robot to collect indoor images.

[0257] In this embodiment, the robot can use the configured camera to collect indoor images in real time during movement, and perform subsequent image recognition and door positioning operation steps on the collected indoor images.

[0258] In this embodiment, the camera may be a monocular camera, which has a relatively low configuration cost.

[0259] Step 1902: Perform image recognition on the current indoor image to obtain an image recognition result.

[0260] In this embodiment, the image recognition result includes recognized door information; wherein the door information includes location information of the door and confidence level of the door.

[0261] In this embodiment, image recognition is performed on the current indoor image to determine whether the current indoor image contains a door. When the current indoor image does not contain a door (that is, when the image recognition result does not contain the recognized door information), there is no need to perform subsequent door positioning operations, so the current indoor image can be directly discarded. When the current indoor image contains a door (that is, when the image recognition result contains the recognized door information), it is necessary to continue to perform subsequent door positioning operations.

[0262] Step 1903: When the image recognition result contains the door information recognized, perform the following steps 1904 to 1905:

[0263] Step 1904: Determine the suspected position of the door in the indoor map according to the position information of the door, the camera parameters, and the current position of the robot included in the door information.

[0264] In this embodiment, the suspected position of the door in the indoor map includes the coordinates of two endpoints of the line segment indicating the door, such as the coordinates of the two endpoints P' and Q' of the line segment P'Q' in the indoor map.

[0265] Step 19051a, calculate the distance between the two endpoints of the suspected position of the door in the indoor map, and calculate the ratio of the distance to the preset distance.

[0266] In practical applications, the width of an indoor door is usually a fixed value, and the distance occupied by the corresponding position in the indoor map scaled at a certain ratio is also a relatively fixed distance value. In this embodiment, the preset distance can be set to the above distance value. If the distance between the two endpoints of the suspected position of the door in the indoor map deviates too much from the preset distance, the confidence of the suspected position will be relatively low.

[0267] To this end, in the present application, the ratio of the distance between the two endpoints of the suspected position of the door in the indoor map to the preset distance can be calculated, and this ratio can be used as a measure of the confidence of the suspected position of the door.

[0268] Step 19051b, performing weighted calculation on the confidence of the door and the ratio, and using the weighted calculation result as the confidence of the suspected position of the door;

[0269] In this embodiment, the confidence of the door is used as another measure of the confidence of the suspected position of the door.

[0270] In this embodiment, a weighted calculation may be performed on the confidence of the door and the ratio, and the weighted calculation result may be used as the confidence of the suspected position of the door.

[0271] by Fig.15 Taking the suspected position of the door represented by the line segment P'Q' in as an example, the specific weighted calculation formula for calculating the confidence of the suspected position of this door can be as follows:

[0272] Conf(P′Q′)=λ1Conf(det)+λ2Ratio(P′Q′);

[0273] Among them, Conf(P′Q′) represents the confidence of the suspected position of this door; λ1 and λ2 are weight coefficients; Conf(det) represents the confidence of this door, which is determined during the image recognition process in step 1902; Ratio(P′Q′) is the ratio of the distance between the two endpoints of the suspected position of the door in the indoor map calculated in step 19051a to the preset distance.

[0274] The above steps 19051a to 19051b are Fig.17 The specific refinement of step 17051 is shown.

[0275] Step 19052: Search the recorded door location information set for the recorded door location information whose indoor image matches the current indoor image;

[0276] In this embodiment, the recorded door location information includes at least: an indoor image, the recorded door location information, and the confidence level of the recorded door location information;

[0277] Step 19053: determine whether the location information of the recorded door that matches the indoor image with the current indoor image is found, if yes, execute step 19054, otherwise, execute step 19055;

[0278] Step 19054: compare the confidence of the suspected position of the door with the confidence of the recorded door position information in the found recorded door position information; if the former is greater than the latter, use the current indoor image, the suspected position of the door in the indoor map, and the confidence of the suspected position of the door as the door position information to replace the found recorded door position information; otherwise, keep the recorded door position information set unchanged;

[0279] Step 19055: Add the current indoor image, the suspected position of the door in the indoor map, and the confidence of the suspected position of the door as the positioning information of the door to the set of recorded door positioning information.

[0280] The above steps 19051a to 19055 are Figure 1 The specific refinement of step 105 is shown.

[0281] from Fig.19It can be seen from the method shown that in this embodiment, the camera configured on the robot is used to collect indoor images, and the current indoor image is recognized. When the door information is recognized in the indoor image, the suspected position of the door in the indoor map is first determined according to the position information of the door in the current indoor image, the camera parameters, and the current posture of the robot, and then the confidence of the door included in the door information and the ratio of the distance between the two endpoints of the suspected position of the door and the preset distance are used as measurement factors to calculate the confidence of the suspected position of the door, so as to search and update the positioning information of the door in the set of recorded door positioning information based on the confidence of the suspected position of the door and the current indoor image. By applying the method provided in this embodiment, the robot can continuously identify the same or different doors in the moving process, and search and update the position information of the door in the set of recorded door positioning information, so that the suspected position of the door with the highest confidence is always stored in the recorded door positioning information, so the accuracy is high; and because only a monocular camera is needed to realize the positioning of the door in the indoor map, the cost is low.

[0282] The above is a detailed description of the method for identifying and locating a door provided by an embodiment of the present invention. The embodiment of the present invention also provides a device for identifying and locating a door. Fig. 20 Provide detailed explanation.

[0283] See also Fig. 20 , Fig. 20 is a schematic diagram of the structure of the device for identifying and locating a door provided by an embodiment of the present invention, such as Fig. 20 As shown, the device includes: a processor 2001, and a non-transitory computer-readable storage medium 2002 connected to the processor 2001 via a bus;

[0284] The non-transitory computer-readable storage medium 2002 stores one or more computer programs that can be executed by the processor 2001; when the processor 2001 executes the one or more computer programs, the following steps are implemented:

[0285] Use the camera configured on the robot to collect indoor images;

[0286] Perform image recognition on the current indoor image to obtain an image recognition result;

[0287] When the image recognition result includes the recognized door information, the following operations are performed:

[0288] Determine a suspected position of the door in the indoor map according to the position information of the door, the camera parameters, and the current position of the robot included in the door information;

[0289] According to the confidence of the door included in the door information and the suspected position of the door in the indoor map, the positioning information of the door is searched and maintained in a set of recorded door positioning information.

[0290] Fig. 20 In the device shown,

[0291] The processor 2001 performs image recognition on the current indoor image, including:

[0292] Preprocessing the current indoor image; the preprocessing includes Gaussian filtering and de-distortion processing;

[0293] The door recognition model trained in advance using sample images with door location information annotated is used to perform image recognition on the current indoor image to obtain an image recognition result of the current indoor image.

[0294] Fig. 20 In the device shown,

[0295] The door location information includes: coordinates of four corner points of a rectangular area surrounding the door in the current indoor image;

[0296] The processor 2001 determines the suspected position of the door in the indoor map according to the position information of the door, the camera parameters, and the current position of the robot included in the door information, including:

[0297] Determine the three-dimensional projection range of the door in the world coordinate system according to the coordinates of the four corner points, the camera parameters, and the current position and posture of the robot;

[0298] Determine a two-dimensional projection range of the door in the indoor map according to the three-dimensional projection range of the door in the world coordinate system;

[0299] The suspected position of the door in the indoor map is determined according to the two-dimensional projection range of the door in the indoor map.

[0300] Fig. 20 In the device shown,

[0301] The processor 2001 determines the three-dimensional projection range of the door in the world coordinate system according to the coordinates of the four corner points, the camera parameters, and the current position and posture of the robot, including:

[0302] For each of the four corner points, determine an expression of a ray from the optical center of the camera to the direction of the corner point in a world coordinate system according to the coordinates of the corner point, the camera parameters, and the current posture of the robot;

[0303] The three-dimensional space range defined by the expressions of the rays from the camera optical center to the directions of the four corner points in the world coordinate system is determined as the three-dimensional projection range of the door in the world coordinate system.

[0304] Fig. 20 In the device shown,

[0305] The camera parameters include camera intrinsic parameters and camera extrinsic parameters;

[0306] The processor 2001 determines, according to the corner point coordinates, the camera parameters, and the current position and posture of the robot, an expression of a ray from the camera optical center to the corner point in the world coordinate system, including:

[0307] Determine the expression of the ray from the camera optical center to the corner point in the camera coordinate system according to the corner point coordinates and the camera intrinsic parameters;

[0308] Determine the expression of the ray from the optical center of the camera to the direction of the corner point in the robot coordinate system according to the expression of the ray from the optical center of the camera to the direction of the corner point in the camera coordinate system and the camera extrinsic parameter;

[0309] According to the expression of the ray from the optical center of the camera to the corner point in the robot coordinate system and the current position and posture of the robot, the expression of the ray from the optical center of the camera to the corner point in the world coordinate system is determined.

[0310] Fig. 20 In the device shown,

[0311] The processor 2001, when determining the expression of the ray from the camera optical center to the corner point in the camera coordinate system according to the corner point coordinates and the camera intrinsic parameters, is used to:

[0312] The coordinates of the corner point and the intrinsic parameter matrix corresponding to the camera intrinsic parameters are substituted into the camera imaging formula to obtain an expression of the ray from the camera optical center to the corner point in the camera coordinate system.

[0313] Fig. 20 In the device shown,

[0314] The processor 2001, when determining the expression of the ray from the optical center of the camera to the direction of the corner point in the robot coordinate system according to the expression of the ray from the optical center of the camera to the direction of the corner point in the camera coordinate system and the camera extrinsic parameter, is used to:

[0315] Substitute the expression of the ray from the camera optical center to the corner point in the camera coordinate system and the extrinsic parameter matrix corresponding to the camera extrinsic parameter into the transformation relationship from the camera coordinate system to the robot coordinate system to obtain the expression of the ray from the camera optical center to the corner point in the robot coordinate system.

[0316] Fig. 20 In the device shown,

[0317] The processor 2001 determines the expression of the ray from the optical center of the camera to the corner point in the world coordinate system according to the expression of the ray from the optical center of the camera to the corner point in the robot coordinate system and the current position and posture of the robot, including:

[0318] Determine the transformation matrix from the robot coordinate system to the world coordinate system according to the current posture of the robot;

[0319] Substitute the expression of the ray from the optical center of the camera to the corner point in the robot coordinate system and the transformation matrix from the robot coordinate system to the world coordinate system into the transformation relationship from the robot coordinate system to the world coordinate system to obtain the expression of the ray from the optical center of the camera to the corner point in the world coordinate system.

[0320] Fig. 20 In the device shown,

[0321] The processor 2001 determines the two-dimensional projection range of the door in the indoor map according to the three-dimensional projection range of the door in the world coordinate system, including:

[0322] For the expression of the ray from the optical center of the camera to each of the four corner points in the world coordinate system, the variable value of the dimension that does not belong to the indoor map in the expression is set to 0, and the expression of the two-dimensional projection ray of the ray from the optical center of the camera to the direction of the corner point on the indoor map is obtained;

[0323] The maximum angle of the two-dimensional projection rays is determined, and the two-dimensional space range defined by the expression of the two two-dimensional projection rays constituting the maximum angle is determined as the two-dimensional projection range of the door in the indoor map.

[0324] Fig. 20 In the device shown,

[0325] The indoor map is a grid map constructed based on the indoor layout;

[0326] The processor 2001 determines the suspected position of the door in the indoor map according to the two-dimensional projection range of the door in the indoor map, including:

[0327] For each two-dimensional projection ray defining the two-dimensional projection range of the door in the indoor map, determining a first intersection point of the two-dimensional projection ray with an obstacle in the indoor map;

[0328] Connecting two two-dimensional projection rays defining the two-dimensional projection range of the door in the indoor map with the first intersection point of the obstacle in the indoor map to obtain an intersection line, and removing the line segment portion on the intersection line that overlaps with the obstacle;

[0329] The coordinates of the two endpoints of the remaining line segment in the indoor map are determined, and the coordinates of the two endpoints are used to represent the suspected position of the door in the indoor map.

[0330] Fig. 20 In the device shown,

[0331] The recorded door location information includes: an indoor image, the recorded door location information, and the confidence of the recorded door location information;

[0332] The processor 2001 searches and maintains the location information of the door in a set of location information of recorded doors according to the confidence of the door included in the door information and the suspected location of the door in the indoor map, including:

[0333] Determining the confidence of the suspected position of the door according to the confidence of the door included in the door information and the suspected position of the door in the indoor map;

[0334] Searching for the recorded door positioning information of the recorded door whose indoor image matches the current indoor image in the recorded door positioning information set;

[0335] If the recorded door location information of the indoor image matching the current indoor image is found, the confidence of the suspected location of the door is compared with the confidence of the recorded door location information in the found recorded door location information. If the former is greater than the latter, the current indoor image, the suspected location of the door in the indoor map, and the confidence of the suspected location of the door are used as the door location information to replace the found recorded door location information. If the former is not greater than the latter, the recorded door location information set is kept unchanged.

[0336] If the location information of a recorded door whose indoor image matches the current indoor image is not found, the current indoor image, the suspected location of the door in the indoor map, and the confidence of the suspected location of the door are added as the location information of the door to the set of recorded door location information.

[0337] Fig. 20 In the device shown,

[0338] The suspected position of the door in the indoor map includes coordinates of two endpoints of a line segment indicating the door;

[0339] The processor 2001 determines the confidence of the suspected position of the door according to the confidence of the door included in the door information and the suspected position of the door in the indoor map, including:

[0340] Calculating the distance between two endpoints of the suspected position of the door in the indoor map, and calculating the ratio of the distance to a preset distance;

[0341] A weighted calculation is performed on the confidence of the door and the ratio, and the weighted calculation result is used as the confidence of the suspected position of the door.

[0342] The embodiment of the present invention further provides a non-transient computer-readable storage medium, wherein the non-transient computer-readable storage medium stores instructions, and when the instructions are executed by a processor, the processor executes the above-mentioned Figure 1-3 , steps in the method of identifying and locating a door as shown in any of Figures 5-7, 9-11, 13, 17, and 19.

[0343] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for identifying and locating a door, characterized in that: The method includes: Use the camera configured on the robot to collect indoor images; Perform image recognition on the current indoor image to obtain an image recognition result; When the image recognition result includes the recognized door information, the following operations are performed: Determine a suspected position of the door in the indoor map according to the position information of the door, the camera parameters, and the current position of the robot included in the door information; According to the confidence of the door included in the door information and the confidence of the suspected position of the door in the indoor map, searching and maintaining the location information of the door in the location information set of the recorded door; in, The confidence level of a suspected location is determined as follows: Calculating the distance between two endpoints of the suspected position of the door in the indoor map, and calculating the ratio of the distance to a preset distance; A weighted calculation is performed on the confidence of the door and the ratio, and the weighted calculation result is used as the confidence of the suspected position of the door.

2. The method according to claim 1, characterized in that The performing image recognition on the current indoor image includes: Preprocessing the current indoor image; the preprocessing includes Gaussian filtering and de-distortion processing; The door recognition model trained in advance using sample images with door location information annotated is used to perform image recognition on the current indoor image to obtain an image recognition result of the current indoor image.

3. The method according to claim 1, characterized in that The door location information includes: coordinates of four corner points of a rectangular area surrounding the door in the current indoor image; The determining, according to the position information of the door, the camera parameters, and the current position of the robot included in the door information, the suspected position of the door in the indoor map comprises: Determine the three-dimensional projection range of the door in the world coordinate system according to the coordinates of the four corner points, the camera parameters, and the current position and posture of the robot; Determine a two-dimensional projection range of the door in the indoor map according to the three-dimensional projection range of the door in the world coordinate system; The suspected position of the door in the indoor map is determined according to the two-dimensional projection range of the door in the indoor map.

4. The method according to claim 3, characterized in that Determining the three-dimensional projection range of the door in the world coordinate system according to the coordinates of the four corner points, the camera parameters, and the current position and posture of the robot includes: For each of the four corner points, determine an expression of a ray from the optical center of the camera to the direction of the corner point in a world coordinate system according to the coordinates of the corner point, the camera parameters, and the current posture of the robot; The three-dimensional space range defined by the expressions of the rays from the camera optical center to the directions of the four corner points in the world coordinate system is determined as the three-dimensional projection range of the door in the world coordinate system.

5. The method according to claim 4, characterized in that The camera parameters include camera intrinsic parameters and camera extrinsic parameters; Determining the expression of the ray from the camera optical center to the corner point in the world coordinate system according to the corner point coordinates, the camera parameters, and the current position and posture of the robot includes: Determine the expression of the ray from the camera optical center to the corner point in the camera coordinate system according to the corner point coordinates and the camera intrinsic parameters; Determine the expression of the ray from the optical center of the camera to the direction of the corner point in the robot coordinate system according to the expression of the ray from the optical center of the camera to the direction of the corner point in the camera coordinate system and the camera extrinsic parameters; According to the expression of the ray from the optical center of the camera to the corner point in the robot coordinate system and the current position and posture of the robot, the expression of the ray from the optical center of the camera to the corner point in the world coordinate system is determined.

6. The method according to claim 5, characterized in that The step of determining an expression of a ray from the camera optical center to the corner point in the camera coordinate system according to the corner point coordinates and the camera intrinsic parameters includes: The coordinates of the corner point and the intrinsic parameter matrix corresponding to the camera intrinsic parameters are substituted into the camera imaging formula to obtain an expression of the ray from the camera optical center to the corner point in the camera coordinate system.

7. The method according to claim 5, characterized in that The step of determining the expression of the ray from the optical center of the camera to the corner point in the robot coordinate system according to the expression of the ray from the optical center of the camera to the corner point in the camera coordinate system and the camera extrinsic parameter comprises: Substitute the expression of the ray from the camera optical center to the corner point in the camera coordinate system and the extrinsic parameter matrix corresponding to the camera extrinsic parameter into the transformation relationship from the camera coordinate system to the robot coordinate system to obtain the expression of the ray from the camera optical center to the corner point in the robot coordinate system.

8. The method according to claim 5, characterized in that The step of determining the expression of the ray from the optical center of the camera to the corner point in the world coordinate system according to the expression of the ray from the optical center of the camera to the corner point in the robot coordinate system and the current position and posture of the robot comprises: Determine the transformation matrix from the robot coordinate system to the world coordinate system according to the current posture of the robot; Substitute the expression of the ray from the optical center of the camera to the corner point in the robot coordinate system and the transformation matrix from the robot coordinate system to the world coordinate system into the transformation relationship from the robot coordinate system to the world coordinate system to obtain the expression of the ray from the optical center of the camera to the corner point in the world coordinate system.

9. The method according to claim 4, characterized in that Determining the two-dimensional projection range of the door in the indoor map according to the three-dimensional projection range of the door in the world coordinate system includes: For the expression of the ray from the optical center of the camera to each of the four corner points in the world coordinate system, the variable values ​​of the dimensions that do not belong to the indoor map in the expression are set to 0, and the expression of the two-dimensional projection ray of the ray from the optical center of the camera to the corner point in the indoor map is obtained; The maximum angle of the two-dimensional projection rays is determined, and the two-dimensional space range defined by the expression of the two two-dimensional projection rays constituting the maximum angle is determined as the two-dimensional projection range of the door in the indoor map.

10. The method according to claim 9, characterized in that The indoor map is a grid map constructed based on the indoor layout; The determining, according to the two-dimensional projection range of the door in the indoor map, the suspected position of the door in the indoor map comprises: For each two-dimensional projection ray defining the two-dimensional projection range of the door in the indoor map, determining a first intersection point of the two-dimensional projection ray with an obstacle in the indoor map; Connecting two two-dimensional projection rays defining the two-dimensional projection range of the door in the indoor map with the first intersection point of the obstacle in the indoor map to obtain an intersection line, and removing the line segment portion on the intersection line that overlaps with the obstacle; The coordinates of the two endpoints of the remaining line segment in the indoor map are determined, and the coordinates of the two endpoints are used to represent the suspected position of the door in the indoor map.

11. The method according to claim 1, characterized in that: The recorded door location information includes: an indoor image, the recorded door location information, and the confidence of the recorded door location information; The searching and maintaining the location information of the door in a set of location information of recorded doors according to the confidence of the door included in the door information and the confidence of the suspected location of the door in the indoor map comprises: Searching for the recorded door positioning information of the recorded door whose indoor image matches the current indoor image in the recorded door positioning information set; If the recorded door location information of the indoor image matching the current indoor image is found, the confidence of the suspected location of the door is compared with the confidence of the recorded door location information in the found recorded door location information. If the former is greater than the latter, the current indoor image, the suspected location of the door in the indoor map, and the confidence of the suspected location of the door are used as the door location information to replace the found recorded door location information. If the former is not greater than the latter, the recorded door location information set is kept unchanged. If the location information of a recorded door whose indoor image matches the current indoor image is not found, the current indoor image, the suspected location of the door in the indoor map, and the confidence of the suspected location of the door are added as the location information of the door to the set of recorded door location information.

12. The method according to claim 11, characterized in that The suspected position of the door in the indoor map includes coordinates of two endpoints of a line segment indicating the door.

13. A device for identifying and locating a door, characterized in that: The device includes: a processor, and a non-transitory computer-readable storage medium connected to the processor via a bus; The non-transitory computer-readable storage medium stores one or more computer programs executable by the processor; when the processor executes the one or more computer programs, the following steps are implemented: Use the camera configured on the robot to collect indoor images; Perform image recognition on the current indoor image to obtain an image recognition result; When the image recognition result includes the recognized door information, the following operations are performed: Determine a suspected position of the door in the indoor map according to the position information of the door, the camera parameters, and the current position of the robot included in the door information; According to the confidence of the door included in the door information and the confidence of the suspected position of the door in the indoor map, searching and maintaining the location information of the door in the location information set of the recorded door, in, The confidence level of a suspected location is determined as follows: Calculating the distance between two endpoints of the suspected position of the door in the indoor map, and calculating the ratio of the distance to a preset distance; A weighted calculation is performed on the confidence of the door and the ratio, and the weighted calculation result is used as the confidence of the suspected position of the door.

14. A non-transitory computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by a processor, the processor is caused to perform the steps in the method of identifying and locating a door as claimed in any one of claims 1 to 12.