Indoor robot positioning and navigation method based on multiple cameras and related equipment

Through multi-camera systems and prediction models, the precise positioning and navigation of indoor robots in complex environments is achieved, solving the problems of sensor dependence and poor dynamic target navigation in traditional technology, and improving the accuracy and flexibility of robot positioning and navigation.

CN118794438AInactive Publication Date: 2024-10-18SHENZHEN GANGSHAN GUANGLIANELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410771879.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-15
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional indoor robot positioning and navigation rely on too many sensors, resulting in high manufacturing costs and limited observation range. Single-view image positioning is not accurate in complex environments, especially for dynamic or occluded target navigation.

Method used

A multi-camera system is used to acquire the internal and external parameters of multiple cameras, collect scene images, determine the pixel coordinates of the robot and the target, calculate the three-dimensional coordinates based on the internal and external parameters, perform path planning, and use the prediction model to adjust the path to deal with dynamic targets.

Benefits of technology

It improves the accuracy and flexibility of indoor robot positioning and navigation, reduces the dependence on sensors, can predict the target position and adjust the running trajectory in real time, and enhances the navigation ability of dynamic or occluded targets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118794438A_ABST
    Figure CN118794438A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer vision, in particular to an indoor robot positioning and navigation method based on multiple cameras and related equipment. When an event target is observed at a first moment, internal and external parameters of N cameras in a target scene and a scene image set are acquired, pixel coordinates of an operation robot and the event target are determined based on the scene image set, and then a first world coordinate and a second world coordinate are determined by combining the internal and external parameters of the N cameras; performing path planning on the operation robot based on the first world coordinate, the second world coordinate and an indoor grid map, and if the current moment reaches a second moment and the event target is not observed, predicting a third world coordinate of the event target at the second moment based on a pre-constructed time coordinate motion model, according to the third world coordinate, the fourth world coordinate and the indoor grid map, the path planning is adjusted, and accurate positioning and navigation of the indoor robot can be conveniently achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer vision, and in particular to a multi-camera-based indoor robot positioning and navigation method and related equipment. Background Art

[0002] Indoor robots refer to robots designed to perform various tasks in indoor environments. Indoor robots can be used in a variety of scenarios, including homes, offices, shops, hospitals, etc. The development of indoor robots has brought many conveniences to people's lives and can help people complete various tasks in various scenarios, thereby improving the quality of life and work efficiency.

[0003] In indoor environments, robots need to be able to accurately perceive and understand the surrounding environment in order to perform tasks and avoid obstacles. To achieve this, indoor robots are usually equipped with various sensors, such as lidar, cameras, ultrasonic sensors, etc., to obtain environmental information and perform positioning and navigation. It can be seen that traditional indoor robot positioning and navigation mainly rely on the robot's own sensors. On the one hand, too many sensors increase the manufacturing cost of indoor robots. On the other hand, due to the size and position of the sensors themselves, the observation range is also greatly limited.

[0004] In recent years, vision-based positioning technology has gradually become a research hotspot. Single-view image positioning technology is usually used to identify and locate the two-dimensional coordinates of the robot in the image by training a specific detection model. However, due to the complexity of the living environment, the environment changes at any time and is affected by external influences and interference. There are blind spots in monitoring in a single view, and the accuracy of positioning and navigation will be affected. Summary of the invention

[0005] In order to facilitate the accurate positioning and navigation of indoor robots, the present application provides a multi-camera-based indoor robot positioning and navigation method and related equipment, which adopts the following technical solutions: In a first aspect, the present application provides an indoor robot positioning and navigation method based on multiple cameras, comprising: If the event target is observed at the first moment, the internal and external parameters of N cameras in the target scene are obtained, wherein N is an integer greater than or equal to 3, and the target scene is any scene in the indoor scene set; Capturing scene images of the target scene by means of the N cameras to obtain a scene image set corresponding to the indoor scene set; Determining pixel coordinates of the working robot and pixel coordinates of the event target based on the scene image set; Determine the first world coordinates of the working robot and the second world coordinates of the event target based on the pixel coordinates of the working robot, the pixel coordinates of the event target, and the internal and external parameters of the N cameras; Performing path planning for the working robot based on the first world coordinates of the working robot, the second world coordinates of the event target, and the indoor grid map corresponding to the indoor scene set, and sending the path planning to the working robot so that the working robot performs the work according to the path planning; If the current moment reaches the second moment, and the event target has not been observed or the working robot is in the prediction mode, the third world coordinates of the event target at the second moment are predicted based on the pre-built time coordinate motion model, the second moment is greater than the first moment, and the difference between the second moment and the first moment is a preset value; The path planning is adjusted according to the third world coordinates of the event target at the second moment, the fourth world coordinates of the working robot at the second moment and the indoor grid map, and the adjusted path planning is sent to the working robot so that the working robot performs the operation according to the adjusted path planning.

[0006] Optionally, determining the pixel coordinates of the working robot and the pixel coordinates of the event target based on the scene image set includes: Inputting the scene image set into a neural network detection model to detect the working robot and the event target, so as to obtain a bounding box of the working robot and a bounding box of the event target; Determining the pixel coordinates of the working robot according to the center coordinates of the enclosing frame of the working robot; The pixel coordinates of the event target are determined according to the central coordinates of the bounding box of the event target.

[0007] Optionally, determining the pixel coordinates of the working robot according to the center coordinates of the bounding box of the working robot includes: The pixel coordinates of the working robot are calculated by the following formula: Determining the pixel coordinates of the event target according to the center coordinates of the bounding box of the event target includes: The pixel coordinates of the event target are calculated using the following formula: Among them, the Box robot_i is the bounding box of the working robot, the Box object_i is the bounding box of the event target, is the pixel coordinate of the working robot, is the pixel coordinate of the event target.

