A construction traffic diversion system and method based on deep learning and image recognition

By introducing cleaning components and air blowing components into the construction traffic diversion device, foreign objects on the camera are automatically cleaned, and combined with deep learning models for image recognition, the problem of camera pollution in the construction environment is solved, the recognition effect and efficiency are improved, and intelligence is achieved traffic diversion.

CN116863714BActive Publication Date: 2024-09-20CHINA RAILWAY CONSTRUCTION ENGINEERING GROUP
View PDF 20 Cites 0 Cited by

Patent Information

Application Number
CN202311008739.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2024-09-20
Estimated Expiration
2043-08-11

AI Technical Summary

Technical Problem

In the construction environment of existing construction traffic diversion devices, the camera lens is easily contaminated by dust and foreign matter, resulting in poor cleaning effect and affecting the recognition effect, and the existing image processing algorithm is not optimized for the traffic field.

Method used

A construction traffic guidance system based on deep learning and image recognition is designed, including a cleaning component, a moving component and an air blowing component. By automatically cleaning foreign objects, the structural strength of the brush hose is enhanced, and air flow is used to blow away residual foreign objects. Combined with Deep learning models for image recognition and grooming.

Benefits of technology

It realizes automated foreign matter cleaning, improves the cleaning effect of the camera lens, reduces the need for manual maintenance, improves the efficiency of image recognition and the accuracy of traffic guidance, and ensures the normal operation of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116863714B
    Figure CN116863714B
Patent Text Reader

Abstract

The present invention discloses a construction traffic diversion system and method based on deep learning and image recognition, comprising a mounting frame, a fixing seat is arranged on the surface of the mounting frame, a camera is arranged on the surface of the fixing seat, a network communication module is installed on one side of the fixing seat, the camera and the network communication module are connected by a wire, a cleaning component is arranged on the lens surface of the camera, and the image recognition module is configured in a cloud platform; when the present invention is in use, the cleaning component, the moving component and the blowing component cooperate with each other, so that the harder foreign matter on the camera can be scraped and cleaned, and the automatic operation is convenient and quick to use, and at the same time, the residual foreign matter in the cleaning process can be prevented from causing secondary pollution to the camera surface, the cleaning effect is better, the cleaning time is saved, the work efficiency is improved, and the normal operation of the device is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of construction traffic diversion devices, and in particular to a construction traffic diversion system and method based on deep learning and image recognition. Background Art

[0002] Deep learning is a machine learning method based on artificial neural networks. Through a multi-level neural network structure, deep learning can automatically learn and extract high-level features in images, thereby realizing the ability to recognize and understand complex scenes. In the construction traffic diversion system, deep learning technology can be used to train an image recognition model so that it can accurately identify vehicles, pedestrians, traffic signs, and construction areas on the road. By combining deep learning and image recognition technology, the construction traffic diversion device can monitor and analyze road traffic conditions in real time, and conduct intelligent diversion and warning according to actual conditions. The working principle of the device is to capture road traffic images in real time through a camera array and then transmit the images to a data processing unit. The data processing unit uses a deep learning model to perform image recognition and analysis, judge traffic conditions and construction areas, and generate corresponding diversion information. Finally, diversion guidance is provided to drivers and pedestrians through display screens and warning devices to ensure traffic safety and construction progress.

[0003] However, in the existing devices, cameras used to capture traffic conditions are prone to dust sticking to their lenses in construction environments. Generally, dust is cleaned by setting a cleaning brush. However, in actual use, the external environment is complex, and various bird and insect foreign objects stay on the camera. Foreign objects such as feces harden and adhere to the lens under the sun. Since the brush is soft and cannot be cleaned thoroughly, the cleaning effect is poor, which affects the recognition and capture effect of the device.

[0004] At the same time, there are also some problems with the current image processing algorithms. The existing algorithms are basically implemented based on OpenCV and are not optimized for the characteristics of the transportation field. Summary of the invention

[0005] The purpose of the present invention is to solve the problems in the prior art such as the complex external environment, various bird and insect foreign objects staying on the camera, foreign objects such as feces hardening and adhering to the lens under the sun, and the cleaning effect is poor due to the soft brush not being able to clean thoroughly, affecting the recognition and capture effect of the device, as well as the problems existing in the existing image processing algorithms. A construction traffic diversion system and method based on deep learning and image recognition is proposed.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] A construction traffic diversion system based on deep learning and image recognition comprises a mounting frame, a fixing seat is arranged on the surface of the mounting frame, a camera is arranged on the surface of the fixing seat, a network communication module is installed on one side of the fixing seat, and the camera is connected to the network communication module through a wire to receive control data from a cloud platform. The system is characterized in that it also comprises:

[0008] A cleaning component is arranged on the lens surface of the camera and is used to clean foreign matter generated by the lens on the surface of the camera;

[0009] A moving component is arranged on the cleaning component, one end of which is mounted on the surface of the camera, and is used to increase the structural strength of the cleaning component during cleaning;

[0010] The air blowing component is arranged on the cleaning component to blow away the foreign matter remaining on the cleaning component;

[0011] The cloud platform is provided with an image recognition module for receiving and processing image data from the camera and then issuing control instructions.

