An obstacle avoidance processing and analysis system based on forklift image data acquisition

Through the obstacle avoidance processing and analysis system based on forklift image data collection, using the improved YOLO target detection model and cost function, the problem of insufficient obstacle recognition and tracking capabilities of the traditional obstacle avoidance system in complex environments is solved, and the safety and stability of the forklift are achieved. and efficient driving.

CN118314310BActive Publication Date: 2024-09-10SHENZHEN XINGCHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410736012.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-10
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

The existing forklift obstacle avoidance system relies on a single sensor technology, which makes it difficult to fully perceive complex environments. Especially in narrow or blocked scenes, the obstacle recognition and tracking capabilities are insufficient, resulting in unreliable obstacle avoidance decisions, and the generated obstacle avoidance paths are difficult to ensure safety and safety. Stablize.

Method used

An obstacle avoidance processing and analysis system based on forklift image data acquisition is adopted. The image data sequence is obtained through the image data acquisition module. After preprocessing, the improved YOLO target detection model is input to the obstacle positioning. A cost function is constructed based on the forklift driving status data to generate an effective Obstacle avoidance strategies.

Benefits of technology

It achieves a comprehensive perception of the complex environment around the forklift, accurately identifies and tracks obstacles, and generates an optimal path that can avoid obstacles while ensuring safety and stability. It improves the autonomous perception and decision-making capabilities of the forklift, and enhances driving safety and operation. efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314310B
    Figure CN118314310B
Patent Text Reader

Abstract

The invention belongs to the technical field of image processing, and discloses an obstacle avoidance processing and analysis system based on forklift image data acquisition; the system comprises: an image data acquisition module, which is used to acquire an image data sequence on a forklift driving path, wherein the image data sequence comprises image frames of n time steps; a data processing module, which is used to pre-process the image data sequence to obtain a perfect image data sequence; a positioning module, which is used to input the perfect image data sequence into a pre-trained improved YOLO target detection model to obtain obstacle area positioning sequence data; an obstacle avoidance strategy planning module, which is used to acquire forklift driving state data, construct a cost function according to the obstacle area positioning sequence data and the forklift driving state data, solve the cost function to obtain the obstacle avoidance strategy, and control the forklift to execute the obstacle avoidance strategy to avoid obstacles; the autonomous perception and decision-making capabilities of the forklift are greatly improved, and its driving safety and operation efficiency are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and more specifically, to an obstacle avoidance processing and analysis system based on forklift image data acquisition. Background Art

[0002] The patent with application publication number CN115416650A discloses an intelligent driving obstacle avoidance system for a vehicle, comprising: a data acquisition module for collecting data information on the vehicle's driving status and the vehicle's driving environment; an information processing module for performing environmental image data processing on the collected environmental data information to obtain processed environmental image data; an obstacle recognition module for identifying obstacles in the vehicle's surrounding environment based on the processed environmental image data to obtain a recognition result; a path decision execution module for planning an obstacle avoidance path based on the recognition result and the vehicle's driving status data, and executing the obstacle avoidance path; dynamically planning the obstacle avoidance path based on the vehicle's surrounding environment data and the vehicle's current operating status parameters, thereby realizing active obstacle avoidance of the vehicle and safe automatic driving of the vehicle under complex road conditions, which is beneficial to improving the safety of vehicle obstacle avoidance in complex environments, and the system design method is simple, easy to implement and promote.

[0003] Existing forklift obstacle avoidance generally relies on a single sensor technology, such as lidar or ultrasound. The detection range and resolution of these sensors are limited, and it is difficult to fully perceive the complex and changeable environment around the forklift, especially in some narrow or heavily obstructed scenes. These sensors often find it difficult to effectively capture the existence of obstacles, which poses a great hidden danger to the safe driving of the forklift; secondly, the obstacle recognition and tracking capabilities of existing image processing technology in complex backgrounds need to be improved. In complex warehousing environments, there are often obstacles of various shapes, materials and colors. Traditional detection algorithms find it difficult to accurately locate and identify them, let alone track the movement trajectory of obstacles in real time. This makes it impossible for subsequent obstacle avoidance decisions to be based on reliable basic data, and it is difficult to formulate effective obstacle avoidance strategies. Existing obstacle avoidance planning is too simplistic and easily ignores many factors. The obstacle avoidance path generated in this way is difficult to both effectively avoid obstacles and ensure that the forklift maintains good stability and safety during driving.

[0004] In view of this, the present invention proposes an obstacle avoidance processing and analysis system based on forklift image data acquisition to solve the above problems. Summary of the invention

[0005] In order to overcome the above-mentioned defects of the prior art and to achieve the above-mentioned purpose, the present invention provides the following technical solutions: an obstacle avoidance processing and analysis system based on forklift image data acquisition, comprising: an image data acquisition module, for acquiring an image data sequence on a forklift driving path, the image data sequence comprising image frames of n time steps;

[0006] A data processing module is used to pre-process the image data sequence to obtain a perfect image data sequence;

[0007] The positioning module is used to input the perfect image data sequence into the pre-trained improved YOLO target detection model to obtain the obstacle area positioning sequence data;

[0008] The obstacle avoidance strategy planning module is used to obtain the forklift driving status data, construct a cost function based on the obstacle area positioning sequence data and the forklift driving status data, solve the cost function to obtain the obstacle avoidance strategy, and control the forklift to execute the obstacle avoidance strategy to avoid obstacles; each module is connected by wired and / or wireless means.

[0009] Furthermore, the image data sequence is obtained by:

[0010] m cameras are installed on the front, rear or side of a forklift, wherein the resolution, frame rate and field of view of the cameras are predefined; an image data acquisition code is written using OpenCV, the acquired image frames are stored in a time series, and the timestamp information of each image frame is recorded, thereby obtaining an image data sequence.

[0011] Furthermore, the method of preprocessing the image data sequence includes:

[0012] Performing dual-tree complex wavelet transform on each image frame in the image data sequence to decompose it into low-frequency components and high-frequency components of different scales;

[0013] The low-frequency component is subjected to adaptive logarithmic transformation to obtain an enhanced low-frequency component, and the high-frequency component is subjected to wavelet coefficient modulation to obtain a modulated high-frequency component; the modulated high-frequency component is subjected to adaptive threshold processing to obtain a high-quality modulated high-frequency component;