[0008] Optionally, determining the first world coordinates of the working robot and the second world coordinates of the event target based on the pixel coordinates of the working robot, the pixel coordinates of the event target, and the internal and external parameters of the N cameras includes: Determine the intrinsic parameters of a first target camera, the extrinsic parameter rotation matrix of the first target camera, and the displacement vector of the first target camera according to the intrinsic and extrinsic parameters of the N cameras, wherein the first target camera is any one of the N cameras that observes the working robot; Determine a first world coordinate of the working robot based on the pixel coordinates of the working robot, the height of the working robot, the intrinsic parameters of the first target camera, the extrinsic parameter rotation matrix of the first target camera, and the displacement vector of the first target camera; Determine the intrinsic parameters of a second target camera, the extrinsic parameter rotation matrix of the second target camera, and the displacement vector of the second target camera according to the intrinsic and extrinsic parameters of the N cameras, wherein the second target camera is any one of the N cameras that observes the event target; The second world coordinates of the event target are determined based on the pixel coordinates of the event target, the intrinsic parameters of the second target camera, the extrinsic parameter rotation matrix of the second target camera, the displacement vector of the second target camera and the principle of minimizing reprojection error.

[0009] Optionally, determining the first world coordinates of the working robot based on the pixel coordinates of the working robot, the height of the working robot, the intrinsic parameters of the first target camera, the extrinsic rotation matrix of the first target camera, and the displacement vector of the first target camera includes: The first world coordinate of the working robot is calculated by the following formula: The first world coordinate of the working robot is calculated by the following formula: Among them, the is the first world coordinate, the is the world coordinate of the working robot in the imaging plane of the first target camera, is the pixel coordinate of the working robot in the imaging plane of the first target camera, and the R i1 is the external parameter rotation matrix of the first target camera, the K i1 is the internal parameter of the first target camera, the Ti1 is the displacement vector of the first target camera, is the actual world coordinate of the first target camera, the V object is the direction vector of the working robot relative to the first target camera, and the h robot is the height of the working robot, is the world coordinate of the working robot under the first target camera, and the n r is the number of the first target cameras; i=0, 1, ..., n-1.

[0010] Optionally, the determining the second world coordinates of the event target based on the pixel coordinates of the event target, the intrinsic parameters of the second target camera, the extrinsic parameter rotation matrix of the second target camera, the displacement vector of the second target camera, and the principle of minimizing reprojection error includes: The second world coordinates of the event target are calculated by the following formula: Among them, the is the second world coordinate, the R i2 is the external parameter rotation matrix of the second target camera, the K i2 is the internal parameter of the second target camera, the T i2 is the displacement vector of the second target camera, is the pixel coordinate of the event target, the n o is the number of the second target camera.

[0011] 1. Optionally, the predicting the third world coordinates of the event target at the second moment based on the pre-built time coordinate motion model includes: The third world coordinates of the event target at the second moment are calculated by the following formula: The third world coordinates of the event target at the second moment are calculated by the following formula: v k-1,k-1 =v k-2,k-2 ; Wherein, k=t, t+1, t+2, ...; is the third world coordinate, the Δ t is the expected prediction time interval, the K k is the weight, the P k,k is the oblique variance weight of the state transition at time k, and r kis the skew variance between the predicted position and the observed position, is the third world coordinate of the event target at the kth time, and v k-1,k-1 is the state transfer speed component coefficient, is the k-time state transition oblique variance weight speed coefficient, and q is the error component.

[0012] In a second aspect, the present application provides an indoor robot positioning and navigation device based on multiple cameras, comprising: A first acquisition module is used to acquire internal and external parameters of N cameras in a target scene if an event target is observed at a first moment, wherein N is an integer greater than or equal to 3, and the target scene is any scene in a set of indoor scenes; A second acquisition module, configured to acquire scene images of the target scene through the N cameras to obtain a scene image set corresponding to the indoor scene set; A first determination module, configured to determine the pixel coordinates of the working robot and the pixel coordinates of the event target based on the scene image set; A second determination module is used to determine the first world coordinates of the working robot and the second world coordinates of the event target based on the pixel coordinates of the working robot, the pixel coordinates of the event target, and the internal and external parameters of the N cameras; a first processing module is used to perform path planning for the working robot based on the first world coordinates of the working robot, the second world coordinates of the event target, and the indoor grid map corresponding to the indoor scene set, and send the path planning to the working robot so that the working robot performs the operation according to the path planning; A first prediction module, configured to predict the third world coordinates of the event target at the second moment based on a pre-constructed time coordinate motion model if the current moment reaches the second moment and the event target is not observed or the working robot is in a prediction mode, the second moment is greater than the first moment, and the difference between the second moment and the first moment is a preset value; The second processing module is used to adjust the path planning according to the third world coordinates of the event target at the second moment, the fourth world coordinates of the working robot at the second moment and the indoor grid map, and send the adjusted path planning to the working robot so that the working robot performs the operation according to the adjusted path planning.

[0013] In a third aspect, the present application provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned indoor robot positioning and navigation method based on multiple cameras when executing the computer program.

[0014] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-mentioned indoor robot positioning and navigation method based on multiple cameras.