[0012] Preferably, the cleaning assembly includes: a mounting box mounted on the surface of the camera, a driving unit being mounted on the bottom inner wall of the mounting box; a rotating shaft, the rotating shaft being rotatably connected to the surface of the camera via a bearing, a driven wheel being fixed to the surface of the rotating shaft, a driving wheel being driven by a belt on the surface of the driven wheel, the axis of the driving wheel being fixedly connected to the output end of the driving unit; a cleaning plate located on one side of the driven wheel and fixed on the surface of the rotating shaft; and a brush hose being evenly spaced and arranged on the surface of the cleaning plate, a brush head being mounted on the end of the brush hose.

[0013] Preferably, the moving component includes: a connecting plate, which is arranged above the first telescopic rod and connected to the surface of the cleaning plate through an elastic member; a sliding rod, which is fixedly installed on the bottom surface of the connecting plate at equal intervals, and the sliding rod is slidably connected in the brush hose; an arc plate, which is arranged above the sliding rod, and a sliding groove is provided on the bottom surface of the arc plate, and a fixing plate connected to the camera is fixed on the surface of the arc plate; a ball bearing, which is installed on the surface of the connecting plate and is slidably connected in the sliding groove.

[0014] Preferably, the blowing assembly includes: an extension plate fixed to one end of the connecting plate; a square plate arranged on one side of the extension plate, an extrusion plate fixed to the end of the square plate; an air bag installed on the top surface of the mounting box, one side of the air bag is in contact with the extrusion plate, and the top of the air bag is connected to an air pipe; a cavity is opened in the cleaning plate, one end of the air pipe passes through the cleaning plate and is connected to the cavity; and jet heads are arranged on the bottom surface of the cleaning plate at equal intervals, and the jet heads are located between two adjacent brush hoses.

[0015] Preferably, the elastic member includes a first telescopic rod fixed to the bottom surface of the connecting plate, the bottom of the first telescopic rod is fixedly connected to the cleaning plate, the surface of the first telescopic rod is sleeved with an extrusion spring, and the two ends of the extrusion spring are respectively fixedly connected to the connecting plate and the cleaning plate.

[0016] Preferably, an opening is provided on the top surface of the installation box, and the belts wound around the driven wheel and the driving wheel pass through the opening, and a sponge strip is fixed to one side of the cleaning plate.

[0017] Preferably, a fixing block is fixed to one end of the extrusion plate, a second telescopic rod is installed on the surface of the fixing block, a limiting plate is fixed to the end of the second telescopic rod, the limiting plate is fixed on the surface of the mounting box, a return spring is sleeved on the surface of the second telescopic rod, and both ends of the return spring are fixedly connected to the second telescopic rod and the limiting plate respectively.

[0018] Preferably, a groove plate is provided on the top of the installation box on one side of the limiting plate, and one side of the groove plate is in contact with the camera.

[0019] Preferably, an indicator light is provided on one side of the mounting frame, the indicator light is mounted on a mounting column, the bottom of the mounting column is fixedly connected to one of the columns, and the two columns are fixedly mounted together with the mounting frame by bolts.

[0020] A method for using a construction traffic diversion system based on deep learning and image recognition mainly includes the following steps:

[0021] S1: When in use, the camera is installed on a fixed seat, and the camera is used to capture the road traffic image of the construction site in real time. The image data is then transmitted to the management center through the network communication module. The deep learning model in the data processing platform of the management center is used to combine image recognition and understand the content in the image, so that vehicles, pedestrians, traffic signs and construction areas on the road can be accurately identified. Then, according to the actual situation, the management center issues instructions for intelligent guidance and warning;

[0022] S2: During use, due to the complex environment of the construction site, more dust and foreign matter will be generated on the surface of the camera. The cleaning component set on the camera can be used to clean the foreign matter attached to the camera surface in time to prevent dust and foreign matter from blocking the lens of the camera and affecting the normal use of the camera monitoring capture. When the cleaning component is in operation, the moving component is driven by the cleaning component to run synchronously. The force generated by the cleaning component during cleaning is used to insert the sliding rod on the moving component into the inside of the brush hose, so that hardened foreign matter that is difficult to clean can be easily scraped off during cleaning operations. When the moving component is running, it drives the blowing component to run synchronously, so that the airflow generated by the blowing component is blown to the cleaning component to blow off and clean the foreign matter remaining between two adjacent brush hoses.

[0023] Compared with the prior art, the present invention provides a construction traffic diversion system based on deep learning and image recognition, which has the following beneficial effects:

[0024] 1. A construction traffic diversion system based on deep learning and image recognition uses a cleaning component set on the camera. When foreign matter is generated at the lens of the camera, the cleaning component automatically cleans the lens surface of the camera, thereby eliminating the trouble of manual maintenance and cleaning, saving the labor emphasis of maintenance personnel, and improving the use effect of the device.

[0025] 2. This construction traffic diversion system based on deep learning and image recognition, through the cooperation of the cleaning component and the moving component, when cleaning the lens on the surface of the camera, drives the moving component to run synchronously, so that the sliding rod is inserted into the inside of the brush hose, thereby enhancing the structural strength of the brush hose, thereby facilitating the cleaning component to clean harder foreign objects more conveniently, further improving the cleaning effect of the device.

[0026] 3. This construction traffic diversion system based on deep learning and image recognition, through the mutual cooperation of the moving component and the blowing component, when the moving component is in use, drives the blowing component to run synchronously, so that the airflow generated by the blowing component can blow off and clean the foreign matter remaining between the two adjacent brush hoses of the cleaning component, avoiding the foreign matter remaining on the cleaning component and causing secondary pollution to the lens of the camera.

