A semantic perception dynamic panoramic stitching method and system under an airport apron scene
By generating a restricted area mask map and establishing a panoramic canvas with absolute geographic coordinate reference in the airport tarmac scene, and optimizing the stitching seam adjustment in real time, the problems of stitching seam intrusion into restricted areas and spatial reference shaking are solved, achieving highly accurate panoramic stitching.
Patent Information
- Application Number
- CN202611190187.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-06
- Publication Date
- 2026-11-24
AI Technical Summary
Existing panoramic stitching technology has problems in airport apron scenarios, such as fixed stitching seams leading to target cutting or misalignment, spatial reference shaking, and insufficient decision-making for multi-target conflicts, which affect the safety judgment of air traffic controllers.
By generating a no-entry-to-no-go zone mask map for the stitching seams, a panoramic canvas with absolute geographic coordinate reference is established based on real-time positioning information. Moving targets are detected in real time and candidate stitching seams are generated. A global cost function containing the no-go zone mask map constraint is constructed to optimize the stitching seam adjustment to avoid no-go zones and maintain spatial reference consistency.
Ensuring that the seams do not encroach on restricted areas and maintaining spatial consistency, the system solves the problems of swaying static ground markings and misalignment of multiple targets in panoramic images, thereby improving the accuracy of controllers' visual judgment.
Smart Images

