Video splicing method combining optimal splicing seam and improved gradual-gradual-out method

By combining the best splicing seam and the video splicing method that improves the gradual fade-out method, the problem of limited field of view and insufficient real-time performance in the surveillance scene is solved, high-quality wide-field panoramic video splicing is achieved, and the real-time performance of the surveillance picture is improved. sex and integrity.

CN118612366AInactive Publication Date: 2024-09-06ZHONGKE XINGTU JINNENG (NANJING) TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410850656.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing video splicing technology has problems with limited field of view, real-time performance, and insufficient integrity in surveillance scenarios, resulting in discontinuous surveillance images, ghosts, and splicing seams, which affects the judgment and processing of central control personnel.

Method used

A video splicing method that combines the best stitching seam and the improved gradual fade-out method is adopted. Feature points are extracted through FLANN and RANSAC algorithms, the homography matrix is ​​calculated, the optimal suture line is determined, and image fusion is performed based on the progressive fade-out algorithm. , reduce the impact of seams.

Benefits of technology

It achieves enhanced real-time reading and recognition of monitoring screen information based on wide-field panoramic video, reduces the obviousness of splicing seams, improves the quality of spliced ​​images and video frame rate, and meets the needs of real-time monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612366A
    Figure CN118612366A
Patent Text Reader

Abstract

The invention discloses a video stitching method combining an optimal stitching seam and an improved progressive-progressive-out method, and the method comprises the steps: obtaining a plurality of videos to be stitched, extracting an image from each video, carrying out the preprocessing of all images, and outputting the images to be stitched; image feature point extraction is carried out on an image to be spliced, and feature point matching is carried out by using an FLANN algorithm; using an RANSAC (Random Sample Consensus) algorithm to remove irrelevant feature points, and reserving an optimal feature point object; calculating a homography matrix by means of the feature point object so as to obtain a to-be-spliced image after perspective transformation; on the basis of the homography matrix, calculating coordinates of an overlapping region through a mathematical method, and performing optimal suture line calculation in the overlapping region; and carrying out an improved gradual-gradual-out algorithm on two sides of the optimal suture line to calculate related pixel points, and completing image splicing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of image processing, and in particular to a video splicing method combining an optimal splicing seam and an improved gradual in and gradual out method. Background Art

[0002] As an important form of transmitting visual information, images and videos enable people to obtain a large amount of information at the first time. They are the most direct and effective way for people to obtain information in daily life. At the same time, with the development of computer technologies such as big data, artificial intelligence, and computer-related hardware, with the help of augmented reality technology on images and videos, useful information can be obtained more effectively and quickly. However, when people use video acquisition equipment, such as surveillance cameras, to collect real-time video and image information, because the acquisition equipment often has a field of view limitation, only part of the information in the scene can be collected, which is far from meeting people's needs for wide-field images or videos, and thus cannot meet the corresponding needs in tracking target trajectories. As a result, real-time video splicing technology in video surveillance has gradually been valued by people. On the one hand, in many fields such as industrial parks and customs bonded areas, the field of view of the monitoring scene is small, and it is impossible to continuously monitor suspicious moving targets in the monitoring scene. For this type of monitoring, it is an important part of the park's security. On the other hand, video stitching requires very strong real-time and integrity. Time delay will cause a time difference between monitoring and actual conditions, affecting the central control personnel's command and handling of emergencies. Integrity refers to the ghost images and stitching seams that appear in the stitched video. Images with poor stitching effects can easily cause the central control personnel to make wrong judgments.