[0015] In summary, it can be seen that in the embodiments provided by the present application, in order to ensure that the camera's field of view can cover the entire venue, at least N cameras are arranged in the target scene, and the target scene is any scene in the indoor scene set. When the event target is observed at the first moment, the internal and external parameters of the N cameras in the target scene are obtained, and the scene image of the target scene is collected by the N cameras to obtain a scene image set corresponding to the indoor scene set. Based on the scene image set, the pixel coordinates of the working robot and the pixel coordinates of the event target are first determined, and then the first world coordinates of the working robot and the second world coordinates of the event target are determined based on the pixel coordinates of the working robot, the pixel coordinates of the event target and the internal and external parameters of the N cameras. Then, based on the first world coordinates, the second world coordinates and the indoor grid map, the path planning of the working robot is performed, and the path planning is sent to the working robot, so that the working robot can move according to the path planning. If the current moment reaches the second moment, the event target is not observed or the working robot is in the prediction mode, in order to improve the accuracy of the working robot's positioning and navigation, the third world coordinates of the event target at the second moment are predicted based on the pre-built time coordinate motion model, and then the path planning is adjusted based on the third world coordinates and the fourth world coordinates of the working robot at the second moment and the indoor grid map, and the adjusted path planning is sent to the working robot, so that the working robot can work according to the adjusted path planning. Compared with the traditional technology that relies too much on sensors and has poor navigation effect on dynamic or occluded event targets, the solution in this application adopts multi-view image positioning technology, and when dealing with dynamic or event targets, it can predict the position of the event target in real time, and then adjust the robot's running trajectory in real time to achieve accurate positioning and navigation of indoor robots. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a virtual structural diagram of a multi-camera-based indoor robot positioning and navigation system provided in an embodiment of the present application; Figure 2 It is a principle block diagram of a multi-camera-based indoor robot positioning and navigation system provided in an embodiment of the present application; Figure 3 It is a flowchart of a multi-camera-based indoor robot positioning and navigation method provided in an embodiment of the present application; Figure 4 It is a virtual structural diagram of an indoor robot positioning and navigation device based on multiple cameras provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.

[0018] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0019] Reference Figure 1 , Figure 1 A virtual structural diagram of an indoor robot positioning and navigation system based on multiple cameras provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the system is connected to an image receiving device and a robot command receiving device respectively. The system includes camera and indoor environment modeling, target position detection, robot position detection, robot path planning, and target position dynamic tracking.

[0020] For the client, multiple cameras are planned to be used as image receiving devices. In order to improve the accuracy of system positioning and navigation, the number of cameras needs to ensure that any scene is observed by two cameras to obtain on-site pictures, detect and locate event targets (including but not limited to static objects to be stored, moving objects to be stored, moving pets, etc.) and working robots, determine the positions of event targets and working robots through multi-view cameras, and plan the robot target path through the basic indoor structure diagram. The position of the moving event target can be predicted 5 seconds later based on the Kalman filter, the robot's action path can be dynamically updated, and the robot's motion instructions can be updated in time. After receiving the command, the robot command receiving device instructs the robot to run according to the updated action path.

[0021] This application uses multiple cameras to shoot indoor environments from multiple angles to accurately locate event targets and accurately navigate operating robots, solving the problem that operating robot positioning relies on multiple sensors and has poor navigation effects on dynamic and obstructed targets. Figure 2 As shown, Figure 2 The principle block diagram of a multi-camera-based indoor robot positioning and navigation system provided in the embodiment of the present application divides the system into four parts, which are: The first part is environment initialization, camera calibration for multiple cameras, and obtaining the indoor grid map of the indoor environment.

[0022] In the second part, image processing is performed on the image acquired by the camera to obtain the two-dimensional pixel coordinates of the event target and the two-dimensional pixel coordinates of the working robot, and the working robot navigation is triggered. Then, the world coordinates of the event target and the world coordinates of the working robot are determined based on the internal and external parameters of the camera.

[0023] In the third part, based on the world coordinates of the event target, the world coordinates of the working robot and the indoor grid map, the working robot path is planned and instructions are issued to move the working robot.

[0024] The fourth part records the position of the event target in continuous frames and constructs a Kalman motion trajectory model. For example, it predicts the position of the event target 5 seconds after the current time, so that when the event target is hidden, the motion instructions of the working robot can be updated based on the predicted position of the event target.

[0025] The embodiment of the present application discloses a multi-camera-based indoor robot positioning and navigation method.

[0026] Reference Figure 3 , Figure 3 A schematic diagram of a flow chart of a multi-camera-based indoor robot positioning and navigation method provided in an embodiment of the present application, the method comprising the following steps: S10, if the event target is observed at the first moment, obtaining the internal and external parameters of N cameras in the target scene, where N is an integer greater than or equal to 3, and the target scene is any scene in the indoor scene set; Among them, event targets include but are not limited to static objects to be stored, moving objects to be stored, moving pets, etc., that is, event targets can be both static and dynamic. There are multiple scenes in the indoor environment, and multiple scenes constitute an indoor scene set. The target scene is any scene in the indoor scene set.

[0027] In order to ensure that the camera can cover the entire indoor environment, it is necessary to ensure that each scene is captured by at least two cameras, so at least three cameras are set in the target scene. When the event target appears at the first moment, the internal and external parameters of the N cameras in the target scene are obtained. It should be noted that the internal and external parameters of the N cameras can be used for camera calibration to ensure the accuracy of subsequent processing.

[0028] S20, collecting scene images of the target scene through N cameras to obtain a scene image set corresponding to the indoor scene set; Among them, collecting the scene image set requires using N cameras to shoot the target scene at the same time. It should be noted that in order to improve the accuracy of the data, it is necessary to ensure that the N cameras can shoot at the same time to obtain the scene image at the same time. External equipment or software can be used to ensure the synchronous shooting of the cameras to avoid the time difference between images. During the shooting process, multiple acquisitions can be performed as needed (that is, continuous frame recording) to ensure that sufficient scene images are obtained.

