Method, device and electronic equipment for monitoring ground conditions
By acquiring the illumination pattern of the current image frame for adaptive preprocessing and combining dual similarity judgment and meteorological information, the accuracy and reliability of existing landslide monitoring methods in complex environments are not adequately addressed, thus achieving efficient real-time monitoring and early warning.
Patent Information
- Application Number
- CN202611678403.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing computer vision-based landslide monitoring methods lack accuracy and reliability in complex environments, making it difficult to achieve large-scale area monitoring.
By acquiring the illumination pattern of the current image frame, processing it with matching image preprocessing parameters, calculating the first and second similarity data, and combining meteorological information to perform dual similarity determination, the changes in the surface state are determined.
It improves the accuracy and reliability of judging changes in surface conditions, is suitable for real-time monitoring and early warning in complex environments, and reduces equipment costs and deployment difficulty.
Smart Images

Figure CN123182035A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer vision technology, and in particular to a method, apparatus and electronic device for monitoring the state of the earth's surface. Background Technology
[0002] Landslides and other geological disasters seriously threaten people's lives and property. Traditional monitoring methods, such as displacement sensors and GPS, while highly accurate, suffer from high costs and limited deployment range. In recent years, computer vision-based monitoring methods have attracted attention due to their non-contact nature and wide coverage. Existing visual monitoring methods typically acquire images of the monitoring area and analyze image features to determine whether changes have occurred on the ground surface. However, in practical applications, the accuracy and reliability of existing visual monitoring methods in determining changes in ground surface conditions still need improvement due to the complexity of the monitoring environment and the diversity of image acquisition conditions. Summary of the Invention
[0003] In view of this, the purpose of this disclosure is to provide a method, apparatus and electronic device for monitoring the surface condition, which determines the surface condition of the target monitoring area by comparing the current image frame with the reference image and historical image frames through a dual similarity determination mechanism, so as to improve the accuracy and reliability of judging changes in the surface condition.
[0004] In a first aspect, embodiments of this disclosure provide a method for monitoring the state of a land surface. The method includes: acquiring a current image frame of a target monitoring area and determining the illumination mode of the current image frame; performing image preprocessing on the current image frame based on image preprocessing parameters matching the illumination mode to obtain an image processing result; wherein different illumination modes are matched with different image preprocessing parameters; calculating first similarity data and second similarity data based on the image processing result; wherein the first similarity data is used to characterize the degree of similarity between the current image frame and a preset reference image, and the second similarity data is used to characterize the degree of similarity between the current image frame and a first historical image frame, the first historical image frame being an image located in the frame preceding the current image frame; and determining whether the state of the land surface of the target monitoring area has changed based on the first similarity data and the second similarity data.
[0005] The steps of performing image preprocessing on the current image frame based on image preprocessing parameters matching the lighting mode to obtain image processing results include: smoothing the current image frame based on image preprocessing parameters matching the lighting mode to obtain a target image; performing grayscale processing on the target image to obtain a grayscale image of the current image frame; and if the lighting mode is daytime mode, performing color analysis on the target image to obtain color information of the current image frame.
[0006] The above method further includes: if the illumination mode is daytime mode, calculating color offset data based on the color information of the current image frame, wherein the color offset data is used to characterize the degree of color offset between the current image frame and the reference image; and determining whether the surface state of the target monitoring area has changed based on the color offset data.
[0007] The above-mentioned step of determining whether the surface condition of the target monitoring area has changed based on the color offset data includes: If the color offset data is greater than the color offset threshold, obtain the current meteorological information, and determine whether the surface condition of the target monitoring area has changed based on the current meteorological information.
[0008] The first and second similar data mentioned above are calculated using at least one of the following methods: structural similarity index, peak signal-to-noise ratio, and color histogram similarity; wherein the color histogram similarity includes Bach distance or correlation coefficient.
[0009] The steps described above for determining whether the surface condition of the target monitoring area has changed based on the first similarity data and the second similarity data include: if the first similarity data is less than the first similarity threshold and / or the second similarity data is less than the second similarity threshold, obtaining current meteorological information and determining whether the surface condition of the target monitoring area has changed based on the current meteorological information; if the first similarity data is greater than or equal to the first similarity threshold and the second similarity data is greater than or equal to the second similarity threshold, determining that the surface condition of the target monitoring area has not changed.
[0010] The above method also includes: if the surface condition of the target monitoring area changes, generating a warning message and sending it to the target device.
[0011] Secondly, embodiments of this disclosure provide a surface condition monitoring device, comprising: a mode determination module, configured to acquire a current image frame of a target monitoring area and determine the illumination mode of the current image frame; an image processing module, configured to perform image preprocessing on the current image frame based on image preprocessing parameters matching the illumination mode to obtain an image processing result; wherein different illumination modes are matched with different image preprocessing parameters; a data calculation module, configured to calculate first similarity data and second similarity data based on the image processing result; wherein the first similarity data is used to characterize the degree of similarity between the current image frame and a preset reference image, and the second similarity data is used to characterize the degree of similarity between the current image frame and a first historical image frame, the first historical image frame being an image located in the frame preceding the current image frame; and a state determination module, configured to determine whether the surface condition of the target monitoring area has changed based on the first similarity data and the second similarity data.
[0012] Thirdly, embodiments of this disclosure provide an electronic device including a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the surface state monitoring method of any of the first aspects.
[0013] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are invoked and executed by a processor, the computer-executable instructions cause the processor to implement the surface state monitoring method of any of the first aspects.
[0014] The embodiments disclosed herein bring the following beneficial effects: This disclosure provides a method, apparatus, and electronic device for monitoring land surface conditions. The method involves acquiring a current image frame of a target monitoring area and determining the illumination mode of the current image frame. Based on image preprocessing parameters matching the illumination mode, the current image frame is preprocessed to obtain an image processing result. Different illumination modes are matched with different image preprocessing parameters. According to the image processing result, first similarity data and second similarity data are calculated. The first similarity data characterizes the similarity between the current image frame and a preset reference image, while the second similarity data characterizes the similarity between the current image frame and a first historical image frame, which is the image preceding the current image frame. Based on the first and second similarity data, it is determined whether the land surface condition of the target monitoring area has changed. This method, through a dual similarity determination mechanism comparing the current image frame with both the reference image and historical image frames, improves the accuracy and reliability of determining changes in land surface conditions.
[0015] Other features and advantages of this disclosure will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the disclosure. The objects and other advantages of this disclosure are realized and obtained through the structures particularly pointed out in the description, claims and drawings.
[0016] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the specific embodiments of this disclosure or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0018] Figure 1 A flowchart illustrating a method for monitoring land surface conditions provided in this embodiment of the disclosure; Figure 2 A schematic flowchart illustrating a method for monitoring land surface conditions provided in this embodiment of the disclosure; Figure 3 A schematic diagram of the structure of a surface condition monitoring device provided in an embodiment of this disclosure; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0020] Landslides are a common and serious geological hazard, posing a significant threat to people's lives and property and infrastructure construction. Traditional landslide monitoring methods mainly include displacement sensor monitoring, GPS monitoring, satellite imagery monitoring, and tiltmeter monitoring. While these methods offer high accuracy, they suffer from drawbacks such as high equipment deployment costs, limited coverage, and difficulty in achieving large-scale area monitoring. In recent years, with the development of computer vision and image processing technologies, image recognition-based landslide monitoring methods have gradually gained attention. Existing technologies include several schemes utilizing image processing techniques for landslide monitoring. For example, identifying crack displacement by performing grayscale conversion, filtering, binarization, and edge detection on images of crack areas at the rear edge of a landslide; and extracting landslide areas by performing color space conversion and K-means clustering on PoISAR (Polarimetric Synthetic Aperture Radar) images. However, in practical applications, the accuracy and reliability of existing visual monitoring methods in determining changes in surface conditions still need improvement due to the complexity of the monitoring environment and the diversity of image acquisition conditions. Based on this, the present disclosure provides a method, apparatus and electronic device for monitoring the surface condition, which can be applied to real-time monitoring and early warning of landslide disasters in areas such as mountain road slopes, mine slopes and reservoir banks.
[0021] To facilitate understanding of this embodiment, a method for monitoring land surface conditions disclosed in this disclosure will first be described in detail, such as... Figure 1 As shown, the method includes the following steps: Step S102: Obtain the current image frame of the target monitoring area and determine the illumination mode of the current image frame; Optionally, a sequence of color image frames of the target monitoring area is acquired in real time by an image acquisition device fixedly installed in the target monitoring area, and the image frame corresponding to the current acquisition time in the color image frame sequence is taken as the current image frame. The image acquisition device is a high-definition industrial camera or a network camera, fixedly installed on the opposite side or above the target monitoring area to ensure a consistent acquisition angle relative to the target monitoring area; each image frame in the color image frame sequence contains three color channels: RGB.
[0022] One possible implementation of the above-described step of determining the illumination mode of the current image frame is as follows: Obtain the ambient illuminance value corresponding to the current image frame; when the ambient illuminance value is greater than a preset illuminance threshold, determine the illumination mode as daytime mode; when the ambient illuminance value is not greater than the preset illuminance threshold, determine the illumination mode as nighttime mode. The ambient illuminance value is obtained by a photosensor installed within the image acquisition device.
[0023] Another possible implementation of the above-described step of determining the illumination mode of the current image frame is as follows: determine the overall brightness value of the current image frame; when the overall brightness value is greater than a preset brightness threshold, determine the illumination mode as daytime mode; when the overall brightness value is not greater than the preset brightness threshold, determine the illumination mode as nighttime mode. Here, the overall brightness value is the average brightness or median brightness of all pixels in the current image frame.
[0024] Step S104: Based on the image preprocessing parameters that match the illumination mode, perform image preprocessing on the current image frame to obtain the image processing result; wherein, different illumination modes are matched with different image preprocessing parameters; Optionally, if the lighting mode is daytime mode, the first image preprocessing parameter set is used to preprocess the current image frame; if the lighting mode is nighttime mode, the second image preprocessing parameter set is used to preprocess the current image frame; wherein, the second image preprocessing parameter set is different from the first image preprocessing parameter set, and the second image preprocessing parameter set includes at least one of the following: increasing image gain, increasing exposure compensation, and enabling low-light image enhancement algorithm.
[0025] In addition, the first and second image preprocessing parameter sets mentioned above each include Gaussian smoothing parameters; the Gaussian kernel size in the second image preprocessing parameter set is larger than the Gaussian kernel size in the first image preprocessing parameter set, and / or the standard deviation of the Gaussian kernel in the second image preprocessing parameter set is larger than the standard deviation of the Gaussian kernel in the first image preprocessing parameter set. For example, the Gaussian kernel size corresponding to the daytime mode is 3×3 or 5×5, and the Gaussian kernel size corresponding to the nighttime mode is 5×5 or 7×7.
[0026] The image preprocessing described above includes at least one of the following: smoothing, color analysis, and grayscale conversion. Color analysis is typically performed before grayscale conversion.
[0027] Step S106: Calculate first similarity data and second similarity data based on the image processing results; wherein, the first similarity data is used to characterize the degree of similarity between the current image frame and the preset reference image, and the second similarity data is used to characterize the degree of similarity between the current image frame and the first historical image frame, and the first historical image frame is the image located in the frame preceding the current image frame; The aforementioned first and second similarity data are calculated using at least one of the following methods: structural similarity index, peak signal-to-noise ratio (PSNR), and color histogram similarity; wherein, color histogram similarity includes Bach distance or correlation coefficient. The structural similarity index comprehensively evaluates the similarity between two images from three dimensions: brightness, contrast, and structure; and / or, PSNR serves as an auxiliary reference indicator.
[0028] Optionally, the first similarity data is determined based on the image processing result of the current image frame and a preset reference image; the second similarity data is determined based on the image processing result of the current image frame and a first historical image frame.
[0029] The step of determining the first similarity data based on the image processing result of the current image frame and the preset reference image, as described above, can be determined by any of the following methods: Calculate the color histograms of the current image frame (i.e., the target image) after smoothing and the reference image. Use Bach distance or correlation coefficient to calculate the similarity between the color histograms of the target image and the reference image to obtain the first color histogram similarity. Determine the brightness, contrast, and structure of the grayscale image of the current image frame and the grayscale image of the reference image. Based on the brightness, contrast, and structure, calculate the first structural similarity index between the grayscale image of the current image frame and the grayscale image of the reference image. Calculate the first peak signal-to-noise ratio (PSNR) between the target image and the reference image; Alternatively, the first color histogram similarity, the first structural similarity index, and the first peak signal-to-noise ratio can be fused to obtain the aforementioned first similarity data, such as the average value of the first color histogram similarity, the first structural similarity index, and the first peak signal-to-noise ratio, or a weighted average value.
[0030] Similarly, the step of determining the second similar data based on the image processing result of the current image frame and the first historical image frame can be determined in any of the following ways: Calculate the color histograms of the current image frame (i.e., the target image) after smoothing and the first historical image frame. Use Bach distance or correlation coefficient to calculate the similarity between the color histograms of the target image and the color histograms of the first historical image frame to obtain the second color histogram similarity. Determine the brightness, contrast, and structure of the grayscale image of the current image frame and the grayscale image of the first historical image frame. Based on the brightness, contrast, and structure, calculate the second structural similarity index between the grayscale image of the current image frame and the grayscale image of the first historical image frame. Calculate the second peak signal-to-noise ratio (PSNR) of the target image and the first historical image frame; Alternatively, the second color histogram similarity, the second structural similarity index, and the second peak signal-to-noise ratio can be fused to obtain the aforementioned second similarity data, such as the average value of the second color histogram similarity, the second structural similarity index, and the second peak signal-to-noise ratio, or a weighted average value.
[0031] Step S108: Based on the first similarity data and the second similarity data, determine whether the surface condition of the target monitoring area has changed.
[0032] Optionally, the first similar data is compared with a preset first similarity threshold to obtain a first comparison result; the second similar data is compared with a preset second similarity threshold to obtain a second comparison result; and based on the first comparison result and the second comparison result, it is determined whether the surface state of the target monitoring area has changed.
[0033] Specifically, if the first similar data is greater than or equal to the first similarity threshold, and the second similar data is greater than or equal to the second similarity threshold, it is determined that the surface state of the target monitoring area has not changed; if the first similar data is less than the first similarity threshold, and / or the second similar data is less than the second similarity threshold, current meteorological information is obtained, and based on the current meteorological information, it is determined whether the surface state of the target monitoring area has changed.
[0034] If the first similarity data is less than the first similarity threshold, and / or the second similarity data is less than the second similarity threshold, it is determined that the surface condition of the target monitoring area is abnormal.
[0035] After determining that there is an anomaly in the surface condition of the target monitoring area, current meteorological information is obtained, and based on the current meteorological information, it is determined whether the surface condition of the target monitoring area has changed.
[0036] Specifically, meteorological information of the target monitoring area within a preset time window before the current moment is obtained; based on the meteorological information and the anomaly, it is determined whether a landslide has occurred in the target monitoring area, which serves as the determination result of whether the surface state has changed.
[0037] The meteorological information includes rainfall amount and / or rainfall duration. Based on the meteorological information and the anomaly, determining whether a landslide has occurred in the target monitoring area includes: if the meteorological information indicates rainfall within the preset time window, then determining that a landslide has occurred in the target monitoring area; if the meteorological information indicates no rainfall within the preset time window, then determining whether the anomaly level exceeds a preset emergency threshold; if it exceeds the preset emergency threshold, then determining that a landslide has occurred in the target monitoring area; if it does not exceed the preset emergency threshold, then determining that the surface condition of the target monitoring area has not changed.
[0038] The degree of the above-mentioned anomaly is determined based on the first deviation between the first similar data and the first similarity threshold, and / or the second deviation between the second similar data and the second similarity threshold.
[0039] This disclosure provides a method for monitoring land surface conditions. The method involves acquiring a current image frame of a target monitoring area and determining the illumination mode of the current image frame. Based on image preprocessing parameters matching the illumination mode, the current image frame is preprocessed to obtain an image processing result. Different illumination modes are matched with different image preprocessing parameters. According to the image processing result, first similarity data and second similarity data are calculated. The first similarity data characterizes the similarity between the current image frame and a preset reference image, while the second similarity data characterizes the similarity between the current image frame and a first historical image frame, which is the image preceding the current image frame. Based on the first and second similarity data, it is determined whether the land surface condition of the target monitoring area has changed. This method improves the accuracy and reliability of judging changes in land surface conditions by using a dual similarity determination mechanism that compares the current image frame with both the reference image and historical image frames to determine the land surface condition of the target monitoring area.
[0040] One possible implementation of the above steps for preprocessing the current image frame based on image preprocessing parameters matched with the lighting mode to obtain the image processing result is as follows: smooth the current image frame based on image preprocessing parameters matched with the lighting mode to obtain the target image; perform grayscale processing on the target image to obtain the grayscale image of the current image frame; if the lighting mode is daytime mode, perform color analysis on the target image to obtain the color information of the current image frame.
[0041] First, acquire the current image frame of the target monitoring area and determine the lighting mode of that current image frame. Specifically, the ambient illuminance value can be collected using a photosensor built into the image acquisition device. When the ambient illuminance value is greater than a preset illuminance threshold, the current lighting mode is determined to be daytime mode; when the ambient illuminance value is not greater than the preset illuminance threshold, the current lighting mode is determined to be nighttime mode. Alternatively, the overall brightness value of the current image frame can be statistically analyzed. When the overall brightness value is greater than a preset brightness threshold, it is determined to be daytime mode; otherwise, it is determined to be nighttime mode.
[0042] Secondly, matching image preprocessing parameters are selected based on the determined lighting mode. For daytime mode, a first set of image preprocessing parameters is used, where the Gaussian filter employs a smaller Gaussian kernel, such as 3×3 or 5×5, to effectively remove noise while preserving image details as much as possible. For nighttime mode, a second set of image preprocessing parameters is used, where the Gaussian filter employs a slightly larger Gaussian kernel, such as 5×5 or 7×7, to enhance the suppression of relatively prominent noise in nighttime images. Furthermore, in nighttime mode, image gain can be increased, exposure compensation can be added, or low-light image enhancement algorithms can be enabled to improve image quality.
[0043] Then, the selected Gaussian filter is used to perform Gaussian smoothing on the current image frame to remove Gaussian noise introduced during image acquisition and transmission, resulting in a smoothed target image.
[0044] After obtaining the target image, if the determined lighting mode is daytime, color analysis is performed on the target image to obtain the color information of the current image frame. Specifically, in the RGB or HSV color space, color histogram statistics and / or K-means clustering can be used to extract the most prevalent colors and their proportions in the target image, which serve as the color information of the current image frame, such as the dominant hue information. Since vegetation on the mountain surface is green, while exposed rock and soil are brown or gray, changes in the dominant hue can serve as an important criterion for judging changes in surface conditions.
[0045] It should be noted that color analysis should be performed before grayscale processing of the target image to avoid loss of color information during grayscale processing. After color analysis of the target image is completed, grayscale processing is performed to obtain the grayscale image of the current image frame. Grayscale processing uses a weighted average method, and the grayscale conversion formula is: Gray = 0.2×R + 0.6×G + 0.2×B, where R, G, and B are the red, green, and blue channel values of the same pixel in the target image, respectively. By traversing each pixel in the target image, the grayscale image of the current image frame can be obtained. This grayscale image is used for subsequent similarity calculations with a preset reference image and a first historical image frame.
[0046] If the determined lighting mode is night mode, then only grayscale processing of the target image can be performed to obtain the grayscale image of the current image frame, omitting the color analysis step, to adapt to the unstable color information of nighttime images. The specific parameters of the above smoothing, color analysis, and grayscale processing can be adjusted according to the actual monitoring environment and image acquisition equipment.
[0047] In the above method, by distinguishing the lighting mode and using different parameters to process the image differently, the accuracy of similarity calculation, as well as the accuracy and environmental adaptability of surface condition monitoring, are improved.
[0048] The above method also includes: if the illumination mode is daytime mode, calculating color offset data based on the color information of the current image frame, the color offset data being used to characterize the degree of color offset between the current image frame and the reference image; and determining whether the surface state of the target monitoring area has changed based on the color offset data.
[0049] The aforementioned color information includes the dominant color information of the current image frame. One possible implementation of calculating color offset data based on the color information of the current image frame is to calculate the color distance between the dominant color information of the target image and the dominant color information of the reference image, and use this color distance as the color offset data. A larger color offset data indicates a greater color change between the current image frame and the reference image.
[0050] The step described above, which determines whether the surface condition of the target monitoring area has changed based on color shift data, can be implemented as follows: If the color shift data is less than or equal to a color shift threshold, it is determined that the surface condition of the target monitoring area has not changed. If the color shift data is greater than the color shift threshold, it is determined that the surface condition of the target monitoring area has changed. Alternatively, if the color shift data is greater than the color shift threshold, current meteorological information is obtained, and based on this information, it is determined whether the surface condition of the target monitoring area has changed.
[0051] In a specific example, the surface of a mountain is normally covered with green vegetation, and its dominant color is green. When a landslide occurs, the vegetation is destroyed, exposing more bare rock and soil, and the dominant color shifts from green to brown or gray. At this time, the color distance between the dominant color information of the current image frame and the dominant color information of the reference image will increase significantly, exceeding the color shift threshold, thus determining that the surface condition has changed.
[0052] In another embodiment, the color shift data can be used together with the aforementioned first similarity data and second similarity data to determine whether the surface condition has changed. For example, when the color shift data indicates a large color change, the first similarity data, second similarity data, and meteorological information are further combined for a comprehensive judgment; when the color shift data indicates a small color change, it can be preliminarily determined that the surface condition has not changed.
[0053] One possible embodiment of the above-mentioned step of determining whether the surface state of the target monitoring area has changed based on the first similarity data and the second similarity data is as follows: If the first similarity data is less than the first similarity threshold and / or the second similarity data is less than the second similarity threshold, obtain the current meteorological information and determine whether the surface state of the target monitoring area has changed based on the current meteorological information; if the first similarity data is greater than or equal to the first similarity threshold and the second similarity data is greater than or equal to the second similarity threshold, determine that the surface state of the target monitoring area has not changed.
[0054] In one specific embodiment, the process of determining whether the surface condition of the target monitoring area has changed is as follows: First, the first similarity data, second similarity data, and color offset data of the current image frame are obtained. The first similarity data represents the degree of similarity between the current image frame and a preset reference image; the second similarity data represents the degree of similarity between the current image frame and a previous historical image; and the color offset data represents the degree of color offset between the current image frame and the reference image.
[0055] Then, the following judgment is made: If the first similarity data is less than the first similarity threshold, and / or the second similarity data is less than the second similarity threshold, it indicates that the current image frame has an anomaly in the long-term reference or short-term time series dimension. In this case, the current meteorological information is obtained, and it is determined whether the surface state of the target monitoring area has changed based on the current meteorological information. For example, if the current meteorological information indicates that there has been recent rainfall, it is determined that a landslide or other surface state change has occurred; if there has been no recent rainfall, the degree of anomaly is further considered for judgment.
[0056] If the first similarity data is greater than or equal to the first similarity threshold, and the second similarity data is greater than or equal to the second similarity threshold, it indicates that the current image frame does not show any obvious anomalies in the similarity dimension. At this point, the color shift data is further evaluated: if the color shift data is less than the color shift threshold, it indicates a small color change, but to further rule out potential inducing factors such as rainfall, current meteorological information is still obtained, and the surface condition of the target monitoring area is determined based on the current meteorological information; if the color shift data is greater than the color shift threshold, it indicates a significant color change, and it can be directly determined that the surface condition of the target monitoring area has changed, or further confirmed in conjunction with meteorological information.
[0057] By combining similarity judgment with color offset judgment in the above manner, and introducing meteorological information for verification in various situations, the accuracy and reliability of surface condition monitoring can be improved.
[0058] The above method also includes: if the surface condition of the target monitoring area changes, generating a warning message and sending it to the target device.
[0059] In one specific embodiment, when it is determined that the surface state of the target monitoring area has changed, the system automatically generates a warning message and sends the warning message to the target device. Specifically, the warning message may include at least one of the following: monitoring point information (such as number, location coordinates), time of anomaly occurrence, anomaly type (such as similarity anomaly, color shift anomaly, or suspected landslide), a comparison screenshot of the current image frame and a preset reference image, and current meteorological information (such as rainfall amount, rainfall duration), etc.
[0060] The aforementioned target devices can be the mobile phones of relevant management personnel, monitoring terminals of emergency departments, or remote monitoring platforms. Warning information can be sent via at least one of the following methods: SMS, application push notifications, audible and visual alarms, or platform pop-ups. For example, when a landslide is detected, the system immediately sends an SMS containing an anomaly screenshot and meteorological data to the management personnel's mobile phone, while simultaneously displaying an alarm window on the monitoring platform and triggering on-site audible and visual alarms, enabling relevant personnel to take timely emergency measures.
[0061] The above method eliminates the need for contact-based equipment such as displacement sensors and GPS devices. It enables surface condition monitoring of the target area solely through image acquisition, reducing equipment costs and deployment difficulty. It is suitable for large-scale continuous monitoring in complex field environments such as mountain road slopes, mine slopes, and reservoir banks.
[0062] By determining the illumination mode of the current image frame and matching the corresponding image preprocessing parameters, differentiated smoothing, gain, and exposure processing strategies are adopted for day and night, effectively reducing the interference of day and night illumination differences on image feature extraction and improving the stability and accuracy of monitoring under different illumination conditions.
[0063] By using the first similarity data (the current image frame and the reference image) and the second similarity data (the current image frame and the previous historical image frame) to make similarity judgments from the long-term reference dimension and the short-term time series dimension, it can capture the slow cumulative changes in the surface state and identify sudden anomalies in a timely manner, avoiding omissions and misjudgments caused by a single comparison method.
[0064] In daytime mode, color information of the current image frame is extracted and color offset data is calculated. By utilizing the significant color difference between vegetation and bare soil and rock, the main color offset is used as an important criterion for changes in surface condition, making up for the lack of a single monitoring dimension when relying solely on grayscale similarity.
[0065] When similarity or color shift is abnormal, meteorological parameters such as rainfall and duration are introduced for comprehensive judgment. This effectively distinguishes between rainfall-induced landslides and non-hazardous factors such as light fluctuations and seasonal changes in vegetation, reducing false alarm rates and avoiding missed detection of potential landslide risks.
[0066] When the surface condition changes or a landslide is detected, warning information is automatically generated and pushed to the target equipment to facilitate timely response by relevant personnel. At the same time, the historical image sequence is updated through a sliding window and the monitoring process is executed cyclically to achieve long-term, continuous and real-time automated monitoring and early warning.
[0067] See Figure 2 The flowchart of the surface condition monitoring method is shown below. Step S1: First, input the current image frame of the target monitoring area. Simultaneously, acquire a preset template image (i.e., a reference image), which is a standard image collected in the target monitoring area under normal conditions. Determine whether the current image frame's illumination mode is daytime or nighttime. Step S2: If the illumination mode is daytime, apply Gaussian blur to the current image frame using a first image preprocessing parameter set matching the daytime mode to obtain the target image. Next, calculate the color offset data based on the dominant color information of the current image frame and the template image, and determine if the color has changed abnormally. If the color is abnormal, proceed to step S5; if the color is not abnormal, execute step S3. In step S3, regardless of whether it is daytime or nighttime mode, the current image frame must be converted to a grayscale image. For daytime mode, grayscale processing can be performed on the target image after color analysis. Simultaneously, save the current image frame as historical data for later comparison with the previous frame. Step S4: Calculate the similarity between the current image frame and the template image to obtain the first similarity data. Determine whether the first similar data is greater than or equal to the first similarity threshold: If the first similarity data is greater than or equal to the first similarity threshold, it is determined that "similar to the template image", confirming that the surface state of the target monitoring area has not changed, outputting "normal", and ending the process; If the first similarity data is less than the first similarity threshold, it is determined that the image is "not similar to the template image". Further, the grayscale image of the current image frame is compared with the grayscale image of the previous second (i.e., the first historical image frame) to calculate the similarity, resulting in the second similarity data. Then, it is determined whether the second similarity data is greater than or equal to the second similarity threshold. If the second similarity data is greater than or equal to the second similarity threshold, it is determined that "similar to the image of the previous second", confirming that the surface state of the target monitoring area has not changed, outputting "normal", and ending the process; If the second similarity data is less than the second similarity threshold, it is determined that "it is not similar to the image of the previous second", and proceed to step S5.
[0068] Step S5: Obtain current meteorological information and determine if there has been recent rainfall in the target monitoring area. If there has been recent rainfall, a landslide risk is identified, confirming a change in the surface condition of the target monitoring area. If there has been no recent rainfall, further determine if the anomaly level exceeds a preset emergency threshold. If it exceeds the threshold, a landslide is determined to have occurred; if it does not exceed the threshold, it is considered "normal," and the process ends. Step S6: When a landslide is determined to have occurred, a warning message is generated and pushed to the target device. The process ends.
[0069] Through the above embodiments, a comprehensive judgment based on adaptive preprocessing of illumination, dual similarity comparison, color anomaly detection and meteorological information fusion is achieved, which effectively improves the accuracy and reliability of surface condition monitoring.
[0070] Corresponding to the above method embodiments, this disclosure provides a surface condition monitoring device, such as... Figure 3 As shown, the device includes: The mode determination module 301 is used to acquire the current image frame of the target monitoring area and determine the illumination mode of the current image frame; Image processing module 302 is used to perform image preprocessing on the current image frame based on image preprocessing parameters that match the illumination mode, and obtain image processing results; wherein, different illumination modes are matched with different image preprocessing parameters; The data calculation module 303 is used to calculate first similarity data and second similarity data based on the image processing results; wherein, the first similarity data is used to characterize the degree of similarity between the current image frame and a preset reference image, and the second similarity data is used to characterize the degree of similarity between the current image frame and a first historical image frame, and the first historical image frame is the image located in the frame preceding the current image frame; The status determination module 304 is used to determine whether the surface status of the target monitoring area has changed based on the first similarity data and the second similarity data.
[0071] This disclosure provides a land surface condition monitoring device that acquires a current image frame of a target monitoring area and determines the illumination mode of the current image frame; performs image preprocessing on the current image frame based on image preprocessing parameters matching the illumination mode to obtain an image processing result; wherein different illumination modes are matched with different image preprocessing parameters; calculates first similarity data and second similarity data based on the image processing result; wherein the first similarity data is used to characterize the similarity between the current image frame and a preset reference image, and the second similarity data is used to characterize the similarity between the current image frame and a first historical image frame, the first historical image frame being the image located in the frame preceding the current image frame; and determines whether the land surface condition of the target monitoring area has changed based on the first similarity data and the second similarity data. This method, by employing a dual similarity determination mechanism that compares the current image frame with the reference image and historical image frames, determines the land surface condition of the target monitoring area, improving the accuracy and reliability of judging changes in land surface condition.
[0072] The image processing module described above is further configured to: smooth the current image frame based on image preprocessing parameters that match the illumination mode to obtain a target image; perform grayscale processing on the target image to obtain a grayscale image of the current image frame; and if the illumination mode is daytime mode, perform color analysis on the target image to obtain color information of the current image frame.
[0073] The aforementioned device further includes a second state determination module, configured to: if the illumination mode is daytime mode, calculate color offset data based on the color information of the current image frame, wherein the color offset data is used to characterize the degree of color offset between the current image frame and the reference image; and determine whether the surface state of the target monitoring area has changed based on the color offset data.
[0074] The aforementioned second determination module is also used to: if the color offset data is greater than the color offset threshold, obtain the current meteorological information, and determine whether the surface state of the target monitoring area has changed based on the current meteorological information.
[0075] The first and second similar data mentioned above are calculated using at least one of the following methods: structural similarity index, peak signal-to-noise ratio, and color histogram similarity; wherein the color histogram similarity includes Bach distance or correlation coefficient.
[0076] The aforementioned state determination module is also used to: if the first similar data is less than the first similarity threshold, and / or the second similar data is less than the second similarity threshold, obtain current meteorological information, and determine whether the surface state of the target monitoring area has changed based on the current meteorological information; if the first similar data is greater than or equal to the first similarity threshold, and the second similar data is greater than or equal to the second similarity threshold, determine that the surface state of the target monitoring area has not changed.
[0077] The aforementioned device also includes a warning module, which generates a warning message and sends it to the target device if the surface condition of the target monitoring area changes.
[0078] The surface condition monitoring device provided in this embodiment has the same technical features as the surface condition monitoring method provided in the above embodiments, so it can also solve the same technical problems and achieve the same technical effects.
[0079] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the aforementioned method for monitoring the surface state. This electronic device can be a server or a terminal device.
[0080] See Figure 4 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-mentioned method for monitoring the surface conditions.
[0081] Furthermore, Figure 4 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.
[0082] The memory 101 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 102 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0083] The processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 100 or by instructions in software form. The processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101, and the processor 100 reads the information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0084] This embodiment also provides a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the above-described method for monitoring the surface state.
[0085] The surface condition monitoring method, apparatus, and computer program product provided in this disclosure include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation details, please refer to the method embodiments, which will not be repeated here.
[0086] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0087] Furthermore, in the description of the embodiments of this disclosure, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this disclosure based on the specific circumstances.
[0088] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0089] In the description of this disclosure, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this disclosure and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this disclosure. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0090] Finally, it should be noted that the above embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.
Claims
1. A method for monitoring surface conditions, characterized in that, The method includes: Acquire the current image frame of the target monitoring area and determine the illumination mode of the current image frame; Based on image preprocessing parameters that match the illumination mode, image preprocessing is performed on the current image frame to obtain the image processing result; wherein, different illumination modes are matched with different image preprocessing parameters. Based on the image processing results, first similarity data and second similarity data are calculated; wherein, the first similarity data is used to characterize the degree of similarity between the current image frame and a preset reference image, and the second similarity data is used to characterize the degree of similarity between the current image frame and a first historical image frame, wherein the first historical image frame is an image located in the frame preceding the current image frame; Based on the first similarity data and the second similarity data, determine whether the surface condition of the target monitoring area has changed.
2. The method according to claim 1, characterized in that, The step of performing image preprocessing on the current image frame based on image preprocessing parameters matching the illumination mode to obtain the image processing result includes: Based on image preprocessing parameters that match the illumination mode, the current image frame is smoothed to obtain the target image; the target image is then processed to obtain the grayscale image of the current image frame. If the lighting mode is daytime mode, color analysis is performed on the target image before grayscale processing to obtain the color information of the current image frame.
3. The method according to claim 2, characterized in that, The method further includes: If the lighting mode is daytime mode, color offset data is calculated based on the color information of the current image frame. The color offset data is used to characterize the degree of color offset between the current image frame and the reference image. Based on the color offset data, determine whether the surface condition of the target monitoring area has changed.
4. The method according to claim 3, characterized in that, The step of determining whether the surface condition of the target monitoring area has changed based on the color offset data includes: If the color offset data is greater than the color offset threshold, obtain the current meteorological information, and determine whether the surface condition of the target monitoring area has changed based on the current meteorological information.
5. The method according to claim 1, characterized in that, The first similar data and the second similar data are calculated using at least one of the following methods: structural similarity index, peak signal-to-noise ratio, and color histogram similarity; wherein the color histogram similarity includes Bach distance or correlation coefficient.
6. The method according to claim 1, characterized in that, The step of determining whether the surface condition of the target monitoring area has changed based on the first similarity data and the second similarity data includes: If the first similar data is less than the first similarity threshold, and / or the second similar data is less than the second similarity threshold, obtain the current meteorological information, and determine whether the surface condition of the target monitoring area has changed based on the current meteorological information; If the first similar data is greater than or equal to the first similarity threshold, and the second similar data is greater than or equal to the second similarity threshold, it is determined that the surface state of the target monitoring area has not changed.
7. The method according to claim 1, characterized in that, The method further includes: If the surface condition of the target monitoring area changes, a warning message is generated and sent to the target device.
8. A surface condition monitoring device, characterized in that, The device includes: The mode determination module is used to acquire the current image frame of the target monitoring area and determine the illumination mode of the current image frame; The image processing module is used to perform image preprocessing on the current image frame based on image preprocessing parameters that match the illumination mode, and obtain the image processing result; wherein, different illumination modes are matched with different image preprocessing parameters; The data calculation module is used to calculate first similarity data and second similarity data based on the image processing results; wherein, the first similarity data is used to characterize the degree of similarity between the current image frame and a preset reference image, and the second similarity data is used to characterize the degree of similarity between the current image frame and a first historical image frame, wherein the first historical image frame is an image located in the frame preceding the current image frame; The status determination module is used to determine whether the surface status of the target monitoring area has changed based on the first similar data and the second similar data.
9. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the method for monitoring the surface state according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method for monitoring the surface state as described in any one of claims 1-7.