[0003] In intelligent video surveillance, the research on real-time video stitching is of great significance. Nowadays, in most industrial parks and other areas with camera equipment, the cameras are installed in a fixed position, and the distance between the two cameras is close, so the surveillance images under the two cameras have overlapping areas. At the same time, with the development of computer hardware, the computing power of a single device has been greatly improved compared with the past, providing hardware support for multi-video stitching. Video stitching technology is one of the important research directions in the field of computer vision. It is mainly used in video surveillance. It is mainly to solve the shortcomings of limited surveillance images under a single camera and obtain a large surveillance scene through this technology. Video consists of continuous images, so the stitching of videos can be converted into the stitching of a series of images for time series. The image stitching algorithm matches two pictures with a mapping relationship with each other, so that the same pixel points between the two images are matched one by one, and finally a panoramic picture with a wide field of view and no stitching marks is generated. The algorithm process can be divided into three parts: image preprocessing, image registration and image fusion. The research content includes feature point extraction, image stitching model and image fusion model, etc. It is urgent to develop improved algorithms for video stitching with strong real-time performance, small stitching traces and small video stitching parallax.

[0004] Domestic research on video stitching algorithms includes: first using hash fingerprints to extract similar areas, and then using the SURF algorithm to extract feature points (SR-SURF image stitching algorithm based on Jiang Liping); a feature extraction algorithm based on image segmentation to perform image stitching (Jiang Zhi); a threshold adaptive method is proposed to improve the accuracy of key point selection, and the quadtree method is used to improve the uneven distribution of feature points (Cui Jianguo); Jia et al. proposed an image stitching method that selects two seams and performs structural deformation on the image to ensure the alignment effect. On this basis, Li et al. optimized the deformation, seam line selection and fusion scheme, reducing the amount of calculation, so that their improved scheme can be used for video stitching. He constructed an energy function for the ghosting caused by foreground moving objects, used the dynamic programming method to find the best seam line, and proposed a seam update method based on the detection of pixel gradient value changes on the seam line to avoid artifacts caused by moving objects passing through the seam line area. Jiang Liping et al. proposed a SURF feature extraction algorithm combined with hash fingerprints, which improves the efficiency of feature extraction by extracting similar areas; Jiang Zhi et al. proposed a SURF feature extraction algorithm combined with image partitioning, which calculates image similar areas by combining drone POS information and filters out invalid feature points and low response value feature points to improve feature extraction efficiency; Heng Guo et al. reduced the excessive perspective distortion of images in image stitching by partitioning pictures, and reduced the impact of image jitter on the stitching results by improving the camera path between images; Kim et al. introduced VIBE to detect moving objects, integrated the results into the energy function as object terms, and proposed a strategy for updating partial seams. Du et al. and Huang Zhangqin et al. proposed a real-time panoramic video stitching framework, improved the feature extraction algorithm and feature point matching algorithm to improve efficiency, and adopted a GPU parallel stitching algorithm based on CUDA. Ren et al. implemented a real-time panoramic video stitching system based on mapping tables and GPU acceleration methods.

[0005] The above image stitching algorithms have their own characteristics in feature extraction and matching. Each algorithm has its own practical application scenarios. Most algorithms optimize the algorithm in the direction of feature extraction and pixel-level stitching. On the one hand, the overlapping parts of the image need to be calculated based on the coincident pixels, and the original image does not contain relevant position information. On the other hand, it is necessary to improve the stitching speed and stitching accuracy while solving the stitching ghosting. Summary of the invention

[0006] Technical purpose: In view of the defects in the prior art, the present invention discloses a video splicing method combining an optimal splicing seam and an improved gradual in and out method.

[0007] Technical solution: In order to achieve the above technical objectives, the present invention adopts the following technical solution.

[0008] A video splicing method combining an optimal splicing seam and an improved gradual in-out method comprises the following steps:

[0009] Step S1, obtaining several videos to be stitched, extracting images from each video according to time points, and outputting the images to be stitched after preprocessing all the images;

[0010] Step S2, extracting image feature points from adjacent images in the image to be stitched, and matching the feature points using the FLANN algorithm;

[0011] Step S3: Use the RANSAC algorithm to remove irrelevant feature points and retain the optimal feature point objects;

[0012] Step S4, calculating the homography matrix according to the optimal feature point object, and obtaining the image to be spliced ​​after perspective transformation;

