Single-point multi-view camera three-dimensional fusion splicing method

By employing a single-point multi-camera 3D fusion and stitching method, and utilizing embedded devices and feature matching algorithms, the problem of seamless stitching of multi-source video data was solved, achieving clear 3D video display and improving the user experience of the monitoring system.

CN118644384APending Publication Date: 2024-09-13SHANGHAI YUANMIRROR INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410268414.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-10
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In existing technologies, it is difficult to seamlessly stitch together video data from multiple sources in overlapping areas in real time, resulting in blurring and overlapping phenomena, which affects the user experience. Furthermore, planar stitching is difficult to display three-dimensional graphics and is prone to misjudgment.

Method used

A single-point multi-camera 3D fusion and stitching method is adopted. By setting up three cameras, each 36 degrees apart, and using embedded devices to acquire images, combined with SURF or ORB matching algorithms, camera calibration, gain compensation and mesh estimation, a large scene texture is constructed to achieve seamless image stitching and 3D display.

Benefits of technology

It achieves wide-angle, large-field-of-view video image stitching to form clear and seamless 3D video, enabling users to make accurate judgments and meet the needs of real-time monitoring and historical review.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644384A
    Figure CN118644384A
Patent Text Reader

Abstract

The invention belongs to the technical field of image processing, and particularly relates to a single-point multi-view camera three-dimensional fusion splicing method, which comprises the following specific steps of: setting three cameras, establishing connection between the cameras and embedded equipment, and accessing the embedded equipment, the embedded device obtains the images of the three cameras, the following steps are carried out for fusion, the images are output to the rtspserver according to multiple paths, and finally the images are output to the three-dimensional image; the method comprises the steps of 1, inputting multiple pictures and parameters; 2, searching features; and step 3, calibrating the camera. The distance between every two adjacent cameras is 36 degrees, the embedded device is connected, the embedded device obtains pictures of the three cameras, the following steps are carried out for fusion, and the pictures are output to the rtspserver according to multiple paths and finally output to a three-dimensional picture. Three-dimensional display is achieved, the display effect is good, and a user can accurately judge based on images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a single-point multi-camera three-dimensional fusion splicing method. Background Art

[0002] Currently, the traditional mode of 1, 4, 9, and 16 grids is mainly used for viewing. The shots are scattered, lacking a sense of integrity, and the efficiency of information transmission is low. In the traditional video surveillance system, supervisors need to watch multiple split-shot images. It is difficult to match the scattered split-shot videos with their actual geographical locations. It is impossible to conduct global real-time monitoring of large scenes and quickly trace back historical events. The massive scattered surveillance video resources are neither "too much to watch" nor "hard to understand".

[0003] With the application of video technology, video fusion technology is also widely used in the field of intelligent driving. For example, panoramic reversing images can be spliced ​​together with videos collected by multiple cameras through video stitching technology to form a large-scale video.

[0004] It is difficult to seamlessly stitch together multi-source video data with overlapping areas in real time to eliminate the overlapping areas, which results in blurring and overlapping between videos, affecting usage. In addition, most current video stitching is flat stitching, which makes it difficult to display three-dimensional graphics, affecting viewing experience and prone to misjudgment. Summary of the invention

[0005] The purpose of the present invention is to provide a single-point multi-camera 3D fusion splicing method to solve the problem that it is difficult to seamlessly splice multi-source video data with overlapping areas in the above background technology, eliminate the overlapping areas, and cause blurring and overlapping between videos, which affects the use. In addition, the current video splicing is mostly plane splicing, which is difficult to display three-dimensional stereo graphics, affects the viewing experience, and is prone to misjudgment.

[0006] To achieve the above object, the present invention provides the following technical solution: a single-point multi-eye camera 3D fusion splicing method, the specific steps of the single-point multi-eye camera 3D fusion splicing method are as follows:

[0007] Set up three cameras, establish a connection between the cameras and the embedded device, and connect each camera to the embedded device at a distance of 36 degrees. The embedded device obtains the images of the three cameras, performs the following steps to merge them, and outputs them to the rtspserver in multiple channels, and finally outputs them to the 3D screen;

[0008] Step 1: Enter the multi-screen and parameters:

