An airport terminal visual interaction method and device based on digital twinning and a medium
By constructing a 3D digital twin scene of the terminal building and combining view frustum culling and hierarchical rendering technologies, the problem of visualizing equipment locations and pedestrian positions in the terminal building was solved, achieving efficient real-time rendering and accurate display of passenger flow density.
Patent Information
- Application Number
- CN202611162772.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-03
- Publication Date
- 2026-11-27
AI Technical Summary
The terminal building has a large number of equipment points, and existing technology cannot effectively visualize the pedestrian location information in two-dimensional video surveillance and the equipment points in three-dimensional scenes, resulting in decreased frame rate and screen stuttering.
By constructing a 3D digital twin scene of the terminal building, and combining frustum culling and hierarchical rendering technologies, the rendering load of massive points is reduced. Furthermore, by generating heat maps through video coordinate transformation and kernel density estimation, accurate visualization of passenger flow density on the surface of the 3D model is achieved.
It improved real-time rendering performance, enabled precise visualization of device locations and pedestrian positions, and enhanced the visual and interactive effects of the terminal building.
Smart Images

Figure CN123179646A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of airport terminal visualization technology, specifically relating to an airport terminal visualization interaction method, equipment, and medium based on digital twins. Background Technology
[0002] The number of devices and maintenance points within an airport terminal is enormous. A single terminal typically contains thousands of devices requiring monitoring, including check-in counters, security checkpoints, boarding gates, baggage conveyors, elevators, escalators, air conditioning units, and lighting distribution boxes. These devices all need to be represented in a 3D scene as geometric models or icons. The rendering capabilities of graphics processing units (GPUs) have limits; the number of triangles and rendering calls that can be processed per frame is constrained by the GPU's computing resources and memory bandwidth. Rendering all devices as high-precision geometric models results in rendering calls and vertex processing exceeding the GPU's processing capacity, leading to frame rate drops and stuttering.
[0003] Video surveillance systems output a two-dimensional pixel array, with pedestrians marked as bounding boxes. The bottom edge of the bounding box corresponds to the point where the pedestrian contacts the ground, but the coordinates of this position are pixel values in the image coordinate system, not their actual positions in three-dimensional space. Images captured by a monocular camera lose depth information; the same pixel position corresponds to different spatial locations based on ground elevation values on different floors. Therefore, pedestrian position information from the video feed cannot be directly superimposed onto a three-dimensional scene to create a spatially visualized density distribution. Summary of the Invention
[0004] This invention provides a visualization and interactive method for airport terminals based on digital twins, which achieves efficient integration of heterogeneous data and 3D scenes. It reduces the rendering load of massive points by using frustum culling and hierarchical rendering, thereby improving real-time rendering performance. It generates heat maps by using video coordinate transformation and kernel density estimation, thereby achieving accurate visualization of passenger flow density on the surface of the 3D model.
[0005] Includes the following steps: S1: Obtain airport operation data and terminal building spatial structure data; S2: Construct a 3D digital twin scene of the terminal building based on spatial structure data, and overlay weather and lighting rendering layers; S3: Generate equipment locations and repair locations in the 3D scene, perform LOD hierarchical rendering on the locations within the view frustum, and generate a virtual terminal view; S4: Standardize the operational data, establish a spatial mapping relationship between data types and 3D scene areas, and generate comprehensive situational data; S5: Bind spatially related items in the comprehensive situational data to the corresponding area of the virtual view, and display non-spatial items as charts in the sidebar; S6: Receives interactive instructions from the virtual view to locate and display target details, and supports filtering and labeling of departing equipment categories; S7: Convert pedestrian coordinates in video surveillance to world coordinates in a 3D scene to generate passenger flow distribution data, generate a heat map layer in the corresponding area of the virtual view, and generate alarm markers or event work orders when passenger flow exceeds the threshold or abnormal behavior is identified.
[0006] According to another embodiment of this application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of a digital twin-based airport terminal visualization and interaction method.
[0007] According to another embodiment of this application, a storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the digital twin-based airport terminal visualization and interaction method.
[0008] As can be seen from the above technical solutions, the present invention has the following advantages: This invention reads the component geometric description data from the BIM model file and loads this data into the vertex buffer and index buffer of the graphics rendering engine. The graphics rendering engine directly uses the data in the vertex buffer and index buffer to perform drawing operations. External weather environment data controls the on / off state of particle emitters, the selection of particle textures, and the numerical values of parallel light color components through numerical encoding. Weather effects and lighting phase effects are superimposed onto the surface of the 3D model as additional rendering layers, without changing the geometric data of the 3D model; only the output color values are adjusted during the fragment shading stage.
[0009] This invention uses a frustum rejection mechanism to filter out points within the current field of view from thousands of device and repair points, excluding points outside the field of view from the rendering queue. For points remaining in the rendering queue, the corresponding geometric model data is loaded based on one of three preset precision levels selected according to their distance from the viewpoint. Near-distance points use a high-precision model containing all geometric details, while far-distance points use a simplified model containing only the main outlines or a 2D icon instead of a 3D model. After filtering and grading, the amount of rendering data is compressed to a level that the graphics processing unit can efficiently handle.
[0010] This invention parses the time field in the original data into integer timestamps in a unified format, and the spatial location field into three-dimensional coordinate values in a unified format. Integer timestamps facilitate comparisons of chronological order, while three-dimensional coordinate values facilitate spatial distance calculations. All situational data records obtained after data standardization follow the same field definition rules, allowing for traversal and query operations to process all records using the same code path. Based on data standardization, the spatial coordinate values of each record are matched against the floor elevation range and region boundary polygons in the scene graph structure. The matching results are written into the record as region labels, enabling each record to carry its own spatial unit identifier within the three-dimensional scene.
[0011] This invention establishes a mapping relationship from 2D image coordinates to 3D world coordinates using intrinsic and extrinsic parameter matrices and distortion coefficients. Ground elevation constraints are used to supplement the depth dimension missing in monocular vision, converting the location of pedestrian feet in a video image into precise spatial coordinates on the ground in a 3D scene. Kernel density estimation transforms the discrete pedestrian coordinate group into a continuous density scalar field; the smoothing properties of the Gaussian kernel function ensure continuous spatial variation of the density field. A color mapping table converts density scalar values into red, green, and blue color component values, forming a thermal texture image. This texture image is superimposed onto a 3D surface mesh through mapping operations of texture sampling units, forming a heatmap precisely aligned with the 3D scene. When the density exceeds a threshold, a flashing warning sign is generated at the corresponding location in the 3D scene. Upon triggering abnormal behavior recognition, an event work order is generated and an anomaly marker is output. Attached Figure Description
[0012] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the description will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 A flowchart of a digital twin-based visualization and interaction method for airport terminals; Figure 2 A panoramic view of the airport terminal building; Figure 3 A schematic diagram of an airport terminal building based on weather changes; Figure 4 A schematic diagram showing the interior of an airport terminal building; Figure 5 A schematic diagram illustrating the thermal display of an airport terminal building; Figure 6 A schematic diagram illustrating travel options at the airport terminal. Figure 7 This is a schematic diagram of an electronic device. Detailed Implementation
[0014] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0015] Please see Figures 1 to 6 The diagram shows a flowchart of a digital twin-based airport terminal visualization and interaction method in a specific embodiment. The method includes: S1: Obtain airport operation data and terminal building spatial structure data.
[0016] In some embodiments, network communication is established with multiple airport business subsystems, including a flight information management system, baggage handling system, passenger service system, asset management system, repair work order system, video surveillance platform, and meteorological information server. Airport operational data and terminal building spatial structure data can be obtained. Specifically, this includes: Flight status data includes the unique identifier of all inbound and outbound flights on the day, the scheduled arrival and departure times, the estimated arrival and departure times, the actual arrival and departure times, and the flight status code.
[0017] Baggage transfer data includes baggage tag number, associated flight identification code, baggage inspection node number on the conveyor belt, and inspection timestamp sequence.
[0018] Passenger flow data includes passenger identification, check-in counter number, security checkpoint number, boarding gate number, and timestamps for each point of passage.
[0019] The resource and equipment ledger data includes the equipment's unique code, equipment type code, floor number and plan coordinates of the equipment's installation location, and the date the equipment was put into use.
[0020] Video surveillance data includes camera ID, video stream address, and current frame image data.
[0021] External weather and environmental data include weather type codes, light intensity values, and solar altitude angles.
[0022] The terminal building's spatial structure data is obtained by reading the terminal building's architectural information model (BIM) file, which contains the geometric descriptions and spatial location information of all building components. From the BIM file, the elevation values of each floor, the horizontal projection outlines of each floor, the boundary coordinate strings of each functional zone, and the three-dimensional coordinate values of each equipment installation point are extracted.
[0023] The floor plan layout data is stored in a computer-aided design file format, which includes room numbers, room names, and polylines for room boundaries on each floor.
[0024] The regional boundary coordinate data defines each functional zone as a closed polygon, and each polygon consists of a set of vertex coordinate pairs arranged in clockwise or counterclockwise order.
[0025] The spatial coordinate data of the equipment is stored in tabular form, with each row corresponding to one equipment and recording the equipment code, the floor number, and the X-axis and Y-axis coordinates on the floor plane.
[0026] S2: Construct a 3D digital twin scene of the terminal building based on the terminal building's spatial structure data, and overlay weather and lighting rendering layers.
[0027] In some embodiments, when parsing the terminal building's spatial structure data, the entity components of walls, columns, beams, slabs, and floors are identified, and their geometric representation data is extracted. The geometric representation data includes arrays of vertex coordinates, triangular facet indices, and normal vectors for each component. A static mesh model of the terminal building's main structure is constructed. The outlines of each floor in the floor plan layout data are read, and the surfaces within the outline range of each floor are planarly divided in the 3D mesh model to generate a passable ground mesh for that floor. The boundary polygons of each region in the region boundary coordinate data are read, and the area covered by the polygons is marked on the ground mesh, assigning each region a unique region identifier.
[0028] The process of processing external weather environment data is as follows: read the weather type code, and when the code corresponds to rain or snow, create a particle emitter in the 3D scene. The emission position of the particle emitter is set in the area above the virtual camera's view frustum.
[0029] The particle emitter selects particle texture maps based on the weather type: elongated elliptical texture maps for rainy weather and hexagonal snowflake texture maps for snowy weather.
[0030] The emission rate parameter of the particle emitter is linearly proportional to the weather intensity code value.
[0031] The process for handling lighting phase effects is as follows: read the solar altitude angle value, and when the solar altitude angle is greater than the preset daytime threshold, set the lighting color of the scene's parallel light to the daytime color temperature value, and the direction of the parallel light is consistent with the direction of the solar altitude angle.
[0032] When the solar altitude angle is less than the preset nighttime threshold, the ambient light intensity is set to a low illuminance value, and the point light source array is turned on to simulate the interior lighting of the terminal building.
[0033] When the solar elevation angle is between the daytime threshold and the nighttime threshold, linear interpolation is performed between daytime and nighttime illumination to calculate the intermediate illumination parameters.
[0034] S3: Generate equipment locations and repair locations in the 3D scene, perform LOD hierarchical rendering on the locations within the view frustum, and generate a virtual terminal view.
[0035] In some embodiments, equipment records are read one by one from the resource equipment ledger data, and the floor number and planar coordinate pair in each record are extracted. The floor number is mapped to the Z-axis elevation value in the 3D scene, and the X-axis and Y-axis values of the planar coordinate pair are directly used as the X-axis and Y-axis coordinates in the 3D scene, and combined to form the 3D spatial coordinates of the equipment.
[0036] A device location mapping table is constructed using the device's unique code as the key and its 3D spatial coordinates and type code as the values. Repair records are read one by one from the repair event data. For each repair record containing a device code, the corresponding 3D spatial coordinates are searched in the device location mapping table using the device code as an index, and these coordinates are used as the spatial location of the repair event.
[0037] For repair records that do not contain device codes, the repair location description text is extracted from the repair event data. The floor number and area name are extracted from the text using a location description parsing algorithm. Based on the floor number and area name, the center point coordinates of the area are found in the area boundary coordinate data. The center point coordinates are used as the spatial location of the repair event.
[0038] Store the three-dimensional spatial coordinates and repair order number of all reported repair events into the repair point set.
[0039] This embodiment uses a view frustum rejection system to filter out points within the current field of view from thousands of device and repair points, excluding points outside the field of view from the rendering queue. For points remaining in the rendering queue, the corresponding geometric model data is loaded based on one of three preset precision levels selected according to their distance from the viewpoint. Near-distance points use a high-precision model containing all geometric details, while far-distance points use a simplified model containing only the main outline or a 2D icon instead of a 3D model. After filtering and grading, the amount of rendering data is compressed to a level that the graphics processing unit can efficiently handle.
[0040] S4: Standardize the operational data, establish a spatial mapping relationship between data types and 3D scene areas, and generate comprehensive situational data.
[0041] In some embodiments, the airport operation data is received, and the flight dynamic data, baggage transfer data, passenger flow data, resource and equipment ledger data, spare parts data, and repair event data are processed to standardize the data to obtain situational source data; the situational source data is aligned according to data type, and a spatial mapping relationship between each data type and the corresponding area in the three-dimensional digital twin scene of the terminal building is established to generate comprehensive situational data.
[0042] Optionally, data standardization processing can be based on transmitting flight dynamic data in JSON format, baggage flow data in XML format, passenger flow data in binary protocol format, resource and equipment ledger data in relational database row record format, spare parts data in tabular format, and repair event data in HTTP form format.
[0043] Write separate parsers for each format to convert the raw data packets into key-value pair structures in memory. Read the pre-defined field mapping configuration file, which defines a mapping rule table for each data type. The left side of the mapping rule table contains the original field names, and the right side contains the standard field names.
[0044] Iterate through the key names in each key-value pair structure, look up the corresponding standard field name in the mapping rule table, and transfer the values in the original key-value pair to the standard field name.
[0045] The original format type of the time field is detected. If it is a string in the format of year, month, day, hour, minute, and second, the time parsing function is called to convert it to the time starting from 00:00 on the year, month, day, hour, minute, and second. If it is an Excel serial date value, the serial date conversion function is called to calculate the corresponding number of milliseconds. If it is already an integer timestamp, it is directly retained.
[0046] The system detects the original format type of the spatial location field. If it is latitude and longitude coordinates, it uses the Gauss-Kruger projection function to convert it into planar coordinate values in meters. If it is a floor plus offset format, it calculates the Z-axis coordinate value and planar coordinate value based on the floor reference elevation and offset. If it is already a three-dimensional Cartesian coordinate, it is directly retained. After the above four steps, each data record is transformed into a situational source data record containing a data type identifier, a unified timestamp, unified three-dimensional coordinates, and a standard set of business attribute fields.
[0047] This embodiment parses the time field in the original data into integer timestamps in a unified format, and the spatial location field into three-dimensional coordinate values in a unified format. Integer timestamps facilitate comparisons of chronological order, while three-dimensional coordinate values facilitate spatial distance calculations. All situational data records obtained after data standardization follow the same field definition rules, and traversal and query operations can use the same code path to process all records. Based on data standardization, the spatial coordinate values of each record are matched with the floor elevation range and region boundary polygons in the scene graph structure. The matching results are written into the record as region labels, enabling each record to carry its own spatial unit identifier within the three-dimensional scene.
[0048] S5: Bind spatially related items in the comprehensive situational data to the corresponding area of the virtual view, and display non-spatial items as charts in the sidebar.
[0049] In some embodiments, before the binding operation begins, all rows of data in the comprehensive situation data table are read.
[0050] For each row of data, if the data type identifier of the row corresponds to the resource equipment ledger type or the repair event type, then the data in that row is determined to be a spatially associated data item and bound to the corresponding position in the 3D scene.
[0051] If the data type identifier of the row corresponds to flight dynamics, baggage transfer, or passenger flow, then the data in that row is determined to be a non-spatial data item, suitable for display in the sidebar charts.
[0052] For row data identified as spatially related data items, the floor identifier, region identifier, and record list reference are read from that row record. The matching floor node is searched in the scene graph structure using the floor identifier, and the matching region child node is searched under the floor node using the region identifier.
[0053] Each regional child node maintains a hash mapping structure, which uses the device code or repair order number as the key and the mount point data structure as the value. The mount point data structure includes spatial coordinate fields, status fields, numerical fields, description fields, and update flag fields.
[0054] Iterate through all status source data records in the record list, extracting the device code or repair order number, status code value, numerical attribute value, and descriptive text value from the business attribute fields of each record. Using the device code or repair order number as the key, search for the corresponding mount point in the hash mapping structure of the regional child node. If found, write the status code value to the status field, the numerical attribute value to the numerical field, the descriptive text value to the descriptive field, and set the update flag to logical true.
[0055] If not found, a new mount point data structure is created using this key. The spatial coordinate field is filled with the three-dimensional coordinate values extracted from the situation source data record, and then the above field write operation is performed. After all spatially related data items are processed, the mount points marked as true in each region's child nodes are traversed, and the data of these mount points is repackaged and sent to the graphics rendering thread.
[0056] For row data that is determined to be non-spatial data items, read the record list reference from the row record, traverse all situation source data records in the list, and extract the numerical data from the business attribute fields of each record.
[0057] The extracted values are grouped by data type. For flight dynamics, the values are grouped into the number of planned flights, the number of expected flights, the number of actual flights, and the number of delayed flights. For baggage flow, the values are grouped into the number of planned baggage, the number of expected baggage, and the number of actual baggage. For passenger flow, the values are grouped into the number of planned passengers, the number of expected passengers, and the number of actual passengers.
[0058] The grouped values are passed to the chart rendering module in the sidebar. The chart rendering module selects the corresponding graphic drawing method from the bar chart template, pie chart template, or donut chart template according to the chart type code selected by the current user, fills the numerical data into the drawing data structure, and outputs a statistical chart in bitmap format and displays it in the sidebar area.
[0059] This embodiment reads each row of data from the comprehensive situational data table to obtain the data type identifier, floor identifier, area identifier, and a list of records under that combination. For spatially related data, namely resource equipment and maintenance events, each record in the record list is traversed, and its business attribute value is written into the mount point data structure of the corresponding area sub-node. The mount point data structure is directly associated with the model node in the 3D scene, and the 3D model immediately changes its display color or status icon after the status data is written. For non-spatially related data, the values are grouped by data type and passed to the chart rendering module in the sidebar. The chart rendering module generates bitmap data of statistical charts according to a preset template and displays it in the sidebar area.
[0060] S6: Receives interactive instructions from the virtual view to locate and display target details, and supports filtering and labeling of departing equipment categories.
[0061] In some embodiments, when a user clicks on a virtual terminal view area, the screen pixel coordinates of the mouse click location are obtained. The current view matrix and projection matrix are read from the virtual camera object of the 3D graphics engine, the product matrix of the view matrix and projection matrix is calculated, and the inverse matrix operation is performed on the product matrix to obtain the inverse transformation matrix.
[0062] The screen pixel coordinates are combined into a four-dimensional homogeneous coordinate vector, which is then multiplied by the inverse transformation matrix to perform a coordinate transformation. The first three components of the transformation result are divided by the fourth component to obtain a ray direction vector in three-dimensional space. The origin of this ray is the viewpoint position of the virtual camera, and its direction is the ray direction vector.
[0063] The above ray is intersected with the bounding boxes of each node in the scene graph structure. The bounding box is an axis-aligned bounding box, defined by six values: minimum and maximum X-axis values, minimum and maximum Y-axis values, minimum and maximum Z-axis values, and maximum and maximum Z-axis values. The specific operation of the intersection detection is as follows: calculate the distance parameters from the ray's origin to the six faces of the bounding box, obtain the distance values entering and leaving the bounding box respectively, and determine that the ray intersects with the bounding box if the entering distance value is less than the leaving distance value and the leaving distance value is greater than zero.
[0064] After traversing all nodes in the scene graph structure, collect all nodes that intersect with the ray. Filter out nodes of type "equipment location mounting point" or "repair mark mounting point" from these nodes. Compare the distance values of these nodes to the ray's starting point and select the node with the smallest distance value as the target.
[0065] Once the target is identified, the device code or repair order number is read from the data structure of that mount point. Using this code as an index, a precise match query is performed on all status source data records in the comprehensive status data. After finding the corresponding record, all business attribute field values of that record are extracted.
[0066] These field values are assembled into a detailed information data structure, which includes fields such as equipment name, equipment model, installation location, date of commissioning, list of associated repair orders, number of repairs, details of the latest repair order, spare parts name, and current inventory of spare parts.
[0067] The detailed information data structure is passed to the details display panel in the sidebar. The details display panel renders these field names and field values into structured text and tables according to the preset layout format.
[0068] Furthermore, the processing procedure for the departure equipment category filtering instruction is as follows: read the departure equipment type code selected by the user in the filter drop-down list. The departure equipment type code includes CUSS machine code, check-in counter code, boarding counter code, security check channel code, smart flight information display all-in-one machine code, and smart dual-screen code.
[0069] Based on the type code, filter out all equipment records that match the equipment type in the resource equipment ledger data, and extract the three-dimensional spatial coordinates, operating status code, current working duration value and equipment life cycle stage identifier of these equipment.
[0070] Using these data as parameters, the annotation object generation function in the 3D scene is called. The annotation object generation function creates a label 3D model at the 3D spatial coordinate position of each device. The label 3D model consists of a rectangular panel that always faces the viewpoint and a leader line extending from the panel.
[0071] The rectangular panel displays corresponding color codes based on the operating status: green for normal operation, yellow for maintenance, and red for fault.
[0072] The lead end connects to a circular base marker located on the ground where the equipment is situated. Add the 3D models of all departing equipment labels to the root node of the scene graph structure and update the rendering queue.
[0073] S7: Convert pedestrian coordinates in video surveillance to world coordinates in a 3D scene to generate passenger flow distribution data, generate a heat map layer in the corresponding area of the virtual view, and generate alarm markers or event work orders when passenger flow exceeds the threshold or abnormal behavior is identified.
[0074] Specifically, in step S7, video surveillance data is received, pedestrian target detection boxes are extracted from the video frames of each surveillance screen, and the coordinates of the bottom center point of the pedestrian target detection box are transformed from the image coordinate system to the world coordinate system of the three-dimensional digital twin scene of the terminal building according to the calibration parameters of each surveillance camera and the ground elevation constraints of the corresponding floor, so as to obtain the world space coordinates of each pedestrian.
[0075] The world spatial coordinates of all pedestrians within the same monitoring area are aggregated to generate spatial distribution data of pedestrian flow in the monitoring area.
[0076] Based on the cluster density of pedestrian coordinates in the spatial distribution data of passenger flow, a passenger flow density scalar field is calculated on a two-dimensional planar grid using the kernel density estimation method. The density scalar field is then converted into a two-dimensional thermal texture using a color mapping function. This two-dimensional thermal texture is then overlaid and rendered as a projection map onto the surface mesh of the corresponding sub-nodes in the scene graph structure to generate a passenger flow heat map layer.
[0077] In the virtual terminal view, the passenger flow heat map layer is placed as a semi-transparent overlay above the status marker, and the predicted passenger flow distribution layer is placed as a sub-semi-transparent overlay below the passenger flow heat map layer.
[0078] When the pedestrian density in the passenger flow spatial distribution data exceeds a preset threshold, an alarm marker 3D model is generated above the bounding box of the corresponding area sub-node; when abnormal behavior is identified from the video surveillance data, an event work order record is generated in the sidebar, and an abnormal marker is generated at the corresponding area sub-node in the virtual terminal view.
[0079] As can be seen, a mapping relationship from 2D image coordinates to 3D world coordinates is established through intrinsic and extrinsic parameter matrices and distortion coefficients. Ground elevation constraints are used to supplement the depth dimension missing in monocular vision, converting the position of pedestrian feet in the video image into precise spatial coordinates on the ground in the 3D scene. Kernel density estimation converts the discrete pedestrian coordinate group into a continuous density scalar field, and the smoothing properties of the Gaussian kernel function make the density field continuously change in space. The color mapping table converts the density scalar values into red, green, and blue color component values, forming a thermal texture image. This texture image is superimposed onto the 3D surface mesh through the mapping operation of the texture sampling unit, forming a heatmap precisely aligned with the 3D scene. When the density exceeds the threshold, a flashing warning sign is generated at the corresponding position in the 3D scene. After abnormal behavior recognition is triggered, an event work order record is generated and an abnormal marker is output.
[0080] In one embodiment of the present invention, based on step S3, it is also involved to perform frustum culling on the set of equipment points and the set of reported repair points according to the frustum range of the current viewpoint, and to determine the subset of points to be rendered. The following will provide a possible embodiment and describe its specific implementation in a non-limiting manner.
[0081] S311: Read the position coordinates and orientation vector of the current viewpoint, and construct a hexahedron of the view frustum based on the position coordinates and orientation vector; the hexahedron of the view frustum is enclosed by the near clipping face, the far clipping face, the left clipping face, the right clipping face, the upper clipping face, and the lower clipping face; substitute the coordinates of each point in the set of equipment points and the set of reported repair points into the equations of each face of the hexahedron of the view frustum in turn, retain the points that simultaneously satisfy the constraints of the six face equations, and filter out the points that do not satisfy any of the constraints to obtain the initial set of points; S312: Traverse each point in the initial screening point set and read the spatial occlusion marker bound to each point; the spatial occlusion marker is generated by the pre-calculation stage based on the spatial distribution of the terminal building wall plane, column plane and floor partition plane; if the spatial occlusion marker of a point indicates that the point is completely occluded by the terminal building structure, then the point is moved into the deferred rendering queue; if the spatial occlusion marker of a point indicates that the point is not occluded or is partially visible, then the point is kept in the immediate rendering queue. S313: Merge the remaining points in the real-time rendering queue and the deferred rendering queue after occlusion culling to generate a subset of points to be rendered; after the points in the deferred rendering queue are rendered in the real-time rendering queue, they are added to the rendering pipeline in batches according to the viewpoint distance from near to far.
[0082] As can be seen, based on the horizontal and vertical viewing angles and near and far clipping distances, the plane equations for the six clipping planes can be derived. Each plane equation divides the space into a positive half-space and a negative half-space. The necessary and sufficient condition for a point to be located inside the view frustum is that the point is simultaneously located in the positive half-space of each of the six planes. By using algebraic notation, points located outside the view frustum are quickly eliminated, avoiding invalid rendering calculations.
[0083] Furthermore, the terminal building contains numerous fixed structures, such as load-bearing walls, columns, and floor partitions. These structures are abstracted as planar sets during the pre-calculation phase, establishing spatial occlusion relationships with various points. Occlusion markers are encoded using bitmaps, with each bit corresponding to a structure type. During rendering, the markers are directly retrieved from a table, avoiding real-time ray intersection calculations. Completely occluded points are invisible from the current viewpoint but may become visible after subsequent viewpoint movements; therefore, they are moved to the deferred rendering queue instead of being discarded directly, ensuring rendering continuity during viewpoint switching.
[0084] Furthermore, the real-time rendering queue includes points directly visible from the current viewpoint, which are rendered first to ensure the timely presentation of core content. Points are sorted by viewpoint distance from nearest to farthest to ensure that distant points do not incorrectly occlude nearby points, maintaining the accuracy of the depth buffer.
[0085] Further, step S3, based on the distance between each point in the subset of points to be rendered and the current viewpoint, assigns a corresponding LOD level to each point, calls a model with the matching LOD level for point rendering, and generates a virtual terminal view, specifically includes: S321: Calculate the distance information between each point in the subset of points to be rendered and the current viewpoint, and divide the distance information into several distance intervals; the distance intervals include a near distance interval, a medium distance interval, and a far distance interval; mark the points falling into the near distance interval as the first LOD level, the points falling into the medium distance interval as the second LOD level, and the points falling into the far distance interval as the third LOD level; S322: Read the model precision configuration corresponding to each LOD level; the first LOD level calls the 3D model with the original number of mesh faces, the second LOD level calls the simplified mesh 3D model after edge folding and face reduction, and the third LOD level calls the billboard texture to replace the 3D model; replace each point with the model instance of the corresponding LOD level to generate a set of LOD model instances; S323: Submit the set of LOD model instances to the rendering pipeline, sort them by depth value from far to near, and then execute the drawing call; the drawing call uses instantiated rendering instructions to batch submit model instances of the same LOD level, output the rendering results to the frame buffer, and generate a virtual terminal view.
[0086] As can be seen, distance information is obtained by taking the square root of the sum of the squares of the differences in three-dimensional spatial coordinates, reflecting the straight-line distance between the point and the viewpoint. The human eye is sensitive to details of nearby objects but less sensitive to details of distant objects. The boundary values of the distance intervals are dynamically set based on the terminal building's spatial scale, screen resolution, and viewpoint height. The near-distance interval covers the core observation area around the viewpoint, the medium-distance interval covers the transition area, and the far-distance interval covers the peripheral field of vision.
[0087] Furthermore, the depth value is obtained from the world coordinates of the model instances through view transformation and projection transformation, reflecting the distance relationship between each instance and the viewpoint. Sorting from far to near, combined with depth testing, distant instances are written to the depth buffer first, and nearby instances are written later, overwriting occluded distant fragments, thus avoiding invalid fragment shading calculations.
[0088] In one embodiment of the present invention, based on the alignment of the situation source data by data type in step S4, establishing a spatial mapping relationship between each data type and the corresponding area in the three-dimensional digital twin scene of the terminal building, and generating comprehensive situation data specifically includes: S41: Read the source timestamp field of each data type, extract the year, month, day, hour, and minute information from the source timestamp field, truncate the source timestamp field of each data type to obtain minute-level aligned timestamps; use the minute-level aligned timestamps as the association key to write the status source data records of each data type into the circular time buffer queue in chronological order; the capacity of the circular time buffer queue is set according to the data refresh frequency. S42: Parse the spatial identifier field in the situation source data record of each data type. The spatial identifier field includes at least one of floor number, area number, and equipment number. According to the scene graph structure in the three-dimensional digital twin scene of the terminal building, query the area sub-node index corresponding to each spatial identifier field. Mount the situation source data record of each data type to the corresponding area sub-node in the scene graph structure and establish index pointers between data records and area sub-nodes. S43: Traverse the data record set attached to each region sub-node in the scenario graph structure, group and aggregate according to data type; write the aggregated data into the comprehensive situation data table; the row key of the comprehensive situation data table is formed by concatenating the region sub-node index with a minute-level aligned timestamp, the column family is divided according to data type, and the cell stores the aggregated value of the corresponding data type.
[0089] It should be noted that airport operational data comes from different business systems, and the clocks of each system drift, resulting in varying timestamp precision. Truncation to the minute eliminates second-level differences, providing a unified time base for cross-system data association. A circular time buffer queue cyclically overwrites older data with a fixed length, with the queue head pointer pointing to the most recently written position and the queue tail pointer pointing to the oldest valid position.
[0090] In step S42, the scene graph structure serves as the organizational skeleton of the 3D digital twin scene. The root node represents the entire terminal building, first-level child nodes represent each floor, and second-level child nodes represent the functional areas within each floor. The mapping relationship between the number in the spatial identifier field and the index of the region child node is pre-calculated and persistently stored during the scene initialization phase. The data record linked list of the region child nodes is maintained using the head insertion method; new records are inserted at the head of the linked list, and old records naturally sink to the tail, facilitating traversal in reverse chronological order.
[0091] Furthermore, in step S43, the first half of the encoding ensures that data in the same region is physically adjacent on the storage medium, supporting the efficiency of region-range scanning. The latter half of the row key encoding ensures that data in the same region is arranged in chronological order, supporting the efficiency of time-range scanning. Column family partitioning separates the storage of different data types, eliminating the need to load other column families when reading data types, thus reducing I / O bandwidth consumption.
[0092] In one embodiment of the present invention, based on step S5, binding the situational data items associated with spatial location in the comprehensive situational data to the corresponding floor area of the virtual terminal view through the spatial mapping relationship specifically includes: S51: Read the situation data items associated with spatial location in the comprehensive situation data table and extract the regional sub-node index carried by each situation data item; Based on the region child node index, query the corresponding region child node in the scene graph structure to obtain the bounding box center coordinates and surface mesh vertex buffer handle of the region child node; S52: Based on the data type of the situation data item, query the preset state marker map set; read the state marker texture that matches the data type from the state marker map set, and write the state marker texture into the texture array slot of the region child node; Based on the magnitude of the situation data item, the preset color mapping table is queried to map the value to RGB color value, and the RGB color value is written into the pixel data of the situation marker texture. S53: Convert the bounding box center coordinates of the region child nodes to screen space coordinates, and calculate the projection size of the state marker texture in screen space; The vertex buffer data for state markers is generated based on the projection size. The vertex buffer data is bound to the state marker texture in the texture array slot and submitted to the transparent rendering queue of the rendering pipeline. After sorting the transparent rendering queue by depth value, the drawing call is executed, and the status markers are overlaid and rendered onto the corresponding floor area of the virtual terminal view.
[0093] It should be noted that the row key of the integrated situation data table is constructed by concatenating the region child node index with a minute-level aligned timestamp, and the front-end binary encoding is the region child node index. The scene graph structure is built in step S2, where the bounding box of each region child node is pre-calculated and uploaded to the vertex buffer to the GPU. The center coordinates of the bounding box serve as the anchor position for the state marker, ensuring that the marker always floats above the geometric center of the region.
[0094] Furthermore, the state marker atlas is loaded into the GPU texture memory during system initialization, organized using texture array objects, with array layer indices corresponding to data types. The texture arrays share a unified two-dimensional texture size and format, and the GPU selects a specific texture through layer indices during sampling, avoiding rendering state changes caused by texture switching.
[0095] The color map table is stored as a GPU constant buffer, with the boundaries of the numerical range stored in pairs with the RGB color values. When querying, the range is located by binary search.
[0096] Furthermore, screen space coordinate transformation maps the 3D world position to a 2D screen position, with the Z component retaining depth information for occlusion detection. Projection size calculation ensures that the display size of the status markers on the screen remains visually consistent regardless of distance, avoiding situations where distant markers are too small to be visible or nearby markers are too large to obscure the scene.
[0097] The four vertices of the vertex buffer data form a billboard face facing the screen, always directly opposite the viewpoint to ensure marker readability. Depth ordering in the transparent rendering queue ensures that distant markers are drawn first, and nearby markers are drawn later. Alpha blending adds colors based on the source alpha value, avoiding depth conflicts and visual errors between transparent fragments. The alpha blending mode uses a standard blending equation: the source color is multiplied by the source alpha, the target color is multiplied by a certain value, and the results are added and written to the framebuffer. Alpha blending achieves a natural integration of state markers with the 3D scene, avoiding hard edge occlusion that disrupts immersion. Drawing batches merge marker instances with the same texture, reducing the number of draw calls and improving rendering efficiency.
[0098] In one embodiment of the present invention, based on step S7, receiving video surveillance data, extracting pedestrian target detection boxes from the video frames of each surveillance screen, and according to the calibration parameters of each surveillance camera and the ground elevation constraints of the corresponding floor, transforming the coordinates of the bottom center point of the pedestrian target detection box from the image coordinate system to the world coordinate system of the terminal building's three-dimensional digital twin scene to obtain the world space coordinates of each pedestrian, specifically includes: S711: Decodes each video stream in the video surveillance data and extracts pedestrian target detection boxes frame by frame from the video frames; the pedestrian target detection box is represented by a rectangular bounding box, and records the pixel coordinates of the upper left corner of the rectangle, the pixel value of the rectangle width, and the pixel value of the rectangle height; calculates the pixel coordinates of the midpoint of the bottom edge of the rectangle, and uses the pixel coordinates of the midpoint of the bottom edge of the rectangle as the image coordinates of the pedestrian's grounding point; S712: Read the calibration parameters of each surveillance camera; the calibration parameters include the intrinsic parameter matrix, distortion coefficient vector, rotation matrix and translation vector; substitute the image coordinates of the pedestrian's grounding point into the distortion correction equation to eliminate the radial and tangential distortion of the lens and obtain the distorted image coordinates; invert the distorted image coordinates and the intrinsic parameter matrix to obtain the normalized plane coordinates; S713: Query the ground elevation value of the floor to which the surveillance camera belongs; multiply the normalized planar coordinates by the difference between the ground elevation value and the camera's optical center height to obtain the 3D coordinates in the camera coordinate system; multiply the inverse of the rotation matrix by the 3D coordinates in the camera coordinate system, and then subtract the product of the inverse of the rotation matrix and the translation vector to obtain the 3D coordinates in the world coordinate system; add the 3D coordinates in the world coordinate system to the offset of the origin of the terminal's 3D digital twin scene to obtain the world space coordinates of each pedestrian.
[0099] It should be noted that multiplying the normalized planar coordinates by the vertical distance expands the two-dimensional direction vector into a three-dimensional spatial vector, which points from the camera's optical center to the ground intersection point. The camera coordinate system has the camera's optical center as its origin, with the Z-axis pointing forward of the camera. The world coordinate system has the terminal building's design reference point as its origin, and the ground elevation values of each floor are defined relative to this origin. The rotation matrix describes the rotation relationship from the world coordinate system to the camera coordinate system, and its inverse matrix describes the rotation relationship from the camera coordinate system to the world coordinate system. The translation vector describes the position of the world coordinate system origin in the camera coordinate system, and the product of the inverse rotation matrix and the translation vector describes the position of the camera's optical center in the world coordinate system. The offset of the coordinate origin compensates for the translation differences between the BIM model coordinate system and the digital twin scene coordinate system, ensuring that pedestrian coordinates are geometrically aligned with the scene. The global coordinate origin offset unifies the coordinate output of all cameras to the same world coordinate system, supporting the convergence and fusion of pedestrian coordinates across cameras in S721.
[0100] Further, in step S7, based on the clustering density of pedestrian coordinates in the passenger flow spatial distribution data, a passenger flow density scalar field is calculated on a two-dimensional planar grid using a kernel density estimation method. This density scalar field is then converted into a two-dimensional thermal texture using a color mapping function. The two-dimensional thermal texture is then overlaid and rendered as a projection map onto the surface mesh of the corresponding region's child nodes in the scene graph structure, generating a passenger flow heatmap layer. Specifically, this process includes: S721: Read the spatial distribution data of passenger flow in the monitored area and extract the world spatial coordinates of all pedestrians in the area; project the world spatial coordinates of each pedestrian onto the horizontal reference plane of the corresponding floor to obtain a two-dimensional plane coordinate set; divide the horizontal reference plane into uniform grids, and the grid cell size is determined according to the area and preset resolution; traverse each coordinate point in the two-dimensional plane coordinate set, and calculate the weight contribution of the Gaussian kernel function on the surrounding grid cells with each coordinate point as the center and the preset bandwidth as the radius, and accumulate the weight contribution of each coordinate point to the corresponding grid cell to obtain the passenger flow density scalar field; S722: Query the preset color map table, which defines the correspondence between density scalar values and RGB color values; traverse each grid cell of the passenger flow density scalar field, read the density scalar value of each grid cell, and query the color map table to obtain the corresponding RGB color value; set the alpha channel of the RGB color value to a transparency value proportional to the density scalar value; arrange the color values of each pixel in the order of grid rows and columns to generate a two-dimensional thermal texture; upload the two-dimensional thermal texture to the GPU texture memory and bind the texture sampler; S723: Read the vertex buffer data of the surface mesh of the corresponding region child node in the scene graph structure, and extract the texture coordinate channel of the surface mesh; map the texture coordinate range of the 2D thermal texture to the planar projection range of the surface mesh bounding box of the region child node; read the world space coordinates and texture coordinates of the surface mesh in the vertex shader, sample the 2D thermal texture according to the texture coordinates in the fragment shader, and mix the sampled color with the base color of the surface mesh according to the alpha value; output the mixed color to the frame buffer to generate the passenger flow heat map layer.
[0101] It should be noted that the process involves reading the vertex buffer data of the surface mesh of the corresponding region's child nodes in the scene graph structure, parsing the vertex data layout, and extracting the world space coordinate channels and texture coordinate channels of the vertices. The texture coordinate range of the 2D thermal texture is calculated and mapped to the projection range of the surface mesh bounding box of the region's child nodes onto the horizontal reference plane, obtaining a linear mapping relationship between texture coordinates and world space horizontal coordinates. In the vertex shader stage, the world space coordinates and texture coordinates of each vertex of the surface mesh are read, the world space coordinates are transformed to clip space, and the texture coordinates are directly passed to the fragment shader. In the fragment shader stage, the interpolated texture coordinates are received, and the texture sampling instruction is called to sample the 2D thermal texture, obtaining the sampled RGBA values. The base color value of the surface mesh fragment is read, and the RGB components of the sampled RGBA values are mixed with the RGB components of the base color values according to the alpha component of the sampled RGBA values. The mixing formula is: the resulting RGB equals the sampled RGB multiplied by the sampled alpha plus the base RGB multiplied by (1 minus the sampled alpha). The mixed RGBA values are output to the color attachment of the framebuffer, and the depth value is written to the depth attachment of the framebuffer after perspective division from the clip space Z output by the vertex shader. In this way, the vertex and fragment shader separation architecture fully utilizes the GPU's parallel pipeline. The vertex shader processes geometric vertices, while the fragment shader processes pixel colors, achieving load balancing. Alpha blending uses the heatmap as a semi-transparent overlay, preserving the visibility of the scene's base map. Framebuffer depth testing ensures that the heatmap is rendered only on visible surfaces, and occluded areas are automatically culled, reducing invalid fragment shading computations.
[0102] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0103] like Figure 7 As shown, this application also provides an electronic device, including a display module 103, a memory 102, a processor 101, a communication module 104, and a computer program stored in the memory and executable on the processor 101. When the processor 101 executes the program, it implements the steps of a digital twin-based airport terminal visualization and interaction method.
[0104] In embodiments of the present invention, electronic devices include, but are not limited to, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the embodiments described and / or claimed herein.
[0105] In this embodiment, processor 101 may be implemented using at least one of an application-specific integrated circuit, a programmable logic device, a field-programmable gate array, a processor, a controller, a microcontroller, a microprocessor, or an electronic unit designed to perform the functions described herein. In some cases, such an implementation may be implemented within a controller. For software implementation, implementations such as processes or functions may be implemented with separate software modules that allow the performance of at least one function or operation. Software code may be implemented by a software application (or program) written in any suitable programming language, and the software code may be stored in memory and executed by the controller.
[0106] The display module 103 is used to display information input by the user or information provided to the user. The display module 103 may include a display panel, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like.
[0107] The memory 102 can be used to store software programs and various data. The memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0108] The communication module 104 transmits radio signals to and / or receives radio signals from at least one of a base station, an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data sent and / or received according to text and / or multimedia messages.
[0109] The present invention also provides a storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the steps of the digital twin-based airport terminal visualization and interaction method.
[0110] The storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example,, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0111] The storage medium stores a program product capable of implementing the methods described above in this specification. In some possible implementations, various aspects of this disclosure can also be implemented as a program product comprising program code that, when run on a terminal device, causes the terminal device to perform the steps described in the exemplary methods section of this specification according to various exemplary embodiments of this disclosure.
[0112] 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 visual interactive method for airport terminals based on digital twins, characterized in that, Includes the following steps: S1: Obtain airport operation data and terminal building spatial structure data; S2: Construct a 3D digital twin scene of the terminal building based on spatial structure data, and overlay weather and lighting rendering layers; S3: Generate equipment locations and repair locations in the 3D scene, perform LOD hierarchical rendering on the locations within the view frustum, and generate a virtual terminal view; S4: Standardize the operational data, establish a spatial mapping relationship between data types and 3D scene areas, and generate comprehensive situational data; S5: Bind spatially related items in the comprehensive situational data to the corresponding area of the virtual view, and display non-spatial items as charts in the sidebar; S6: Receives interactive instructions from the virtual view to locate and display target details, and supports filtering and labeling of departing equipment categories; S7: Convert pedestrian coordinates in video surveillance to world coordinates in a 3D scene to generate passenger flow distribution data, generate a heat map layer in the corresponding area of the virtual view, and generate alarm markers or event work orders when passenger flow exceeds the threshold or abnormal behavior is identified.
2. The airport terminal visualization and interactive method based on digital twins according to claim 1, characterized in that, Step S3 specifically includes: in the three-dimensional digital twin scene of the terminal building, based on the equipment spatial coordinate data in the resource equipment ledger data and the repair location coordinate data in the repair event data, generating a set of equipment points and a set of repair points; according to the view frustum range of the current viewpoint, performing view frustum culling on the set of equipment points and the set of repair points to determine the subset of points to be rendered; Based on the distance between each point in the subset of points to be rendered and the current viewpoint, a corresponding LOD level is assigned to each point, and the point is rendered using a model precision that matches the LOD level to generate a virtual terminal view.
3. The airport terminal visualization and interactive method based on digital twins according to claim 2, characterized in that, In step S3, based on the view frustum range of the current viewpoint, view frustum culling is performed on the set of equipment locations and the set of reported repair locations to determine the subset of locations to be rendered. This specifically includes: Based on the spatial coordinate data of equipment in the resource equipment ledger data and the location coordinate data of the repair event data, a set of equipment locations and a set of repair locations are generated. Based on the frustum range of the current viewpoint, perform frustum culling on the points within the frustum, filtering out points located outside the frustum to obtain a preliminary set of points; Iterate through each point in the initial screening point set, read the spatial occlusion marker bound to each point, and determine whether the point is occluded by the terminal building structure based on the spatial occlusion marker. Points that are not occluded or partially visible are kept in the immediate rendering queue, while points that are completely occluded are moved into the deferred rendering queue. Merge the remaining points after occlusion culling in the real-time rendering queue and the deferred rendering queue to generate a subset of points to be rendered; Based on the distance between each point in the subset of points to be rendered and the current viewpoint, a corresponding LOD level is assigned to each point, and the point is rendered using a model precision that matches the LOD level to generate a virtual terminal view.
4. The airport terminal visualization and interaction method based on digital twins according to claim 2, characterized in that, In step S3, based on the distance between each point in the subset of points to be rendered and the current viewpoint, a corresponding LOD level is assigned to each point, and the point is rendered using a model with the accuracy matching the LOD level to generate the virtual terminal view. Specifically, this includes: Calculate the distance between each point in the subset of points to be rendered and the current viewpoint, and mark each point as the first LOD level, the second LOD level, or the third LOD level according to the distance value; Based on the LOD level of each point, the corresponding model precision configuration is called to generate LOD model instances for each point, which are then combined into a set of LOD model instances. Submit the LOD model instance collection to the rendering pipeline, sort it by depth value, execute the drawing call, output the rendering result to the frame buffer, and generate a virtual terminal view.
5. The airport terminal visualization and interactive method based on digital twins according to claim 1, characterized in that, Step S4 specifically includes: Extract the year, month, day, hour, and minute information from the source timestamp fields of each data type to obtain minute-level aligned timestamps; use the minute-level aligned timestamps as the association key to write the status source data records of each data type into a circular time buffer queue in chronological order; Parse the spatial identifier field in the situation source data records of each data type, query the regional sub-node index corresponding to each spatial identifier field according to the scene graph structure in the 3D digital twin scene of the terminal building, mount the situation source data records of each data type to the corresponding regional sub-nodes in the scene graph structure, and establish index pointers between data records and regional sub-nodes. Traverse the data record set attached to each region sub-node in the scene graph structure, group and aggregate it according to data type, and write it into the comprehensive situation data table. The row key is formed by concatenating the region sub-node index with a minute-level aligned timestamp. Column families are divided according to data type, and cells store the aggregated value of the corresponding data type.
6. The airport terminal visualization and interactive method based on digital twins according to claim 1, characterized in that, In step S5, binding the spatial correlation items in the integrated situational data to the corresponding areas of the virtual view specifically includes: Read the situation data items associated with spatial location in the comprehensive situation data, extract the regional sub-node index carried by each situation data item, and query the scene graph structure to obtain the corresponding regional sub-nodes and their bounding box center coordinates and surface mesh vertex buffer handles. Based on the data type of the situation data item, query the situation marker atlas to obtain the matching situation marker texture and write it into the texture array slot of the region child node. Then, based on the numerical value of the situation data item, query the color mapping table to obtain the RGB color value and write it into the pixel data of the texture. The bounding box center coordinates of the region child nodes are converted to screen space coordinates, and the projection size of the state marker texture is calculated. Vertex buffer data is generated based on the projection size and bound to the state marker texture in the texture array slot. The data is then submitted to the transparent rendering queue, sorted by depth value, and the drawing call is executed. The state marker is overlaid and rendered onto the corresponding floor area of the virtual terminal view.
7. The airport terminal visualization and interaction method based on digital twins according to claim 1, characterized in that, Step S7 also includes receiving video surveillance data, extracting pedestrian target detection boxes from the video frames of each surveillance screen, and converting the bottom center point coordinates of the pedestrian target detection boxes from the image coordinate system to the world coordinate system of the terminal building's three-dimensional digital twin scene according to the calibration parameters of each surveillance camera and the ground elevation constraints of the corresponding floor, so as to obtain the world space coordinates of each pedestrian. Specifically, it includes: Extract pedestrian target detection boxes from video frames, calculate the pixel coordinates of the midpoint of the bottom edge of the detection box, and use them as the image coordinates of the pedestrian's grounding point; Read the calibration parameters of the surveillance camera, substitute the image coordinates of the pedestrian's grounding point into the distortion correction equation, and then perform matrix operations with the inverse of the intrinsic parameter matrix to obtain the normalized planar coordinates; The ground elevation value of the floor to which the camera belongs is queried. The normalized plane coordinates are combined with the ground elevation constraints to calculate the three-dimensional coordinates in the camera coordinate system. After inverse transformation of the rotation matrix and compensation by the translation vector, the world space coordinates of the pedestrian are obtained by adding the offset of the scene coordinate origin.
8. The airport terminal visualization and interactive method based on digital twins according to claim 1, characterized in that, In step S7, generating a heatmap layer in the corresponding area of the virtual view specifically includes: The world spatial coordinates of pedestrians within the monitoring area are projected onto a horizontal reference plane to form a two-dimensional coordinate set. A uniform grid is then divided on the horizontal reference plane. Weights are accumulated to the surrounding grid cells using a kernel density estimation method with each coordinate point as the center, generating a scalar field of passenger flow density. Traverse each grid cell of the passenger flow density scalar field, query the preset color mapping table according to the density scalar value to obtain the corresponding RGB color value and set the transparency, generate a two-dimensional thermal texture by grid arrangement, and upload it to the GPU texture memory; The coordinate range of the 2D thermal texture is mapped to the texture coordinate channel of the surface mesh of the region child node. The texture color is sampled in the fragment shader and mixed with the base color of the surface mesh according to the transparency. The mixed color is output to generate the passenger flow heat map layer.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the airport terminal visualization and interaction method based on digital twins as described in any one of claims 1 to 8.
10. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the airport terminal visualization and interaction method based on digital twins as described in any one of claims 1 to 8.