[0027] The parts not involved in the device are the same as the prior art or can be implemented by the prior art. When in use, the present invention can scrape and clean the harder foreign objects on the camera through the cooperation of the cleaning component, the moving component and the blowing component. The automated operation is convenient and quick to use. At the same time, it can avoid secondary contamination of the camera surface by residual foreign objects during the cleaning process. The cleaning effect is better, the cleaning time is saved, the work efficiency is improved, and the normal operation of the device is guaranteed.

[0028] 4. Foreign objects are processed through software and hardware algorithms, which greatly improves the efficiency of image recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 This is a schematic diagram of the overall structure of a construction traffic diversion system based on deep learning and image recognition proposed by the present invention;

[0030] Figure 2 This is a front view structural schematic diagram of a construction traffic diversion system based on deep learning and image recognition proposed by the present invention;

[0031] Figure 3 This is a schematic diagram of the top view of the construction traffic diversion system based on deep learning and image recognition proposed by the present invention;

[0032] Figure 4 A schematic diagram of the local stereoscopic structure of a camera in a construction traffic diversion system based on deep learning and image recognition proposed by the present invention;

[0033] Figure 5 A schematic diagram of a local zoom structure of a camera in a construction traffic diversion system based on deep learning and image recognition proposed by the present invention;

[0034] Figure 6 A schematic diagram of a partial cross-sectional structure of a cleaning component in a construction traffic diversion system based on deep learning and image recognition proposed by the present invention;

[0035] Figure 7 This is a schematic diagram of the local three-dimensional structure of a mobile component in a construction traffic diversion system based on deep learning and image recognition proposed by the present invention;

[0036] Figure 8 This is a schematic diagram of the partial three-dimensional structure of an air blowing component in a construction traffic diversion system based on deep learning and image recognition proposed by the present invention.

[0037] In the figure: 1. mounting bracket; 2. fixing seat; 3. camera; 4. network communication module; 5. cleaning component; 51. mounting box; 52. driving part; 53. driving wheel; 54. driven wheel; 55. rotating shaft; 56. cleaning plate; 57. brush hose; 58. brush head; 6. moving component; 61. first telescopic rod; 62. connecting plate; 63. extrusion spring; 64. sliding rod; 65. ball bearing; 66. slide groove; 67. arc plate; 68. fixing plate; 7. blowing component; 71. extension plate; 72. square plate; 73. extrusion plate; 74. air bag; 75. air pipe; 76. cavity; 77. jet nozzle; 8. opening; 9. fixing block; 10. second telescopic rod; 11. reset spring; 12. limit plate; 13. groove plate; 14. sponge strip; 15. indicator light; 16. mounting column; 17. column. DETAILED DESCRIPTION

[0038] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0039] In the description of the present invention, it is necessary to understand that the terms "upper", "lower", "front", "back", "left", "right", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0040] Reference Figures 1 to 8 A construction traffic diversion system based on deep learning and image recognition includes a mounting frame 1, a fixing seat 2 is arranged on the surface of the mounting frame 1, a camera 3 is arranged on the surface of the fixing seat 2, a network communication module 4 is installed on one side of the fixing seat 2, and the camera 3 is connected to the network communication module 4 through a wire to receive control data from a cloud platform.

[0041] In this embodiment, it also includes:

[0042] The cleaning component 5 is arranged on the lens surface of the camera 3 and is used to clean foreign matter generated on the lens surface of the camera 3 .

[0043] The moving component 6 is arranged on the cleaning component 5, and one end of the moving component 6 is installed on the surface of the camera 3, so as to increase the structural strength of the cleaning component 5 during cleaning.

[0044] The blowing component 7 is arranged on the cleaning component 5 to blow away the foreign matters remaining on the cleaning component 5 after cleaning.

[0045] The cloud platform is provided with an image recognition module for receiving and processing image data from the camera and then issuing control instructions.

[0046] In the present invention, when in use, the camera 3 is installed on the fixing seat 2, and the road traffic image of the construction site is captured in real time by the camera 3. Then the image data is transmitted to the management center through the network communication module 4. The deep learning model in the data processing platform of the management center is combined with image recognition and understanding of the content in the image, so that vehicles, pedestrians, traffic signs and construction areas on the road can be accurately identified. Then, according to the actual situation, instructions are issued through the management center to carry out intelligent guidance and warning. During use, due to the complex environment of the construction site, more dust and foreign matter will be generated on the surface of the camera 3. Through the cleaning component 5 set on the camera 3, foreign matter attached to the surface of the camera 3 can be cleaned in time to avoid dust and foreign matter blocking the lens of the camera 3, affecting the normal use of the camera 3 monitoring and capturing, and ensuring the normal operation of the camera 3. This avoids the trouble of maintenance personnel manually climbing up to perform maintenance, and reduces the labor intensity of maintenance personnel. When the cleaning component 5 is in operation, the moving component 6 is driven by the cleaning component 5 to operate synchronously. The force generated by the cleaning component 5 during cleaning is used to make the slide bar 64 on the moving component 6 insert into the interior of the brush hose 57, thereby increasing the structural strength of the brush hose 57. In this way, when cleaning hardened foreign objects that are difficult to clean, they can be easily scraped off, thereby improving the cleaning effect of the device, and avoiding the phenomenon that the traditional method of cleaning is not clean enough due to the soft brush material. When the moving component 6 is in operation, it drives the blowing component 7 to operate synchronously, so that the airflow generated by the blowing component 7 is blown to the cleaning component 5, and the foreign objects remaining between the two adjacent brush hoses 57 during scraping are blown off and cleaned, thereby avoiding the secondary pollution of the surface of the camera 3 caused by the residual foreign objects, further improving the cleaning effect of the device, and being convenient and quick to use.

