Obstacle avoidance method, device, computer equipment and storage medium for warehouse automatic guided vehicle

Through the 5G communication network and object detection model, automated guided vehicles can effectively identify and avoid obstacles in complex warehousing environments, solving the problem of insufficient 4G network transmission and improving obstacle avoidance efficiency and intelligence.

CN112711263BActive Publication Date: 2024-10-15VISIONNAV ROBOTICS SHENZHEN LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110069572.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-19
Publication Date
2024-10-15
Estimated Expiration
2041-01-19

AI Technical Summary

Technical Problem

It is difficult for automatic guided vehicles to effectively identify obstacles in complex warehousing environments, and the stability and transmission rate of 4G wireless networks in long distances or border areas are insufficient, affecting their obstacle avoidance efficiency.

Method used

Use the 5G communication network to obtain real-time images collected by the camera, run the object detection model to extract features and classify them, calculate the real-time coordinates of obstacles in the automatic guided vehicle coordinate system, and output obstacle avoidance information when the distance is less than the threshold.

Benefits of technology

It improves the efficiency of automatic guided vehicles in identifying obstacles and taking obstacle avoidance measures, and enhances the intelligence of industrial products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112711263B_ABST
    Figure CN112711263B_ABST
Patent Text Reader

Abstract

The present application relates to an obstacle avoidance method, device, computer equipment and storage medium for a warehouse automatic guided vehicle. The method includes: based on a 5G communication network, obtaining real-time images collected by cameras installed on the warehouse automatic guided vehicle; running a preset object detection model, extracting the features of each object in the real-time image, and classifying each object based on the features of each object; selecting the positioning point of each object according to the type of each object, and calculating the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle according to the preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera; based on the real-time coordinates, calculating the real-time distance between the warehouse automatic guided vehicle and each object, and when the real-time distance is less than the set threshold, outputting obstacle avoidance information to the warehouse automatic guided vehicle. The warehouse automatic guided vehicle receives the obstacle avoidance information and takes measures. The use of this method can effectively improve the efficiency of the warehouse automatic guided vehicle in identifying obstacles and taking obstacle avoidance measures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of industrial robots, and in particular to an obstacle avoidance method, device, computer equipment and storage medium for a warehouse automatic guided vehicle. Background Art

[0002] With the rapid development of e-commerce and logistics industries, automated guided vehicles (AGVs) play an important role in the field of intelligent warehousing. AGVs can automatically travel along a predetermined route, with a high degree of automation and intelligence, and can be flexibly changed according to the requirements of storage space and production process. However, the current warehousing environment is complex and mixed with people and machines. When running, the AGV cannot effectively identify obstacles on its running path by relying solely on its own on-board safety sensors. Moreover, the coverage area of ​​ordinary 4G wireless networks is limited. When the AGV travels to a location far away from the wireless router or at the intersection of multiple wireless routers, the stability, latency and broadband performance of the wireless network decrease rapidly, which cannot meet the network transmission rate requirements of the high-definition camera to collect obstacle images when the AGV identifies obstacles, thereby affecting the efficiency of the AGV in identifying obstacles and taking obstacle avoidance measures. Summary of the invention

[0003] Based on this, it is necessary to provide a warehouse automated guided vehicle obstacle avoidance method, device, computer equipment and storage medium that can effectively improve the efficiency of the automated guided vehicle in identifying obstacles and taking obstacle avoidance measures in order to address the above technical problems.

[0004] A method for avoiding obstacles in a warehouse automatic guided vehicle, the method comprising:

[0005] Based on the 5G communication network, real-time images collected by each camera installed on the warehouse automatic guided vehicle are obtained;

[0006] Running a preset object detection model to extract features of each object in the real-time image, and classifying each object based on the features of each object;

[0007] According to the type of each object, a positioning point of each object is selected, and the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle are calculated according to preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera;

[0008] Based on the real-time coordinates, the real-time distance between the warehouse automatic guided vehicle and each of the objects is calculated. When the real-time distance is less than a set threshold, obstacle avoidance information is output to the warehouse automatic guided vehicle based on the 5G communication network.

[0009] In one of the embodiments, after acquiring the real-time images collected by the cameras disposed on the warehouse automatic guided vehicle based on the 5G communication network, the method includes:

[0010] The real-time images captured by each camera are synchronized and calibrated. The synchronization is to synchronize the real-time images captured by each camera according to the acquisition time of the real-time images. The calibration is to calibrate the real-time images captured by each camera according to preset camera calibration parameters.

[0011] In one embodiment, before synchronizing and calibrating the real-time images collected by each camera, the method includes:

[0012] The camera calibration parameters of each camera are obtained, wherein the camera calibration parameters include internal parameters and external parameters of each camera, the internal parameters include an intrinsic parameter matrix and a distortion parameter of each camera, and the external parameters include a rotation matrix and a translation matrix of each camera.

[0013] In one embodiment, obtaining the camera calibration parameters of each camera includes:

[0014] Extracting corner points in the real-time image using a chessboard method, calculating pixel coordinates of each corner point, and obtaining an intrinsic parameter matrix and distortion parameters of each camera;

[0015] The position data and attitude data of each camera are obtained, and the rotation matrix and translation matrix of each camera are calculated. The position data include the height of each camera, and the actual distance between the ground position corresponding to the center of the real-time image and the projection position of each camera on the ground. The attitude data include the pitch angle, yaw angle and roll angle of each camera.

[0016] In one embodiment, after synchronizing and calibrating the real-time images collected by each camera, the method includes:

[0017] The plane equation of the ground in the camera coordinate system of each camera is calculated.

[0018] In one embodiment, the calculating the plane equation of the ground in the camera coordinate system of each camera includes:

[0019] Acquire each feature point of the ground, and acquire the actual distance between every two feature points, and calculate the coordinates of each feature point in the camera coordinate system of each camera according to the actual distance;

[0020] The plane equation of the ground in the camera coordinate system of each camera is calculated according to the coordinates of each feature point in the camera coordinate system of each camera.

[0021] In one of the embodiments, before acquiring the real-time images collected by the cameras disposed on the warehouse automatic guided vehicle based on the 5G communication network, the method includes:

[0022] Testing the 5G communication network, wherein the testing includes whether the 5G communication network is connected and whether the transmission rate of the 5G communication network is greater than a preset value;

[0023] When the 5G communication network can be connected and the transmission rate of the 5G communication network is greater than the preset value, the step of obtaining real-time images captured by each camera installed on the warehouse automatic guided vehicle is entered.

[0024] In one embodiment, after calculating the plane equation of the ground in the camera coordinate system of each camera, the method further comprises:

[0025] The object detection model is trained and obtained.

[0026] In one embodiment, the training and obtaining of the object detection model includes:

[0027] Obtain images of operators authorized to enter the warehouse;

[0028] Acquire a warehouse image and the type of each object in the warehouse image annotated by a user;

[0029] The fully convolutional layer of the convolutional neural network is used to extract features of each object in the operator image and the warehouse image, and the object detection model is trained and obtained.

[0030] In one embodiment, selecting the positioning point of each object according to the type of each object, and calculating the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle according to the preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera, includes:

[0031] According to the type of each object, a positioning point of each object is selected. When the object is an operator, the ankle of the operator is used as the positioning point. When the object is a vehicle or cargo, the middle and lower part of the vehicle or cargo is used as the positioning point.

[0032] Based on the positioning points of the objects, obtaining the pixel coordinates of the positioning points of the objects in the image coordinate system of the real-time image;

[0033] According to the preset internal parameters of each of the cameras and the plane equation of the ground in the camera coordinate system of each of the cameras, the pixel coordinates of the positioning point are converted into the camera coordinates of the positioning point in the camera coordinate system of each of the cameras;

