<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">OJAppS</journal-id><journal-title-group><journal-title>Open Journal of Applied Sciences</journal-title></journal-title-group><issn pub-type="epub">2165-3917</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ojapps.2024.144067</article-id><article-id pub-id-type="publisher-id">OJAppS-132630</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Biomedical&amp;Life Sciences</subject><subject> Chemistry&amp;Materials Science</subject><subject> Computer Science&amp;Communications</subject><subject> Engineering</subject><subject> Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Real-Time Mosaic Method of Aerial Video Based on Two-Stage Key Frame Selection Method
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Minwen</surname><given-names>Yuan</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yonghong</surname><given-names>Long</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Xin</surname><given-names>Li</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>College of Railway Transportation, Hunan University of Technology, Zhuzhou, China</addr-line></aff><pub-date pub-type="epub"><day>03</day><month>04</month><year>2024</year></pub-date><volume>14</volume><issue>04</issue><fpage>1008</fpage><lpage>1021</lpage><history><date date-type="received"><day>10,</day>	<month>March</month>	<year>2024</year></date><date date-type="rev-recd"><day>21,</day>	<month>April</month>	<year>2024</year>	</date><date date-type="accepted"><day>24,</day>	<month>April</month>	<year>2024</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  A two-stage automatic key frame selection method is proposed to enhance stitching speed and quality for UAV aerial videos. In the first stage, to reduce redundancy, the overlapping rate of the UAV aerial video sequence within the sampling period is calculated. Lagrange interpolation is used to fit the overlapping rate curve of the sequence. An empirical threshold for the overlapping rate is then applied to filter candidate key frames from the sequence. In the second stage, the principle of minimizing remapping spots is used to dynamically adjust and determine the final key frame close to the candidate key frames. Comparative experiments show that the proposed method significantly improves stitching speed and accuracy by more than 40%.
 
