Panoramic image adaptive updating method based on intersection scene change perception

The adaptive update of panoramic images is realized through the mixed Gaussian background modeling method, which solves the problem that existing technology cannot sense changes in intersection scenes in time, improves the real-time and accuracy of traffic management, and enhances the safety and smoothness of urban road traffic. sex.

CN118609048APending Publication Date: 2024-09-06BAODING VICTORY TRAFFIC FACILITIES ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410711394.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing full landscape image update method cannot sense real-time changes in intersection scenes in a timely manner, making it difficult for traffic managers to respond to construction changes and abnormal events in a timely manner, affecting traffic flow and safety.

Method used

The hybrid Gaussian background modeling method is used to achieve adaptive updating of panoramic images through dynamic foreground separation and probability distribution calculation, distinguish scene changes and image changes caused by camera equipment, upload and process images in real time, and trigger corresponding response measures.

Benefits of technology

It improves the ability to perceive changes in intersection scenes, provides timely and accurate traffic information, reduces traffic congestion and accident risks, and improves the smoothness and safety of urban road traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609048A
    Figure CN118609048A
Patent Text Reader

Abstract

The invention belongs to the technical field of intelligent traffic control, and provides an intersection scene change perception panoramic image adaptive updating method, which comprises the following steps of: 1, separating a dynamic foreground of a frame image, and generating and uploading a panoramic image for the image after the dynamic foreground is separated; 2, image change caused by the camera equipment is sensed, the image is not processed, and a historical panoramic image is still uploaded; 3, sensing image change caused by non-camera equipment reasons, and generating and uploading a panoramic image by the changed image with the separated dynamic foreground; 4, giving out early warning and reminding for the scene change position; according to the method, abnormal changes such as traffic intersection construction changes or manual takeover control and the like are automatically updated in real time through change perception of a traffic intersection static scene; the probability of traffic congestion and even traffic accidents caused by the fact that traffic participants cannot obtain intersection change information in time is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent traffic control and relates to a method for adaptively updating a panoramic image based on perception of scene changes at intersections. Background Art

[0002] In urban road traffic management, scene changes at intersections are a common problem that requires timely and accurate perception and processing. Scene changes at intersections generally include intersection construction, road closures, lane division adjustments, traffic control or manual takeover, etc. These changes will lead to changes in traffic flow, adjustments to driving routes, and increased risks of traffic accidents.

[0003] Traditional traffic monitoring systems mainly rely on various sensors and traffic lights to collect data and monitor traffic conditions. However, these systems often only focus on basic information such as traffic flow and driving speed, and have relatively weak perception of intersection change events, and cannot accurately detect abnormal events such as construction changes at intersections and manual takeover by traffic police.

[0004] Among the existing technologies, panoramic observation technology is widely used in urban traffic management. This technology can obtain all-round information of intersections by taking panoramic images, including vehicles, pedestrians, traffic light status, construction areas, etc. Panoramic observation technology uses high-precision cameras and image processing technology to obtain image information of intersections in real time and convert it into digital information for storage and analysis. By analyzing and processing these images, various traffic information at intersections can be extracted, such as vehicles, pedestrians, traffic light status, etc.

[0005] However, existing panoramic image update methods often rely on preset rules or fixed time intervals to update images. Although this method can meet basic monitoring needs, it cannot adapt to real-time changes in intersection scenes. For example, when construction changes occur at an intersection, if the image update time is long, changes in the construction area cannot be perceived in time, resulting in traffic managers being unable to take timely response measures. Summary of the invention

[0006] In view of the shortcomings of the prior art, the present invention proposes a method for adaptively updating panoramic images for perception of scene changes at intersections, which can improve the perception of scene changes at intersections and provide more timely and accurate information for traffic managers to formulate more effective traffic management strategies. At the same time, the method can also monitor the traffic conditions at intersections in real time, detect abnormal conditions and traffic accidents in a timely manner, and help improve the safety and smoothness of urban road traffic.

