Night image enhancement method based on cloud computing and truck unmanned driving system

Through the nighttime image enhancement method based on cloud computing, the model is used to identify and process the afterimage area in the image, which solves the problem of blurred object positions in the nighttime image, achieves accurate monitoring of truck cargo, and improves the safety of unmanned driving systems.

CN118799192APending Publication Date: 2024-10-18HUBEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410786078.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In nighttime images, due to longer exposure times and afterimages caused by vibration or movement, the location information of objects is blurred, making it difficult to determine the exact location and shape of objects, affecting the safety monitoring of truck cargo.

Method used

A nighttime image enhancement method based on cloud computing is adopted to identify and process afterimage areas in images through training models, and calculate safety values ​​to determine the tendency of goods to fall, including the use of ReLU functions, GAN algorithms and contour extraction algorithms, combined with perception modules and positioning And the map module, decision-making and planning module, and control module make safe driving decisions for the unmanned driving system.

Benefits of technology

It effectively reduces the impact of afterimages on the image, ensures accurate monitoring of the location and shape of cargo, and improves the safety of the unmanned driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799192A_ABST
    Figure CN118799192A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of unmanned driving, and discloses a night image enhancement method based on cloud computing and a truck unmanned driving system, and the truck unmanned driving system comprises a sensing module which comprises an electronic rearview mirror which is used for obtaining a rearview mirror image; and the positioning and map module is used for constructing a map in real time and positioning the vehicle, and the map comprises road topology, lane lines and traffic sign information. According to the method, the part with the ghosting in the night image is optimized, the influence of the ghosting on the position information of the object in the image can be reduced, the cargoes in the image can be accurately and spatially positioned, the accurate position and shape of the cargoes in the image can be effectively monitored, and the safety of unmanned driving is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of unmanned driving, and more specifically, to a night image enhancement method based on cloud computing and an unmanned driving system for trucks. Background Art

[0002] Trucks are large in size, slow to start and stop, and cause traffic jams when entering urban areas during the day. Therefore, many cities have issued regulations that trucks are not allowed to enter urban areas during the day in accordance with the Road Traffic Safety Law. Therefore, nighttime has become the main time period for trucks to transport materials. However, the accident rate at night is 1.5 times that of daytime. In order to reduce traffic accidents, trucks are equipped with electronic rearview mirror assisted driving systems.

[0003] When the electronic rearview mirror assisted driving system or the object vibrates or moves during the shooting process, the vibration or movement will appear as more afterimages on the image due to the longer exposure time of night shooting. The afterimage will make the object position information in the image blurred and lose the precise spatial positioning, making it difficult to judge the exact position and shape of the object in the image.

[0004] When a truck is carrying goods, the safety status of the goods needs to be monitored. However, images that cannot determine the exact position and shape cannot effectively monitor the safety status of the goods. Summary of the invention

[0005] The present invention provides a night image enhancement method and a truck unmanned driving system based on cloud computing, which solve the technical problems in the related technology that the exposure time of night shooting is longer, vibration or movement will show more afterimages on the image, and the afterimages will make the position information of the object in the image blurred, lose the precise spatial positioning, and make it difficult to judge the exact position and shape of the object in the image.

[0006] The present invention provides a night image enhancement method based on cloud computing, comprising the following steps:

[0007] S1: input a first high-brightness rearview mirror image without residual image and a first high-brightness rearview mirror image with residual image for training, obtain a first model through training, input a second high-brightness rearview mirror image without residual image into the first model, and obtain a second high-brightness rearview mirror image with residual image;

[0008] The first high-brightness rearview mirror image without residual image and the second high-brightness rearview mirror image without residual image are short-exposure images taken from the rearview mirror camera device when there is sufficient light;

[0009] The first high-brightness rearview mirror image with afterimage and the second high-brightness rearview mirror image with afterimage are long-exposure images taken from a rearview mirror camera device when there is sufficient light;

[0010] The first high-brightness rearview mirror image without residual image and the first high-brightness rearview mirror image with residual image of the same group are taken at the same time and at the same viewing angle;

[0011] S2: input a first low-brightness rearview mirror image with residual image and a second high-brightness rearview mirror image without residual image to train a second model, and when a second low-brightness rearview mirror image with residual image is input, a third high-brightness rearview mirror image with residual image is obtained;