[0034] According to the preset external parameters of each of the cameras, the camera coordinates of the positioning point are converted into the vehicle coordinates of the positioning point in the vehicle coordinate system of the warehouse automatic guided vehicle, and the real-time coordinates of each of the objects in the vehicle coordinate system of the warehouse automatic guided vehicle are obtained.

[0035] An obstacle avoidance device for a warehouse automatic guided vehicle, the device comprising:

[0036] An image acquisition module, used to acquire real-time images collected by each camera installed on the warehouse automatic guided vehicle based on a 5G communication network;

[0037] An image classification module, used to run a preset object detection model, extract features of each object in the real-time image, and classify each object based on the features of each object;

[0038] A coordinate calculation module, for selecting a positioning point of each object according to the type of each object, and calculating the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle according to preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera;

[0039] An information output module is used to calculate the real-time distance between the warehouse automatic guided vehicle and each of the objects based on the real-time coordinates, and when the real-time distance is less than a set threshold, output obstacle avoidance information to the warehouse automatic guided vehicle based on the 5G communication network.

[0040] A warehouse automatic guided vehicle, the warehouse automatic guided vehicle comprising:

[0041] A camera module, arranged on the warehouse automatic guided vehicle, for collecting real-time images of the environment in which the warehouse automatic guided vehicle is located;

[0042] A 5G communication module is used to transmit the real-time image collected by the camera module provided on the warehouse automatic guided vehicle to the edge server through the 5G communication network; and receive the obstacle avoidance information calculated by the edge server based on the real-time image when the real-time distance between the warehouse automatic guided vehicle and each of the objects in the real-time image is less than a set threshold value through the 5G communication network;

[0043] The warehouse automatic guided vehicle module is used to take obstacle avoidance measures according to the obstacle avoidance information.

[0044] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned warehouse automatic guided vehicle obstacle avoidance method when executing the computer program.

[0045] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned warehouse automatic guided vehicle obstacle avoidance method.

[0046] The above-mentioned warehouse automatic guided vehicle obstacle avoidance method, device, computer equipment and storage medium, wherein the edge server obtains the real-time images collected by each camera set on the warehouse automatic guided vehicle based on the 5G communication network; runs the preset object detection model, extracts the features of each object in the real-time image, and classifies each object based on the features of each object; selects the positioning point of each object according to the type of each object, and calculates the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle according to the preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera; based on the real-time coordinates, calculates the real-time distance between the warehouse automatic guided vehicle and each object, and when the real-time distance is less than the set threshold, outputs obstacle avoidance information to the warehouse automatic guided vehicle based on the 5G communication network. After receiving the obstacle avoidance information, the warehouse automatic guided vehicle takes obstacle avoidance measures according to the obstacle avoidance information. The use of the method of the embodiment of the present application can effectively improve the efficiency of the warehouse automatic guided vehicle in identifying obstacles and taking obstacle avoidance measures, thereby improving the intelligence of industrial products. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A diagram of an application environment of a method for avoiding obstacles in a warehouse automatic guided vehicle in one embodiment;

[0048] Figure 2 A schematic diagram of a flow chart of an obstacle avoidance method for a warehouse automatic guided vehicle in one embodiment;

[0049] Figure 3 A schematic diagram of a process for obtaining camera calibration parameters of each camera in one embodiment;

[0050] Figure 4 It is a schematic diagram of a flow chart of calculating the plane equation of the ground in the camera coordinate system of each camera in one embodiment;

[0051] Figure 5 A schematic diagram of a process of testing a 5G communication network in one embodiment;

[0052] Figure 6 A schematic diagram of a process of training and obtaining an object detection model in one embodiment;

[0053] Figure 7 A schematic diagram of a process for calculating the real-time coordinates of each object in a vehicle coordinate system of a warehouse automated guided vehicle in one embodiment;

[0054] Figure 8 A schematic diagram of the installation positions of a warehouse automatic guided vehicle and each camera in a specific embodiment;

[0055] Fig. 9 A schematic diagram of building a 5G communication network in a specific embodiment;

[0056] Fig.10 It is a schematic diagram of synchronizing the real-time images collected by each camera in a specific embodiment;

[0057] Fig.11 A schematic diagram of selecting positioning points for each object in a specific embodiment;

[0058] Fig.12 A schematic diagram of a system interface when an edge server is running in a specific embodiment;

[0059] Fig.13 is a schematic diagram of performing face detection on an operator in a specific embodiment;

[0060] Fig.14 A schematic diagram of a system interface in which real-time images collected by each camera are scaled and merged and then displayed in the form of a radar chart when the edge server is running in a specific embodiment;

[0061] Fig.15 It is a structural block diagram of an obstacle avoidance device for a warehouse automatic guided vehicle in one embodiment;

[0062] Fig.16 A structural block diagram of a warehouse automatic guided vehicle in one embodiment;

[0063] Fig.17 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0065] The obstacle avoidance method for warehouse automatic guided vehicles provided in this application can be applied to Figure 1 In the application environment shown, a plurality of cameras 102 are installed on the body of the warehouse automatic guided vehicle 110 , and a 5G communication module 104 is also present in the warehouse automatic guided vehicle 110 , and the warehouse automatic guided vehicle 110 communicates with the edge server 120 through the 5G communication network.

[0066] Specifically, the edge server 120 obtains the real-time images collected by the cameras 102 set on the warehouse automatic guided vehicle 110 based on the 5G communication network; runs the preset object detection model to extract the features of each object in the real-time image, and classifies each object based on the features of each object; selects the positioning point of each object according to the type of each object, and calculates the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle 110 according to the preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera; calculates the real-time distance between the warehouse automatic guided vehicle 110 and each object based on the real-time coordinates, and when the real-time distance is less than the set threshold, the edge server 120 outputs obstacle avoidance information to the warehouse automatic guided vehicle 110 based on the 5G communication network. After receiving the obstacle avoidance information, the warehouse automatic guided vehicle 110 takes obstacle avoidance measures according to the obstacle avoidance information. Among them, the camera 102 can be but is not limited to various image acquisition devices, such as high-definition cameras, high-definition vehicle-mounted cameras, charge coupled device cameras (CCD cameras), scanners or mobile phones with camera functions, tablet computers and other devices. The warehouse automatic guided vehicle 110 can be but is not limited to various unmanned driving equipment, such as unmanned vehicles or drones, and the edge server 120 can be implemented with an independent server or a server cluster composed of multiple servers.

[0067] In one embodiment, if Figure 2 As shown, a method for avoiding obstacles in a warehouse automatic guided vehicle is provided. Figure 1 Taking the edge server 120 in the example as an example, the following steps are included:

[0068] Step S202: Based on the 5G communication network, real-time images captured by each camera installed on the warehouse automatic guided vehicle are obtained.

[0069] Among them, the fifth generation mobile communication technology (5th generation mobile networks, 5G) is the latest generation of cellular mobile communication technology, which has high data transmission rate, stable network, low network latency, can be connected with automated intelligent equipment, and has stronger industrial applicability. Therefore, in the embodiments of the present application, information transmission adopts 5G communication network. The warehouse automatic guided vehicle (Automated Guided Vehicle, AGV) is an unmanned driving equipment with a high degree of automation and intelligence, which can realize the whole process automation of loading and unloading and handling of goods and materials in the warehouse.

[0070] In one of the embodiments, a plurality of cameras are installed on the warehouse automated guided vehicle to collect real-time images of the environment in which the warehouse automated guided vehicle is located. In order to meet the requirements of basically covering the surrounding environment of the vehicle and ensuring the safety of the vehicle's forward and backward directions, the number of cameras is at least four. Among them, the vehicle's main moving modes are forward, left turn, right turn and backward. The cameras can be located directly in front of the vehicle, in the front left, in the front right and in the rear. Among them, the angles of the cameras in the front left and in the front right relative to the vehicle's forward direction are 60°, the cameras in the front, left and right overlap by about 45°, and the horizontal viewing angle of each camera is 105°. Therefore, the camera setting method of this embodiment can cover a range of 330° around the vehicle, making the blind spot smaller.