[0029] In one embodiment, the images captured by each camera can be organized and marked for subsequent processing and analysis. For example, information such as a timestamp and camera number can be added to each image to facilitate subsequent association and comparison of the images, and image correction can be performed using internal and external parameters obtained from camera calibration to correct the captured scene images to eliminate effects such as camera distortion.

[0030] S30, determining the pixel coordinates of the working robot and the pixel coordinates of the event target based on the scene image set; Among them, a scene image set corresponding to the indoor scene set is obtained, and then the pixel coordinates of the working robot and the pixel coordinates of the working robot are obtained based on each scene image in the scene image set. For the convenience of explanation, the steps of obtaining the pixel step are described below: Inputting the scene image set into the neural network detection model to detect the working robot and the event target, so as to obtain the bounding box of the working robot and the bounding box of the event target; Determine the pixel coordinates of the working robot according to the center coordinates of the bounding box of the working robot; The pixel coordinates of the event target are determined based on the center coordinates of the event target's bounding box.

[0031] In this embodiment, Box robot_i , Box object_i =M det (I i ); First, we need to prepare the model and use the trained neural network to detect the model M det, the image obtained by each camera (that is, the scene image set I i ) into the neural network detection model M det Once the model detects the working robot or event target in the image, it will generate the corresponding bounding box (that is, the bounding box Box of the working robot). robot_i , and the bounding box Box of the event target object_i ), indicating the location of the detected object.

[0032] In one embodiment, the real-time image stream captured by each camera is processed. This may involve converting the image into a format acceptable to the model and performing necessary preprocessing, such as resizing, color space conversion, etc. In order to improve processing efficiency, it is possible to consider parallelizing the image detection process. This means that multiple images can be input into the model at the same time to perform detection operations simultaneously.

[0033] Detect the bounding box of the working robot robot_i , and the bounding box Box of the event target object_i After that, it is necessary to determine the pixel coordinates of the working robot and the pixel coordinates of the event target, according to the bounding box Box of the working robot robot_i The center coordinates of the working robot are determined by the pixel coordinates According to the bounding box Box of the event target object_i The center coordinates of the event target are determined by the pixel coordinates of For ease of understanding, the pixel coordinates of the working robot are as follows: and the pixel coordinates of the event target The calculation is explained as follows: In one embodiment, determining the pixel coordinates of the working robot according to the center coordinates of the bounding box of the working robot includes: The pixel coordinates of the working robot are calculated using the following formula: Determining the pixel coordinates of the event target according to the center coordinates of the bounding box of the event target includes: The pixel coordinates of the event target are calculated using the following formula: Among them, Box robot_i Box is the bounding box of the working robot. object_i is the bounding box of the event target, is the pixel coordinate of the working robot, The pixel coordinates of the event target.

[0034] S40, determining the first world coordinates of the working robot and the second world coordinates of the event target based on the pixel coordinates of the working robot, the pixel coordinates of the event target, and the internal and external parameters of the N cameras; Among them, determining the first world coordinates of the working robot and the second world coordinates of the event target requires combining the pixel coordinates of the working robot, the pixel coordinates of the event target, and the internal and external parameters of N cameras. According to the internal and external parameters of each camera, the pixel coordinates of the working robot and the event target in the scene image taken by each camera are converted into normalized plane coordinates or coordinates in the camera coordinate system. Using multi-view geometric relationships, the normalized plane coordinates of the working robot and the event target in different camera images or the coordinates in the camera coordinate system are combined to perform three-dimensional reconstruction to obtain the three-dimensional coordinates of the working robot and the event target. The three-dimensional coordinates of the working robot and the event target are converted from the camera coordinate system to the world coordinate system, and the external parameters (translation vector and rotation matrix) of each camera are used for coordinate conversion. For the sake of distinction, the world coordinates of the working robot are referred to as the first world coordinates, and the world coordinates of the event target are referred to as the second world coordinates. For ease of understanding, the calculation process of the first world coordinates and the second world coordinates is explained below: Determine the intrinsic parameters of the first target camera, the extrinsic parameter rotation matrix of the first target camera, and the displacement vector of the first target camera according to the intrinsic and extrinsic parameters of the N cameras, wherein the first target camera is any one of the N cameras that observes the working robot; Determine the first world coordinates of the working robot based on the pixel coordinates of the working robot, the height of the working robot, the intrinsic parameters of the first target camera, the extrinsic parameter rotation matrix of the first target camera, and the displacement vector of the first target camera; Determine the internal parameters of the second target camera, the external parameter rotation matrix of the second target camera, and the displacement vector of the second target camera according to the internal and external parameters of the N cameras, wherein the second target camera is any one of the N cameras that observes the event target; The second world coordinates of the event target are determined based on the pixel coordinates of the event target, the intrinsic parameters of the second target camera, the extrinsic rotation matrix of the second target camera, the displacement vector of the second target camera and the principle of minimizing reprojection error.

[0035] In this embodiment, for ease of understanding, the first target camera is defined as any one of the N cameras that observes the working robot, and the second target camera is defined as any one of the N cameras that observes the event target. It should be noted that if the current camera simultaneously captures the working robot and the event target, the current camera can be either the first target camera or the second target camera.