[0007] The technical solution of the present invention is achieved in this way: A panoramic image adaptive update method based on intersection scene change perception includes: Step 1, separating the dynamic foreground of the frame image, generating and uploading a panoramic image of the image after the dynamic foreground is separated; The video image is discretized into frame images, and the frame images are gray-scale processed to obtain a gray-scale image set P = {P1, P2, ... P n}; For each pixel p(x, y) of the grayscale image set P, the mixed Gaussian model formula Calculate the probability distribution of pixel point p(x, y) in the mixed Gaussian model; where P(I(x, y, t)) represents the probability distribution of pixel point (x, y) in the mixed Gaussian model, μ t and σ t are the parameters of the mean and variance of the Gaussian model respectively; For each pixel point p(x, y), calculate its probability distribution P(I(x, y, t)) in the mixed Gaussian model; Set a threshold T1 to distinguish dynamic foreground from background; if P(I(x, y, t)) < T1, the pixel is considered as dynamic foreground; all pixels considered as foreground form a foreground mask, where foreground objects are marked as 1 and other objects are marked as 0; separate the foreground pixels from the grayscale image set P to obtain a clean grayscale background image set, which is recorded as the historical grayscale background image set K = {K1, K2, ... K n}; Generate a panoramic image of the historical grayscale background image, reversely convert the generated grayscale panoramic image into a color panoramic image and upload it; Step 2: The image changes caused by the camera equipment are detected, and the image is not processed, and the historical panoramic image is still uploaded; 21. Cut a test specimen with a side length of a from the same position of each frame image of the set P; 22. Take n test samples of continuous time T as the historical test sample set P T ={P T 1, P T 2, ... P T n}; 23. Cut n frames of the video to be processed for continuous time T and perform grayscale processing. Cut the set of samples to be tested that are the same as the historical test samples to be tested as P ’ ={P ’ 1, P ’ 2, ... P ’ n}; 24. Set PT n is the gray value matrix of the historical inspection specimen image, P t n is the gray value matrix of the sample image to be tested, p T n (x, y) is represented as a matrix P T n The element, p t n (x ’ ,y ’ ) is represented as a matrix P t n elements, calculate p T i (x, y) and p ’ i (x ’ ,y ’ ) corresponds to the grayscale difference a i (x, y) = p ’ i (x ’ ,y ’ )-p T i (x, y), returns the number of pixels whose grayscale value is not 0 d i ; 25. With d i The matrix D is the element i , set the capacity value ζ, construct the cumulative difference matrix M i , the element m of the cumulative difference matrix i (x, y) = max{d i (x, y)-ζ, 0}, and get the cumulative difference matrix M i , calculate the cumulative difference matrix M i The ratio of the number of non-zero elements to the number of zero elements is recorded as the execution coefficient δ T ; 26. Set threshold T3, if δ T ≥T3, the image change is deemed to be caused by the camera equipment, the image is not processed, and the original historical color panoramic image is still uploaded; 27. If T <T3, the image change is deemed to be caused by reasons other than the camera device, and step 3 is executed; Step 3: sensing image changes caused by reasons other than the camera device, and generating and uploading a panoramic image using the image of the separated dynamic foreground after the changes; 31. The current image is dynamically separated from the foreground to obtain the gray background image K n+1 , grayscale background image K n+1 The pixel kn+1 (x, y) and the historical grayscale background image K i ∈K corresponding pixel k i (x, y), calculate their probability distribution P in the mixed Gaussian model respectively kn+1 (I(x, y, t)) and P ki (I(x, y, t)); 32. Set threshold T2 to distinguish between change scene and background; if T1≤ P kn+1 (I(x, y, t))<T2, and P ki (I(x, y, t))≥T2, then it is considered as pixel k n+1 The scene at position (x, y) has changed; then the gray background image K n+1 The subsequent image set is regarded as the new historical grayscale background image K'={K n+1 , K n+2 ,......K 2n}, otherwise, the pixel position is considered unchanged, and the gray background image K n+1 Included in the original historical grayscale background image set, that is, K={K1, K2, ... K n , K n+1}; 33. Generate a panoramic image of the new grayscale background image, reversely convert it into a new color panoramic image and upload it to cover the original historical color panoramic image.

[0008] Step 4: Background update, warning and reminder of scene changes; 41. Intercept a new grayscale image set P ’ ={P ’ 1, P ’ 2, ... P ’ n}, through each new pixel point p ’ (x, y) re-estimates the parameters of the mixed Gaussian model and brings it into the model update context; 42. Determine the event type and impact scope based on scene changes and trigger corresponding response measures.

[0009] The working principle and beneficial effects of the present invention are: The mixed Gaussian background modeling method is not only highly adaptable to complex scenes, but also can adjust the background model through automatically calculated model parameters. It has fast detection speed, accurate detection, and is easy to implement. At the same time, it can adaptively update the background image parameters according to the newly acquired image. This method can also handle lighting changes, interference from chaotic background motion, and long-term scene changes.