[0012] The first low-brightness rearview mirror image with residual image and the second high-brightness rearview mirror image without residual image of the same group are shot at the same angle of view, and the vehicle is in the wind tunnel when shooting, and the same airflow parameters are used, and the first low-brightness rearview mirror image with residual image is shot when the light is insufficient;

[0013] The second rearview mirror image with residual image and low brightness is the rearview mirror image that needs to be analyzed;

[0014] S3: inputting the third high-brightness rearview mirror image without afterimage and the fourth high-brightness rearview mirror image with afterimage to train the third model, inputting the third high-brightness rearview mirror image with afterimage into the third model, and identifying and marking the afterimage area of ​​the third high-brightness rearview mirror image with afterimage;

[0015] The third high-brightness rearview mirror image without residual image and the fourth high-brightness rearview mirror image with residual image of the same group are taken at the same time and from the same viewing angle;

[0016] S4: identifying the area of ​​the rainproof cloth according to an initial rearview mirror image when the vehicle is stationary and well-lit when the vehicle starts, the initial rearview mirror image and the second rearview mirror image with residual image and low brightness have the same viewing angle;

[0017] Then the identified tarpaulin area is vertically projected onto the projection surface to obtain the tarpaulin area, and then the pixel point farthest from the origin is sampled as the inner contour pixel at each pixel point where the sampling line intersects with the tarpaulin area, and the inner contour pixels are connected to obtain the inner contour line;

[0018] S5: Calculate the difference between the sampling contour line and the inner contour line in the first coordinate system;

[0019] S6: Calculate the difference between the maximum X-axis coordinate value of the point on the sampling contour line and the maximum X-axis coordinate value of the point on the inner contour line as the first value; then calculate the safety value according to the difference between the sampling contour line and the inner contour line and the first value, and compare the safety value with the set threshold value. If it is less than the threshold value, continue driving; otherwise, it is determined that there is a tendency for the goods to fall, and it is necessary to stop and check the goods.

[0020] Further, in step S1, the first model includes a first hidden layer, a second hidden layer and an afterimage adding layer.

[0021] Furthermore, the calculation formula of the first hidden layer is as follows:

[0022]

[0023] Where σ represents the ReLU function, X represents the first feature matrix, and the i-th row vector of the first feature matrix is ​​the pixel feature vector of the i-th pixel. represents the sum of the pixel adjacency matrix and the identity matrix, express The degree matrix of represents the first weight parameter of the first hidden layer, represents the second weight parameter of the first hidden layer;

[0024] Furthermore, the calculation formula of the second hidden layer is as follows:

[0025]

[0026] Where σ represents the ReLU function, X represents the first feature matrix, and the i-th row vector of the first feature matrix is ​​the pixel feature vector of the i-th pixel. represents the sum of the pixel adjacency matrix and the identity matrix, express The degree matrix of represents the first weight parameter of the second hidden layer, Represents the second weight parameter of the second hidden layer.

[0027] Furthermore, the calculation formula of the residual image increase layer is as follows:

[0028]

[0029] in It represents an indicative function. The output value is 1 if the variable is greater than 0.5, otherwise it outputs 0. s is with vectors with the same number of columns, G s The values ​​of the elements in are randomly generated values ​​that conform to the Gaussian distribution. Represents G s Respectively The dot product of the values ​​of the elements in the i-th row in G s The i-th component of Multiply the elements in the i-th row and i-th column of , where T represents the transpose of the matrix;

[0030] The element in the i-th row and j-th column of S represents the replacement relationship between the i-th and j-th pixels of the input rearview mirror image. If the value of this element is 1, it means that the j-th pixel will be replaced by the i-th element.

[0031] Further, in step S2, the second model includes a generator model and a discriminator model.

[0032] Furthermore, the loss function of the generator model is:

[0033]

[0034] Wherein, L is the generator model, z is the rearview mirror image input to the generator, D is the discriminator model, and m is the number of the first low-brightness rearview mirror image with residual image and the second high-brightness rearview mirror image without residual image;

[0035] The loss function of its discriminator model is:

[0036]

[0037] Among them, x is the rearview mirror image output by the generator, L is the generator model, P is the discriminator model, z is the rearview mirror image input to the generator, and m is the number of the first low-brightness rearview mirror image with afterimage and the second high-brightness rearview mirror image without afterimage.

[0038] 8. The method for nighttime image enhancement based on cloud computing according to claim 1, characterized in that, in step S6, the calculation formula of the safety value is:

[0039]

[0040] A q represents the safety value, D2 represents the difference between the sampling contour line and the inner contour line, D1 represents the first value, and e represents the natural constant.

[0041] A truck unmanned driving system, which performs safe driving through a night image enhancement method based on cloud computing, comprises:

[0042] A perception module, including an electronic rearview mirror, wherein the electronic rearview mirror is used to obtain a rearview mirror image;

[0043] The positioning and mapping module is used to build maps and locate vehicles in real time, including road topology, lane lines, and traffic sign information;

[0044] The decision-making and planning module determines the current tendency of cargo falling based on the rearview mirror image enhanced by the night image of cloud computing, and makes driving decisions based on the tendency of cargo falling and the map information in the positioning and mapping module;

[0045] The control module is used to control the acceleration, steering and braking of the vehicle, and controls the vehicle to move to a safe parking position based on the driving decision and positioning obtained by the decision and planning module and the map information in the map module.

[0046] A storage medium stores non-transitory computer-readable instructions. When the non-transitory computer-readable instructions are executed by a computer, the steps in a nighttime image enhancement method based on cloud computing can be performed.

[0047] The beneficial effects of the present invention are as follows: in the night image enhancement method, the part where afterimage appears in the night image is optimized, which can reduce the influence of the afterimage on the position information of the object in the image, ensure that the goods in the image can be accurately spatially located, and can effectively monitor the accurate position and shape of the goods in the image, thereby ensuring the safety of unmanned driving. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a module diagram of an unmanned truck driving system of the present invention;

[0049] Figure 2 It is a flow chart of a night image enhancement method based on cloud computing of the present invention. DETAILED DESCRIPTION

[0050] The subject matter described herein will now be discussed with reference to example embodiments. It should be understood that the discussion of these embodiments is only to enable those skilled in the art to better understand and implement the subject matter described herein, and the functions and arrangements of the elements discussed may be changed without departing from the scope of protection of the contents of this specification. Each example may omit, replace or add various processes or components as needed. In addition, the features described relative to some examples may also be combined in other examples.

[0051] See also Figure 1 and Figure 2 As shown, a night image enhancement method based on cloud computing includes the following steps:

[0052] S1: input a first high-brightness rearview mirror image without residual image and a first high-brightness rearview mirror image with residual image for training, obtain a first model through training, input a second high-brightness rearview mirror image without residual image into the first model, and obtain a second high-brightness rearview mirror image with residual image;

[0053] The first high-brightness rearview mirror image without residual image and the second high-brightness rearview mirror image without residual image are short-exposure images taken from the rearview mirror camera device when there is sufficient light;

[0054] The first high-brightness rearview mirror image with afterimage and the second high-brightness rearview mirror image with afterimage are long-exposure images taken from a rearview mirror camera device when there is sufficient light;

[0055] The first high-brightness rearview mirror image without residual image and the first high-brightness rearview mirror image with residual image of the same group are taken at the same time and at the same viewing angle;

[0056] In one embodiment of the present invention, the first model includes:

[0057] The first hidden layer, the second hidden layer and the residual image adding layer, where the calculation formula of the first hidden layer is as follows:

[0058]

[0059] Where σ represents the ReLU function, X represents the first feature matrix, and the i-th row vector of the first feature matrix is ​​the pixel feature vector of the i-th pixel. represents the sum of the pixel adjacency matrix and the identity matrix, express The degree matrix of represents the first weight parameter of the first hidden layer, represents the second weight parameter of the first hidden layer;

[0060] The calculation formula for the second hidden layer is as follows:

[0061]

[0062] Where σ represents the ReLU function, X represents the first feature matrix, and the i-th row vector of the first feature matrix is ​​the pixel feature vector of the i-th pixel. represents the sum of the pixel adjacency matrix and the identity matrix, express The degree matrix of represents the first weight parameter of the second hidden layer, represents the second weight parameter of the second hidden layer;

[0063] In one embodiment of the present invention, the element in the i-th row and j-th column of the pixel adjacency matrix represents the neighbor relationship between the i-th and j-th pixels in the rearview mirror image, and if there is a neighbor relationship, the element value is 1, otherwise the element value is 0. The neighbor relationship can be defined as follows: there are no other pixels on the connecting line between two pixels with a neighbor relationship.

[0064] The pixel feature vector may be the RGB vector of the pixel.

[0065] The calculation formula for the residual image increase layer is as follows:

[0066]

[0067] in It represents an indicative function. The output value is 1 if the variable is greater than 0.5, otherwise it outputs 0. s is with vectors with the same number of columns, G sThe values ​​of the elements in are randomly generated values ​​that conform to the Gaussian distribution. Represents G s Respectively The dot product of the values ​​of the elements in the i-th row in G s The i-th component of Multiply the elements in the i-th row and i-th column of , where T represents the transpose of the matrix.

[0068] The element in the i-th row and j-th column of S represents the replacement relationship between the i-th and j-th pixels of the input rearview mirror image. If the value of this element is 1, it means that the j-th pixel will be replaced by the i-th element.

[0069] When training the first model, the first high-brightness rearview mirror image without residual image is input, and the output image after pixel replacement is compared with the first high-brightness rearview mirror image with residual image to calculate the loss. This loss can refer to the loss calculation method of image generation.

[0070] Furthermore, those skilled in the art may refer to the aforementioned models and model performances to select more model structures.

[0071] S2: input a first low-brightness rearview mirror image with residual image and a second high-brightness rearview mirror image without residual image to train a second model, and when a second low-brightness rearview mirror image with residual image is input, a third high-brightness rearview mirror image with residual image is obtained;

[0072] The first low-brightness rearview mirror image with residual image and the second high-brightness rearview mirror image without residual image of the same group are shot at the same angle of view, and the vehicle is in the wind tunnel when shooting, and the same airflow parameters are used, and the first low-brightness rearview mirror image with residual image is shot when the light is insufficient;

[0073] The second rearview mirror image with residual image and low brightness is the rearview mirror image that needs to be analyzed;

[0074] The second model is constructed using the GAN algorithm. Its generator inputs the first low-brightness rearview mirror image with afterimage during training, and inputs the second low-brightness rearview mirror image with afterimage during use. The generator outputs the third high-brightness rearview mirror image with afterimage.

[0075] The loss function of its generator model is:

[0076]

[0077] Among them, L is the generator model, z is the rearview mirror image input to the generator, D is the discriminator model, and m is the number of the first low-brightness rearview mirror image with afterimage and the second high-brightness rearview mirror image without afterimage.

[0078] The loss function of its discriminator model is:

[0079]

[0080] Among them, x is the rearview mirror image output by the generator, L is the generator model, P is the discriminator model, z is the rearview mirror image input to the generator, and m is the number of the first low-brightness rearview mirror image with afterimage and the second high-brightness rearview mirror image without afterimage.

[0081] S3: inputting the third high-brightness rearview mirror image without afterimage and the fourth high-brightness rearview mirror image with afterimage to train the third model, inputting the third high-brightness rearview mirror image with afterimage into the third model, and identifying and marking the afterimage area of ​​the third high-brightness rearview mirror image with afterimage;

[0082] The third high-brightness rearview mirror image without afterimage and the fourth high-brightness rearview mirror image with afterimage of the same group are captured at the same time and from the same viewing angle.

[0083] The contour of the afterimage area of ​​the third high-brightness rearview mirror image with afterimage is extracted by a contour extraction algorithm, the side of the truck bucket within the viewing angle of the third high-brightness rearview mirror image with afterimage is defined as a reference plane, a plane perpendicular to the reference plane is defined as a projection plane, the intersection line of the projection plane and the reference plane is the Y axis of the first coordinate system, one end point of the intersection line is the origin of the first coordinate system, the X axis of the first coordinate system is perpendicular to the reference plane, and the afterimage area is first vertically projected onto the projection plane to obtain a projection afterimage area;

[0084] Generate equidistant sampling lines on the first coordinate system, the sampling lines are perpendicular to the Y axis, and sample the pixel point with the largest brightness at the pixel point where each sampling line intersects the projection afterimage area as the sampling pixel;

[0085] The brightness of a pixel point in the afterimage area is the average brightness of all pixels in the afterimage area projected onto the pixel point;

[0086] Connect the sampling pixels in sequence to obtain the sampling contour line;

[0087] In one embodiment of the present invention, the sampling contour line is obtained by fitting the coordinate positions of all sampling pixels using a curve fitting algorithm.

[0088] It should be noted that the spacing between sampling lines is greater than one pixel.

[0089] In one embodiment of the present invention, the identification of the afterimage area adopts an existing target area identification algorithm, such as an edge detection algorithm and a neural network. The neural network for target area identification can be implemented using a convolutional neural network (CNN).