[0036] It is necessary to determine the first world coordinates. First, for any first target camera that observes the working robot, we can use camera calibration technology to determine the internal and external parameters of the first target camera. The internal and external parameters of the first target camera include but are not limited to internal parameters (in one embodiment, the internal parameters include the focal length, principal point position, distortion parameters and other internal parameters of the first target camera), external parameter rotation matrix and displacement vector, etc. Then, the pixel coordinates can be converted into three-dimensional coordinates in the camera coordinate system using the pixel coordinates of the working robot, the height of the working robot, the internal parameters of the first target camera, the external parameter rotation matrix of the first target camera and the displacement vector of the first target camera. Then, the three-dimensional coordinates in the camera coordinate system are converted into coordinates in the world coordinate system using the external parameters of the first target camera (external parameter rotation matrix and displacement vector, etc.) to obtain the first world coordinates of the working robot.

[0037] It is necessary to determine the second world coordinates. First, for any two second target cameras that observe the event target, we can use camera calibration technology to determine the internal and external parameters of the second target camera. The internal and external parameters of the second target camera include but are not limited to internal parameters (in one embodiment, the internal parameters include the focal length, principal point position, distortion parameters and other internal parameters of the second target camera), external parameter rotation matrix and displacement vector, etc. Then, according to the internal and external parameters of N cameras, the internal parameters of the second target camera, the external parameter rotation matrix of the second target camera and the displacement vector of the second target camera are determined. The pixel coordinates of the event target, the internal parameters of the second target camera, the external parameter rotation matrix of the second target camera, the displacement vector of the second target camera and the principle of minimizing the reprojection error are used to determine the second world coordinates of the event target. For ease of understanding, the calculation of the first world coordinates and the second world coordinates is described below: First, calculate the first world coordinates of the working robot using the following formula: in, is the first world coordinate, is the world coordinate of the working robot in the imaging plane of the first target camera, is the pixel coordinate of the working robot in the imaging plane of the first target camera, R i1 is the external parameter rotation matrix of the first target camera, K i1 is the internal parameter of the first target camera, T i1 is the displacement vector of the first target camera, is the actual world coordinate of the first target camera, V object is the direction vector of the working robot relative to the first target camera, h robot is the height of the operating robot, is the world coordinate of the operating robot under the first target camera, nr is the number of the first target camera; i=0, 1,…, n-1.

[0038] Second, calculate the second world coordinates of the event target using the following formula: in, is the second world coordinate, R i2 is the external parameter rotation matrix of the second target camera, K i2 is the internal parameter of the second target camera, T i2 is the displacement vector of the second target camera, is the pixel coordinate of the event target, n o is the number of the second target camera.

[0039] S50, performing path planning for the working robot based on the first world coordinates of the working robot, the second world coordinates of the event target, and the indoor grid map corresponding to the indoor scene set, and sending the path planning to the working robot, so that the working robot performs the work according to the path planning; Among them, path planning is performed based on the first world coordinates, the second world coordinates and the indoor grid map. It should be noted that the path planning method can be any method in the prior art and is not limited here. Specifically, first ensure that the first world coordinates of the working robot and the second world coordinates of the event target are in the same coordinate system and can be accurately represented in the indoor grid map. Select a path search algorithm suitable for the indoor environment, such as the A algorithm, the Dijkstra algorithm or the RRT algorithm. These algorithms can find an optimal or approximately optimal path based on the indoor grid map information and the starting point and target point of the working robot. Use the selected path search algorithm to calculate the path from the current position of the working robot to the event target on the indoor grid map, and send the generated path information to the working robot in a suitable format, such as in the form of a coordinate point sequence or a navigation instruction. After receiving the path planning, the working robot performs corresponding navigation actions according to the received path information and goes to the target position to perform operations. For ease of understanding, the A algorithm, the Dijkstra algorithm or the RRT algorithm are described below: The A algorithm is a heuristic search algorithm that is often used for path planning. It searches on the map and evaluates the value of the node according to the heuristic function to find the best path from the starting point to the target point. In indoor grid maps, the A algorithm can quickly find the shortest path.

[0040] The Dijkstra algorithm is also a commonly used path planning algorithm. It can find the shortest path from the starting point to all other nodes. In an indoor grid map, the Dijkstra algorithm can be used to find the shortest path from the robot's current position to all other positions, and then select the corresponding path according to the target position.

[0041] Depth-first search (DFS) and breadth-first search (BFS) are basic graph search algorithms that can be used to search for paths in a graph. In indoor grid maps, DFS and BFS can be used to search all possible paths, but they may not necessarily find the shortest path.

[0042] The RRT (Rapidly-exploring Random Tree) algorithm is a path planning algorithm used in non-convex environments. It searches for paths by random sampling and rapidly expanding trees. In indoor environments, the RRT algorithm can be used to handle complex obstacles and dynamic environments.

[0043] S60, if the current moment reaches the second moment, and the event target is not observed or the working robot is in the prediction mode, predicting the third world coordinates of the event target at the second moment based on the pre-constructed time coordinate motion model, the second moment is greater than the first moment, and the difference between the second moment and the first moment is a preset value; Among them, if the first moment is t and the second moment is t+preset value, when the time reaches the second moment, two situations may occur. In situation 1, the event target is not blocked, that is, the trajectory of the event target can be captured in real time, then steps S10 to S50 are repeated; in situation 2, the event target is not observed or the robot is in prediction mode, then the third world coordinates of the event target at the second moment are predicted based on the pre-constructed time coordinate motion model. It should be noted that the third world coordinates are predicted world coordinates.