[0010] Real-time sensing and scene change sensing mode that uploads whenever there is a change saves computing space and improves response speed. It can timely perceive scene change events at intersections, allowing traffic managers to respond quickly and avoid traffic congestion and delays caused by construction changes or other abnormal events. This helps to improve the smoothness of urban road traffic and provide citizens with a better travel experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0012] Figure 1 The overall flow chart of the method for adaptively updating panoramic images based on perception of intersection scene changes; Figure 2 A schematic diagram of a video image of an intersection before separating the dynamic foreground in step 1 of the method for adaptively updating a panoramic image based on perception of scene changes at an intersection; Figure 3 A schematic diagram of a video image of an intersection after separating the dynamic foreground in step 1 of the method for adaptively updating a panoramic image based on perception of scene changes at an intersection; Figure 4 An example diagram of using a test specimen to detect the cause of an image change in step 2 of the method for adaptively updating a panoramic image based on perception of scene changes at an intersection; Figure 5 A schematic diagram of a scene change at an intersection in step 3 of the method for adaptively updating a panoramic image based on scene change perception at an intersection; Figure 6 A schematic diagram of all the different points detected and filtered results in step 3 of the method for adaptively updating a panoramic image based on perception of scene changes at intersections; Figure 7 A method for adaptively updating panoramic images based on scene change perception at intersections detects a background image that is updated after a scene change; DETAILED DESCRIPTION

[0013] The following will be combined with 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.

[0014] A panoramic image adaptive update method based on intersection scene change perception includes: Step 1, separating the dynamic foreground of the frame image, generating and uploading a panoramic image of the image after the dynamic foreground is separated; The video image is discretized into frame images, and the frame images are gray-scale processed to obtain a gray-scale image set P = {P1, P2, ... Pn}; For each pixel p(x, y) of the grayscale image set P, the mixed Gaussian model formula Calculate the probability distribution of pixel point p(x, y) in the mixed Gaussian model; where P(I(x, y, t)) represents the probability distribution of pixel point (x, y) in the mixed Gaussian model, μ t and σ t are the parameters of the mean and variance of the Gaussian model respectively; For each pixel point p(x, y), calculate its probability distribution P(I(x, y, t)) in the mixed Gaussian model; Set a threshold T1 to distinguish dynamic foreground from background; if P(I(x, y, t)) < T1, the pixel is considered as dynamic foreground; all pixels considered as foreground form a foreground mask, where foreground objects are marked as 1 and other objects are marked as 0; separate the foreground pixels from the grayscale image set P to obtain a clean grayscale background image set, which is recorded as the historical grayscale background image set K = {K1, K2, ... K n}; Generate a panoramic image of the historical grayscale background image, reversely convert the generated grayscale panoramic image into a color panoramic image and upload it; Step 2: The image changes caused by the camera equipment are detected, and the image is not processed, and the historical panoramic image is still uploaded; In actual applications, the camera may shake due to external factors. The camera shake affects the quality of the transmitted video and image. To reduce the occurrence of such incidents, we have conducted camera video shake detection. Since there are many information elements in the video image, it is difficult to determine whether the difference is caused by the shaking or by normal natural or human behavior. Therefore, we select a certain area in the video image for shake detection. Figure 3 As shown in the figure, we selected the lower left corner where there is less flow of people as the interception area. The following are the specific detection steps: 21. Cut a test specimen with a side length of a from the same position of each frame image of the set P; 22. Take n test samples of continuous time T as the historical test sample set P T ={P T 1, P T 2, ... P T n}; 23. Cut n frames of the video to be processed for continuous time T and perform grayscale processing. Cut the set of samples to be tested that are the same as the historical test samples to be tested as P ’ ={P ’ 1, P’ 2, ... P ’ n}; 24. Set P T n is the gray value matrix of the historical inspection specimen image, P t n is the gray value matrix of the sample image to be tested, p T n (x, y) is represented as a matrix P T n The element, p t n (x ’ ,y ’ ) is represented as the matrix P t n elements, calculate p T i (x, y) and p ’ i (x ’ ,y ’ ) corresponds to the grayscale difference a i (x, y) = p ’ i (x ’ ,y ’ )-p T i (x, y), returns the number of pixels whose grayscale value is not 0 d i ; 25. With d i The matrix D is the element i , set the capacity value ζ, construct the cumulative difference matrix M i , the element m of the cumulative difference matrix i (x, y) = max{d i (x, y)-ζ, 0}, and get the cumulative difference matrix M i , calculate the cumulative difference matrix M i The ratio of the number of non-zero elements to the number of zero elements is recorded as the execution coefficient δ T ; 26. Set threshold T3, if δ T ≥T3, the image change is deemed to be caused by the camera equipment, the image is not processed, and the original historical color panoramic image is still uploaded; 27. If T <T3, the image change is deemed to be caused by reasons other than the camera device, and step 3 is executed; Step 3: sensing image changes caused by reasons other than the camera device, and generating and uploading a panoramic image using the image of the separated dynamic foreground after the changes; 31. The current image is dynamically separated from the foreground to obtain the gray background image K n+1 , grayscale background image K n+1 The pixel k n+1 (x, y) and the historical grayscale background image K i ∈K corresponding pixel k i (x, y), calculate their probability distribution P in the mixed Gaussian model respectively kn+1 (I(x, y, t)) and P ki (I(x, y, t)); 32. Set threshold T2 to distinguish between change scene and background; if T1≤ P kn+1 (I(x, y, t))<T2, and P ki (I(x, y, t))≥T2, then it is considered as pixel k n+1 The scene at position (x, y) has changed; then the gray background image K n+1 The subsequent image set is regarded as the new historical grayscale background image K'={K n+1 , K n+2 ,......K 2n}, otherwise, the pixel position is considered unchanged, and the gray background image K n+1 Included in the original historical grayscale background image set, that is, K={K1, K2, ... K n , K n+1}; 33. Generate a panoramic image of the new grayscale background image, reversely convert it into a new color panoramic image and upload it to overwrite the original historical color panoramic image. Figure 7 The background image after the scene change shown covers the original Figure 3 The background image before the scene change is shown.