[0090] The aforementioned afterimage area only represents the afterimage features caused by the shaking of the rainproof cloth in the image, and does not include the afterimage features caused by other parts of the vehicle and real objects other than the vehicle.

[0091] S4: identifying the area of ​​the rainproof cloth according to an initial rearview mirror image when the vehicle is stationary and well-lit when the vehicle starts, the initial rearview mirror image and the second rearview mirror image with residual image and low brightness have the same viewing angle;

[0092] Then the identified tarpaulin area is vertically projected onto the projection surface to obtain the tarpaulin area, and then the pixel point farthest from the origin is sampled as the inner contour pixel at each pixel point where the sampling line intersects the tarpaulin area, and the inner contour pixels are connected to obtain the inner contour line.

[0093] In one embodiment of the present invention, the inner contour line is obtained by fitting the coordinate positions of all inner contour pixels using a curve fitting algorithm.

[0094] In one embodiment of the present invention, the area of ​​the rainproof cloth is identified based on the initial rearview mirror image when the vehicle is stationary and well-lit when it starts, and an existing target area recognition algorithm, such as an edge detection algorithm and a neural network, is used. The neural network for target area recognition can be implemented using a convolutional neural network (CNN).

[0095] S5: Calculate the difference between the sampling contour line and the inner contour line in the first coordinate system;

[0096] Methods for calculating the difference include:

[0097] Find the average difference: Calculate the difference between the sampling contour line and the inner contour line at the corresponding ordinate points, and then take the average of these differences as the difference, which can give the overall average difference.

[0098] Calculate the mean square error (MSE): Calculate the square of the difference between the sampling contour line and the inner contour line at the corresponding ordinate points, and then take the average of the square differences as the difference.

[0099] Correlation Coefficient: Calculate the correlation coefficient of the contour and inner contour as the difference.

[0100] S6: Calculate the difference between the maximum X-axis coordinate value of the point on the sampling contour line and the maximum X-axis coordinate value of the point on the inner contour line as the first value; then calculate the safety value according to the difference between the sampling contour line and the inner contour line and the first value.

[0101] The calculation formula of safety value is:

[0102]

[0103] A qrepresents the safety value, D2 represents the difference between the sampling contour line and the inner contour line, D1 represents the first value, and e represents the natural constant.

[0104] The safety value is compared with the set threshold. If it is less than the threshold, the vehicle continues to drive. Otherwise, it is judged that there is a tendency for the cargo to fall, and the vehicle needs to stop and check the cargo.

[0105] Checking the cargo may include steps to re-strap or secure the cargo.

[0106] It should be noted that the night image enhancement process includes the following steps:

[0107] Image acquisition: The images transmitted to the cloud need to be normalized to make the original image pixel distribution more uniform;

[0108] Preprocessing: adjust the grayscale image to achieve a certain degree of adaptive enhancement;

[0109] Enhanced processing: The night image enhancement method based on cloud computing is used to process the night images and then predict the tendency of cargo falling.

[0110] At least one embodiment of the present invention provides a truck unmanned driving system, such as Figure 1 As shown, including:

[0111] A perception module, including an electronic rearview mirror, wherein the electronic rearview mirror is used to obtain a rearview mirror image;

[0112] Specifically, the perception module also includes sensing components such as cameras, lidar, radar and ultrasonic sensors. Cameras are used to capture images on the road and identify other vehicles, pedestrians, etc.; lidar is used to provide high-precision obstacle detection and distance measurement; radar is used for long-distance target detection and tracking; ultrasonic sensors are used for obstacle detection under low-speed moving conditions; the above sensing components are used to assist the safe driving of trucks.

[0113] The positioning and mapping module is used to build maps and locate vehicles in real time, including road topology, lane lines, traffic signs and other information in the map;

[0114] Specifically, the positioning and mapping module includes a global satellite positioning system and an inertial navigation system. The global satellite positioning system includes a GPS receiver and a multi-band GPS receiver. The GPS receiver is used to receive signals from satellites and calculate the precise position of the vehicle. The multi-band GPS receiver can receive GPS signals in multiple frequency bands to improve the accuracy and stability of positioning. The inertial navigation system includes devices such as accelerometers, gyroscopes and magnetometers. The accelerometer is used to measure the acceleration of the vehicle, the gyroscope is used to measure the angular velocity and rotation angle change of the vehicle, and the magnetometer is used to assist in determining the direction of the vehicle.