[0044] According to the second world coordinates of the event target recorded in the past events, the initial values ​​of the Kalman filter algorithm can be set as P t+10,t+10 =1, Where is the image acquisition interval, the event coordinate motion model is constructed, and the Kalman filter is used to predict the event target position. The specific calculation formula is as follows: The third world coordinates of the event target at the second moment are calculated using the following formula: v k-1,k-1 =v k-2,k-2 ; Wherein, k = t, t+1, t+2, ...; is the third world coordinate, Δt is the expected prediction time interval, K k is the weight, P k,k is the oblique variance weight of the state transition at time k, r k is the skew variance between the predicted position and the observed position, is the third world coordinate of the event target at the kth time, v k-1,k-1 is the state transfer velocity component coefficient, is the k-time state transition oblique variance weight speed coefficient, and q is the error component.

[0045] It should be noted that when the predictive instruction mode is not set, Δt is the image frame interval time. When the predictive instruction mode (prediction mode) is set, Δt is the expected prediction time interval (such as 5s). Finally, the above formula can be used to predict the world coordinate position of the event target. The position after Δt (such as 5s) is output based on the current position of the event target predicted by the Kalman filter when it is invisible or in the prediction mode, and the process goes to step S50 to further navigate the working robot.

[0046] S70, adjusting the path planning according to the third world coordinates of the event target at the second moment, the fourth world coordinates of the working robot at the second moment, and the indoor grid map, and sending the adjusted path planning to the working robot so that the working robot performs the operation according to the adjusted path planning.

[0047] Among them, in order to adjust the path planning, it is first necessary to determine the third world coordinates of the event target at the second moment, the fourth world coordinates of the working robot at the second moment, and the indoor grid map. Then, the path planning algorithm can be used to calculate the best path from the current position of the robot to the event target position. The adjusted path planning can take into account factors such as obstacles, shortest path, and real-time performance; once the adjustment of the path planning is completed, the adjusted path can be sent to the working robot. This can be achieved through wireless communication or local area network. After receiving the path, the working robot can perform corresponding operations according to the path planning. In the process of positioning and navigation, it is necessary to ensure the accuracy and timeliness of the path adjustment to ensure that the working robot can effectively complete the task.

[0048] The above describes the embodiment of the present application from the perspective of the indoor robot positioning and navigation method based on multiple cameras. The following describes the embodiment of the present application from the perspective of the indoor robot positioning and navigation device based on multiple cameras. Figure 4 , Figure 4 A virtual structural diagram of an indoor robot positioning and navigation device based on multiple cameras provided in an embodiment of the present application, the indoor robot positioning and navigation device based on multiple cameras 400 includes: The first acquisition module 401 is used to acquire the internal and external parameters of N cameras in the target scene if the event target is observed at the first moment, wherein N is an integer greater than or equal to 3, and the target scene is any scene in the indoor scene set; the second acquisition module 402 is used to collect scene images of the target scene through the N cameras to obtain a scene image set corresponding to the indoor scene set; A first determination module 403, used to determine the pixel coordinates of the working robot and the pixel coordinates of the event target based on the scene image set; A second determination module 404 is used to determine the first world coordinates of the working robot and the second world coordinates of the event target based on the pixel coordinates of the working robot, the pixel coordinates of the event target, and the internal and external parameters of the N cameras; The first processing module 405 is used to plan a path for the working robot based on the first world coordinates of the working robot, the second world coordinates of the event target, and the indoor grid map corresponding to the indoor scene set, and send the path planning to the working robot so that the working robot performs the work according to the path planning; A first prediction module 406 is used to predict the third world coordinates of the event target at the second moment based on a pre-built time coordinate motion model if the current moment reaches the second moment and the event target is not observed or the working robot is in a prediction mode, the second moment is greater than the first moment, and the difference between the second moment and the first moment is a preset value; The second processing module 407 is used to adjust the path planning according to the third world coordinates of the event target at the second moment, the fourth world coordinates of the working robot at the second moment and the indoor grid map, and send the adjusted path planning to the working robot so that the working robot can operate according to the adjusted path planning.

[0049] In an embodiment, in order to ensure that the camera's field of view can cover the entire site, at least N cameras are arranged in the target scene, and the target scene is any scene in the indoor scene set. First, when the event target is observed at the first moment, the first acquisition module acquires the internal and external parameters of the N cameras in the target scene, and the second acquisition module collects the scene image of the target scene through the N cameras to obtain the scene image set corresponding to the indoor scene set. Then, the first determination module first determines the pixel coordinates of the working robot and the pixel coordinates of the event target based on the scene image set. Secondly, the second determination module determines the first world coordinates of the working robot and the second world coordinates of the event target based on the pixel coordinates of the working robot, the pixel coordinates of the event target and the internal and external parameters of the N cameras. Then, the first processing module plans the path of the working robot based on the first world coordinates, the second world coordinates and the indoor grid map, and sends the path planning to the working robot, so that the working robot can determine the path according to the path. Path planning is used to perform operations. If the current moment reaches the second moment, the event target is not observed or the working robot is in the prediction mode, in order to improve the accuracy of the positioning and navigation of the working robot, the first prediction module then predicts the third world coordinates of the event target at the second moment based on the pre-built time coordinate motion model. Finally, the second processing module adjusts the path planning based on the third world coordinates and the fourth world coordinates of the working robot at the second moment and the indoor grid map, and sends the adjusted path planning to the working robot, so that the working robot can operate according to the adjusted path planning. Compared with the traditional technology that relies too much on sensors and has poor navigation effect on dynamic or occluded event targets, the solution in this application adopts multi-view image positioning technology, and when dealing with dynamic or event targets, it can predict the position of the event target in real time, and then adjust the robot's running trajectory in real time to achieve accurate positioning and navigation of indoor robots.

