Method for displaying different scenes along with space view angle conversion
By establishing spatial registration of 3D building models and camera models, combined with cosine value evaluation, the method of displaying different scenes with spatial view angle in special scenes is realized, and the picture chaos caused by the fusion of multiple cameras is solved, which improves the intuitiveness and information coverage of surveillance videos.
Patent Information
- Application Number
- CN202411853619.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-03-28
AI Technical Summary
In some special scenes, such as corridors, rooms, halls, etc., multiple cameras illuminate the same area, resulting in large areas of repetitive areas on the camera screen. When multiple cameras fusion video at the same time, the fusion image will become chaotic.
By establishing a 3D building model in the target area, the spatial registration of the 3D building model in the camera and the target area is completed, the cosine value of the angle included in the direction vector is calculated, and the display status of the camera model is set according to the results, so that different scenes can be displayed according to the spatial view angle conversion.
It effectively avoids logical confusion caused by the superposition of multiple videos in the same scenario, realizes intuitive viewing and monitoring video images on the spatial model, and achieves full coverage of information.
Smart Images

Figure CN119728885A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information technology application innovation technology, and relates to a method for displaying different fused videos, in particular to a method for displaying different scenes with spatial viewing angle conversion. Background Art
[0002] In the application of new security visualization platforms, combining video surveillance with 3D models has become an innovative and efficient trend. This integration not only greatly improves the intuitiveness and accuracy of security monitoring, but also makes security management more intelligent and convenient.
[0003] By combining video surveillance with 3D models (such as 3D models of buildings, factories, urban areas, etc.), cameras and monitoring areas can be accurately located in three-dimensional space, which means that security personnel no longer need to rely on traditional two-dimensional floor plans. After combining with 3D models, the monitoring screen can be mapped to the corresponding position in three-dimensional space to form a three-dimensional video monitoring screen and integrate it into the 3D scene. We call this technology video fusion technology. The video fusion display method not only makes the monitoring screen more vivid and intuitive, but also helps security personnel better understand the spatial layout and environmental characteristics of the monitoring area, thereby improving monitoring efficiency and accuracy.
[0004] However, in some special scenarios, such as corridors, key rooms, halls, etc., there are multiple cameras illuminating the same area, and there are large areas of repeated areas on the camera screen. Simultaneous video fusion of multiple cameras will cause confusion in the fused picture.
[0005] Therefore, the present invention proposes a method for displaying different scenes with spatial viewing angle conversion, which can solve the above problems.
[0006] After searching, no prior art documents identical or similar to the present invention were found. Summary of the invention
[0007] The purpose of the present invention is to overcome the shortcomings of the prior art and to propose a method for displaying different fused images as the spatial perspective changes. The method can solve the technical problem that in some special scenes, such as corridors, rooms, halls, etc., there are multiple cameras illuminating the same area, and there are large areas of repeated areas on the camera screen. Simultaneous video fusion of multiple cameras will cause confusion in the fused image.
[0008] The present invention solves the practical problem by adopting the following technical solutions:
[0009] A method for displaying different scenes with spatial viewing angle conversion comprises the following steps:
[0010] Step 1: Establish a 3D building model of the target area and complete the spatial registration between the camera and the 3D building model of the target area;
[0011] Step 2: Based on the spatial registration result of the 3D building model of the target area obtained in step 1, the cosine value of the direction vector angle is calculated, and the camera model corresponding to the data with the largest result value is set to display state, and the others are set to closed state;
[0012] Step 3. In actual use, first build the target model according to step 1, organize the data, then obtain the direction vector of the current perspective in real time, substitute it into the calculation of step 2, and control the playback and stop of the video through the calculated cosine value result, so as to display different scenes as the spatial perspective changes.
[0013] Moreover, the specific steps of step 1 include:
[0014] (1) First, use 3DMax software to build a 3D building model of the target area;
[0015] (2) Then, a camera model is built in the 3D building model of the target area, and a screenshot of the scene shot by the real camera is obtained. Based on the screenshot, the projection position, posture, and shooting range of the camera model are reversely calculated using the perspective principle;
[0016] (3) Finally, according to the actual scene, the camera models shooting the same area are annotated as a group, thereby completing the spatial alignment between the camera and the 3D building model of the target area.
[0017] Moreover, the specific steps of step 2 include:
[0018] (1) Based on step 1, the spatial registration result of the 3D building model of the target area is obtained, the direction vector of the current observation angle is obtained, and then the data is calculated. The calculation formula is as follows:
[0019] Using Vectors Indicates the current viewing direction vector, using Represents the direction vector of the camera model:
[0020]
[0021] Then, the vector vector The angle between them is:
[0022]
[0023] The larger the cosine value, the closer the current viewing angle is to the camera viewing angle.
[0024] In Unity, use the Transform.forward property to get the current viewing direction vector and the direction vectors of all camera models, and substitute them into the above formula to calculate the cosine value.
[0025] (2) The data in a group are saved in a list, and the camera model corresponding to the data with the largest result value is set to display state, and the others are set to closed state.
[0026] Advantages and beneficial effects of the present invention:
[0027] 1. The present invention provides a method for displaying different scenes as the spatial perspective changes. In step 1, a model is established based on the scene in a 1:1 ratio to ensure scene synchronization; at the same time, the position, angle, and field of view of the camera are determined based on the actual monitoring screen image using the perspective principle to ensure the accuracy of video fusion to the greatest extent.
[0028] 2. The present invention uses cosine value to evaluate the current observation angle and the camera shooting angle, which is highly efficient, saves computing resources, and avoids system freezes caused by a large number of complex calculations.
[0029] 3. The present invention can combine as many real cameras as possible with the 3D model, avoiding the problem of logical confusion caused by the superposition of multiple videos in the same scene. At the same time, videos from different angles can be viewed by simply moving the viewing angle. Not only can the surveillance video images be viewed more intuitively on the spatial model, but also full coverage of information can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a process flow chart of the present invention. DETAILED DESCRIPTION
[0031] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings:
[0032] A method for displaying different scenes with spatial perspective conversion, such as Figure 1 As shown, the following steps are included:
[0033] Step 1: Establish a 3D building model of the target area and complete the spatial registration between the camera and the 3D building model of the target area;
[0034] The specific steps of step 1 include:
[0035] (1) First, use 3DMax software to build a 3D building model of the target area;
[0036] (2) Then, a camera model is built in the 3D building model of the target area, and a screenshot of the scene shot by the real camera is obtained. Based on the screenshot, the projection position, posture, and shooting range of the camera model are reversely calculated using the perspective principle;
[0037] (3) Finally, according to the actual scene, the camera models shooting the same area are annotated as a group, thereby completing the spatial alignment between the camera and the 3D building model of the target area.
[0038] The working principle of step 1 is:
[0039] (1) Spatial registration
[0040] First, a 3D building model of the target area (such as a park, city, etc.) is established. The internal structure of the model should be as similar to the actual structure and layout as possible.
[0041] Then, in the 3D scene, a camera model is built, and a screenshot of the scene shot by a real camera is obtained. Based on the screenshot, the projection position, posture, and shooting range of the camera model are reversely calculated using the perspective principle.
[0042] Finally, according to the actual scene, the models photographed in the same area are annotated as a group, and the output file format is as follows:
[0043]
[0044] Data description:
[0045]
[0046] Step 2: Based on step 1, the spatial registration result of the 3D building model of the target area is obtained, the cosine value of the direction vector angle is calculated, and the camera model corresponding to the data with the largest result value is set to display state, and the others are set to closed state.
[0047] The specific steps of step 2 include:
[0048] (1) Based on step 1, the spatial registration result of the 3D building model of the target area is obtained, the direction vector of the current observation angle is obtained, and then the data is calculated. The calculation formula is as follows:
[0049] Using Vectors Indicates the current viewing direction vector, using Represents the direction vector of the camera model:
[0050]
[0051] Then, the vector vector The angle between them is:
[0052]
[0053] The larger the cosine value, the closer the current viewing angle is to the camera viewing angle.
[0054] In Unity, use the Transform.forward property to get the current viewing direction vector and the direction vectors of all camera models, and substitute them into the above formula to calculate the cosine value.
[0055] (2) The data in a group are saved in a list, and the camera model corresponding to the data with the largest result value is set to display state, and the others are set to closed state.
[0056] Step 3. In actual use, first build the target model according to step 1, organize the data, then obtain the direction vector of the current perspective in real time, substitute it into the calculation of step 2, and control the playback and stop of the video through the calculated cosine value result, so as to display different scenes as the spatial perspective changes.
[0057] It should be emphasized that the embodiments of the present invention are illustrative rather than restrictive. Therefore, the present invention includes but is not limited to the embodiments described in the specific implementation modes. Any other implementation modes derived by those skilled in the art based on the technical solutions of the present invention also fall within the scope of protection of the present invention.
Claims
1. A method for displaying different scenes with spatial viewing angle conversion, characterized in that: The following steps are involved: Step 1: Establish a 3D building model of the target area and complete the spatial registration between the camera and the 3D building model of the target area; Step 2: Based on the spatial registration result of the 3D building model of the target area obtained in step 1, the cosine value of the direction vector angle is calculated, and the camera model corresponding to the data with the largest result value is set to display state, and the others are set to closed state; Step 3. In actual use, first build the target model according to step 1, organize the data, then obtain the direction vector of the current perspective in real time, substitute it into the calculation of step 2, and control the playback and stop of the video through the calculated cosine value result, so as to display different scenes as the spatial perspective changes.
2. The method for displaying different scenes with spatial viewing angle conversion according to claim 1, characterized in that: The specific steps of step 1 include: (1) First, use 3DMax software to build a 3D building model of the target area; (2) Then, a camera model is established in the 3D building model of the target area, and a screenshot of the scene shot by the real camera is obtained. Based on the screenshot, the projection position, posture, and shooting range of the camera model are reversely calculated using the perspective principle; (3) Finally, according to the actual scene, the camera models shooting the same area are annotated as a group, thereby completing the spatial alignment between the camera and the 3D building model of the target area.
3. The method for displaying different scenes with spatial viewing angle conversion according to claim 1, characterized in that: The specific steps of step 2 include: (1) Based on step 1, the spatial registration result of the 3D building model of the target area is obtained, the direction vector of the current observation angle is obtained, and then the data is calculated. The calculation formula is as follows: Using Vectors Indicates the current viewing direction vector, using Represents the direction vector of the camera model: Then, the vector vector The angle between them is: The larger the cosine value, the closer the current viewing angle is to the camera viewing angle; In Unity, use the Transform.forward property to obtain the current viewing direction vector and the direction vectors of all camera models, and substitute them into the above formula to calculate the cosine value; (2) The data in a group are saved in a list, and the camera model corresponding to the data with the largest result value is set to display state, and the others are set to closed state.