[0014] The high-quality modulated high-frequency component and the enhanced low-frequency component are reconstructed by wavelet to obtain an enhanced image frame; the original image frame and the enhanced image frame are fused to obtain a reconstructed enhanced image frame;

[0015] The reconstructed enhanced image frame is subjected to preliminary perspective transformation processing to obtain a preliminary corrected image, and a distortion field model is established to further correct the preliminary corrected image to obtain a corrected image frame; the corrected image frame is arranged according to the original time step to obtain a perfect image data sequence.

[0016] Furthermore, the formula for performing the adaptive logarithmic transformation is:

[0017] ;

[0018] in, For image frames The enhanced low-frequency components at the position, Indicates the pixel position of the image frame in the horizontal direction, Indicates the pixel position of the image frame in the vertical direction, For image frames The low-frequency component at the position, is a constant; is the adjustment parameter;

[0019] The formula for the wavelet coefficient modulation is: ;in, For image frames The modulated high-frequency component at the position, For image frames The high frequency components at the position, is the modulation coefficient; Indicates that the high frequency component is The absolute value of the position.

[0020] Furthermore, the adaptive threshold processing method includes:

[0021] Preset adaptive threshold function ,like Greater than , then the image frame is High-quality modulation high-frequency components at the position equal ;like Less than or equal to ,but is equal to 0;

[0022] The preset method of the adaptive threshold function includes:

[0023] The modulated high-frequency component is divided into M overlapping small area blocks, and the statistical characteristics of the modulated high-frequency component are calculated for each small area block, and the statistical characteristics include mean, standard deviation and energy;

[0024] The adaptive threshold function of the small area block is calculated based on the statistical features corresponding to the small area block. ;in, is the standard deviation adjustment parameter, is the energy regulation parameter; For image frames The mean value of the modulated high-frequency component at the position, For image frames The standard deviation of the modulated high-frequency component at the position, For image frames The energy of the modulated high-frequency component at the position;

[0025] The weighted average of the overlapping areas between small area blocks is used to obtain the final adaptive threshold function. .

[0026] Furthermore, the formula for weighted averaging is:

[0027] ;in, is the total number of overlapping areas in the horizontal direction, is the total number of overlapping areas in the vertical direction, is the horizontal index of the overlapping small area blocks, is the vertical index of the overlapping small area blocks, For the The value of the adaptive threshold function for a small area block, For the A small area in The weight of the position;

[0028] in, ; In the formula, is the standard deviation of the Gaussian kernel function, For the The horizontal coordinate of the center of the small area block, For the The vertical coordinate of the center of the small area block, is the base of natural logarithms;

[0029] The formula for fusing the original image frame and the enhanced image frame is:

[0030] ;in, To reconstruct the enhanced image frame The pixel value of the position, For the original image frame The pixel value of the position, The enhanced image frame is The pixel value of the position, is the fusion weight coefficient.

[0031] Furthermore, the preliminary perspective transformation processing method includes:

[0032] Place M1 markers of known size and shape on the forklift's path, use the set camera to collect images of the markers on the forklift's path, detect and extract the pixel coordinates of the markers in the image, and calculate the perspective transformation matrix based on the pixel coordinates of the markers ;

[0033] The reconstructed enhanced image frame is transformed by applying a perspective transformation matrix to obtain a preliminary corrected image;