[0013] Step S5: for the images to be stitched after perspective transformation, based on the homography matrix, the coordinates of the overlapping area are calculated, and the optimal stitching line is calculated in the overlapping area;

[0014] Step S6, performing an improved gradual in and gradual out algorithm on both sides of the best stitching line to calculate relevant pixel points, and completing the image stitching of the images to be stitched; repeating steps S2-S6 until all images are stitched together, thereby achieving video stitching.

[0015] Preferably, in step S5, the optimal suture line calculation step includes:

[0016] (1) In the overlapping area of ​​the images, starting from the first row, the stitching line with each pixel point in the row as the starting point is calculated, and the energy value of each pixel point is calculated according to the improved energy function;

[0017] (2) Starting from the first row, calculate the minimum sum of the energy values ​​of each pixel and its four adjacent pixels in the next row, and continue to add them up until the last row;

[0018] (3) Starting from each pixel in the first row, a stitching line will be obtained. The stitching line with the smallest accumulated energy value is selected to obtain the best stitching line.

[0019] Preferably, the improved energy function is:

[0020]

[0021] E(x, y) = μ1E d (x,y)+μ2E s (x,y)+E c (x, y)

[0022] Among them, L and R are the left and right boundary values ​​of the overlapping part of the left and right images after the image stitching is completed, that is, the left and right horizontal coordinate boundary values ​​of the overlapping area coordinates, x and y are the horizontal and vertical coordinates of the pixel points in the overlapping area, respectively, E d (x, y) is the image color difference intensity value, E s (x, y) is the image structure difference intensity value, μ1 is E d The weight of (x, y), u2 is E s The weight of (x, y).

[0023] Preferably, in step S6, the stitched image is divided into an optimal stitching line transition zone and an image transition zone, wherein the optimal stitching line transition zone is a zone with a width of 2d formed by translating the optimal stitching line to the left and right by d pixels, and a nonlinear fade-in and fade-out fusion algorithm is used in the zone for image stitching; the image transition zone is the image area between the left and right boundaries of the image and the optimal stitching line transition zone.

[0024] Preferably, the calculation formula of the improved fade-in and fade-out fusion algorithm is:

[0025]

[0026] Where I(x, y) is the pixel value of the calculation result, and the calculation result is the image after the optimal stitching line transition zone is stitched together. L(x, y) is the pixel value of the left image, and R(x, y) is the pixel value of the right image. W1′ is the weight of the left image of the nonlinear fade-in and fade-out fusion algorithm, W2′ is the weight of the right image of the nonlinear fade-in and fade-out fusion algorithm, and P R , P L is the horizontal coordinate of the endpoint of the optimal stitching line after it moves d pixels left and right, and x and y are the horizontal and vertical coordinates of the pixel points in the overlapping area, respectively.

[0027] Preferably, the size of the optimal seam line transition zone is dynamically adjusted: when the pixels on both sides of the optimal seam line are updated, the boundary is updated to take the side with the smallest distance from the optimal seam line to the two side boundaries as the stitching distance Gap, and then adjust the d value to achieve dynamic adjustment of the size of the optimal seam line transition zone.

[0028] Preferably, the calculation formula of the splicing distance Gap is:

[0029] Gap = min(R-, ath, path-L)

[0030] Among them, path is the horizontal coordinate of the best stitching line, L and R are the left and right boundary values ​​of the overlapping part of the left and right images after the image stitching is completed, that is, the left and right horizontal coordinate boundary values ​​of the overlapping area coordinates. For the best stitching line transition area, there are multiple paths. The stitching distance Gap is calculated for each path, and finally the nearest stitching distance Gap is found as the d value, that is, the best stitching line transition area is dynamically adjusted.