[0047] In one embodiment, the image recognition module of the cloud platform is described in detail.

[0048] Step S1: Obtain image data from the camera (i.e., input image) and pre-process the image. This step includes:

[0049] Step S11: The input image is adjusted to a predetermined size (eg, 300×300 pixels) to be suitable for the traffic image recognition network.

[0050] Step S12: Divide the pixel values ​​of the input image by a predetermined value (such as 255) one by one to normalize the image and standardize it to the range of [0, 1].

[0051] Step S13: randomly crop, flip, rotate or distort the input image to increase the diversity of training data and enhance the image.

[0052] Step S2: Pedestrian detection, which includes:

[0053] Step S21: Retrieve the trained improved traffic image recognition network. The input image is input into the improved traffic image recognition network, which consists of a base network (e.g., VGG-16) and several additional layers. The base network is a pre-trained convolutional neural network (CNN) that extracts low-level features from the input image. Additional layers are added on top of the base network and generate feature maps of different scales and aspect ratios. The feature maps are used to predict bounding boxes and class labels of objects in the image. The base network extracts low-level features from the input image, while the additional layers generate feature maps of different scales and aspect ratios. The improved traffic image recognition network uses cross entropy loss function, deconvolution, and non-maximum suppression to enhance detection accuracy.

[0054] The loss function consists of two terms: positioning loss and confidence loss. Positioning loss uses smooth L1 loss to measure the difference between the predicted bounding box and the ground truth bounding box. Confidence loss uses softmax loss to measure the difference between the predicted class label and the true class label. In this embodiment, deconvolution is used to improve the detection accuracy of small objects, and non-maximum suppression (NMS) is used to reduce the number of redundant or overlapping bounding boxes.

[0055] Built and trained using the deep learning framework TensorFlow. The network is implemented in Python using TensorFlow's APIs and modules. The network is trained on large-scale image datasets with annotated bounding boxes and class labels, such as COCO or PASCALVOC. The network is trained using stochastic gradient descent with momentum, learning rate decay, weight decay, and batch normalization. The network is trained for a certain number of epochs until convergence or the desired performance level is reached.

[0056] Step S22: Detection output. The output of the improved traffic image recognition network is a set of bounding boxes containing confidence scores and class labels for each pedestrian detected in the input image.

[0057] Step S3: Pedestrian tracking. This step includes:

[0058] Step S31: Deep Sorting Algorithm. The detection output is input into the deep detection module, which uses a Kalman filter to predict the state of each tracked pedestrian and uses a deep neural network to extract appearance features for association. The deep detection module assigns a unique ID to each tracked pedestrian and updates their trajectory over time.

[0059] The deep detection module consists of two main parts: a Kalman filter and a deep neural network. The Kalman filter predicts the state of each tracked object based on its previous observations and motion dynamics. The deep neural network extracts appearance features based on the bounding boxes and class labels of the detected objects. The deep detection module uses the detection network to generate a set of bounding boxes with confidence scores and class labels for each detected object in each frame of the image sequence. The detection output is fed as input to the tracking algorithm. The detection module uses the Hungarian algorithm to assign detections to tracks based on their intersection over union (IoU) values ​​and confidence scores. Additionally, the detection module uses the cosine distance metric to compare the appearance features of detections and tracks to improve the association accuracy.

[0060] The algorithm handles occlusions, missed detections, and false positives by using a trajectory management module that creates, deletes, or updates tracks based on their age, visibility, and confidence. The algorithm also uses a motion model to estimate the position and velocity of each track based on its history and Kalman filter predictions.

[0061] Step S32: Tracking output, the output of the depth detection module is a set of bounding boxes, which contain the ID and trajectory of each tracked pedestrian in the input image sequence.

[0062] Step S4: detection and correction, which specifically includes:

[0063] Step S41: Call the pre-stored improved CascadeR-CNN network. The detection output is fed into the improved CascadeR-CNN network, which is a multi-level object detection architecture that uses deformable convolution and group normalization to improve detection performance. The improved CascadeR-CNN network refines the bounding box of the detected pedestrian by applying a series of region proposal networks (RPNs) and region of interest (RoI) alignment layers with increasing IoU thresholds.

[0064] Step S42: Corrected Output,The output of the improved CascadeR-CNN network is a set of corrected bounding boxes,which contain the confidence scores and class labels for each pedestrian detected in the input,image.

[0065] Step S43: Output fusion, fuse the correction output with the tracking output by matching the bounding box according to the IoU value and ID. The fused output is the final result of the algorithm, which contains the bounding box, confidence score, class label, ID and trajectory of each tracked pedestrian in the input image sequence.

[0066] In a further embodiment, the camera and the laser radar may cooperate to collect and process relevant data. The specific process is as follows:

[0067] Step S1: Sensor data collection. This step includes:

[0068] Step S11: Camera data acquisition. The camera captures an RGB image of the scene at a certain frame rate (e.g., 30fps) and resolution (e.g., 1920×1080 pixels).