[0115] The decision-making and planning module determines the current tendency of cargo falling based on the rearview mirror image enhanced by the night image of cloud computing, and makes driving decisions based on the tendency of cargo falling and the map information in the positioning and mapping module;

[0116] The control module is used to control the acceleration, steering and braking of the vehicle, and control the vehicle to move to a safe parking position according to the driving decision and positioning obtained by the decision and planning module and the map information in the map module;

[0117] Specifically, the control module includes a vehicle dynamics control unit, a vehicle stability control unit and an automatic driving system interface, wherein the vehicle dynamics control unit is used to control the acceleration, braking and steering operations of the vehicle; the vehicle stability control is used to ensure the stability and balance of the vehicle under various road conditions; and the automatic driving system interface is used to convert the instructions output by the decision and planning module into actual vehicle control signals.

[0118] It should be noted that when the control module controls the vehicle to move to a safe parking position, it needs to build a transmission channel to transmit the image in the cloud, which specifically includes:

[0119] Use the MQTT protocol to connect the vehicle hardware system to the cloud server;

[0120] Upload the collected image information to the cloud server;

[0121] Deploy image enhancement work on the cloud server and perform image processing on images uploaded to the cloud server;

[0122] The images processed in the cloud are transmitted to the electronic rearview mirror on the vehicle.

[0123] At least one embodiment of the present disclosure provides a storage medium storing non-transitory computer-readable instructions for executing one or more steps in the aforementioned cloud computing-based nighttime image enhancement method.

[0124] The computer program may be stored / distributed on a suitable medium, such as an optical storage medium or a solid-state medium supplied together with or as part of other hardware, but may also be distributed in other forms, such as via the Internet or other wired or wireless telecommunication systems. Any reference signs in the claims should not be construed as limiting the scope.

[0125] The above describes an embodiment of the present embodiment, but the present embodiment is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present embodiment, ordinary technicians in this field can also make many forms, all of which are within the protection of the present embodiment.

Claims

1. A night image enhancement method based on cloud computing, characterized in that: The following steps are involved: S1: input a first high-brightness rearview mirror image without residual image and a first high-brightness rearview mirror image with residual image for training, obtain a first model through training, input a second high-brightness rearview mirror image without residual image into the first model, and obtain a second high-brightness rearview mirror image with residual image; The first high-brightness rearview mirror image without residual image and the second high-brightness rearview mirror image without residual image are short-exposure images taken from the rearview mirror camera device when there is sufficient light; The first high-brightness rearview mirror image with afterimage and the second high-brightness rearview mirror image with afterimage are long-exposure images taken from a rearview mirror camera device when there is sufficient light; The first high-brightness rearview mirror image without residual image and the first high-brightness rearview mirror image with residual image of the same group are taken at the same time and at the same viewing angle; S2: input a first low-brightness rearview mirror image with residual image and a second high-brightness rearview mirror image without residual image to train a second model, and when a second low-brightness rearview mirror image with residual image is input, a third high-brightness rearview mirror image with residual image is obtained; The first low-brightness rearview mirror image with residual image and the second high-brightness rearview mirror image without residual image of the same group are shot at the same angle of view, and the vehicle is in the wind tunnel when shooting, and the same airflow parameters are used, and the first low-brightness rearview mirror image with residual image is shot when the light is insufficient; The second rearview mirror image with residual image and low brightness is the rearview mirror image that needs to be analyzed; S3: inputting the third high-brightness rearview mirror image without afterimage and the fourth high-brightness rearview mirror image with afterimage to train the third model, inputting the third high-brightness rearview mirror image with afterimage into the third model, and identifying and marking the afterimage area of ​​the third high-brightness rearview mirror image with afterimage; The third high-brightness rearview mirror image without residual image and the fourth high-brightness rearview mirror image with residual image of the same group are taken at the same time and from the same viewing angle; S4: identifying the area of ​​the rainproof cloth according to an initial rearview mirror image when the vehicle is stationary and well-lit when the vehicle starts, the initial rearview mirror image and the second rearview mirror image with residual image and low brightness have the same viewing angle; Then the identified tarpaulin area is vertically projected onto the projection surface to obtain the tarpaulin area, and then the pixel point farthest from the origin is sampled as the inner contour pixel at each pixel point where the sampling line intersects with the tarpaulin area, and the inner contour pixels are connected to obtain the inner contour line; S5: Calculate the difference between the sampling contour line and the inner contour line in the first coordinate system; S6: Calculate the difference between the maximum X-axis coordinate value of the point on the sampling contour line and the maximum X-axis coordinate value of the point on the inner contour line as the first value; then calculate the safety value according to the difference between the sampling contour line and the inner contour line and the first value, and compare the safety value with the set threshold value. If it is less than the threshold value, continue driving; otherwise, it is determined that there is a tendency for the goods to fall, and it is necessary to stop and check the goods.