[0071] Specifically, after each camera installed on the warehouse automatic guided vehicle collects real-time images of the environment in which the vehicle is located, the real-time images collected by each camera are obtained based on the 5G communication network.

[0072] Step S204, running a preset object detection model, extracting features of each object in the real-time image, and classifying each object based on the features of each object.

[0073] Among them, the object detection model is a detection model pre-trained using a machine learning algorithm, which can recognize and classify objects based on features. Machine learning is to discover the distributed feature representation of data by combining low-level features to form more abstract high-level representation attribute categories or features. Its motivation is to establish a neural network that simulates the human brain for analysis and learning, and imitates the mechanism of the human brain to interpret data, such as images, sounds, and text.

[0074] In one embodiment, the object detection model includes an object detection and recognition module. The objects in the real-time image of the environment where the warehouse automatic guided vehicle is located may be operators, goods or vehicles. Specifically, the preset object detection model is run, and the object detection and recognition module extracts the features of each object in the real-time image, and identifies the type of each object in the real-time image according to the features of each object.

[0075] In one embodiment, when running a preset object detection model to classify various objects in a real-time image, such as operators, goods, vehicles, etc., in order to remove noise from the object detection model and ensure the accuracy of object detection, and avoid false detection and missed detection, objects with object recognition scores greater than a predetermined score are screened according to the predicted empirical value of the object detection model, and objects with scores greater than the predetermined score are classified again. The predetermined score can be set to 80 points.

[0076] In one embodiment, the object detection model also includes a human body recognition detection module. The human body recognition detection module includes a skeleton detection module and a face detection module. Specifically, the skeleton detection module can perform skeleton recognition on an image containing an operator, extract skeleton nodes of the human body, and can include 25 skeleton nodes such as the head, arms and ankles of the human body. The face detection module can perform face segmentation recognition on an image containing an operator, and determine whether the operator is an operator authorized to enter the warehouse. The face detection module can be turned on and off independently.

[0077] Step S206, according to the type of each object, select the positioning point of each object, and calculate the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle according to the preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera.

[0078] In one embodiment, the positioning point of each object is selected according to the type of each object. In the image coordinate system of the real-time image, the upper left corner is used as the coordinate origin. For an operator, the ankle of the operator is used as the positioning point. For a vehicle or cargo, the lower middle part of the vehicle or cargo is used as the positioning point. The pixel coordinates of each positioning point in the image coordinate system of the real-time image are obtained.

[0079] In one of the embodiments, the camera calibration parameters include internal parameters and external parameters of each camera, the internal parameters include the intrinsic parameter matrix and distortion parameters of each camera, and the external parameters include the rotation matrix and translation matrix of each camera. Among them, the internal parameters of the camera are parameters related to the camera's own characteristics, such as the focal length, aperture and pixel size of the camera. The external parameters of the camera are parameters in the world coordinate system, which are used to determine the position and orientation of the camera in three-dimensional space, such as the position and rotation direction of the camera. In order to determine the relationship between the geometric position of a point on the surface of a spatial object in three-dimensional space and its corresponding point in the image, it is necessary to establish a geometric model of camera imaging through calculation and solve the geometric model parameters, which can also be called camera calibration.

[0080] In one embodiment, since there are multiple cameras on the warehouse automatic guided vehicle, it is necessary to calculate the plane equation of the ground in the camera coordinate system of each camera. Combined with the camera calibration parameters, the pixel coordinates of the positioning points of each object in the image coordinate system of the real-time image are converted into the camera coordinates of the positioning points in the camera coordinate system of each camera, and then the camera coordinates of the positioning points are converted into real-time coordinates in the vehicle coordinate system of the warehouse automatic guided vehicle.

[0081] Step S208, based on the real-time coordinates, calculate the real-time distance between the warehouse automatic guided vehicle and each object. When the real-time distance is less than the set threshold, output obstacle avoidance information to the warehouse automatic guided vehicle based on the 5G communication network.

[0082] In one embodiment, the precise position of each object is calculated based on the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle, and the actual distance between the vehicle, the operator and the goods is obtained. When the real-time distance is less than the set threshold, the type and distance of the obstacle are recorded, and the obstacle avoidance information is output to the warehouse automatic guided vehicle. The threshold can be set to 20m (meters).

[0083] In one of the embodiments, after receiving the obstacle avoidance information, the warehouse automatic guided vehicle uses the safety sensors on the vehicle to obtain comprehensive perception information and perform obstacle avoidance actions.

[0084] In one of the embodiments, the obstacle avoidance information also includes alarm information. Specifically, when it is detected that the real-time distance between the obstacle and the vehicle is less than the first distance, an alarm message is sent to the warehouse automatic guided vehicle for alarm. When it is detected that the distance between the operator and the warehouse automatic guided vehicle is less than the second distance, the human recognition detection module in the object detection model performs face detection on the operator entering the warehouse. Wherein, the second distance is less than the first distance, and when the operator is not authorized to enter the warehouse, an alarm message is sent to the warehouse automatic guided vehicle and the monitoring personnel are notified. Wherein, the first distance can be set to 7m, and the second distance can be set to 3m.

[0085] In the above-mentioned warehouse automatic guided vehicle obstacle avoidance method, the edge server obtains the real-time images collected by each camera set on the warehouse automatic guided vehicle based on the 5G communication network; runs the preset object detection model, extracts the features of each object in the real-time image, and classifies each object based on the features of each object; selects the positioning point of each object according to the type of each object, and calculates the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle according to the preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera; based on the real-time coordinates, calculates the real-time distance between the warehouse automatic guided vehicle and each object, and when the real-time distance is less than the set threshold, outputs obstacle avoidance information to the warehouse automatic guided vehicle based on the 5G communication network. After receiving the obstacle avoidance information, the warehouse automatic guided vehicle takes obstacle avoidance measures according to the obstacle avoidance information. The use of the method of the embodiment of the present application can effectively improve the efficiency of the warehouse automatic guided vehicle in identifying obstacles and taking obstacle avoidance measures, thereby improving the intelligence of industrial products.

[0086] In one embodiment, after obtaining the real-time images collected by the cameras disposed on the warehouse automatic guided vehicle based on the 5G communication network in step S202, the method includes:

[0087] The real-time images collected by each camera are synchronized and calibrated. The synchronization is to synchronize the real-time images collected by each camera according to the collection time of the real-time images, and the calibration is to calibrate the real-time images collected by each camera according to the preset camera calibration parameters.

[0088] Among them, due to factors such as lens distortion, manufacturing accuracy and assembly process of each camera, the real-time images collected by each camera may be deformed or the acquisition time of the real-time images collected by each camera may be asynchronous, thereby affecting the accuracy of identifying each object in the real-time image and calculating the real-time distance. Therefore, the real-time images collected by each camera need to be synchronized and calibrated.

[0089] In one embodiment, the real-time images captured by each camera are synchronized and calibrated, and the synchronization and calibration processes are not in order. The real-time images can be synchronized first, and then the synchronized real-time images are calibrated, or the real-time images can be calibrated first, and then the calibrated real-time images are synchronized.

[0090] In one embodiment, the real-time images collected by each camera are synchronized according to the collection time of the real-time images. In the real-time image collection stage, each camera collects the real-time image and stores the collection time of the real-time image. According to the collection time of the real-time image, the real-time image collected by each camera with the closest time is found, and the real-time images collected by each camera are synchronized.