[0031] Beneficial effects: The present invention discloses a video stitching algorithm that combines an optimal stitching seam with an improved gradual in and out method. Through the video stitching algorithm, the narrow-field single screen of traditional video monitoring is stitched into a panoramic video with a wide field of view. Specific AR marking can be performed as an extension on the basis of the panoramic video with a wide field of view, thereby enhancing the timely reading and identification of monitoring screen information by management personnel, and solving the problems of not being able to see the monitoring panorama clearly at one time and not being able to see the entire environment completely, accurately, or incomprehensibly. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a flow chart of the method of the present invention;

[0033] Figure 2 is the intermediate energy diagram of the present invention;

[0034] Figure 3 It is a schematic diagram of the fusion area of ​​the present invention. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0036] Example:

[0037] As attached Figure 1 As shown, a video splicing method combining an optimal splicing seam and an improved gradual in and gradual out method in this embodiment includes the following steps:

[0038] Step S1, obtaining several videos to be stitched, extracting images from each video according to time points, and outputting the images to be stitched after preprocessing all the images;

[0039] In this embodiment, all videos are subjected to frame extraction according to a preset time interval to obtain a plurality of frame images; all images are pre-processed and then output as images to be spliced, including: performing operations such as denoising and image enhancement on all frame images, and then using images at the same time point as images to be spliced; the method described in the present invention can be used for real-time video stream processing and output, and can also be used for existing historical videos after processing and output.

[0040] Step S2, extracting image feature points from adjacent images in the image to be stitched, and matching the feature points using the FLANN algorithm;

[0041] Step S3: Use the RANSAC algorithm to remove irrelevant feature points and retain the optimal feature point objects;

[0042] Step S4: Calculate the homography matrix according to the optimal feature point object, and thereby obtain the image to be spliced ​​after perspective transformation. In the present invention, the calculation of the homography matrix is ​​a prior art content and will not be described in detail here.

[0043] Step S5: for the images to be stitched after perspective transformation, based on the homography matrix, the coordinates of the overlapping area are calculated, and the optimal stitching line is calculated in the overlapping area.

[0044]

[0045] Among them, a and b are the coordinates of the current point, and H is the calculated homography matrix. Multiply them to get the new coordinate point after the current point is affine transformed. Then, the new coordinate point is converted from non-homogeneous coordinates to homogeneous coordinates to get the transformed overlapping area coordinates.

[0046] The optimal seam calculation steps include:

[0047] (1) In the overlapping area of ​​the images, starting from the first row, the stitching line with each pixel point in the row as the starting point is calculated, and the energy value of each pixel point is calculated according to the improved energy function;

[0048] (2) Starting from the first row, calculate the minimum sum of the energy values ​​of each pixel and its three adjacent pixels in the next row, and continue to add them up until the last row; the three adjacent pixels refer to the three pixels directly below, to the left, and to the right of the pixel;

[0049] (3) Starting from each pixel in the first row, a stitching line is obtained. The stitching line with the smallest accumulated energy value is selected to obtain the best stitching line;

[0050] The optimal stitching line algorithm is an effective way to solve the problem of ghosting in the stitching results. If there is a stitching line with the smallest color difference intensity and gradient difference in the overlapping area of ​​the two images, then this stitching line is called the optimal stitching line, because the stitching effect produced by stitching the images along this stitching line is minimal. In order to make the stitching line as close to the image stitching area as possible, because in this area, the contents of the two images to be stitched often have smaller differences. At the same time, in order to make the stitching line transition area selected in the subsequent fade-in and fade-out fusion algorithm not close to the image boundary, as shown in the attached figure, Figure 2 As shown, the present invention increases the intermediate energy function E c Construct an improved energy function:

[0051]

[0052] E(x, y) = μ1E d (x,y)+μ2E s (x,y)+E c (x, y)

[0053] E d (x, y) = I LS (x, y)-I RS (x, y)

[0054]