[0069] Step S12: LiDAR data acquisition. LiDAR uses a laser beam to scan the scene at a certain rotation rate (e.g., 10 Hz) and angular resolution (e.g., 0.1 degrees). LiDAR returns a point cloud of the scene, which contains the 3D coordinates (x, y, z) and intensity values ​​of each point.

[0070] In the above steps, images and point clouds have different frame rates, resolutions, and coordinate systems.

[0071] Step S2: Sensor data calibration. This step includes:

[0072] Step S21: Use a calibration plate or chessboard pattern to estimate the intrinsic and extrinsic parameters of the camera to calibrate the camera. The intrinsic parameters include focal length, principal point, distortion coefficient, etc., while the extrinsic parameters include the rotation matrix and translation vector that describe the position of the camera relative to the world coordinate system.

[0073] Step S22: LiDAR calibration, the intrinsic and extrinsic parameters of the LiDAR can also be estimated using a calibration plate or chessboard pattern. The intrinsic parameters include rotation rate, angular resolution, range resolution, etc., while the extrinsic parameters include the rotation matrix and translation vector that describe the LiDAR's position relative to the same world coordinate system as the camera.

[0074] Step S23: Camera and LiDAR calibration, using a calibration plate or chessboard pattern visible to both sensors to estimate the transformation matrix describing the relative pose of the LiDAR with respect to the camera. The transformation matrix is ​​used to project the LiDAR point cloud onto the camera image plane and vice versa.

[0075] Calibration estimates the intrinsic and extrinsic parameters of each sensor and the transformation matrix between them.

[0076] Step S3: pedestrian detection, which includes:

[0077] Step S31: Camera-based detection. The camera image is fed into a deep neural network (e.g., YOLOv3) to perform object detection and classification. The output of the network is a set of bounding boxes containing confidence scores and class labels for each detected object (including pedestrians) in the image.

[0078] Step S32: LiDAR-based detection. The LiDAR point cloud is input into another deep neural network (e.g., PointPillars) that performs object detection and classification in 3D space. The output of the network is a set of oriented bounding boxes containing confidence scores and class labels for each detected object (including pedestrians) in the point cloud.

[0079] Step S33: Detection fusion. The camera-based detection and LiDAR-based detection are fused by matching bounding boxes according to IoU values ​​and class labels. The fused detection output is a set of bounding boxes containing confidence scores and class labels for each detected pedestrian in 2D and 3D space.

[0080] Step S4: Pedestrian tracking. This step includes:

[0081] Step S41: Multi-target tracking algorithm. The fused detection output is input into a multi-target tracking method that uses a Kalman filter to predict the state of each tracked pedestrian and uses the Hungarian algorithm to assign detections to tracks based on IoU values ​​and confidence scores. The multi-target tracking algorithm assigns a unique ID to each tracked pedestrian and updates their trajectories over time.

[0082] Step S42: Tracking output, the output of the multi-target tracking algorithm is a set of bounding boxes containing the ID and trajectory of each tracked pedestrian in 2D and 3D space.

[0083] In a further embodiment, for lens contamination, an image restoration method based on image learning is provided, and the data processing flow is as follows:

[0084] Step S1: Collect input images and perform image degradation processing. This step includes:

[0085] Step S11: lens contamination simulation, by adding a layer of dust, water droplets or other contaminants on the clean image to simulate lens contamination. The contamination layer is generated by randomly sampling from a set of predefined masks or textures that imitate different types of contamination effects.

[0086] Step S12: Image blurring: The polluted image is further blurred by applying a Gaussian filter or a motion blur filter to simulate defocus or motion blur caused by pollution.

[0087] Step S13: Image noise. The blurred image is further corrupted by adding Gaussian noise or Poisson noise to simulate sensor noise or shot noise in low light conditions.

[0088] Step S2: Perform restoration processing on the input image. This step includes:

[0089] Step S21: Build and train a deep neural network, the degraded image is input into a deep neural network (e.g., U-Net) to perform end-to-end image restoration. The network consists of an encoder and decoder architecture with skip connections to learn to extract high-level features from degraded images and reconstruct clean images.

[0090] Step S22: Image output: the output of the deep neural network is a restored image that reduces or eliminates the effects of lens contamination, blur and noise.

[0091] Through this embodiment, combined with hardware and software algorithm processing, the input image data in the construction process can be processed in high definition, thereby improving the quality of data monitoring and improving safety performance. If there is pollution, it can be pre-processed through step S2 of this method before pedestrian recognition and tracking.

[0092] In a preferred embodiment, referring to Figure 5 and Figure 6 The cleaning assembly 5 includes: a mounting box 51, which is mounted on the surface of the camera 3, and a driving unit 52 is mounted on the inner wall of the bottom of the mounting box 51; a rotating shaft 55, which is rotatably connected to the surface of the camera 3 through a bearing, and a driven wheel 54 is fixed on the surface of the rotating shaft 55, and a driving wheel 53 is driven on the surface of the driven wheel 54 through a belt, and the axis of the driving wheel 53 is located at the output end of the driving unit 52 and is fixedly connected; a cleaning plate 56, which is located on one side of the driven wheel 54 and is fixed on the surface of the rotating shaft 55; brush hoses 57, which are evenly spaced and arranged on the surface of the cleaning plate 56, and a brush head 58 is mounted on the end of the brush hose 57.