[0091] Specifically, the acquisition time of the real-time image can be recorded using a timestamp. The real-time images acquired by each camera are acquired, and the real-time images acquired by other cameras at the closest time are found according to the timestamp of the real-time image acquired by one camera, and the real-time images acquired by each camera are synchronized.

[0092] In one embodiment, the real-time images captured by each camera are calibrated according to preset camera calibration parameters. Before the synchronized real-time images are calibrated according to the preset camera calibration parameters, the method includes:

[0093] The camera calibration parameters of each camera are obtained. The camera calibration parameters include the internal parameters and external parameters of each camera. Among them, the internal parameters include the intrinsic parameter matrix and distortion parameters of each camera. The intrinsic parameter matrix is ​​mainly used to calibrate camera distortion, calculate ground equations, and calculate the distance between each object and each camera. The distortion parameters are mainly used to calibrate camera distortion. The external parameters include the rotation matrix and translation matrix of each camera, which are mainly used to calculate the distance between each object and the vehicle.

[0094] In one embodiment, if Figure 3 As shown, the camera calibration parameters of each camera are obtained, including:

[0095] Step S302: Use the chessboard method to extract each corner point in the real-time image, calculate the pixel coordinates of each corner point, and obtain the intrinsic parameter matrix and distortion parameters of each camera.

[0096] In one of the embodiments, the internal parameters of each camera are obtained, and the black and white corner points in the real-time image are extracted using a chessboard method. Since the black and white blocks of the chessboard are of the same size and known, the internal parameter matrix and distortion parameters of each camera can be obtained by calculating the pixel coordinates of each black and white corner point.

[0097] Step S304, obtain the position data and attitude data of each camera, calculate the rotation matrix and translation matrix of each camera, the position data includes the height of each camera, and the actual distance between the ground position corresponding to the center of the real-time image and the projection position of each camera on the ground, the attitude data includes the pitch angle, yaw angle and roll angle of each camera.

[0098] In one embodiment, the external parameters of each camera are obtained, and the rotation matrix and translation matrix of each camera are calculated by obtaining the position data and posture data of each camera.

[0099] Among them, the position parameters include the height of each camera, and the actual distance between the ground position corresponding to the center of the real-time image and the projection position of each camera on the ground, that is, the coordinates (X, Y, Z) of each camera in the vehicle coordinate system of the warehouse automatic guided vehicle, where the positive direction of X is the forward direction of the vehicle, the positive direction of Y is the left turn direction of the vehicle, and the Z direction is the height direction, which can be obtained by direct measurement.

[0100] Among them, the posture data includes the pitch angle, yaw angle and roll angle of each camera. The pitch angle can be calculated by measuring the distance from the center of the real-time image on the ground to the projection point of each camera on the ground and the height of each camera from the ground. The yaw angle can be calculated by measuring the position of the center of the real-time image on the ground, the angle between the projection point of each camera on the ground and the X-axis of the vehicle coordinate system of the warehouse automatic guided vehicle. Since each camera is installed on a plane parallel to the ground, the roll angle can be ignored.

[0101] In one embodiment, after synchronizing and calibrating the real-time images captured by each camera, the process includes: calculating the plane equation of the ground in the camera coordinate system of each camera.

[0102] In one embodiment, if Figure 4 As shown, the plane equation of the ground in the camera coordinate system of each camera is calculated, including:

[0103] Step S402, obtaining each feature point of the ground, and obtaining the actual distance between every two feature points, and calculating the coordinates of each feature point in the camera coordinate system of each camera according to the actual distance.

[0104] Step S404, calculating the plane equation of the ground in the camera coordinate system of each camera according to the coordinates of each feature point in the camera coordinate system of each camera.

[0105] In one embodiment, a standard feature point P1 on the ground is obtained, and according to the intrinsic parameter matrix K of each camera, the coordinates (u, v) of the standard feature point P1 in the image coordinate system of the real-time image are converted into the coordinate ratio relationship x / z and y / z in the camera coordinate system of each camera, which is expressed as:

[0106]

[0107] In the formula, is the homogeneous coordinate representation of the coordinates (u, v) of the standard feature point P1 in the image coordinate system of the real-time image, is the intrinsic parameter matrix K of each camera, where and represents the focal length, u 0 and v 0 Represents the coordinates of the principal point of the real-time image after calibration according to the camera calibration parameters. It is the homogeneous coordinate representation of the coordinate ratio relationship x / z and y / z of the standard feature point P1 in the camera coordinate system of each camera.

[0108] The coordinates (x1, y1, z1) of the standard feature point P1 in the camera coordinate system of each camera are expressed as:

[0109]

[0110] Wherein, k11 represents the horizontal coordinate ratio x / z of the standard feature point P1 in the camera coordinate system of each camera, k12 represents the vertical coordinate ratio y / z of the standard feature point P1 in the camera coordinate system of each camera, and k11 and k12 are constants.

[0111] Similarly, the coordinates (x2, y2, z2) of the second feature point P2 in the camera coordinate system of each camera can be calculated, expressed as:

[0112]

[0113] Wherein, k21 represents the horizontal coordinate ratio x / z of the feature point P2 in the camera coordinate system of each camera, k22 represents the vertical coordinate ratio y / z of the feature point P2 in the camera coordinate system of each camera, and k21 and k22 are constants.

[0114] Get the actual distance between every two feature points, and express the actual distance between the standard feature point P1 and the feature point P2 as D12. Similarly, the simultaneous equations are expressed as:

[0115]

[0116] Then, the actual coordinates of each feature point P1, P2...Pn in the camera coordinate system of each camera can be calculated.

[0117] The plane equation of the ground in the camera coordinate system of each camera can be calculated by multi-point fitting, which is expressed as:

[0118] Ax+By+Cz+D=0.

[0119] Where A, B, C and D are constants.

[0120] In one embodiment, if Figure 5 As shown, before obtaining the real-time images collected by each camera set on the warehouse automatic guided vehicle based on the 5G communication network in step S202, it includes:

[0121] Step S502, testing the 5G communication network, including whether the 5G communication network is connected and whether the transmission rate of the 5G communication network is greater than a preset value.

[0122] Step S504, when the 5G communication network can be connected and the transmission rate of the 5G communication network is greater than a preset value, enter the step of obtaining real-time images captured by each camera installed on the warehouse automatic guided vehicle.

[0123] In one embodiment, the warehouse automatic guided vehicle and the edge server are connected through a 5G communication network. Specifically, a vehicle-mounted router is installed on the warehouse automatic guided vehicle. Among them, the vehicle-mounted router is a hardware device connected to the network, which can realize the transmission of information. Each camera is connected to the vehicle-mounted router of the warehouse automatic guided vehicle, and the vehicle-mounted router is connected to the vehicle-mounted industrial computer of the warehouse automatic guided vehicle. Among them, the vehicle-mounted industrial computer is an industrial control computer on the warehouse automatic guided vehicle, and its function is to detect and control the production process and electromechanical equipment and process equipment. A 5G industrial module is installed on the vehicle-mounted industrial computer, and the 5G industrial module is connected to the antenna through a feeder. Among them, the shorter the feeder length, the stronger the signal strength. When the feeder is too short, it is not easy to install. When the feeder is too long, it will affect the signal strength. When the length exceeds 0.5m, it can hardly be used. Therefore, in the embodiment of the present application, the length range of the feeder is 0.1-0.3m. Use networking software to connect the 5G industrial module to an independently deployed 5G communication network. In the case of using Windows system, the networking software can be 5G industrial module networking software, which can be connected to the network by sending AT instruction set to the 5G industrial module through the serial port for specific business. Among them, the AT (Attention) instruction set is a command sent from a terminal device or a data terminal device to a terminal device adapter or a data circuit terminal device to realize network interaction.