[0050] In a possible implementation manner, the first determining module 403 is specifically configured to: Inputting the scene image set into the neural network detection model to detect the working robot and the event target, so as to obtain the bounding box of the working robot and the bounding box of the event target; Determine the pixel coordinates of the working robot according to the center coordinates of the bounding box of the working robot; The pixel coordinates of the event target are determined based on the center coordinates of the event target's bounding box.

[0051] In a possible implementation manner, the first determining module 403 is further specifically configured to: The pixel coordinates of the working robot are calculated using the following formula: Determining the pixel coordinates of the event target according to the center coordinates of the bounding box of the event target includes: The pixel coordinates of the event target are calculated using the following formula: Among them, Box robot_i Box is the bounding box of the working robot. object_i is the bounding box of the event target, is the pixel coordinate of the working robot, The pixel coordinates of the event target.

[0052] In a possible implementation manner, the second determining module 404 is specifically configured to: Determine the intrinsic parameters of the first target camera, the extrinsic parameter rotation matrix of the first target camera, and the displacement vector of the first target camera according to the intrinsic and extrinsic parameters of the N cameras, wherein the first target camera is any one of the N cameras that observes the working robot; Determine the first world coordinates of the working robot based on the pixel coordinates of the working robot, the height of the working robot, the intrinsic parameters of the first target camera, the extrinsic parameter rotation matrix of the first target camera, and the displacement vector of the first target camera; Determine the internal parameters of the second target camera, the external parameter rotation matrix of the second target camera, and the displacement vector of the second target camera according to the internal and external parameters of the N cameras, wherein the second target camera is any one of the N cameras that observes the event target; The second world coordinates of the event target are determined based on the pixel coordinates of the event target, the intrinsic parameters of the second target camera, the extrinsic rotation matrix of the second target camera, the displacement vector of the second target camera and the principle of minimizing reprojection error.

[0053] In a possible implementation manner, the second determining module 404 is further specifically configured to: The first world coordinates of the working robot are calculated by the following formula: in, is the first world coordinate, is the world coordinate of the working robot in the imaging plane of the first target camera, is the pixel coordinate of the working robot in the imaging plane of the first target camera, R i1 is the external parameter rotation matrix of the first target camera, K i1 is the internal parameter of the first target camera, T i1 is the displacement vector of the first target camera, is the actual world coordinate of the first target camera, V objectis the direction vector of the working robot relative to the first target camera, h robot is the height of the operating robot, is the world coordinate of the operating robot under the first target camera, n r is the number of the first target camera; i=0, 1,…, n-1.

[0054] In a possible implementation manner, the second determining module 404 is further specifically configured to: The second world coordinates of the event target are calculated using the following formula: in, is the second world coordinate, R i2 is the external parameter rotation matrix of the second target camera, K i2 is the internal parameter of the second target camera, T i2 is the displacement vector of the second target camera, is the pixel coordinate of the event target, n o is the number of the second target camera.

[0055] In a possible implementation manner, the first prediction module 406 is specifically configured to: The third world coordinates of the event target at the second moment are calculated using the following formula: v k-1,k-1 =v k-2,k-2 ; Wherein, k = t, t+1, t+2, ...; is the third world coordinate, Δ t is the expected prediction time interval, K k is the weight, P k,k is the oblique variance weight of the state transition at time k, r k is the skew variance between the predicted position and the observed position, is the third world coordinate of the event target at the kth time, v k-1,k-1 is the state transfer velocity component coefficient, is the k-time state transition oblique variance weight speed coefficient, and q is the error component.

[0056] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0057] It can be understood by a person skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0058] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A multi-camera based indoor robot positioning and navigation method. It is characterized in that include: If the event target is observed at the first moment, the internal and external parameters of N cameras in the target scene are obtained, wherein N is an integer greater than or equal to 3, and the target scene is any scene in the indoor scene set; Capturing scene images of the target scene by means of the N cameras to obtain a scene image set corresponding to the indoor scene set; Determining pixel coordinates of the working robot and pixel coordinates of the event target based on the scene image set; Determine the first world coordinates of the working robot and the second world coordinates of the event target based on the pixel coordinates of the working robot, the pixel coordinates of the event target, and the internal and external parameters of the N cameras; Performing path planning for the working robot based on the first world coordinates of the working robot, the second world coordinates of the event target, and the indoor grid map corresponding to the indoor scene set, and sending the path planning to the working robot so that the working robot performs the work according to the path planning; If the current moment reaches the second moment, and the event target is not observed or the working robot is in the prediction mode, the third world coordinates of the event target at the second moment are predicted based on the pre-built time coordinate motion model, the second moment is greater than the first moment, and the difference between the second moment and the first moment is a preset value; The path planning is adjusted according to the third world coordinates of the event target at the second moment, the fourth world coordinates of the working robot at the second moment and the indoor grid map, and the adjusted path planning is sent to the working robot so that the working robot performs the operation according to the adjusted path planning.

2. The method according to claim 1, It is characterized in that The determining the pixel coordinates of the working robot and the pixel coordinates of the event target based on the scene image set includes: Inputting the scene image set into a neural network detection model to detect the working robot and the event target, so as to obtain a bounding box of the working robot and a bounding box of the event target; Determining the pixel coordinates of the working robot according to the center coordinates of the enclosing frame of the working robot; The pixel coordinates of the event target are determined according to the central coordinates of the bounding box of the event target.