</p></abstract><kwd-group><kwd>UAV Aerial Video</kwd><kwd> Image Stiching</kwd><kwd> Key Frame Selection</kwd><kwd> Overlapping Rate</kwd><kwd> Remap Error</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Due to its fast, flexible, and convenient operation along with high image resolution, UAV aerial photography technology has become widely used as it continues to popularize and develop [<xref ref-type="bibr" rid="scirp.132630-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.132630-ref2">2</xref>] . Limited by the flight altitude and the camera’s field of view, a single image captured by a UAV often cannot fully cover the target area. Therefore, panoramic stitching of sequential images collected by computers is essential. Studying a fast stitching method for UAV videos offers significant practical value.</p><p>In the video, frames that meet criteria for overlap rate are called key frames [<xref ref-type="bibr" rid="scirp.132630-ref3">3</xref>] . They are often used to stitch images, reducing the number of spliced frames and improving computing efficiency [<xref ref-type="bibr" rid="scirp.132630-ref4">4</xref>] . Literature [<xref ref-type="bibr" rid="scirp.132630-ref5">5</xref>] proposed stitching frames in the video that meet specific overlapping criteria to enhance stitching efficiency. Fangbing Zhang et al. [<xref ref-type="bibr" rid="scirp.132630-ref6">6</xref>] calculated the frame-by-frame overlap rate used for key frame extraction. Common key frame extraction methods must reference all frames to calculate the overlap rate, making them unsuitable for applications requiring high timeliness. Fadaeieslam et al. [<xref ref-type="bibr" rid="scirp.132630-ref7">7</xref>] used a Kalman filter [<xref ref-type="bibr" rid="scirp.132630-ref8">8</xref>] to predict the trajectory of image corners and calculate the overlap between adjacent frames. However, error accumulation makes it difficult to accurately locate image corners, affecting key frame extraction accuracy. Liu Shanlei et al. [<xref ref-type="bibr" rid="scirp.132630-ref9">9</xref>] estimated the theoretical overlap between frames using camera’s prior knowledge and extracted key frames at fixed intervals. This method fails when such prior knowledge is unavailable, as it cannot extract key frames meeting the overlap criteria. Liu Yong [<xref ref-type="bibr" rid="scirp.132630-ref10">10</xref>] attempted to understand the changing overlap rate of frames over a certain video sequence and select key frames accordingly. This approach requires searching the entire video sequence and establishing a piecewise linear model for the overlap rate, making it unsuitable for real-time video. There is a need for an adaptive key frame extraction algorithm for real-time aerial video.</p><p>Simply using the overlap rate threshold cannot guarantee the video splicing effect, as the remapping error between spliced images significantly affects the splicing quality. Existing methods face several problems:</p><p>1) Calculating the overlap rate frame by frame is time-consuming, as the rate between adjacent video frames typically exceeds 95%. Direct application of image stitching methods to video can significantly reduce efficiency. To enhance computational efficiency, selecting frames with a suitable degree of overlap for splicing is crucial. Calculating the overlap rate for each frame against reference images is not only lengthy but also impractical for time-sensitive applications.</p><p>2) The error in splicing key frames selected solely based on the overlap rate is significant: relying only on the overlap rate cannot ensure a successful video splicing outcome. In aerial videos featuring densely packed buildings or large featureless areas like rivers, the increase in mismatched feature points often leads to splicing deformations and gaps.</p><p>In this paper, we propose a two-stage key frame selection strategy that combines key frame rate fitting and key frame remapping error to address the issues of stitching efficiency and accuracy:</p><p>1) The overlapping rate is fitted using the Lagrangian interpolation method, and candidate key frames are identified using an empirical threshold. This approach addresses the issue of excessive calculation time for the overlap rate in large volumes of aerial video sequence data when selecting key frames frame by frame.</p><p>2) Furthermore, we can identify the key frame by remapping error. We fix the issue of holes and deformation in the panorama resulting from inaccurate or mismatched feature points in overlapping areas between adjacent key frames.</p><p>The remaining sections are organized as follows: Section 2 outlines the overall framework for real-time video stitching using a two-stage key frame selection method. Section 3 details the testing process and analyzes the results. Section 4 concludes the paper.</p></sec><sec id="s2"><title>2. Real-Time Video Stitching Based on Two-Stage Key Frame Selection Method</title><sec id="s2_1"><title>2.1. Overall Flow of Aerial Video Real-Time Mosaic Framework</title><p><xref ref-type="fig" rid="fig1">Figure 1</xref> presents the framework of a real-time video splicing system based on a two-phase key frame selection method, consisting of key frame selection and splicing fusion phases.</p><p>During the key frame selection stage, key frames are initially selected by fitting an overlap rate curve between subsequent video sequences and the current key frame using Lagrange polynomials. Then, key frames are further refined by assessing remapping errors. Finally, the refined key frames are stitched together to create a panoramic view of the aerial video.</p></sec><sec id="s2_2"><title>2.2. General Flow of Two-Stage Key Frame Selection Methods</title><p>The proposed UAV aerial image stitching method is outlined in <xref ref-type="fig" rid="fig2">Figure 2</xref>. To enhance splicing efficiency and generate a key frame list, we introduce a key frame selection technique that utilizes Lagrangian interpolation and remapping error. This method filters key frames from the video sequence for splicing, based on two experimental thresholds, and automatically adds the video’s first image as the initial key frame. In this selection process, we first fit the overlap rate curve between the subsequent video sequence and the current key frame using Lagrange polynomials, setting an overlap rate threshold. The last image in the sequence exceeding this threshold is considered a candidate key frame. We then calculate the remapping error between this candidate and the current key frame. If the error is below a certain threshold, the candidate is added to the key frame list as the newest key frame. Otherwise, we calculate the remapping error in reverse order from the current to the candidate key frame until an image meeting the error threshold is found and added to the list as the newest key frame.</p><sec id="s2_2_1"><title>2.2.1. Improve the Speed of Detecting Key Frames with Overlap Rate Fitting</title><p>Inter-frame overlap is a common criterion for selecting key frames, which involves calculating the similarity transformation relationship between two images by identifying matching points between the current frame and the reference frame. This process determines the overlapping region between two frames to calculate the overlap rate [<xref ref-type="bibr" rid="scirp.132630-ref11">11</xref>] . However, due to the high redundancy in neighboring video frames, calculating matching points frame by frame to determine the overlap rate is inefficient. While the UAV flight path is generally fixed, leading to a nearly uniform change in overlap between aerial video images, airflow perturbation can shift the geometric position between neighboring frames, altering their overlap. Despite these perturbations, the high-frequency video acquisition allows for the geometric position change between adjacent frames to remain relatively stable. A mathematical model can thus describe the rule of change in the overlap between frames.</p><p>Lagrange interpolation is a high-precision method that produces smooth, oscillation-free interpolation results, accurately describing the functional relationship between data points. Its calculation formula is simple, making it easy to implement and particularly suitable for data interpolation requiring smooth outcomes [<xref ref-type="bibr" rid="scirp.132630-ref12">12</xref>] . This paper employs Lagrange interpolation to fit the inter-frame overlap.</p><p>Define set F as the video sequence, F = { F 1 , F 2 , ⋯ , F m } , K as the list of key frames selected from F, K = { K 0 , K 1 , ⋯ , K n } , where n &lt; m. Initially, frame 0 of the video sequence is taken as the first key frame K 0 , and we also considered the current key frame K c , where K 0 = K c = F 0 . Subsequently, 4 frames are selected from F to calculate the overlap rate between these frames and the current key frame K c The selection of these 4 frame images is defined in Equation (1), where S 1 , S 2 , S 3 , S 4 are the frame sequence of images with subscripts, S 1 , S 2 , S 3 , S 4 ∈ { 1 , 2 , ⋯ , m } . K c = F s 0 , where S 1 is randomly selected.</p><p>{ S 2 = 2 S 1 S 3 = S 2 + S 1 S 4 = 2 S 2 (1)</p><p>After calculating the overlap rate y i between the 4-frame image and the current key frame K c , a Lagrange polynomial (see Equation (2)) is used to fit the resulting four overlap rates y to the corresponding sequence subscripts S. Here, x i represents the frame sequence indexes, i.e., S 1 , S 2 , S 3 , S 4 in Equation (1).</p><p>L n ( x ) = ∑ i = 0 n l i ( x ) y i</p><p>where</p><p>l i ( x ) = ∏ j ≠ i j = 0 n x − x j x i − x j (2)</p><p><xref ref-type="fig" rid="fig8">Figure 8</xref> displays the change in overlap rate of UAV aerial video sequences, modeled with a Lagrange polynomial. The red curve represents the modeled overlap rate, while the green curve shows the actual overlap rate between the current frame and K c . When the distance between the current frame and K c exceeds 300 frames, the overlap rate experiences significant fluctuations, indicating a reduction in the overlap area between frames, making accurate overlap rate derivation and subsequent splicing unfeasible. Therefore, we take S 0 , S 1 , S 2 , S 3 , S 4 within 300 frames from K c , and we choose the interval between S 1 and S 0 to be 75 frames in this paper.</p><p>The actual overlap rate decreases with a larger frame interval and fluctuates towards the end. Thus, a range of 300 frames, starting from the index where K c is located, is examined in ascending order along the fitted overlap rate curve. An overlap rate threshold of T = 80% is established. The frame that matches 80% of the fitted overlap rate with K c is selected as the next candidate key frame K c a d :</p><p>T = 0.8 K c a d = F s , where S = L − 1 ( T • ( max y i ) ) (3)</p><p>Using only the selected key frames with a specific overlap rate, the remapping error between neighboring key frames varies around the median remapping error, as illustrated in <xref ref-type="fig" rid="fig4">Figure 4</xref>. Adjusting the overlap rate threshold T changes the median remapping error among neighboring images in the list of selected candidate key frames, showing an inverse relationship with the overlap rate threshold. This relationship is depicted in <xref ref-type="fig" rid="fig5">Figure 5</xref>, which demonstrates how different overlap rate thresholds, ranging from 0.6 to 0.95, affect the average remapping error between neighboring key frames in the selected group. In this figure, the horizontal axis represents the overlap rate threshold, and the vertical axis shows the average remapping error.</p><p>Splicing remains rough when based solely on key frames determined by the overlap rate threshold. Therefore, in addition to fitting the video overlap rate using the Lagrangian interpolation method and selecting key frames through the overlap rate threshold, it is necessary to further determine the optimal key frames.</p></sec><sec id="s2_2_2"><title>2.2.2. Controlling Remapping Errors to Improve Splicing Accuracy</title><p>The current key frame K c and the frame F i detect feature points within an interval of i frames. We match these feature points and screen the matching point pairs, use the RANSAC algorithm [<xref ref-type="bibr" rid="scirp.132630-ref13">13</xref>] to remove mismatched points, ensuring accurate matching and selection of the best matching pairs. We identify the coordinates of each best matching point pairs from the current key frame K c and frame F i , and we perform the computation of the remapping coordinates. Assume that the key point coordinates of the current key frame K c in the best matching point pair are (x, y) and the coordinates of the feature point in frame F i that matches the key point (x, y) in the key frame K c are (u, v). The relationship between the key point (x, y) and the remapped coordinates (x', y') of the point in frame F i is shown in equation (4):</p><p>s [ x ′ y ′ 1 ] = [ a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 ] [ x y 1 ] (4)</p><p>Define ( u − x ′ ) 2 + ( v − y ′ ) 2 as the remapping error of the key point (x, y). Then the average remapping error of the current key frame K c with all matching points of frame F i is:</p><p>mean_error = ∑ 1 n ( u − x ′ ) 2 + ( v − y ′ ) 2 n (5),</p><p>where n is the number of matching point pairs between the current key frame K c and frame F i . The remapping error threshold, T = 4 pixels, is established based on experimental findings. When a new candidate key frame K c a p is acquired during the fitting stage, the average remapping error, mean_error, between K c a p and K c is calculated. If mean_error ≤ 4 pix, K c a p is added to the key frame list as the latest key frame. Otherwise, starting from K c a p to the current key frame K c , we calculate the remapping error mean_error between the current frame and K c frame by frame until mean_error ≤ 4 pix is satisfied, we and store the current frame into the key frame list as the latest key frame.</p></sec></sec><sec id="s2_3"><title>2.3. Key Frame Splicing and Fusion</title><p>The selected key frame images are stitched together to create a panoramic image through a process that includes feature extraction, feature matching, solving the single-stress transformation matrix [<xref ref-type="bibr" rid="scirp.132630-ref14">14</xref>] and image fusion. Initially, feature points are extracted from each key frame image based on the camera pose. Next, these extracted feature points are matched with corresponding points in other images, using the RANSAC algorithm [<xref ref-type="bibr" rid="scirp.132630-ref15">15</xref>] to enhance the accuracy of feature point matching by addressing issues like noise and mismatches. Subsequently, a uniresponsive transformation matrix is determined from the detected feature points at different scales, establishing the spatial relationship between the images to be stitched. Finally, the Laplace pyramid image fusion algorithm [<xref ref-type="bibr" rid="scirp.132630-ref16">16</xref>] is employed to seamlessly blend the boundaries between images, correcting positional offsets, lens distortions, and luminance differences to ensure a clear image boundary (<xref ref-type="fig" rid="fig3">Figure 3</xref>).</p></sec></sec><sec id="s3"><title>3. Experimental Results</title><p>Using only the key frames selected with the overlap rate, the remapping error between neighboring key frames fluctuates above and below the median remapping error, as shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>. When the overlap rate threshold T is set to a different value, the median remapping error between neighboring images in the list of selected candidate key frames is inversely proportional to the overlap rate threshold, as illustrated in <xref ref-type="fig" rid="fig5">Figure 5</xref>.</p><sec id="s3_1"><title>3.1. Overlap Rate Threshold Accuracy Analysis</title><p><xref ref-type="fig" rid="fig6">Figure 6</xref> displays the overlap rate statistics for an image sequence within 400 frames of the current key frame. The horizontal axis represents the frame index, while the vertical axis shows the overlap rate. The initial point on the horizontal axis corresponds to the frame index of the current key frame. When the overlap rate falls below 60%, the error becomes too large for accurate calculation, leading to significant fluctuations in the overlap rate curve. Consequently, this study conducts experiments on an overlap rate range of 60% - 95%, with intervals of 5%.</p><p><xref ref-type="fig" rid="fig7">Figure 7</xref> presents a comparison of average remapping errors between neighboring key frames at various overlap rate thresholds, using experimental data from a 3-minute and 50-second aerial video measuring 500 &#215; 255 pixels. The horizontal axis represents the frame indexes in the list of key frames K, while the vertical axis shows the average remapping error values. The solid line indicates the median remapping error.</p><p>From <xref ref-type="fig" rid="fig7">Figure 7</xref>, it is observed that an overlap rate threshold of 60% or 65%, while reducing the number of key frames and splicing time, results in an excessive average remapping error, with the largest average error reaching 40 pixels. This means the error between each matched point pair of adjacent key frames averages 40 pixels, with a median error of approximately 15 pixels across all key frames. Such errors lead to noticeable misalignments post-splicing. However, setting the overlap rate threshold to 90% or 95% significantly reduces the remapping error, with a median average error of about 1.8 pixels, but this increases the number of key frames drastically, leading to longer splicing times. With an 80% overlap rate threshold, the median average remapping error is around 4 pixels, and the number of key frames is 42, compared to 172 at 95%. The choice of overlap rate threshold at 80% maintains a higher accuracy than at 60%, with fewer key frames and a manageable average remapping error.</p><p><xref ref-type="fig" rid="fig8">Figure 8</xref> shows the actual overlap rate curve and the fitted overlap rate curve at an 80% overlap rate, with the red line representing the curve fitting effect. The trajectory and the actual overlap rate (green line) within 300 frames from the current key frame show a consistent pattern, indicating that it is effective to use Lagrange polynomials for estimating the inter-frame overlap rate within a certain range. Therefore, setting the overlap rate threshold at 80% and the remapping error threshold at 4 pixels is the optimal choice for balancing splicing accuracy and time efficiency.</p></sec><sec id="s3_2"><title>3.2. Comparison of Splicing Speed of Different Methods</title><p>The experiments conducted in this study were performed using the Python</p><p>platform. The proposed method was compared with five other splicing methods: IORTI [<xref ref-type="bibr" rid="scirp.132630-ref6">6</xref>] , inter-frame differencing, NISwGSP [<xref ref-type="bibr" rid="scirp.132630-ref17">17</xref>] , and HQPI [<xref ref-type="bibr" rid="scirp.132630-ref18">18</xref>] , focusing on key frame extraction and splicing speed. The key frame insertion criteria for IORTI involve two conditions: first, the number of in-points where the current frame matches the latest key frame (N) must be less than a specified value (N1), and second, the overlapping area ratio (P) between the current frame and the latest key frame must exceed a threshold value (P1). For IORTI, the parameters are set as N1 = 300 and P1 = 0.75. A current frame is inserted as the latest key frame in the key frame list when both conditions are met.</p><p><xref ref-type="table" rid="table1">Table 1</xref> demonstrates that in the comparison methods, key frame extraction significantly impacts the program’s running time. During this phase, IORTI [<xref ref-type="bibr" rid="scirp.132630-ref6">6</xref>] takes the longest, followed by the inter-frame difference method, while the method presented in this paper is the fastest. The other two methods lack a key frame extraction phase. Specifically, the method in this paper is 49% faster than the inter-frame differencing method and 93% faster than IORTI in key frame extraction. In the splicing stage, both NISwGSP and HQPI methods were unsuccessful. Overall, the method in this paper achieves a 39% and 91% improvement in total video splicing speed compared to the inter-frame differencing method and IORTI, respectively, significantly enhancing the operational efficiency of UAV aerial video splicing.</p></sec><sec id="s3_3"><title>3.3. Comparison of Splicing Accuracy of Different Methods</title><p>The key frames selected by different methods vary. To quantitatively evaluate the splicing accuracy of these key frames, the Root Mean Square Error (RMSE) is used as a metric. RMSE, defined in Equation (6), quantitatively evaluates the splicing effect:</p><p>RMSN = ∑ 1 m ∑ 1 n [ P ( x ′ , y ′ ) − Q ( u , v ) ] 2 m &#215; n (6)</p><p>The remapped coordinates of feature point P(x, y) are P(x', y'), and the matching feature point P in the neighboring key frames is Q(u, v). Here, n represents the number of excellent matching point pairs between two neighboring key frames, and m represents the number of key frames. The methods NISwGS and HQPI are not included due to their splicing failures. According to <xref ref-type="table" rid="table2">Table 2</xref>, compared with the IORTI and inter-frame differencing methods, the proposed method has the lowest RMSE value at 15.92 pixels, improving accuracy by 13% and 41% over inter-frame differencing and IORTI, respectively.</p></sec><sec id="s3_4"><title>3.4. Comparison of Splicing Results</title><p>The NISwGSP and HQPI splicing methods both failed. <xref ref-type="fig" rid="fig9">Figure 9</xref> presents the effects and local detail magnifications of key frame selection methods, including inter-frame differencing, IORTI, and key frame selection based on Lagrangian interpolation and remapping error. It also shows the effects and local detail magnifications of key frames selected by these three methods on the same city and waterside aerial video sequences. All three methods utilize the SIFT algorithm [<xref ref-type="bibr" rid="scirp.132630-ref19">19</xref>] for feature extraction [<xref ref-type="bibr" rid="scirp.132630-ref20">20</xref>] and the Laplace pyramid image fusion algorithm for splicing. SIFT features are local image features that are multi-volume, unique, and information-rich. They remain invariant to scale, rotation, and luminance changes, and maintain some degree of invariance to radial transformation, point-of-view changes, image noise, etc. [<xref ref-type="bibr" rid="scirp.132630-ref21">21</xref>] .</p><p>The figure illustrates noticeable gaps in the spliced image of the key frame list chosen by IORTI, as highlighted in <xref ref-type="fig" rid="fig9">Figure 9</xref>, primarily due to feature matching errors. In contrast, the key frame sequence spliced using the inter-frame difference method shows deformation in parts of the image because of inaccurate feature point matching in the overlap area or mismatches, as evident in the zoomed-in picture where the car appears noticeably stretched. The method proposed in this paper effectively avoids these issues by considering the remapping error between neighboring key frames used for splicing, which result in high-quality images with clear details and a splicing effect that integrates all parts of images.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Splicing speed and key frame selection speed for different methods</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >method</th><th align="center" valign="middle" >inter-frame difference method</th><th align="center" valign="middle" >NISwGSP, HQPI</th><th align="center" valign="middle" >IORTI</th><th align="center" valign="middle" >Our method</th></tr></thead><tr><td align="center" valign="middle" >Key frame extraction</td><td align="center" valign="middle" >104.1 s</td><td align="center" valign="middle" >/</td><td align="center" valign="middle" >842.5 s</td><td align="center" valign="middle" >52.8 s</td></tr><tr><td align="center" valign="middle" >total time spent</td><td align="center" valign="middle" >128.8 s</td><td align="center" valign="middle" >Fail</td><td align="center" valign="middle" >859.7 s</td><td align="center" valign="middle" >78.2 s</td></tr><tr><td align="center" valign="middle" >speed boost</td><td align="center" valign="middle" >39%</td><td align="center" valign="middle" >/</td><td align="center" valign="middle" >91%</td><td align="center" valign="middle" >/</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Comparison of RMSE values of key frame sequences of different methods</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >method</th><th align="center" valign="middle" >inter-frame difference method</th><th align="center" valign="middle" >NISwGS, HQPI</th><th align="center" valign="middle" >IORTI</th><th align="center" valign="middle" >Our method</th></tr></thead><tr><td align="center" valign="middle" >RMSE</td><td align="center" valign="middle" >18.25 pix</td><td align="center" valign="middle" >/</td><td align="center" valign="middle" >26.77 pix</td><td align="center" valign="middle" >15.92 pix</td></tr><tr><td align="center" valign="middle" >Accuracy improvement</td><td align="center" valign="middle" >13%</td><td align="center" valign="middle" >/</td><td align="center" valign="middle" >41%</td><td align="center" valign="middle" >/</td></tr></tbody></table></table-wrap></sec></sec><sec id="s4"><title>4. Conclusion</title><p>In this paper, we introduce a rapid splicing algorithm for UAV aerial videos, leveraging a key frame selection method combined with Lagrangian interpolation and remapping error analysis. The process of selecting key frames involves two phases. Firstly, candidate key frames are identified by fitting the overlap rate curve between subsequent video sequences and the current key frame using Lagrange polynomials. Subsequently, the most recent key frame is chosen by calculating the remapping error between it and the candidate key frames. This method enhances splicing speed while maintaining quality. Compared to key frame selection methods based on inter-frame differencing and IORTI, our approach improves accuracy by 13% and 41%, respectively, and reduces total splicing time by 39% and 91%, achieving the required balance of accuracy and speed for video splicing.</p></sec><sec id="s5"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s6"><title>Cite this paper</title><p>Yuan, M.W., Long, Y.H. and Li, X. (2024) Real-Time Mosaic Method of Aerial Video Based on Two- Stage Key Frame Selection Method. Open Journal of Applied Sciences, 14, 1008-1021. https://doi.org/10.4236/ojapps.2024.144067</p></sec></body><back><ref-list><title>References</title><ref id="scirp.132630-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Li, X.L. and Ling, C.Q. (2022) Application of UAV Remote Sensing Technology in Agricultural Conditions Monitoring. &lt;i&gt;Modern Agricultural Equipment&lt;/i&gt;, 43, 45-51. </mixed-citation></ref><ref id="scirp.132630-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Liu, Z., Wan, W., Huang, J.Y., &lt;i&gt;et al.&lt;/i&gt; (2018) Research Progress on Inversion of Key Parameters of Crop Growth Based on UAV Remote Sensing. &lt;i&gt;Journal of Agricultural Engineering&lt;/i&gt;, 34, 60-71.</mixed-citation></ref><ref id="scirp.132630-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Luo, Y., Li, Y., Li, Z., &lt;i&gt;et al.&lt;/i&gt;&lt;i&gt; &lt;/i&gt;(2021) MS-SLAM: Motion State Decision of Key Frames for UAV-Based Vision Localization. &lt;i&gt;IEEE&lt;/i&gt;&lt;i&gt; &lt;/i&gt;&lt;i&gt;Access&lt;/i&gt;, 9, 67667-67679. &lt;br&gt;https://doi.org/10.1109/ACCESS.2021.3077591</mixed-citation></ref><ref id="scirp.132630-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Zhao, Y., Chen, L., Zhang, X., &lt;i&gt;et al.&lt;/i&gt;&lt;i&gt; &lt;/i&gt;(2021) RTSfM: Real-Time Structure from Motion for Mosaicing and DSM Mapping of Sequential Aerial Images with Low Overlap. &lt;i&gt;IEEE Transactions on Geoscience and Remote Sensing&lt;/i&gt;, 60, 1-15. &lt;br&gt;https://doi.org/10.1109/TGRS.2021.3090203 </mixed-citation></ref><ref id="scirp.132630-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Wang, Z. and Zhu, Y. (2020) Video Key Frame Monitoring Algorithm and Virtual Reality Display Based on Motion Vector. &lt;i&gt;IEEE Access&lt;/i&gt;, 8, 159027-159038.</mixed-citation></ref><ref id="scirp.132630-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Zhang, F., Yang, T., Liu, L., &lt;i&gt;et al.&lt;/i&gt;&lt;i&gt; &lt;/i&gt;(2020) Image-Only Real-Time Incremental UAV Image Mosaic for Multi-Strip Flight. &lt;i&gt;IEEE Transactions on Multimedia&lt;/i&gt;, 60, 1410-1425. &lt;br&gt;https://doi.org/10.1109/TMM.2020.2997193 </mixed-citation></ref><ref id="scirp.132630-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Fadaeieslam, M.J., Soryani, M. and Fathy, M. (2011) Efficient Key Frames Selection for Panorama Generation from Video. &lt;i&gt;Journal of Electronic Imaging&lt;/i&gt;, 20, 2763-2769. &lt;br&gt;https://doi.org/10.1117/1.3591366</mixed-citation></ref><ref id="scirp.132630-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Dong, J. and Liu, H. (2017) Video Stabilization for Strict Real-Time Applications. &lt;i&gt;IEEE Transactions on Circuits &lt;/i&gt;&lt;i&gt;and&lt;/i&gt;&lt;i&gt; Systems for Video Technology&lt;/i&gt;, 27, 716-724. &lt;br&gt;https://doi.org/10.1109/TCSVT.2016.2589860</mixed-citation></ref><ref id="scirp.132630-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Liu, S.L., Zhao, Y.D., Wang, G.H., &lt;i&gt;et al.&lt;/i&gt; (2012) An Automatic Key Frame Extraction Method. &lt;i&gt;Surveying and Mapping Science&lt;/i&gt;, 37, 110-112 115.</mixed-citation></ref><ref id="scirp.132630-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Liu, Y., Wang, G.J., Yao, A.B., &lt;i&gt;et al.&lt;/i&gt; (2010) Video Stitching Based on Adaptive Frame Sampling. &lt;i&gt;Journal of Tsinghua University&lt;/i&gt;&lt;i&gt; &lt;/i&gt;(&lt;i&gt;Science and Technology&lt;/i&gt;), 50, 108-112.</mixed-citation></ref><ref id="scirp.132630-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Ren, C.F. (2014) Research on Key Technologies of Orthophoto Production of Aerial Video Images. Wuhan University, Wuhan.</mixed-citation></ref><ref id="scirp.132630-ref12"><label>12</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Liu</surname><given-names> J.J. </given-names></name>,<etal>et al</etal>. (<year>2018</year>)<article-title>GPS Satellite Orbit Position Fitting Based on Lagrangian Interpolation Method</article-title><source> &lt;i&gt;Science and Technology Innovation and Productivity&lt;/i&gt;</source><volume> 294</volume>,<fpage> 19</fpage>-<lpage>21</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.132630-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Yang, L., Cao, J., Tang, L., &lt;i&gt;et al.&lt;/i&gt;&lt;i&gt; &lt;/i&gt;(2014) Optimized Design of Automatic Panoramic Images Mosaic. &lt;i&gt;Multimedia Tools and Applications&lt;/i&gt;, 72, 503-514. &lt;br&gt;https://doi.org/10.1007/s11042-013-1387-y </mixed-citation></ref><ref id="scirp.132630-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Yong, H., Huang, J., Xiang, W., &lt;i&gt;et al.&lt;/i&gt;&lt;i&gt; &lt;/i&gt;(2019) Panoramic Background Image Generation for PTZ Cameras. &lt;i&gt;IEEE Transactions on Image Processing&lt;/i&gt;, 28, 3162-3176. &lt;br&gt;https://doi.org/10.1109/TIP.2019.2894940</mixed-citation></ref><ref id="scirp.132630-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Zheng, J., Peng, W., Wang, Y., &lt;i&gt;et al.&lt;/i&gt;&lt;i&gt; &lt;/i&gt;(2021) Accelerated RANSAC for Accurate Image Registration in Aerial Video Surveillance. &lt;i&gt;IEEE Access&lt;/i&gt;, 9, 36775-36790. &lt;br&gt;https://doi.org/10.1109/ACCESS.2021.3061818</mixed-citation></ref><ref id="scirp.132630-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Huang, F.S. and Lin, S.Z. (2019) Multi-Band Image Fusion Rules Comparison Based on the Laplace Pyramid Transformation Method. &lt;i&gt;Infrared Technology&lt;/i&gt;, 41, 64-71.</mixed-citation></ref><ref id="scirp.132630-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Cheng, Y.S. and Chuang, Y.Y. (2016) Natural Image Stitching with the Global Similarity Prior. &lt;i&gt;Computer Vision&lt;/i&gt;&lt;i&gt;-&lt;/i&gt;&lt;i&gt;ECCV &lt;/i&gt;2016, Amsterdam, 11-14 October 2016, 186-201. &lt;br&gt;https://doi.org/10.1007/978-3-319-46454-1_12</mixed-citation></ref><ref id="scirp.132630-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Xiong, Y. and Pulli, K. (2010) Fast Panorama Stitching for High-Quality Panoramic Images on Mobile Phones. &lt;i&gt;IEEE Transactions on Consumer Electronics&lt;/i&gt;, 56, 298-306. &lt;br&gt;https://doi.org/10.1109/TCE.2010.5505931</mixed-citation></ref><ref id="scirp.132630-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Liu, Y., He, M., Wang, Y., &lt;i&gt;et al.&lt;/i&gt; (2022) Farmland Aerial Images Fast-Stitching Method and Application Based on Improved SIFT Algorithm. &lt;i&gt;IEEE Access&lt;/i&gt;, 10, 95411-95424. &lt;br&gt;https://doi.org/10.1109/ACCESS.2022.3204657</mixed-citation></ref><ref id="scirp.132630-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Chang, H.H., Wu, L.G., &lt;i&gt;et al.&lt;/i&gt; (2019) Remote Sensing Image Registration Based on Modified SIFT and Feature Slope Grouping. &lt;i&gt;IEEE Geoscience and Remote Sensing Letters&lt;/i&gt;, 16, 1363-1367. &lt;br&gt;https://doi.org/10.1109/LGRS.2019.2899123</mixed-citation></ref><ref id="scirp.132630-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Xiang, Y., Wang, F. and You, H. (2018) OS-SIFT: A Robust SIFT-Like Algorithm for High-Resolution Optical-to-SAR Image Registration in Suburban Areas. &lt;i&gt;IEEE Transactions on Geoscience &lt;/i&gt;&lt;i&gt;and&lt;/i&gt;&lt;i&gt; Remote Sensing&lt;/i&gt;, 56, 3078-3090. &lt;br&gt;https://doi.org/10.1109/TGRS.2018.2790483</mixed-citation></ref></ref-list></back></article>