[0034] The formula applied is: [ x ' y ' w ' ] = HU ⋅ [ x y 1 ] ;in, The midpoint of the reconstructed enhanced image frame corresponding to the preliminary corrected image The pixel coordinates of is the scaling factor;

[0035] The method of obtaining the corrected image frame comprises:

[0036] The expression of the distortion field model is:

[0037] ;

[0038] in, is the pixel coordinate after further correction, is the first-order radial distortion coefficient, is the second-order radial distortion coefficient, is the third-order radial distortion coefficient, To represent pixel coordinates The distance from the point to the center of the preliminary corrected image, To affect the tangential distortion in the horizontal axis direction, is the tangential distortion affecting the ordinate direction;

[0039] Based on the distortion field model, the pixel-level distortion field is obtained. The expression of the pixel-level distortion field is: ; Apply the pixel-level distortion field on the preliminary corrected image to obtain the corrected image frame.

[0040] Furthermore, the training method of the improved YOLO target detection model includes:

[0041] The backbone network of the improved YOLO target detection model is defined as the ResNet deep convolutional network, and multi-scale feature maps are obtained at different stages of the backbone network. The multi-scale feature maps include C3 feature maps, C4 feature maps, and C5 feature maps.

[0042] The C5 feature map is upsampled to obtain a high-resolution P5 feature map. The upsampling operation uses bilinear interpolation. The high-resolution P5 feature map is element-wise summed and fused with the C4 feature map to obtain the fused feature P4. The P4 is upsampled and element-wise summed and fused with the C3 feature map to obtain a higher fused feature P3. The C3 feature map is convolved to obtain a low-resolution P3' feature map. The convolution operation is a 3x3 convolution, BN or ReLU activation function.

[0043] The low-resolution P3' feature map is fused with the upsampled P4 by element addition to obtain the low-resolution fused feature P4'; the low-resolution fused feature P4' is fused with the upsampled P5' by element addition to obtain the lower fused feature P5'; a prediction head consisting of a convolutional layer and a prediction layer is added to P3, P4, P5, P3', P4', and P5' respectively; the result of target detection is predicted from the feature map of the corresponding scale, and the result includes the bounding box coordinates, confidence, and category probability;

[0044] The prediction layer consists of n4 3x3 convolutional layers and 1x1 convolutional layers, and the number of channels of the last convolutional layer is defined as ,in, is the number of anchor boxes, 4 represents the bounding box coordinates, 1 represents the confidence, and C represents the number of categories;

[0045] Collect historical data sets, which include images on the forklift's driving path and their corresponding labels. The labels include the coordinates of each obstacle's bounding box and the obstacle category.

[0046] Traverse all labels in the historical data set, and for each bounding box, calculate the ratio of its width to height, recorded as the aspect ratio, collect the aspect ratios of all bounding boxes into a preset list, and normalize the aspect ratios in the list;

[0047] The normalized aspect ratio is clustered to obtain n5 clusters. The center of each cluster is the aspect ratio of a priori anchor box. The average bounding box area of ​​the labels in the historical data set is calculated. The aspect ratio obtained by clustering is combined with the average bounding box area to generate the final anchor box size.

[0048] The original anchor frames in the improved YOLO target detection model are deleted, and the n5 anchor frames obtained by clustering are integrated into the improved YOLO target detection model;

[0049] Define the loss function for training and improving the YOLO target detection model ;in, is the bounding box regression loss function, is the classification loss function, is the bounding box overlap loss function;

[0050] ;in, No. predicted bounding boxes, No. The annotated bounding box corresponding to the predicted bounding box, is the predicted bounding box and the bounding box of the annotation The Euclidean distance between the center points of To be able to include and The diagonal length of the minimum enclosing area of ​​; is a categorical indicator variable, is the total number of predicted bounding boxes, is the index of the predicted bounding box;

[0051] ,in, is the predicted bounding box Bounding box with annotation The intersection area of is the predicted bounding box Bounding box with annotation The area of ​​the union of

[0052] Define the parameter optimizer of the improved YOLO target detection model as SGD, divide the historical data set into batches to train the improved YOLO target detection model, and record the value of the loss function of each batch. Stop training when the value of the loss function no longer decreases or changes in P1 consecutive batches, save the parameters of the improved YOLO target detection model at this time, and complete the training of the improved YOLO target detection model.

[0053] Furthermore, the forklift driving status data includes forklift position coordinates, forklift speed and forklift heading angle;

[0054] The cost function ;in, is the distance weight coefficient, For the distance cost, is the speed weight coefficient, For the price of speed, is the heading angle weight coefficient, is the heading angle cost, is the safety weight coefficient, For the price of safety;

[0055] Distance Cost , where is the forklift position coordinate of the current forklift, The coordinates of the target position of the forklift;

[0056] Define a desired speed , when the collected forklift speed is less than the expected speed ,but ; When the collected forklift speed is and Between ; When the collected forklift speed is greater than When ;in, is the collected forklift speed, The minimum speed allowed is preset. The maximum speed allowed by the preset;

[0057] Heading angle cost ;in, is the current forklift heading angle, is the heading angle of the target position of the forklift;

[0058] Preset a safety threshold ,

[0059] Safety Cost ,in, is the total number of obstacles ahead, is the index of the obstacle ahead, For forklift and The distance between obstacles; is a positive number.

[0060] Furthermore, the obstacle avoidance strategy is obtained by:

[0061] The entire driving area of ​​the forklift is divided into a discrete set of nodes; the value of the cost function is recorded as the total cost. For each node, the minimum total cost from the node corresponding to the current position of the forklift to the node corresponding to the front target position is calculated and recorded; starting from the node corresponding to the front target position, the record of the minimum total cost to each adjacent node is found, and the adjacent point with the smallest total cost is selected as the next path point. Repeat until backtracking to the current node. The path through the node is the optimal path from the current position of the forklift to the front target position, that is, the obstacle avoidance strategy.

[0062] The technical effects and advantages of the obstacle avoidance processing and analysis system based on forklift image data acquisition of the present invention are as follows:

[0063] The present invention can fully perceive the complex environment around the forklift, greatly enhancing its perception ability, and real-time acquisition of image data sequences on the driving path, which not only covers the field of vision around the forklift, but also can obtain continuous dynamic image information. It adopts a deeply optimized target detection algorithm, which can accurately identify obstacles and track their movement trajectories in real time. This precise obstacle perception capability lays a key foundation for formulating efficient obstacle avoidance strategies. When planning the obstacle avoidance path, it not only considers the forklift's own motion state, such as key parameters such as position, speed and heading angle, but also combines the safety distance factor between the obstacle and constructs a comprehensive cost function, which can generate an optimal path plan that can effectively avoid obstacles and ensure that the forklift remains safe, stable and efficient during driving. It not only greatly improves the forklift's autonomous perception and decision-making ability, but also greatly enhances its driving safety and operating efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 It is a schematic diagram of an obstacle avoidance processing and analysis system based on forklift image data acquisition of the present invention;

[0065] Figure 2 It is a schematic diagram of an obstacle avoidance processing and analysis method based on forklift image data acquisition of the present invention. DETAILED DESCRIPTION

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

[0067] Example 1

[0068] See also Figure 1 As shown, the obstacle avoidance processing and analysis system based on forklift image data collection described in this embodiment includes:

[0069] An image data acquisition module, used to acquire an image data sequence on the forklift's travel path, wherein the image data sequence includes image frames of n time steps;

[0070] A data processing module is used to pre-process the image data sequence to obtain a perfect image data sequence;

[0071] The positioning module is used to input the perfect image data sequence into the pre-trained improved YOLO target detection model to obtain the obstacle area positioning sequence data;

[0072] The obstacle avoidance strategy planning module is used to obtain the forklift driving status data, construct a cost function based on the obstacle area positioning sequence data and the forklift driving status data, solve the cost function to obtain the obstacle avoidance strategy, and control the forklift to execute the obstacle avoidance strategy to avoid obstacles; each module is connected by wire and / or wireless means to realize data transmission between modules.

[0073] Furthermore, the image data sequence is obtained by:

[0074] m cameras are installed on the front, rear or side of a forklift to capture image data, i.e., image frames, on the travel path of the forklift; the resolution, frame rate and field of view of the cameras are predefined; image data acquisition code is written using OpenCV to implement a loop of continuously acquiring image frames;

[0075] The collected image frames are stored in time series, and the timestamp information of each image frame is recorded to obtain an image data sequence.

[0076] Specifically, the image data acquisition code is as follows:

[0077] import cv2

[0078] # Open the camera

[0079] cap = cv2.VideoCapture(0)

[0080] # Set the video frame size

[0081] cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)

[0082] cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)

[0083] # Continuously collect image frames

[0084] while True:

[0085] # Read a frame of image

[0086] ret, frame = cap.read()

[0087] # If the read is successful

[0088] if ret:

[0089] # Display the image in the window

[0090] cv2.imshow('frame', frame)

[0091] # Wait for a key to be pressed, press the q key to exit the loop

[0092] if cv2.waitKey(1) & 0xFF == ord('q'):

[0093] break

[0094] else:

[0095] break

[0096] # Release resources

[0097] cap.release()

[0098] cv2.destroyAllWindows().

[0099] The method of preprocessing the image data sequence includes:

[0100] Each image frame in the image data sequence is decomposed by dual-tree complex wavelet transform into low-frequency components and high-frequency components of different scales; dual-tree complex wavelet transform is a complex-valued wavelet transform that can simultaneously obtain the amplitude and phase information of the image and can better capture the edge and texture features of the image.

[0101] The low-frequency components are adaptively logarithmically transformed to obtain enhanced low-frequency components to enhance the contrast and brightness of the image.

[0102] The formula for performing the adaptive logarithmic transformation is: ;

[0103] in, For image frames The enhanced low-frequency components at the position, Indicates the pixel position of the image frame in the horizontal direction, Indicates the pixel position of the image frame in the vertical direction, For image frames The low-frequency component at the position, is a constant used to control the magnitude of contrast enhancement and adjust the overall brightness of the transformed image; It is an adjustment parameter used to control the nonlinearity of the logarithmic transformation and affect the degree of contrast enhancement. This will result in a stronger contrast enhancement effect.

[0104] The high-frequency component is modulated by wavelet coefficients to enhance the edge and detail information of the image and obtain the modulated high-frequency component.

[0105] The formula for the wavelet coefficient modulation is: ;in, For image frames The modulated high-frequency component at the position, For image frames The high frequency components at the position, It is the modulation coefficient, which is used to control the degree of edge and detail enhancement and determines the intensity of high-frequency component enhancement. A higher value will result in a more significant enhancement of high-frequency components, thereby more obviously improving the edges and details of the image; Indicates that the high frequency component is The absolute value of the position, that is, the magnitude of the value after ignoring the sign.

[0106] The modulated high-frequency component is subjected to adaptive threshold processing to suppress the influence of noise and obtain high-quality modulated high-frequency component.

[0107] The adaptive threshold processing method includes:

[0108] Preset adaptive threshold function ,like Greater than , then the image frame is High-quality modulation high-frequency components at the position equal ;like Less than or equal to ,but is equal to 0.

[0109] The preset method of the adaptive threshold function includes:

[0110] The modulated high-frequency component is divided into M overlapping small area blocks, and the statistical characteristics of the modulated high-frequency component are calculated for each small area block, and the statistical characteristics include mean, standard deviation and energy.

[0111] The formula for calculating the mean is: ;

[0112] The formula for calculating the standard deviation is: ;

[0113] The energy calculation formula is: ;

[0114] in, For image frames The mean value of the modulated high-frequency component at the position, is the number of pixels in the horizontal direction of the small area block, is the number of pixels of the small area block in the vertical direction; For image frames The standard deviation of the modulated high-frequency component at the position, For image frames The energy of the modulated high-frequency component at the position.

[0115] The adaptive threshold function of the small area block is calculated based on the statistical features corresponding to the small area block. ;in, is the standard deviation adjustment parameter, which is used to control the influence of the standard deviation on the threshold. is the energy adjustment parameter, which is used to control the influence of energy on the threshold. Higher values ​​will make the energy contribution to the threshold larger, thus better suppressing noise.

[0116] Since there are overlaps between small area blocks, the overlapping areas between small area blocks are weighted averaged to achieve a smooth transition and obtain the final adaptive threshold function. .

[0117] The formula for weighted averaging is: ;in, is the total number of overlapping areas in the horizontal direction, is the total number of overlapping areas in the vertical direction, is the horizontal index of the overlapping small area blocks, is the vertical index of the overlapping small area blocks, and The positions of the overlapping small area blocks are identified together to calculate the weighted average of the overlapping areas. For the The value of the adaptive threshold function of a small area block is expressed in The position threshold, For the A small area in The weight of the position.

[0118] in, ; In the formula, is the standard deviation of the Gaussian kernel function, which is used to control the smoothness of the weights. For the The horizontal coordinate of the center of the small area block, For the The vertical coordinate of the center of the small area block, is the base of natural logarithms;

[0119] The high-quality modulated high-frequency component and the enhanced low-frequency component are reconstructed by wavelet to obtain an enhanced image frame; the original image frame and the enhanced image frame are fused to obtain a reconstructed enhanced image frame.

[0120] The formula for fusing the original image frame and the enhanced image frame is:

[0121] ;in, To reconstruct the enhanced image frame The pixel value of the position, For the original image frame The pixel value of the position, The enhanced image frame is The pixel value of the position, is the fusion weight coefficient, and its value range is in the interval [0, 1].

[0122] Since the camera installation position and angle deviation may cause the collected image frames to be distorted and deformed, the reconstructed enhanced image frames are subjected to preliminary perspective transformation processing to obtain a preliminary corrected image.

[0123] The method of the preliminary perspective transformation processing includes:

[0124] In the experimental environment, M1 markers of known size and shape are placed on the forklift's driving path. The images of the markers on the forklift's driving path are collected using the set camera. The pixel coordinates of the markers are detected and extracted in the image. The perspective transformation matrix is ​​calculated based on the pixel coordinates of the markers. ;

[0125] Specifically, since there are M1 markers, M1 such equation groups are obtained, and the 8 unknown parameters of the perspective transformation matrix are obtained by solving the equation groups. The solution method is to use the least squares method. Specifically, a matrix loss function is constructed to represent the error between the actual pixel coordinates and the pixel coordinates calculated by the perspective transformation. Then, the optimal perspective transformation matrix parameters can be obtained by minimizing the loss function, that is, the perspective transformation matrix is ​​obtained.

[0126] The reconstructed enhanced image frame is transformed by applying the perspective transformation matrix to obtain a preliminary corrected image.