[0055] Among them, L and R are the left and right boundary values ​​of the overlapping part of the left and right images after the image stitching is completed, that is, the left and right horizontal coordinate boundary values ​​of the overlapping area coordinates, x and y are the horizontal and vertical coordinates of the pixel points in the overlapping area, respectively, E d (x, y) is the image color difference intensity value, E s (x, y) is the image structure difference intensity value, μ1 is E d The weight of (x, y), μ2 is E s The weight of (x, y), I LS (x, y) is the image color difference intensity value of the left image, I RS (x, y) is the image color difference intensity value in the right figure, is the horizontal gradient difference, is the gradient difference in the vertical direction, I1(x, y) is the gradient value on the left image (x, y), and I2(x, y) is the gradient value on the right image (x, y). S x , S y is the Sobel operator in the horizontal and vertical coordinate directions of the image, and the calculation formula is:

[0056]

[0057] The present invention adds an intermediate term in the improved energy function of the optimal seam line to reduce the movement of the seam, thereby reducing the perspective change in the seam.

[0058] Step S6, performing an improved gradual in and gradual out algorithm on both sides of the best stitching line to calculate relevant pixel points, and completing the image stitching of the images to be stitched; repeating steps S2-S6 until all images are stitched together, thereby achieving video stitching.

[0059] The stitching process in the present invention is to stitch two images together and then use the stitched image to stitch the new image together, that is, each stitching process is only for two images.

[0060] The existing fade-in and fade-out fusion algorithm belongs to a linear fusion method, which cannot achieve smooth transition of images in the overlapping area, and easily causes ghosting and obvious stitching seams at the stitching line. Therefore, according to the linear weight coefficient of the fade-in and fade-out fusion algorithm, an improved fade-in and fade-out fusion algorithm with nonlinear weight change characteristics is proposed for image fusion. The basic idea is: after the two images are spliced ​​along the best stitching line obtained by solving, the improved fade-in and fade-out fusion algorithm is used to calculate the corresponding pixel values ​​of the overlapping area, thereby completing the splicing and fusion of the images.

[0061] As attached Figure 3 As shown, the stitched image is divided into an optimal stitching line transition area and an image transition area, wherein the optimal stitching line transition area is formed by translating the optimal stitching line to the left and right by d pixels, forming an area with a width of 2d, and a nonlinear fade-in and fade-out fusion algorithm is used in the area for image stitching; the image transition area is the image area between the left and right boundaries of the image and the optimal stitching line transition area. In some embodiments of the present invention, the value of d is selected according to actual conditions. The image transition area directly splices the left image and the right image without processing.

[0062] The weight calculation formula of the nonlinear fade-in and fade-out fusion algorithm in the optimal seam line transition zone is:

[0063]

[0064] W2=1-W1

[0065]

[0066] Wherein, W1′ is the weight of the left image of the nonlinear fade-in and fade-out fusion algorithm in the present invention, W2′ is the weight of the right image of the nonlinear fade-in and fade-out fusion algorithm in the present invention, and P R , P L The horizontal coordinate of the endpoint of the optimal stitching line after it moves d pixels left and right;

[0067] In the image fusion algorithm, the slower the weight changes with the pixel position, the better the fusion effect is and the more natural the image transition is.

[0068]

[0069] The existing fade-in and fade-out fusion algorithm belongs to a linear fusion method, W1 is the weight of the left image of the linear fade-in and fade-out fusion, and W2 is the weight of the right image of the linear fade-in and fade-out fusion. It can be seen from the above two formulas that the weight of the nonlinear fade-in and fade-out fusion algorithm of the present invention changes more slowly with the pixel position than the existing fade-in and fade-out fusion algorithm, which belongs to a linear fusion method. Therefore, the image transition using the nonlinear fade-in and fade-out fusion algorithm of the present invention is more natural.

[0070] The above two formulas show that when the pixel is close to the seam, the instantaneous change rate of the traditional method is greater than that of the improved method. The slower the weight, the better the fusion effect, which verifies that the improved method is superior in fusion effect.