[0009] The camera is directly connected to the system through v4l, and the overall image is connected through streaming plug-ins such as gstreamer. The resolution setting will be placed in the configuration file, including the maximum resolution image parameters. To achieve the required minimum resolution, the basic image input is set to 1080p resolution;

[0010] Step 2: Find features:

[0011] Use the surf or orb matching algorithm to make the appropriate match, and use the splicing parameters to determine the algorithm;

[0012] Step 3: Calibrate the camera:

[0013] The camera is at a single point, and there is a 36-degree angle between two adjacent cameras. Assuming that the principal point is in the middle of the image captured by the camera, the focal length is estimated by minimizing the position difference of the matched features after distortion;

[0014] Step 4: Calculate the mask:

[0015] The mask is calculated by distorting the mask based on the camera correction parameters. After that, the seams between each image are estimated to obtain the final mask. The seam compensation will do a gradient process to eliminate the difference on both sides of the seam with equal gradients.

[0016] Step 5: Gain compensation:

[0017] Estimate the image gain compensation required so that exposure differences between cameras do not produce artifacts. The calculation uses multiple algorithms to compensate for differences in lighting, angle, and color balance. Some of these parameters will be placed in the configuration file.

[0018] Step 6: Build a large scene map

[0019] Build a large scene map based on camera parameters, pre-estimate the resolution and stitching resolution of multiple cameras, build a maximum scene pre-map, and initialize it to zero, with a minimum resolution of 6000*2000l;

[0020] Step 7: Initialize the mixer:

[0021] Calculate blending weights using masks and estimated positions of images in the final stitch, quickly applying weights at runtime;

[0022] Step 8: Estimate the mesh:

[0023] First, the image is remapped based on the previously constructed warp map. After that, the mesh is estimated using the method described in content-preserving warping, minimizing parallax and ghosting artifacts in the final stitching.

[0024] Step 9: Correct the overall image:

[0025] Warp the input image based on a pre-computed mapping, apply gain compensation, apply mesh wrapping, blend the final stitched image, build a Laplacian pyramid of the images and add them to the final stitch weighted with a pre-computed weight map, and finally rectify the image after doing subtle corrections;

[0026] Step 10: Test the modification:

[0027] Iterate steps 4 to 9 to continuously correct the image;

[0028] Step 11:

[0029] Output images into 3D and fuse digital twin displays in 3D.

[0030] Preferably, the camera is selected to support gmsl serial camera.

[0031] Preferably, the step 2 is not a complete match in order to have an initialization parameter, and the subsequent matches will use the basic parameters after the algorithm for correction and splicing.

[0032] Preferably, in step seven, in order to prevent ghosting, the mixer is performed only at the slight seams, and the mixer will use a weighted average algorithm.

[0033] Preferably, in step eight, since the remapping function uses backward mapping, the overall problem is still solved using projection transformation and texture stretching, so as to eliminate dislocation and ghosting.

[0034] Compared with the prior art, the present invention has the following beneficial effects:

[0035] It forms a wide-angle, large-field-of-view video image, thereby realizing the splicing of multiple surveillance videos into one video, making the spliced ​​video clear and seamless, and playing it in real time, fully meeting the needs of users.

[0036] Each camera is 36 degrees apart and connected to an embedded device. The embedded device obtains the images of the three cameras, performs the following steps to fuse them, and outputs them to the rtspserver in multiple channels, and finally outputs them to a 3D image. The 3D display has a good display effect, and users can make accurate judgments based on the image. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a schematic diagram of the structure of the present invention;

[0038] Figure 2 Shows three different faces in a three-dimensional image. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] In the description of the present invention, it is necessary to understand that the terms "upper", "lower", "front", "back", "left", "right", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0041] Embodiment 1:

[0042] See also Figure 1-2 The present invention provides a technical solution: a single-point multi-camera 3D fusion splicing method, the specific steps of the single-point multi-camera 3D fusion splicing method are as follows:

[0043] Set up three cameras, establish a connection between the cameras and the embedded device, and connect each camera to the embedded device at a distance of 36 degrees. The embedded device obtains the images of the three cameras, performs the following steps to merge them, and outputs them to the rtspserver in multiple channels, and finally outputs them to the 3D screen;