[0015] Step 4: Background update, warning and reminder of scene changes; 41. Extract a new grayscale image set P ’ ={P ’ 1, P ’ 2, ... P ’ n}, through each new pixel point p ’ (x, y) re-estimates the parameters of the mixed Gaussian model and brings it into the model update context; 42. Determine the event type and impact scope based on scene changes, and trigger corresponding response measures, such as adjusting the traffic light timing plan, issuing warning information, etc.

[0016] It is worth noting that this embodiment only shows a simple example of a method for adaptively updating panoramic images based on perception of intersection scene changes, and this is only for the convenience of demonstrating the principles of this method. Those skilled in the art should understand that the timing of the method steps provided in the above embodiment can be adaptively adjusted according to actual conditions, and can also be performed concurrently according to actual conditions.

[0017] All or part of the steps in the methods involved in the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a storage medium readable by a computer device to execute all or part of the steps described in the methods of the above embodiments.

[0018] Finally, it should be noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, product or apparatus that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, product or apparatus, and does not exclude the presence of other identical elements in the process, method, product or apparatus that includes the elements.

Claims

1. A method for adaptively updating panoramic images based on intersection scene change perception, characterized in that: include Step 1, separating the dynamic foreground of the frame image, generating and uploading a panoramic image of the image after the dynamic foreground is separated; Step 2: The image changes caused by the camera equipment are detected, and the image is not processed, and the historical panoramic image is still uploaded; Step 3: sensing image changes caused by reasons other than the camera device, and generating and uploading a panoramic image using the image of the separated dynamic foreground after the changes; Step 4: Background update, warning and reminder of scene changes.

2. The method for adaptively updating panoramic images based on intersection scene change perception according to claim 1, characterized in that: Step 1 includes, The video image is discretized into frame images, and the frame images are gray-scale processed to obtain a gray-scale image set P = {P1, P2, ... P n }; For each pixel p(x, y) of the grayscale image set P, the mixed Gaussian model formula Calculate the probability distribution of pixel point p(x, y) in the mixed Gaussian model; where P(I(x, y, t)) represents the probability distribution of pixel point (x, y) in the mixed Gaussian model, μ t and σ t are the parameters of the mean and variance of the Gaussian model respectively; For each pixel point p(x, y), calculate its probability distribution P(I(x, y, t)) in the mixed Gaussian model; Set a threshold T1 to distinguish dynamic foreground from background; if P(I(x, y, t)) < T1, then the pixel is considered as dynamic foreground; all pixels considered as foreground form a foreground mask, where foreground objects are marked as 1 and other objects are marked as 0; separate the foreground pixels from the grayscale image set P to obtain a clean grayscale background image set, which is recorded as the historical grayscale background image set K = {K1, K2, ... K n }; A panoramic image is generated for the historical grayscale background image, and the generated grayscale panoramic image is inversely converted into a color panoramic image and uploaded.