[0093] Specifically, the driving part 52 can be driven by a driving source such as a forward and reverse motor. When the driving part 52 is started, the rotating shaft 55 is driven to rotate back and forth, so that the brush hose 57 installed on the surface of the cleaning plate 56 is in contact with the lens surface of the camera 3 to perform a scraping and cleaning operation, thereby cleaning the dust and foreign matter attached to the surface of the camera 3. The setting of the brush head 58 can protect the lens surface and is made of flexible material such as rubber or gauze. The setting of the installation box 51 can protect the driving part 52 and facilitate installation. It should be noted that the brush hose 57 is made of rubber material and is hollow inside.

[0094] In a preferred embodiment, referring to Figure 5 , Figure 6 and Figure 7The moving component 6 includes: a connecting plate 62, which is arranged above the first telescopic rod 61, and is connected to the surface of the cleaning plate 56 through an elastic member; a sliding rod 64, which is fixedly installed on the bottom surface of the connecting plate 62 at equal intervals, and the sliding rod 64 is slidably connected in the brush hose 57; an arc plate 67, which is arranged above the sliding rod 64, and a sliding groove 66 is opened on the bottom surface of the arc plate 67, and a fixed plate 68 connected to the camera 3 is fixed on the surface of the arc plate 67; a ball 65, which is installed on the surface of the connecting plate 62, and the ball 65 is slidably connected in the sliding groove 66.

[0095] Specifically, when the cleaning plate 56 rotates, it drives the upper connecting plate 62 to rotate synchronously. At this time, the ball 65 installed at the end of the connecting plate 62 slides inside the slide groove 66. Since the thickness of the bottom of the arc-shaped plate 67 gradually becomes thicker from one end to the other end, utilizing the characteristics of its structure, the connecting plate 62 moves downward under the extrusion force during the movement, so that the slide rod 64 installed at the bottom of the connecting plate 62 is correspondingly inserted into the inside of the brush hose 57, thereby enhancing the structural strength of the brush hose 57 and making the brush hose 57 harder. When the brush hose 57 encounters hardened foreign matter that is difficult to clean during the moving cleaning process, the attached foreign matter can be easily scraped off and cleaned, thereby improving the cleaning effect of the device and avoiding the occurrence of unclean cleaning.

[0096] In a preferred embodiment, referring to Figure 5 , Figure 6 and Figure 8 The blowing assembly 7 includes an extension plate 71, which is fixed to the extension plate 71 at one end of the connecting plate 62; a square plate 72, which is arranged on one side of the extension plate 71, and an extrusion plate 73 is fixed to the end of the square plate 72; an air bag 74, which is installed on the top surface of the mounting box 51, one side of the air bag 74 is in contact with the extrusion plate 73, and the top of the air bag 74 is connected to an air supply pipe 75; a cavity 76, which is opened in the cleaning plate 56, and one end of the air supply pipe 75 passes through the cleaning plate 56 and is connected to the cavity 76; and air jets 77, which are arranged on the bottom surface of the cleaning plate 56 at equal intervals, and the air jets 77 are located between two adjacent brush hoses 57.

[0097] Specifically, the extension plate 71 provided at one end of the connecting plate 62 drives the extension plate 71 to move synchronously when the connecting plate 62 is pressed down and moved, so that the extension plate 71 contacts the square plate 72, and the squeezing plate 73 is driven to move through the square plate 72 to squeeze the airbag 74. The airbag 74 is squeezed to transport the air in the airbag 74 to the air pipe 75, and then enters the interior of the cavity 76, and then is sprayed out through a plurality of nozzles 77, wherein two adjacent brush hoses 57 are provided with inclined nozzles 77, and a dustproof net is provided at the nozzle position of the nozzle 77 to prevent foreign matter from entering the nozzle 77. The airflow sprayed from the nozzle 77 blows off and cleans the foreign matter and dust remaining on the brush hose 57, so as to avoid secondary pollution to the lens on the surface of the camera 3. It is easy to use, further improves the cleaning effect of the device, saves cleaning time, and improves work efficiency.

[0098] In a preferred embodiment, referring to Figure 1-Figure 8 The elastic member includes a first telescopic rod 61 fixed to the bottom surface of the connecting plate 62, the bottom of the first telescopic rod 61 is fixedly connected to the cleaning plate 56, the surface of the first telescopic rod 61 is sleeved with an extrusion spring 63, the two ends of the extrusion spring 63 are respectively fixedly connected to the connecting plate 62 and the cleaning plate 56, the top surface of the installation box 51 is provided with an opening 8, the belts wound on the driven wheel 54 and the driving wheel 53 pass through the opening 8, a sponge strip 14 is fixed to one side of the cleaning plate 56, a fixing block 9 is fixed to one end of the extrusion plate 73, a second telescopic rod 10 is installed on the surface of the fixing block 9, and the end of the second telescopic rod 10 A limit plate 12 is fixed to the part, and the limit plate 12 is fixed on the surface of the installation box 51. A reset spring 11 is sleeved on the surface of the second telescopic rod 10, and both ends of the reset spring 11 are fixedly connected to the second telescopic rod 10 and the limit plate 12 respectively. A groove plate 13 is provided on the top of the installation box 51 and one side of the limit plate 12. One side of the groove plate 13 is in contact with the camera 3. An indicator light 15 is provided on one side of the mounting frame 1, and the indicator light 15 is mounted on the mounting column 16. The bottom of the mounting column 16 is fixedly connected to one of the columns 17, and the two columns 17 are fixedly installed with the mounting frame 1 by bolts.