[0044] Step 1: Enter the multi-screen and parameters:

[0045] The camera is directly connected to the system through v4l, and the overall image is connected through streaming plug-ins such as gstreamer. The resolution setting will be placed in the configuration file, including the maximum resolution image parameters. To achieve the required minimum resolution, the basic image input is set to 1080p resolution;

[0046] Step 2: Find features:

[0047] Use the surf or orb matching algorithm to make the appropriate match, and use the splicing parameters to determine the algorithm;

[0048] Step 3: Calibrate the camera:

[0049] The camera is at a single point, and there is a 36-degree angle between two adjacent cameras. Assuming that the principal point is in the middle of the image captured by the camera, the focal length is estimated by minimizing the position difference of the matched features after distortion;

[0050] Step 4: Calculate the mask:

[0051] The mask is calculated by distorting the mask based on the camera correction parameters. After that, the seams between each image are estimated to obtain the final mask. The seam compensation will do a gradient process to eliminate the difference on both sides of the seam with equal gradients.

[0052] Step 5: Gain compensation:

[0053] Estimate the image gain compensation required so that exposure differences between cameras do not produce artifacts. The calculation uses multiple algorithms to compensate for differences in lighting, angle, and color balance. Some of these parameters will be placed in the configuration file.

[0054] Step 6: Build a large scene map

[0055] Build a large scene map based on camera parameters, pre-estimate the resolution and stitching resolution of multiple cameras, build a maximum scene pre-map, and initialize it to zero, with a minimum resolution of 6000*2000l;

[0056] Step 7: Initialize the mixer:

[0057] Calculate blending weights using masks and estimated positions of images in the final stitch, quickly applying weights at runtime;

[0058] Step 8: Estimate the mesh:

[0059] First, the image is remapped based on the previously constructed warp map. After that, the mesh is estimated using the method described in content-preserving warping, minimizing parallax and ghosting artifacts in the final stitching.

[0060] Step 9: Correct the overall image:

[0061] Warp the input image based on a pre-computed mapping, apply gain compensation, apply mesh wrapping, blend the final stitched image, build a Laplacian pyramid of the images and add them to the final stitch weighted with a pre-computed weight map, and finally rectify the image after doing subtle corrections;

[0062] Step 10: Test the modification:

[0063] Iterate steps 4 to 9 to continuously correct the image;

[0064] Step 11:

[0065] Output images into 3D and fuse digital twin displays in 3D.

[0066] Embodiment 2:

[0067] See also Figure 1-2Based on the first embodiment, the present invention provides a technical solution: a single-point multi-camera 3D fusion stitching method, the specific steps of the single-point multi-camera 3D fusion stitching method are as follows:

[0068] Set up three cameras, establish a connection between the cameras and the embedded device, and connect each camera to the embedded device at a distance of 36 degrees. The embedded device obtains the images of the three cameras, performs the following steps to merge them, and outputs them to the rtspserver in multiple channels, and finally outputs them to the 3D screen;

[0069] Step 1: Enter the multi-screen and parameters:

[0070] The camera is directly connected to the system through v4l, and the overall image is connected through streaming plug-ins such as gstreamer. The resolution setting will be placed in the configuration file, including the maximum resolution image parameters. To achieve the required minimum resolution, the basic image input is set to 1080p resolution;

[0071] Step 2: Find features:

[0072] Use the surf or orb matching algorithm to make the appropriate match, and use the splicing parameters to determine the algorithm;

[0073] Step 3: Calibrate the camera:

[0074] The camera is at a single point, and there is a 36-degree angle between two adjacent cameras. Assuming that the principal point is in the middle of the image captured by the camera, the focal length is estimated by minimizing the position difference of the matched features after distortion;

[0075] Step 4: Calculate the mask:

[0076] The mask is calculated by distorting the mask based on the camera correction parameters. After that, the seams between each image are estimated to obtain the final mask. The seam compensation will do a gradient process to eliminate the difference on both sides of the seam with equal gradients.

[0077] Step 5: Gain compensation:

[0078] Estimate the image gain compensation required so that exposure differences between cameras do not produce artifacts. The calculation uses multiple algorithms to compensate for differences in lighting, angle, and color balance. Some of these parameters will be placed in the configuration file.

