A method and system for monitoring and warning of abnormal organisms on highways
Through the combination of differential algorithm and simulated image model, abnormal biological activities on the highway can be quickly identified, solving the problems of slow processing speed and high cost of massive data in the existing technology, and realizing an efficient and accurate early warning system.
Patent Information
- Application Number
- CN202411095580.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-12
AI Technical Summary
In the existing highway real-time monitoring system, the processing speed of massive data is slow, resulting in low efficiency of real-time warning, high cost and insufficient coverage, which affects the accuracy of early warning.
The differential algorithm model is used to quickly process continuous image frames, and abnormal areas are identified through differential images. It is combined with the simulated image model to form quasi-motion images to determine abnormal biological activities, and the recognition accuracy is improved through multiple threshold settings and continuous frame differential processing.
It significantly improves the processing speed and identification accuracy, reduces computing resource requirements and costs, enhances the ability to identify abnormal biological activities, and improves the performance and flexibility of the early warning system.
Smart Images

Figure CN118628552B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent road monitoring and early warning, and in particular to a method and system for monitoring and early warning of abnormal organisms on a highway. Background Art
[0002] With the increasing development of modern transportation, highways, as important traffic arteries, are receiving more and more attention for their safety and operational efficiency. In order to ensure driving safety, timely detection and response to abnormal conditions on the road, especially the activities of abnormal organisms, has become a key link in highway management. However, in the real-time monitoring system, high-definition cameras continuously capture road images, generating massive amounts of data. Currently, the trained convolutional neural network model is directly used to process massive data and obtain the types of abnormal organisms. Although problems can be found, the data volume is huge, and the convolutional neural network model has a slow processing speed, making it difficult to respond in real time, affecting the efficiency of real-time warnings. In addition, the high cost leads to insufficient coverage, which also affects the accuracy of real-time warnings. Summary of the invention
[0003] In view of the defects in the prior art, the present invention provides a method and system for monitoring and early warning of abnormal organisms on highways.
[0004] A method for monitoring and early warning of abnormal biological phenomena on a highway comprises: S1, obtaining a road surface background image of a preset road surface; S2, obtaining adjacent frame images of the preset road surface in real time, and setting them as the nth frame image and the n+1th frame image; S3, performing a difference processing on the nth frame image and the road surface background image based on a difference algorithm model, obtaining a first difference image, judging whether there are pixel points exceeding a first threshold in the first difference image, and if so, starting S4; S4, performing a difference processing on the nth frame image and the n+1th frame image based on a difference algorithm model, obtaining a second difference image, judging whether the second difference image has pixel points exceeding a first threshold Whether the pixel point of the image exceeds the second threshold value, if so, the pixel point position is marked as an identification point, if not, the pixel point position is marked as an anti-identification point, wherein the identification point and the anti-identification point correspond to a first grayscale value and a second grayscale value, respectively; S5, based on the simulated image model, multiple identification points, multiple anti-identification points, first grayscale values and second grayscale values are formed into a simulated motion image, and it is determined whether there is a continuous first grayscale value area in the simulated motion image, and if so, whether the size of the first grayscale value area exceeds the third threshold, and if so, a first warning signal is issued.
[0005] Preferably, S3 includes: S31, performing difference processing on the nth frame image and the road background image based on the differential algorithm model to obtain a first differential image; S32, judging whether there are pixels exceeding the first threshold in the first differential image, and if so, starting S33; S33, marking multiple pixels exceeding the first threshold as abnormal pixels on the first differential image, and obtaining an abnormal target area based on the multiple abnormal pixels; S34, obtaining a third threshold based on the abnormal target area, and starting S4.
[0006] Preferably, the differential algorithm model in S31 includes: ;in, Indicates that the nth frame image is at coordinates The pixel value at Indicates the road background image at coordinates The pixel value at Indicates the first difference image at coordinates The pixel value at .
[0007] Preferably, the differential algorithm model in S4 includes: ;in, Indicates that the n+1th frame image is at coordinates The pixel value at The second difference image is at coordinate The pixel value at .
[0008] Preferably, the simulated image model in S5 includes: ;in, Representing coordinates is the first gray value of the marking point, Representing coordinates The second gray value when it is the anti-marking point, Representing coordinates The pixel value in the road background image when it is not a mark point or a counter-mark point. The coordinates of the simulated motion image The pixel value at .
[0009] Preferably, it also includes S6, after issuing the first warning signal, collecting a road warning image of a preset road surface in real time; S7, processing the road warning image according to a pre-trained convolutional neural network model, and obtaining a feature recognition result; S8, obtaining abnormal biological information according to the feature recognition result.
[0010] Preferably, the convolutional neural network model in S7 includes a convolutional layer, an activation layer, a pooling layer and a fully connected layer.
[0011] A highway abnormal biological monitoring and early warning system is also provided, and the system is used to implement the above-mentioned highway abnormal biological monitoring and early warning method, and the system includes: an initial acquisition module, which is used to obtain a road surface background image of a preset road surface; a real-time acquisition module, which is used to obtain adjacent frame images of the preset road surface in real time, and set them as the nth frame image and the n+1th frame image; a first image processing module, which is used to perform difference processing on the nth frame image and the road surface background image based on a difference algorithm model, obtain a first difference image, and determine whether there are pixels exceeding a first threshold in the first difference image. If so, run the second image processing module; the second image processing module is used to perform difference processing on the nth frame image based on the difference algorithm model. Performing difference processing with the n+1th frame image to obtain a second differential image, judging whether a pixel point of the second differential image exceeds a second threshold value, if so, marking the pixel point position as an identification point, if not, marking the pixel point position as an anti-identification point, wherein the identification point and the anti-identification point correspond to a first grayscale value and a second grayscale value, respectively; an early warning generation module, for forming a simulated motion image with multiple identification points, multiple anti-identification points, a first grayscale value and a second grayscale value based on a simulated image model, judging whether there is a continuous first grayscale value area in the simulated motion image, and if so, judging whether the size of the first grayscale value area exceeds a third threshold value, and if so, issuing a first early warning signal.
[0012] The beneficial effects of the present invention are embodied in:
[0013] By adopting a differential algorithm model, continuous image frames are quickly processed to effectively identify areas that are different from the road background image. This method avoids directly performing complex convolutional neural network processing on massive data, but first quickly determines whether abnormal organisms appear, greatly improving the processing speed, so that the system can respond to abnormal situations more quickly, issue warning signals in time, and perform the next step of identification processing; further, compared with traditional real-time image processing methods, the technical solution requires fewer computing resources because it mainly relies on simple pixel differential operations, which reduces the demand for high-performance computing equipment, thereby reducing hardware and software investment costs, and also reduces operating and maintenance costs; further, the technical solution can more accurately identify dynamic changes on the road surface, especially the activities of abnormal organisms, through multiple threshold settings and differential processing of continuous frames. More importantly, the introduction of the simulated image formed by the simulated image model further enhances the system's ability to identify abnormal biological activities, thereby improving the accuracy of the warning; further, the technical solution can be easily combined with other advanced image processing technologies or machine learning algorithms to further improve the performance and accuracy of the warning system. At the same time, the method is also suitable for different scenarios and road conditions, showing good scalability and flexibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0015] Figure 1 A schematic diagram of the steps of a method for monitoring and early warning of abnormal organisms on a highway according to an embodiment of the present invention;
[0016] Figure 2 Schematic diagram of step S3 in the method for monitoring and early warning of abnormal organisms on highways of the present invention;
[0017] Figure 3 This is a schematic diagram of the steps of another implementation of the method for monitoring and early warning of abnormal organisms on highways of the present invention;
[0018] Figure 4 It is a block diagram of an electronic device shown in an embodiment of the present application.
[0019] Reference numerals:
[0020] 700 - electronic device, 701 - processor, 702 - memory, 703 - multimedia component, 704 - input / output (I / O) interface, 705 - communication component. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0022] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. In addition, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0024] like Figure 1-3As shown, a method for monitoring and early warning of abnormal biological phenomena on a highway is provided, comprising:
[0025] S1, obtaining a road surface background image of a preset road surface;
[0026] S2, acquiring adjacent frame images of a preset road surface in real time, and setting them as the nth frame image and the n+1th frame image;
[0027] S3, performing difference processing on the nth frame image and the road background image based on the difference algorithm model to obtain a first difference image, and determining whether there are pixels exceeding a first threshold in the first difference image, and if so, starting S4;
[0028] S4, performing difference processing on the nth frame image and the n+1th frame image based on the difference algorithm model to obtain a second difference image, and judging whether a pixel point of the second difference image exceeds a second threshold value, if so, marking the pixel point position as an identification point, and if not, marking the pixel point position as an anti-identification point, wherein the identification point and the anti-identification point correspond to a first grayscale value and a second grayscale value, respectively;
[0029] S5. Based on the simulated image model, multiple identification points, multiple anti-identification points, first grayscale values and second grayscale values are formed into a simulated motion image, and it is determined whether there is a continuous first grayscale value area in the simulated motion image. If so, it is determined whether the size of the first grayscale value area exceeds a third threshold value. If so, a first warning signal is issued.
[0030] In this embodiment, it should be noted that in S1, a high-definition camera or other equipment is used to collect road background images of a preset road surface. These background images should be taken in the absence of vehicles, pedestrians or other moving objects to ensure that they can accurately reflect the static characteristics of the road surface; the collected road background images are stored in the system database for subsequent analysis.
[0031] In S2, the same camera or other image acquisition device is used to capture images of a preset road section in real time, and two consecutive frames of images are set as the nth frame image and the n+1th frame image respectively.
[0032] In S3, the nth frame image and the road background image are subtracted pixel by pixel using a differential algorithm model to obtain a first differential image; a first threshold is set to distinguish between slight changes and significant changes in the differential image, and each pixel point of the first differential image is traversed to determine whether its pixel value exceeds the first threshold value; if there are pixels exceeding the first threshold value, it means that objects different from the road background image (such as fallen rocks, garbage or abnormal organisms) may appear in the nth frame image, and then enter step S4 for further analysis.
[0033] In S4, the nth frame image is subtracted from the n+1th frame image pixel by pixel to obtain a second differential image, wherein the nth frame image and the n+1th frame image are continuous, and a second threshold is set on this basis to identify objects that are obviously moving; specifically, each pixel point of the second differential image is traversed to determine whether its value exceeds the second threshold. If it exceeds, it means that the moving object causes the change, so the possibility of other objects is screened out, and it is judged that the probability is high that it is an abnormal organism, and then the pixel point position is marked as an identification point. If it does not exceed, it means that there is no change or the change is small, and the pixel point position is marked as an anti-identification point. On this basis, the identification point and the anti-identification point are respectively corresponded to the first grayscale value and the second grayscale value, so as to facilitate subsequent image recognition and analysis.
[0034] In S5, using the simulated image model, the system integrates multiple identification points, multiple anti-identification points and their corresponding first grayscale values and second grayscale values into a pseudo-motion image, which simulates the dynamic changes on the road surface; then analyzes the pseudo-motion image to find out whether there is a continuous first grayscale value area, that is, to further analyze the possibility of the existence of abnormal creatures. If it is continuous, based on the situations in S3 and S4, it can be determined that abnormal creatures are present. On this basis, the size of the first grayscale value area and the third threshold are finally judged. On the one hand, the degree of continuity is required, and on the other hand, abnormal creatures with a dynamically changing volume that is too small are eliminated. At this time, if the third threshold is exceeded, the first warning signal is issued and the next step of processing is carried out, such as further analyzing whether the abnormal creature is a pedestrian or a wild animal, the type of wild animal, etc., and formulating targeted solutions.
[0035] In summary, the technical solution uses a differential algorithm model to quickly process continuous image frames and effectively identify areas that are different from the road background image. This method avoids directly performing complex convolutional neural network processing on massive data, but first quickly determines whether abnormal organisms appear, greatly improving the processing speed, so that the system can respond to abnormal situations more quickly, issue warning signals in time, and perform the next step of identification processing; further, compared with traditional real-time image processing methods, the technical solution requires fewer computing resources because it mainly relies on simple pixel differential operations, which reduces the demand for high-performance computing equipment, thereby reducing hardware and software investment costs, and also reduces operating and maintenance costs; further, the technical solution can more accurately identify dynamic changes on the road surface, especially the activities of abnormal organisms, through multiple threshold settings and differential processing of continuous frames. More importantly, the introduction of the simulated image model to form a pseudo-motion image further enhances the system's ability to identify abnormal biological activities, thereby improving the accuracy of the warning; further, the technical solution can be easily combined with other advanced image processing technologies or machine learning algorithms to further improve the performance and accuracy of the warning system. At the same time, the method is also suitable for different scenarios and road conditions, showing good scalability and flexibility.
[0036] In one embodiment, S3 includes:
[0037] S31, performing difference processing on the nth frame image and the road background image based on a difference algorithm model to obtain a first difference image;
[0038] S32, determining whether there are any pixels exceeding the first threshold in the first differential image, and if so, starting S33;
[0039] S33, marking a plurality of pixel points exceeding a first threshold value as abnormal pixel points on the first differential image, and obtaining an abnormal target area according to the plurality of abnormal pixel points;
[0040] S34. Obtain a third threshold based on the abnormal target area, and start S4.
[0041] In this embodiment, it should be noted that, in S31, based on the difference algorithm model, the nth frame image acquired in real time and the pre-stored road background image are subjected to pixel-by-pixel difference processing. The purpose of this step is to identify the difference between the current frame and the background frame and generate a first difference image. The first difference image can highlight the area where changes occur between the two frames. In S32, the system determines whether there are pixel points in the first difference image whose pixel values exceed a preset first threshold. The first threshold is a boundary for distinguishing significant changes from minor changes or noise in an image. If there are pixel points exceeding this threshold, it means that an object different from the background may appear in the current frame, which may be due to the appearance of abnormal organisms or other objects. In S In step S33, if pixels exceeding the first threshold are detected in step S32, the system will mark these pixels as abnormal pixels on the first differential image. Subsequently, based on these abnormal pixels, the system will calculate the area of the abnormal target. The calculation of this area helps to further analyze the size of the abnormal object, so as to more accurately determine whether it constitutes a potential threat; in step S34, according to the area of the abnormal target calculated in step S33, the system will dynamically set a third threshold, which is used in the subsequent step S5 to determine whether the size of the continuous gray value area is sufficient to trigger an early warning. By adjusting the third threshold according to the area of the abnormal target, the system can more flexibly deal with abnormal objects of different sizes and improve the accuracy and effectiveness of the early warning. In summary, this embodiment introduces the consideration of the area of the abnormal target by refining step S3, and dynamically adjusts the early warning threshold accordingly, which not only improves the intelligence level of the early warning system, but also enables it to more accurately identify and respond to abnormal conditions on the road surface, thereby further improving the safety and operational efficiency of the highway.
[0042] In one implementation, the differential algorithm model in S31 includes: ;in, Indicates that the nth frame image is at coordinates The pixel value at Indicates the road background image at coordinates The pixel value at Indicates the first difference image at coordinates The pixel value at .
[0043] In this embodiment, it should be noted that the difference algorithm model can be expressed as calculating the difference between the corresponding pixel values of two images. Indicates the road background image at coordinates The pixel value at Indicates that the nth frame image is at coordinates The pixel value at , where (x, y) represents the pixel coordinates in the image. Output Then, the first threshold is introduced ,if , it is considered that (x, y) may be a dynamic change point and needs further processing, that is, the S4 step is started. In this way, the differential algorithm model can effectively identify the dynamic changes on the road surface and provide key information for subsequent biological monitoring and early warning.
[0044] In one embodiment, the differential algorithm model in S4 includes: ;in,
[0045] Indicates that the n+1th frame image is at coordinates The pixel value at The second difference image is at coordinate The pixel value at .
[0046] In this embodiment, it should be noted that, similarly, assuming Indicates that the n+1th frame image is at coordinates The pixel value at Indicates that the nth frame image is at coordinates The pixel value at , where (x, y) represents the pixel coordinates in the image. Output Then, the first threshold is introduced ,if , then (x, y) is considered to represent the position where the moving object causes the change, and is marked as the identification point. If , then (x, y) is considered to represent a position with no change or a small change, and is marked as an anti-marking point to distinguish it from the marking point. Finally, the marking point and the anti-marking point correspond to the first grayscale value and the second grayscale value respectively. In this way, subsequent image recognition and analysis are facilitated.
[0047] In one embodiment, simulating the image model in S5 includes: ;in, Representing coordinates is the first gray value of the marking point, Representing coordinates The second gray value when it is the anti-marking point, Representing coordinates The pixel value in the road background image when it is not a mark point or a counter-mark point. The coordinates of the simulated motion image The pixel value at .
[0048] In this embodiment, it should be noted that can represent the first gray value, It can represent the second grayscale value. Other pixel positions that are not marked as identification points or anti-identification points can be kept as initial values (such as 0 or background grayscale value). In this simulated image model, it is represented as the background grayscale value. , that is, the coordinates The pixel value in the road background image when it is not a mark point or an anti-mark point. In summary, in the entire pseudo-motion image, if the coordinates is the identification point, is zero, is zero, ; If the coordinates is the anti-marking point, is zero, is zero, ; If the coordinates When it is not a marking point or a counter-marking point, is zero, is zero, .
[0049] Preferably, assuming that the width of the simulated motion image is W and the height is H, the simulated image M can be represented as a two-dimensional array of H*W: M={[G 00 , G 01 , ..., G 0(W-1) ][G 10 , G 11 , ..., G 1(W-1) ], ...[G (H-1)0 , G (H-1)1 , ..., G (H-1)(W-1) ]}; G ij represents the gray value of the pixel in the i-th row and j-th column in the image; if a pixel (i, j) is marked as a landmark, then G ij will be set to the first gray value G1; if it is marked as a negative mark point, G ij Will be set to the second grayscale value G2; otherwise, it may remain as the background grayscale value. If there is a 4*4 pseudo-motion image, assuming G1=255 (white), G2=0 (black), and the background grayscale value is 128 (gray), then:
[0050] M={[128,255,128,0], / / 1st row: background, marker, background, anti-marker
[0051] [255,128,128,255], / / Line 2: marker point, background, background, marker point
[0052] [0,0,255,128], / / Line 3: anti-marker point, anti-marker point, mark point, background
[0053] [128,255,0,128]} / / Line 4: background, marker, anti-marker, background
[0054] In this example, it can also be seen that some marking points are surrounded by marking points, so the marking points are continuous, while some marking points are not surrounded by marking points, so the marking points are discontinuous.
[0055] In one embodiment, the method further includes S6: after issuing the first warning signal, collecting a road warning image of a preset road surface in real time;
[0056] S7, processing the road warning image according to the pre-trained convolutional neural network model, and obtaining a feature recognition result;
[0057] S8. Obtain abnormal biological information based on the feature recognition result.
[0058] In this embodiment, it should be noted that by adding three steps S6, S7 and S8, the early warning system can further analyze and identify the specific information of abnormal organisms after issuing the preliminary early warning signal, and provide more detailed data support for managers to make more accurate response decisions. In S6, after the first early warning signal is issued, a high-definition camera or other image acquisition equipment is started to capture images of the preset road surface in real time. These images are called road surface early warning images. The purpose of this step is to obtain more image data in real time after determining that abnormal organisms have appeared, so as to carry out more accurate analysis and identification later. In S7, the collected road surface early warning images are then sent to the pre-trained convolutional neural network model for processing; the convolutional neural network model is a deep learning model that is particularly suitable for processing image data; through multi-layer convolution and pooling operations, high-level features in the image can be extracted, which are crucial for the subsequent identification of abnormal organisms; in this step, the convolutional neural network model will output a feature recognition result, which contains the key feature information of the abnormal organisms in the image. In S8, based on the feature recognition results output by the convolutional neural network in step S7, the specific information of the abnormal organisms is further analyzed and obtained; the information may include the type, quantity, location, and behavior pattern of the abnormal organisms.
[0059] In one embodiment, the convolutional neural network model in S7 includes a convolutional layer, an activation layer, a pooling layer, and a fully connected layer.
[0060] In this embodiment, it should be noted that the convolution layer is the core component of the convolutional neural network, which extracts features from the input data through convolution operations; the convolution kernel (or filter) slides on the input data, performs point multiplication and accumulation operations to generate a new feature map; this process can capture local features of the image, such as edges, textures, etc. The activation layer introduces a nonlinear activation function, which enables the neural network to learn and approximate complex nonlinear functions. Without the activation function, the neural network will only be able to learn linear relationships, which greatly limits its expressive power. The pooling layer (usually maximum pooling or average pooling) is used to downsample the feature map, reduce the spatial dimension of the data, and retain important features, which helps to reduce the amount of calculation, memory usage, and enhance the robustness of the features. The fully connected layer is usually located at the last part of the network, used to integrate the features extracted by the previous layer and perform the final classification or regression. Each neuron is connected to all neurons in the previous layer, so it is called "fully connected".
[0061] A highway abnormal biological monitoring and early warning system is also provided, the system is used to implement the above-mentioned highway abnormal biological monitoring and early warning method, the system comprises:
[0062] An initial acquisition module, used to obtain a road surface background image of a preset road surface;
[0063] A real-time acquisition module is used to acquire adjacent frame images of a preset road surface in real time and set them as the nth frame image and the n+1th frame image;
[0064] The first image processing module is used to perform difference processing on the n-th frame image and the road background image based on the difference algorithm model, obtain a first difference image, determine whether there are pixels exceeding a first threshold in the first difference image, and if so, run the second image processing module;
[0065] A second image processing module is used to perform difference processing on the nth frame image and the (n+1)th frame image based on a difference algorithm model to obtain a second difference image, and to determine whether a pixel point of the second difference image exceeds a second threshold value. If so, the pixel point position is marked as an identification point; if not, the pixel point position is marked as an anti-identification point, wherein the identification point and the anti-identification point correspond to a first grayscale value and a second grayscale value, respectively.
[0066] The early warning generation module is used to form a simulated motion image based on a simulated image model using multiple identification points, multiple anti-identification points, a first grayscale value and a second grayscale value, and determine whether there is a continuous first grayscale value area in the simulated motion image. If so, determine whether the size of the first grayscale value area exceeds a third threshold. If so, issue a first early warning signal.
[0067] Regarding the highway abnormal biological monitoring and early warning system in the above embodiment, the specific manner of performing the operation has been described in detail in the implementation of the highway abnormal biological monitoring and early warning method, and will not be elaborated here.
[0068] Figure 4 FIG. 1 is a block diagram of an electronic device for a method for monitoring and warning of abnormal organisms on a highway according to an exemplary embodiment. Figure 4 As shown, the electronic device 700 may include: a processor 701 , a memory 702 . The electronic device 700 may also include one or more of a multimedia component 703 , an input / output (I / O) interface 704 , and a communication component 705 .
[0069] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned highway abnormal biological monitoring and early warning method. The memory 702 is used to store various types of data to support the operation of the electronic device 700, and these data may include instructions for any application or method used to operate on the electronic device 700, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 702 or sent through the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0070] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned highway abnormal biological monitoring and early warning method.
[0071] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned highway abnormal biological monitoring and early warning method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions can be executed by the processor 701 of the electronic device 700 to complete the above-mentioned highway abnormal biological monitoring and early warning method.
[0072] In another exemplary embodiment, a computer program product is also provided, which includes a computer program that can be executed by a programmable device, and the computer program has a code portion for executing the above-mentioned highway abnormal biological monitoring and early warning method when executed by the programmable device.
[0073] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings; however, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, a variety of simple modifications can be made to the technical solution of the present application, and these simple modifications all fall within the protection scope of the present application.
[0074] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, this application will not further describe various possible combinations.
[0075] In addition, the various implementation modes of the present application may be arbitrarily combined, and as long as they do not violate the concept of the present application, they should also be regarded as the contents disclosed in the present application.
[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. A method for monitoring and early warning of abnormal organisms on highways, characterized in that: include: S1, obtaining a road surface background image of a preset road surface; S2, acquiring adjacent frame images of a preset road surface in real time, and setting them as the nth frame image and the n+1th frame image; S3, performing difference processing on the nth frame image and the road background image based on the difference algorithm model, obtaining a first difference image, determining whether there are pixels exceeding a first threshold in the first difference image, and if so, marking a plurality of pixels exceeding the first threshold as abnormal pixels on the first difference image, obtaining an abnormal target area based on the plurality of abnormal pixels, obtaining a third threshold based on the abnormal target area, and starting S4; S4, performing difference processing on the nth frame image and the n+1th frame image based on the difference algorithm model to obtain a second difference image, and judging whether a pixel point of the second difference image exceeds a second threshold value, if so, marking the pixel point position as an identification point, and if not, marking the pixel point position as an anti-identification point, wherein the identification point and the anti-identification point correspond to a first grayscale value and a second grayscale value, respectively; S5, based on the simulated image model, multiple identification points, multiple anti-identification points, first grayscale values and second grayscale values are used to form a simulated motion image, and it is determined whether there is a continuous first grayscale value area in the simulated motion image, and if so, whether the size of the first grayscale value area exceeds a third threshold, and if so, a first warning signal is issued; the simulated image model includes: ;in, Representing coordinates is the first gray value of the marking point, Representing coordinates The second gray value when it is the anti-marking point, Representing coordinates The pixel value in the road background image when it is not a mark point or a counter-mark point. The coordinates of the simulated motion image The pixel value at .
2. The method for monitoring and early warning of abnormal organisms on highways according to claim 1, characterized in that: The differential algorithm model in S31 includes: ;in, Indicates that the nth frame image is at coordinates The pixel value at Indicates the road background image at coordinates The pixel value at Indicates the first difference image at coordinates The pixel value at .
3. The method for monitoring and early warning of abnormal organisms on highways according to claim 2, characterized in that: The differential algorithm model in S4 includes: ;in, Indicates that the n+1th frame image is at coordinates The pixel value at The second difference image is at coordinate The pixel value at .
4. The method for monitoring and early warning of abnormal organisms on highways according to claim 1, characterized in that: The method further includes S6, after issuing the first warning signal, collecting a road warning image of a preset road surface in real time; S7, processing the road warning image according to the pre-trained convolutional neural network model, and obtaining a feature recognition result; S8. Obtain abnormal biological information based on the feature recognition result.
5. The method for monitoring and early warning of abnormal organisms on highways according to claim 4, characterized in that: The convolutional neural network model in S7 includes a convolutional layer, an activation layer, a pooling layer and a fully connected layer.
6. A highway abnormal biological monitoring and early warning system, characterized in that: The system is used to implement the highway abnormal biological monitoring and early warning method according to any one of claims 1 to 5, and the system comprises: An initial acquisition module, used to obtain a road surface background image of a preset road surface; A real-time acquisition module is used to acquire adjacent frame images of a preset road surface in real time and set them as the nth frame image and the n+1th frame image; The first image processing module is used to perform difference processing on the n-th frame image and the road background image based on the difference algorithm model, obtain a first difference image, determine whether there are pixels exceeding a first threshold in the first difference image, and if so, run the second image processing module; A second image processing module is used to perform difference processing on the nth frame image and the (n+1)th frame image based on a difference algorithm model to obtain a second difference image, and to determine whether a pixel point of the second difference image exceeds a second threshold value. If so, the pixel point position is marked as an identification point; if not, the pixel point position is marked as an anti-identification point, wherein the identification point and the anti-identification point correspond to a first grayscale value and a second grayscale value, respectively. The early warning generation module is used to form a simulated motion image based on a simulated image model using multiple identification points, multiple anti-identification points, a first grayscale value and a second grayscale value, and determine whether there is a continuous first grayscale value area in the simulated motion image. If so, determine whether the size of the first grayscale value area exceeds a third threshold. If so, issue a first early warning signal.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the abnormal biological monitoring and early warning method for highways described in any one of claims 1 to 5 is implemented.
8. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor is used to execute the computer program in the memory to implement the highway abnormal biological monitoring and early warning method as described in any one of claims 1 to 5.