[0099] Specifically, when the cleaning component 5 is reset after cleaning, the connecting plate 62 can be squeezed and reset by the setting of the squeezing spring 63, which is convenient for the next cleaning operation. When the cleaning component 5 is cleaned, a sponge strip 14 is set at the side of the cleaning plate 56, and the attached easy-to-clean dust can be wiped and cleaned in advance. The setting of the opening 8 facilitates the normal operation of the cleaning component 5. The setting of the groove plate 13 allows foreign matter cleaned during use to fall into the groove plate 13, which is convenient for diversion and avoids remaining on the installation box 51. The setting of the second telescopic rod 10 and the reset spring 11 facilitates the installation of the squeezing plate 73 on one side of the airbag 74. When the extension plate 71 is separated from the square plate 72, the elastic rebound of the reset spring 11 can be used to drive the squeezing plate 73 to reset, thereby restoring the airbag 74, which is convenient for the next inflation and then squeezing the airflow to convey the blowing operation. The limiting plate 12 can limit the other side of the airbag 74, which is convenient for cooperating with the squeezing plate 73 to squeeze the airbag 74.

[0100] In a further embodiment, for some scenes, small targets need to be detected, for example, in some sections of the road, there are small movements that need to be identified and judged. To this end, the following data processing process is given.

[0101] Step S1: Collect input images and construct image input sequences. In this step, the image sequence of the scene is captured by a camera at a certain frame rate (e.g., 30fps) and resolution (e.g., 1920×1080 pixels).

[0102] Step S2: construct and call a multi-scale feature fusion network, input the image sequence into the multi-scale feature fusion network, and perform object detection and segmentation for each frame.

[0103] The multi-scale feature fusion network consists of three main components: the backbone network, the feature pyramid network, and the Mask R-CNN head. The network outputs the bounding box, mask, confidence score, and class label of each detected object in each frame.

[0104] Step S3: Build and call the re-identification network. The output of the multi-scale feature fusion network is fed into the re-identification network, which performs object tracking and re-identification in the image sequence.

[0105] The re-ID network consists of two main parts: the Siamese network and the attention mechanism. The re-ID network outputs the ID and trajectory of each tracked object in the image sequence.

[0106] Step S2 is further as follows:

[0107] Step S21: Call the backbone network. The backbone network is a pre-trained convolutional neural network (CNN) that extracts low-level features from the input image. The backbone network includes architectures such as ResNet, VGG, or MobileNet.

[0108] Step S22: Build and call a feature pyramid network.

[0109] The Feature Pyramid Network is a module that fuses features from different levels of the backbone network to generate multi-scale feature maps. The Feature Pyramid Network uses lateral connections and upsampling operations to combine features from different resolutions and scales. It can enhance the detection performance of small or occluded objects that may be missed by single-scale feature maps.

[0110] Step S23: Mask R-CNN head. MaskR-CNNhead is a module that applies a region proposal network (RPN) and a region of interest (RoI) alignment layer on multi-scale feature maps to generate and refine bounding boxes and masks of detected objects.

[0111] The maskR-CNN head also uses fully connected layers and softmax layers to predict confidence scores and class labels for detected objects. The maskR-CNN head improves segmentation accuracy and reduces false positives of small or occluded objects that may have low confidence scores or wrong class labels.

[0112] Step S3 is further as follows:

[0113] Step S31: Construct a Siamese network. Appearance features are extracted from the bounding boxes and masks of the objects detected in each frame. The Siamese network consists of two identical branches that share the same weights and parameters, and uses contrastive loss to learn to distinguish different objects based on their appearance features.

[0114] Step S32: Construct the relevant parameters of the attention mechanism, form the attention matrix, use the attention matrix to store and update the similarity scores over time, calculate the module of the similarity scores between the appearance features of the objects detected in different frames, then use the threshold to select the most similar object pairs across frames and assign them the same ID, and finally use the motion model to estimate the position and speed of each tracked object based on its history and Kalman filter prediction.