[0079] Step 6: Build a large scene map

[0080] Build a large scene map based on camera parameters, pre-estimate the resolution and stitching resolution of multiple cameras, build a maximum scene pre-map, and initialize it to zero, with a minimum resolution of 6000*2000l;

[0081] Step 7: Initialize the mixer:

[0082] Calculate blending weights using masks and estimated positions of images in the final stitch, quickly applying weights at runtime;

[0083] Step 8: Estimate the mesh:

[0084] First, the image is remapped based on the previously constructed warp map. After that, the mesh is estimated using the method described in content-preserving warping, minimizing parallax and ghosting artifacts in the final stitching.

[0085] Step 9: Correct the overall image:

[0086] Warp the input image based on a pre-computed mapping, apply gain compensation, apply mesh wrapping, blend the final stitched image, build a Laplacian pyramid of the images and add them to the final stitch weighted with a pre-computed weight map, and finally rectify the image after doing subtle corrections;

[0087] Step 10: Test the modification:

[0088] Iterate steps 4 to 9 to continuously correct the image;

[0089] Step 11:

[0090] Output images into 3D and fuse digital twin displays in 3D.

[0091] The camera is selected to support gmsl serial camera.

[0092] Analysis of the above content: Support gmsl serial camera to meet the requirements of gmsl transmission.

[0093] Embodiment three:

[0094] See also Figure 1-2 Based on the first embodiment, the present invention provides a technical solution: a single-point multi-camera 3D fusion stitching method, the specific steps of the single-point multi-camera 3D fusion stitching method are as follows:

[0095] Set up three cameras, establish a connection between the cameras and the embedded device, and connect each camera to the embedded device at a distance of 36 degrees. The embedded device obtains the images of the three cameras, performs the following steps to merge them, and outputs them to the rtspserver in multiple channels, and finally outputs them to the 3D screen;

[0096] Step 1: Enter the multi-screen and parameters:

[0097] The camera is directly connected to the system through v4l, and the overall image is connected through streaming plug-ins such as gstreamer. The resolution setting will be placed in the configuration file, including the maximum resolution image parameters. To achieve the required minimum resolution, the basic image input is set to 1080p resolution;

[0098] Step 2: Find features:

[0099] Use the surf or orb matching algorithm to perform appropriate matching, and use the splicing parameters to determine the algorithm. In order to have an initialization parameter, it is not a complete match. The subsequent matches will use the basic parameters after the algorithm for correction and splicing;

[0100] Step 3: Calibrate the camera:

[0101] The camera is at a single point, and there is a 36-degree angle between two adjacent cameras. Assuming that the principal point is in the middle of the image captured by the camera, the focal length is estimated by minimizing the position difference of the matched features after distortion;

[0102] Step 4: Calculate the mask:

[0103] The mask is calculated by distorting the mask based on the camera correction parameters. After that, the seams between each image are estimated to obtain the final mask. The seam compensation will do a gradient process to eliminate the difference on both sides of the seam with equal gradients.

[0104] Step 5: Gain compensation:

[0105] Estimate the image gain compensation required so that exposure differences between cameras do not produce artifacts. The calculation uses multiple algorithms to compensate for differences in lighting, angle, and color balance. Some of these parameters will be placed in the configuration file.

[0106] Step 6: Build a large scene map

[0107] Build a large scene map based on camera parameters, pre-estimate the resolution and stitching resolution of multiple cameras, build a maximum scene pre-map, and initialize it to zero, with a minimum resolution of 6000*2000l;

[0108] Step 7: Initialize the mixer:

[0109] Calculate blending weights using masks and estimated positions of images in the final stitch. Apply weights quickly at runtime. To prevent ghosting, blenders are only applied on subtle seams. Blenders use a weighted average algorithm.

[0110] Step 8: Estimate the mesh:

[0111] First, the image is remapped based on the previously constructed distortion map. After that, the mesh is estimated using the method described in content-preserving distortion to minimize parallax and ghosting artifacts in the final stitching. Since the remapping function uses back mapping, the whole is still solved using projection transformation and texture stretching to eliminate misalignment and ghosting.

