Moving target detection method and device based on ViBe + + algorithm

By using the ViBe++ algorithm in moving target detection to generate multi-level image pyramids and perform segmentation processing, combined with adaptive thresholds and dynamic background model updates, the problem of poor threshold setting and update strategies in the existing technology is solved, and detection efficiency is improved. Accuracy and adaptability.

CN118762341AInactive Publication Date: 2024-10-11SHENZHEN PULAN ROBOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410739263.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing moving target detection methods have improper threshold settings and poor background model update strategies during foreground detection, resulting in 'ghost' phenomena and noise, which affects the detection effect. In particular, detection is inaccurate when lighting changes and shaking objects appear.

Method used

The moving target detection method based on the ViBe++ algorithm is used to generate multi-level image pyramids and perform segmentation processing, combined with adaptive thresholds and dynamic background model updates, to identify foreground points and background points, reduce noise and improve detection accuracy.

Benefits of technology

It effectively improves the accuracy of moving target detection, especially in complex and dynamic traffic environments, reduces the occurrence of 'ghosts' and noise, and enhances the ability to adapt to lighting changes and scene changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762341A_ABST
    Figure CN118762341A_ABST
Patent Text Reader

Abstract

The invention provides a moving target detection method and device based on a ViBe + + algorithm, and the method comprises the steps: collecting an original road condition image sequence based on a road side unit, transmitting the original road condition image sequence to a processing terminal, generating a multi-level image pyramid based on the processing terminal according to the original road condition image sequence, and carrying out the detection of a moving target according to the multi-level image pyramid. The method comprises the steps of performing segmentation processing on each level image of a multi-level image pyramid to obtain a preprocessed road condition image sequence, and further performing moving target detection on the preprocessed road condition image sequence based on a ViBe + + algorithm to obtain a moving target detection result. Optimization is carried out from multiple dimensions of multi-level images, segmentation processing, algorithm improvement and the like, and through close connection and mutual complementation of all the steps, the accuracy of moving target detection is effectively improved, especially in a complex and dynamic traffic environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a moving target detection method and device based on a ViBe++ algorithm. Background Art

[0002] With the continuous development of artificial intelligence and communication technology, breakthroughs have also been made in technologies related to intelligent driving. Among them, remote control of intelligent connected vehicles based on 5G communication technology has broad application prospects. However, due to the inherent delay problem in data transmission in the current wireless network, there are certain safety issues when the back-end control personnel remotely control the intelligent connected vehicles through some dangerous road conditions. In order to ensure the safety of the controlled vehicle, it is necessary to collect road condition information around the controlled vehicle based on the roadside unit (RSU, Roadside Unit, such as cameras, radars, sensor fusion equipment, etc.), and make safety warnings based on the road condition information, so as to give the control personnel sufficient warning information during the remote control process to overcome the potential risks brought by the inherent delay.

[0003] When using cameras for data collection, combined with the characteristics of the camera being in a fixed state and the application scenario characteristics of real-time road condition monitoring, the ViBe (Visual Background Extractor) algorithm in the background difference method is often used in the selection of mobile target detection algorithms. This algorithm can maximize the use of the stable background model obtained by the image acquisition unit in a fixed state, and is also lightweight and has no strict hardware requirements. However, there are also the following shortcomings:

[0004] (1) In foreground detection, improper threshold setting and poor update strategy in the background model update process will lead to the "ghosting" phenomenon, resulting in poor final detection results. Among them:

[0005] When comparing the difference between the current frame pixel value and the sample value in the background model, if the difference is less than the threshold, the pixel is considered to belong to the background, otherwise it is considered to belong to the foreground. Furthermore, when the threshold is set too high, some foreground pixels in the background model may not be correctly identified as foreground, which will result in the background pixels at the original position not being updated in time after the foreground target moves, thus forming a "ghost".

[0006] The update strategy refers to the method used to dynamically update and maintain the background model during foreground detection. Its main function is to enable the background model to reflect changes in the scene. If the background model is updated too slowly, the foreground pixels in the background model will not be replaced by new background pixels in time, thus forming "ghost images".

[0007] (2) If the lighting conditions in the scene change or there are shaking objects, some noise will be generated, resulting in poor final detection results.