[0124] In one of the embodiments, after the warehouse automatic guided vehicle and the edge server are connected to the 5G communication network, the 5G communication network is tested. Specifically, when using the Windows system, the PING package tool can be used to test whether the 5G communication network between the warehouse automatic guided vehicle and the edge server can be connected. Among them, PING (Packet Internet Groper, PING) is an Internet packet explorer, a program used to test the amount of network connection, mainly to send a request message to a specific destination host, to test whether the destination host is reachable and understand its relevant status. The warehouse automatic guided vehicle and the edge server communicate through independent networking (Standalone, SA) or non-standalone networking (Non-Standalone, NSA). The IP addresses of the warehouse automatic guided vehicle and the edge server can be directly obtained during the test. When using the Windows system, the PING IP address can be directly executed in the command line program cmd.exe to verify whether the 5G communication network is connected.

[0125] In one embodiment, the stability of the 5G communication network between the warehouse automated guided vehicle and the edge server is also tested. Specifically, a third-party tool for testing network performance, such as a network connection test (TamosoftThroughput Test), can be used to test the stability of the 5G communication network.

[0126] In one embodiment, testing the 5G communication network between the warehouse automated guided vehicle and the edge server also includes testing the transmission rate of the 5G communication network. The transmission rate includes the uplink transmission rate of each camera to transmit information to the edge server and the downlink transmission rate of the edge server to transmit information to the warehouse automated guided vehicle. When both the uplink transmission rate and the downlink transmission rate are greater than the preset transmission rate preset value, it is determined that the transmission rate of the 5G communication network can meet the requirements.

[0127] Specifically, when using the Windows system, the cameras, on-board routers, and on-board industrial computers on the warehouse automated guided vehicle are set in the same network segment. Port mapping tools such as the port mapping software Port tunnel can be used to map ports for each camera, and the PING packet tool can be used to detect whether the 5G communication network between the warehouse automated guided vehicle and the edge server can be connected and test its uplink and downlink transmission rates. Among them, the same network segment refers to the same network address obtained by the IP address and subnet mask. For example, the IP address of each camera is within the set of IP addresses assigned by the on-board router, and the set of IP addresses can be 192.168.1.2 to 192.168.1.254. The purpose of port mapping is to facilitate the interaction between the two networks and to facilitate the external network to access the internal network.

[0128] In one embodiment, after calculating the plane equation of the ground in the camera coordinate system of each camera, it includes: training and obtaining an object detection model.

[0129] In one embodiment, if Figure 6 As shown, train and obtain the object detection model, including:

[0130] Step S602, obtaining an image of an operator authorized to enter the warehouse.

[0131] In one embodiment, an image of an operator authorized to enter a warehouse is obtained, which may include a facial image and employee information. After obtaining the image of the operator authorized to enter the warehouse, a database may be created, and the facial image and employee information of the authorized operator may be entered into the database.

[0132] Step S604, obtaining the type of each object in the warehouse image and the warehouse image annotated by the user.

[0133] In one embodiment, a warehouse environment image is acquired, and the type of each object in the warehouse image marked by a user is acquired, and the type may include an operator, a cargo, or a vehicle, etc.

[0134] Step S606: Use the full convolution layer of the convolutional neural network to extract features of each object in the operator image and the warehouse image, train and obtain an object detection model.

[0135] In one of the embodiments, before training and obtaining the object detection model, the obtained image data needs to be cleaned, sample balanced and labeled. Among them, data cleaning is to filter out erroneous and duplicate data, which helps to improve the quality of the data. Since the model trained with unbalanced samples has poor generalization ability and is prone to overfitting, sample balancing is required before training the object detection model to keep the number of samples of different types consistent, so that the trained model has high recognition accuracy and fast training speed. Data labeling is to manually select each object in the real-time image and mark its features as the basic material for machine learning, so that the machine can continuously learn repeatedly to train and improve the accuracy of the object detection model. The higher the quality of data labeling, the higher the accuracy of model prediction. Image labeling software such as Labelmg can be used to label each object in the real-time image.

[0136] In one embodiment, a convolutional neural network is used to extract features of each object in the operator image and the warehouse image to train an object detection model. Convolutional Neural Networks (CNN) is a machine learning algorithm that includes convolution calculations and feedforward neural networks with a deep structure. The training set can be continuously optimized by extracting features of each object in the image through multi-layer convolution and iterative algorithms, and finally a trained object detection model can be obtained.

[0137] In one embodiment, if Figure 7 As shown, step S206 selects the positioning points of each object according to the type of each object, and calculates the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle according to the preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera, including:

[0138] Step S702, selecting a positioning point for each object according to the type of each object. When the object is an operator, the operator's ankle is used as the positioning point. When the object is a vehicle or cargo, the lower middle part of the vehicle or cargo is used as the positioning point.

[0139] In one embodiment, the positioning point of each object is selected according to the type of each object, wherein the upper left corner is used as the coordinate origin in the image coordinate system of the real-time image, the ankle of the operator is used as the positioning point for the operator, and the lower middle part of the vehicle or cargo is used as the positioning point for the vehicle or cargo.

[0140] Step S704: based on the positioning points of the objects, the pixel coordinates of the positioning points of the objects in the image coordinate system of the real-time image are obtained.

[0141] In one of the embodiments, pixel coordinates of the positioning points of each object in the image coordinate system of the real-time image are obtained, which are expressed as (u, v).

[0142] Step S706 , according to the preset internal parameters of each camera and the plane equation of the ground in the camera coordinate system of each camera, the pixel coordinates of the positioning point are converted into the camera coordinates of the positioning point in the camera coordinate system of each camera.

[0143] In one embodiment, according to the intrinsic parameter matrix of each camera, the coordinates (u, v) of the positioning point of each object in the image coordinate system of the real-time image are converted into the coordinate ratio relationship x / z and y / z in the camera coordinate system of each camera, which is expressed as:

[0144]

[0145] In the formula, is the homogeneous coordinate representation of the coordinates (u, v) of the positioning points of each object in the image coordinate system of the real-time image, is the intrinsic parameter matrix K of each camera, where and represents the focal length, u 0 and v 0 Represents the coordinates of the principal point of the real-time image after calibration according to the camera calibration parameters. It is the homogeneous coordinate representation of the coordinate ratio relationship x / z and y / z of the positioning point of each object in the camera coordinate system of each camera.

[0146] According to the plane equation of the ground in the camera coordinate system of each camera, by combining it with the coordinate ratio relationship of the positioning point of each object in the camera coordinate system of each camera, the camera coordinates (Xc, Yc, Zc) of the positioning point in the camera coordinate system of each camera can be obtained, which is expressed as:

[0147]

[0148] Wherein, Ax+By+Cz+D=0 is the plane equation of the ground in the camera coordinate system of each camera, and x / z and y / z are the coordinate ratios of the positioning points of each object in the camera coordinate system of each camera.

[0149] Step S708, according to the preset external parameters of each camera, the camera coordinates of the positioning point are converted into the vehicle coordinates of the positioning point in the vehicle coordinate system of the warehouse automatic guided vehicle, and the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle are obtained.

[0150] In one embodiment, according to the rotation matrix and translation matrix of each camera, the camera coordinates (Xc, Yc, Zc) of the positioning point are converted into the vehicle coordinates (Xo, Yo, Zo) of the positioning point in the vehicle coordinate system of the warehouse automatic guided vehicle, which is expressed as:

[0151]

[0152] In the formula, is the homogeneous coordinate representation of the camera coordinates (Xc, Yc, Zc) of the positioning point, R is the rotation matrix of each camera, T is the translation matrix of each camera, It is the homogeneous coordinate representation of the vehicle coordinates (Xo, Yo, Zo) of the positioning point.