2. The night image enhancement method based on cloud computing according to claim 1, characterized in that: In step S1, the first model includes a first hidden layer, a second hidden layer and an afterimage adding layer.

3. The night image enhancement method based on cloud computing according to claim 2, characterized in that: The calculation formula of the first hidden layer is as follows: Where σ represents the ReLU function, X represents the first feature matrix, and the i-th row vector of the first feature matrix is ​​the pixel feature vector of the i-th pixel. represents the sum of the pixel adjacency matrix and the identity matrix, express The degree matrix of represents the first weight parameter of the first hidden layer, Represents the second weight parameter of the first hidden layer.

4. The night image enhancement method based on cloud computing according to claim 3, characterized in that: The calculation formula of the second hidden layer is as follows: Where σ represents the ReLU function, X represents the first feature matrix, and the i-th row vector of the first feature matrix is ​​the pixel feature vector of the i-th pixel. represents the sum of the pixel adjacency matrix and the identity matrix, express The degree matrix of represents the first weight parameter of the second hidden layer, Represents the second weight parameter of the second hidden layer.

5. The night image enhancement method based on cloud computing according to claim 4, characterized in that: The calculation formula for the residual image increase layer is as follows: in It represents an indicative function. The output value is 1 if the variable is greater than 0.5, otherwise it outputs 0. s is with vectors with the same number of columns, G s The values ​​of the elements in are randomly generated values ​​that conform to the Gaussian distribution. Represents G s Respectively The dot product of the values ​​of the elements in the i-th row in G s The i-th component of Multiply the elements in the i-th row and i-th column of , where T represents the transpose of the matrix; The element in the i-th row and j-th column of S represents the replacement relationship between the i-th and j-th pixels of the input rearview mirror image. If the value of this element is 1, it means that the j-th pixel will be replaced by the i-th element.

6. The night image enhancement method based on cloud computing according to claim 1, characterized in that: In step S2, the second model includes a generator model and a discriminator model.

7. The method for nighttime image enhancement based on cloud computing according to claim 6, characterized in that: The loss function of its generator model is: Wherein, L is the generator model, z is the rearview mirror image input to the generator, D is the discriminator model, and m is the number of the first low-brightness rearview mirror image with residual image and the second high-brightness rearview mirror image without residual image; The loss function of its discriminator model is: Among them, x is the rearview mirror image output by the generator, L is the generator model, P is the discriminator model, z is the rearview mirror image input to the generator, and m is the number of the first low-brightness rearview mirror image with afterimage and the second high-brightness rearview mirror image without afterimage.

8. The night image enhancement method based on cloud computing according to claim 1, characterized in that: In step S6, the calculation formula of the safety value is: A q represents the safety value, D2 represents the difference between the sampling contour line and the inner contour line, D1 represents the first value, and e represents the natural constant.

9. A truck unmanned driving system, characterized in that: The method for performing safe driving by using a nighttime image enhancement method based on cloud computing as claimed in any one of claims 1 to 8 comprises: A perception module, including an electronic rearview mirror, wherein the electronic rearview mirror is used to obtain a rearview mirror image; The positioning and mapping module is used to build maps and locate vehicles in real time, including road topology, lane lines, and traffic sign information; The decision-making and planning module determines the current tendency of cargo falling based on the rearview mirror image enhanced by the night image of cloud computing, and makes driving decisions based on the tendency of cargo falling and the map information in the positioning and mapping module; The control module is used to control the acceleration, steering and braking of the vehicle, and controls the vehicle to move to a safe parking position based on the driving decision and positioning obtained by the decision and planning module and the map information in the map module.

10. A storage medium, characterized in that: It stores non-transitory computer-readable instructions, and when the non-transitory computer-readable instructions are executed by a computer, the steps in the night image enhancement method based on cloud computing as described in any one of claims 1-8 can be executed.