Camera processing method and system based on optical energy storage intelligent mobile sentry
Through the comprehensive application of multi-sensors and intelligent algorithms, the imaging quality problems caused by lens contamination and terrain complexity of the optical energy storage smart mobile sentry camera are solved, achieving efficient and stable lens cleaning and monitoring effects, ensuring the reliability and reliability of the equipment. Long life.
Patent Information
- Application Number
- CN202410594279.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In harsh outdoor environments, the camera lens of the optical energy storage smart mobile sentry is easily affected by pollutants such as dust, haze, etc., resulting in a decrease in image quality. In addition, the cleaning device has difficulty in stably aligning the lens in rugged terrain, resulting in cleaning dead corners and technical difficulties. Increase.
Comprehensive application of multiple sensors and intelligent algorithms, including real-time image data analysis, inertial measurement unit monitoring, lidar scanning, three-dimensional point cloud data processing, machine learning algorithms and computer vision algorithms, to monitor and adjust the attitude and spray of the cleaning device in real time parameters, optimize the patrol path, determine the optimal detergent formula and spray parameters, and heat the lens surface in time to ensure the lens cleaning effect.
It significantly improves the cleaning efficiency and clarity of monitoring equipment under various environmental conditions, ensures efficient and reliable monitoring tasks of optical energy storage intelligent mobile sentinels, reduces maintenance costs and extends the service life of equipment.
Smart Images