[0153] In one embodiment, based on the real-time coordinates (Xo, Yo, Zo) of each object in the vehicle coordinate system of the warehouse automated guided vehicle, the real-time distance D between the warehouse automated guided vehicle and each object is calculated, which can be calculated according to the distance formula, which is expressed as:

[0154]

[0155] Where D is the real-time distance between the warehouse automated guided vehicle and each object, and Xo and Yo are the horizontal and vertical coordinates of each object in the real-time coordinates of the vehicle coordinate system of the warehouse automated guided vehicle.

[0156] In one of the embodiments, after outputting obstacle avoidance information to the warehouse automatic guided vehicle, it also includes: saving the calculated real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle, merging the classification and positioning results of the acquired real-time images, and generating a radar map of the distance between each object and the warehouse automatic guided vehicle.

[0157] In one of the embodiments, after generating a radar map of the distance between each object and the warehouse automatic guided vehicle, it also includes: saving the acquired real-time images and radar maps in the form of video, so that monitoring personnel can check and call up changes in the vehicle's surrounding environment and vehicle operation status within a certain period of time.

[0158] In order to further make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and one of the specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0159] In a specific embodiment, the overall construction steps of the warehouse automatic guided vehicle obstacle avoidance system are as follows:

[0160] Step 1, such as Figure 8 As shown in (a), four high-definition onboard cameras 810 are installed on the body of the warehouse automatic guided vehicle 820. The high-definition onboard cameras 810 are distributed in the front, left front, left rear and rear of the body of the warehouse automatic guided vehicle 820. The high-definition onboard cameras in the front, left front and right front overlap at about 45 degrees. Figure 8 As shown in (bc), the HD cameras 810 located at the left front and right front of the warehouse automated guided vehicle 820 have an angle of 60° relative to the forward direction of the warehouse automated guided vehicle 820, and the horizontal viewing angle of each HD vehicle-mounted camera 810 is 105°. Therefore, the range of 330° around the body of the warehouse automated guided vehicle can be basically covered.

[0161] Step 2, such as Fig. 9As shown, each high-definition vehicle-mounted camera 810 is connected to the vehicle-mounted router, and the vehicle-mounted router is connected to the vehicle-mounted industrial computer of the warehouse automatic guided vehicle. A 5G industrial module is installed on the vehicle-mounted industrial computer, and the 5G industrial module is connected to the antenna through a feeder with a feeder length of 0.1m. Use the 5G industrial module networking software to connect the 5G industrial module to an independently deployed 5G communication network. At the same time, after connecting the edge server to the network, use the PING packet tool to detect whether the 5G communication network between the warehouse automatic guided vehicle and the edge server can be connected, and test whether the downlink transmission rate of the edge server to the warehouse automatic guided vehicle transmits information meets the requirements. When the 5G communication network can be connected and the downlink transmission rate meets the requirements, proceed to step 3.

[0162] Step 3: Set each HD vehicle camera, vehicle router, and vehicle industrial computer to be in the same network segment. Use the port mapping software Port tunnel to perform port mapping for each HD vehicle camera, and use the PING packet tool to detect whether the 5G communication network between the edge server and each HD vehicle camera can be connected, and test whether the uplink transmission rate of each HD vehicle camera to transmit information to the edge server meets the requirements. When the 5G communication network can be connected and the uplink transmission rate meets the requirements, proceed to step 4.

[0163] Step 4: Use the chessboard method to calibrate the internal parameters of each high-definition vehicle-mounted camera, the internal parameters include the internal parameter matrix and distortion parameters of each high-definition vehicle-mounted camera, and save the calibration results.

[0164] Step 5, calibrate the external parameters of each high-definition vehicle-mounted camera and save the calibration results. Specifically, the coordinates (X, Y, Z) of each high-definition vehicle-mounted camera in the vehicle coordinate system of the warehouse automatic guided vehicle can be directly measured. Among them, the positive direction of X is the forward direction of the vehicle body, the positive direction of Y is the left turn direction of the vehicle body, and the Z direction is the height direction. The field of view angle of each high-definition vehicle-mounted camera in the vertical direction is 57°, and the installation height of each high-definition vehicle-mounted camera is about 1.85m. In this embodiment, each high-definition vehicle-mounted camera is tilted downward by about 22° to ensure a monitoring distance of 1.5-50m. By measuring the distance from the center of the real-time image collected by each high-definition vehicle-mounted camera on the ground to the projection point of each high-definition vehicle-mounted camera on the ground, and the height of each high-definition vehicle-mounted camera from the ground, the pitch angle can be calculated. By measuring the position of the center of the real-time image on the ground, the angle between the projection point of each high-definition vehicle-mounted camera on the ground and the X-axis of the vehicle coordinate system of the warehouse automatic guided vehicle, the yaw angle can be calculated. Since each high-definition vehicle-mounted camera is installed on a plane parallel to the ground, the roll angle can be ignored.

[0165] Step 6: Calculate the plane equation of the ground in the camera coordinate system of each high-definition vehicle-mounted camera and save the calculation results.

[0166] Step 7: collect data on facial images and employee information of operators authorized to enter the warehouse, collect data on scenes in the warehouse, perform data cleaning, sample balancing, data labeling, model training, and model testing, and train and obtain an object detection model.

[0167] At this point, the overall construction of the warehouse automatic guided vehicle obstacle avoidance system has been completed. Put the trained object monitoring model into the edge server, turn on the on-board industrial computer and connect to the 5G communication network. After ensuring that the 5G communication network is stable, the warehouse automatic guided vehicle can start working.

[0168] In one specific embodiment, the interface of the edge server when executing a method for avoiding obstacles in a warehouse automatic guided vehicle is as follows: Fig.10 As shown, (a) is the real-time image captured by each high-definition on-board camera on the warehouse automatic guided vehicle, and (b) is the real-time distance between each object in the real-time image and the warehouse automatic guided vehicle obtained by calculation. The steps of the edge server executing a warehouse automatic guided vehicle obstacle avoidance method are as follows:

[0169] Step 8: Obtain the real-time images collected by each high-definition on-board camera on the warehouse automatic guided vehicle through the 5G communication network, synchronize the real-time images according to the time when each high-definition on-board camera collects the real-time images, and adjust the distortion of the real-time images according to the calibrated internal parameter matrix and distortion parameters of each high-definition on-board camera. Fig.11 As shown, (a) is the real-time image in front of the vehicle, (b) is the real-time image in the rear of the vehicle, (c) is the real-time image in the left front of the vehicle, and (d) is the real-time image in the right front of the vehicle. In order to ensure the synchronization of the operations of each high-definition vehicle camera, the real-time images (ad) collected by each high-definition vehicle camera are spliced ​​into a 2*2 tiled large image.

[0170] Step 9, run the trained object detection model to classify the objects in the real-time image, such as operators, goods, vehicles, etc. In order to remove the noise of the object detection model and ensure the accuracy of the detection, avoid false detection and missed detection, select objects with object recognition scores greater than 80 points based on the predicted empirical value of the object detection model. When the object detection model determines that there is an operator in the warehouse, the skeleton detection module is automatically turned on to further determine whether there is an operator. When the skeleton detection module detects the human body, 25 skeleton nodes such as the head, arms and ankles of the human body are extracted.

[0171] Step 10, such as Fig.12As shown in the figure, the pixel size of the real-time image is 1920*1080. In the image coordinate system of the real-time image, the upper left corner is used as the coordinate origin, the ankle of the operator is used as the positioning point of the human body, and the lower and middle parts of the vehicle or cargo are used as the positioning points of the vehicle or cargo to obtain the pixel coordinates of the positioning points. According to the internal parameters of each high-definition vehicle-mounted camera and the plane equation of the ground in the camera coordinate system of each high-definition vehicle-mounted camera, the pixel coordinates of the positioning points are converted into the camera coordinates of the positioning points in the camera coordinate system of each high-definition vehicle-mounted camera. Then, through the external parameters of each high-definition vehicle-mounted camera, the camera coordinates of the positioning points are converted into the vehicle coordinates of the positioning points in the vehicle coordinate system of the warehouse automatic guided vehicle. Finally, the precise positions of the operators, cargo and vehicles in the warehouse are obtained.