[0115] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A construction traffic diversion system based on deep learning and image recognition, comprising a mounting frame (1), a fixing seat (2) being arranged on the surface of the mounting frame (1), a camera (3) being arranged on the surface of the fixing seat (2), a network communication module (4) being installed on one side of the fixing seat (2), the camera (3) being connected to the network communication module (4) via a wire to receive control data from a cloud platform, characterized in that: Also includes: A cleaning component (5) is arranged on the lens surface of the camera (3) and is used to clean foreign matter generated on the lens surface of the camera (3); A moving component (6) is arranged on the cleaning component (5), one end of which is mounted on the surface of the camera (3) and is used to increase the structural strength of the cleaning component (5) during cleaning; An air blowing component (7) is disposed on the cleaning component (5) and is used to blow away foreign matter remaining on the cleaning component (5); The cloud platform is provided with an image recognition module for receiving and processing image data from the camera, and then issuing control instructions; The cleaning component (5) comprises: A mounting box (51) mounted on the surface of the camera (3), wherein a driving unit (52) is mounted on the inner wall of the bottom of the mounting box (51); A rotating shaft (55), the rotating shaft (55) being rotatably connected to the surface of the camera (3) via a bearing, a driven wheel (54) being fixed to the surface of the rotating shaft (55), a driving wheel (53) being driven on the surface of the driven wheel (54) via a belt, and the axis of the driving wheel (53) being fixedly connected to the output end of the driving unit (52); A cleaning plate (56) is located on one side of the driven wheel (54) and fixed on the surface of the rotating shaft (55); Brush hoses (57) are arranged at equal intervals on the surface of the cleaning plate (56), and a brush head (58) is installed at the end of the brush hose (57); The moving component (6) comprises: A connecting plate (62), the connecting plate (62) being arranged above the first telescopic rod (61), the connecting plate (62) being connected to the surface of the cleaning plate (56) via an elastic member; Slide rods (64) are fixedly mounted at equal intervals on the bottom surface of the connecting plate (62), and the slide rods (64) are slidably connected in the brush hose (57); An arc-shaped plate (67) is arranged above the slide bar (64); a slide groove (66) is provided on the bottom surface of the arc-shaped plate (67); a fixing plate (68) connected to the camera (3) is fixed on the surface of the arc-shaped plate (67); the bottom of the arc-shaped plate gradually becomes thicker from one end to the other end; A ball (65) is mounted on the surface of the connecting plate (62), and the ball (65) is slidably connected in the slide groove (66); The blowing assembly (7) comprises: An extension plate (71) fixed to one end of the connecting plate (62); A square plate (72) is arranged on one side of the extension plate (71), and an extrusion plate (73) is fixed to the end of the square plate (72); An air bag (74) is mounted on the top surface of the mounting box (51), one side of the air bag (74) is in contact with the extrusion plate (73), and the top of the air bag (74) is connected to an air delivery pipe (75); A cavity (76) is formed in the cleaning plate (56), and one end of the gas delivery pipe (75) passes through the cleaning plate (56) and is connected to the cavity (76); The spray heads (77) are arranged at equal intervals on the bottom surface of the cleaning plate (56), and the spray heads (77) are located between two adjacent brush hoses (57); The elastic member comprises a first telescopic rod (61) fixed to the bottom surface of the connecting plate (62), the bottom of the first telescopic rod (61) being fixedly connected to the cleaning plate (56), the surface of the first telescopic rod (61) being sleeved with an extrusion spring (63), the two ends of the extrusion spring (63) being fixedly connected to the connecting plate (62) and the cleaning plate (56) respectively; A fixing block (9) is fixed to one end of the squeezing plate (73), a second telescopic rod (10) is mounted on the surface of the fixing block (9), a limiting plate (12) is fixed to the end of the second telescopic rod (10), the limiting plate (12) is fixed to the surface of the mounting box (51), a return spring (11) is sleeved on the surface of the second telescopic rod (10), and two ends of the return spring (11) are respectively fixedly connected to the second telescopic rod (10) and the limiting plate (12).

2. A construction traffic diversion system based on deep learning and image recognition according to claim 1, characterized in that: The top surface of the installation box (51) is provided with an opening (8), the belts wound around the driven wheel (54) and the driving wheel (53) pass through the opening (8), and a sponge strip (14) is fixed to one side of the cleaning plate (56).

3. A construction traffic diversion system based on deep learning and image recognition according to claim 1, characterized in that: A groove plate (13) is provided on the top of the installation box (51) and located on one side of the limiting plate (12), and one side surface of the groove plate (13) is in contact with the camera (3).

4. The construction traffic diversion system based on deep learning and image recognition according to claim 1 is characterized in that: An indicator light (15) is provided on one side of the mounting frame (1), and the indicator light (15) is mounted on a mounting column (16). The bottom of the mounting column (16) is fixedly connected to one of the upright columns (17), and the two upright columns (17) are fixedly mounted together with the mounting frame (1) by bolts.

5. A method for using a construction traffic diversion system based on deep learning and image recognition, using a construction traffic diversion system based on deep learning and image recognition as described in any one of claims 1 to 4, characterized in that: The following steps are involved: S1: When in use, the camera (3) is mounted on the fixed base (2), and the camera (3) captures the road traffic image of the construction site in real time, and then transmits the image data to the management center through the network communication module (4). The deep learning model in the data processing platform of the management center is combined with image recognition and understanding of the content in the image, so as to accurately identify vehicles, pedestrians, traffic signs and construction areas on the road, and then the management center issues instructions according to the actual situation to carry out intelligent guidance and warning; S2: During use, due to the complex environment of the construction site, a large amount of dust and foreign matter will be generated on the surface of the camera (3). The cleaning component (5) provided on the camera (3) is used to timely clean the foreign matter attached to the surface of the camera (3) to prevent the dust and foreign matter from blocking the lens of the camera (3) and affecting the normal use of the camera (3) for monitoring and capturing. When the cleaning component (5) is in operation, the moving component (6) is driven by the cleaning component (5) to operate synchronously. The force generated by the cleaning component (5) during cleaning is used to make the sliding rod (64) on the moving component (6) insert into the inside of the brush hose (57). In this way, when performing a cleaning operation on hardened foreign matter that is difficult to clean, it can be easily scraped off. When the moving component (6) is in operation, it drives the blowing component (7) to operate synchronously, so that the airflow generated by the blowing component (7) is blown to the cleaning component (5) to blow off and clean the foreign matter remaining between two adjacent brush hoses (57).

Citation Information

Patent Citations

  • Cleaning device used for automatic textile machine bristlebrush roll

    CN110201916A

  • Building outer wall tile cleaning device

    CN111519923A

  • Office paper shredder with self-cleaning function

    CN111992306A

  • Road traffic monitoring and vehicle abnormity, prohibition and fire detection method and system based on deep learning

    CN112071058A

  • Camera sleeve capable of intelligently and regularly cleaning camera

    CN112387641A