3. The method according to claim 2, It is characterized in that The step of determining the pixel coordinates of the working robot according to the center coordinates of the bounding box of the working robot comprises: The pixel coordinates of the working robot are calculated by the following formula: Determining the pixel coordinates of the event target according to the center coordinates of the bounding box of the event target includes: The pixel coordinates of the event target are calculated using the following formula: Among them, the Box robot_i is the bounding box of the working robot, the Box object_i is the bounding box of the event target, is the pixel coordinate of the working robot, is the pixel coordinate of the event target.

4. The method according to claim 1, It is characterized in that The determining of the first world coordinates of the working robot and the second world coordinates of the event target based on the pixel coordinates of the working robot, the pixel coordinates of the event target, and the internal and external parameters of the N cameras comprises: Determine the intrinsic parameters of a first target camera, the extrinsic parameter rotation matrix of the first target camera, and the displacement vector of the first target camera according to the intrinsic and extrinsic parameters of the N cameras, wherein the first target camera is any one of the N cameras that observes the working robot; Determine a first world coordinate of the working robot based on the pixel coordinates of the working robot, the height of the working robot, the intrinsic parameters of the first target camera, the extrinsic parameter rotation matrix of the first target camera, and the displacement vector of the first target camera; Determine the intrinsic parameters of a second target camera, the extrinsic parameter rotation matrix of the second target camera, and the displacement vector of the second target camera according to the intrinsic and extrinsic parameters of the N cameras, wherein the second target camera is any one of the N cameras that observes the event target; The second world coordinates of the event target are determined based on the pixel coordinates of the event target, the intrinsic parameters of the second target camera, the extrinsic rotation matrix of the second target camera, the displacement vector of the second target camera and the principle of minimizing reprojection error.

5. The method according to claim 4, It is characterized in that The determining of the first world coordinates of the working robot based on the pixel coordinates of the working robot, the height of the working robot, the intrinsic parameters of the first target camera, the extrinsic rotation matrix of the first target camera, and the displacement vector of the first target camera comprises: The first world coordinate of the working robot is calculated by the following formula: Among them, the is the first world coordinate, the is the world coordinate of the working robot in the imaging plane of the first target camera, is the pixel coordinate of the working robot in the imaging plane of the first target camera, and the R i1 is the external parameter rotation matrix of the first target camera, the K i1 is the internal parameter of the first target camera, the T i1 is the displacement vector of the first target camera, is the actual world coordinate of the first target camera, the V object is the direction vector of the working robot relative to the first target camera, and the h robot is the height of the working robot, is the world coordinate of the working robot under the first target camera, and the n r is the number of the first target cameras; i=0, 1, ..., n-1.

6. The method according to claim 4, It is characterized in that The determining of the second world coordinates of the event target based on the pixel coordinates of the event target, the intrinsic parameters of the second target camera, the extrinsic parameter rotation matrix of the second target camera, the displacement vector of the second target camera and the principle of minimizing reprojection error includes: The second world coordinates of the event target are calculated by the following formula: Among them, the is the second world coordinate, the R i2 is the external parameter rotation matrix of the second target camera, the K i2 is the internal parameter of the second target camera, the T i2 is the displacement vector of the second target camera, is the pixel coordinate of the event target, the n o is the number of the second target camera.

7. The method according to claim 4, It is characterized in that The predicting of the third world coordinates of the event target at the second moment based on the pre-built time coordinate motion model includes: The third world coordinates of the event target at the second moment are calculated by the following formula: v k-1,k-1 =v k-2,k-2 ; Wherein, k=t, t+1, t+2, ...; is the third world coordinate, the Δ t is the expected prediction time interval, the K k is the weight, the P k,k is the oblique variance weight of the state transition at time k, and r k is the skew variance between the predicted position and the observed position, is the third world coordinate of the event target at the kth time, and v k-1,k-1 is the state transfer speed component coefficient, is the k-time state transition oblique variance weight speed coefficient, and q is the error component.

8. An indoor robot positioning and navigation device based on multiple cameras, It is characterized in that include: A first acquisition module, configured to acquire internal and external parameters of N cameras in a target scene if an event target is observed at a first moment, wherein N is an integer greater than or equal to 3, and the target scene is any scene in a set of indoor scenes; A second acquisition module, configured to acquire scene images of the target scene through the N cameras to obtain a scene image set corresponding to the indoor scene set; A first determination module, configured to determine the pixel coordinates of the working robot and the pixel coordinates of the event target based on the scene image set; A second determination module is used to determine the first world coordinates of the working robot and the second world coordinates of the event target based on the pixel coordinates of the working robot, the pixel coordinates of the event target, and the internal and external parameters of the N cameras; A first processing module is used to plan a path for the working robot based on the first world coordinates of the working robot, the second world coordinates of the event target, and the indoor grid map corresponding to the indoor scene set, and send the path planning to the working robot so that the working robot performs the operation according to the path planning; A first prediction module, configured to predict the third world coordinates of the event target at the second moment based on a pre-constructed time coordinate motion model if the current moment reaches the second moment and the event target is not observed or the working robot is in a prediction mode, the second moment is greater than the first moment, and the difference between the second moment and the first moment is a preset value; The second processing module is used to adjust the path planning according to the third world coordinates of the event target at the second moment, the fourth world coordinates of the working robot at the second moment and the indoor grid map, and send the adjusted path planning to the working robot so that the working robot performs the operation according to the adjusted path planning.

9. A computer device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a multi-camera-based indoor robot positioning and navigation method described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of a multi-camera-based indoor robot positioning and navigation method described in any one of claims 1 to 7 are implemented.