An intelligent handling robot obstacle recognition method and system
By combining the optical flow analysis and debounce processing of image acquisition equipment and laser radar, the problem of low obstacle recognition accuracy of intelligent handling robots in uneven scenes is solved, and higher obstacle recognition accuracy is achieved.
Patent Information
- Application Number
- CN202411111533.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-14
AI Technical Summary
Intelligent handling robots have low obstacle recognition accuracy due to mechanical vibration in uneven scenes, and are significantly affected by ground vibrations on the site, making it difficult to accurately identify obstacles during movement.
Combining image acquisition equipment and lidar, determine the moving object vector and stationary object vector in the optical flow diagram through optical flow analysis, calculate the motion offset degree and central symmetry deviation factor under the ideal state, and debounce the moving object vector to improve the obstacle object recognition accuracy.
Effectively analyze and eliminate the impact of robot jitter on obstacle recognition, improve recognition accuracy, and avoid misleading recognition results caused by jitter.
Smart Images

Figure CN118629015B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition, and in particular to an obstacle recognition method and system for an intelligent transport robot. Background Art
[0002] The intelligent handling robot is a robot equipped with autonomous navigation, perception recognition and intelligent control system, which is designed for automated handling and transportation tasks. During intelligent transportation, due to the complex structure of the factory, it is necessary to identify whether there are obstacles in the robot's transportation. Obstacles usually include static obstacles and obstacles in motion. Obstacles in motion require a more accurate analysis effect.
[0003] In the related technology, the recognition and analysis of obstacles during the movement are realized based on the changes in the images collected at adjacent moments. In this way, due to the uneven ground of the scene causing movement vibration, the robot will also produce corresponding mechanical vibrations. Due to the vibration at adjacent moments, the obstacle recognition directly based on the image dimension is easily affected, which leads to low obstacle recognition accuracy. Summary of the invention
[0004] In order to solve the technical problem that the robot will also generate corresponding mechanical vibrations due to the uneven ground of the scene in the related art, and the obstacle recognition directly based on the image dimension is easily affected due to the vibration at adjacent moments, thereby resulting in low obstacle recognition accuracy, the present invention provides an intelligent handling robot obstacle recognition method and system, and the technical solutions adopted are as follows:
[0005] The present invention proposes an obstacle recognition method for an intelligent handling robot, wherein the intelligent handling robot is equipped with an image acquisition device and a laser radar, and the method comprises:
[0006] Obtaining grayscale images of consecutive frames acquired by an image acquisition device and distance values between the robot and each point in the scene acquired by a laser radar; performing optical flow analysis on the grayscale images of adjacent frames to determine an optical flow map, wherein the optical flow map has optical flow vectors; dividing the optical flow vectors into moving object vectors and stationary object vectors;
[0007] Determine the degree of motion deviation of each stationary object in adjacent frames of grayscale images when the robot is moving under ideal conditions;
[0008] Taking other stationary object vectors that coincide or intersect on the straight line corresponding to the line connecting the starting point of each stationary object vector in the optical flow map and the center point of the optical flow map as comparison vectors, performing vector analysis on each of the stationary object vectors and the corresponding comparison vectors to determine the central symmetry deviation factor of the optical flow map;
[0009] Based on the degree of motion deviation in the ideal state, the central symmetry deviation factor and the stationary object vector, the robot motion jitter analysis is performed to determine the jitter deviation vector; according to the jitter deviation vector, all the moving object vectors in the optical flow map are de-jittered to determine the identification vector corresponding to each moving object vector, and obstacles are identified based on all the identification vectors.
[0010] Furthermore, the step of determining the movement deviation degree of each stationary object in the adjacent frame grayscale images when the robot is moving under an ideal state includes:
[0011] Perform optical flow simulation analysis under ideal conditions to obtain a simulation graph of optical flow analysis;
[0012] According to the mapping relationship between the simulation vector of each stationary object in the simulation diagram and the center point of the simulation diagram, the projection vector of each simulation vector is determined; according to the lengths of all simulation vectors and the corresponding projection vectors, the degree of motion deviation in the ideal state is determined.
[0013] Furthermore, the method for obtaining the projection vector of the simulation vector includes:
[0014] A line connecting the simulation vector and the center point of the simulation graph is determined as the simulation line, and a projection of the simulation vector on the simulation line is determined as the projection vector of the simulation vector.
[0015] Furthermore, determining the degree of motion deviation under an ideal state according to the lengths of all simulation vectors and corresponding projection vectors includes:
[0016] Determine any constant value as an initial offset factor, and use the product of the initial offset factor and the length corresponding to any simulation vector as the simulation distance of the corresponding simulation vector;
[0017] Determining a shift coefficient of the simulated vector according to a difference between the simulated distance and the length of the projection vector itself;
[0018] The offset coefficients of all simulated vectors are forwardly fused to obtain an offset residual, and the initial offset factor is adjusted until the value of the offset residual is minimized, and the corresponding initial offset factor is used as the degree of motion offset.
[0019] Furthermore, the vector analysis includes position analysis and length analysis, and vector analysis is performed on each of the stationary object vectors and the corresponding comparison vector to determine the central symmetry deviation factor of the optical flow map, including:
[0020] Determine a mapping coefficient between the stationary object vector and the comparison vector according to the distance values between the starting point of the stationary object vector and the starting point of the comparison vector and the robot respectively;
[0021] The vector obtained by multiplying the comparison vector and the mapping coefficient is used as the mapping vector;
[0022] Calculate the variance of the module lengths of the stationary object vector and all its mapping vectors to obtain a symmetry coefficient;
[0023] The sum of the symmetry coefficients of all stationary object vectors is normalized to obtain the central symmetry deviation factor of the optical flow map.
[0024] Furthermore, the method for obtaining the mapping coefficients of the stationary object vector and the comparison vector includes:
[0025] Taking the distance between the starting point of the stationary object vector and the robot as the first distance;
[0026] Taking the distance between the starting point of the comparison vector and the robot as the second distance;
[0027] The ratio of the first distance to the second distance is used as a mapping coefficient between the stationary object vector and the comparison vector.
[0028] Furthermore, the method for obtaining the jitter deviation vector includes:
[0029] Taking any preset vector as an initial jitter vector, and taking the ratio of the initial jitter vector to the central symmetry deviation factor as a first jitter vector;
[0030] The product of the motion deviation degree in an ideal state and any of the stationary object vectors is used as a motion deviation vector;
[0031] Taking the vector sum of the first jitter vector and the motion offset vector as the jitter influence vector of the stationary object vector;
[0032] Obtaining a jitter residual of each stationary object vector according to a modulus length of a vector difference between the jitter influence vector and the stationary object vector;
[0033] The sum of the jitter residuals of all stationary object vectors is taken as the total jitter residual;
[0034] The initial jitter vector is adjusted, and when the value of the total jitter residual is the smallest, the corresponding initial jitter vector is used as the jitter deviation vector.
[0035] Furthermore, the method for acquiring the identification vector corresponding to the moving object vector includes:
[0036] The vector difference between the moving object vector and the jitter deviation vector is used as an identification vector.
[0037] Further, dividing the optical flow vector into a moving object vector and a stationary object vector includes:
[0038] The laser radar is used to analyze the current scene, determine the stationary objects and the moving objects, and use the optical flow vector corresponding to the point on the stationary object as the starting point as the stationary object vector, and use the optical flow vector corresponding to the point on the moving object as the starting point as the moving object vector, wherein the optical flow vector is the vector information in the optical flow field, and the displacement vector of the point representing the same spatial position in the grayscale image of the previous frame and the grayscale image of the next frame in two adjacent frames is used as the optical flow vector.
[0039] The present invention also provides an intelligent transport robot obstacle recognition system, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of an intelligent transport robot obstacle recognition method as described in any one of the foregoing items when executing the computer program.
[0040] The present invention has the following beneficial effects:
[0041] The embodiment of the present invention combines an image acquisition device and a laser radar, obtains grayscale images of continuous frames based on the image acquisition device, and obtains the distance values between the robot and each point in the scene based on the laser radar; based on the degree of motion deviation of stationary objects in the grayscale images of adjacent frames, the robot motion deviation is analyzed; based on the perspective principle of imaging, a central symmetry analysis is performed to determine the central symmetry deviation factor of the optical flow graph, and the central symmetry deviation factor is a jitter analysis performed in combination with the image imaging perspective relationship; and then the jitter deviation vector caused by the jitter of the robot itself is obtained by combining the degree of motion deviation and the central symmetry deviation factor, and a jitter elimination process is performed to realize obstacle recognition. The present application can effectively realize the analysis of the impact of jitter, thereby avoiding the misleading of moving object obstacle recognition caused by the jitter of the robot itself, and improving the recognition accuracy of obstacle recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A flow chart of an obstacle recognition method for an intelligent transport robot provided by one embodiment of the present invention;
[0044] Figure 2A schematic diagram of central diffusion provided by an embodiment of the present invention;
[0045] Figure 3 A schematic diagram of a scenario provided by an embodiment of the present invention;
[0046] Figure 4 A flowchart of a method for obtaining a motion offset degree provided by an embodiment of the present invention;
[0047] Figure 5 A flow chart of a method for obtaining a motion deviation degree provided by an embodiment of the present invention;
[0048] Figure 6 A flow chart of a method for obtaining a central symmetric deviation factor provided by an embodiment of the present invention;
[0049] Figure 7 A structural diagram of an intelligent transport robot obstacle recognition system provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the obstacle recognition method of an intelligent handling robot proposed by the present invention, its specific implementation, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0051] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0052] The specific scheme of the obstacle recognition method and system for an intelligent transport robot provided by the present invention is described in detail below with reference to the accompanying drawings.
[0053] See also Figure 1 , which shows a flow chart of an obstacle recognition method for an intelligent transport robot provided by an embodiment of the present invention, the method comprising:
[0054] S101: Obtain grayscale images of continuous frames acquired by an image acquisition device, and distance values between the robot and each point in the scene acquired by a laser radar; perform optical flow analysis on grayscale images of adjacent frames to determine an optical flow map having optical flow vectors; and divide the optical flow vectors into moving object vectors and stationary object vectors.
[0055] A specific implementation scenario of the present invention is an intelligent transport robot scenario, in which a laser radar and an image acquisition device are configured on the intelligent transport robot, wherein the image acquisition device can be specifically, for example, a high-definition camera. The high-definition camera can be used to capture original images of continuous frames, and the original images are preprocessed to obtain grayscale images.
[0056] The image preprocessing in the embodiments of the present invention may specifically include, for example, image denoising, image grayscale processing, and semantic segmentation and other preprocessing methods, wherein the image denoising may specifically include, for example, mean denoising, and the image grayscale processing may specifically include, for example, mean grayscale processing. Of course, in other embodiments of the present invention, the technical means used for preprocessing may also be adjusted as needed to meet the actual usage scenarios, and no further elaboration or limitation is given for this.
[0057] Among them, when the image acquisition device performs continuous frame acquisition, multiple frame rates can be set such as 30 frames per second or 24 frames per second, and there is no restriction on this.
[0058] It should be noted that LiDAR can be used to perform position analysis on a scene. By installing LiDAR on a robot, the position analysis can be made more accurate, thereby making obstacle recognition more accurate.
[0059] It should be noted that in the embodiment of the present invention, since the road conditions on which the robot itself operates are more complex and it is more affected by obstacles during movement, a more sensitive and accurate response is required when identifying moving obstacles. It is necessary not only to analyze the current moment, but also to predict the moving obstacles in the scene where the robot will be located at future moments.
[0060] The optical flow vector is the vector information in the optical flow field, and the displacement vector representing the same spatial position point in the previous grayscale image and the next grayscale image in two adjacent frames is used as the optical flow vector. The same spatial position can be determined by morphological analysis and template matching, or a recognition model can be used to match the trained feature points. The relevant technology is well known to those skilled in the art and will not be further described.
[0061] Among them, optical flow analysis is the motion analysis of the same point in two adjacent grayscale images. Since the robot itself is moving and there are moving objects in the obstacles, the motion state of both parties can be effectively analyzed through optical flow analysis. The optical flow graph is the vector diagram of the optical flow field, and the optical flow vector is the vector information in the optical flow field. The acquisition process is a technology well known to those skilled in the art. The motion analysis of objects can be realized through optical flow technology.
[0062] In order to obtain the motion offset caused by the robot's forward movement in the adjacent grayscale images, the optical flow method is first used to detect the optical flow field of the previous needle and the current frame. The optical flow method is a technology that estimates pixel displacement by tracking feature points in the image. This method first detects and tracks the key feature points in the image, and then uses the displacement information between these feature points to estimate the optical flow; the obtained optical flow field can show the displacement vector of the feature points of the object in the previous grayscale image and the current grayscale image. Among them, the feature point is the selected point, which can be specifically the corner point of the object, or a randomly selected point on the object; the displacement vector is the optical flow vector.
[0063] In an embodiment of the present invention, the laser radar can be used to analyze the current scene to determine stationary objects and moving objects, and the optical flow vector corresponding to the point on the stationary object as the starting point is used as the stationary object vector, and the optical flow vector corresponding to the point on the moving object as the starting point is used as the moving object vector.
[0064] Due to the changes in the scenes under adjacent frames, the lidar analysis results are more accurate. Therefore, the division of moving objects and stationary objects can be achieved based on the changes in the distance values obtained by the lidar. The optical flow vector corresponding to the point position of the moving object in the three-dimensional optical flow field as the starting point is the moving object vector, and the optical flow vector corresponding to the point position on the stationary object as the starting point is the stationary object vector.
[0065] It is understandable that, combined with Figure 3 Conduct a specific analysis. Figure 3 A schematic diagram of a scenario provided by an embodiment of the present invention; the robot will inevitably vibrate during operation, such as the vibration caused by the operation of machine parts such as motors in the machine body, or Figure 3 The jitters caused by the uneven road surface in the scene will affect the instantaneous scene analysis, and thus mislead the obstacle identification of moving objects. Therefore, the present invention aims to combine the image dimension corresponding to the image acquisition device and the position change dimension corresponding to the laser radar to perform obstacle identification analysis. The specific analysis process is shown in the subsequent embodiments.
[0066] S102: Determine the degree of motion deviation of each stationary object in adjacent frame grayscale images when the robot is moving in an ideal state.
[0067] Among them, combined Figure 2 , Figure 2A schematic diagram of center diffusion provided for an embodiment of the present invention; between adjacent grayscale images, since the robot is moving forward, the same object in the adjacent grayscale images will diffuse outward along the center of the image; since the robot is moving at a constant speed and the camera shooting interval is fixed, under ideal conditions, the changes of objects in the scene between adjacent frames are the same; however, due to vibrations of the robot and other conditions, the motion offsets of stationary objects in adjacent frames are inconsistent; therefore, it is necessary to obtain the overall motion offset in the grayscale image based on the overall change characteristics of the stationary objects in the grayscale images of adjacent frames.
[0068] It should be noted that the ideal state in the embodiment of the present invention is a state corresponding to a scene containing no moving objects but only stationary objects. In this state, there is no interference from moving objects, which makes the overall jitter analysis more accurate.
[0069] in, Figure 4 A flowchart of a method for obtaining a motion offset degree provided by an embodiment of the present invention, combined with Figure 4 Conduct specific analysis.
[0070] S401: Performing optical flow simulation analysis under an ideal state to obtain a simulation graph of the optical flow analysis.
[0071] Among them, since the ideal state represents the state corresponding to only stationary objects in the scene, the optical flow vectors corresponding to all moving objects are deleted, and the remaining optical flow map is the simulation map of the optical flow analysis.
[0072] S402: Determine the projection vector of each simulation vector according to the mapping relationship between the simulation vector of each stationary object in the simulation image and the center point of the simulation image; determine the degree of motion deviation in an ideal state according to the lengths of all simulation vectors and corresponding projection vectors.
[0073] The center point of the simulation image is the midpoint where the two diagonal lines of the image intersect. Figure 2 , the position of the midpoint of the image is fixed when the robot moves in a straight line, and when the robot does not produce unnecessary vibration, the simulation diagram also presents the characteristics of central symmetry. Therefore, the mapping analysis between the simulation vector and the center point is performed through the projection vector.
[0074] Furthermore, in some embodiments of the present invention, a line connecting the simulation vector and the center point of the simulation graph is determined as the simulation line, and a projection of the simulation vector on the simulation line is determined as the projection vector of the simulation vector.
[0075] In the embodiment of the present invention, since the robot itself may shake, the corresponding simulation vector is not strictly executed. Figure 2 The spatial relationship shown requires a specific analysis of the simulated vectors under jitter conditions.
[0076] In the embodiment of the present invention, the line connecting the starting point and the center point of the simulation diagram is used as the reference line of the mapping, and the projection of the simulation vector on the simulation line is used as the projection vector of the simulation vector. The calculation formula of the projection vector can be specifically, for example, as follows:
[0077]
[0078] In the formula, represents the projection vector of the ith simulation vector, represents the ith simulation vector, represents the simulated line corresponding to the ith simulated vector, Represents the cosine value of the projection angle of the i-th simulated vector on the simulated line.
[0079] The projection process in the embodiment of the present invention is a mapping process of a vector on a straight line. Ideally, when the intelligent handling robot moves forward, objects between adjacent frames of the grayscale image it collects will diffuse from the center point of the image to the outside. However, because the robot has a jitter deviation, the optical flow vector is offset. Therefore, the projection vector of each optical flow obtained by the above operation has a direction that is the direction of the optical flow in the ideal state, and its modulus changes due to the jitter offset. The motion offset can be analyzed based on this change.
[0080] Further, in some embodiments of the present invention, see Figure 5 , Figure 5 A flow chart of a method for obtaining a motion offset degree provided by an embodiment of the present invention includes:
[0081] S501: Determine any constant value as an initial offset factor, and use the product of the initial offset factor and the length corresponding to any simulation vector as the simulation distance of the corresponding simulation vector.
[0082] Among them, the initial offset factor is a constant value when analyzing the degree of motion offset. In order to analyze the degree of motion offset, the embodiment of the present invention can select any constant value as the initial offset factor, and then adjust the initial offset factor to calculate different offset residuals, so as to perform specific analysis based on the obtained offset residuals. The selection of the initial offset factor can preset a range, and select the corresponding constant value from the range. For example, (0, 50), {1, 2, 3, ..., 48, 49} can be used as different initial offset factors to perform a change analysis of the offset residuals, so as to determine the optimal one, and there is no restriction on this.
[0083] In the embodiment of the present invention, the length corresponding to the simulated vector is the modulus length of the simulated vector itself, and the product of the initial offset factor and the modulus length corresponding to the simulated vector is calculated to obtain the simulated distance.
[0084] S502: Determine an offset coefficient of the simulated vector according to the difference between the simulated distance and the length of the projection vector itself.
[0085] The difference in the embodiment of the present invention is the absolute value of the difference. The length of the projection vector itself represents the modulus of the projection vector itself. The simulated distance and the modulus of the projection vector itself have a certain mapping relationship. In order to analyze the mapping relationship, the absolute value of the difference between the simulated distance and the length of the projection vector itself can be calculated to obtain the offset coefficient.
[0086] S503: forward fusion processing is performed on the offset coefficients of all simulated vectors to obtain an offset residual, and the initial offset factor is adjusted until the value of the offset residual is minimized, and the corresponding initial offset factor is used as the motion offset degree.
[0087] Among them, positive fusion is a positively correlated fusion relationship. Among them, a positive correlation relationship means that the dependent variable will increase as the independent variable increases, and the dependent variable will decrease as the independent variable decreases. The specific relationship can be a multiplication relationship, an addition relationship, and the idempotence of an exponential function, which is determined by actual application. The present invention conducts a specific analysis based on the addition relationship.
[0088] Combining the analysis of steps S501 to S503, the corresponding analysis formula of the motion offset degree may be specifically, for example, as follows:
[0089]
[0090] In the formula, represents the offset residual, Represents the projection vector of the i-th simulated vector The module length, represents the initial offset factor, represents the modulus of the ith simulation vector, Represents the simulated distance, Indicates taking the absolute value, Represents the total number of all simulated vectors.
[0091] The simulated image under ideal conditions will be offset due to the operation of the robot, and the offset of the feature points of each part is also different. The direction of the offset is the direction of the projection vector from the center point of the image to the feature point. For the outer points in the image, the closer they are to the outside of the image, the faster the points diverge outward. The line connecting the simulation vector and the center point of the simulation image can be determined as the simulation line, and the projection of the simulation vector on the simulation line is used as the projection vector of the simulation vector.
[0092] Since the simulated vector modulus of each static object is proportional to the projected vector modulus in an ideal situation, different initial offset factors are preset. , the offset residual is calculated for different initial offset factors. When the offset residual value corresponding to a certain initial offset factor is the smallest, the corresponding initial offset factor can be used as the degree of motion offset.
[0093] The modulus of the simulated vector will increase as the distance between the starting point of the simulated vector and the center point of the image increases. For example, the robot also runs forward 1 meter. From the changes in the two frames of images taken by the camera on the robot's head, the points close to the center point have smaller changes in image position between the two frames before and after the run, while the points farther from the center point, such as points closer to the edge of the image, have larger changes in image position between the two frames before and after the run. This effect is mainly caused by spatial perspective.
[0094] In order to eliminate the influence of this spatial perspective, the simulated vector modulus can be weighted according to the initial offset factor to obtain the simulated distance of the simulated vector, and the simulated distance can be compared with the original projection vector modulus to calculate the simulated distance. The projection vector of the ith simulated vector Length of mold The absolute value of the difference is taken as the offset residual under the corresponding i-th simulated vector. Because the camera shake causes all vectors in the optical flow map to be affected by the same shake offset, it is necessary to count the sum of the residuals of all simulated vectors to obtain the offset residual C.
[0095] When the overall offset residual C is the smallest, it means that the initial offset factor is more ideal; the corresponding initial offset factor is finally used as the degree of motion offset. Thus, the offset generated by the robot movement is analyzed. The larger the degree of motion offset, the greater the motion offset of the robot itself in the time period of two adjacent frames.
[0096] S103: taking other stationary object vectors that overlap or intersect on the straight line corresponding to the line connecting the starting point of each stationary object vector in the optical flow map and the center point of the optical flow map as comparison vectors, performing vector analysis on each stationary object vector and the corresponding comparison vector, and determining the central symmetry deviation factor of the optical flow map.
[0097] Among them, the straight line formed by the line connecting the starting point of the stationary object vector and the center point of the optical flow map intersects or coincides with a certain other stationary object vector on this straight line, which indicates that the corresponding other stationary object vector is a vector associated with the stationary object vector. Taking the other stationary object vector as a comparison vector, the overall distribution of the stationary object vector and the corresponding comparison vector, when normal and without jitter, is centrally symmetric, that is, the sum of the vectors is 0, and vector analysis is performed based on this.
[0098] Further, in some embodiments of the present invention, the vector analysis includes position analysis and length analysis. Figure 6 Conduct a specific analysis. Figure 6 A flow chart of a method for obtaining a central symmetric deviation factor provided by an embodiment of the present invention; performing vector analysis on each stationary object vector and the corresponding comparison vector to determine the central symmetric deviation factor of the optical flow map, including:
[0099] S601: Determine a mapping coefficient between the stationary object vector and the comparison vector according to the distance values between the starting point of the stationary object vector and the starting point of the comparison vector and the robot respectively.
[0100] Combination Figure 2 An analysis is performed. Since the closer the distance to the robot is, the more stable the corresponding mapping relationship is, therefore, in the embodiment of the present invention, a mapping analysis is performed through the distance value between the starting point of the stationary object vector and the robot and the distance value between the starting point of the comparison vector and the robot.
[0101] Furthermore, in some embodiments of the present invention, a method for obtaining the mapping coefficient between a stationary object vector and a comparison vector includes: taking the distance value between the starting point of the stationary object vector and the robot as the first distance; taking the distance value between the starting point of the comparison vector and the robot as the second distance; and taking the ratio of the first distance to the second distance as the mapping coefficient between the stationary object vector and the comparison vector.
[0102] In the embodiment of the present invention, the mapping relationship is basically a linear mapping, that is, the mapping between the distance and the corresponding vector change is a linear mapping relationship. By determining the first distance and the second distance, a linear mapping relationship is obtained according to the ratio of the first distance and the second distance, and the linear mapping relationship is used as a mapping coefficient.
[0103] The mapping coefficient can effectively characterize the change of the stationary object vector and the contrast vector in adjacent frames.
[0104] S602: A vector obtained by multiplying the comparison vector and the mapping coefficient is used as a mapping vector.
[0105] In an embodiment of the present invention, by calculating the product of the contrast vector and the mapping coefficient, the contrast vector can be mapped and analyzed to obtain a mapping vector. It can be understood that under normal circumstances without jitter, the mapping vector is a vector with the same length and direction as the stationary object vector, or a vector with the same length and opposite direction as the stationary object vector.
[0106] S603: Calculate the variance of the module lengths of the stationary object vector and all its mapping vectors to obtain a symmetry coefficient.
[0107] Since in a normal non-jittering situation, the mapping vector is a vector with the same length and direction as the stationary object vector, or a vector with the same length and opposite direction as the stationary object vector, and the smaller the jitter effect, the smaller the change in the corresponding vector modulus, and the smaller the final variance value. The embodiment of the present invention calculates the variance of the modulus of the stationary object vector and all its mapping vectors, and uses the variance as a discrete analysis result to obtain a symmetry coefficient. The smaller the symmetry coefficient, the stronger the symmetry effect on the straight line corresponding to the line connecting the stationary object vector starting point and the center point of the optical flow map.
[0108] S604: Normalize the sum of the symmetry coefficients of all stationary object vectors to obtain a central symmetry deviation factor of the optical flow map.
[0109] In the embodiment of the present invention, the symmetry coefficients of all stationary object vectors are summed. The larger the sum is, the larger the value of the central symmetry deviation factor of the optical flow graph is, indicating that the symmetry effect of the optical flow graph itself is worse, that is, the more obvious the jitter is at that moment, and the stronger the deviation effect is.
[0110] S104: Perform robot motion jitter analysis based on the degree of motion deviation, central symmetry deviation factor and stationary object vector under the ideal state to determine the jitter deviation vector; de-jitter all moving object vectors in the optical flow map based on the jitter deviation vector to determine the identification vector corresponding to each moving object vector, and identify obstacles based on all identification vectors.
[0111] In the embodiment of the present invention, the jitter deviation vector is the vector influence caused by the jitter effect. It can be understood that the optical flow vector actually generated by the jitter can be decomposed into a jitter deviation vector and a normal vector. The normal vector is the vector corresponding to the optical flow map that is not affected by the jitter deviation, and the normal vector can be used to implement motion analysis to improve the accuracy of motion analysis.
[0112] The method for obtaining a jitter deviation vector includes: taking any preset vector as an initial jitter vector, and taking the ratio of the initial jitter vector to the central symmetry deviation factor as a first jitter vector; taking the product of the motion deviation degree in an ideal state and any stationary object vector as a motion deviation vector; taking the vector sum of the first jitter vector and the motion deviation vector as a jitter influence vector of a stationary object vector; obtaining the jitter residual of each stationary object vector according to the modulus of the vector difference between the jitter influence vector and the stationary object vector; taking the sum of the jitter residuals of all stationary object vectors as a total jitter residual; and adjusting the initial jitter vector, and when the value of the total jitter residual is the smallest, taking the corresponding initial jitter vector as a jitter deviation vector.
[0113] In the embodiment of the present invention, the jitter deviation vector is calculated by determining an initial jitter vector, and then continuously adjusting the initial jitter vector until the total jitter residual is minimized to obtain the jitter deviation vector. The corresponding calculation formula includes:
[0114]
[0115] In the formula, represents the total jitter residual, represents the index of the stationary object vector, represents the total number of stationary object vectors, Indicates stationary object vectors, Indicates the degree of motion deviation. represents the motion offset vector, represents the initial jitter vector, represents the central symmetric deviation factor, Represents the first jitter vector.
[0116] Therefore, by continuously adjusting the initial jitter vector The length and direction of the total jitter residual are calculated , in the total jitter residual When the value of is the smallest, the corresponding initial jitter vector as the jitter deviation vector.
[0117] The impact of jitter is analyzed and the vectors generated by the jitter during the operation of the robot are extracted to facilitate the subsequent jitter elimination process.
[0118] Furthermore, in some embodiments of the present invention, a method for acquiring an identification vector corresponding to a moving object vector includes: taking a vector difference between the moving object vector and a jitter deviation vector as the identification vector.
[0119] The optical flow vector actually generated by jitter can be decomposed into a jitter deviation vector and a normal vector, and the normal vector is the identification vector. In the embodiment of the present invention, the vector difference between the moving object vector and the jitter deviation vector is used as the identification vector, thereby achieving vector de-jittering.
[0120] Among them, the recognition vector is the vector generated by the robot's recognition of the accurate movement of moving objects in the surrounding scene. It is not affected by the robot's shaking, which enables the robot to have higher accuracy in subsequent path planning, driving, danger perception and other levels.
[0121] Furthermore, in some embodiments of the present invention, obstacle identification is performed based on all recognition vectors, including: predicting and analyzing the movement of the moving object based on all recognition vectors to obtain a predicted route of the moving object at a future moment; and identifying obstacles based on the overlap between the predicted route and the travel route preset by the robot.
[0122] Among them, predictive analysis is performed in combination with the movement of moving objects in the scene. This process is a technology well known to technical personnel in this field. Through data analysis and data prediction, the predicted route of the moving objects in the scene at future moments can be obtained, and then multiple applications such as collision judgment and path avoidance can be realized, thereby realizing obstacle recognition of moving objects.
[0123] The embodiment of the present invention combines an image acquisition device and a laser radar, obtains grayscale images of continuous frames based on the image acquisition device, and obtains the distance values between the robot and each point in the scene based on the laser radar; based on the degree of motion deviation of stationary objects in the grayscale images of adjacent frames, the robot's motion deviation is analyzed; based on the perspective principle of imaging, a central symmetry analysis is performed to determine the central symmetry deviation factor of the optical flow map, and the central symmetry deviation factor is a jitter analysis performed in combination with the perspective relationship of image imaging; and then the jitter deviation vector caused by the jitter of the robot itself is obtained by combining the degree of motion deviation and the central symmetry deviation factor, and a jitter elimination process is performed to realize obstacle recognition. The present application can effectively realize the analysis of the impact of jitter, thereby avoiding the misleading of moving object obstacle recognition caused by the jitter of the robot itself, and improving the recognition accuracy of obstacle recognition.
[0124] The present invention also provides an intelligent handling robot obstacle recognition system, see Figure 7 , Figure 7 A structural diagram of an intelligent transport robot obstacle recognition system provided for one embodiment of the present invention, wherein the system 600 includes a memory 601, a processor 602, and a computer program 603 stored in the memory 601 and executable on the processor 602, and when the processor 602 executes the computer program 603, the steps of the aforementioned intelligent transport robot obstacle recognition method are implemented.
[0125] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is run on a computer, the computer executes the above-mentioned related method steps to implement an intelligent transport robot obstacle recognition method provided in the above embodiment.
[0126] This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement an intelligent transport robot obstacle recognition method provided in the above embodiment.
[0127] Among them, the system, computer-readable storage medium or computer program product provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0128] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0129] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. An obstacle recognition method for an intelligent handling robot, characterized in that: The intelligent handling robot is equipped with an image acquisition device and a laser radar, and the method comprises: Obtaining grayscale images of consecutive frames acquired by an image acquisition device and distance values between the robot and each point in the scene acquired by a laser radar; performing optical flow analysis on the grayscale images of adjacent frames to determine an optical flow map, wherein the optical flow map has optical flow vectors; dividing the optical flow vectors into moving object vectors and stationary object vectors; Determine the degree of motion deviation of each stationary object in the grayscale images of adjacent frames when the robot is moving under an ideal state, wherein the ideal state represents a state corresponding to a scene containing only stationary objects; Taking other stationary object vectors that coincide or intersect on the straight line corresponding to the line connecting the starting point of each stationary object vector in the optical flow map and the center point of the optical flow map as comparison vectors, performing vector analysis on each of the stationary object vectors and the corresponding comparison vectors to determine the central symmetry deviation factor of the optical flow map; Combined with the degree of motion deviation under the ideal state, the central symmetry deviation factor and the stationary object vector, the robot motion jitter analysis is performed to determine the jitter deviation vector; all moving object vectors in the optical flow map are de-jittered according to the jitter deviation vector, the identification vectors corresponding to each moving object vector are determined, and obstacle identification is performed according to all the identification vectors; The vector analysis includes position analysis and length analysis. The vector analysis is performed on each of the stationary object vectors and the corresponding comparison vector to determine the central symmetry deviation factor of the optical flow map, including: Determine a mapping coefficient between the stationary object vector and the comparison vector according to the distance values between the starting point of the stationary object vector and the starting point of the comparison vector and the robot respectively; The vector obtained by multiplying the comparison vector and the mapping coefficient is used as the mapping vector; Calculate the variance of the module lengths of the stationary object vector and all its mapping vectors to obtain a symmetry coefficient; Normalizing the sum of the symmetry coefficients of all stationary object vectors to obtain a central symmetry deviation factor of the optical flow map; The method for obtaining the mapping coefficients of the stationary object vector and the comparison vector includes: Taking the distance between the starting point of the stationary object vector and the robot as the first distance; Taking the distance between the starting point of the comparison vector and the robot as the second distance; using a ratio of the first distance to the second distance as a mapping coefficient between the stationary object vector and the comparison vector; The method for obtaining the jitter deviation vector includes: Taking any preset vector as an initial jitter vector, and taking the ratio of the initial jitter vector to the central symmetry deviation factor as a first jitter vector; The product of the motion deviation degree in an ideal state and any of the stationary object vectors is used as a motion deviation vector; Taking the vector sum of the first jitter vector and the motion offset vector as the jitter influence vector of the stationary object vector; Obtaining a jitter residual of each stationary object vector according to a modulus length of a vector difference between the jitter influence vector and the stationary object vector; The sum of the jitter residuals of all stationary object vectors is taken as the total jitter residual; The initial jitter vector is adjusted, and when the value of the total jitter residual is the smallest, the corresponding initial jitter vector is used as the jitter deviation vector.
2. The obstacle recognition method of an intelligent handling robot according to claim 1, characterized in that: Determining the movement deviation degree of each stationary object in the adjacent frame grayscale image when the robot is moving in an ideal state includes: Perform optical flow simulation analysis under ideal conditions to obtain a simulation graph of optical flow analysis; According to the mapping relationship between the simulation vector of each stationary object in the simulation diagram and the center point of the simulation diagram, the projection vector of each simulation vector is determined; according to the lengths of all simulation vectors and the corresponding projection vectors, the degree of motion deviation in the ideal state is determined.
3. The obstacle recognition method of an intelligent handling robot according to claim 2, characterized in that: The method for obtaining the projection vector of the simulation vector comprises: A line connecting the simulation vector and the center point of the simulation graph is determined as the simulation line, and a projection of the simulation vector on the simulation line is determined as the projection vector of the simulation vector.
4. The obstacle recognition method of an intelligent handling robot according to claim 3, characterized in that: Determining the degree of motion deviation under an ideal state according to the lengths of all simulation vectors and corresponding projection vectors includes: Determine any constant value as an initial offset factor, and use the product of the initial offset factor and the length corresponding to any simulation vector as the simulation distance of the corresponding simulation vector; Determining a shift coefficient of the simulated vector according to a difference between the simulated distance and the length of the projection vector itself; The offset coefficients of all simulated vectors are forwardly fused to obtain an offset residual, and the initial offset factor is adjusted until the value of the offset residual is minimized, and the corresponding initial offset factor is used as the degree of motion offset.
5. The obstacle recognition method of an intelligent handling robot according to claim 1, characterized in that: The method for acquiring the identification vector corresponding to the moving object vector includes: The vector difference between the moving object vector and the jitter deviation vector is used as an identification vector.
6. The obstacle recognition method of an intelligent handling robot according to claim 1, characterized in that: Dividing the optical flow vector into a moving object vector and a stationary object vector comprises: The laser radar is used to analyze the current scene, determine the stationary objects and the moving objects, and use the optical flow vector corresponding to the point on the stationary object as the starting point as the stationary object vector, and use the optical flow vector corresponding to the point on the moving object as the starting point as the moving object vector; wherein the optical flow vector is the vector information in the optical flow field, and the displacement vector of the point representing the same spatial position in the grayscale image of the previous frame and the grayscale image of the next frame in two adjacent frames is used as the optical flow vector.
7. An intelligent handling robot obstacle recognition system, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