[0008] Since the background model update strategy in the traditional ViBe algorithm is usually performed with a fixed probability and frequency, this means that the background model has a certain lag in adapting to environmental changes. When the light changes suddenly, the background model cannot respond immediately, resulting in inaccurate detection results for a period of time and generating noise. Similarly, when there is a shaking object, the sample values ​​in the background model cannot be updated in time, resulting in noise.

[0009] Therefore, it is urgent to optimize the existing mobile target detection methods to solve the problem that the existing detection methods are not effective. Summary of the invention

[0010] In view of this, an object of the present invention is to provide a moving target detection method and device based on the ViBe++ algorithm to solve the problem that the existing detection methods are not effective.

[0011] To achieve the above objectives,

[0012] The present invention provides a moving target detection method based on the ViBe++ algorithm, comprising the following steps:

[0013] Step S101, collecting an original road condition image sequence based on a roadside unit and transmitting it to a processing terminal;

[0014] Step S102, generating a multi-level image pyramid based on the original road condition image sequence based on the processing terminal;

[0015] Step S103, performing segmentation processing on each level image of the multi-level image pyramid to obtain a pre-processed road condition image sequence;

[0016] Step S104: Based on the ViBe++ algorithm, mobile target detection is performed on the pre-processed road condition image sequence to obtain a mobile target detection result.

[0017] In some embodiments, the degree of dynamic change of the image background of the ViBe++ algorithm is P(n);

[0018] After step S103 and before step S104, step S105 is further included:

[0019]

[0020] Where n is the pixel, N is the resolution, dist is the Euclidean distance, w(n) is the pixel value, M is the pixel value, i (n) is the background model.

[0021] In some embodiments, the adaptive threshold of the ViBe++ algorithm is O(n);

[0022] Step S105 also includes:

[0023]

[0024] Among them, the initial value of O(n) is a fixed value, a dec and a inc are adjustment parameters and are fixed values. inc <a dec , γ is the weight, a dec and a inc Both are positively correlated with γ.

[0025] In some embodiments, before step S105, step S106 is further included:

[0026] Based on the processing terminal, obtaining a current complexity level corresponding to the current road condition;

[0027] According to the preset current complexity level-γ value mapping table, the γ value corresponding to the current complexity level is obtained and enabled.

[0028] In some embodiments, step S104 includes:

[0029] Step S1040, initializing the background model;

[0030] Step S1041, performing foreground detection according to the background model and the adaptive threshold, identifying foreground points and background points;

[0031] Step S1042, determining whether there are pixels that are continuously determined as foreground points, and the number of times is not less than a first preset value;

[0032] Step S1043, if yes, then compare the pixel value of the pixel point with the pixel value of the pixel point at the same position in the previous K frames to obtain a comparison result; wherein K is a positive integer;

[0033] Step S1044, determining whether the comparison result shows that the number of similar frames is less than a second preset value;

[0034] Step S1045: if yes, the pixel point is identified as a foreground point; if no, the pixel point is identified as a background point.

[0035] In some embodiments, step S1043 includes:

[0036] Define a circle C in Euclidean space L [w(n)], the center of the circle is the pixel value w(n) of pixel n, and the radius is L;

[0037] According to formula CL [w(n)]∩{v1,v2,...v K} Calculate the number of similar frames, where v1 to v K is the pixel value of the pixel in the previous K frames.

[0038] In some embodiments, the generation method used in step S102 is one of Laplacian pyramid, Gaussian pyramid, wavelet transform, or any combination thereof.

[0039] In some embodiments, the original road condition image sequence is used as the 0th layer road condition image sequence, and A is the layer number of the road condition image sequence; step S102 includes:

[0040] Step S1020, setting the initial value of A to 0;

[0041] Step S1021, low-pass filtering and down-sampling are performed on the A-th layer road condition image sequence in sequence to obtain an initial A+1 layer road condition image sequence;

[0042] Step S1022, high-pass filtering and up-sampling are performed on the A-th layer road condition image sequence in sequence to obtain an A+1 layer road condition image sequence for calculation;

[0043] Step S1023, performing a difference operation on the initial A+1 layer road condition image sequence and the A+1 layer operation road condition image sequence to obtain a final A+1 layer road condition image sequence;

[0044] Step S1024, determining whether A+1 is a preset total number of layers;

[0045] Step S1025, if not, then A=A+1, and jump to step S1021.

[0046] In some embodiments, the processing method used in step S103 is one of three-frame difference method, threshold segmentation, and deep learning algorithm.

[0047] The present invention also provides a moving target detection device based on the ViBe++ algorithm, comprising:

[0048] A collection unit, used for collecting original road condition image sequences and transmitting them to a processing unit;

[0049] The processing unit is used to generate a multi-level image pyramid based on the original road condition image sequence, and is also used to segment the images of each level of the multi-level image pyramid to obtain a pre-processed road condition image sequence, and is also used to perform mobile target detection on the pre-processed road condition image sequence based on the ViBe++ algorithm to obtain a mobile target detection result.

[0050] Compared with the prior art, the beneficial effect of the present invention is that: by collecting the original road condition image sequence based on the roadside unit and transmitting it to the processing terminal, then, based on the processing terminal, a multi-level image pyramid is generated according to the original road condition image sequence, then, each level image of the multi-level image pyramid is segmented to obtain a pre-processed road condition image sequence, then, based on the ViBe++ algorithm, mobile target detection is performed on the pre-processed road condition image sequence to obtain a mobile target detection result. Optimization is carried out from multiple dimensions such as multi-level images, segmentation processing, and algorithm improvement, and the accuracy of mobile target detection is effectively improved through the close connection and mutual complementation of each step, especially in a complex and dynamic traffic environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a flow chart of the moving target detection method based on ViBe++ algorithm provided by the present invention;

[0052] Figure 2 It is a schematic diagram of generating a pyramid in the moving target detection method based on the ViBe++ algorithm provided by the present invention;

[0053] Figure 3 It is a composition diagram of the moving target detection device based on the ViBe++ algorithm provided by the present invention. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.

[0055] The embodiment of the present invention provides a moving target detection method based on the ViBe++ algorithm, such as Figure 1 As shown, the following steps are included:

[0056] Step S101: collecting an original road condition image sequence based on a roadside unit and transmitting it to a processing terminal.

[0057] In this step: (1) Roadside units are often found in dangerous traffic sections, such as highway entrances and exits, intersections, crowded areas such as schools and hospitals, construction sections and temporary roads, sections with high accident rates, etc. (2) An image sequence is a collection of multiple images arranged in chronological order, which can represent dynamic scenes. Therefore, the original road condition image sequence is an unprocessed road condition image sequence. (3) Data transmission between the roadside unit and the processing terminal can be via a wired network connection (such as optical fiber or Ethernet) or a wireless network connection, such as a cellular network, Wi-Fi, or dedicated short-range communication. (4) The processing terminal includes but is not limited to dedicated servers, central traffic management centers, cloud computing platforms, vehicle-mounted systems, etc., which are mainly responsible for data processing and analysis and providing core data for back-end control personnel. (5) The original road condition image sequence is collected as basic data for subsequent processing and analysis.

[0058] Step S102: Based on the processing terminal, a multi-level image pyramid is generated according to the original road condition image sequence.

[0059] In this step: (1) The multi-level image pyramid decomposes the image into multiple levels of different resolutions. The structure is similar to a pyramid, with the bottom layer having high resolution and details, while the top layer has low resolution and less details. (2) By generating a multi-level image pyramid, detection can be performed at the low-resolution layer to quickly exclude background and static areas, and then further analysis of potential motion areas can be performed only at the high-resolution layer. By combining information from different levels, moving targets can be more accurately located and identified.

[0060] Step S103 , segmenting the images at each level of the multi-level image pyramid to obtain a pre-processed road condition image sequence.

[0061] In this step: (1) Segmentation is a key step in image processing, which involves the process of dividing an image into multiple regions or objects. (2) Preprocessing the road image sequence further highlights the moving target, reduces background interference, and provides optimized input for the application of the ViBe++ algorithm. (3) Segmentation is connected after the generation of the pyramid, because the image pyramid provides image representations at different scales, which helps to analyze and process images at different scales, which is very important for detecting targets of different sizes. In addition, preliminary segmentation processing on lower-resolution images can quickly identify large-scale target areas, and then refine them on higher-resolution images, which can improve the stability of target detection. At the same time, in the process of generating the image pyramid, it is usually accompanied by a certain degree of smoothing processing, which helps to reduce image noise and provide clearer images for subsequent segmentation processing.

[0062] Step S104: Based on the ViBe++ algorithm, mobile target detection is performed on the pre-processed road condition image sequence to obtain a mobile target detection result.