[0071] In summary, the improved fade-in and fade-out fusion algorithm of the present invention is shown in the following formula:

[0072]

[0073] Among them, I(x, y) is the pixel value of the calculation result, the calculation result is the image after the best stitching line transition zone is stitched, L(x, y) is the pixel value of the left image, and R(x, y) is the pixel value of the right image;

[0074] At the same time, the present invention also dynamically adjusts the size of the optimal stitching line transition zone; when the optimal stitching line is translated to the left and right by d pixels, an area with a width of 2d is formed as the optimal stitching line transition zone. When the pixels on both sides of the optimal stitching line are updated, the updated boundary is the side with the smallest distance from the optimal stitching line to the two sides of the boundary as the splicing distance Gap, that is:

[0075] Gap = min(R-, ath, path-L)

[0076] Among them, path is the horizontal coordinate of the optimal suture line; for the optimal suture line transition zone, there are multiple paths, and the stitching distance Gap is calculated for each path, and finally the nearest stitching distance Gap is found as the d value, that is, the optimal suture line transition zone is dynamically adjusted.

[0077] The present invention adopts a new weight value through an improved gradual-in-fade-out algorithm, so that the pixel transition on both sides of the optimal stitching line is smoother, and the quality of the spliced ​​image is higher.

[0078] In order to achieve the goal of real-time performance, the video stitching algorithm proposed in the present invention calculates the overlapping area of ​​the image in the image preprocessing stage, so that the feature point detection algorithm only performs feature point detection on the overlapping area, thereby reducing the time consumed by redundant feature point detection; in terms of image fusion, on the basis of the traditional optimal stitching seam energy function, the influence of time and the central area on the stitching seam is reconsidered, and a new energy function is constructed, so that when the moving object passes through the stitching seam, the artifacts can be minimized as much as possible. At the same time, combined with the improved gradual in and out algorithm, pixel fusion is performed on the pixels on both sides of the stitching seam to avoid the appearance of obvious stitching seams.

[0079] The present invention also combines GPU and openMP technologies to execute the algorithm in the present invention in multithreading, thereby improving the video frame rate and meeting the need for real-time video processing. Specifically, when processing overlapping parts, the image operation is placed in the GPU to perform corresponding matrix calculations to improve the operation speed. At the same time, in the video image reading and subsequent splicing, openmp is used for multithreaded calculations to improve the operation speed;

[0080] During the stitching process, only the overlapping parts are processed to reduce the calculation of the unnecessary parts of the original image. The stitching speed is improved by using a GPU-based and multi-threaded processing method, which increases the stitching speed from 10fps for single-image stitching to 200fps. The accuracy issue is solved based on the improved stitching seam and fade-in and fade-out algorithm.

[0081] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A video stitching method combining the best stitching seam and the improved gradual in and out method, It is characterized in that The following steps are involved: Step S1, obtaining several videos to be stitched, extracting images from each video according to time points, and outputting the images to be stitched after preprocessing all the images; Step S2, extracting image feature points from adjacent images in the image to be stitched, and matching the feature points using the FLANN algorithm; Step S3: Use the RANSAC algorithm to remove irrelevant feature points and retain the optimal feature point objects; Step S4, calculating the homography matrix according to the optimal feature point object, and obtaining the image to be spliced ​​after perspective transformation; Step S5: for the images to be stitched after perspective transformation, based on the homography matrix, the coordinates of the overlapping area are calculated, and the optimal stitching line is calculated in the overlapping area; Step S6, performing an improved gradual in and gradual out algorithm on both sides of the best stitching line to calculate relevant pixel points, and completing the image stitching of the images to be stitched; repeating steps S2-S6 until all images are stitched together, thereby achieving video stitching.

