Space panoramic video stitching playing method based on immersion
By adopting the immersive space panoramic video splicing and playback method in multi-screen fusion CAVE technology, and using multi-camera video sampling and UV coordinate expansion, the problem of resolution reduction in traditional technology is solved, and the highest resolution of each screen is achieved. Higher viewing immersion.
Patent Information
- Application Number
- CN202410798086.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-18
AI Technical Summary
In the traditional multi-screen fusion CAVE technology, the total resolution is too high during the splicing process, resulting in a reduction in the resolution of each small screen. It is unable to use the highest resolution of each screen, and there is a lack of effective solutions.
Adopt an immersive space panoramic video splicing and playback method, including pre-specified screen sequence cameras, dynamic video resampling, panoramic video resampling, planar video resampling and point-to-point video design and rendering, and expand through multi-camera video sampling and UV coordinates , adapt to the screen shape and assign the correct camera to achieve point-to-point video playback.
It avoids the reduction of the overall resolution and can use the highest resolution of each screen to provide a higher viewing immersion and visual experience.
Smart Images

Figure CN118803170A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of multi-screen fusion CAVE technology, and in particular to a method for splicing and playing panoramic videos based on an immersive space. Background Art
[0002] The multi-screen fusion CAVE can significantly enhance the immersiveness of movie-watching. This technology uses multiple LED screens to fuse images together to create a larger and more continuous visual space, thus providing an immersive viewing experience.
[0003] At present, the traditional method is to form a cube structure or a similar layout space by splicing multiple screens together. In this space, multiple screens are spliced into one screen through splicing software. During the splicing process, the resolution of each small screen may be reduced due to the high total resolution, resulting in the inability to use the highest resolution of each screen. There are certain limitations.
[0004] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention
[0005] In view of the problems in the related art, the present invention proposes a method for stitching and playing panoramic videos based on immersive space to overcome the above-mentioned technical problems existing in the existing related art.
[0006] The technical solution of the present invention is achieved in this way:
[0007] A method for stitching and playing panoramic videos in an immersive space, comprising the following steps:
[0008] Pre-assign screen sequence cameras to assign different faces of the CAVE to different virtual cameras to ensure the correctness of the screen output;
[0009] Dynamic video resampling is used to resample the video plane in multiple different modes according to the shape of the CAVE screen, adapt the shape of the screen and assign it to the correct camera;
[0010] Perform panoramic video resampling to resample the panoramic video according to the direction of the line vector between the position on the CAVE and the best observation point, so as to achieve panoramic video correction;
[0011] Performing planar video resampling is used to resample the planar video according to the direction of the line vector connecting the position on the CAVE and the best observation point outside the screen to achieve planar video correction;
[0012] Perform point-to-point video design and rendering to design different mosaic video formats and corresponding video renderers according to the different installation conditions of different CAVEs, realize point-to-point correction display on the CAVE screen and complete the rendering process of CAVE video resources.
[0013] Furthermore, the step of adapting the shape of the screen and assigning it to the correct camera includes the following steps:
[0014] Read the streaming resolution and actual resolution of the screen, as well as the actual position and orientation of the screen, and set the camera's aspect ratio, working range, and coordinate transformation position.
[0015] Furthermore, the panoramic video resampling step includes the following steps:
[0016] The coordinates of the best observation point are calibrated as C = (x c ,y c ,z c ), where x c ,y c ,z c are the coordinates of the vertices in three-dimensional space, and the coordinates of a single point on the screen are O1=(x1, y1, z1). is the observation vector, then the observation vector can be expressed as:
[0017]
[0018] According to the observation vector, the inverse trigonometric function is used to obtain the top angle γ of the observation vector in three-dimensional space, which is expressed as:
[0019]
[0020] Get the left and right angles α of the observation vector, expressed as:
[0021]
[0022] Get the sampling vector uv, expressed as:
[0023] uv=f uv (α,γ);
[0024] Among them, the sampling function f uv The sampling method specified for the engine;
[0025] By sampling the panorama PanoTexture using the sampling method TEX2D provided by the engine, the color of a single point on the screen is obtained, which is expressed as:
[0026] color=TEX2D(PanoTexture,uv).
[0027] Furthermore, the step of performing planar video resampling comprises the following steps:
[0028] The coordinates of the best observation point are calibrated as C = (x c ,y c ,z c ), where x c ,y c ,z c are the coordinates of the vertices in three-dimensional space, and the coordinates of a single point on the screen are O1=(x1, y1, z1). The spatial straight line between the two points is obtained, which is expressed as:
[0029]
[0030] Define a video playback plane outside the CAVE. The constant C is the position of the plane in the specific environment. The plane is expressed as:
[0031] z=C;
[0032] The intersection point P of the space line and the space plane is obtained as:
[0033]
[0034] Determine a point in space (x ld ,y ld ), which is the lower left corner of the video playback plane, and then calibrate another point in space (x ru ,y ru ), which is the upper right corner of the video playback plane, and the uv coordinate is expressed as:
[0035]
[0036] Among them, the sampling function f uv The sampling method specified for the engine;
[0037] The sampling method TEX2D provided by the engine samples the plane map and obtains the color of a single point on the screen as:
[0038] color=TEX2D(Texture,uv).
[0039] Furthermore, the step of performing the video design and rendering in a point-to-point format includes the following steps:
[0040] The entire CAVE screen is turned to the correct projection shooting direction in advance, and the point-to-point format CAVE video is rendered with this camera data, which includes: calibrating the camera position relative to the screen as the best observation point position and calibrating the camera forward direction perpendicular to the plane where the rendered screen is located;
[0041] The observation angle of the camera is calibrated as Fov, the aspect ratio of the camera is Aspect, the near clipping plane of the camera is 0, and the far clipping plane is infinite, then the projection transformation matrix M of the camera is p for:
[0042]
[0043] The coordinates P of the point P0 on the plane rendered by the camera on the photography plane are obtained as:
[0044]
[0045] According to the range of the screen, determine the effective area of the screen in the rendering result, and calibrate the lower left xy coordinate of the screen as (x ld ,y ld ), the upper right xy coordinate of the screen is (x ru ,y ru ), find the position of the screen range in the projection plane coordinates, which is used as the basis for image cropping. The cropping formula f clip , expressed as:
[0046]
[0047] To obtain the final rendering result of a single screen, install a matching rendering camera for each screen, and then obtain the correct point-to-point image of each screen surface based on the rendering cutout. Each result image is stitched together according to the video stitching method defined in the CAVE video format to complete the final rendering.
[0048] Beneficial effects of the present invention:
[0049] The present invention realizes point-to-point video playback by sampling multi-camera videos corresponding to multi-screen sequential video outputs and expanding UV coordinates, thereby solving the problem of stitching each screen into a whole screen in the traditional way, avoiding the reduction of the overall resolution and being able to bring into play the highest resolution of each screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 It is a flowchart of a method for stitching and playing immersive spatial panoramic videos according to an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the accompanying 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 belong to the scope of protection of the present invention.
[0053] According to an embodiment of the present invention, a method for stitching and playing panoramic videos based on an immersive space is provided.
[0054] like Figure 1 As shown, according to an embodiment of the present invention, the method for stitching and playing immersive spatial panoramic videos includes the following steps:
[0055] Step S1, pre-screen sequence camera assignment is performed to assign different surfaces of the CAVE to different virtual cameras to ensure the correctness of the screen output.
[0056] Step S2, dynamic video resampling is performed to resample the video plane in a variety of different modes according to the shape of the CAVE screen, adapt the shape of the screen and assign it to the correct camera;
[0057] Step S201, wherein the step of adapting the shape of the screen and assigning it to the correct camera comprises the following steps:
[0058] Read the streaming resolution and actual resolution of the screen, as well as the actual position and orientation of the screen, and set the camera's aspect ratio, working range, and coordinate transformation position.
[0059] Step S3, performing panoramic video resampling, is used to resample the panoramic video according to the direction of the line vector connecting the position on the CAVE and the best observation point, so as to achieve panoramic video correction, including the following steps:
[0060] Step S301, calibrate the best observation point position coordinates as C = (x c ,y c ,z c ), where x c ,y c ,z c are the coordinates of the vertices in three-dimensional space, and the coordinates of a single point on the screen are O1=(x1, y1, z1). is the observation vector, then the observation vector can be expressed as:
[0061]
[0062] Step S302, according to the observation vector, use the inverse trigonometric function to obtain the top angle γ of the observation vector in the three-dimensional space, expressed as:
[0063]
[0064] Step S303, obtain the left and right angles α of the observation vector, expressed as:
[0065]
[0066] Step S304, obtaining a sampling vector uv, expressed as:
[0067] uv=f uv (α,γ);
[0068] Among them, the sampling function f uv The sampling method specified for the engine includes functions such as cropping, translation, and reverse, as well as sampling settings such as cutting off and looping.
[0069] Step S305, sampling the panorama PanoTexture using the sampling method TEX2D provided by the engine to obtain the color of a single point on the screen, expressed as:
[0070] color=TEX2D(PanoTexture,uv).
[0071] Step S4, performing planar video resampling, is used to resample the planar video according to the direction of the line vector connecting the position on the CAVE and the best observation point outside the screen, so as to achieve the correction of the planar video, including the following steps:
[0072] Step S401, calibrate the best observation point position coordinates as C = (x c ,y c ,z c ), where x c ,y c ,z c are the coordinates of the vertices in three-dimensional space, and the coordinates of a single point on the screen are O1=(x1, y1, z1). The spatial straight line between the two points is obtained, which is expressed as:
[0073]
[0074] Step S402, define a video playback plane outside the CAVE, the plane is a quadrilateral of 16:9 or other ratios that conform to the video, outside the screen is a vertical plane parallel to the front screen, outside the CAVE screen, and does not exceed the coordinate position of the observation point. The constant C is the position of the plane in the specific environment. Such a plane is defined as:
[0075] z=C;
[0076] Step S403, combining the above two equations to obtain the intersection point P of the space line and the space plane:
[0077]
[0078] Step S404, calibrate a point (x ld ,y ld ), which is the lower left corner of the video playback plane, and then calibrate another point in space (x ru ,y ru ), which is the upper right corner of the video playback plane, and the uv coordinate is expressed as:
[0079]
[0080] Among them, the sampling function f uv The sampling method specified for the engine includes functions such as cropping, translation, and reverse, as well as sampling settings such as cutting off and looping.
[0081] Step S405, sampling on the plane map by using the sampling method TEX2D provided by the engine, and obtaining the color of a single point on the screen as:
[0082] color=TEX2D(Texture,uv).
[0083] Step S5, performing point-to-point format video design and rendering, which is used to design different mosaic video formats and corresponding video renderers according to different installation conditions of different CAVEs, realize point-to-point correction display on the CAVE screen and complete the rendering process of CAVE video resources.
[0084] Step S501, correctly place the camera in advance, and turn the entire CAVE screen to the correct projection shooting direction, and use the camera data to render the point-to-point format CAVE video, including the following steps:
[0085] Calibrate the camera position relative to the screen as the best observation point;
[0086] Calibrate the camera's forward direction perpendicular to the plane of the rendered screen;
[0087] Step S502, calibrate the observation angle of the camera as Fov, the aspect ratio of the camera as Aspect, the near clipping plane of the camera as 0, and the far clipping plane as infinity, then the projection transformation matrix M of the camera is p for:
[0088]
[0089] Step S503, obtaining the coordinates P of the point P0 on the plane rendered by the camera on the photography plane:
[0090]
[0091] Step S504: determine the effective area of the screen in the rendering result according to the range of the screen, and calibrate the lower left xy coordinate of the screen as (x ld ,y ld ), the upper right xy coordinate of the screen is (x ru ,y ru ), find the position of the screen range in the projection plane coordinates, which is used as the basis for image cropping. The cropping formula f clip , expressed as:
[0092]
[0093] Step S505, substituting the camera rendering result into the above cropping formula, the final rendering result of a single screen can be obtained;
[0094] Step S506, by installing a rendering camera that complies with the above rules for each screen, and then according to the rendering and cutting rules, a correct point-to-point image of each screen surface can be obtained at the same time;
[0095] Step S507, stitching each result frame according to the video stitching method defined in the CAVE video format to complete the final rendering.
[0096] To sum up, with the help of the above-mentioned technical solution of the present invention, point-to-point video playback is achieved by corresponding multi-screen sequential video output through multi-camera video sampling and by expanding UV coordinates, which solves the problem of stitching each screen into a whole screen in the traditional way, avoids the reduction of the overall resolution, and can bring into play the highest resolution of each screen.
[0097] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. After considering the disclosure of the specification and the examples, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and the examples are only regarded as exemplary, and the true scope and spirit of the present disclosure are indicated by the claims.
[0098] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for splicing and playing panoramic videos based on immersive space, characterized in that: The following steps are involved: Pre-assign screen sequence cameras to assign different faces of the CAVE to different virtual cameras to ensure the correctness of the screen output; Dynamic video resampling is used to resample the video plane in multiple different modes according to the shape of the CAVE screen, adapt the shape of the screen and assign it to the correct camera; Perform panoramic video resampling to resample the panoramic video according to the direction of the line vector between the position on the CAVE and the best observation point, so as to achieve panoramic video correction; Performing planar video resampling is used to resample the planar video according to the direction of the line vector connecting the position on the CAVE and the best observation point outside the screen to achieve planar video correction; Perform point-to-point video design and rendering to design different mosaic video formats and corresponding video renderers according to the different installation conditions of different CAVEs, realize point-to-point correction display on the CAVE screen and complete the rendering process of CAVE video resources.
2. The method for stitching and playing panoramic videos based on immersive space according to claim 1, characterized in that: The steps of adapting the shape of the screen and assigning it to the correct camera include the following steps: Read the streaming resolution and actual resolution of the screen, as well as the actual position and orientation of the screen, and set the camera's aspect ratio, working range, and coordinate transformation position.
3. The method for stitching and playing panoramic videos based on immersive space according to claim 1, characterized in that: The panoramic video resampling is performed as described in the step, including the following steps: The coordinates of the best observation point are calibrated as C = (x c ,y c ,z c ), where x c ,y c ,z c are the coordinates of the vertices in three-dimensional space, and the coordinates of a single point on the screen are O1=(x1, y1, z1). is the observation vector, then the observation vector can be expressed as: According to the observation vector, the inverse trigonometric function is used to obtain the top angle γ of the observation vector in three-dimensional space, which is expressed as: Get the left and right angles α of the observation vector, expressed as: Get the sampling vector uv, expressed as: uv=f uv (α,γ); Among them, the sampling function f uv The sampling method specified for the engine; By sampling the panorama PanoTexture using the sampling method TEX2D provided by the engine, the color of a single point on the screen is obtained, which is expressed as: color=TEX2D(PanoTexture,uv).
4. The method for splicing and playing panoramic videos based on immersive space according to claim 1, characterized in that: The planar video resampling is performed according to the step, comprising the following steps: The coordinates of the best observation point are calibrated as C = (x c ,y c ,z c ), where x c ,y c ,z c are the coordinates of the vertices in three-dimensional space, and the coordinates of a single point on the screen are O1=(x1, y1, z1). The spatial straight line between the two points is obtained, which is expressed as: Define a video playback plane outside the CAVE. The constant C is the position of the plane in the specific environment. The plane is expressed as: z=C; The intersection point P of the space line and the space plane is obtained as: Determine a point in space (x ld ,y ld ), which is the lower left corner of the video playback plane, and then calibrate another point in space (x ru ,y ru ), which is the upper right corner of the video playback plane, and the uv coordinate is expressed as: Among them, the sampling function f uv The sampling method specified for the engine; The sampling method TEX2D provided by the engine samples the plane map and obtains the color of a single point on the screen as: color=TEX2D(Texture,uv).
5. The method for stitching and playing panoramic videos based on immersive space according to claim 1, characterized in that: The step of performing the video design and rendering in a point-to-point format includes the following steps: The entire CAVE screen is turned to the correct projection shooting direction in advance, and the point-to-point format CAVE video is rendered with this camera data, which includes: calibrating the camera position relative to the screen as the best observation point position and calibrating the camera forward direction perpendicular to the plane where the rendered screen is located; The observation angle of the camera is calibrated as Fov, the aspect ratio of the camera is Aspect, the near clipping plane of the camera is 0, and the far clipping plane is infinite, then the projection transformation matrix M of the camera is p for: The coordinates P of the point P0 on the plane rendered by the camera on the photography plane are obtained as: According to the range of the screen, determine the effective area of the screen in the rendering result, and calibrate the lower left xy coordinate of the screen as (x ld ,y ld ), the upper right xy coordinate of the screen is (x ru ,y ru ), find the position of the screen range in the projection plane coordinates, which is used as the basis for image cropping. The cropping formula f clip , expressed as: To obtain the final rendering result of a single screen, install a matching rendering camera for each screen, and then obtain the correct point-to-point image of each screen surface based on the rendering cutout. Each result image is stitched together according to the video stitching method defined in the CAVE video format to complete the final rendering.