[0063] In this step: (1) The ViBe++ algorithm is an improved version of the ViBe algorithm. Both algorithms are used for background subtraction and foreground target detection in video sequences. (2) The ViBe++ algorithm maintains multiple background models, so that it can capture the background in different time periods and under different lighting conditions in the scene, thereby more accurately distinguishing between the background and foreground. In addition, the frequency of background updates can be automatically adjusted according to changes in the scene, which improves the stability and accuracy of the algorithm. (2) The sequence processed by the ViBe++ algorithm is segmented. The segmentation process can remove unnecessary details and noise in the image, simplify the image content, and retain the contextual information of the target, which is crucial for understanding the scene and improving the accuracy of detection.

[0064] Compared with the prior art, the beneficial effects of the present invention are as follows: first, the original road condition image sequence is collected based on the roadside unit and transmitted to the processing terminal, and then, based on the processing terminal, a multi-level image pyramid is generated according to the original road condition image sequence, and then, each level image of the multi-level image pyramid is segmented to obtain a pre-processed road condition image sequence, and then, based on the ViBe++ algorithm, the pre-processed road condition image sequence is subjected to mobile target detection to obtain a mobile target detection result. Optimization is performed from multiple dimensions such as multi-level images, segmentation processing, and algorithm improvement, and the accuracy of mobile target detection is effectively improved through the close connection and mutual complementation of each step, especially in a complex and dynamic traffic environment.

[0065] In some embodiments, the degree of dynamic change of the image background of the ViBe++ algorithm is P(n);

[0066] After step S103 and before step S104, step S105 is further included:

[0067]

[0068] Where n is the pixel, N is the resolution, dist is the Euclidean distance, w(n) is the pixel value, M is the pixel value, i (n) is the background model.

[0069] In this embodiment, P(n) is the sum of w(n) and the background model M iThe average of the sum of the Euclidean distances of the pixels from the background model. When the background is static, P(n) is relatively stable; when the background is changing dynamically, P(n) fluctuates. By monitoring the distance between the pixel and the background model, we can dynamically adapt to changes in the background, such as changes in lighting or moving objects in the scene. At the same time, the Euclidean distance is a simple and intuitive metric that is easy to implement and understand in the algorithm.

[0070] In some embodiments, the adaptive threshold of the ViBe++ algorithm is O(n);

[0071] Step S105 also includes:

[0072]

[0073] Among them, the initial value of O(n) is a fixed value, a dec and a inc are adjustment parameters and are fixed values. inc <a dec , γ is the weight, a dec and a inc Both are positively correlated with γ.

[0074] In this embodiment, (1) a dec and a inc Used to control the drop in the threshold. (2) Adding γ can better adjust dynamically with the changes in the scene, helping the algorithm adapt to different lighting conditions and background changes. In addition, through γ, the update direction and speed of O(n) can be controlled. If O(n) is greater than γP(n), it may mean that the current threshold is too high and needs to be lowered to include more foreground pixels; conversely, it may be necessary to increase the threshold to better distinguish between background and foreground. (3) They are positively correlated, that is, when γ is large, a dec and a inc In scenarios with large changes, the threshold can be updated faster to adapt to new situations.

[0075] In some embodiments, before step S105, step S106 is further included:

[0076] Based on the processing terminal, obtaining a current complexity level corresponding to the current road condition;

[0077] According to the preset current complexity level-γ value mapping table, the γ value corresponding to the current complexity level is obtained and enabled.

[0078] In this embodiment, the mapping table can be manually set or continuously updated and generated based on historical data. When the road conditions are more complex, the more accurate the identification prospects are, the more meaningful data can be provided to the back-end control, further reducing driving risks. When the road conditions are simpler, the sensitivity can be reduced to release computing power. Therefore, by adjusting the γ value according to different complexity levels, the usage mode can be more flexible.

[0079] In some embodiments, step S104 includes:

[0080] Step S1040, initializing the background model;

[0081] Step S1041, performing foreground detection according to the background model and the adaptive threshold, identifying foreground points and background points;

[0082] Step S1042, determining whether there are pixels that are continuously determined as foreground points, and the number of times is not less than a first preset value;

[0083] Step S1043, if yes, then compare the pixel value of the pixel point with the pixel value of the pixel point at the same position in the previous K frames to obtain a comparison result; wherein K is a positive integer;

[0084] Step S1044, determining whether the comparison result shows that the number of similar frames is less than a second preset value;

[0085] Step S1045: if yes, the pixel point is identified as a foreground point; if no, the pixel point is identified as a background point.