3. The method for adaptively updating panoramic images based on intersection scene change perception according to claim 1, characterized in that: Step 2 includes 21. Cut a test specimen with a side length of a from the same position of each frame image of the set P; 22. Take n test samples of continuous time T as the historical test sample set P T ={P T 1, P T 2, ... P T n }; 23. Cut n frames of the video to be processed for continuous time T and perform grayscale processing. Cut the set of samples to be tested that are the same as the historical test samples to be tested as P ’ ={P ’ 1, P ’ 2, ... P ’ n }; 24. Set P T n is the gray value matrix of the historical inspection specimen image, P t n is the gray value matrix of the sample image to be tested, p T n (x, y) is represented as a matrix P T n The element, p t n (x ’ ,y ’ ) is represented as the matrix P t n elements, calculate p T i (x, y) and p ’ i (x ’ ,y ’ ) corresponds to the grayscale difference a i (x, y) = p ’ i (x ’ ,y ’ )-p T i (x, y), returns the number of pixels whose grayscale value is not 0 d i ; 25. With d i The matrix D is the element i , set the capacity value ζ, construct the cumulative difference matrix M i , the element m of the cumulative difference matrix i (x, y) = max{d i (x, y)-ζ, 0}, and get the cumulative difference matrix M i , calculate the cumulative difference matrix M i The ratio of the number of non-zero elements to the number of zero elements is recorded as the execution coefficient δ T ; 26. Set threshold T3, if δ T ≥T3, the image change is deemed to be caused by the camera equipment, the image is not processed, and the original historical color panoramic image is still uploaded; 27. If T <T3, the image change is deemed to be caused by reasons other than the camera device, and step 3 is executed.

4. The method for adaptively updating panoramic images based on intersection scene change perception according to claim 1, characterized in that: Step 3 includes 31. The current image is dynamically separated from the foreground to obtain the gray background image K n+1 , grayscale background image K n+1 The pixel k n+1 (x, y) and the historical grayscale background image K i ∈K corresponding pixel k i (x, y), calculate their probability distribution P in the mixed Gaussian model respectively kn+1 (I(x, y, t)) and P ki (I(x, y, t)); 32. Set threshold T2 to distinguish between change scene and background; if T1≤ P kn+1 (I(x, y, t))<T2, and P ki (I(x, y, t))≥T2, then it is considered as pixel k n+1 The scene at position (x, y) has changed; then the gray background image K n+1 The subsequent image set is regarded as the new historical grayscale background image K'={K n+1 , K n+2 ,......K 2n }, otherwise, the pixel position is considered unchanged, and the gray background image K n+1 Included in the original historical grayscale background image set, that is, K={K1, K2, ... K n , K n+1 }; 33. Generate a panoramic image of the new grayscale background image, reversely convert it into a new color panoramic image and upload it to cover the original historical color panoramic image.

5. The method for adaptively updating panoramic images based on intersection scene change perception according to claim 1, characterized in that: Step 4 includes, 41. Extract a new grayscale image set P ’ ={P ’ 1, P ’ 2, ... P ’ n }, through each new pixel point p ’ (x, y) re-estimates the parameters of the mixed Gaussian model and brings it into the model update context; 42. Determine the event type and impact scope based on scene changes and trigger corresponding response measures.

6. The method for adaptively updating panoramic images based on intersection scene change perception according to claim 2, characterized in that: The threshold T1 is determined by the accuracy of separating the dynamic foreground and background. The selection of the threshold T1 needs to be adjusted according to the duration of the traffic light at the intersection.

7. The method for adaptively updating panoramic images based on intersection scene change perception according to claim 3, characterized in that: The threshold T3 is a fixed value that measures the rate of change of the image due to reasons such as shaking of the camera device.

8. The method for adaptively updating panoramic images based on intersection scene change perception according to claim 3, characterized in that: The inspection specimen position should be selected from the edge of the image where the external environment changes less as the interception area.

9. The method for adaptively updating panoramic images based on intersection scene change perception according to claim 4, characterized in that: The threshold T2 is determined by the accuracy of distinguishing scene changes from backgrounds, satisfying T2>T1.