[0127] The formula applied is: [ x ' y ' w ' ] = HU ⋅ [ x y 1 ] ;in, The midpoint of the reconstructed enhanced image frame corresponding to the preliminary corrected image The pixel coordinates of is the scaling factor.

[0128] Since the initial perspective transformation processing cannot completely eliminate the distortion caused by the camera itself, a distortion field model is established for further correction to obtain corrected image frames; the corrected image frames are arranged according to the original time steps to obtain a complete image data sequence.

[0129] The method of establishing the distortion field model to further correct the preliminary corrected image includes:

[0130] The expression of the distortion field model is:

[0131] ;

[0132] in, is the pixel coordinate after further correction, is the first-order radial distortion coefficient, is the second-order radial distortion coefficient, is the third-order radial distortion coefficient, To represent pixel coordinates The distance from the point to the center of the preliminary corrected image, To affect the tangential distortion in the horizontal axis direction, is the tangential distortion affecting the ordinate direction.

[0133] , and Used to control the degree of radial distortion in the image. Radial distortion is caused by the spherical surface of the lens, which causes straight lines from the center to the edge of the image to become curved lines. and It is used to control the degree of tangential distortion in the image. Tangential distortion is caused by the non-parallelism between the lens and the image plane, which causes the position of the pixel on the image plane to shift.

[0134] Solved by the least squares method , , , and , and then the pixel-level distortion field is obtained. The expression of the pixel-level distortion field is: ;

[0135] A pixel-level distortion field is applied on the preliminary corrected image to obtain a corrected image frame.

[0136] The pixel-level distortion field is applied by converting the horizontal coordinates of the pixels in the preliminary correction image Plus As the horizontal coordinate of the corresponding pixel point in the mid-segment correction image frame, the vertical coordinate of the pixel point in the preliminary correction image Plus As the ordinate of the corresponding pixel point in the mid-segment correction image frame.

[0137] Furthermore, the training method of the improved YOLO target detection model includes:

[0138] The backbone network of the improved YOLO target detection model is defined as a ResNet deep convolutional network, which is used to extract features from the input image frames and obtain multi-scale feature maps at different stages of the backbone network. The multi-scale feature maps include C3 feature maps, C4 feature maps, and C5 feature maps.

[0139] The method of obtaining multi-scale feature maps at different stages of the backbone network includes:

[0140] The ResNet deep convolutional network consists of N2 residual blocks, each of which contains n2 convolutional layers. The ResNet deep convolutional network takes the feature maps of the input image at different stages as output, and selects the feature maps of the shallower, middle and deeper layers, corresponding to different resolutions and semantic information respectively.

[0141] The input image is passed through the first n3 convolutional layers and residual blocks of ResNet for feature extraction. After the last residual block of the ResNet deep convolutional network, the feature map of this stage is obtained, namely the C5 feature map. The C5 feature map has the highest semantic information but a lower resolution.

[0142] Before obtaining the C5 feature map, the C4 feature map is selected in the fourth stage of the ResNet deep convolutional network. The resolution of the C4 feature map is higher than that of the C5, but the semantic information is slightly lower.

[0143] Similarly, the C3 feature map is chosen to be obtained in the third stage of the ResNet deep convolutional network. The C3 feature map has the highest resolution but the lowest semantic information.

[0144] That is, at different stages of the ResNet deep convolutional network, a feature map acquisition layer (such as a convolutional layer) is inserted, and the C3 feature map, C4 feature map, and C5 feature map are extracted from the corresponding residual block output through the acquisition layer.

[0145] The C5 feature map is upsampled to obtain a high-resolution P5 feature map. The upsampling operation uses bilinear interpolation to increase the resolution of the feature map by 2 times. The high-resolution P5 feature map is element-wise fused with the C4 feature map to obtain the fused feature P4.

[0146] P4 is upsampled and fused with the C3 feature map element-wise to obtain a higher fused feature P3. Through a top-down path, feature maps P3, P4, and P5 that fuse high-level semantic information and underlying position information are obtained.

[0147] The C3 feature map is convolved to obtain a low-resolution P3' feature map. The convolution operation is a 3x3 convolution, BN or ReLU activation function.

[0148] The low-resolution P3' feature map is fused with the up-sampled P4 by element addition to obtain the low-resolution fused feature P4'.

[0149] The low fusion feature P4' is element-wise added and fused with the upsampled P5' to obtain a lower fusion feature P5'; through a bottom-up path, feature maps P3', P4' and P5' that fuse the underlying position information and high-level semantic information are obtained.

[0150] A prediction head consisting of a convolutional layer and a prediction layer is added to P3, P4, P5, P3', P4', and P5' respectively; its function is to predict the result of target detection from the feature map of the corresponding scale, and the result includes the bounding box coordinates, confidence, and category probability;

[0151] The prediction layer consists of n4 3x3 convolutional layers and 1x1 convolutional layers, and the number of channels of the last convolutional layer is defined as ,in, is the number of anchor boxes, 4 represents the bounding box coordinates, 1 represents the confidence, and C represents the number of categories.

[0152] Through the designed top-down path, bottom-up path and prediction layer, we can make full use of feature information of different scales and improve the detection ability of objects of different sizes. At the same time, through feature fusion, the model can better capture the semantics of the target.

[0153] Collect historical data sets, which include images on the forklift's driving path and their corresponding labels. Common obstacles are artificially set on the forklift's driving path. The labels include the coordinates of the bounding box of each obstacle and the obstacle category, and are manually annotated.

[0154] Traverse all the labels in the historical data set, and for each bounding box, calculate the ratio of its width to height, recorded as the aspect ratio, collect the aspect ratios of all bounding boxes into a preset list, and normalize the aspect ratios in the list so that they fall within the range of 0 to 1.

[0155] The normalized aspect ratio is clustered to obtain n5 clusters. The center of each cluster is the aspect ratio of a priori anchor box. The average bounding box area of ​​the labels in the historical data set is calculated. The aspect ratio obtained by clustering is combined with the average bounding box area to generate the final anchor box size (width and height).

[0156] The clustering process includes:

[0157] Set the number of clusters k1, that is, the expected number of anchor boxes. Usually, the value of k1 is between 3 and 9. Use Euclidean distance as the distance metric to cluster the normalized aspect ratios. The goal of clustering is to minimize the sum of the squares of the distances from all data points (aspect ratios) to the center of the cluster to which they belong.

[0158] The original anchor boxes in the improved YOLO target detection model are deleted, and the n5 anchor boxes obtained by clustering are integrated into the improved YOLO target detection model to generate candidate regions at different positions and scales of the input image.

[0159] Define the loss function for training and improving the YOLO target detection model ;in, is the bounding box regression loss function, is the classification loss function, is the bounding box overlap sub-loss function.

[0160] ;in, is the total number of predicted bounding boxes, is the number of anchor boxes, is an indicator variable, when The predicted bounding box is 1 if the anchor boxes match, otherwise 0; For the The center coordinates of the predicted bounding boxes, For the The width of the predicted bounding box, For the The height of the predicted bounding box, No. The center coordinates of the annotated bounding box corresponding to the predicted bounding box, For the The width of the annotated bounding box corresponding to the predicted bounding box, For the The height of the annotated bounding box corresponding to the predicted bounding box, is the Smooth L1 loss function, which is used to calculate the bounding box regression error; is the index of the predicted bounding box.

[0161] ,in, is the total number of categories, is a categorical indicator variable. 1 if a predicted bounding box matches an annotated bounding box, 0 otherwise; No. The predicted bounding box belongs to The probability of the class, No. The one-hot encoding of the labeled category corresponding to the predicted bounding box, The index of the category.

[0162] ;in, No. predicted bounding boxes, No. The annotated bounding box corresponding to the predicted bounding box, is the predicted bounding box and the bounding box of the annotation The Euclidean distance between the center points of To be able to include and The diagonal length of the minimum enclosing region of .

[0163] ,in, is the predicted bounding box Bounding box with annotation The intersection area of is the predicted bounding box Bounding box with annotation The union area of ​​.

[0164] Define the parameter optimizer of the improved YOLO target detection model as SGD, divide the historical data set into batches to train the improved YOLO target detection model, and record the value of the loss function of each batch. Stop training when the value of the loss function no longer decreases or changes in P1 consecutive batches, save the parameters of the improved YOLO target detection model at this time, and complete the training of the improved YOLO target detection model.

[0165] The perfected image data sequence is input into the trained improved YOLO target detection model in the order of time steps to obtain the obstacle area positioning result of each time step. The obstacle area positioning result includes the annotation box and its obstacle type. Obstacles of the same category and their annotation boxes are associated according to the time step and combined into an obstacle area positioning sequence data.

[0166] Furthermore, the forklift driving status data includes the forklift position coordinates, forklift speed and forklift heading angle; the data is obtained in real time through sensors installed on the forklift; the forklift position coordinates are obtained through a global positioning system (GPS) sensor, and the GPS sensor provides the current longitude and latitude coordinates of the forklift, which are the forklift position coordinates; the forklift speed is obtained through a vehicle-mounted speed sensor; the forklift heading angle is obtained through an inertial measurement unit (IMU) sensor; the IMU sensor can measure the tilt angle and rotation angle of the forklift, thereby calculating the current heading angle.

[0167] The cost function ;in, is the distance weight coefficient, For the distance cost, is the speed weight coefficient, For the price of speed, is the heading angle weight coefficient, is the heading angle cost, is the safety weight coefficient, For the price of safety; , , and Make adjustments based on actual conditions.

[0168] Distance Cost , where is the forklift position coordinate of the current forklift, The coordinates of the target position of the forklift.

[0169] Define a desired speed , which indicates the speed that the forklift should maintain under ideal conditions. This speed can be set according to actual conditions, such as road conditions, transportation efficiency, etc. When the collected forklift speed is less than the expected speed ,but ; When the collected forklift speed is and Between ; When the collected forklift speed is greater than When ;in, is the collected forklift speed, The minimum speed allowed is preset. The maximum speed allowed by the preset.

[0170] Distance Cost ;in, is the current forklift heading angle, is the heading angle of the target position that the forklift is heading towards.

[0171] Preset a safety threshold , safety cost ,in, is the total number of obstacles ahead, is the index of the obstacle ahead, For forklift and The distance between obstacles; It is a very small positive number used to prevent the denominator from being 0; the preset safety threshold is determined according to the driving safety of the forklift itself.

[0172] The obstacle avoidance strategy is obtained by:

[0173] The entire driving area of ​​the forklift is divided into a discrete set of nodes. The spacing between the nodes is selected according to the actual situation. Generally speaking, the finer the grid or the denser the nodes, the more accurate the path obtained, but the calculation overhead will also increase.

[0174] The value of the cost function is recorded as the total cost. For each node, the minimum total cost from the node corresponding to the current position of the forklift to the node corresponding to the front target position is calculated and recorded; starting from the node corresponding to the front target position, the record of the minimum total cost to each adjacent node is found, and the adjacent point with the smallest total cost is selected as the next path point. Repeat until backtracking to the current node. The path through the node is the optimal path from the current position of the forklift to the front target position, that is, the obstacle avoidance strategy.

[0175] This embodiment can fully perceive the complex environment around the forklift, greatly enhance its perception ability, and collect image data sequences on the driving path in real time, which not only covers the field of vision around the forklift, but also obtains continuous dynamic image information. It adopts a deeply optimized target detection algorithm, which can accurately identify obstacles and track their movement trajectories in real time. This precise obstacle perception capability lays a key foundation for formulating efficient obstacle avoidance strategies. When planning the obstacle avoidance path, it not only considers the forklift's own motion state, such as key parameters such as position, speed and heading angle, but also combines the safety distance factor between the obstacle and constructs a comprehensive cost function, which can generate an optimal path plan that can effectively avoid obstacles and ensure that the forklift remains safe, stable and efficient during driving. It not only greatly improves the forklift's autonomous perception and decision-making ability, but also greatly enhances its driving safety and operating efficiency.

[0176] Example 2

[0177] See also Figure 2 As shown, the part not described in detail in this embodiment can be found in the description of embodiment 1, which provides an obstacle avoidance processing and analysis method based on forklift image data acquisition, including:

[0178] S1, acquiring an image data sequence on a forklift driving path, wherein the image data sequence includes image frames of n time steps;

[0179] S2, preprocessing the image data sequence to obtain a perfect image data sequence;

[0180] S3, inputting the perfected image data sequence into the pre-trained improved YOLO target detection model to obtain obstacle area positioning sequence data;

[0181] S4. Acquire the driving state data of the forklift, construct a cost function according to the obstacle area positioning sequence data and the driving state data of the forklift, solve the cost function to obtain the obstacle avoidance strategy, and control the forklift to execute the obstacle avoidance strategy to avoid the obstacle.

[0182] Example 3

[0183] This embodiment discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the operation mode of the obstacle avoidance processing and analysis method based on forklift image data acquisition provided above is implemented.

[0184] Since the electronic device introduced in this embodiment is an electronic device used to implement an obstacle avoidance processing and analysis method based on forklift image data acquisition in the embodiment of this application, based on the obstacle avoidance processing and analysis method based on forklift image data acquisition introduced in the embodiment of this application, the technical personnel of this field can understand the specific implementation of the electronic device of this embodiment and its various variations, so how the electronic device implements the method in the embodiment of this application is not described in detail here. As long as the technical personnel of this field implement the electronic device used in the obstacle avoidance processing and analysis method based on forklift image data acquisition in the embodiment of this application, it belongs to the scope of protection of this application.

[0185] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.

[0186] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technical users in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. An obstacle avoidance processing and analysis system based on forklift image data acquisition, It is characterized in that include: An image data acquisition module, used to acquire an image data sequence on the forklift's travel path, wherein the image data sequence includes image frames of n time steps; A data processing module is used to pre-process the image data sequence to obtain a perfect image data sequence; The positioning module is used to input the perfect image data sequence into the pre-trained improved YOLO target detection model to obtain the obstacle area positioning sequence data; The obstacle avoidance strategy planning module is used to obtain the forklift driving state data, construct a cost function according to the obstacle area positioning sequence data and the forklift driving state data, and control the forklift to execute the obstacle avoidance strategy to avoid obstacles; each module is connected by wire and / or wireless means; The method of preprocessing the image data sequence includes: Performing dual-tree complex wavelet transform on each image frame in the image data sequence to decompose it into low-frequency components and high-frequency components of different scales; The low-frequency component is subjected to adaptive logarithmic transformation to obtain an enhanced low-frequency component, and the high-frequency component is subjected to wavelet coefficient modulation to obtain a modulated high-frequency component; the modulated high-frequency component is subjected to adaptive threshold processing to obtain a high-quality modulated high-frequency component; The high-quality modulated high-frequency component and the enhanced low-frequency component are reconstructed by wavelet to obtain an enhanced image frame; the original image frame and the enhanced image frame are fused to obtain a reconstructed enhanced image frame; The reconstructed enhanced image frame is subjected to preliminary perspective transformation processing to obtain a preliminary corrected image, and a distortion field model is established to further correct the preliminary corrected image to obtain a corrected image frame; the corrected image frame is arranged according to the original time step to obtain a perfect image data sequence; The formula for performing the adaptive logarithmic transformation is: L'(x,y)=c·log(1+λ·L(x,y)); Wherein, L'(x,y) is the enhanced low-frequency component of the image frame at the position (x,y), x represents the pixel position of the image frame in the horizontal direction, y represents the pixel position of the image frame in the vertical direction, L(x,y) is the low-frequency component of the image frame at the position (x,y), c is a constant; λ is an adjustment parameter; The formula for the wavelet coefficient modulation is: Wherein, H'(x,y) is the modulated high-frequency component of the image frame at the (x,y) position, H(x,y) is the high-frequency component of the image frame at the (x,y) position, β is the modulation coefficient; |H(x,y)| represents the absolute value of the high-frequency component at the (x,y) position; The adaptive threshold processing method includes: Preset adaptive threshold function T final (x,y), if |H(x,y) is greater than T final (x,y), the high-quality modulated high-frequency component H" (x,y) of the image frame at the position (x,y) is equal to H'(x,y); if |H(x,y)| is less than or equal to T final (x,y), then H”(x,y) is equal to 0; The preset method of the adaptive threshold function includes: The modulated high-frequency component is divided into M overlapping small area blocks, and the statistical characteristics of the modulated high-frequency component are calculated for each small area block, and the statistical characteristics include mean, standard deviation and energy; The adaptive threshold function of the small area block is calculated based on the statistical features corresponding to the small area block. Among them, α is the standard deviation adjustment parameter, γ is the energy adjustment parameter; μ(x,y) is the mean of the modulated high-frequency component of the image frame at the (x,y) position, σ(x,y) is the standard deviation of the modulated high-frequency component of the image frame at the (x,y) position, and E(x,y) is the energy of the modulated high-frequency component of the image frame at the (x,y) position; m 1 is the number of pixels in the small area block in the horizontal direction, n 1 is the number of pixels of the small area block in the vertical direction; The weighted average of the overlapping areas between small area blocks is used to obtain the final adaptive threshold function T final (x,y); The formula for weighted averaging is: Among them, M 1 N is the total number of overlapping areas in the horizontal direction. 1 represents the total number of overlapping areas in the vertical direction, i is the index of the overlapping small area blocks in the horizontal direction, j is the index of the overlapping small area blocks in the vertical direction, T ij (x, y) is the value of the adaptive threshold function of the (i, j)th small area block, w ij (x,y) is the weight of the (i,j)th small area block at the (x,y) position; in, Where σ' is the standard deviation of the Gaussian kernel function, x i is the horizontal coordinate of the center of the (i,j)th small area block, y i is the ordinate of the center of the (i, j)th small area block, and e is the base of the natural logarithm; The formula for fusing the original image frame and the enhanced image frame is: Among them, I enhanced (x, y) is the pixel value of the reconstructed enhanced image frame at the position (x, y), I(x, y) is the pixel value of the original image frame at the position (x, y), and I'(x, y) is the pixel value of the enhanced image frame at the position (x, y). is the fusion weight coefficient; The method of the preliminary perspective transformation processing includes: Place M1 markers of known size and shape on the forklift's driving path, use the set camera to collect images of the markers on the forklift's driving path, detect and extract the pixel coordinates of the markers in the image, and calculate the perspective transformation matrix HU based on the pixel coordinates of the markers; The reconstructed enhanced image frame is transformed by applying a perspective transformation matrix to obtain a preliminary corrected image; The formula applied is: Where (x', y') is the pixel coordinate of the point (x, y) in the reconstructed enhanced image frame corresponding to the preliminary corrected image, and w' is the scaling factor; The method of obtaining the corrected image frame comprises: The expression of the distortion field model is: Among them, (x d ,y d ) is the pixel coordinate after further correction, k1 is the first-order radial distortion coefficient, k2 is the second-order radial distortion coefficient, k3 is the third-order radial distortion coefficient, r is the distance from the point representing the pixel coordinate (x', y') to the center of the preliminary corrected image, p 1 is the tangential distortion affecting the horizontal axis direction, p 2 is the tangential distortion affecting the ordinate direction; Based on the distortion field model, the pixel-level distortion field is obtained. The expression of the pixel-level distortion field is: A pixel-level distortion field is applied on the preliminary corrected image to obtain a corrected image frame.

2. According to claim 1, an obstacle avoidance processing and analysis system based on forklift image data acquisition, It is characterized in that The method of acquiring the image data sequence includes: m cameras are installed on the front, rear or side of a forklift, wherein the resolution, frame rate and field of view of the cameras are predefined; an image data acquisition code is written using OpenCV, the acquired image frames are stored in a time series, and the timestamp information of each image frame is recorded, thereby obtaining an image data sequence.

3. The obstacle avoidance processing and analysis system based on forklift image data acquisition according to claim 2, It is characterized in that The training method of the improved YOLO target detection model includes: The backbone network of the improved YOLO target detection model is defined as the ResNet deep convolutional network, and multi-scale feature maps are obtained at different stages of the backbone network. The multi-scale feature maps include C3 feature maps, C4 feature maps, and C5 feature maps. The C5 feature map is upsampled to obtain a high-resolution P5 feature map. The upsampling operation uses bilinear interpolation. The high-resolution P5 feature map is element-wise summed and fused with the C4 feature map to obtain the fused feature P4. The P4 is upsampled and element-wise summed and fused with the C3 feature map to obtain a higher fused feature P3. The C3 feature map is convolved to obtain a low-resolution P3' feature map. The convolution operation is a 3x3 convolution, BN or ReLU activation function. The low-resolution P3' feature map is fused with the upsampled P4 by element addition to obtain the low-resolution fused feature P4'; the low-resolution fused feature P4' is fused with the upsampled P5' by element addition to obtain the lower fused feature P5'; a prediction head consisting of a convolutional layer and a prediction layer is added to P3, P4, P5, P3', P4', and P5' respectively; the result of target detection is predicted from the feature map of the corresponding scale, and the result includes the bounding box coordinates, confidence, and category probability; The prediction layer consists of n4 3x3 convolutional layers and 1x1 convolutional layers, and the number of channels of the last convolutional layer is defined as (B×(4+1+C)), where B is the number of anchor boxes, 4 is the number of output channels of bounding box coordinate values, 1 is the confidence, and C is the number of categories; Collect historical data sets, which include images on the forklift's driving path and their corresponding labels. The labels include the coordinates of each obstacle's bounding box and the obstacle category. Traverse all labels in the historical data set, and for each bounding box, calculate the ratio of its width to height, recorded as the aspect ratio, collect the aspect ratios of all bounding boxes into a preset list, and normalize the aspect ratios in the list; The normalized aspect ratio is clustered to obtain n5 clusters. The center of each cluster is the aspect ratio of a priori anchor box. The average bounding box area of ​​the labels in the historical data set is calculated. The aspect ratio obtained by clustering is combined with the average bounding box area to generate the final anchor box size. The original anchor frames in the improved YOLO target detection model are deleted, and the n5 anchor frames obtained by clustering are integrated into the improved YOLO target detection model; Define the loss function Loss = L for training the improved YOLO target detection model box +L cls +L iou Among them, L box is the bounding box regression loss function, L cls is the classification loss function, L iou is the bounding box overlap loss function; Among them, box t The t-th predicted bounding box, The annotated bounding box corresponding to the t-th predicted bounding box, is the predicted bounding box box t and the bounding box of the annotation The Euclidean distance between the center points of the box, CT is the distance between the center points of the box, and CT is the distance between the center points of the box. t and The diagonal length of the minimum enclosing area of ​​; is a categorical indicator variable, N 4 is the total number of predicted bounding boxes, and t is the index of the predicted bounding box; in, is the predicted bounding box box t Bounding box with annotation The intersection area of is the predicted bounding box box t Bounding box with annotation The area of ​​the union of ; Define the parameter optimizer of the improved YOLO target detection model as SGD, divide the historical data set into batches to train the improved YOLO target detection model, and record the value of the loss function of each batch. Stop training when the value of the loss function no longer decreases or changes in P1 consecutive batches, save the parameters of the improved YOLO target detection model at this time, and complete the training of the improved YOLO target detection model.

4. The obstacle avoidance processing and analysis system based on forklift image data acquisition according to claim 3, It is characterized in that The forklift driving status data includes the forklift position coordinates, forklift speed and forklift heading angle; The cost function C total =w d ·C d +w v ·C v +w θ ·C θ +w s ·C s ; Among them, w d is the distance weight coefficient, C d is the distance cost, w v is the speed weight coefficient, C v is the speed cost, w θ is the heading angle weight coefficient, C θ is the heading angle cost, w s is the safety weight coefficient, C s For the price of safety; Distance Cost In the formula, (x 0 ,y 0 ) is the forklift position coordinate of the current forklift, (x T ,y T ) is the target position coordinate of the forklift; Define a desired velocity V des , when the collected forklift speed is less than the expected speed V des ,but When the collected forklift speed is V des and V min Between, then C v =0; when the collected forklift speed is greater than V max When Among them, Vx is the collected forklift speed, V min is the preset minimum speed allowed, V max The maximum speed allowed by the preset; Heading angle cost C θ =||θ T -θ 0 ||; where θ 0 is the current forklift heading angle, θ T is the heading angle of the target position of the forklift; Preset a safety threshold d safe , Safety Cost Among them, N 5 is the total number of obstacles ahead, h is the index of the obstacle ahead, d h is the distance between the forklift and the hth obstacle; ε is a positive number.

5. The obstacle avoidance processing and analysis system based on forklift image data acquisition according to claim 4, It is characterized in that The obstacle avoidance strategy is obtained by: The entire driving area of ​​the forklift is divided into a discrete set of nodes; the value of the cost function is recorded as the total cost. For each node, the minimum total cost from the node corresponding to the current position of the forklift to the node corresponding to the front target position is calculated and recorded; starting from the node corresponding to the front target position, the record of the minimum total cost to each adjacent node is found, and the adjacent point with the smallest total cost is selected as the next path point. Repeat until backtracking to the current node. The path through the node is the optimal path from the current position of the forklift to the front target position, that is, the obstacle avoidance strategy.