Moving target detection method, device, medium and equipment integrating depth information
By obtaining image depth information to adjust the parameters of the mixed Gaussian model and high-contrast preservation processing, the problem of high false detection rate in moving target detection is solved, and the dynamic adjustment of sensitivity and accuracy improvement are achieved.
Patent Information
- Application Number
- CN202110670125.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-16
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-06-16
AI Technical Summary
In the existing technology, moving target detection is easily affected by illumination and dynamic background interference, resulting in high false detection and false alarm rates, and the sensitivity of the mixed Gaussian model is fixed and cannot be effectively adjusted.
By obtaining the depth information of the image to be detected, adjusting the parameters of the mixed Gaussian model, combined with high contrast preservation processing, the sensitivity of the moving target detection model is dynamically adjusted to improve the detection accuracy of the moving target area.
It reduces the false detection rate and false alarm rate of moving targets, improves the detection accuracy of moving target areas, and adapts to different environmental conditions.
Smart Images

Figure HDA0004902494960000011 
Figure HDA0004902494960000012 
Figure HDA0004902494960000013
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of moving target detection, and in particular to a moving target detection method, device, computer-readable storage medium and terminal device integrating depth information. Background Art
[0002] The moving target detection function in the intelligent video surveillance system is its basic function, which supports the subsequent detection target classification, tracking and identification functions. Therefore, accurate detection of moving targets is beneficial to the subsequent processing of the video surveillance system. However, the detection of moving targets is easily disturbed by dynamic backgrounds such as lighting and swaying leaves, which leads to an increase in the false detection rate and false alarm rate of moving targets.
[0003] In the prior art, the sensitivity is mainly set according to the area size of the moving target area, and the false detection rate and false alarm rate of the moving target detection are reduced by the sensitivity. However, the area of the moving target area set by this method is constant. When the area of the moving target area is set too small, the false detection rate of the moving target increases; when the area of the moving target area is set too large, the missed detection rate of the moving target increases. Summary of the invention
[0004] The technical problem to be solved by the embodiments of the present invention is to provide a method, device, computer-readable storage medium and terminal device for detecting a moving target by integrating depth information, which can adaptively adjust the sensitivity of the mixed Gaussian model according to the depth information, improve the detection accuracy of the moving target area, and thus reduce the false detection rate and false alarm rate of the moving target.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a moving target detection method integrating depth information, including:
[0006] Acquire the image to be detected;
[0007] Performing depth information extraction processing on the image to be detected to obtain depth information of N pixels; wherein N>0;
[0008] The parameters of the preset M mixed Gaussian models are corrected using the depth information of N pixels to obtain M moving target detection models; where M>0;
[0009] Performing high contrast retention processing on the image to be detected to obtain N high-frequency feature values; wherein the high-frequency feature values correspond to the pixel points one by one;
[0010] According to N high-frequency feature values and M moving target detection models, a moving target region is obtained.
[0011] Furthermore, the depth information includes N pixel depth values, and each pixel corresponds to a pixel depth value; then, the depth information extraction process is performed on the image to be detected to obtain the depth information of the N pixels, specifically including:
[0012] The pixel depth values corresponding to N pixels in the image to be detected are extracted through a body sensor, a deep learning algorithm or a binocular vision technology to obtain the depth information of the N pixels.
[0013] Furthermore, the method of using the depth information of the N pixels to correct the parameters in the preset M mixed Gaussian models to obtain M moving target detection models specifically includes:
[0014] According to the pixel depth value corresponding to each pixel point, the variance threshold and the noise variance threshold in the mixed Gaussian model corresponding to the pixel point are corrected to obtain M moving target detection models;
[0015] Among them, the variance threshold in the moving target detection model corresponding to the nth pixel is the variance threshold in the mixed Gaussian model corresponding to the nth pixel / the pixel depth value corresponding to the nth pixel; the noise variance threshold in the moving target detection model corresponding to the nth pixel is the noise variance threshold in the mixed Gaussian model corresponding to the nth pixel / the pixel depth value corresponding to the nth pixel; N≥n>0.
[0016] Furthermore, the step of performing high contrast retention processing on the image to be detected to obtain N high-frequency feature values specifically includes:
[0017] Using a preset filter to filter the image to be detected to obtain a blurred image; wherein there is a one-to-one correspondence between the pixel points in the image to be detected and the pixel points in the blurred image;
[0018] According to the image to be detected, the blurred image and a preset high-contrast retention algorithm, N high-frequency feature values are obtained.
[0019] Furthermore, the obtaining of N high-frequency feature values according to the image to be detected, the blurred image and a preset high-contrast retention algorithm specifically includes:
[0020] According to the calculation formula of the high contrast retention algorithm, the high frequency feature values of N pixels in the image to be detected are calculated to obtain N high frequency feature values; wherein the calculation formula of the high contrast retention algorithm is as follows:
[0021] G(n)=T1(n)-T(n)+A;
[0022] G(n) is the nth high-frequency eigenvalue; T1(n) is the pixel value corresponding to the nth pixel in the blurred image; T(n) is the pixel value corresponding to the nth pixel in the image to be detected; A is a constant greater than 0.
[0023] Furthermore, after obtaining the moving target region according to the N high-frequency feature values and the M moving target detection models, the method further includes:
[0024] Perform regional statistical correction on each pixel in the moving target area to obtain a corrected moving target area.
[0025] Furthermore, the method performs regional statistical correction on any pixel point in the moving target area through the following steps:
[0026] Get the m*m neighborhood of the pixel point; wherein the m*m neighborhood takes the pixel point as the center pixel point; m is an integer greater than 0;
[0027] Count the number num0 of background pixels in the m*m neighborhood;
[0028] When m*m*a≤num0, the central pixel is corrected to a background pixel, otherwise the central pixel is corrected to a moving pixel; wherein 0<a<1.
[0029] In order to solve the above technical problems, an embodiment of the present invention further provides a moving target detection device integrating depth information, comprising:
[0030] An image acquisition module, used for acquiring an image to be detected;
[0031] A depth information extraction module is used to perform depth information extraction processing on the image to be detected to obtain depth information of N pixels; wherein N>0;
[0032] A model correction module is used to correct the parameters of the preset M mixed Gaussian models using the depth information of the N pixels to obtain M moving target detection models; wherein M>0;
[0033] An image processing module, used for performing high contrast retention processing on the image to be detected to obtain N high-frequency feature values; wherein the high-frequency feature values correspond to the pixel points one by one;
[0034] The image detection module is used to obtain the moving target area according to N high-frequency feature values and M moving target detection models.
[0035] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute any of the above-mentioned methods for detecting moving targets by integrating depth information.
[0036] An embodiment of the present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements any of the above-mentioned methods for detecting moving targets by integrating depth information when executing the computer program.
[0037] Implementing the embodiments of the present invention has the following beneficial effects:
[0038] The embodiment of the present invention provides a method, device, computer-readable storage medium and terminal device for detecting a moving target by integrating depth information. The method comprises: acquiring an image to be detected; performing depth information extraction processing on the image to be detected to obtain depth information of N pixels; wherein N>0; using the depth information of the N pixels to correct the parameters in M preset mixed Gaussian models to obtain M moving target detection models; wherein M>0; performing high contrast retention processing on the image to be detected to obtain N high-frequency eigenvalues; wherein there is a one-to-one correspondence between the high-frequency eigenvalues and the pixels; obtaining a moving target area according to the N high-frequency eigenvalues and the M moving target detection models; compared with the fixed sensitivity of the mixed Gaussian model in the prior art, the present invention can adaptively adjust the sensitivity of the mixed Gaussian model according to the depth information, improve the detection accuracy of the moving target area, and thus reduce the false detection rate of the moving target. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flowchart of a preferred embodiment of a moving target detection method integrating depth information provided by the present invention;
[0040] Figure 2 is the image to be detected provided by the present invention;
[0041] Figure 3 is a logo image corresponding to the moving target area provided by the present invention;
[0042] Figure 4 It is a structural block diagram of a preferred embodiment of a moving target detection device integrating depth information provided by the present invention;
[0043] Figure 5 It is a structural block diagram of a preferred embodiment of a terminal device provided by the present invention. DETAILED DESCRIPTION
[0044] 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 technical field without creative work are within the scope of protection of the present invention.
[0045] The present invention provides a method for detecting a moving object by integrating depth information. Figure 1 FIG. 1 is a flowchart of a preferred embodiment of a method for detecting a moving target by integrating depth information provided by the present invention. The method comprises steps S11 to S15:
[0046] Step S11, obtaining an image to be detected;
[0047] Step S12, performing depth information extraction processing on the image to be detected to obtain depth information of N pixels; wherein N>0;
[0048] Step S13, using the depth information of the N pixels to calibrate the parameters in the preset M mixed Gaussian models to obtain M moving target detection models; wherein M>0;
[0049] Step S14, performing high contrast retention processing on the image to be detected to obtain N high-frequency feature values; wherein the high-frequency feature values correspond to the pixel points one by one;
[0050] Step S15: Obtain a moving target region according to the N high-frequency feature values and the M moving target detection models.
[0051] Specifically, the depth information of the image to be detected is obtained and extracted to obtain the depth information of N pixels, wherein N is all the pixels in the image to be detected; the parameters in the pre-set M mixed Gaussian models are corrected using the depth information of the N pixels, and M moving target detection models are obtained accordingly; for example, taking the first pixel as an example, the parameters in the mixed Gaussian model corresponding to the first pixel are corrected using the depth information of the first pixel, and the moving target detection model corresponding to the first pixel is obtained; the image to be detected is subjected to high-contrast retention processing to obtain N high-frequency eigenvalues; based on the N high-frequency eigenvalues and the M moving target detection models, a moving target area is obtained; compared with the fixed sensitivity of the mixed Gaussian model in the prior art, the present invention can adaptively adjust the sensitivity of the mixed Gaussian model according to the depth information, thereby improving the detection accuracy of the moving target area and reducing the false detection rate of the moving target.
[0052] In another preferred embodiment, the image sequence to be detected is acquired in real time by an electronic device with a video recording function; wherein the image sequence to be detected includes a plurality of images to be detected; the electronic device with a video recording function may be a webcam, a smart phone, or a tablet computer, and the specific acquisition method is not specifically limited in the present invention.
[0053] In another preferred embodiment, the depth information includes N pixel depth values, and each pixel point corresponds to a pixel depth value; then, step S12 specifically includes:
[0054] The pixel depth values corresponding to N pixels in the image to be detected are extracted through a body sensor, a deep learning algorithm or a binocular vision technology to obtain the depth information of the N pixels.
[0055] In another preferred embodiment, step S13 specifically includes:
[0056] According to the pixel depth value corresponding to each pixel point, the variance threshold and the noise variance threshold in the mixed Gaussian model corresponding to the pixel point are corrected to obtain M moving target detection models;
[0057] Among them, the variance threshold in the moving target detection model corresponding to the nth pixel is the variance threshold in the mixed Gaussian model corresponding to the nth pixel / the pixel depth value corresponding to the nth pixel; the noise variance threshold in the moving target detection model corresponding to the nth pixel is the noise variance threshold in the mixed Gaussian model corresponding to the nth pixel / the pixel depth value corresponding to the nth pixel; N≥n>0.
[0058] Specifically, each mixed Gaussian model includes a variance threshold and a noise variance threshold. Taking the first pixel in the image to be detected as an example, the variance threshold W of the moving target detection model corresponding to the first pixel is the variance threshold w of the mixed Gaussian model corresponding to the first pixel divided by the pixel depth value d1 corresponding to the first pixel (equivalent to W=w / d1); the noise variance threshold P of the moving target detection model corresponding to the first pixel is the noise variance threshold p in the mixed Gaussian model corresponding to the first pixel divided by the pixel depth value d1 corresponding to the first pixel (equivalent to P=p / d1). By adaptively adjusting the sensitivity of the mixed Gaussian model based on depth information, it is possible to effectively detect moving targets at a distance, improve the detection accuracy of the moving target area, and thus reduce the false detection rate and false alarm rate of moving targets.
[0059] In another preferred embodiment, the specific steps of step S14 include:
[0060] Filter the image to be detected using a preset filter to obtain a blurred image; wherein, the pixel points in the image to be detected and the pixel points in the blurred image correspond one by one; according to the image to be detected, the blurred image and a preset high-contrast retention algorithm, obtain N high-frequency eigenvalues. The filter can be a mean filter, a Gaussian filter, a low-pass filter, and the present invention does not make specific limitations.
[0061] In yet another preferred embodiment, the step of obtaining N high-frequency eigenvalues according to the image to be detected, the blurred image and a preset high-contrast retention algorithm specifically includes:
[0062] Calculate the high-frequency eigenvalues of N pixel points in the image to be detected according to the calculation formula of the high-contrast retention algorithm to obtain N high-frequency eigenvalues; wherein, the calculation formula of the high-contrast retention algorithm is as follows:
[0063] G (n) = T1 (n) - T (n) + A;
[0064] G (n) is the nth high-frequency eigenvalue; T1 (n) is the pixel value corresponding to the nth pixel point in the blurred image; T (n) is the pixel value corresponding to the nth pixel point in the image to be detected; A is a constant greater than 0; wherein, A is preferably 128.
[0065] In yet another preferred embodiment, after step S15, the method further includes:
[0066] Perform regional statistical correction on each pixel point in the moving target area to obtain a corrected moving target area.
[0067] In yet another preferred embodiment, the method performs regional statistical correction on any pixel point in the moving target area through the following steps:
[0068] Obtain the m*m neighborhood of this pixel point; wherein, the m*m neighborhood takes this pixel point as the central pixel point; 0 < m < w / 2; w is the width of the image to be detected;
[0069] Count the number num0 of background pixel points included in the m*m neighborhood;
[0070] When m*m*a ≤ num0, correct the central pixel point to a background pixel point, otherwise correct the central pixel point to a moving pixel point; wherein, 0 < a < 1, and a is a preset percentage threshold.
[0071] Specifically, in combination with Figure 2 、 Figure 3And the above embodiments, Figure 2 is the image to be detected, Figure 3 is the identification image corresponding to the moving target area. The number of pixels in the image to be detected and the identification image corresponding to the moving target area is the same. The difference is that the pixels in the identification image corresponding to the moving target area have identification information. According to the identification information, the pixels are divided into moving pixels and background pixels. Among them, the moving pixels are marked as 1, that is, Figure 3 The white area in the figure; the background pixels are marked as 0, which is Figure 3 The black area in the moving target area; taking the first pixel point R in the moving target area as an example, taking the 3*3 neighborhood of the first pixel point R, and taking the first pixel point R as the central pixel point of the 3*3 neighborhood; counting the number num0 of 0 contained in the 3*3 neighborhood, when 3*3*a≤num0, correcting the first pixel point R to a background pixel point (i.e., 0), otherwise correcting the central pixel point to a moving pixel point (i.e., 1); by correcting the pixels in the moving target area, the detection accuracy of the moving target area is further improved, and the false detection rate and false alarm rate of the moving target are reduced.
[0072] An embodiment of the present invention also provides a motion target detection device that integrates depth information, which can implement all processes of the motion target detection method that integrates depth information described in any of the above embodiments. The functions of each module and unit in the device and the technical effects achieved are respectively the same as the functions and technical effects achieved by the motion target detection method that integrates depth information described in the above embodiments, and will not be repeated here.
[0073] See also Figure 4 FIG. 1 is a block diagram of a preferred embodiment of a moving target detection device integrating depth information provided by the present invention, and the device includes:
[0074] An image acquisition module 11 is used to acquire an image to be detected;
[0075] A depth information extraction module 12 is used to perform depth information extraction processing on the image to be detected to obtain depth information of N pixels; wherein N>0;
[0076] The model correction module 13 is used to correct the parameters in the preset M mixed Gaussian models using the depth information of the N pixels to obtain M moving target detection models; wherein M>0;
[0077] The image processing module 14 is used to perform high contrast retention processing on the image to be detected to obtain N high-frequency feature values; wherein the high-frequency feature values correspond to the pixel points one by one;
[0078] The image detection module 15 is used to obtain a moving target area according to N high-frequency feature values and M moving target detection models.
[0079] Preferably, the depth information includes N pixel depth values, and each pixel point corresponds to a pixel depth value; then, the depth information extraction module 12 is specifically used to:
[0080] The pixel depth values corresponding to N pixels in the image to be detected are extracted through a body sensor, a deep learning algorithm or a binocular vision technology to obtain the depth information of the N pixels.
[0081] Preferably, the model correction module 13 is specifically used for:
[0082] According to the pixel depth value corresponding to each pixel point, the variance threshold and the noise variance threshold in the mixed Gaussian model corresponding to the pixel point are corrected to obtain M moving target detection models;
[0083] Among them, the variance threshold in the moving target detection model corresponding to the nth pixel is the variance threshold in the mixed Gaussian model corresponding to the nth pixel / the pixel depth value corresponding to the nth pixel; the noise variance threshold in the moving target detection model corresponding to the nth pixel is the noise variance threshold in the mixed Gaussian model corresponding to the nth pixel / the pixel depth value corresponding to the nth pixel; N≥n>0.
[0084] Preferably, the image processing module 14 specifically includes:
[0085] A first image processing unit, configured to filter the image to be detected using a preset filter to obtain a blurred image; wherein there is a one-to-one correspondence between the pixel points in the image to be detected and the pixel points in the blurred image;
[0086] The second image processing unit is used to obtain N high-frequency feature values according to the image to be detected, the blurred image and a preset high-contrast retention algorithm.
[0087] Preferably, the second image processing unit is specifically used for:
[0088] According to the calculation formula of the high contrast retention algorithm, the high frequency feature values of N pixels in the image to be detected are calculated to obtain N high frequency feature values; wherein the calculation formula of the high contrast retention algorithm is as follows:
[0089] G (n) =T1 (n) -T (n) +A;
[0090] G (n) is the nth high frequency eigenvalue; T1 (n) is the pixel value corresponding to the nth pixel in the blurred image; T (n)is the pixel value corresponding to the nth pixel in the image to be detected; A is a constant greater than 0.
[0091] Preferably, the device further comprises a moving target region correction module; the moving target region correction module is used to perform regional statistical correction on each pixel point in the moving target region to obtain a corrected moving target region.
[0092] Preferably, the moving target region correction module is specifically used to perform regional statistical correction on any pixel point in the moving target region through the following steps:
[0093] Get the m*m neighborhood of the pixel point; wherein the m*m neighborhood takes the pixel point as the center pixel point; m is an integer greater than 0;
[0094] Count the number num0 of background pixels in the m*m neighborhood;
[0095] When m*m*a≤num0, the central pixel is corrected to a background pixel, otherwise the central pixel is corrected to a moving pixel; wherein 0<a<1.
[0096] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the method for detecting a moving target by fusing depth information as described in any of the above embodiments.
[0097] The embodiment of the present invention also provides a terminal device, see Figure 5 As shown, it is a structural block diagram of a preferred embodiment of a terminal device provided by the present invention. The terminal device shown includes a processor 10, a memory 20, and a computer program stored in the memory 20 and configured to be executed by the processor 10. When executing the computer program, the processor 10 implements the motion target detection method integrating depth information described in any of the above embodiments.
[0098] Preferably, the computer program can be divided into one or more modules / units (such as computer program 1, computer program 2, ...), and the one or more modules / units are stored in the memory 20 and executed by the processor 10 to complete the present invention. The one or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the air conditioner.
[0099] The processor 10 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor 10 can be any conventional processor. The processor 10 is the control center of the air conditioner, and various parts of the air conditioner are connected using various interfaces and lines.
[0100] The memory 20 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory 20 can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, and a flash card (Flash Card), etc., or the memory 20 can also be other volatile solid-state storage devices.
[0101] It should be noted that the above terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that Figure 5 The structural block diagram is merely an example of the above-mentioned terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or less components than shown in the figure, or a combination of certain components, or different components.
[0102] In summary, the method, device, computer-readable storage medium and terminal device for detecting a moving target by integrating depth information provided by the embodiments of the present invention have the following beneficial effects:
[0103] (1) The sensitivity of the mixed Gaussian model is adaptively adjusted according to the depth information to improve the detection accuracy of the moving target area, thereby reducing the false detection rate and false alarm rate of the moving target.
[0104] (2) By correcting the moving target area, the detection accuracy of the moving target area is further improved, and the false detection rate and false alarm rate of the moving target are reduced.
[0105] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A moving target detection method integrating depth information, characterized in that: include: Acquire the image to be detected; Performing depth information extraction processing on the image to be detected to obtain depth information of N pixels; wherein N>0; The parameters of the preset M mixed Gaussian models are corrected using the depth information of N pixels to obtain M moving target detection models; where M>0; Performing high contrast retention processing on the image to be detected to obtain N high-frequency feature values; wherein the high-frequency feature values correspond to the pixel points one by one; According to N high-frequency feature values and M moving target detection models, a moving target region is obtained; The method of using the depth information of N pixels to correct the parameters in the preset M mixed Gaussian models to obtain M moving target detection models specifically includes: According to the pixel depth value corresponding to each pixel point, the variance threshold and the noise variance threshold in the mixed Gaussian model corresponding to the pixel point are corrected to obtain M moving target detection models; Among them, the variance threshold in the moving target detection model corresponding to the nth pixel is the variance threshold in the mixed Gaussian model corresponding to the nth pixel / the pixel depth value corresponding to the nth pixel; the noise variance threshold in the moving target detection model corresponding to the nth pixel is the noise variance threshold in the mixed Gaussian model corresponding to the nth pixel / the pixel depth value corresponding to the nth pixel; N≥n>0.
2. The moving target detection method integrating depth information as claimed in claim 1, characterized in that: The depth information includes N pixel depth values, and each pixel corresponds to a pixel depth value; then, the depth information extraction process is performed on the image to be detected to obtain the depth information of the N pixels, specifically including: The pixel depth values corresponding to N pixels in the image to be detected are extracted through a body sensor, a deep learning algorithm or a binocular vision technology to obtain the depth information of the N pixels.
3. The moving target detection method integrating depth information as claimed in claim 1, characterized in that: The performing high contrast retention processing on the image to be detected to obtain N high-frequency feature values specifically includes: Using a preset filter to filter the image to be detected to obtain a blurred image; wherein there is a one-to-one correspondence between the pixel points in the image to be detected and the pixel points in the blurred image; According to the image to be detected, the blurred image and a preset high-contrast retention algorithm, N high-frequency feature values are obtained.
4. The moving target detection method integrating depth information as claimed in claim 3, characterized in that: The step of obtaining N high-frequency feature values according to the image to be detected, the blurred image and a preset high-contrast retention algorithm specifically includes: According to the calculation formula of the high contrast retention algorithm, the high frequency feature values of N pixels in the image to be detected are calculated to obtain N high frequency feature values; wherein the calculation formula of the high contrast retention algorithm is as follows: G (n) =T1 (n) -T (n) +A; G (n) is the nth high frequency eigenvalue; T1 (n) is the pixel value corresponding to the nth pixel in the blurred image; T (n) is the pixel value corresponding to the nth pixel in the image to be detected; A is a constant greater than 0.
5. The moving target detection method integrating depth information as claimed in claim 1, characterized in that: After obtaining the moving target region according to the N high-frequency feature values and the M moving target detection models, the method further includes: Perform regional statistical correction on each pixel in the moving target area to obtain a corrected moving target area.
6. The moving target detection method integrating depth information as claimed in claim 5, characterized in that: The method performs regional statistical correction on any pixel point in the moving target area by the following steps: Get the m*m neighborhood of the pixel point; wherein the m*m neighborhood takes the pixel point as the center pixel point; m is an integer greater than 0; Count the number num0 of background pixels in the m*m neighborhood; When m*m*a≤num0, the central pixel is corrected to a background pixel, otherwise the central pixel is corrected to a moving pixel; wherein 0<a<1.
7. A moving target detection device integrating depth information, characterized in that: include: An image acquisition module, used for acquiring an image to be detected; A depth information extraction module is used to perform depth information extraction processing on the image to be detected to obtain depth information of N pixels; wherein N>0; A model correction module is used to correct the parameters of the preset M mixed Gaussian models using the depth information of the N pixels to obtain M moving target detection models; wherein M>0; An image processing module, used for performing high contrast retention processing on the image to be detected to obtain N high-frequency feature values; wherein the high-frequency feature values correspond to the pixel points one by one; An image detection module, used to obtain a moving target area according to N high-frequency feature values and M moving target detection models; The model correction module is specifically used for: According to the pixel depth value corresponding to each pixel point, the variance threshold and the noise variance threshold in the mixed Gaussian model corresponding to the pixel point are corrected to obtain M moving target detection models; Among them, the variance threshold in the moving target detection model corresponding to the nth pixel is the variance threshold in the mixed Gaussian model corresponding to the nth pixel / the pixel depth value corresponding to the nth pixel; the noise variance threshold in the moving target detection model corresponding to the nth pixel is the noise variance threshold in the mixed Gaussian model corresponding to the nth pixel / the pixel depth value corresponding to the nth pixel; N≥n>0.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is run, it controls the device where the computer-readable storage medium is located to execute the moving target detection method integrating depth information as described in any one of claims 1 to 6.
9. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the method for detecting a moving target by fusing depth information according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method and device for background modelling
CN104952054A
Moving target detection method and device, storage medium and terminal equipment
CN111179302A