[0086] In this embodiment, a mechanism for secondary judgment of foreground points is introduced in the background model update link. By statistically analyzing the judgment probability of real foreground points, it is avoided that background points are mistakenly detected as foreground points, thereby further improving the accuracy of foreground recognition.

[0087] In some embodiments, step S1043 includes:

[0088] Define a circle C in Euclidean space L [w(n)], the center of the circle is the pixel value w(n) of pixel n, and the radius is L;

[0089] According to formula C L [w(n)]∩{v1,v2,...v K} Calculate the number of similar frames, where v1 to v K is the pixel value of the pixel in the previous K frames.

[0090] In this embodiment, K is generally 7. The comparison result can be expressed by the formula as follows:

[0091]

[0092] In some embodiments, the generation method used in step S102 is one of Laplacian pyramid, Gaussian pyramid, wavelet transform, or any combination thereof.

[0093] In some embodiments, the original road condition image sequence is used as the 0th layer road condition image sequence, and A is the layer number of the road condition image sequence; step S102 includes:

[0094] Step S1020, setting the initial value of A to 0;

[0095] Step S1021, low-pass filtering and down-sampling are performed on the A-th layer road condition image sequence in sequence to obtain an initial A+1 layer road condition image sequence;

[0096] Step S1022, high-pass filtering and up-sampling are performed on the A-th layer road condition image sequence in sequence to obtain an A+1 layer road condition image sequence for calculation;

[0097] Step S1023, performing a difference operation on the initial A+1 layer road condition image sequence and the A+1 layer operation road condition image sequence to obtain a final A+1 layer road condition image sequence;

[0098] Step S1024, determining whether A+1 is a preset total number of layers;

[0099] Step S1025, if not, then A=A+1, and jump to step S1021.

[0100] In this embodiment, a Gaussian pyramid and a Laplacian pyramid are used in combination. The combination of the two pyramids can simultaneously obtain low-frequency and high-frequency information of the image, providing a more comprehensive multi-scale feature representation. At the same time, the edge enhancement characteristics of the Laplacian pyramid can be combined with the smoothing characteristics of the Gaussian pyramid to improve the accuracy of edge detection. In addition, in image analysis tasks such as feature extraction and target recognition, the hybrid pyramid can provide richer image information, thereby improving the accuracy of the analysis.

[0101] As an example, Figure 2 The image sequence generation process from layer 0 to layer 3 is shown.

[0102] In some embodiments, the processing method used in step S103 is one of three-frame difference method, threshold segmentation, and deep learning algorithm. The three-frame difference method is preferred because if the moving target appears in the first frame of the video sequence, the wrong foreground area will usually be detected when the ViBe algorithm is used for detection. Therefore, after obtaining a multi-level pyramid image sequence, the frame difference method can be used to effectively eliminate the "ghost" area. At the same time, the frame difference method is insensitive to illumination, which overcomes the disadvantage that the traditional ViBe algorithm is sensitive to illumination changes.

[0103] The present invention also provides a moving target detection device based on the ViBe++ algorithm, such as Figure 2 As shown, including:

[0104] The acquisition unit 10 is used to acquire the original road condition image sequence and transmit it to the processing unit;

[0105] The processing unit 20 is used to generate a multi-level image pyramid based on the original road condition image sequence, and is also used to segment the images of each level of the multi-level image pyramid to obtain a pre-processed road condition image sequence. It is also used to perform mobile target detection on the pre-processed road condition image sequence based on the ViBe++ algorithm to obtain a mobile target detection result.

[0106] The device provided in this embodiment, because it adopts the above-mentioned detection method, has at least the advantages of the detection method. Specifically, first, the original road condition image sequence is collected and transmitted to the processing unit, and then the processing unit generates a multi-level image pyramid based on the original road condition image sequence, and then the images of each level of the multi-level image pyramid are segmented to obtain a pre-processed road condition image sequence, and then, based on the ViBe++ algorithm, the pre-processed road condition image sequence is subjected to mobile target detection to obtain a mobile target detection result. Optimization is carried out from multiple dimensions such as multi-level images, segmentation processing, and algorithm improvement, and the accuracy of mobile target detection is effectively improved through the close connection and mutual complementation of each step, especially in complex and dynamic traffic environments.