[0172] Step 11. When it is detected that the distance between the obstacle and the warehouse automatic guided vehicle is less than 20m, the type and distance of the obstacle are recorded, and synchronously displayed on the system interface when the edge server is running, and obstacle avoidance information is sent to the warehouse automatic guided vehicle. After receiving the obstacle avoidance information, the warehouse automatic guided vehicle takes obstacle avoidance measures. When it is detected that the distance between the obstacle and the warehouse automatic guided vehicle is less than 7m, the detected obstacle is highlighted on the system interface when the edge server is running, and an alarm message is sent to the warehouse automatic guided vehicle. When it is detected that the distance between the operator and the warehouse automatic guided vehicle is less than 3m, the face detection module performs face detection on the operator, such as Fig.13 As shown, when an unauthorized operator is found to break into the warehouse, an alarm message is sent to the warehouse automatic guided vehicle and the location of the operator is displayed on the system interface when the edge server is running.

[0173] Step 12: Scale the 1920*1080 real-time images obtained by each high-definition vehicle camera according to the specified ratio and display them in the system interface when the edge server is running, such as Fig.14 As shown in the figure, the front view (a) is reduced to 1240*635 (h), the left front view (b) and the right front view (c) are scaled to 620*300 (ef), and the rear view (d) is scaled to 416*220 (g), and is displayed synchronously with the radar map (i) in the system interface of the edge server running at a size of 1920*1080. At the same time, the edge server will save the obtained real-time images in video format for monitoring personnel to view.

[0174] It should be understood that although Figure 2-7 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-7At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0175] In one embodiment, if Fig.15 As shown, a device for avoiding obstacles in a warehouse automatic guided vehicle is provided, the device comprising an image acquisition module 1510, an image classification module 1520, a coordinate calculation module 1530 and an information output module 1540, wherein:

[0176] The image acquisition module 1510 is used to acquire real-time images captured by each camera installed on the warehouse automatic guided vehicle based on the 5G communication network.

[0177] The image classification module 1520 is used to run a preset object detection model, extract features of each object in the real-time image, and classify each object based on the features of each object.

[0178] The coordinate calculation module 1530 is used to select the positioning point of each object according to the type of each object, and calculate the real-time coordinates of each object in the vehicle coordinate system of the warehouse guided vehicle according to the preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera.

[0179] The information output module 1540 is used to calculate the real-time distance between the warehouse automatic guided vehicle and each of the objects based on the real-time coordinates, and when the real-time distance is less than a set threshold, output obstacle avoidance information to the warehouse automatic guided vehicle based on the 5G communication network.

[0180] In one embodiment, the obstacle avoidance device for the warehouse automatic guided vehicle further comprises:

[0181] An image synchronization and calibration unit is used to synchronize and calibrate the real-time images captured by each camera, wherein the synchronization is to synchronize the real-time images captured by each camera according to the acquisition time of the real-time images, and the calibration is to calibrate the real-time images captured by each camera according to preset camera calibration parameters.

[0182] In one embodiment, the image synchronization and calibration unit includes the following units:

[0183] The camera calibration parameter acquisition unit is used to obtain the camera calibration parameters of each camera, wherein the camera calibration parameters include internal parameters and external parameters of each camera, the internal parameters include the intrinsic parameter matrix and distortion parameters of each camera, and the external parameters include the rotation matrix and translation matrix of each camera.

[0184] In one embodiment, the camera calibration parameter acquisition unit includes the following units:

[0185] The internal parameter acquisition unit is used to extract each corner point in the real-time image using a chessboard method, calculate the pixel coordinates of each corner point, and obtain the internal parameter matrix and distortion parameters of each camera.

[0186] The external parameter acquisition unit is used to obtain the position data and attitude data of each camera, and calculate the rotation matrix and translation matrix of each camera. The position data includes the height of each camera, and the actual distance between the ground position corresponding to the center of the real-time image and the projection position of each camera on the ground. The attitude data includes the pitch angle, yaw angle and roll angle of each camera.

[0187] In one embodiment, the obstacle avoidance device for the warehouse automatic guided vehicle further comprises:

[0188] The ground equation calculation unit is used to calculate the plane equation of the ground in the camera coordinate system of each camera.

[0189] In one embodiment, the ground equation calculation unit includes the following units:

[0190] The feature point acquisition unit is used to acquire each feature point of the ground, and acquire the actual distance between every two feature points, and calculate the coordinates of each feature point in the camera coordinate system of each camera according to the actual distance.

[0191] The equation calculation unit is used to calculate the plane equation of the ground in the camera coordinate system of each camera according to the coordinates of each feature point in the camera coordinate system of each camera.

[0192] In one embodiment, the warehouse automatic guided vehicle obstacle avoidance device further includes a communication network unit, and the communication network unit includes the following units:

[0193] A network testing unit is used to test the 5G communication network, wherein the test includes whether the 5G communication network is connected and whether the transmission rate of the 5G communication network is greater than a preset value.

[0194] A network connectivity unit is used to enter the step of acquiring real-time images captured by each camera installed on the warehouse automatic guided vehicle when the 5G communication network can be connected and the transmission rate of the 5G communication network is greater than the preset value.

[0195] In one embodiment, the obstacle avoidance device for the warehouse automatic guided vehicle further comprises:

[0196] The model training unit is used to train and obtain the object detection model.

[0197] In one embodiment, the model training unit includes the following units:

[0198] The operator image acquisition unit is used to acquire the image of the operator who is authorized to enter the warehouse.

[0199] The warehouse image acquisition unit is used to acquire the warehouse image and the type of each object in the warehouse image marked by the user.

[0200] The feature extraction and model training unit is used to use the full convolution layer of the convolutional neural network to extract features of each object in the operator image and the warehouse image, and to train and obtain the object detection model.

[0201] In one embodiment, the coordinate calculation module 1530 includes the following units:

[0202] The positioning point acquisition unit is used to select the positioning point of each object according to the type of each object.

[0203] The positioning point pixel coordinate acquisition unit is used to acquire the positioning point pixel coordinates of the positioning point of each object in the image coordinate system of the real-time image based on the positioning point of each object.

[0204] The positioning point camera coordinate acquisition unit is used to convert the positioning point pixel coordinates into the positioning point camera coordinates in the camera coordinate system of each camera according to the preset internal parameters of each camera and the plane equation of the ground in the camera coordinate system of each camera.

[0205] The positioning point vehicle coordinate acquisition unit is used to convert the positioning point camera coordinates into the positioning point vehicle coordinates in the vehicle coordinate system of the warehouse automatic guided vehicle according to the preset external parameters of each camera, and obtain the real-time coordinates of each object in the vehicle coordinate system of the warehouse automatic guided vehicle.

[0206] In one embodiment, a warehouse automated guided vehicle is provided, such as Fig.16 As shown, the warehouse automatic guided vehicle includes a camera module 1610, a 5G communication module 1620 and a warehouse automatic guided vehicle module 1630, wherein:

[0207] The camera module 1610 is arranged on the warehouse automatic guided vehicle and is used to collect real-time images of the environment where the warehouse automatic guided vehicle is located.

[0208] The 5G communication module 1620 is used to transmit the real-time image captured by the camera module set on the warehouse automatic guided vehicle to the edge server through the 5G communication network; and receive the obstacle avoidance information calculated by the edge server based on the real-time image when the real-time distance between the warehouse automatic guided vehicle and each object in the real-time image is less than a set threshold through the 5G communication network.