2. A video splicing method combining an optimal splicing seam and an improved gradual in and out method according to claim 1, Features: In step S5, the optimal suture line calculation step includes: (1) In the overlapping area of ​​the images, starting from the first row, the stitching line with each pixel point in the row as the starting point is calculated, and the energy value of each pixel point is calculated according to the improved energy function; (2) Starting from the first row, calculate the minimum sum of the energy values ​​of each pixel and its four adjacent pixels in the next row, and continue to add them up until the last row; (3) Starting from each pixel in the first row, a stitching line will be obtained. The stitching line with the smallest accumulated energy value is selected to obtain the best stitching line.

3. A video splicing method combining an optimal splicing seam and an improved gradual in and out method according to claim 2, Features: The improved energy function is: E(x,y)=μ 1 AND d (x, y)+μ 2 AND s (x, y)+E c (x, y) Among them, L and R are the left and right boundary values ​​of the overlapping part of the left and right images after the image stitching is completed, that is, the left and right horizontal coordinate boundary values ​​of the overlapping area coordinates, x and y are the horizontal and vertical coordinates of the pixel points in the overlapping area, respectively, E d (x, y) is the image color difference intensity value, E s (x, y) is the image structure difference intensity value, μ 1 For E d The weight of (x, y), μ 2 For E s The weight of (x, y).

4. A video splicing method combining an optimal splicing seam and an improved gradual in-out method according to claim 1, Features: In step S6, the stitched image is divided into an optimal stitching line transition zone and an image transition zone, wherein the optimal stitching line transition zone is formed by translating the optimal stitching line to the left and right by d pixels to form an area with a width of 2d, and a nonlinear fade-in and fade-out fusion algorithm is used in the area for image stitching; the image transition zone is the image area between the left and right boundaries of the image to the optimal stitching line transition zone.

5. A video splicing method combining an optimal splicing seam and an improved gradual in and out method according to claim 4, Features: The calculation formula of the improved fade-in and fade-out fusion algorithm is: Where I(x, y) is the pixel value of the calculation result, the calculation result is the image after the optimal stitching line transition zone is stitched, L(x, y) is the pixel value of the left image, and R(x, y) is the pixel value of the right image; W 1 ′ is the weight of the left image of the nonlinear gradual in-and-out fusion algorithm, W 2 ′ is the weight of the right image of the nonlinear fade-in and fade-out fusion algorithm, P R , P L is the horizontal coordinate of the endpoint of the optimal stitching line after it moves d pixels left and right, and x and y are the horizontal and vertical coordinates of the pixel points in the overlapping area, respectively.

6. A video splicing method combining an optimal splicing seam and an improved gradual in and out method according to claim 4, Features: Dynamically adjust the size of the optimal seam line transition zone: When the pixels on both sides of the optimal seam line are updated, the boundary is updated to take the side with the smallest distance from the optimal seam line to the two boundaries as the stitching distance Gap, and then adjust the d value to achieve dynamic adjustment of the size of the optimal seam line transition zone.

7. A video splicing method combining an optimal splicing seam and an improved gradual in-out method according to claim 6, Features: The calculation formula of the stitching distance Gap is: Gap = min(R-, ath, path-L) Among them, path is the horizontal coordinate of the best stitching line, L and R are the left and right boundary values ​​of the overlapping part of the left and right images after the image stitching is completed, that is, the left and right horizontal coordinate boundary values ​​of the overlapping area coordinates. For the best stitching line transition area, there are multiple paths. The stitching distance Gap is calculated for each path, and finally the nearest stitching distance Gap is found as the d value, that is, the best stitching line transition area is dynamically adjusted.

Citation Information

Patent Citations

  • ORB algorithm based multipath rapid video splicing algorithm with image registering and image fusion in parallel

    CN106657816A

  • Image splicing method based on optimal suture line self-selection area gradual-in gradual-out algorithm

    CN112365518A

  • Video and three-dimensional scene fusion method and device, electronic equipment and storage medium

    CN112489225A

  • Large-parallax rock core image splicing method

    CN112508781A

  • Panoramic image splicing method based on optimal suture line

    CN112991176A