[0112] Step 9: Correct the overall image:

[0113] Warp the input image based on a pre-computed mapping, apply gain compensation, apply mesh wrapping, blend the final stitched image, build a Laplacian pyramid of the images and add them to the final stitch weighted with a pre-computed weight map, and finally rectify the image after doing subtle corrections;

[0114] Step 10: Test the modification:

[0115] Iterate steps 4 to 9 to continuously correct the image;

[0116] Step 11:

[0117] Output images into 3D and fuse digital twin displays in 3D.

[0118] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention; therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is limited by the attached claims rather than the above description. Therefore, it is intended to include all changes within the meaning and scope of the equivalent elements of the claims in the present invention, and any figure marks in the claims should not be regarded as limiting the claims involved.

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

Claims

1. A single-point multi-camera three-dimensional fusion splicing method, characterized in that: The specific steps of the single-point multi-camera 3D fusion stitching method are as follows: Set up three cameras, establish a connection between the cameras and the embedded device, and connect each camera to the embedded device at a distance of 36 degrees. The embedded device obtains the images of the three cameras, performs the following steps to merge them, and outputs them to the rtspserver in multiple channels, and finally outputs them to the 3D screen; Step 1: Enter the multi-screen and parameters: The camera is directly connected to the system through v4l, and the overall image is connected through streaming plug-ins such as gstreamer. The resolution setting will be placed in the configuration file, including the maximum resolution image parameters. To achieve the required minimum resolution, the basic image input is set to 1080p resolution; Step 2: Find features: Use the surf or orb matching algorithm to make the appropriate match, and use the splicing parameters to determine the algorithm; Step 3: Calibrate the camera: The camera is at a single point, and there is a 36-degree angle between two adjacent cameras. Assuming that the principal point is in the middle of the image captured by the camera, the focal length is estimated by minimizing the position difference of the matched features after distortion; Step 4: Calculate the mask: The mask is calculated by distorting the mask based on the camera correction parameters. After that, the seams between each image are estimated to obtain the final mask. The seam compensation will do a gradient process to eliminate the difference on both sides of the seam with equal gradients. Step 5: Gain compensation: Estimate the image gain compensation required so that exposure differences between cameras do not produce artifacts. The calculation uses multiple algorithms to compensate for differences in lighting, angle, and color balance. Some of these parameters will be placed in the configuration file. Step 6: Build a large scene map Build a large scene map based on camera parameters, pre-estimate the resolution and stitching resolution of multiple cameras, build a maximum scene pre-map, and initialize it to zero, with a minimum resolution of 6000*2000l; Step 7: Initialize the mixer: Calculate blending weights using masks and estimated positions of images in the final stitch, quickly applying weights at runtime; Step 8: Estimate the mesh: First, the image is remapped based on the previously constructed warp map. After that, the mesh is estimated using the method described in content-preserving warping, minimizing parallax and ghosting artifacts in the final stitching. Step 9: Correct the overall image: Warp the input image based on a pre-computed mapping, apply gain compensation, apply mesh wrapping, blend the final stitched image, build a Laplacian pyramid of the images and add them to the final stitch weighted with a pre-computed weight map, and finally rectify the image after doing subtle corrections; Step 10: Test the modification: Iterate steps 4 to 9 to continuously correct the image; Step 11: Output images into 3D and fuse digital twin displays in 3D.

2. A single-point multi-camera three-dimensional fusion splicing method according to claim 1, characterized in that: The camera is selected to support gmsl serial camera.

3. The single-point multi-camera three-dimensional fusion splicing method according to claim 1 is characterized in that: The step 2 is for the purpose of having an initialization parameter, and is not a complete match. Subsequent matches will be modified and spliced ​​using the basic parameters after the algorithm.

4. The method for three-dimensional fusion stitching of a single-point multi-camera according to claim 1, characterized in that: In step seven, in order to prevent ghosting, the mixer is performed only at the slight seams, and the mixer will use a weighted average algorithm.

5. The single-point multi-camera three-dimensional fusion splicing method according to claim 1 is characterized in that: In step eight, since the remapping function uses backward mapping, the overall problem is still solved using projection transformation and texture stretching to eliminate dislocation and ghosting.