[0107] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0108] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0109] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0110] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A moving target detection method based on ViBe++ algorithm, characterized in that: The steps include: Step S101, collecting an original road condition image sequence based on a roadside unit and transmitting it to a processing terminal; Step S102, generating a multi-level image pyramid based on the original road condition image sequence based on the processing terminal; Step S103, performing segmentation processing on each level image of the multi-level image pyramid to obtain a pre-processed road condition image sequence; Step S104: Based on the ViBe++ algorithm, mobile target detection is performed on the pre-processed road condition image sequence to obtain a mobile target detection result.

2. The moving target detection method based on the ViBe++ algorithm as claimed in claim 1, characterized in that: The degree of dynamic change of the image background of the ViBe++ algorithm is P(n); After step S103 and before step S104, step S105 is further included: Presets Where n is the pixel, N is the resolution, dist is the Euclidean distance, w(n) is the pixel value, M is the pixel value, i (n) is the background model.

3. The moving target detection method based on the ViBe++ algorithm as claimed in claim 2, characterized in that: The adaptive threshold of the ViBe++ algorithm is O(n); Step S105 also includes: Presets Among them, the initial value of O(n) is a fixed value, a dec and a inc are adjustment parameters and are fixed values. inc <a dec , γ is the weight, a dec and a inc Both are positively correlated with γ.

4. The moving target detection method based on the ViBe++ algorithm as claimed in claim 3, characterized in that: Before step S105, step S106 is also included: Based on the processing terminal, obtaining a current complexity level corresponding to the current road condition; According to the preset current complexity level-γ value mapping table, the γ value corresponding to the current complexity level is obtained and enabled.

5. The moving target detection method based on ViBe++ algorithm as claimed in claim 3, characterized in that: Step S104 includes: Step S1040, initializing the background model; Step S1041, performing foreground detection according to the background model and the adaptive threshold, identifying foreground points and background points; Step S1042, determining whether there are pixels that are continuously determined as foreground points, and the number of times is not less than a first preset value; Step S1043, if yes, then compare the pixel value of the pixel point with the pixel value of the pixel point at the same position in the previous K frames to obtain a comparison result; wherein K is a positive integer; Step S1044, determining whether the comparison result shows that the number of similar frames is less than a second preset value; Step S1045: if yes, the pixel point is identified as a foreground point; if no, the pixel point is identified as a background point.

6. The moving target detection method based on the ViBe++ algorithm as claimed in claim 5, characterized in that: Step S1043 includes: Define a circle C in Euclidean space L [w(n)], the center of the circle is the pixel value w(n) of pixel n, and the radius is L; According to formula C L [w(n)]∩{v1,v2,...v K } Calculate the number of similar frames, where v1 to v K is the pixel value of the pixel in the previous K frames.

7. The moving target detection method based on ViBe++ algorithm as claimed in claim 1, characterized in that: The generation method used in step S102 is one of Laplacian pyramid, Gaussian pyramid, wavelet transform or any combination thereof.

8. The moving target detection method based on the ViBe++ algorithm as claimed in claim 7, characterized in that: The original road condition image sequence is used as the 0th layer road condition image sequence, and A is the layer number of the road condition image sequence; step S102 includes: Step S1020, setting the initial value of A to 0; Step S1021, low-pass filtering and down-sampling are performed on the A-th layer road condition image sequence in sequence to obtain an initial A+1 layer road condition image sequence; Step S1022, high-pass filtering and up-sampling are performed on the A-th layer road condition image sequence in sequence to obtain an A+1 layer road condition image sequence for calculation; Step S1023, performing a difference operation on the initial A+1 layer road condition image sequence and the A+1 layer operation road condition image sequence to obtain a final A+1 layer road condition image sequence; Step S1024, determining whether A+1 is a preset total number of layers; Step S1025, if not, then A=A+1, and jump to step S1021.

9. The moving target detection method based on ViBe++ algorithm as claimed in claim 1, characterized in that: The processing method used in step S103 is one of three-frame difference method, threshold segmentation, and deep learning algorithm.

10. A moving target detection device based on ViBe++ algorithm, characterized in that: include: A collection unit, used for collecting original road condition image sequences and transmitting them to a processing unit; The processing unit is used to generate a multi-level image pyramid based on the original road condition image sequence, and is also used to segment the images of each level of the multi-level image pyramid to obtain a pre-processed road condition image sequence, and is also used to perform mobile target detection on the pre-processed road condition image sequence based on the ViBe++ algorithm to obtain a mobile target detection result.