[0209] The warehouse automatic guided vehicle module 1630 is used to take obstacle avoidance measures according to the obstacle avoidance information.

[0210] For the specific definition of the warehouse automatic guided vehicle obstacle avoidance device, please refer to the definition of the warehouse automatic guided vehicle obstacle avoidance method above, which will not be repeated here. Each module in the above-mentioned warehouse automatic guided vehicle obstacle avoidance device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0211] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.17 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store warehouse automatic guided vehicle obstacle avoidance data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a warehouse automatic guided vehicle obstacle avoidance method is implemented.

[0212] Those skilled in the art will understand that Fig.17 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0213] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the warehouse automatic guided vehicle obstacle avoidance method as described above are implemented.

[0214] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the warehouse automatic guided vehicle obstacle avoidance method as described above are implemented.

[0215] Those of ordinary skill in the art can understand 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 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 this 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).

[0216] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0217] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for avoiding obstacles in a warehouse automatic guided vehicle, the method comprising: Based on the 5G communication network, real-time images collected by each camera installed on the warehouse automatic guided vehicle are obtained; Running a preset object detection model to extract features of each object in the real-time image, and classifying each object based on the features of each object; each object includes an operator, a cargo, or a vehicle; The ankle of the operator is used as a positioning point, and the lower middle part of the vehicle or the cargo is used as a positioning point to obtain the pixel coordinates of the positioning point of each object in the image coordinate system of the real-time image; according to the preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera, the pixel coordinates of the positioning point of each object are converted into the camera coordinates of the positioning point in the camera coordinate system of each camera, and the camera coordinates of the positioning point are converted into the real-time coordinates in the vehicle coordinate system of the warehouse automatic guided vehicle; Based on the real-time coordinates, the real-time distance between the warehouse automatic guided vehicle and each of the objects is calculated. When the real-time distance is less than a set threshold, obstacle avoidance information is output to the warehouse automatic guided vehicle based on the 5G communication network.

2. The method according to claim 1, characterized in that After acquiring the real-time images collected by the cameras arranged on the warehouse automatic guided vehicle based on the 5G communication network, the method includes: The real-time images captured by each camera are synchronized and calibrated. The synchronization is to synchronize the real-time images captured by each camera according to the acquisition time of the real-time images. The calibration is to calibrate the real-time images captured by each camera according to preset camera calibration parameters.

3. The method according to claim 2, characterized in that Before synchronizing and calibrating the real-time images collected by each camera, the method includes: The camera calibration parameters of each camera are obtained, wherein the camera calibration parameters include internal parameters and external parameters of each camera, the internal parameters include an intrinsic parameter matrix and a distortion parameter of each camera, and the external parameters include a rotation matrix and a translation matrix of each camera.

4. The method according to claim 3, characterized in that The obtaining of camera calibration parameters of each of the cameras comprises: Extracting corner points in the real-time image using a chessboard method, calculating pixel coordinates of each corner point, and obtaining an intrinsic parameter matrix and distortion parameters of each camera; The position data and attitude data of each camera are obtained, and the rotation matrix and translation matrix of each camera are calculated. The position data include the height of each camera, and the actual distance between the ground position corresponding to the center of the real-time image and the projection position of each camera on the ground. The attitude data include the pitch angle, yaw angle and roll angle of each camera.

5. The method according to claim 2, characterized in that: After synchronizing and calibrating the real-time images collected by each camera, the method further comprises: The plane equation of the ground in the camera coordinate system of each camera is calculated.

6. The method according to claim 5, characterized in that The calculating the plane equation of the ground in the camera coordinate system of each camera includes: Acquire each feature point of the ground, and acquire the actual distance between every two feature points, and calculate the coordinates of each feature point in the camera coordinate system of each camera according to the actual distance; The plane equation of the ground in the camera coordinate system of each camera is calculated according to the coordinates of each feature point in the camera coordinate system of each camera.

7. The method according to claim 1, characterized in that Before acquiring the real-time images collected by the cameras arranged on the warehouse automatic guided vehicle based on the 5G communication network, the method includes: Testing the 5G communication network, wherein the testing includes whether the 5G communication network is connected and whether the transmission rate of the 5G communication network is greater than a preset value; When the 5G communication network can be connected and the transmission rate of the 5G communication network is greater than the preset value, the step of obtaining real-time images captured by each camera installed on the warehouse automatic guided vehicle is entered.

8. The method according to claim 5, characterized in that After calculating the plane equation of the ground in the camera coordinate system of each camera, the method further comprises: The object detection model is trained and obtained.

9. The method according to claim 8, characterized in that The training and obtaining of the object detection model comprises: Obtain images of operators authorized to enter the warehouse; Acquire a warehouse image and the type of each object in the warehouse image annotated by a user; The fully convolutional layer of the convolutional neural network is used to extract features of each object in the operator image and the warehouse image, and the object detection model is trained and obtained.

10. The method according to claim 1, characterized in that The method converts the pixel coordinates of the positioning points of each object into the camera coordinates of the positioning points in the camera coordinate system of each camera according to the preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera, and converts the camera coordinates of the positioning points into real-time coordinates in the vehicle coordinate system of the warehouse automatic guided vehicle, including: According to the preset internal parameters of each of the cameras and the plane equation of the ground in the camera coordinate system of each of the cameras, the pixel coordinates of the positioning point are converted into the camera coordinates of the positioning point in the camera coordinate system of each of the cameras; According to the preset external parameters of each of the cameras, the camera coordinates of the positioning point are converted into the vehicle coordinates of the positioning point in the vehicle coordinate system of the warehouse automatic guided vehicle, and the real-time coordinates of each of the objects in the vehicle coordinate system of the warehouse automatic guided vehicle are obtained.

11. An obstacle avoidance device for a warehouse automatic guided vehicle, characterized in that: The device comprises: An image acquisition module, used to acquire real-time images collected by each camera installed on the warehouse automatic guided vehicle based on a 5G communication network; An image classification module, used to run a preset object detection model, extract features of each object in the real-time image, and classify each object based on the features of each object; each object includes an operator, a cargo, or a vehicle; A coordinate calculation module is used to use the ankle of the operator as a positioning point and the lower middle part of the vehicle or cargo as a positioning point to obtain the pixel coordinates of the positioning point of each object in the image coordinate system of the real-time image; according to the preset camera calibration parameters and the plane equation of the ground in the camera coordinate system of each camera, the pixel coordinates of the positioning point of each object are converted into the camera coordinates of the positioning point in the camera coordinate system of each camera, and the camera coordinates of the positioning point are converted into the real-time coordinates in the vehicle coordinate system of the warehouse automatic guided vehicle; An information output module is used to calculate the real-time distance between the warehouse automatic guided vehicle and each of the objects based on the real-time coordinates, and when the real-time distance is less than a set threshold, output obstacle avoidance information to the warehouse automatic guided vehicle based on the 5G communication network.

12. A warehouse automatic guided vehicle, characterized in that: The warehouse automatic guided vehicle comprises: A camera module, arranged on the warehouse automatic guided vehicle, for collecting real-time images of the environment in which the warehouse automatic guided vehicle is located; A 5G communication module, used to transmit the real-time image collected by the camera module set on the warehouse automatic guided vehicle to the edge server through the 5G communication network; and receive the obstacle avoidance information calculated by the edge server based on the real-time image when the real-time distance between the warehouse automatic guided vehicle and each object in the real-time image is less than a set threshold through the 5G communication network; each of the objects includes an operator, a cargo or a vehicle; the obstacle avoidance information is calculated by the edge server on the real-time image using any one of the methods of claims 1-10; The warehouse automatic guided vehicle module is used to take obstacle avoidance measures according to the obstacle avoidance information.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.