Figure CN118540559A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a camera processing method and system based on an optical energy storage intelligent mobile sentinel. Background Art
[0002] The integrated solar energy storage intelligent mobile sentinel, with different types of photovoltaic panels, can provide electricity guarantee for the long-term work of the mobile sentinel. In the video surveillance system of the solar energy storage intelligent mobile sentinel, the high-definition camera is a key component for obtaining environmental image information. However, in harsh outdoor environments, pollutants such as dust and haze in the air can easily accumulate on the surface of the camera lens, forming a layer of dirt, which seriously affects the image quality. In order to solve this problem, it is necessary to install a set of automatic cleaning devices on the front of the camera to remove dust from the lens regularly. However, since the solar energy storage intelligent mobile sentinel needs to patrol in rugged terrain, the cleaning device will be disturbed by external forces such as bumps and tilts during work, making it difficult to stably align the camera lens, resulting in the appearance of cleaning dead corners. At the same time, different moving paths will bring different posture changes to the cleaning device, further increasing the technical difficulty of lens cleaning. How to monitor the posture changes of the cleaning device in real time and adaptively optimize the working mode of the cleaning device according to the moving path of the solar energy storage intelligent mobile sentinel to ensure the effect of lens cleaning is a technical problem that needs to be solved urgently. Summary of the invention
[0003] The object of the present invention is to provide a camera processing method and system based on a light energy storage intelligent mobile sentinel, which aims to automatically detect and clean contaminants on the camera lens to ensure the clarity of the monitoring image, thereby solving at least one of the above-mentioned prior art problems.
[0004] In a first aspect, the present invention provides a camera processing method based on an optical energy storage intelligent mobile sentinel, which is applied to the optical energy storage intelligent mobile sentinel. The optical energy storage intelligent mobile sentinel includes a camera, a cleaning device, an inertial measurement unit, a laser radar, an infrared sensor, a lens heating device and an ultrasonic sensor. The method specifically includes: Acquire real-time image data of the camera, determine whether there are contaminants on the lens of the camera according to the real-time image data, and if there are contaminants, clean the lens of the camera by using the cleaning device; monitoring the first posture data of the cleaning device in real time according to the inertial measurement unit, judging whether the cleaning device is in a bumpy state or a tilted state according to the first posture data, and if in a bumpy state or a tilted state, correcting and adjusting the spraying parameters of the cleaning device; Scanning the current terrain environment of the optical energy storage intelligent mobile sentinel according to the laser radar and obtaining the three-dimensional point cloud data of the current terrain environment, judging whether the terrain complexity of the current terrain environment exceeds a preset terrain complexity threshold through the three-dimensional point cloud data, and if so, optimizing the patrol path of the optical energy storage intelligent mobile sentinel to obtain an optimized patrol path; A posture prediction model is obtained based on machine learning algorithm training, a posture prediction value of the cleaning device within a preset time in the future is determined through the posture prediction model and the optimized patrol path, and a spray parameter of the cleaning device is adjusted in advance according to the posture prediction value; Identify and analyze the real-time image data based on a computer vision algorithm to determine the type of contaminants on the lens of the camera, and determine the optimal cleaning agent formula and optimal spray parameters according to the type of contaminants; Acquiring real-time temperature data of the lens surface of the camera according to the infrared sensor, judging whether the lens surface of the camera is in a condensation state according to the real-time temperature data, and if in a condensation state, heating the lens surface of the camera according to the lens heating device; Acquiring second posture data between the nozzle of the cleaning device and the lens surface of the camera according to the ultrasonic sensor, and adjusting the nozzle position of the cleaning device according to the second posture data; Obtain image data of the camera before and after cleaning, and determine whether the cleaning effect of the camera lens reaches a preset cleaning effect based on the image data before and after cleaning. If not, enable the cleaning device to re-execute the cleaning process on the camera lens.
[0005] In a second aspect, the present invention provides a camera processing system based on an optical energy storage intelligent mobile sentinel, which is applied to the optical energy storage intelligent mobile sentinel. The optical energy storage intelligent mobile sentinel includes a camera, a cleaning device, an inertial measurement unit, a laser radar, an infrared sensor, a lens heating device and an ultrasonic sensor. The system specifically includes: A first processing module, used for acquiring real-time image data of the camera, judging whether there are contaminants in the lens of the camera according to the real-time image data, and if there are contaminants, cleaning the lens of the camera by the cleaning device; a second processing module, for monitoring the first posture data of the cleaning device in real time according to the inertial measurement unit, and judging whether the cleaning device is in a bumpy state or a tilted state according to the first posture data, and if in a bumpy state or a tilted state, correcting and adjusting the spraying parameters of the cleaning device; The third processing module is used to scan the current terrain environment of the optical energy storage intelligent mobile sentinel according to the laser radar and obtain the three-dimensional point cloud data of the current terrain environment, and determine whether the terrain complexity of the current terrain environment exceeds a preset terrain complexity threshold through the three-dimensional point cloud data. If it exceeds, the patrol path of the optical energy storage intelligent mobile sentinel is optimized to obtain an optimized patrol path; A fourth processing module is used to obtain a posture prediction model based on machine learning algorithm training, determine a posture prediction value of the cleaning device within a preset time in the future through the posture prediction model and the optimized patrol path, and adjust the spray parameters of the cleaning device in advance according to the posture prediction value; a fifth processing module, configured to identify and analyze the real-time image data based on a computer vision algorithm, determine the type of pollutants on the lens of the camera, and determine an optimal cleaning agent formula and optimal spraying parameters according to the type of pollutants; a sixth processing module, configured to obtain real-time temperature data of the lens surface of the camera according to the infrared sensor, determine whether the lens surface of the camera is in a condensation state according to the real-time temperature data, and if in a condensation state, heat the lens surface of the camera according to the lens heating device; a seventh processing module, configured to obtain second posture data between the nozzle of the cleaning device and the lens surface of the camera according to the ultrasonic sensor, and adjust the nozzle position of the cleaning device according to the second posture data; The eighth processing module is used to obtain the image data of the camera before and after cleaning, and determine whether the cleaning effect of the camera lens reaches the preset cleaning effect based on the image data before and after cleaning. If not, the cleaning device re-executes the cleaning process on the camera lens.
[0006] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor and a computer program stored in the memory, and when the computer program is executed on the processor, it implements the camera processing method based on the optical energy storage intelligent mobile sentinel as described in any of the above methods.
[0007] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the camera processing method based on the optical energy storage intelligent mobile sentinel as described in any one of the above methods is implemented.
[0008] Compared with the prior art, the present invention has at least one of the following technical effects: 1. The present invention solves the problem of image quality degradation caused by factors such as pollutant accumulation, terrain complexity and climate change in outdoor environments by the comprehensive application of multiple sensors and intelligent algorithms.
[0009] Through the intelligent monitoring and feedback mechanism, the present invention significantly improves the cleaning efficiency and clarity of surveillance cameras under various environmental conditions, ensuring that the optical energy storage intelligent mobile sentinel can efficiently and reliably complete monitoring and patrol tasks, while reducing maintenance costs and extending the service life of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0011] Figure 1 It is a flowchart of a camera processing method based on an optical energy storage intelligent mobile sentinel provided by an embodiment of the present invention; Figure 2 It is a structural schematic diagram of a camera processing system based on an optical energy storage intelligent mobile sentinel provided by an embodiment of the present invention; Figure 3 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0012] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0013] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0014] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0015] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0016] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0017] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0018] Reference Figure 1 , an embodiment of the present invention provides A camera processing method based on an optical energy storage intelligent mobile sentinel is applied to the optical energy storage intelligent mobile sentinel, wherein the optical energy storage intelligent mobile sentinel includes a camera, a cleaning device, an inertial measurement unit, a laser radar, an infrared sensor, a lens heating device and an ultrasonic sensor, and the method specifically includes: S101, acquiring real-time image data of the camera, and determining whether there are contaminants on the lens of the camera according to the real-time image data; if there are contaminants, cleaning the lens of the camera by using the cleaning device.
[0019] In this embodiment, real-time image data of the camera lens is obtained through a video monitoring system, and it is determined whether there are contaminants in the camera lens based on image data analysis. If there are contaminants, the detergent spray device is triggered to clean it.
[0020] Specifically, the image processing module uses an image recognition algorithm to analyze the acquired real-time image data to determine whether there are contaminants in the camera lens. If the image processing module determines that there are contaminants in the camera lens, the control module of the detergent injection device is triggered. After receiving the trigger signal, the control module of the detergent injection device determines the injection parameters, including injection direction, injection duration, and injection pressure. According to the determined injection parameters, the execution module of the detergent injection device sprays the detergent onto the surface of the camera lens in a direction to clean the contaminants. After the cleaning is completed, the video monitoring system obtains the real-time image data of the camera lens again, transmits it to the image processing module for analysis, and determines whether the contaminants are cleared. If the image processing module determines that the contaminants have been cleared, the cleaning process is completed; if it is determined that the contaminants have not been completely cleared, the cleaning process is repeated until the contaminants are completely cleared.
[0021] It is understandable that when it is determined that there are contaminants on the camera lens, it further includes: judging whether the blocking area of the contaminants on the camera lens is greater than the blocking area threshold; if so, triggering the cleaning device to clean the camera lens.
[0022] In some embodiments, judging whether there are contaminants on the lens of the camera according to the real-time image data, and if there are contaminants, cleaning the lens of the camera by the cleaning device specifically includes: Acquire pollutant image data, and use a convolutional neural network algorithm to perform training optimization on the pollutant image data to obtain a pollutant detection model; detecting the real-time image data according to the pollutant detection model; When contaminants are present in a plurality of consecutive frames of images in the real-time image data, it is determined that contaminants are present in the lens of the camera, and the lens of the camera is cleaned by the cleaning device; Recording each time the cleaning device cleans the lens of the camera, and generating a cleaning record; The probability of lens contamination and the degree of lens contamination of the camera are predicted according to the cleaning record, and the cleaning strategy is dynamically adjusted according to the probability of lens contamination and the degree of lens contamination.
[0023] In this embodiment, the video surveillance system uses a high-definition network camera with a resolution of 1920x1080, transmits 30 frames of image data per second, and transmits the image data to the image processing server in real time via Gigabit Ethernet. The image processing module detects pollutants for each frame of the image based on the convolutional neural network (CNN) algorithm. Through the training sample set, the CNN model can identify common pollutants such as dust, water droplets, and stains, and the judgment accuracy rate reaches more than 95%. When pollutants are detected in 5 consecutive frames of images, it is determined that the lens is contaminated and the cleaning process is triggered. After receiving the trigger signal, the control module of the detergent injection device controls the solenoid valve and the pressure pump according to the preset injection parameters, such as the injection angle of 30°, the injection time of 2 seconds, and the injection pressure of 1.5 bar, etc., to spray the cleaning liquid onto the lens surface in a directional manner. The cleaning liquid adopts an efficient and environmentally friendly formula, which contains ingredients such as detergents, surfactants and water, and can quickly dissolve and remove pollutants. After the injection is completed, the pollutants on the surface of the lens are fully wetted and dissolved by the cleaning liquid, and at the same time, the high-pressure airflow blows the residual liquid and pollutants away from the lens surface to ensure that the lens is clear again. After cleaning is completed, the lens image is checked for contaminants again. If no contaminants are detected in 10 consecutive frames of images, the cleaning is considered successful and the cleaning process is completed. If contaminants are still detected, the cleaning process is triggered again, and the spraying time and pressure are appropriately increased, such as increasing the spraying time to 3 seconds and the spraying pressure to 2 bar, until the contaminants are completely removed. By adaptively adjusting the cleaning parameters, it is possible to cope with different degrees of lens contamination. At the same time, the time, degree of contamination, cleaning parameters and effects of each cleaning are recorded. Through big data analysis, the cleaning strategy is optimized, such as predicting the probability and degree of lens contamination according to different time periods and weather conditions, dynamically adjusting the cleaning frequency and intensity, improving cleaning efficiency and saving resources. In addition, remote scheduling and management are also supported. Through the Web interface or mobile APP, the lens status, cleaning records and statistical reports can be viewed in real time, and parameter settings and manual control can be performed to facilitate management personnel to supervise and maintain.
[0024] S102, monitoring the first posture data of the cleaning device in real time according to the inertial measurement unit, judging whether the cleaning device is in a bumpy state or a tilted state through the first posture data, and if so, correcting and adjusting the spraying parameters of the cleaning device.
[0025] In this embodiment, an inertial measurement unit is used to monitor the posture data of the cleaning device in real time, including the tilt angle and vibration frequency. Based on the posture data, it is determined whether the cleaning device is in a bumpy or tilted state. If it is in a bumpy or tilted state, the angle and strength of the detergent spray are adjusted to adapt to the current posture.
[0026] Specifically, an inertial measurement unit is used to collect the current posture data of the cleaning device, which includes the tilt angle and vibration frequency of the cleaning device. The collected posture data is analyzed by the posture data processing algorithm to identify whether the cleaning device is tilted or bumpy. According to the analysis results, it is judged whether the cleaning device is in a normal working state. If the posture data shows that the device is stable, the current spray angle and strength are maintained. If the judgment result shows that the cleaning device is in a bumpy or tilted state, the spray angle and strength modification parameters required to be adjusted to adapt to the current posture are calculated. The calculated spray angle and strength modification parameters are sent to the detergent injection control system. After receiving the adjustment parameters, the detergent injection control system adjusts the angle of the nozzle and the output pressure of the injection pump in real time. The sensor is used to monitor whether the adjusted spray angle and strength meet the predetermined parameters to ensure the accuracy of the adjustment operation. The cleaning effect data of the cleaning device after adjustment is obtained through the contact area and cleaning effect feedback sensor. The cleaning effect data is analyzed. If it is found that the cleaning effect does not meet expectations, the posture data is collected and analyzed again to cyclically optimize the adjustment process of the spray angle and strength.
[0027] In some embodiments, the first posture data includes the vibration frequency and tilt angle of the cleaning device; judging whether the cleaning device is in a bumpy state or a tilted state by the first posture data, and if in a bumpy state or a tilted state, correcting and adjusting the spraying parameters of the cleaning device specifically includes: By comparing the vibration frequency with a preset vibration frequency threshold, determining whether the cleaning device is in a bumpy state; By comparing the tilt angle with a preset tilt angle threshold, determining whether the cleaning device is in a tilted state; When the cleaning device is in the bumpy state or the tilted state, a spray angle modification parameter and a spray force modification parameter of the cleaning device are calculated according to the first posture data; The nozzle angle of the cleaning device is corrected and adjusted according to the spray angle modification parameter, and the output pressure of the spray pump of the cleaning device is corrected and adjusted according to the spray force modification parameter.
[0028] In this embodiment, for example, if a light energy storage intelligent mobile sentinel is carrying a cleaning device and performing a cleaning task. The data collected by the built-in inertial measurement unit (IMU) of the device shows that the inclination angle of the cleaning device is 15 degrees and the vibration frequency is 3Hz. After analyzing these data, the attitude data processing algorithm recognizes that the cleaning device is currently on a slight slope and the vibration is caused by the uneven ground. According to the analysis results, the algorithm determines that the cleaning device is still working within the controllable range, but the spray angle and strength need to be adjusted to adapt to the current state. It is calculated that in order to compensate for the tilt, the spray angle needs to be rotated 10 degrees clockwise. At the same time, in order to combat the unstable spray caused by vibration, the spray strength needs to be increased by 20%. These adjustment parameters are then sent to the detergent injection control system. After receiving the parameters, the detergent injection control system rotates the nozzle angle 10 degrees clockwise and increases the output pressure of the injection pump from the standard 100kPa to 120kPa. Through the angle sensor and pressure sensor monitoring on the device, it is confirmed that the adjusted spray angle and strength are consistent with the predetermined parameters. At this point, the angle sensor shows that the nozzle has been correctly rotated to the 10-degree position, and the pressure sensor shows that the output pressure is 120kPa, which meets the adjustment requirements. The contact area and cleaning effect feedback sensors further collect data, and the results show that after the adjustment, the cleaning effect has increased by 15% and the contact area has increased by 10 square centimeters. This shows that the adjustment is successful. If the data shows that the cleaning effect has only increased by 5%, the posture data will be re-collected and re-analyzed to further optimize the spray angle and strength until the expected cleaning effect is achieved.
[0029] It is understandable that there is no limitation on the location of the cleaning device on the optical energy storage intelligent mobile sentinel, and the cleaning device and the camera can be arranged side by side or at a certain relative angle.
[0030] Specifically, in one possible implementation, the cleaning device and the camera are installed side by side on the top or front of the optical energy storage intelligent mobile sentinel, and the distance between the two is close enough so that the cleaning device can directly clean the lens of the camera. Since the cleaning device and the camera are arranged side by side, the relative position relationship between them is relatively stable. When the optical energy storage intelligent mobile sentinel moves or changes its posture, the system can accurately judge the posture of the cleaning device based on the data of the inertial measurement unit, and adjust the spray angle accordingly to ensure that the cleaning agent can be accurately sprayed onto the lens.
[0031] Specifically, in one possible implementation, the cleaning device and the camera are installed in different parts of the optical energy storage intelligent mobile sentinel, but the two are connected by a mechanical arm or a retractable device, so that the cleaning device can clean the camera lens at a certain angle. This design allows a certain angle change between the camera and the cleaning device to adapt to different terrains and patrol needs. When the optical energy storage intelligent mobile sentinel encounters complex terrain, the system can adjust the angle of the mechanical arm or retractable device so that the cleaning device can always aim at the camera lens for cleaning. At the same time, combined with the data from the inertial measurement unit and the lidar, the system can also predict the posture and terrain changes of the optical energy storage intelligent mobile sentinel in the future, and adjust the spray parameters and nozzle position of the cleaning device in advance to ensure the cleaning effect.
[0032] S103, scanning the current terrain environment of the optical energy storage intelligent mobile sentinel according to the laser radar and obtaining the three-dimensional point cloud data of the current terrain environment, judging whether the terrain complexity of the current terrain environment exceeds a preset terrain complexity threshold through the three-dimensional point cloud data, and if so, optimizing the patrol path of the optical energy storage intelligent mobile sentinel to obtain an optimized patrol path.
[0033] In this embodiment, the terrain environment around the optical energy storage intelligent mobile sentinel is scanned by laser radar to obtain three-dimensional point cloud data of the terrain, and a terrain model is constructed based on the point cloud data to determine the complexity of the current terrain. If the complexity of the terrain exceeds a threshold, the patrol path of the optical energy storage intelligent mobile sentinel is optimized, and a relatively flat path is selected to reduce the bumps and tilts of the cleaning device.
[0034] In some embodiments, the three-dimensional point cloud data is used to determine whether the terrain complexity of the current terrain environment exceeds a preset terrain complexity threshold. If so, the patrol path of the solar energy storage intelligent mobile sentinel is optimized to obtain an optimized patrol path, specifically including: De-noising the three-dimensional point cloud data through a filtering algorithm to obtain optimized three-dimensional point cloud data; The optimized three-dimensional point cloud data is used to construct a terrain model by a gridding method, and the height values of the three-dimensional point cloud data points of each grid in the terrain model are averaged to form a terrain height map; Determine the terrain complexity of the current terrain environment by performing gradient calculation and threshold segmentation on the terrain height map; When the terrain complexity of the current terrain environment exceeds a preset terrain complexity threshold, determining an optimized patrol path in the terrain model according to a path optimization algorithm; The path optimization algorithm includes an A* search algorithm and a path loss function, and the path loss function satisfies , where L represents the path flatness, represents the path length, represents the path height, represents the path slope, , , Represent the weights of path length, path height and path slope respectively.
[0035] In this embodiment, the optical energy storage intelligent mobile sentinel is equipped with a laser radar sensor, which obtains 360° terrain environment data around the optical energy storage intelligent mobile sentinel by rotating scanning, and the density of the sampling point cloud is 100 points per square meter. The original point cloud data obtained by the laser radar is denoised by a filtering algorithm to remove abnormal points and outliers to obtain clean three-dimensional point cloud data. According to the processed point cloud data, a gridding method is used to construct a terrain model, and the point cloud is divided into a grid of 0.1 meter x 0.1 meter. The height value of each point in the grid is averaged to form a height map of the terrain. By performing gradient calculation and threshold segmentation on the terrain height map, the complexity of the current terrain is judged, and the gradient threshold is set to 30°, that is, when the terrain slope exceeds 30°, it is regarded as complex terrain. If the complexity of the terrain exceeds the threshold, that is, the proportion of complex terrain area exceeds 20%, the patrol path optimization process is triggered to replan the route of the optical energy storage intelligent mobile sentinel. The path optimization algorithm is based on A* search and cost function, searching for the path with the lowest cost on the terrain model. The cost function takes into account factors such as path length, height difference, slope, etc., with flatness as the main optimization target. The optimized patrol path is sent to the motion control unit of the solar energy storage intelligent mobile sentinel, which controls the solar energy storage intelligent mobile sentinel to move along the optimized path, avoid complex terrain areas, reduce the bumps and tilts of the cleaning device, and improve the cleaning effect and energy efficiency.
[0036] For example, the laser radar sensor equipped by the optical energy storage intelligent mobile sentinel uses Velodyne VLP-16. Through 16 laser transmitters and receivers, it rotates and scans at a frequency of 20Hz, and can obtain 300,000 point cloud data per second. The scanning range is 360° horizontally and ±15° vertically, with a maximum detection distance of 100 meters and a distance resolution of 2cm. The point cloud data is transmitted to the processing unit of the optical energy storage intelligent mobile sentinel via Ethernet. The RANSAC (random sampling consistency) algorithm is used for plane segmentation and noise removal to extract the ground point cloud. According to the point cloud density and height difference, the obstacle point cloud above 0.5 meters above the ground is removed to obtain clean terrain point cloud data. The terrain modeling adopts the grid method to divide the point cloud data into 0.1m x 0.1m grids. The height values of the point clouds in each grid are averaged to generate a 3D terrain height map. The height map is convolved with the sobel operator, the gradient value of each grid is calculated, and it is binarized according to the gradient threshold of 30° to obtain a distribution map of complex terrain. The proportion of complex terrain grids to the total number of grids is counted. If it exceeds 20%, it is judged as complex terrain and path optimization is required. The path optimization uses the A* algorithm, with the current position as the starting point and the target position as the end point, to search for the path with the lowest cost on the terrain height map. The cost function is defined as f(n)=g(n)+h(n), where f(n) is the total cost of node n, g(n) is the actual cost from the starting point to node n, and h(n) is the estimated cost from node n to the end point. The actual cost g(n) takes into account the path length and height difference. The calculation formula is g(n)=g(n-1)+dist(n-1,n)*(1+α*height(n)-height(n-1)) where dist(n-1,n) is the distance from node n-1 to node n, height(n) is the height value of node n, and α is the weight coefficient of the height difference, which is 10. The estimated cost h(n) is calculated using the Euclidean distance, and the calculation formula is h(n)=sqrt((x(n)-x(goal))^2+(y(n)-y(goal))^2) where x(n) and y(n) are the coordinates of node n, and x(goal) and y(goal) are the coordinates of the end point. The search process of the A* algorithm is to first add the starting point to the open list, and then repeat the following steps until the open list is empty or the target is found: (1) Take the node n with the smallest cost from the open list and add it to the closed list; (2) For all neighbor nodes m of node n, if m is not in the open list, calculate its actual cost g(m) and estimated cost h(m), add it to the open list, and set its parent node to n; if m is already in the open list, compare its original actual cost with the actual cost of reaching m via n. If the latter is smaller, update m's actual cost and parent node. When the target node is found, backtrack from the target node along the parent node pointer to obtain the optimal path.The optimized path is sent to the motion control unit of the solar energy storage intelligent mobile sentinel in the form of a sequence of waypoints, and the geometric tracking control algorithm (PurePursuit) is used for path tracking control. The controller calculates the target steering angle based on the current position, target waypoint and forward-looking distance, and converts the steering angle into the speed difference between the left and right wheels to control the solar energy storage intelligent mobile sentinel to move along the desired path. The forward-looking distance is adaptively adjusted according to the current speed. The faster the speed, the larger the forward-looking distance, ensuring smooth and stable path tracking.
[0037] S104, obtaining a posture prediction model based on machine learning algorithm training, determining a posture prediction value of the cleaning device within a preset time in the future through the posture prediction model and the optimized patrol path, and adjusting the spray parameters of the cleaning device in advance according to the posture prediction value.
[0038] In this embodiment, based on the optimized patrol path of the solar energy storage intelligent mobile sentinel, the posture changes of the cleaning device within a preset time in the future are predicted in real time. The posture prediction model is trained through a machine learning algorithm to obtain the predicted posture data, and the angle and strength of the cleaning agent injection are adjusted in advance to adapt to future posture changes.
[0039] In some embodiments, the posture prediction model is obtained based on machine learning algorithm training, the posture prediction value of the cleaning device within a preset time in the future is determined by the posture prediction model and the optimized patrol path, and the spray parameters of the cleaning device are adjusted in advance according to the posture prediction value, specifically including: Acquire patrol path history data, associate the patrol path history data with the posture change data of the cleaning device, and obtain a posture feature training set; Using a long short-term memory neural network algorithm to perform training optimization through the posture feature training set to obtain a posture prediction model; Based on the posture prediction model, determining the posture prediction value of the cleaning device within a future preset time according to the optimized patrol path, the posture prediction value including a predicted injection angle value and a predicted injection acceleration value; Determine the rotation angle adjustment amount of the nozzle servo of the cleaning device according to the predicted injection angle value, and adjust the injection angle of the cleaning device in advance according to the rotation angle adjustment amount; The spray force adjustment amount of the detergent of the cleaning device is determined according to the predicted spray acceleration value, and the spray force of the cleaning device is adjusted in advance according to the spray force adjustment amount.
[0040] In this embodiment, the motion control unit of the optical energy storage intelligent mobile sentinel obtains the optimized patrol path and transmits the position, speed, acceleration and other information of each waypoint on the path to the posture prediction module. The posture prediction module uses the long short-term memory neural network (LSTM) algorithm to construct a posture prediction model. The input of the model is the historical posture data and the future path data, and the output is the posture prediction value in the future. The posture prediction model is obtained through offline training. The training data includes the historical posture data and the corresponding path data of the optical energy storage intelligent mobile sentinel in various terrain environments. The data volume is not less than 10,000 samples, the number of training iterations is 1,000 times, and the learning rate is 0.01. After the model training is completed, it is deployed to the embedded system of the optical energy storage intelligent mobile sentinel, and the current posture data and future path data are received in real time. The posture prediction value in the future is calculated, and the prediction time window is 5 seconds. If the predicted posture data shows that the optical energy storage intelligent mobile sentinel will be bumpy or tilted in the next 5 seconds, the advance posture adjustment mechanism of the cleaning device is triggered, and the angle and force adjustment of the detergent spray are calculated according to the predicted angle and acceleration values. The angle adjustment of the detergent injection is calculated by the PID control algorithm. The input is the predicted angle value and the current angle value, and the output is the angle adjustment of the nozzle servo. The PID parameters are optimized through simulation experiments to ensure that the adjustment response is fast and stable. The intensity adjustment of the detergent injection is estimated by the predicted acceleration value. The greater the acceleration, the greater the injection intensity. The adjustment amount is proportional to the acceleration. The proportional coefficient is obtained through experimental calibration to ensure that the injection intensity matches the degree of turbulence, which can not only ensure the cleaning effect, but also avoid wasting detergent due to excessive injection.
[0041] For example, the integrated solar energy storage intelligent mobile sentinel is equipped with photovoltaic panels of different models. The motion control unit receives the optimized patrol path through the CAN bus. The path consists of a series of waypoints, each of which includes information such as x, y, z coordinates, speed v and acceleration a. The attitude prediction model uses the LSTM neural network algorithm. The input is the attitude data (Euler angle and angular velocity) within the past 5 seconds and the path data (position, velocity and acceleration) within the next 5 seconds. The output is the attitude prediction value (Euler angle and angular velocity) within the next 5 seconds. The attitude prediction model contains 3 hidden layers, 256 neurons in each layer, using the tanh activation function and Adam optimizer, and the loss function is the mean square error (MSE). The MSE of the model on the training set is 0.02, and the MSE on the test set is 0.05, indicating that the model has good generalization ability. After the model is deployed, the current attitude data and future path data are received every 0.1 seconds, and the attitude prediction model is input for prediction to obtain the attitude prediction value every 0.1 seconds in the next 5 seconds. If the predicted pitch angle or roll angle exceeds 10°, or the predicted angular velocity exceeds 50° / s, the advance attitude adjustment mechanism is triggered. According to the predicted angle and angular velocity, the angle adjustment amount and the jet force adjustment amount of the nozzle servo are calculated. The servo angle adjustment amount is calculated by the PID control algorithm. The input is the difference between the predicted angle and the current angle, and the output is the increment of the servo angle. The PID parameters are Kp=2.5, Ki=0.1, Kd=0.2, and the adjustment range is ±30°. The jet force adjustment amount is proportional to the predicted angular velocity. The conversion formula is F=k*ω, where F is the jet force adjustment amount, k is the proportional coefficient, ω is the predicted angular velocity, and the value of k is obtained through experimental calibration, which is 0.2, and the jet force adjustment range is ±50%. For example, if the optical energy storage intelligent mobile sentinel is currently located at the coordinates (10,20,0), the speed is 1m / s, the acceleration is 0, the pitch angle is 5°, the roll angle is -3°, and the angular velocity is 10° / s. According to the future path data, it is predicted that the solar energy storage intelligent mobile sentinel will pass through a bumpy road in the next 5 seconds, with a maximum pitch angle of 20° and a maximum angular velocity of 80° / s. The attitude prediction model predicts the attitude prediction value every 0.1 second in the next 5 seconds, with a maximum pitch angle of 18° and a maximum angular velocity of 75° / s, triggering the advance attitude adjustment mechanism. The PID controller calculates that the angle adjustment of the nozzle servo is 12° and the spray intensity adjustment is 15%. The servo adjusts the nozzle upward by 12° and increases the spray intensity by 15% to adapt to the upcoming bumpy posture in advance and ensure a stable cleaning effect. For another example, the solar energy storage intelligent mobile sentinel is currently on a slope with a slope of 15°, a roll angle of -10°, and an angular velocity of 20° / s. According to the path planning, the solar energy storage intelligent mobile sentinel will continue to travel on the slope in the next 5 seconds, with a predicted maximum roll angle of -25° and a maximum angular velocity of 60° / s.The attitude prediction model predicts that the maximum roll angle in the next 5 seconds will be -22° and the maximum angular velocity will be 55° / s, triggering the advance attitude adjustment mechanism. The PID controller calculates that the angle adjustment of the nozzle servo is -8° and the spray intensity adjustment is 11%. The servo adjusts the nozzle to the right by 8° and increases the spray intensity by 11% to adapt to the slope attitude in advance and avoid cleaning blind spots.
[0042] S105, identifying and analyzing the real-time image data based on a computer vision algorithm to determine the type of pollutants on the lens of the camera, and determining an optimal detergent formula and optimal spray parameters according to the type of pollutants.
[0043] In this embodiment, a computer vision algorithm is used to analyze the image data of the camera lens to identify the types of contaminants on the lens, including dust, oil, and water stains. The optimal cleaning agent formula and spray parameters are selected according to the type of contaminant, and the cleaning efficiency and effect are improved by precisely controlling the spraying of the cleaning agent.
[0044] In some embodiments, the real-time image data is identified and analyzed based on a computer vision algorithm to determine the type of pollutants on the lens of the camera, and the optimal cleaning agent formula and optimal spray parameters are determined according to the type of pollutants, specifically including: Performing target detection on the real-time image data according to a target detection algorithm to determine a pollutant area on the lens of the camera; Performing image segmentation on the pollutant region according to an image segmentation algorithm to extract pollutant contour features and pollutant texture features; Based on an image classification algorithm, classify pollutants by using the pollutant contour features and the pollutant texture features to determine the type of pollutants on the camera lens; When the pollutant type is oil, determining that the detergent formula for the pollutant type is a high-efficiency degreasing detergent formula; When the pollutant type is dust, determining that the cleaning agent formula for the pollutant type is an electrostatic dust removal type cleaning agent formula; The optimal distance value and the optimal pressure value are determined according to the pollutant type, the nozzle position of the cleaning device is determined by the optimal distance value, and the cleaning agent injection amount and injection speed of the cleaning device are determined by the optimal pressure value.
[0045] In this embodiment, the camera lens collects image data with a clarity not less than 1080p and transmits it to the image processing unit for real-time analysis. The image processing unit uses a target detection algorithm (FastER-CNN) to detect the target on the image, identify the pollutant area on the lens, and uses an image segmentation algorithm (GrabCut) to segment the pollutant area to extract the contour and texture features of the pollutant. The pollutant identification module uses a convolutional neural network (CNN) model based on image classification to classify the extracted pollutant features and identify the specific types of pollutants, such as dust, oil stains, water stains, etc. The CNN model is trained by a transfer learning method, and the pre-trained model is ResNet-50. By fine-tuning the pollutant image data set, the model's ability to identify specific pollutants is improved. According to the identified pollutant type, the pollutant cleaning parameter decision module selects the optimal detergent formula and spray parameters from the preset detergent formula and spray parameter database. The selection of formula and parameters is based on factors such as pollutant type, pollution degree, ambient temperature and humidity, and is implemented through a decision tree algorithm. If the identified pollutant type is oil, a high-efficiency degreasing detergent formula is selected. If the pollutant type is dust, select an electrostatic dust removal type detergent formula. The precise control of the detergent spraying process consists of two steps. First, the distance between the nozzle and the lens is measured in real time by a laser distance sensor. According to the optimal distance value selected for the pollutant type, the servo motor of the nozzle is controlled to adjust the nozzle position to keep the relative position accuracy with the lens within ±1cm; second, the spray pressure of the detergent is measured in real time by a pressure sensor. According to the optimal pressure value selected for the pollutant type, the opening and closing time and frequency of the solenoid valve are controlled to adjust the spray amount and speed of the detergent to keep the spray pressure constant within ±0.1mpa of the optimal value.
[0046] For example, if there is a camera lens that is collecting image data with a resolution of 1920x1080 pixels (i.e. 1080p). These image data are transmitted to the image processing unit in real time. The image processing unit uses the target detection algorithm (fasterr-cnn) to analyze the image and successfully detects that an area is contaminated, which occupies 5% of the entire image. Next, the image segmentation algorithm (grabcut) is used to finely segment this contaminated area and extract the contour and texture features of the contaminant from it. Then, the contaminant identification module uses a CNN-based model to classify the contaminant features. For example, the model is trained on a dataset containing 10,000 images of different contaminants, and through image classification, it successfully identifies the contaminants as specific types such as dust, oil stains, and water stains. On the test set, the model showed a classification accuracy of 96%, which exceeds the preset standard of 95%. This is achieved by using a transfer learning method, using ResNet-50 as a pre-trained model and fine-tuning it on a specific contaminant image dataset. Based on the type of contaminant identified, the contaminant cleaning parameter decision module makes a decision. If the pollutant type is identified as oil, and the pollution level is medium, the ambient temperature is 25 degrees Celsius, and the relative humidity is 60%, then the decision module will select a high-efficiency degreasing detergent formula from the database, and set the injection pressure to 2MPa, the injection time to 2 seconds, and the distance between the nozzle and the lens to 10cm. This selection is based on a decision tree algorithm that takes into account multiple factors such as pollutant type, pollution level, and environmental conditions. In terms of precise control of the detergent injection process, if the distance between the nozzle and the lens is measured in real time as 8cm by using a laser range sensor, this is close to the optimal distance value of 10cm selected in the case of oil pollution. Then, by controlling the servo motor, the nozzle position is adjusted so that the relative position accuracy with the lens is kept within ±1cm. Secondly, when the detergent injection pressure measured by the pressure sensor is 18MPa, the opening and closing time and frequency of the solenoid valve are adjusted to ensure that the injection pressure is constant within the range of 2MPa±1MPa to ensure the accuracy of the injection parameters and the cleaning effect.
[0047] S106, obtaining real-time temperature data of the lens surface of the camera according to the infrared sensor, and determining whether the lens surface of the camera is in a condensation state according to the real-time temperature data; if in a condensation state, heating the lens surface of the camera according to the lens heating device.
[0048] In this embodiment, the temperature of the camera lens surface is monitored by an infrared sensor, and whether the lens is in a condensation state is determined based on the temperature data. If it is in a condensation state, the lens heating device is started to increase the lens surface temperature to prevent lens blurring caused by condensation.
[0049] Specifically, an infrared sensor is used to continuously monitor the surface temperature of the camera lens and obtain real-time temperature data. A temperature threshold for the condensation state is set, and the temperature data is compared with the threshold to determine whether condensation is likely to occur on the lens. If the monitored surface temperature of the lens is lower than the threshold, it is determined that there is a risk of condensation on the lens surface. After determining that there is a risk of condensation on the lens, a command is sent through the control system to start the lens heating device. After the heating device starts working, the infrared sensor continues to monitor the temperature changes on the lens surface. During the heating process, the power output of the heating device is adjusted in real time to ensure that the surface temperature of the lens can be effectively increased. When the infrared sensor detects that the surface temperature of the lens has risen above the appropriate threshold, it is determined that the condensation phenomenon has been eliminated. After the condensation is eliminated, the control system automatically adjusts the working state of the lens heating device to prevent overheating. The control system records the temperature change data of the entire process and the working condition of the heating device for future optimization of the anti-dew effect of the lens.
[0050] In some embodiments, the determining whether the lens surface of the camera is in a condensation state by using the real-time temperature data, and if in a condensation state, heating the lens surface of the camera according to the lens heating device, specifically includes: By comparing the real-time temperature data with a first temperature threshold, determining whether the lens surface of the camera is in a condensation state; When the real-time temperature data is lower than the first temperature threshold, it is determined that the lens surface of the camera is in a condensation state, and the lens surface of the camera is heated by the lens heating device; When the real-time temperature data reaches a second temperature threshold, the lens heating device is enabled to maintain a current output power; The second temperature threshold is greater than the first temperature threshold.
[0051] In this embodiment, for example, if the temperature threshold for condensation on the surface of the camera lens is set to 10°C. The infrared sensor continuously monitors the real-time temperature data of the lens surface and shows that the current temperature is 8°C, which is lower than the set threshold. This indicates that there is a risk of condensation on the lens surface. After receiving the low temperature warning, the control system sends an instruction to start the heating device of the lens and start the heating operation. The heating device is set to an initial power output of 5 watts. The infrared sensor continues to monitor the surface temperature of the lens and finds that 5 minutes after the heating device is started, the surface temperature of the lens rises to 9°C. However, this temperature is still lower than the condensation threshold of 10°C. Therefore, the control system decides to increase the power output of the heating device to 10 watts to speed up the temperature increase. After adjusting the power, the infrared sensor observes that the surface temperature of the lens rises to 12°C in the next 5 minutes, which has exceeded the condensation threshold. At this time, it is judged that the condensation phenomenon has been eliminated. In order to prevent overheating, the control system automatically adjusts the power output of the heating device to 2 watts and enters the maintenance stage to keep the surface temperature of the lens stable at around 12°C. The control system records the temperature change data throughout the process, for example, the lens surface temperature is 8°C before heating, reaches 9°C after 5 minutes of heating, and rises to 12°C within 5 minutes after the power is increased, as well as the working conditions of the heating device, including the record of power adjustment from 5W to 10W and then down to 2W. These data will be used to analyze the anti-dew effect of the lens and make future optimizations.
[0052] S107, obtaining second posture data between the nozzle of the cleaning device and the lens surface of the camera according to the ultrasonic sensor, and adjusting the nozzle position of the cleaning device according to the second posture data.
[0053] In this embodiment, an ultrasonic sensor is used to monitor the distance between the cleaning device and the camera lens, and the distance and angle of the cleaning agent spraying are adjusted in real time according to the distance data to ensure that the cleaning agent is accurately sprayed onto the lens surface, thereby avoiding waste of cleaning agent and over-cleaning of the lens.
[0054] In some embodiments, the second posture data includes a relative position between the nozzle of the cleaning device and the lens surface of the camera; the second posture data between the nozzle of the cleaning device and the lens surface of the camera is obtained according to the ultrasonic sensor, and the nozzle position of the cleaning device is adjusted according to the second posture data, specifically comprising: An ultrasonic sensor is respectively arranged in the front direction, rear direction, left direction and rear direction of the cleaning device; Obtaining, according to the ultrasonic sensor, distance values between the cleaning device and the lens surface of the camera in the front direction, the rear direction, the left direction, and the rear direction, respectively; The four distance values are filtered and fused to obtain the relative posture of the cleaning device and the lens surface of the camera, and then the relative position between the nozzle of the cleaning device and the lens surface of the camera is obtained through coordinate transformation; The nozzle position of the cleaning device is adjusted according to the relative position between the nozzle of the cleaning device and the lens surface of the camera, and the preset optimal relative position of the spraying.
[0055] In this embodiment, four ultrasonic distance measuring sensors are installed on the cleaning device, which are respectively located in the front, rear, left and right directions of the device, and are connected to the controller through the GPIO port. The controller switches the four sensors in sequence through the multiplexer, and each sensor sends a high-level pulse to trigger the distance measurement, and then monitors the high-level time of the echo signal, and calculates the distance between the device and the lens according to the ultrasonic propagation speed. The distance calculation formula is d=(t*v) / 2, where d is the distance, t is the high-level time, and v is the ultrasonic propagation speed. The controller filters and fuses the distance values in the four directions to obtain the relative position and posture between the device and the lens, obtains the relative position of the nozzle and the lens through coordinate transformation, and calculates the distance and angle from the nozzle to the lens surface. According to the preset optimal spray distance and angle, the controller calculates the target position of the nozzle, controls the stepper motor through the PID control algorithm, and adjusts the horizontal and vertical angles of the nozzle to align it with the lens surface. After the nozzle position is adjusted, the controller calculates the spray time and pressure of the detergent according to the current distance and the preset optimal spray distance. By controlling the switching time of the solenoid valve and the PWM duty cycle, the spray amount and atomization degree of the detergent are adjusted. The spray time calculation formula is t=d / v, where t is the spray time, d is the difference between the current distance and the optimal distance, and v is the spray speed of the detergent, which is measured by experiment. After the detergent is sprayed, the controller measures the distance between the nozzle and the lens again through the ultrasonic sensor. If the distance change is less than the preset threshold, it is considered that the detergent has been accurately sprayed onto the lens surface and the current cleaning process ends; if the distance change is greater than the threshold, it is considered that the detergent spray position has a deviation and the nozzle position needs to be readjusted. If the distance change is still greater than the threshold after adjusting the nozzle position for three consecutive times, the controller determines that there may be foreign matter blocking the lens surface or sensor failure, sends a warning signal, stops the cleaning process, and waits for manual processing. At the same time, the controller uploads the data of this cleaning process to the cloud server, including cleaning time, number of sprays, distance change, etc., for analysis and prediction of abnormal situations.
[0056] For example, if in a cleaning device, ultrasonic distance sensors are installed in four directions of the device. The controller switches the multiplexer connected to the GPIO port to the sensor in front in turn and sends a 10 microsecond high-level trigger pulse. The sensor sends out ultrasonic waves and receives echoes, and the high-level time of the echo signal is measured to be 200 milliseconds. If the propagation speed v of ultrasonic waves in the air is 340 meters per second (the actual speed depends on the temperature), the distance can be calculated using the formula d=(t*v) / 2, where t is the high-level time of the echo. If t=2000ms=2s, then the calculated distance d is (2s*340m / s) / 2=34 meters. Next, the controller filters and fuses the distance values in the four directions of front, back, left, and right. After processing, if the average distance between the device and the lens is 30 meters, and the angle of the nozzle relative to the lens is 45 degrees. According to the preset optimal spray distance, set to 25 meters, the controller calculates that the nozzle needs to move forward 5 meters to reach the ideal position. The controller uses the PID control algorithm to adjust the stepper motor. If the control amount u(t)=150 pulses is calculated, the stepper motor is controlled to move forward 150 pulses to make the distance from the nozzle to the lens reach the predetermined 25 meters. After the adjustment is completed, if the spraying time required for spraying the detergent is 2 seconds, the solenoid valve is controlled to open, and the detergent is sprayed with appropriate pressure and PWM duty cycle to ensure the spraying amount and atomization degree of the detergent. After the spraying is completed, the controller re-measures the distance between the nozzle and the lens through the ultrasonic sensor and finds that the distance change is 1 meter, which is less than the preset threshold of 1 meter. It is considered that the detergent has been accurately sprayed onto the lens surface. If the distance change is greater than 1 meter, the controller considers that the nozzle position needs to be readjusted. If the distance change exceeds 1 meter after three consecutive adjustments, the controller will determine that the lens surface may be blocked by foreign objects or the sensor is faulty, and then send a warning signal, stop the cleaning process, and wait for manual processing. At the same time, the controller uploads the data of this cleaning process (such as cleaning time of 2 minutes, number of sprays 1 time, and distance change of 1 meter) to the cloud server for future abnormal situation analysis and prediction.
[0057] S108, obtaining the image data of the camera before and after cleaning, and judging whether the cleaning effect of the lens of the camera reaches the preset cleaning effect according to the image data before and after cleaning; if not, making the cleaning device re-execute the cleaning process on the lens of the camera.
[0058] In this embodiment, the image data before and after the camera lens is cleaned is analyzed by machine vision algorithm, and the quantitative indicators of the cleaning effect, including image contrast and sharpness, are calculated. The cleaning effect is evaluated based on the quantitative indicators. If the cleaning effect does not meet expectations, the cleaning method is adjusted, including increasing the cleaning agent spray time and adjusting the angle. Ultimately, it is ensured that the optical energy storage intelligent mobile sentinel can successfully complete the monitoring and patrol mission.
[0059] Specifically, the image data of the camera lens before cleaning is captured by a machine vision algorithm, and the captured image is stored in a data buffer. The image cleaning process is started, and the cleaning equipment is controlled by a preset program to clean the camera lens, including spraying cleaning agent and physical wiping. After cleaning, the image data after lens cleaning is captured again by a machine vision algorithm, and the data is stored in another data buffer for comparison and analysis. The image data before and after cleaning are extracted, and the image processing technology is used to calculate the quantitative indicators such as image contrast and sharpness. The image contrast and sharpness indicators before and after cleaning are compared, and the threshold judgment algorithm is used to determine whether the expected cleaning effect is achieved. If the image contrast and sharpness indicators do not reach the predetermined threshold, the cleaning equipment parameters are adjusted, including increasing the cleaning agent spray time and adjusting the spray angle. According to the adjusted parameters, the image cleaning process is re-executed, and a new round of image data after cleaning is collected. The contrast and sharpness indicators of the image after cleaning are calculated again, and the effect is evaluated. If the cleaning effect still does not meet the expectations after multiple adjustments, the alarm mechanism is triggered to notify the maintenance personnel to intervene manually, and the failed cleaning parameters are recorded for future analysis and improvement.
[0060] In some embodiments, the before-and-after cleaning image data includes the before-cleaning image data and the after-cleaning image data; judging whether the cleaning effect of the lens of the camera reaches a preset cleaning effect according to the before-and-after cleaning image data, and if not, causing the cleaning device to re-execute the cleaning process on the lens of the camera, specifically includes: Comparing image quantification indicators between the image data before cleaning and the image data after cleaning, wherein the image quantification indicators include image contrast, image sharpness, image saturation and image brightness; When the difference of each image quantization index between the image data before cleaning and the image data after cleaning exceeds the preset difference threshold, it is determined that the lens cleaning effect of the camera reaches the preset cleaning effect, otherwise the spray parameters of the cleaning device are readjusted so that the cleaning device re-executes the cleaning process on the lens of the camera.
[0061] In this embodiment, as an example and not a limitation, the image data before cleaning is captured by a machine vision algorithm, the image resolution is 1920x1080 pixels, the image contrast measurement result is 1000:1, and the sharpness score is 6. These image data are stored in data buffer A. The image cleaning process is started, and the preset program controls the cleaning equipment to spray the cleaning agent for a duration of 5 seconds on the camera lens. After the cleaning is completed, the machine vision algorithm is used again to capture the image data after cleaning. At this time, the image contrast is increased to 1500:1, and the sharpness score is increased to 8. These data are stored in data buffer B for comparative analysis. The image data before and after cleaning are extracted, and the analysis shows that the image contrast after cleaning is increased by 50% and the sharpness is increased by 33%. The set cleaning effect threshold requires that the image contrast is increased by at least 60% and the sharpness is increased by at least 40%. Since the contrast and sharpness indicators after the current cleaning do not reach the predetermined threshold, the cleaning equipment parameters are adjusted, the cleaning agent injection time is increased to 7 seconds, and the injection angle is adjusted to optimize the cleaning effect. After adjustment, the image cleaning process is re-executed and a new round of image data after cleaning is collected. At this point, the image contrast after cleaning has reached 1600:1, and the sharpness score has reached 85. Recalculation shows that the image contrast has increased by 60% to meet expectations, but the sharpness has increased by 467%, which is slightly lower than the expected improvement. Despite this, after evaluation, it was decided that the cleaning effect basically met the requirements and no further adjustments were made. If after multiple adjustments, such as three rounds of adjustments, the cleaning effect still does not meet expectations, for example, the image contrast after cleaning has only increased to 1550:1, and the sharpness score is only 82, the alarm mechanism is triggered to notify maintenance personnel to intervene manually. At the same time, record the failed cleaning parameters, such as the spray time of 7 seconds and the spray angle of 45 degrees, for future analysis and improvement.
[0062] Reference Figure 2 An embodiment of the present invention provides a camera processing system 2 based on an optical energy storage intelligent mobile sentinel, which is applied to the optical energy storage intelligent mobile sentinel. The optical energy storage intelligent mobile sentinel includes a camera, a cleaning device, an inertial measurement unit, a laser radar, an infrared sensor, a lens heating device and an ultrasonic sensor. The system 2 specifically includes: The first processing module 201 is used to obtain real-time image data of the camera, and determine whether there are contaminants in the lens of the camera according to the real-time image data. If there are contaminants, the lens of the camera is cleaned by the cleaning device; The second processing module 202 is used to monitor the first posture data of the cleaning device in real time according to the inertial measurement unit, and determine whether the cleaning device is in a bumpy state or a tilted state according to the first posture data, and if it is in a bumpy state or a tilted state, correct and adjust the spray parameters of the cleaning device; The third processing module 203 is used to scan the current terrain environment of the optical energy storage intelligent mobile sentinel according to the laser radar and obtain the three-dimensional point cloud data of the current terrain environment, and determine whether the terrain complexity of the current terrain environment exceeds a preset terrain complexity threshold through the three-dimensional point cloud data. If it exceeds, the patrol path of the optical energy storage intelligent mobile sentinel is optimized to obtain an optimized patrol path; A fourth processing module 204 is used to obtain a posture prediction model based on machine learning algorithm training, determine a posture prediction value of the cleaning device within a preset time in the future through the posture prediction model and the optimized patrol path, and adjust the spray parameters of the cleaning device in advance according to the posture prediction value; A fifth processing module 205 is used to identify and analyze the real-time image data based on a computer vision algorithm, determine the type of pollutants on the lens of the camera, and determine the optimal cleaning agent formula and optimal spray parameters according to the type of pollutants; a sixth processing module 206, configured to obtain real-time temperature data of the lens surface of the camera according to the infrared sensor, determine whether the lens surface of the camera is in a condensation state according to the real-time temperature data, and if in a condensation state, heat the lens surface of the camera according to the lens heating device; A seventh processing module 207, configured to obtain second posture data between the nozzle of the cleaning device and the lens surface of the camera according to the ultrasonic sensor, and adjust the nozzle position of the cleaning device according to the second posture data; The eighth processing module 208 is used to obtain the image data of the camera before and after cleaning, and determine whether the cleaning effect of the camera lens reaches the preset cleaning effect based on the image data before and after cleaning. If not, the cleaning device re-executes the cleaning process on the camera lens.
[0063] It is understandable that if Figure 1 The contents of the camera processing method embodiment based on the optical energy storage intelligent mobile sentinel shown in the figure are all applicable to the camera processing system embodiment based on the optical energy storage intelligent mobile sentinel. The functions specifically implemented by the camera processing system embodiment based on the optical energy storage intelligent mobile sentinel are similar to those in the embodiment shown in the figure. Figure 1 The camera processing method embodiment based on the optical energy storage intelligent mobile sentinel shown in FIG. 1 is the same as that in FIG. 1 , and the beneficial effects achieved are the same as those in FIG. Figure 1 The beneficial effects achieved by the camera processing method embodiment based on the optical energy storage intelligent mobile sentinel are also the same.
[0064] It should be noted that the information interaction, execution process and other contents between the above-mentioned systems are based on the same concept as the embodiment of the method of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0065] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0066] Reference Figure 3 The embodiment of the present invention further provides a computer device 3, comprising: a memory 302 and a processor 301 and a computer program 303 stored in the memory 302. When the computer program 303 is executed on the processor 301, a camera processing method based on a light energy storage intelligent mobile sentinel as described in any one of the above methods is implemented.
[0067] The computer device 3 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The computer device 3 may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will appreciate that Figure 3 It is only an example of computer device 3 and does not constitute a limitation on computer device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.
[0068] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0069] In some embodiments, the memory 302 may be an internal storage unit of the computer device 3, such as a hard disk or memory of the computer device 3. In other embodiments, the memory 302 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 3. Further, the memory 302 may also include both an internal storage unit of the computer device 3 and an external storage device. The memory 302 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 302 may also be used to temporarily store data that has been output or is to be output.
[0070] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the camera processing method based on the optical energy storage intelligent mobile sentinel as described in any one of the above methods is implemented.
[0071] In this embodiment, if the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, USB flash drive, mobile hard disk, disk or optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0072] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0073] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0074] In the embodiments disclosed in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0075] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Claims
1. A camera processing method based on an optical energy storage intelligent mobile sentinel, characterized in that: Applied to a light energy storage intelligent mobile sentinel, the light energy storage intelligent mobile sentinel includes a camera, a cleaning device, an inertial measurement unit, a laser radar, an infrared sensor, a lens heating device and an ultrasonic sensor, and the method specifically includes: Acquire real-time image data of the camera, determine whether there are contaminants on the lens of the camera according to the real-time image data, and if there are contaminants, clean the lens of the camera by using the cleaning device; monitoring the first posture data of the cleaning device in real time according to the inertial measurement unit, judging whether the cleaning device is in a bumpy state or a tilted state according to the first posture data, and if in a bumpy state or a tilted state, correcting and adjusting the spraying parameters of the cleaning device; Scanning the current terrain environment of the optical energy storage intelligent mobile sentinel according to the laser radar and obtaining the three-dimensional point cloud data of the current terrain environment, judging whether the terrain complexity of the current terrain environment exceeds a preset terrain complexity threshold through the three-dimensional point cloud data, and if so, optimizing the patrol path of the optical energy storage intelligent mobile sentinel to obtain an optimized patrol path; A posture prediction model is obtained based on machine learning algorithm training, a posture prediction value of the cleaning device within a preset time in the future is determined through the posture prediction model and the optimized patrol path, and a spray parameter of the cleaning device is adjusted in advance according to the posture prediction value; Identify and analyze the real-time image data based on a computer vision algorithm to determine the type of contaminants on the lens of the camera, and determine the optimal cleaning agent formula and optimal spray parameters according to the type of contaminants; Acquiring real-time temperature data of the lens surface of the camera according to the infrared sensor, judging whether the lens surface of the camera is in a condensation state according to the real-time temperature data, and if in a condensation state, heating the lens surface of the camera according to the lens heating device; Acquiring second posture data between the nozzle of the cleaning device and the lens surface of the camera according to the ultrasonic sensor, and adjusting the nozzle position of the cleaning device according to the second posture data; Obtain image data of the camera before and after cleaning, and determine whether the cleaning effect of the camera lens reaches a preset cleaning effect based on the image data before and after cleaning. If not, enable the cleaning device to re-execute the cleaning process on the camera lens.
2. The method according to claim 1, characterized in that: The determining whether there are contaminants on the lens of the camera according to the real-time image data, and if there are contaminants, cleaning the lens of the camera by the cleaning device specifically includes: Acquire pollutant image data, and use a convolutional neural network algorithm to perform training optimization on the pollutant image data to obtain a pollutant detection model; detecting the real-time image data according to the pollutant detection model; When contaminants are present in a plurality of consecutive frames of images in the real-time image data, it is determined that contaminants are present in the lens of the camera, and the lens of the camera is cleaned by the cleaning device; Recording each time the cleaning device cleans the lens of the camera, and generating a cleaning record; The probability of lens contamination and the degree of lens contamination of the camera are predicted according to the cleaning record, and the cleaning strategy is dynamically adjusted according to the probability of lens contamination and the degree of lens contamination.
3. The method according to claim 1, characterized in that The first posture data includes the vibration frequency and tilt angle of the cleaning device; judging whether the cleaning device is in a bumpy state or a tilted state by the first posture data, and if in a bumpy state or a tilted state, correcting and adjusting the spray parameters of the cleaning device, specifically includes: By comparing the vibration frequency with a preset vibration frequency threshold, determining whether the cleaning device is in a bumpy state; By comparing the tilt angle with a preset tilt angle threshold, determining whether the cleaning device is in a tilted state; When the cleaning device is in the bumpy state or the tilted state, a spray angle modification parameter and a spray force modification parameter of the cleaning device are calculated according to the first posture data; The nozzle angle of the cleaning device is corrected and adjusted according to the spray angle modification parameter, and the output pressure of the spray pump of the cleaning device is corrected and adjusted according to the spray force modification parameter.
4. The method according to claim 1, characterized in that: The determining, by using the three-dimensional point cloud data, whether the terrain complexity of the current terrain environment exceeds a preset terrain complexity threshold, and if so, optimizing the patrol path of the solar energy storage intelligent mobile sentinel to obtain an optimized patrol path, specifically includes: De-noising the three-dimensional point cloud data through a filtering algorithm to obtain optimized three-dimensional point cloud data; The optimized three-dimensional point cloud data is used to construct a terrain model by a gridding method, and the height values of the three-dimensional point cloud data points of each grid in the terrain model are averaged to form a terrain height map; Determine the terrain complexity of the current terrain environment by performing gradient calculation and threshold segmentation on the terrain height map; When the terrain complexity of the current terrain environment exceeds a preset terrain complexity threshold, determining an optimized patrol path in the terrain model according to a path optimization algorithm; The path optimization algorithm includes an A* search algorithm and a path loss function, and the path loss function satisfies , where L represents the path flatness, represents the path length, represents the path height, represents the path slope, , , Represent the weights of path length, path height and path slope respectively.
5. The method according to claim 1, characterized in that The posture prediction model is obtained based on machine learning algorithm training, the posture prediction value of the cleaning device within a preset time in the future is determined by the posture prediction model and the optimized patrol path, and the spray parameters of the cleaning device are adjusted in advance according to the posture prediction value, specifically including: Acquire patrol path history data, associate the patrol path history data with the posture change data of the cleaning device, and obtain a posture feature training set; Using a long short-term memory neural network algorithm to perform training optimization through the posture feature training set to obtain a posture prediction model; Based on the posture prediction model, determining the posture prediction value of the cleaning device within a future preset time according to the optimized patrol path, the posture prediction value including a predicted injection angle value and a predicted injection acceleration value; Determine the rotation angle adjustment amount of the nozzle servo of the cleaning device according to the predicted injection angle value, and adjust the injection angle of the cleaning device in advance according to the rotation angle adjustment amount; The spray force adjustment amount of the detergent of the cleaning device is determined according to the predicted spray acceleration value, and the spray force of the cleaning device is adjusted in advance according to the spray force adjustment amount.
6. The method according to claim 1, characterized in that The method of identifying and analyzing the real-time image data based on a computer vision algorithm to determine the type of pollutants on the lens of the camera, and determining the optimal detergent formula and optimal spray parameters according to the type of pollutants, specifically includes: Performing target detection on the real-time image data according to a target detection algorithm to determine a pollutant area on the lens of the camera; Performing image segmentation on the pollutant region according to an image segmentation algorithm to extract pollutant contour features and pollutant texture features; Based on an image classification algorithm, classify pollutants by using the pollutant contour features and the pollutant texture features to determine the type of pollutants on the camera lens; When the pollutant type is oil, determining that the detergent formula for the pollutant type is a high-efficiency degreasing detergent formula; When the pollutant type is dust, determining that the cleaning agent formula for the pollutant type is an electrostatic dust removal type cleaning agent formula; The optimal distance value and the optimal pressure value are determined according to the pollutant type, the nozzle position of the cleaning device is determined by the optimal distance value, and the cleaning agent injection amount and injection speed of the cleaning device are determined by the optimal pressure value.
7. The method according to claim 1, characterized in that The determining whether the lens surface of the camera is in a condensation state by using the real-time temperature data, and if in a condensation state, heating the lens surface of the camera according to the lens heating device, specifically includes: By comparing the real-time temperature data with a first temperature threshold, determining whether the lens surface of the camera is in a condensation state; When the real-time temperature data is lower than the first temperature threshold, it is determined that the lens surface of the camera is in a condensation state, and the lens surface of the camera is heated by the lens heating device; When the real-time temperature data reaches a second temperature threshold, the lens heating device is enabled to maintain a current output power; The second temperature threshold is greater than the first temperature threshold.
8. The method according to claim 1, characterized in that The second posture data includes the relative position between the nozzle of the cleaning device and the lens surface of the camera; the second posture data between the nozzle of the cleaning device and the lens surface of the camera is obtained according to the ultrasonic sensor, and the nozzle position of the cleaning device is adjusted according to the second posture data, specifically including: An ultrasonic sensor is respectively arranged in the front direction, rear direction, left direction and rear direction of the cleaning device; Obtaining, according to the ultrasonic sensor, distance values between the cleaning device and the lens surface of the camera in the front direction, the rear direction, the left direction, and the rear direction, respectively; The four distance values are filtered and fused to obtain the relative posture of the cleaning device and the lens surface of the camera, and then the relative position between the nozzle of the cleaning device and the lens surface of the camera is obtained through coordinate transformation; The nozzle position of the cleaning device is adjusted according to the relative position between the nozzle of the cleaning device and the lens surface of the camera, and the preset optimal relative position of the spraying.
9. The method according to claim 1, characterized in that: The before-and-after cleaning image data includes the before-cleaning image data and the after-cleaning image data; judging whether the cleaning effect of the lens of the camera reaches the preset cleaning effect according to the before-and-after cleaning image data, and if not, making the cleaning device re-execute the cleaning process on the lens of the camera, specifically includes: Comparing image quantification indicators between the image data before cleaning and the image data after cleaning, wherein the image quantification indicators include image contrast, image sharpness, image saturation and image brightness; When the difference of each image quantization index between the image data before cleaning and the image data after cleaning exceeds the preset difference threshold, it is determined that the lens cleaning effect of the camera reaches the preset cleaning effect, otherwise the spray parameters of the cleaning device are readjusted so that the cleaning device re-executes the cleaning process on the lens of the camera.
10. A camera processing system based on an intelligent mobile sentinel with optical energy storage, characterized in that: Applied to a light energy storage intelligent mobile sentinel, the light energy storage intelligent mobile sentinel includes a camera, a cleaning device, an inertial measurement unit, a laser radar, an infrared sensor, a lens heating device and an ultrasonic sensor. The system specifically includes: A first processing module, used for acquiring real-time image data of the camera, judging whether there are contaminants in the lens of the camera according to the real-time image data, and if there are contaminants, cleaning the lens of the camera by the cleaning device; a second processing module, for monitoring the first posture data of the cleaning device in real time according to the inertial measurement unit, and judging whether the cleaning device is in a bumpy state or a tilted state according to the first posture data, and if in a bumpy state or a tilted state, correcting and adjusting the spraying parameters of the cleaning device; The third processing module is used to scan the current terrain environment of the optical energy storage intelligent mobile sentinel according to the laser radar and obtain the three-dimensional point cloud data of the current terrain environment, and determine whether the terrain complexity of the current terrain environment exceeds a preset terrain complexity threshold through the three-dimensional point cloud data. If it exceeds, the patrol path of the optical energy storage intelligent mobile sentinel is optimized to obtain an optimized patrol path; A fourth processing module is used to obtain a posture prediction model based on machine learning algorithm training, determine a posture prediction value of the cleaning device within a preset time in the future through the posture prediction model and the optimized patrol path, and adjust the spray parameters of the cleaning device in advance according to the posture prediction value; a fifth processing module, configured to identify and analyze the real-time image data based on a computer vision algorithm, determine the type of pollutants on the lens of the camera, and determine an optimal cleaning agent formula and optimal spraying parameters according to the type of pollutants; a sixth processing module, configured to obtain real-time temperature data of the lens surface of the camera according to the infrared sensor, determine whether the lens surface of the camera is in a condensation state according to the real-time temperature data, and if in a condensation state, heat the lens surface of the camera according to the lens heating device; a seventh processing module, configured to obtain second posture data between the nozzle of the cleaning device and the lens surface of the camera according to the ultrasonic sensor, and adjust the nozzle position of the cleaning device according to the second posture data; The eighth processing module is used to obtain the image data of the camera before and after cleaning, and determine whether the cleaning effect of the camera lens reaches the preset cleaning effect based on the image data before and after cleaning. If not, the cleaning device re-executes the cleaning process on the camera lens.
Citation Information
Patent Citations
Method and system for preventing shaking of camera shooting based on automobile data recorder
CN106740539A
Unmanned aerial vehicle lens processing method and device, computer equipment and storage medium
CN116664934A
Optical storage mobile sentry control system based on AI intelligence
CN117746601A
Cleaning system, computer program and data carrier signal
EP3950159A1
Football detection method and apparatus, and computer-readable storage medium and robot
WO2022062238A1
Cited By
Big data-based milk basin cleaning control method and cleaning equipment
CN119368530A
High-integration laser radar
CN119511241A
A highly integrated laser radar
CN119511241B
Ship bottom dirt removing system and removing process thereof
CN120517548A
Intelligent self-cleaning security monitoring system
CN120639943A