Figure CN123160338A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer vision and image processing technology, specifically to a semantically perceptive dynamic panoramic stitching method and system for airport tarmac scenarios. Background Technology
[0002] In airport surface monitoring and tower-assisted decision-making, stitching together a large-scale, high-resolution panoramic image of the apron from multiple cameras is a fundamental means for air traffic controllers to establish comprehensive situational awareness. The apron scenario has extremely unique characteristics: there are strictly defined taxiway centerlines, parking stand safety lines, vehicle service lanes, and other inviolable restricted areas; the types of moving targets within the scenario are complex, including large commercial airliners, various support vehicles, and ground crew, whose speeds vary greatly and whose trajectories frequently intersect.
[0003] Existing panoramic stitching technologies are mainly divided into two categories. One is the traditional stitching method based on static feature points, which pre-calculates the homography matrix between each camera and fixes the stitching seams. Its fatal flaw is that the stitching seams are permanently fixed. When large targets such as aircraft taxiing pass over the stitching seams, the targets may be cut or misaligned, affecting the controller's accurate judgment of the target's position and directly posing a safety hazard. The other is the dynamic stitching method, which re-detects feature points and calculates the optimal stitching seams in each frame to avoid moving targets. However, global recalculation in each frame causes continuous drift of the spatial reference, causing static ground markers to shake and disrupting the spatial reference system. At the same time, when there are multiple moving targets that are far apart in the field of view, existing seam search algorithms lack a global conflict decision mechanism and can only perform local avoidance. This may lead to over-avoidance and intrusion into the originally target-free absolute no-go zone. Therefore, there is an urgent need for an intelligent panoramic stitching scheme that can integrate airport operation rules, maintain spatial reference consistency, and achieve global optimization of multi-target conflicts. Summary of the Invention
[0004] To address the aforementioned issues, this invention provides a semantically perceptive dynamic panoramic stitching method and system for airport tarmac scenarios.
[0005] In a first aspect, the present invention provides a semantically perceptive dynamic panoramic stitching method for airport tarmac scenarios, comprising the following steps: S1. Generate a restricted area mask map that is inaccessible to the splicing seams based on the key geographical elements in the airport apron scene; S2. Acquire and synchronize multiple video streams from each camera in real time; establish a panoramic canvas with absolute geographic coordinate reference based on real-time positioning information, and fix spatial anchor points on the panoramic canvas. S3. Real-time detection and tracking of moving targets in the video stream, obtaining their semantic category and contour information, and mapping them to the panoramic canvas coordinate system; S4. Generate multiple candidate seams for each original seam. The constraints used in generating the seams include at least: image difference minimization constraint, differential target avoidance constraint driven by the semantic category and contour information, and constraint of proximity to the spatial anchor point. S5. When a triggering condition is detected, a global cost function containing the restricted area mask diagram constraint is constructed. One seam to be adjusted is selected from the candidate seams to minimize the combined disturbance of each seam while avoiding the restricted area. The seams are then adjusted according to the selection result. S6. After the moving target that triggered the adjustment leaves, gradually move the deviated splice seam back to its corresponding spatial anchor point position. S7. Based on the adjusted or moved seams, merge the multiple video streams and output them as a panoramic video.
[0006] As a further limitation of the technical solution of the present invention, step S1 includes: S11. Obtain a geographic information base map of the airport apron scene, and plot key geographic features on the geographic information base map. The key geographic features include at least one of the following: taxiway centerline and pavement edge line, parking stand safety line, vehicle service lane boundary line, and jet bridge activity range envelope. S12. Perform bilateral buffer expansion on at least one type of linear feature among the key geographic features to form a buffer zone, and mark the buffer zone as a no-entry zone for the splicing seam; S13. Rasterize the marked geographic information base map to generate a binarized restricted area mask map, where the pixel value of the restricted area is the first value and the pixel value of the free area is the second value.
[0007] The rule-based descriptions of which areas are off-limits in airport operation and management regulations have been transformed into gridded hard constraint data that can be directly queried by the algorithm. This allows the no-entry zones at seams to be queried and enforced in real time at a preset response speed during global optimization decisions.
[0008] As a further limitation of the technical solution of the present invention, in S2, the step of establishing a panoramic canvas with absolute geographic coordinate reference based on real-time positioning information and fixing spatial anchor points on the panoramic canvas includes: S21. Obtain the real-time positioning information of each camera participating in the stitching, and convert the latitude and longitude coordinates in the real-time positioning information into unified planar projection coordinates to construct a panoramic canvas with absolute geographic coordinate reference. S22. Based on the planar projection coordinates of each camera and the pre-calibrated camera intrinsic parameters, calculate the projection matrix of each camera, and use the projection matrix to map the multiple video streams onto the panoramic canvas. S23. Select a static area with stable visual characteristics on the panoramic canvas as a spatial anchor point, and solidify the mapping relationship between the absolute geographic coordinates and pixel coordinates of the spatial anchor point; the static area with stable visual characteristics includes at least the corner points of the road marking lines in the overlapping areas of the static field of view of each camera; the spatial anchor points are distributed in different areas of the panoramic canvas, and at least one spatial anchor point is distributed in the preset neighborhood of each original stitching seam.
[0009] A unified stitching benchmark with centimeter-level absolute geographic accuracy was established, eliminating the problem of inconsistent coordinate systems caused by differences in installation position and attitude between different cameras, and providing accurate physical coordinate references for the spatial constraints of subsequent stitching seams.
[0010] As a further limitation of the technical solution of the present invention, step S3 includes: S31. The video stream is processed frame by frame using a pre-trained target detection and segmentation model. The target detection and segmentation model is a multi-task deep learning network that outputs the rotating bounding box, pixel-level mask contour, and semantic category of the moving target in parallel. S32. Perform multi-target tracking on moving targets in continuous video frames, and obtain the unique identifier and motion state information of the moving targets; S33. Based on the projection matrix of each camera, the rotating rectangular bounding box and pixel-level mask contour are transformed from the image coordinate system to the panoramic canvas coordinate system to generate a list of moving target panoramic vector objects with identity, semantic category and contour information to complete the spatial mapping.
[0011] As a further limitation of the technical solution of the present invention, step S32 includes: S321. Use a state estimation algorithm to perform temporal modeling of the historical trajectory of the moving target, and predict the position and kinematic parameters of the moving target in the current frame; S322. Extract the detection features of the moving target in the current frame and perform data association matching with the predicted position and kinematic parameters to determine the correspondence between the detected target and the existing trajectory. S323. According to the correspondence, when the detected target matches an existing trajectory, the unique identifier corresponding to the trajectory is maintained, and the motion trajectory of the moving target is updated according to the correspondence. The motion state information is extracted, and the motion state information includes at least instantaneous speed and motion direction. S324. When the detected target fails to match any existing trajectory, assign a new unique identifier to the detected target and initialize its motion trajectory and motion state information based on the current frame; S325. When an existing tracking trajectory fails to associate with any detected target within a preset number of consecutive frames, it is determined that the tracking target has left the scene, the trajectory is terminated and its unique identifier is released.
[0012] The pixel-level detection results in the original video frames are transformed into panoramic coordinate system vector data with semantic labels and continuous identities, enabling the subsequent candidate seam generation step to configure differentiated penalty weights based on the target semantic category and motion state. Based on the association results, three operations are performed: maintaining the ID during target matching, assigning an ID when a new target appears, and releasing the ID when a target leaves. This fully covers the entire lifecycle management scenario of multi-target tracking, ensuring that each moving target has a continuous and consistent identity in the panoramic canvas coordinate system.
[0013] As a further limitation of the technical solution of the present invention, step S4 includes: S41. For each original stitching seam between any two adjacent camera images on the panoramic canvas, construct an energy function containing a data term, a target avoidance term, and an anchor point deviation term. The data term corresponds to the image difference minimization constraint, the target avoidance term corresponds to the differentiated target avoidance constraint, and the anchor point deviation term corresponds to the constraint of being close to the spatial anchor point. S42. Based on the semantic category of the moving target and the pixel-level mask contour, dynamically assign penalty weights to the target avoidance term; S43. By setting multiple sets of different values for the weight coefficients of each item in the energy function within the preset neighborhood of the original splicing seam, multiple sets of different weight combinations are generated. The graph cut algorithm is run using each set of weight combinations to generate multiple candidate splicing seams, and the path information and total cost of each candidate splicing seam are recorded.
[0014] As a further limitation of the technical solution of the present invention, step S5 includes: S51. Introduce the restricted area mask as a hard constraint into the global cost function; S52. Construct the global cost function, including: the sum of the candidate path costs selected by each of the seams to be adjusted, and a global conflict penalty term; the global conflict penalty term is used to: for any two or more seams that need to be adjusted, when the adjustment behavior of their respective selected candidate paths causes the same static marker on the panoramic canvas to have a misalignment risk exceeding a preset threshold, it is determined as a global conflict and the penalty value is increased. S53. When the spatial overlap between the moving target that triggers the adjustment and the anchor point buffer of the original splice seam exceeds a preset area threshold, a global optimization decision is triggered. The global cost function is solved using an optimization solution algorithm. A candidate path is selected for each splice seam to be adjusted from the candidate splice seams. The splice seam is switched to the selected candidate splice seam according to the solution result.
[0015] As a further limitation of the technical solution of the present invention, step S6 includes: S61. Continuously monitor the moving target that triggers the adjustment. When it is detected that the moving target has completely left the anchor point buffer and the duration exceeds the preset regression delay time, trigger the progressive regression mechanism. S62. Within the preset number of regression frames, the coordinates of each control point of the current splicing seam are gradually moved back to their corresponding spatial anchor point positions using interpolation.
[0016] To ensure that the seams do not intrude into restricted areas and that the spatial consistency of the panoramic canvas is not compromised while coordinating the adjustment of multiple seams, delayed triggering is used to avoid frequent jittering of the seams when the target repeatedly enters and exits the buffer zone boundary, and frame-by-frame interpolation ensures smooth image transitions.
[0017] As a further limitation of the technical solution of the present invention, step S7 includes: S71. Based on the currently determined stitching seam path, map the pixel coordinates of the multiple video streams to the panoramic canvas coordinate system, and resample the non-integer coordinates. S72. In the overlapping area of adjacent video streams, a multi-band fusion algorithm is used to perform pixel-level fusion in order to eliminate brightness and color differences at the splicing seam. S73. Perform real-time video encoding on the fused panoramic canvas frames and push them to the video streaming server via a streaming media protocol to output the panoramic video.
[0018] In the overlapping area of adjacent video streams, a multi-band fusion algorithm is used to perform pixel-level fusion to eliminate brightness and color differences at the seams, so that the panoramic image transitions naturally and seamlessly at the seams. The fused panoramic canvas frame is then encoded in real time and pushed to the video stream server through a streaming media protocol to output panoramic video. This enables the real-time generation and distribution of high-resolution panoramic video, which can directly serve application scenarios with extremely high real-time requirements, such as control tower and scene monitoring.
[0019] Secondly, the technical solution of the present invention also provides a semantically perceptive dynamic panoramic stitching system for airport tarmac scenarios, comprising: The video access module is used to connect multiple network cameras and acquire and synchronize multiple video streams from each camera in real time. The high-precision positioning module is used to obtain the real-time positioning information of each camera participating in the stitching and to calculate the planar projection coordinates of each camera. The semantic map management module is used to store and manage the non-intrusive restricted area mask map and spatial anchor point data. The restricted area mask map is generated based on key geographic elements in the airport apron scene, and the spatial anchor points are fixed on the panoramic canvas with absolute geographic coordinate reference. The intelligent analysis engine connects the video access module and the high-precision positioning module to detect and track moving targets in the video stream in real time, obtain their semantic category and contour information, and map the moving targets to the panoramic canvas coordinate system based on the projection matrix of each camera. The global optimization scheduling module connects the intelligent analysis engine and the semantic map management module. When a triggering condition is detected, it constructs a global cost function containing the constraints of the restricted area mask map, selects one seam from multiple candidate seams for each seam to be adjusted, minimizes the comprehensive disturbance of each seam while avoiding the restricted area, and outputs a seam adjustment command. The panoramic rendering and output module, connected to the video access module and the global optimization scheduling module, is used to fuse and output the multi-channel video streams as a panoramic video based on the adjusted or moved stitching seams.
[0020] As can be seen from the above technical solutions, this application has the following advantages: It generates a restricted area mask map that prevents intrusion of the seams based on key geographical elements in the airport apron scene, and encodes airport operation safety rules such as taxiway centerlines and parking stand safety lines into hard constraint boundaries that the algorithm cannot infringe upon. This eliminates the potential for seams to intrude into critical airport operation areas and compensates for the shortcomings of traditional splicing methods in terms of safety rule constraints.
[0021] This solution resolves the issues of shaky static ground markers and loss of spatial reference in panoramic images, ensuring the accuracy of controllers' visual judgments. By using hard constraints on restricted areas to ensure no intrusion into any restricted area, and by coordinating the adjustment behavior of multiple seams through global conflict penalties, it addresses the problem of image misalignment and distortion that can occur with existing methods when multiple moving targets are present simultaneously, due to excessive avoidance. Attached Figure Description
[0022] To more clearly illustrate the technical solution of this application, the accompanying drawings used in the description will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart illustrating the method provided in an embodiment of the present invention.
[0024] Figure 2 A block diagram of a system provided in an embodiment of the present invention. Detailed Implementation
[0025] To make the purpose, features, and advantages of this application more apparent and understandable, specific embodiments and accompanying drawings will be used to clearly and completely describe the technical solution protected by this application. Obviously, the embodiments described below are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this application and in the specification of this invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
[0027] like Figure 1 As shown, this embodiment of the invention provides a semantically perceptive dynamic panoramic stitching method for airport tarmac scenarios, including the following steps: S1. Based on key geographical features in the airport apron scene, generate a restricted area mask map where the seams are inaccessible; specifically including: S11. Obtain a geographic information base map of the airport apron scene, and plot key geographic features on the geographic information base map. The key geographic features include at least one of the following: taxiway centerline and pavement edge line, parking stand safety line, vehicle service lane boundary line, and jet bridge activity range envelope. These geometric figures are assigned semantic attribute labels and stored in the geographic information system layer. Preferably, S11 further includes: automatically marking areas with a frequency higher than a preset threshold as high-sensitivity areas based on the statistical frequency of the aircraft main wheel movement trajectory, and including the high-sensitivity areas in the restricted area.
[0028] S12. For at least one type of linear feature among the key geographic elements, apply a bilateral buffer expansion to form a buffer zone, and mark the buffer zone as an inviolable restricted area for the joint; specifically, expand the taxiway centerline to both sides by a first preset distance, and / or expand the pavement edge line inward by a second preset distance to form a taxiway restricted area. The expansion width is set according to airport operational safety standards; for example, expanding a certain distance (in meters) outward from the taxiway centerline forms an inviolable core area.
[0029] S13. Rasterize the marked geographic information base map to generate a binarized restricted area mask, where the pixel values of the restricted areas are the first value and the pixel values of the free areas are the second value. This mask has a strict spatial mapping relationship with the subsequently established panoramic canvas, serving as an absolute hard constraint for adjusting the stitching seams.
[0030] S2. Acquire and synchronize multiple video streams from various cameras in real time; establish a panoramic canvas with absolute geographic coordinate reference based on real-time positioning information, and fix spatial anchor points on the panoramic canvas; In this step, the steps of establishing a panoramic canvas with absolute geographic coordinate reference based on real-time positioning information and fixing spatial anchor points on the panoramic canvas include: S21. Obtain the real-time positioning information of each camera participating in the stitching, and convert the latitude and longitude coordinates in the real-time positioning information into unified planar projected coordinates to construct a panoramic canvas with absolute geographic coordinate reference. As a preferred embodiment, high-precision positioning is achieved using a Real-time Dynamic Differential Global Positioning System (RTK-GPS). Multiple RTK-GPS base stations are evenly deployed on the airport surface, and each camera participating in the stitching and its pan-tilt unit are equipped with an RTK-GPS rover receiver to acquire the centimeter-level geographic coordinates and attitude angles of the camera's optical center in real time. An absolute geographic coordinate point in the apron area is selected as the origin of the panoramic canvas, such as the ground point directly below the control tower, and a geographic coordinate system with due north, due east, and vertically upward is defined. The latitude and longitude coordinates of each camera are converted into planar projected coordinates under this geographic coordinate system.
[0031] S22. Based on the planar projection coordinates of each camera and the pre-calibrated camera intrinsic parameters, calculate the projection matrix of each camera, and use the projection matrix to map the multiple video streams onto the panoramic canvas. For each camera, its projection matrix From the camera intrinsic parameter matrix and extrinsic parameter matrix The product is composed of: .
[0032] in, , , For normalized focal length, ( , The coordinates of the principal point in the image are denoted as ; the extrinsic parameter matrix is... By rotation matrix R Translation vector t The structure is determined by the planar projection coordinates and attitude angles of each camera. Using this projection matrix, pixels on the image plane of each camera are mapped to planar projection coordinates in the geographic coordinate system, thereby achieving real-time mapping of multiple video streams to a unified panoramic canvas.
[0033] S23. Select static areas with stable visual characteristics on the panoramic canvas as spatial anchor points, and solidify the mapping relationship between the absolute geographic coordinates and pixel coordinates of the spatial anchor points. Specifically, based on the overlap relationship of the static field of view of each camera and the fixed scene characteristics, automatically extract and solidify a sufficient number of spatial anchor points. Each spatial anchor point includes its pixel coordinates and corresponding absolute geographic coordinates on the geographic panoramic canvas. The static areas with stable visual characteristics include at least the corner points of road marking lines within the overlapping areas of the static field of view of each camera. The spatial anchor points are distributed in different areas of the panoramic canvas, and at least one of the spatial anchor points is distributed in the preset neighborhood of each original stitching seam to ensure that each stitching seam has a clear spatial reference to follow during adjustment. These anchor points are physical constraints to prevent spatial reference drift in the future.
[0034] The spatial anchor points are used to form a spatial reference for adjusting the seams, and each original seam corresponds to at least one set of spatial anchor points. In the subsequent candidate seam generation step, the anchor point deviation term uses the pixel coordinates of the spatial anchor points as the reference point to calculate the cumulative distance cost of the candidate path deviating from the reference point.
[0035] S3. Real-time detection and tracking of moving targets in the video stream, obtaining their semantic category and contour information, and mapping them to the panoramic canvas coordinate system; specifically including: S31. The video stream is processed frame-by-frame using a pre-trained target detection and segmentation model. This model is a multi-task deep learning network that outputs in parallel the rotated bounding box, pixel-level mask contour, and semantic category of the moving target. Specifically, the backbone of this network can employ architectures such as ResNet or EfficientNet for multi-scale feature extraction. Three types of information are output in parallel on the detection head: the first is the rotated bounding box of the target and its coordinates in the image coordinate system; the second is the fine semantic category of the target, which includes at least large passenger aircraft, boarding bridges, baggage trailers, refueling trucks, shuttle buses, and ground staff; the third is the pixel-level mask of the target's fine contour generated through the instance segmentation branch.
[0036] S32. Perform multi-target tracking on moving targets in consecutive video frames, and obtain the unique identifier and motion state information of the moving targets; send the detection results of adjacent frames into the multi-target tracker, assign a unique identifier to each target and estimate its motion state information. Preferably, the multi-target tracking is implemented based on the Kalman filter algorithm, and the motion state information includes at least motion speed and motion direction.
[0037] S321. Use a state estimation algorithm to perform temporal modeling of the historical trajectory of the moving target, and predict the position and kinematic parameters of the moving target in the current frame; Taking Kalman filtering as an example, let the target's state vector at time t-1 be... This includes position and velocity information. The prediction equation is:
[0038] in, Here is the state transition matrix. For the control matrix, For control vectors, Let covariance matrix be the variance matrix. Let be the process noise covariance matrix.
[0039] S322. Extract the detection features of the moving target in the current frame and perform data association matching with the predicted position and kinematic parameters to determine the correspondence between the detected target and the existing trajectory. Specifically, calculate the appearance feature similarity between the predicted state of the detected target and the existing tracking trajectory in the current frame to construct a cost matrix. For example, extract the appearance feature vector of the detected target and calculate the cosine similarity or Euclidean distance with the feature vector of the existing trajectory as elements of the cost matrix. Use the Hungarian algorithm to solve the cost matrix to determine the optimal matching relationship between the detected target and the existing tracking trajectory in the current frame.
[0040] S323. According to the correspondence, when the detected target matches an existing trajectory, the unique identifier corresponding to the trajectory is maintained, and the motion trajectory of the moving target is updated according to the correspondence. The motion state information is extracted, which includes at least instantaneous velocity and motion direction. Taking Kalman filtering as an example, the update equation is:
[0041] in, For the observation matrix, To observe the noise covariance matrix, The detection observation value for the current frame. For Kalman gain, This is the updated state estimate. The updated state information is extracted, including at least instantaneous velocity and direction of motion.
[0042] S324. When the detected target fails to match any existing trajectory, a new unique identifier is assigned to the detected target, and its motion trajectory and motion state information are initialized based on the current frame. During initialization, the target's current position is taken as the starting position of the trajectory, and the initial values of velocity and direction are set to 0 or estimated based on the observation values of several consecutive frames.
[0043] S325. When an existing tracking trajectory fails to associate with any detected target within a preset number of consecutive frames, it is determined that the tracking target has left the scene, the trajectory is terminated and its unique identifier is released.
[0044] Each target object in the list of moving target panoramic vector objects contains at least the following fields: unique identifier, semantic category, motion speed, motion direction, and a set of contour points in the panoramic canvas coordinate system.
[0045] S33. Based on the projection matrix of each camera, the rotating rectangular bounding box and pixel-level mask contour are transformed from the image coordinate system to the panoramic canvas coordinate system to generate a list of moving target panoramic vector objects with identity, semantic category and contour information to complete the spatial mapping.
[0046] For pixels in the image coordinate system Using the projection matrix in step S22 Calculate its coordinates in the panoramic canvas coordinate system and map them to the panoramic canvas coordinate system. .
[0047] By performing the above projection transformation on the corner coordinates of all target detection boxes and the mask contour point set, the target contour information in the panoramic canvas coordinate system can be obtained.
[0048] S4. Generate multiple candidate seams for each original seam. The constraints used in generating these seams include at least: image difference minimization constraints, differential target avoidance constraints driven by the semantic category and contour information, and constraints related to proximity to the spatial anchor points; specifically including: S41. For each original stitching seam between any two adjacent camera images on the panoramic canvas, construct an energy function containing a data term, a target avoidance term, and an anchor point deviation term. The data term corresponds to the image difference minimization constraint, the target avoidance term corresponds to the differentiated target avoidance constraint, and the anchor point deviation term corresponds to the constraint of being close to the spatial anchor point. Energy function It can be represented as a weighted sum of three terms:
[0049] in, Indicates the candidate splice seam path, , , These are the weighting coefficients for each item.
[0050] The data item The cut set used to penalize images where the seam passes through is significantly different from the original image. It is determined by a weighted average of the color gradient and edge intensity of the overlapping region between the two images. Specifically, for adjacent pixels within the overlapping region... and The data item is defined as:
[0051] in, For two images at pixel positions Color difference at the location It is the set of all adjacent pixel pairs in the overlapping region.
[0052] S42. Based on the semantic category of the moving target and the pixel-level mask contour, dynamically assign penalty weights to the target avoidance term; The target avoidance item Using the list of moving target panoramic vector objects output in step S3, penalties are applied to candidate paths that fall into or approach the target contour mask. The penalty intensity is related to the semantic category of the target; specifically, the penalty weight for avoiding large equipment and critical security areas is higher than the penalty weight for avoiding small equipment and non-critical areas. The large equipment includes at least large passenger aircraft and refueling trucks, and the small equipment includes at least ground crew.
[0053] Furthermore, the penalty intensity is also related to the speed of the moving target; the higher the speed of the target, the greater the penalty weight. For each pixel on the candidate path... The target avoidance item can be represented as:
[0054] Where O is the set of all moving targets, The weighting coefficients are based on the target semantic category, with the order being: large passenger aircraft weight > refueling truck weight > ground crew weight. For pixels The distance function to the target contour o results in a larger penalty for closer distances. These are weighting coefficients based on the target's motion speed; the higher the speed, the greater the weight.
[0055] S43. By setting multiple sets of different values for the weight coefficients of each item in the energy function within the preset neighborhood of the original splicing seam, multiple sets of different weight combinations are generated. The graph cut algorithm is run using each set of weight combinations to generate multiple candidate splicing seams, and the path information and total cost of each candidate splicing seam are recorded.
[0056] For example, set up three weight combinations: Conservative combination: =0.4, =0.2, =0.4, the weight of the anchor deviation term is greater than that of the target avoidance term.
[0057] Balanced combination: =0.33, =0.33, =0.34.
[0058] Radical combination: =0.3, =0.5, =0.2, the weight of the target avoidance item is greater than that of the anchor deviation item.
[0059] Solve the energy function using the graph cut algorithm. The optimal path. The core idea of the graph cut algorithm is to construct the overlapping regions of the image as a graph structure, where pixels are the vertices of the graph, and the edge weights between adjacent pixels are determined by the three costs mentioned above. Then, the optimal cut set that minimizes the energy function is solved by the maximum flow / minimum cut algorithm.
[0060] The anchor point deviation term Calculate the distance between each pixel on the candidate path and the spatial anchor point, and apply a cost that increases with distance. Specifically:
[0061] Where A is the set of spatial anchor points corresponding to the current splice seam. anchor point Pixel coordinates on the panoramic canvas For anchor point weight coefficients, For pixels With anchor point The square of the Euclidean distance between them.
[0062] The multiple sets of different weight combinations include various adjustment preferences ranging from conservative to aggressive. In the conservative combination, the weight of the anchor deviation term is greater than the weight of the target avoidance term, while in the aggressive combination, the weight of the target avoidance term is greater than the weight of the anchor deviation term.
[0063] By adjusting the weighting coefficients, multiple different weight combinations are generated, each corresponding to a different adjustment preference. The graph cut algorithm is run multiple times to generate a total of several candidate seams, ranging from conservative to aggressive, and the path point sequence and total cost of each candidate seam are recorded. This step provides a diverse selection space for subsequent global conflict decision-making.
[0064] S5. When a trigger condition is detected, a global cost function containing the constraints of the restricted area mask map is constructed. One seam to be adjusted is selected from the candidate seams to minimize the combined disturbance of each seam while avoiding the restricted areas. The seams are then adjusted based on the selection result. Specifically, this includes: S51. Introduce the restricted area mask as a hard constraint into the global cost function; In the subsequent optimization process, for any candidate path, if any pixel point corresponds to a restricted area pixel value in the restricted area mask image, then the candidate combination is determined to be illegal and excluded from the optimization solution. Specifically, in the process of solving the global cost function, for any candidate path, if any pixel point corresponds to a restricted area pixel value in the restricted area mask image, then the candidate combination is determined to be illegal and excluded from the optimization solution.
[0065] S52. Construct the global cost function, including: the sum of the candidate path costs selected by each of the seams to be adjusted, and a global conflict penalty term; the global conflict penalty term is used to: for any two or more seams that need to be adjusted, when the adjustment behavior of their respective selected candidate paths causes the same static marker on the panoramic canvas to have a misalignment risk exceeding a preset threshold, it is determined as a global conflict and the penalty value is increased. Suppose there are K seams that need adjustment. For the kth seam... The first seam is selected from its candidate set. There are 10 candidate paths, and the total cost of the path is 100. Global cost function Represented as:
[0066] in, This is a global conflict penalty item.
[0067] The global conflict penalty term specifically refers to: for any two or more seams that need adjustment, calculating the offset vector of their selected candidate paths from their spatial anchor points during this adjustment. Let the first... The anchor point position of the splice seam is The selected candidate path location is Then, the offset vector of the splice seam from its spatial anchor point during this adjustment is:
[0068] When these seam adjustments cause a misalignment risk exceeding a preset pixel threshold (e.g., 5 pixels) on the same static ground marker on the panoramic canvas (such as a stop line marker for a camera position) due to asymmetrical stretching of the seams on both sides, it is considered a global conflict. In this case, a very large penalty value M is added to the total cost. = M, if there exist two seams m and n such that... Where T is the preset misalignment tolerance threshold. Let M be the Euclidean norm, and M be a penalty value that is much larger than the cost of the conventional candidate path. This forces the optimization solver to abandon adjustments that would lead to inconsistencies in the overall spatial baseline.
[0069] S53. When the spatial overlap between the moving target that triggers the adjustment and the anchor point buffer of the original splice seam exceeds a preset area threshold, a global optimization decision is triggered. The global cost function is solved using an optimization solution algorithm. A candidate path is selected for each splice seam to be adjusted from the candidate splice seams. The splice seam is switched to the selected candidate splice seam according to the solution result.
[0070] The specific triggering condition is as follows: when step S3 detects that the geographic panoramic outline of at least one moving target spatially overlaps with the anchor point buffer of any original stitching seam, and the degree of overlap exceeds a preset area threshold, a global optimization decision is triggered.
[0071] This integer programming problem can be solved using heuristic search, genetic algorithms, or dynamic programming. The objective function is to minimize the combined perturbation of all seams that need adjustment. After solving, the algorithm outputs the candidate path number to be adopted for each seam involved in the adjustment and performs the seam switching.
[0072] S6. After the moving target that triggered the adjustment leaves, gradually move the deviated seam back to its corresponding spatial anchor point position; specifically including: S61. Continuously monitor the moving target that triggers the adjustment. When the moving target is detected to have completely left the anchor point buffer and the duration exceeds the preset regression delay time, trigger the progressive regression mechanism. When the moving target detection list in step S3 shows that all moving targets that trigger the adjustment of a certain seam have completely left the anchor point buffer of the seam and have stably left for more than one preset regression delay time, start the progressive regression program.
[0073] S62. Within the preset number of regression frames, the coordinates of each control point of the current splicing seam are gradually moved back to their corresponding spatial anchor point positions using interpolation.
[0074] The regression is not an instantaneous jump, but rather a gradual shift of the coordinates of each control point in the current stitching seam back to its corresponding anchor point coordinates over a predetermined number of consecutive regression frames using linear interpolation. The step size for each frame is... The distance is determined by dividing the total distance of the current control point from its corresponding spatial anchor point by the preset number of regression frames: ,in, This represents the total distance the current control point deviates from the anchor point. This is the preset number of regression frames.
[0075] For example, let the position of the control point in frame t be... The anchor point is If the number of regression frames is N, then the control point position in the nth frame is:
[0076] in, To return to the position of the control point at the starting moment, n increases from 0 to N-1. The movement step size is constant for each frame to ensure a smooth transition that is imperceptible to the human eye.
[0077] S7. Based on the adjusted or moved seams, fuse the multiple video streams and output them as a panoramic video. Specifically, this includes: S71. Based on the currently determined stitching seam path, map the pixel coordinates of the multiple video streams to the panoramic canvas coordinate system, and resample the non-integer coordinates. Based on the stitching seam path determined in step S5 or S6, the mapping area for each video image on the panoramic canvas is determined. Using the projection matrix P calculated in step S22, the color values of pixels located within the mapping area in the current frame image of each camera are mapped to the corresponding pixel positions on the panoramic canvas defined by the stitching seam.
[0078] Since the mapped coordinates are usually non-integer, resampling is required. Preferably, a bilinear interpolation algorithm is used to determine the pixel values at non-integer coordinates. For target coordinates... pixel value at It is obtained by weighted averaging of its four nearest integer pixels:
[0079] in, .
[0080] When the stitching seam is switched or moved back, the mapping area is dynamically updated as the stitching seam path changes, so that the stitching seam position of each frame of panoramic video remains synchronized with the current decision result.
[0081] S72. In the overlapping area of adjacent video streams, a multi-band fusion algorithm is used to perform pixel-level fusion in order to eliminate brightness and color differences at the splicing seam. The multi-band fusion algorithm includes the following steps: (1) Decompose the image of the overlapping region into multiple frequency bands. Specifically, the input image is decomposed into multiple layers of different spatial frequencies using Laplacian pyramid decomposition, with each layer representing image information of a frequency band.
[0082] (2) Weighted fusion is performed on each frequency band separately. Among them, the low frequency band (reflecting the overall color and brightness information of the image) adopts linear weighted fusion, and the fusion weight is determined according to the distance from the pixel to the stitching seam; the high frequency band (reflecting the details and texture information of the image) adopts fusion based on the Laplacian pyramid, and the pixel value with a larger gradient amplitude is selected at the stitching seam to retain more texture details.
[0083] (3) Reconstruct the fused frequency bands into an output image. Specifically, through the Laplace pyramid reconstruction process, upsample layer by layer starting from the highest layer and add to the next layer to finally obtain the fused output image.
[0084] S73. Perform real-time video encoding on the fused panoramic canvas frames and push them to the video streaming server via a streaming media protocol to output the panoramic video.
[0085] The continuously generated panoramic video frames are encoded in real time according to the standard video encoding format and pushed to the video streaming server through the real-time streaming protocol for real-time access by terminal equipment such as tower control and scene monitoring.
[0086] like Figure 2 As shown, this embodiment provides a semantically aware dynamic panoramic stitching system for an airport tarmac scene. This system is used to implement the methods described in the above embodiments. The system includes: The video access module is used to connect multiple network cameras and acquire and synchronize multiple video streams from each camera in real time.
[0087] A high-precision positioning module is used to acquire the real-time positioning information of each camera participating in the stitching and to calculate the planar projection coordinates of each camera. This high-precision positioning module includes: a real-time dynamic differential GPS reference station deployed on the airport surface; and a real-time dynamic differential GPS rover receiver installed on each camera and its pan-tilt unit, used to acquire the centimeter-level geographic coordinates and attitude angles of the optical center of each camera in real time.
[0088] The semantic map management module is used to store and manage intrusive restricted area mask images and spatial anchor point data. The restricted area mask images are generated based on key geographic features in the airport apron scene, and the spatial anchor points are fixed on a panoramic canvas with absolute geographic coordinate references.
[0089] The intelligent analysis engine connects the video access module and the high-precision positioning module to detect and track moving targets in the video stream in real time, obtain their semantic category and contour information, and map the moving targets to the panoramic canvas coordinate system based on the projection matrix of each camera.
[0090] The intelligent analysis engine includes: a target detection and segmentation unit, used to process the video stream frame by frame using a pre-trained target detection and segmentation model, and output the rotating bounding box, pixel-level mask contour, and semantic category of the moving target in parallel; a multi-target tracking unit, used to perform multi-target tracking on moving targets in continuous video frames, and obtain the unique identifier and motion state information of the moving target; and a coordinate mapping unit, used to transform the rotating bounding box and the pixel-level mask contour from the image coordinate system to the panoramic canvas coordinate system based on the projection matrix of each camera, and generate a list of panoramic vector objects of moving targets with identification, semantic category, and contour information.
[0091] The global optimization scheduling module, connecting the intelligent analysis engine and the semantic map management module, is used to construct a global cost function containing the constraints of the restricted area mask map when a triggering condition is detected. It selects one seam from multiple candidate seams for each seam to be adjusted, minimizing the overall disturbance of each seam while avoiding the restricted area, and outputs a seam adjustment command. This global optimization scheduling module is also used to gradually move the deviated seams back to their corresponding spatial anchor points after the moving target that triggered the adjustment has left.
[0092] The panoramic rendering and output module, connected to the video access module and the global optimization scheduling module, is used to fuse the multiple video streams into a panoramic video based on the adjusted or moved stitching seams. Specifically, this module is used to: map the pixel coordinates of the multiple video streams to the panoramic canvas coordinate system based on the currently determined stitching seam path, and resample non-integer coordinates; perform pixel-level fusion using a multi-band fusion algorithm in the overlapping areas of adjacent video streams to eliminate brightness and color differences at the stitching seams; perform real-time video encoding on the fused panoramic canvas frames, and push them to the video stream server via a streaming media protocol to output the panoramic video. Preferably, the panoramic rendering and output module utilizes a graphics processor to accelerate texture mapping and fusion processing.
[0093] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A semantically perceptive dynamic panoramic stitching method for airport tarmac scenarios, characterized in that, Includes the following steps: S1. Generate a restricted area mask map that is inaccessible to the splicing seams based on the key geographical elements in the airport apron scene; S2. Acquire and synchronize multiple video streams from various cameras in real time; A panoramic canvas with absolute geographic coordinate reference is established based on real-time positioning information, and spatial anchor points are fixed on the panoramic canvas. S3. Real-time detection and tracking of moving targets in the video stream, obtaining their semantic category and contour information, and mapping them to the panoramic canvas coordinate system; S4. Generate multiple candidate seams for each original seam. The constraints used in generating the seams include at least: image difference minimization constraint, differential target avoidance constraint driven by the semantic category and contour information, and constraint of proximity to the spatial anchor point. S5. When a triggering condition is detected, a global cost function containing a restricted area mask diagram constraint is constructed. One seam to be adjusted is selected from the candidate seams to minimize the combined disturbance of each seam while avoiding the restricted area. The seams are then adjusted according to the selection result. S6. After the moving target that triggered the adjustment leaves, gradually move the deviated splice seam back to its corresponding spatial anchor point position. S7. Based on the adjusted or moved seams, merge the multiple video streams and output them as a panoramic video.
2. The semantically perceptive dynamic panoramic stitching method for airport tarmac scenarios according to claim 1, characterized in that, The steps in S1 include: S11. Obtain a geographic information base map of the airport apron scene, and plot key geographic features on the geographic information base map. The key geographic features include at least one of the following: taxiway centerline and pavement edge line, parking stand safety line, vehicle service lane boundary line, and jet bridge activity range envelope. S12. Perform bilateral buffer expansion on at least one type of linear feature among the key geographic features to form a buffer zone, and mark the buffer zone as a no-entry zone for the splicing seam; S13. Rasterize the marked geographic information base map to generate a binarized restricted area mask map, where the pixel value of the restricted area is the first value and the pixel value of the free area is the second value.
3. The semantically perceptive dynamic panoramic stitching method for airport tarmac scenarios according to claim 2, characterized in that, In S2, the step of establishing a panoramic canvas with absolute geographic coordinate reference based on real-time positioning information and fixing spatial anchor points on the panoramic canvas includes: S21. Obtain the real-time positioning information of each camera participating in the stitching, and convert the latitude and longitude coordinates in the real-time positioning information into unified planar projection coordinates to construct a panoramic canvas with absolute geographic coordinate reference. S22. Based on the planar projection coordinates of each camera and the pre-calibrated camera intrinsic parameters, calculate the projection matrix of each camera, and use the projection matrix to map the multiple video streams onto the panoramic canvas. S23. Select a static area with stable visual characteristics on the panoramic canvas as a spatial anchor point, and solidify the mapping relationship between the absolute geographic coordinates and pixel coordinates of the spatial anchor point; the static area with stable visual characteristics includes at least the corner points of the road marking lines in the overlapping areas of the static field of view of each camera; the spatial anchor points are distributed in different areas of the panoramic canvas, and at least one spatial anchor point is distributed in the preset neighborhood of each original stitching seam.
4. The semantically perceptive dynamic panoramic stitching method for airport tarmac scenarios according to claim 3, characterized in that, The steps in S3 include: S31. The video stream is processed frame by frame using a pre-trained target detection and segmentation model. The target detection and segmentation model is a multi-task deep learning network that outputs the rotating bounding box, pixel-level mask contour, and semantic category of the moving target in parallel. S32. Perform multi-target tracking on moving targets in continuous video frames, and obtain the unique identifier and motion state information of the moving targets; S33. Based on the projection matrix of each camera, the rotating rectangular bounding box and pixel-level mask contour are transformed from the image coordinate system to the panoramic canvas coordinate system to generate a list of moving target panoramic vector objects with identity, semantic category and contour information to complete the spatial mapping.
5. The semantically perceptive dynamic panoramic stitching method for airport tarmac scenarios according to claim 4, characterized in that, The steps in S32 include: S321. Use a state estimation algorithm to perform temporal modeling of the historical trajectory of the moving target, and predict the position and kinematic parameters of the moving target in the current frame; S322. Extract the detection features of the moving target in the current frame and perform data association matching with the predicted position and kinematic parameters to determine the correspondence between the detected target and the existing trajectory. S323. According to the correspondence, when the detected target matches an existing trajectory, the unique identifier corresponding to the trajectory is maintained, and the motion trajectory of the moving target is updated according to the correspondence. The motion state information is extracted, and the motion state information includes at least instantaneous speed and motion direction. S324. When the detected target fails to match any existing trajectory, assign a new unique identifier to the detected target and initialize its motion trajectory and motion state information based on the current frame; S325. When an existing tracking trajectory fails to associate with any detected target within a preset number of consecutive frames, it is determined that the tracking target has left the scene, the trajectory is terminated and its unique identifier is released.
6. The semantically perceptive dynamic panoramic stitching method for airport tarmac scenarios according to claim 5, characterized in that, The steps in S4 include: S41. For each original stitching seam between any two adjacent camera images on the panoramic canvas, construct an energy function containing a data term, a target avoidance term, and an anchor point deviation term. The data term corresponds to the image difference minimization constraint, the target avoidance term corresponds to the differentiated target avoidance constraint, and the anchor point deviation term corresponds to the constraint of being close to the spatial anchor point. S42. Based on the semantic category of the moving target and the pixel-level mask contour, dynamically assign penalty weights to the target avoidance term; S43. By setting multiple sets of different values for the weight coefficients of each item in the energy function within the preset neighborhood of the original splicing seam, multiple sets of different weight combinations are generated. The graph cut algorithm is run using each set of weight combinations to generate multiple candidate splicing seams, and the path information and total cost of each candidate splicing seam are recorded.
7. The semantically perceptive dynamic panoramic stitching method for airport tarmac scenarios according to claim 6, characterized in that, The steps in S5 include: S51. Introduce the restricted area mask as a hard constraint into the global cost function; S52. Construct the global cost function, including: the sum of the candidate path costs selected by each of the seams to be adjusted, and a global conflict penalty term; the global conflict penalty term is used to: for any two or more seams that need to be adjusted, when the adjustment behavior of their respective selected candidate paths causes the same static marker on the panoramic canvas to have a misalignment risk exceeding a preset threshold, it is determined as a global conflict and the penalty value is increased. S53. When the spatial overlap between the moving target that triggers the adjustment and the anchor point buffer of the original splice seam exceeds a preset area threshold, a global optimization decision is triggered. The global cost function is solved using an optimization solution algorithm. A candidate path is selected for each splice seam to be adjusted from the candidate splice seams. The splice seam is switched to the selected candidate splice seam according to the solution result.
8. The semantically perceptive dynamic panoramic stitching method for airport tarmac scenarios according to claim 7, characterized in that, The steps in S6 include: S61. Continuously monitor the moving target that triggers the adjustment. When it is detected that the moving target has completely left the anchor point buffer and the duration exceeds the preset regression delay time, trigger the progressive regression mechanism. S62. Within the preset number of regression frames, the coordinates of each control point of the current splicing seam are gradually moved back to their corresponding spatial anchor point positions using interpolation.
9. The semantically perceptive dynamic panoramic stitching method for airport tarmac scenarios according to claim 1, characterized in that, The steps in S7 include: S71. Based on the currently determined stitching seam path, map the pixel coordinates of the multiple video streams to the panoramic canvas coordinate system, and resample the non-integer coordinates. S72. In the overlapping area of adjacent video streams, a multi-band fusion algorithm is used to perform pixel-level fusion in order to eliminate brightness and color differences at the splicing seam. S73. Perform real-time video encoding on the fused panoramic canvas frames and push them to the video streaming server via a streaming media protocol to output the panoramic video.
10. A semantically perceptive dynamic panoramic stitching system for airport tarmac scenarios, characterized in that, include: The video access module is used to connect multiple network cameras and acquire and synchronize multiple video streams from each camera in real time. The high-precision positioning module is used to obtain the real-time positioning information of each camera participating in the stitching and to calculate the planar projection coordinates of each camera. The semantic map management module is used to store and manage the non-intrusive restricted area mask map and spatial anchor point data. The restricted area mask map is generated based on key geographic elements in the airport apron scene, and the spatial anchor points are fixed on the panoramic canvas with absolute geographic coordinate reference. The intelligent analysis engine connects the video access module and the high-precision positioning module to detect and track moving targets in the video stream in real time, obtain their semantic category and contour information, and map the moving targets to the panoramic canvas coordinate system based on the projection matrix of each camera. The global optimization scheduling module connects the intelligent analysis engine and the semantic map management module. When a triggering condition is detected, it constructs a global cost function containing a restricted area mask map constraint, selects one seam from multiple candidate seams for each seam to be adjusted, minimizes the combined disturbance of each seam while avoiding the restricted area, and outputs a seam adjustment command. The panoramic rendering and output module, connected to the video access module and the global optimization scheduling module, is used to fuse and output the multi-channel video streams as a panoramic video based on the adjusted or moved stitching seams.
