Real-time dynamic projection and position tracking control method and system for cultural and tourism scenes
By preprocessing RGB and depth images, the system detects and tracks tourist positions, and combines system latency for forward position prediction and hierarchical correction. This solves the accuracy and latency issues of projected content following tourist positions in cultural and tourism scenarios, and improves the interactive quality of immersive experiences.
Patent Information
- Application Number
- CN202611287876.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-24
- Publication Date
- 2026-11-20
AI Technical Summary
In cultural and tourism scenarios, existing technologies struggle to achieve high-precision, low-latency dynamic projection tracking control under complex lighting conditions and highly random tourist behavior, resulting in the projected content failing to accurately follow the tourist's position and disrupting the immersive experience.
The system employs methods such as RGB and depth image preprocessing, human detection, depth validity verification, motion parameter calculation, and main tracking target determination. Combined with system latency, it performs forward position prediction, generates projection device control parameters, and performs hierarchical correction through spot position detection.
It achieves high-precision, low-latency dynamic projection tracking control, enhancing the interactive realism and visual continuity for tourists in immersive cultural and tourism experiences.
Smart Images

Figure CN123145397A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method and system for real-time dynamic projection and location tracking control in cultural and tourism scenarios. Background Technology
[0002] With the deepening of digital transformation in the cultural and tourism industry, immersive interactive experiences have become a core competitive advantage for scenarios such as museums, theme parks, and digital displays of historical sites. Dynamic projection mapping technology, by projecting digital visual content onto the surface of physical scenes or mobile carriers in real time, can significantly enhance tourists' sensory participation and narrative immersion, and has therefore been increasingly widely used in new cultural and tourism formats such as nighttime cultural and tourism tours, cultural relic revitalization, and interactive theaters. However, as an important branch of human-computer interaction, haptic interaction can track tourists' body posture, spatial position, and movement trajectory, allowing the projected content to respond in real time to changes in tourists' behavior. However, cultural and tourism scenarios differ from laboratory or indoor fixed projection environments. They have complex physical characteristics such as large spatial scale, strong randomness of tourist behavior, dynamic changes in ambient lighting conditions, and non-uniform projection surface materials with the possibility of local occlusion. These characteristics place extremely high engineering requirements on the real-time performance, robustness, and spatial registration accuracy of dynamic projection systems.
[0003] Existing technologies have attempted to solve the target tracking problem in dynamic projection by using a depth camera to acquire global images and depth perception of the scene. The three-dimensional position coordinates of the human target are extracted from the depth image and combined with a linear extrapolation model to predict the next position of the visitor. Then, the gimbal mechanism of the projection device is driven to rotate according to the predicted position, so that the projected content moves with the position of the visitor.
[0004] In cultural and tourism scenarios, tourists are in a state of free movement, without fixed walking paths or preset stopping points. The direction, speed, and body orientation of tourists' movements within the projection area are highly random. When tourists suddenly change their direction of movement (such as abruptly stopping and turning, or suddenly accelerating and moving laterally) or make rapid physical movements (such as waving or jumping), the prediction method based on the linear extrapolation model only uses the positional difference of the most recent two or three frames to extrapolate the movement trend. The predicted trajectory will have a significant phase lag and positional deviation from the tourist's actual position at the moment of sudden acceleration change. At the same time, due to the inherent sampling clock asynchrony between the sampling frame rate of the depth camera and the refresh rate of the projection device, this phase lag and deviation will continue to accumulate over time and cannot be automatically eliminated, resulting in dynamic tracking failure. Consequently, the projected content cannot be accurately projected onto the tourist or follow the tourist's movement, causing the tourist's tactile interaction to be interrupted, the immersion to be destroyed, and the interactive quality of cultural and tourism services to be seriously substandard. Summary of the Invention
[0005] To address the technical challenges of overcoming the combined effects of multimodal image data quality degradation, inherent system delays, and accumulated open-loop control errors in complex lighting conditions and highly random tourist behavior within cultural and tourism scenarios, this invention provides a method and system for real-time dynamic projection and position tracking control in cultural and tourism scenarios.
[0006] In a first aspect, the present invention provides a method for real-time dynamic projection and position tracking control in cultural and tourism scenes, employing the following technical solution:
[0007] A method for real-time dynamic projection and location tracking control in cultural and tourism scenarios, including the following steps: Acquire preprocessed normalized RGB image frames and normalized depth image frames; perform human detection based on normalized RGB image frames and output human bounding boxes; map the human bounding boxes to normalized depth image frames for depth validity verification, and calculate the three-dimensional spatial coordinates of each tourist in the camera coordinate system based on the qualified human bounding boxes and the corresponding depth information. Based on the three-dimensional spatial coordinates of each tourist, inter-frame correlation matching is performed to determine the identity number of each tourist; for each tourist, the motion parameters of the tourist are calculated based on the three-dimensional spatial coordinates of multiple consecutive acquisition times; the degree of motion change of the tourist is calculated based on the motion parameters, and the main tracking target is determined from all tourists based on the positional relationship between the tourist's three-dimensional spatial coordinates and the preset projection area; the velocity vector of the main tracking target is calculated using the effective historical position sequence of the main tracking target, and forward position prediction is performed in combination with the system delay; the control parameters of the projection device are generated based on the predicted position. The projected content is projected to the forward prediction position according to the control parameters, a scene image containing the projected light spot is acquired, the actual light spot position is detected, the following error between the actual light spot position and the forward prediction position is calculated, and a graded correction is performed based on the following error.
[0008] Preferably, the step of acquiring the preprocessed normalized RGB image frame and the normalized depth image frame includes: RGB images and depth images are simultaneously acquired using depth cameras deployed in cultural and tourism settings; The RGB image is denoised, and the depth image is subjected to invalid point removal and isolated noise removal. The difference between the exposure midpoint of the RGB image and the exposure midpoint of the depth image is used as the shooting time difference. Based on the comparison between the shooting time difference and the preset time deviation tolerance threshold, it is determined whether to perform time interpolation alignment on the depth image. The aligned RGB image and the depth image are normalized and mapped to obtain normalized RGB image frames and normalized depth image frames.
[0009] Preferably, the step of performing human detection based on normalized RGB image frames and outputting human bounding boxes includes: Normalized RGB image frames are input into a pre-trained human detection network, which outputs all detected human bounding boxes and their confidence scores in the frame, retaining human bounding boxes with confidence scores greater than a preset confidence threshold.
[0010] Preferably, the human detection network adopts a single-stage target detection network based on deep learning, and its training process includes: Images containing human bodies under different scenes, lighting conditions, and poses are collected as training samples. The bounding box coordinates and category labels are labeled for each human target. The training samples are input into the network in batches for forward propagation, the category prediction loss is calculated, the network weights are updated through backpropagation, and the training is iteratively trained until convergence.
[0011] Preferably, the step of mapping the human bounding box to a normalized depth image frame for depth validity verification, and calculating the three-dimensional spatial coordinates of each tourist in the camera coordinate system based on the verified human bounding box and the corresponding depth information, includes: Map each human bounding box to a normalized depth image frame, extract the effective depth points within each human bounding box, and remove human bounding boxes with insufficient effective depth points. For a qualified human bounding box, determine its bottom center point and obtain the corresponding depth value. Based on the intrinsic parameter matrix of the depth camera, project the image coordinates of the bottom center point and its depth value back onto the camera's three-dimensional space to obtain the three-dimensional spatial coordinates of the tourist in the camera coordinate system.
[0012] Preferably, for each tourist, calculating the tourist's motion parameters based on the three-dimensional spatial coordinates of multiple consecutive acquisition times includes: Within a sliding window consisting of multiple consecutive acquisition times, including the current acquisition time, the instantaneous velocity vector at each acquisition time is calculated based on the ratio of the difference in the three-dimensional spatial coordinates of adjacent acquisition times to the sampling time interval. The instantaneous acceleration vector at each acquisition moment is calculated based on the ratio of the difference in instantaneous velocity vectors at adjacent acquisition moments to the sampling time interval.
[0013] Preferably, the step of calculating the degree of abrupt change in the tourist's movement based on motion parameters includes: Within the sliding window, the magnitude of the instantaneous acceleration vector at each acquisition moment is normalized to a preset acceleration reference value to obtain the normalized acceleration amplitude at each acquisition moment. Based on the instantaneous velocity vector at each acquisition moment, the velocity components in the horizontal plane are extracted. The motion direction angle at each acquisition moment is determined according to the ratio of the velocity components. The ratio of the difference in motion direction angle between adjacent acquisition moments to the sampling time interval is calculated as the direction angle change rate. The absolute value of the direction angle change rate is normalized with a preset direction angle change rate reference value to obtain the normalized direction angle change amplitude at each acquisition moment. The sum of the statistical mean of the normalized acceleration amplitude and the normalized direction angle change amplitude at all acquisition moments within the sliding window is taken as the degree of motion change of the tourist at the current acquisition moment.
[0014] Preferably, determining the primary tracking target from all tourists based on the positional relationship between the tourist's three-dimensional spatial coordinates and the preset projection area includes: For each tourist at the current data collection time, calculate the spatial distance between the tourist's three-dimensional spatial coordinates and the center point of the preset projection area; The tourist with the smallest spatial distance among all tourists is identified as the primary tracking target.
[0015] Preferably, the step of calculating the velocity vector of the main tracking target using its effective historical position sequence and combining it with system delay to predict the forward position, and generating control parameters for the projection device based on the predicted position, includes: The three-dimensional spatial coordinates of the main tracking target at multiple consecutive historical acquisition moments are obtained to form a historical position sequence; The validity of the historical location sequence is checked, and abnormal jump points are removed to obtain the valid historical location sequence; The velocity vector of the main tracking target at the current acquisition time is calculated based on the ratio of the difference in three-dimensional spatial position coordinates between adjacent acquisition times in the effective historical position sequence to the sampling time interval. The sum of the products of the three-dimensional spatial coordinates of the main tracking target at the current acquisition time, the velocity vector, and the system delay time is used as the forward predicted position. The forward predicted position is transformed from the camera coordinate system to the projection device coordinate system. Based on the transformed three-dimensional coordinates, the horizontal and vertical control values of the projection device are generated as control parameters of the projection device.
[0016] Secondly, this invention provides a real-time dynamic projection and location tracking control system for cultural and tourism scenes, employing the following technical solution: A real-time dynamic projection and position tracking control system for cultural and tourism scenes includes a processor and a memory. The memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned real-time dynamic projection and position tracking control method for cultural and tourism scenes is implemented.
[0017] By adopting the above technical solution, the real-time dynamic projection and location tracking control method for cultural and tourism scenes is generated into a computer program and stored in a memory so that it can be loaded and executed by a processor. This allows for the creation of terminal devices based on the memory and processor, making them convenient to use.
[0018] This invention has the following technical effects: It integrates RGB human detection with depth image validity verification. By mapping the human bounding box to the depth image and back-projecting it onto the camera's 3D space, it accurately obtains the 3D spatial coordinates of each tourist, overcoming the unreliability of single image modality detection under complex lighting conditions. Based on a continuous multi-frame position sequence, a sliding window is constructed to simultaneously extract the tourist's instantaneous acceleration vector and motion direction change information. After normalizing the acceleration amplitude and direction changes, they are fused into the degree of motion mutation, achieving comprehensive quantitative perception of various random motion behaviors such as sudden stops, sharp turns, and sudden accelerations. This allows for early prediction of drastic fluctuations in tourist behavior rather than passive following. Based on motion mutation perception, the tourist closest to the center of the projection area is selected as the primary tracking target. Its effective historical position sequence is used to calculate the velocity vector, and combined with the system's inherent delay, forward position prediction is performed. This algorithm compensates for the delays in multiple stages from image acquisition to projection execution, enabling the projected content to respond to changes in the tourist's position in advance. By collecting the actual position of the projected light spot and comparing it with the predicted position, and using different correction strategies such as graded triggering maintenance, incremental fine-tuning, or relocking based on the magnitude of the following error, the problem of prediction residual deviation and the accumulation of mechanical execution error of the projection equipment under the assumption of uniform motion is overcome.
[0019] The aforementioned technical features work together in a coordinated and progressive manner to solve the problem of projected content lagging behind the actual position of tourists in cultural and tourism scenarios due to factors such as the high randomness of tourist behavior, dynamic changes in ambient lighting, and inherent system delays. This achieves high-precision, low-latency dynamic projection tracking control, significantly improving the interactive realism and visual continuity of tourists in immersive cultural and tourism experiences. Attached Figure Description
[0020] Figure 1 This is a flowchart of the method for real-time dynamic projection and location tracking control in cultural and tourism scenes according to an embodiment of the present invention; Figure 2 This is a comparison chart of the following errors of the present invention and existing technologies under sudden motion conditions. Detailed Implementation
[0021] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.
[0022] This invention discloses a method for real-time dynamic projection and location tracking control in cultural and tourism scenes, referring to... Figure 1 This includes steps S1-S4: S1: Obtain the preprocessed normalized RGB image frame and normalized depth image frame.
[0023] It should be noted that in cultural and tourism scenarios, tourists are often in environments with a mixture of natural and artificial ambient lighting. The RGB images captured by the depth camera are prone to local overexposure or underexposure, while the depth images contain a large number of invalid depth points and isolated noise points due to differences in the reflectivity of object surface materials or the decrease in signal-to-noise ratio at long distances. If the above-mentioned noisy raw data is directly used for subsequent position extraction and motion prediction, it will severely amplify the tracking error and lead to invalid output of projection control commands. Therefore, this step needs to solve the problems of ambient lighting noise and slight offset in sampling time between different modal images (RGB images and depth images) in the raw image sequence captured by the depth camera in cultural and tourism scenarios, so as to provide a clean, temporally consistent and physically interpretable data foundation for the subsequent accurate extraction of tourist spatial position and motion feature modeling.
[0024] In this embodiment of the invention, RGB images and depth images are simultaneously acquired by a depth camera deployed in a cultural and tourism setting. The RGB images and depth images are controlled by a hardware trigger signal at a preset nominal frame rate. Collect data. The value range is from 30fps to 60fps. In this embodiment of the invention, the preset value is... In other embodiments, the implementer may preset the fps according to the specific implementation method. The value; Using depth cameras at the time of data acquisition Taking the output of the original RGB image frame and the original depth image frame as an example, Gaussian filtering is performed on the original RGB image frame at the current acquisition time to obtain the denoised RGB image frame at the current acquisition time. It should be noted that Gaussian filtering is a well-known technique, and it will not be described in detail in this embodiment of the invention. Simultaneously, invalid point detection and isolated noise removal are performed on the raw depth image frame at the current acquisition time. It should be noted that the physical meaning of the depth value in the raw depth image frame is the actual distance from the camera's optical center to a point on the object's surface, measured in millimeters. The specific operation for invalid point detection is as follows: traverse each pixel in the original depth image frame, and if the depth value at that pixel is invalid... satisfy or or If the value equals the preset invalidity flag, the pixel is marked as an invalid depth point; otherwise, it is marked as a valid depth point. The minimum measurable distance of the depth camera is any value within the range of 200mm to 400mm. The maximum measurable distance of the depth camera is any value within the range of 3000mm to 5000mm; the default invalid flag value is 0; for a pixel marked as an invalid depth point, the depth value of the nearest valid depth point in its four neighborhoods is used for interpolation and filling; if the number of valid depth points in the four neighborhoods is less than 2, the depth value of the pixel is set to 0 and marked as an untrusted point. The specific operation for isolated noise removal is as follows: Using each effective depth point as the center, construct... If the number of valid depth points in the neighborhood window is less than or equal to 3, the center point is determined to be an isolated noise point and its depth value is set to 0, and it is marked as an untrusted point. After the above processing, the denoised depth image frame at the current acquisition time is obtained.
[0025] It should be noted that although the depth camera synchronously acquires two images through a hardware trigger signal, there is a slight difference in the exposure integration time and readout time between the RGB sensor and the depth sensor. This difference is usually between 1ms and 5ms. Under the condition of tourists moving quickly, this tiny time shift will cause spatial misalignment between the RGB texture and its corresponding depth value, which will directly affect the accuracy of subsequent cross-modal feature fusion. Therefore, it is necessary to perform time alignment on the denoised RGB image frame and the depth image frame at the current acquisition time.
[0026] In this embodiment of the invention, the difference between the exposure midpoint of the RGB image frame at the current acquisition time and the exposure midpoint of the depth image frame is used as the shooting time difference. If the absolute value of the shooting time difference is less than or equal to the time deviation tolerance threshold, it is determined that the two frames at the current acquisition time do not require alignment, and the pairing relationship between the denoised RGB image frame and the depth image frame at the current acquisition time is directly retained; in this embodiment of the invention, the preset time deviation tolerance threshold is set to a value of ms; If the shooting time difference is greater than the allowable timing deviation threshold, it indicates that the depth image frame lags behind the RGB image frame. Based on the denoised depth image frame at the current acquisition time and the first... Linear interpolation is performed on the denoised depth image frames at each acquisition time to calculate the depth image frame corresponding to the exposure midpoint time of the RGB image frame at the current acquisition time, and the calculated depth image frame is paired with the denoised RGB image frame at the current acquisition time. If the shooting time difference is less than the negative timing deviation allowable threshold, it indicates that the depth image frame leads the RGB image frame, based on the first... Linear interpolation is performed between the denoised depth image frame at each acquisition time and the denoised depth image frame at the current acquisition time to calculate the depth image frame corresponding to the exposure midpoint time of the RGB image frame at the current acquisition time. The calculated depth image frame is then paired with the denoised RGB image frame at the current acquisition time. It should be noted that the linear interpolation algorithm is a well-known technique and will not be described in detail in this embodiment of the invention.
[0027] Further, the aligned RGB image frame and depth image frame at the current acquisition time are normalized. The pixel values of each channel of the pixel in the RGB image frame are mapped from the integer gray level of [0, 255] to [0, 1] by dividing the pixel values of each channel of the pixel in the RGB image frame by 255. The depth values of the pixels in the depth image frame are mapped to the interval [0, 1]. Specifically, the difference between the depth value of any pixel in the depth image frame and the minimum measurable distance of the depth camera is used as the first difference; the difference between the maximum measurable distance and the minimum measurable distance of the depth camera is used as the second difference; and the ratio of the first difference to the second difference is used as the normalized depth value of the pixel. Thus, the normalized RGB image frame and normalized depth image frame at the current acquisition time are obtained. The normalized RGB image frame and depth image frame at the current acquisition time are stored in two preset circular buffers, each of size N. The circular buffers adopt a first-in-first-out update strategy. When the number of cached frames reaches N, the newly stored data overwrites the oldest data. This is to ensure that the two circular buffers always store the most recent set of historical image frames to support the dynamic analysis of tourist movement trends in subsequent steps. The value of N is determined based on the system storage resources and real-time requirements. This embodiment of the invention does not impose too many restrictions on this, for example, N=10.
[0028] S2: Perform human detection based on normalized RGB image frames and output human bounding boxes; based on the qualified human bounding boxes and corresponding depth information, calculate the three-dimensional spatial coordinates of each tourist in the camera coordinate system; for each tourist, calculate the tourist's motion parameters based on the three-dimensional spatial coordinates of multiple consecutive acquisition times; calculate the degree of motion change of the tourist based on the motion parameters, and determine the main tracking target from all tourists based on the positional relationship between the tourist's three-dimensional spatial coordinates and the preset projection area.
[0029] It should be noted that the above steps completed the temporal alignment and adaptive filtering preprocessing of the multimodal image sequence, outputting RGB image frames and depth image frames after denoising, temporal alignment, and normalization. This provides a clean and temporally consistent data foundation for subsequent analysis. However, the normalized RGB image frames and depth image frames themselves do not contain any semantic information about the location, number, or motion state of tourists. The core premise of dynamic projection control is the need to know the location and motion state of tourists in real time. The location determines where the projection content should be projected, and the motion state determines how to adjust the control strategy to cope with random changes. Therefore, this step needs to accurately detect the three-dimensional spatial position of each tourist in the scene in the camera coordinate system and extract features that can characterize the dynamic changes in the motion state of tourists based on the historical position information of multiple consecutive frames.
[0030] In this embodiment of the invention, the normalized RGB image frame at the current acquisition time is input into a pre-trained deep learning-based human detection network, and all detected human bounding boxes in the frame image and their corresponding confidence scores are output. Only human bounding boxes with confidence scores greater than a preset confidence threshold are retained and recorded as the target human bounding boxes of the normalized RGB image frame at the current acquisition time.
[0031] The training of the deep learning-based human detection network is as follows: The human detection network adopts a single-stage target detection network structure, and its backbone network is ResNet-50; First, a training dataset is constructed; Multiple images containing human bodies under different scenes, different lighting conditions, and different poses are collected as training samples to construct the training dataset, and each human target in each image is manually labeled. The labeling information includes the x-coordinate of the upper left corner, the y-coordinate of the upper left corner, the x-coordinate of the lower right corner, the y-coordinate of the lower right corner, and the category label of the human bounding box; Preprocessed training samples are input into the network in batches. Forward propagation is used to calculate the category prediction score corresponding to each human bounding box. This category prediction score represents the network's confidence that a human object is contained within the bounding box; its value ranges from 0 to 1, with higher values indicating greater network confidence in the presence of a human within the bounding box. During training, a focus loss function is used to calculate the category prediction loss. This loss function guides the network's learning by comparing the difference between the network's output category prediction score and the manually labeled real labels, allowing the network to continuously adjust its internal weight parameters and gradually improve the accuracy of human recognition. Backpropagation is used to calculate the gradients of the network's layer parameters, and an optimizer is used to update the network weights. This process is repeated until all training samples have been traversed, completing one round of training. The entire training process involves multiple iterations. After each round, the model performance is evaluated on an independent validation set, and the model weights with the best performance on the validation set are saved as the final inference model after training. It should be noted that the training process of deep learning-based human detection networks is a well-known technique, and will not be elaborated upon further in this embodiment.
[0032] Furthermore, a depth validity check is performed on each target human bounding box. Specifically, for each target human bounding box, it is mapped to the normalized depth image frame at the current acquisition time, and the effective depth points within each target human bounding box are extracted. If the number of effective depth points within any target human bounding box is less than or equal to the preset minimum number of effective depth points, it is determined that the human detection result lacks effective depth support in the depth image, and the target human bounding box is removed. In this embodiment of the invention, the preset confidence threshold is 0.6 and the preset minimum effective depth points are 50. In other embodiments, implementers may preset the values of the confidence threshold and the minimum effective depth points according to specific implementation methods.
[0033] Furthermore, for each target human bounding box that passes the depth validity test, calculate the corresponding 3D spatial coordinates of the visitor in the camera coordinate system: The specific calculation method is as follows: add the x-coordinate of the upper left corner and the x-coordinate of the lower right corner of any target human body bounding box, and divide by two to obtain the x-coordinate of the bottom center point of the target human body bounding box. Take the y-coordinate of the lower right corner of the target human body bounding box as the y-coordinate of the bottom center point of the target human body bounding box. Combine the x-coordinate and y-coordinate of the bottom center point of the target human body bounding box to form the coordinates of the bottom center point of the target human body bounding box. It should be noted that the physical meaning of the bottom center point is the position of the human body's feet, and its corresponding depth value directly reflects the depth of the tourist's projection point on the ground or ground plane. The bottom center point of the target human bounding box is mapped onto the depth image frame at the current acquisition time, and the depth value is obtained as the depth value of the bottom center point of the target human bounding box. If the depth value is invalid (i.e., equal to 0), the surrounding values are used. The median of all valid depth values within the neighborhood window is used as the replacement depth value; Then, based on the intrinsic parameter matrix of the depth camera, the coordinates of the bottom center point and its depth value of the bounding box of the target human body are back-projected onto the camera's 3D space. This yields the 3D spatial coordinates of the tourist within the bounding box of the target human body in the camera coordinate system. The back-projection formula is as follows: ; ; ; in, The depth value of the bottom center point of the bounding box of the target human body; The x-coordinate of the bottom center point of the bounding box of the target human body; The ordinate of the bottom center point of the bounding box of the target human body; This indicates the horizontal offset of the tourist within the bounding box of the target human body relative to the camera's optical center. This indicates the vertical height of the tourist within the bounding box of the target human body relative to the optical center of the camera. This represents the distance (depth) between the tourist within the bounding box of the target human body and the optical center of the camera. and These are the equivalent focal lengths of the depth camera along the horizontal and vertical axes, respectively, both in pixels; and These are the x-coordinate and y-coordinate of the principal point of the depth camera, respectively, and the unit is pixels. The above four parameters are all inherent intrinsic parameters of the depth camera, which are obtained through a pre-defined checkerboard calibration method. This is a conventional technical method well known to those skilled in the art, and will not be described in detail in this embodiment of the invention. The physical meaning of the back projection formula is: combining a pixel on the image plane with its corresponding depth value, and using the inverse transformation of camera perspective projection, restoring the pixel from the two-dimensional image coordinate system to its real spatial position in the three-dimensional camera coordinate system. Based on the above calculations, the three-dimensional spatial coordinates of each tourist in the normalized RGB image frame at the current acquisition time are obtained.
[0034] It should be noted that in cultural and tourism scenarios, tourists' movement behavior is highly random and sudden. Instantaneous location information at a single moment cannot reflect the changing direction of their movement trend. Sudden changes in movement (such as sudden stops, sharp turns, and sudden accelerations) are precisely the reason why the projected content lags behind the actual location of the tourists. Therefore, based on location detection, it is necessary to further construct a system that can quantify the degree of sudden changes in movement, enabling the system to promptly perceive changes in tourists' movement behavior and respond in advance to the degree of sudden changes in movement.
[0035] In this embodiment of the invention, since the location detected in each frame does not contain tourist identity information, the current frame needs to be associated with the previous frame through an inter-frame location nearest neighbor matching algorithm.
[0036] Specifically, if the normalized RGB image frame at the current acquisition time is frame 1, meaning there is no historical position data from the previous frame, then a unique initial identity number is assigned to each target human bounding box detected in the current frame. If the current frame is a frame after frame 1, then for any target human bounding box detected in the current frame, the spatial distance between it and each target human bounding box with an existing identity number in the previous frame is calculated. If the minimum value of the spatial distance is less than a preset association threshold, the identity number corresponding to the nearest target human bounding box from the previous frame is selected as the identity number of that target human bounding box; otherwise, a new identity number is assigned to that target human bounding box. Thus, the tourist's identity is associated.
[0037] Furthermore, taking the first normalized RGB image frame at the current acquisition time as the... Taking the first tourist as an example, the first... The three-dimensional spatial coordinates of a tourist at the current acquisition time and the previous M acquisition times constitute a sliding window. The choice of the window length needs to be balanced between fast response to sudden motion changes and effective suppression of measurement noise. This embodiment of the invention does not impose too many restrictions here. For example, M can be 5 frames. Within the sliding window, first calculate the first... The first tourist in The instantaneous velocity vector at the i-th acquisition moment, that is, the i-th... The three-dimensional spatial position coordinates at the first acquisition time minus the first acquisition time. The three-dimensional spatial coordinates of the location at each acquisition moment are then divided by the time interval between two adjacent acquisition moments. It should be noted that the rate of change of position over time is defined as velocity, which reflects the magnitude and direction of the tourist's displacement per unit time. The magnitude of the instantaneous velocity vector represents the speed of movement, and the direction represents the orientation of movement. Next, within the sliding window, the first... The first tourist in The instantaneous acceleration vector at the i-th acquisition moment, that is, the i-th... The instantaneous velocity vector at the acquisition moment minus the _th_ moment The instantaneous velocity vector at each acquisition moment is divided by the time interval between two adjacent acquisition moments. It should be noted that the rate of change of velocity over time is defined as acceleration, which reflects the degree of change in the tourist's motion state. When the tourist moves at a constant speed, the instantaneous acceleration vector is close to zero, while the acceleration amplitude will increase significantly when the tourist stops abruptly, turns sharply, or accelerates suddenly. Furthermore, within the sliding window, based on the first The instantaneous velocity vector of each tourist at each data collection moment is extracted. The direction angle of movement of each tourist and its rate of change; Specifically, for the first... The first tourist in The instantaneous velocity vector at the first acquisition moment is used to extract its two velocity components located in the horizontal plane formed by the X and Z axes. These two velocity components are then input into a four-quadrant arctangent function to obtain the angle between the projection of the instantaneous velocity vector onto the horizontal plane and the positive direction of the camera's optical axis (positive Z-axis). This angle is used as the angle of the first acquisition moment. The first tourist in The motion direction angle at each acquisition moment; a motion direction angle of zero indicates that the tourist is moving directly in front of the camera's optical axis, a positive motion direction angle indicates that the tourist is moving to the right front of the camera, and a negative motion direction angle indicates that the tourist is moving to the left front of the camera. The range of values for the motion direction angle covers the entire circumferential direction. Next, calculate the first... The first tourist in The rate of change of the orientation angle at the i-th acquisition time, which is the i-th acquisition time... The motion direction angle at the first acquisition moment minus the first acquisition moment The motion direction angle at each acquisition moment is divided by the time interval between two adjacent acquisition moments; the amplitude of the rate of change of the direction angle directly reflects the degree of abruptness of the tourist's turning or changing direction, and the larger the amplitude, the more drastic the change in the tourist's motion direction.
[0038] It should be noted that when tourists move, sudden stops or accelerations are manifested as a sharp increase in the magnitude of acceleration, while sharp turns or changes of direction are manifested as a sharp increase in the rate of change of the direction angle. A single physical quantity cannot fully characterize all the features of motion abrupt changes, so it is necessary to fuse the two to obtain the degree of motion abrupt change. However, the two are different types of physical quantities and cannot be directly added. Therefore, they need to be divided by their respective preset reference values to convert them into dimensionless scalars before fusion. Furthermore, in order to suppress the misjudgment that may be introduced by single-frame measurement noise, the mean of the normalized values within the sliding window is used in subsequent calculations, rather than directly using the single-point value of the current frame, so that the estimation of the degree of motion abrupt change is more stable and reliable.
[0039] In this embodiment of the invention, within the sliding window, the first... The ratio of the magnitude of the instantaneous velocity vector of each tourist at each data collection moment to the preset acceleration reference value is used as the... The normalized instantaneous acceleration amplitude of each tourist at each collection time; simultaneously, the first... The ratio of the absolute value of the rate of change of orientation angle for each tourist at each collection time to the preset reference value of the rate of change of orientation angle is used as the first... Normalized directional angle variation amplitude for each tourist at each data collection time; The first in the sliding window The average of the normalized instantaneous acceleration amplitudes of each tourist at all data collection times is taken as the first average; the average value within the sliding window is... The average of the normalized azimuth angle variation amplitudes of each tourist at all data collection times is taken as the second mean; the first mean is added to the second mean to obtain the third mean. The degree of abrupt change in the movement of a tourist at the current moment of data collection; When tourists move in a straight line at a constant speed, the degree of motion change approaches 0. When tourists suddenly stop, turn sharply, or accelerate, the degree of motion change increases significantly. The larger the value, the higher the degree of change in the tourist's current motion behavior, and the higher the requirement for the dynamic response speed of the projection control system.
[0040] The preset acceleration reference value needs to be determined based on the maximum acceleration that tourists may achieve in the actual scenario. For example, the acceleration reference value is taken as... mm / s²; The reference value for the rate of change of orientation angle needs to be determined based on the maximum rate of change of orientation angle that tourists may reach in the actual scenario. For example, the reference value for the rate of change of orientation angle is 3 rad / s.
[0041] When there are multiple tourists in the scene, the tourist closest to the center of the projection area is usually in the best viewing position and has the most urgent need for interaction. Taking the tourist as the main tracking target can maximize the service value of the projection content. Therefore, for any tourist in the normalized RGB image frame at the current acquisition time, the distance between the three-dimensional spatial coordinates of the tourist and the three-dimensional coordinates of the preset projection target area center point in the camera coordinate system is obtained using the Euclidean norm. This distance is recorded as the target distance of the tourist. Among all tourists in the normalized RGB image frame at the current acquisition time, the tourist with the smallest target distance is taken as the primary tracking target at the current acquisition time, and the other tourists are recorded as secondary tracking targets; the position sequence formed by the three-dimensional spatial position coordinates of the primary tracking target at all acquisition times before the current acquisition time is recorded as the historical position sequence of the primary tracking target.
[0042] S3: Calculate the velocity vector of the main tracking target using its effective historical position sequence and combine it with the system delay to predict the forward position. Generate the control parameters of the projection device based on the predicted position.
[0043] It should be noted that due to the inherent system latency in the depth camera acquisition, transmission, and processing links, projection control commands always lag behind the actual position of the visitor. This latency occurs due to multiple stages between image acquisition and the issuance of the projection control command to the projection device, including image transmission time, algorithm processing time, and the electromechanical response time of the projection device itself. When the visitor moves at a constant or slow speed, the resulting positional deviation is within an acceptable range; however, when the visitor experiences sudden movements, this latency will cause the projected content to deviate significantly from the visitor's actual position. Therefore, it is necessary to adaptively adjust the response sensitivity of the position prediction based on the degree of motion change to generate the required control parameters for the projection device.
[0044] Based on this, this step first verifies the validity of the historical position sequence of the main tracking target and removes any abnormal jumps. Then, based on the three-dimensional spatial coordinates of the main tracking target in the normalized RGB image frame at the current moment and the three-dimensional spatial coordinates in the normalized RGB image frame at the previous acquisition moment, the motion velocity is calculated. Considering the inherent delay of the system, forward position prediction is performed to generate the horizontal and vertical rotation angle control parameters of the projection device, and these parameters are then sent to the projection device for execution.
[0045] In this embodiment of the invention, for the historical position sequence of the main tracking target in the normalized RGB image frame at the current acquisition time, the first... At each acquisition time, a maximum inter-frame displacement threshold is preset. Using the Euclidean norm, the value of the main tracked target at the [number]th acquisition time is obtained. The three-dimensional spatial coordinates of the normalized RGB image frame at the first acquisition time and the first acquisition time. The distance between the three-dimensional spatial coordinates of the main tracking target in the normalized RGB image frame at each acquisition time is denoted as the distance between the three-dimensional spatial coordinates of the main tracking target at the first acquisition time. Spatial movement distance in a normalized RGB image frame at each acquisition time; If the main tracking target is in the If the spatial movement distance in the normalized RGB image frame at any given sampling time exceeds the maximum inter-frame displacement threshold, then the three-dimensional spatial coordinates are determined to be an abnormal jump position, and are removed from the historical position sequence of the main tracking target. The original three-dimensional spatial coordinates are then replaced with the linear interpolation result of the normalized RGB image frame at the previous sampling time and the normalized RGB image frame at the next sampling time, resulting in the historical position sequence of the main tracking target after validity verification. The maximum inter-frame displacement threshold is the maximum spatial distance that the tourist may move within the sampling interval between two adjacent frames, reasonably determined based on the limits of human movement speed. This embodiment of the invention does not impose excessive restrictions here; for example, the maximum inter-frame displacement threshold can be set to... mm.
[0046] Furthermore, based on the historical position sequence of the main tracking target after validity verification, the three-dimensional velocity vector of the main tracking target at the current acquisition time is obtained, and its calculation expression is as follows: ; In the formula, This represents the three-dimensional velocity vector of the main tracking target at the current acquisition moment; This represents the three-dimensional spatial coordinates of the main tracking target in the normalized RGB image frame at the current acquisition time; Indicates the main tracking target is in the 1st month. The three-dimensional spatial coordinates of the normalized RGB image frame at each acquisition time; The sampling interval between adjacent frames. ,in, The preset nominal frame rate is represented by a conversion factor of 1000 from seconds to milliseconds. Based on this, forward position prediction is performed considering the inherent total system delay. This inherent total system delay represents the cumulative delay from the start of image acquisition to the actual execution of the projection command. The inherent total system delay is obtained through actual measurement and calibration during system deployment, and is updated and compensated at predetermined intervals based on the triggering frequency of depth data loss events during use, thus obtaining the forward predicted position of the main tracking target. Its calculation expression is as follows: ; In the formula, Indicates the forward predicted position of the main tracking target; This represents the three-dimensional spatial coordinates of the main tracking target in the normalized RGB image frame at the current acquisition time; This represents the three-dimensional velocity vector of the main tracking target at the current acquisition moment; This represents the system's inherent total delay.
[0047] The physical meaning of the forward prediction position of the main tracking target is as follows: assuming that the tourist maintains the current speed direction and magnitude unchanged during the future system's inherent total delay time, the current position is pushed forward along the speed direction to obtain the system's inherent total delay time, thus obtaining the predicted position as the spatial point that the projection device should actually aim at, thereby compensating for the system's inherent delay from an algorithmic perspective.
[0048] Furthermore, control parameters for the projection device are generated based on the forward predicted position. The projection device is installed at a fixed position, and the spatial relative positional relationship between its device coordinate system origin and the depth camera coordinate system origin is obtained through pre-calibration. This spatial relationship includes a three-dimensional translation vector and a three-dimensional rotation matrix, both of which are pre-calibrated constant parameters. The forward predicted position is transformed from the camera coordinate system to the projection device coordinate system, obtaining the three-dimensional coordinates of the predicted position in the projection device coordinate system. Based on these three-dimensional coordinates, the horizontal and vertical rotation angle control values of the projection device are calculated using coordinate transformation methods known in the art, driving the projection lens optical axis to align with the predicted tourist position.
[0049] S4: Project the content to the forward prediction position according to the control parameters, acquire a scene image containing the projected light spot, detect the actual light spot position, calculate the following error between the actual light spot position and the forward prediction position, and perform hierarchical correction according to the following error.
[0050] It should be noted that although forward prediction compensates for the inherent system delay, the prediction model itself is based on the assumption of uniform motion. When the actual movement of the tourist changes abruptly within the prediction window—that is, when a new direction or speed change occurs during the delay period between image acquisition and projection command execution—a residual deviation may still exist between the predicted and actual positions. Furthermore, factors such as the mechanical precision of the projection equipment and environmental vibrations may also cause slight offsets between the actual projection point and the theoretically calculated position. Therefore, a rapid closed-loop verification mechanism needs to be introduced after projection execution to measure the tracking deviation in real time and trigger rapid correction when the deviation exceeds the allowable range, thereby ensuring the long-term stable operation of the entire dynamic projection system.
[0051] Based on this, this step converts the horizontal rotation angle control and the vertical rotation angle control into the actual physical execution action of the projection device, so that the projection content is accurately projected onto the predicted tourist position, and performs closed-loop verification on the actual projection following effect after execution to ensure the continuous accuracy and reliability of dynamic projection.
[0052] The horizontal and vertical rotation angle control values are sent as control commands to the gimbal servo drive system of the projection device, driving the projection lens to rotate to the target posture and project the preset projection content to the target position. Then, within a predetermined time after the projection content is projected, the next frame image is acquired using a depth camera. The tracking error is calculated by extracting the deviation between the actual position and the predicted position of the projected light spot in the scene. Finally, different correction strategies are triggered according to the magnitude of the tracking error: when the error is less than the preset allowable error threshold, the current prediction parameters remain unchanged; when the error is greater than the preset allowable error threshold but less than the preset maximum allowable error threshold, an incremental fine-tuning strategy is used for frame-by-frame compensation; when the error is greater than the preset maximum allowable error threshold, the projection target is determined to be lost and a re-locking process is triggered. The specific method is as follows: In this embodiment of the invention, based on the angular resolution parameters of the projection device's gimbal servo motor, and the horizontal and vertical rotation angle control values of the projection device, the number of horizontal and vertical drive pulses required for the motor stepping is obtained. The specific calculation expression is as follows: ; ; In the formula, This indicates the number of horizontal drive pulses required for the motor to step. This indicates the number of vertical drive pulses required for the motor to step. This indicates the horizontal rotation angle control value of the projection device at the current moment; This indicates the horizontal rotation angle control value of the projection device at the previous moment; This indicates the vertical rotation angle control value of the projection device at the current moment; This indicates the vertical rotation angle control value of the projection device at the previous moment; This indicates the rounding operation; The step angle of the servo motor of the projection device's gimbal; The physical meaning of this calculation expression is to convert the angle increment into the number of pulses required for motor stepping, thus avoiding angle drift caused by the continuous accumulation of floating-point rounding errors during frame-by-frame accumulation.
[0053] Furthermore, once the gimbal servo system completes the pulse command, the projection lens is driven to the target posture, and the projection device simultaneously projects the preset projection content onto the spatial point in the scene corresponding to the predicted position through the optical engine, which is recorded as the predicted target position. A depth camera is used to acquire scene images containing projected light spots. The actual landing point position after projection is detected. The method for detecting projected light spots is a conventional image processing technique well-known to those skilled in the art. The specific operation is as follows: In the normalized RGB image frame at the current acquisition time, the region where the projected light spot is located is extracted by color threshold segmentation, and the brightness weighted center of all pixels in the region is calculated as the coordinates of the center pixel of the light spot. Using depth value extraction and back projection methods, the coordinates of the center pixel of the light spot are mapped to the three-dimensional position in the camera coordinate system, and recorded as the actual position of the light spot.
[0054] Using the Euclidean norm, the spatial distance between the actual spot position and the predicted target position is obtained, denoted as the following error.
[0055] Furthermore, based on the magnitude of the following error, a graded correction strategy is implemented, specifically as follows: A first allowable error threshold and a second allowable error threshold are preset, satisfying that the first allowable error threshold is greater than and less than the second allowable error threshold. This embodiment of the invention does not impose numerous limitations; for example, the first allowable error threshold can be preset to... mm, the preset second tolerance threshold is mm; When the following error is less than or equal to the first allowable error threshold, the current following accuracy is determined to meet the requirements, the calculated prediction parameters remain unchanged, and the normal prediction and projection process continues in the next frame; when the following error is greater than the first allowable error threshold but less than or equal to the second allowable error threshold, the following error is determined to be too large but still within a controllable range, triggering an incremental fine-tuning correction strategy, the specific operation of which is as follows: The expression for calculating the correction vector is: ; In the formula, Represents the correction vector; This represents the pixel coordinates of the center of the light spot in the normalized RGB image frame at the current acquisition time; This indicates the predicted target location in the normalized RGB image frame at the current acquisition time; The correction vector is multiplied by a preset correction gain coefficient and then superimposed onto the predicted position in the normalized RGB image frame at the next acquisition time. The correction gain coefficient is a dimensionless positive number, and it must be greater than 0 and less than 1. This embodiment of the invention does not impose many restrictions on this, such as the value of the preset correction gain coefficient. This allows for frame-by-frame progressive compensation, avoiding severe jitter in the projected content caused by a single large correction.
[0056] When the following error exceeds the second allowable error threshold, it is determined that the projected target has been lost or the following error is too large to be recovered through fine-tuning, triggering the relocking process.
[0057] The specific operation of the relocking process is as follows: the currently detected main tracking target position is directly used as the prediction starting position for the next frame, while the first-order inertial filter is reset, that is, the measured tourist position of the current frame is initialized, and the dynamic smoothing coefficient is temporarily set to the maximum value. It quickly re-locks the tourist's location and resumes normal prediction mode after the tracking error is stable below the first tolerance error threshold for three consecutive frames.
[0058] During the relocking process, the projection device will revert the projected content to a preset safe projection point. This safe projection point is a fixed projection position set in advance and located within the protection area at the edge of the projection area to prevent the projection beam from deviating randomly due to the lack of a target during the relocking process, which could cause safety hazards.
[0059] Figure 2 This is a comparison chart of the following errors of the present invention and existing technologies under conditions of sudden motion changes. Existing technologies using linear extrapolation cannot adapt to sudden changes in acceleration and direction at the moments of sudden motion changes (the third and seventh seconds), resulting in a significant spike in following error and extremely slow convergence. The present invention relies on motion change perception and hierarchical closed-loop correction, which only produces small fluctuations when sudden changes occur, and the error remains at an extremely low level throughout, significantly improving the accuracy and stability of dynamic following.
[0060] This invention also discloses a real-time dynamic projection and location tracking control system for cultural and tourism scenes, including a processor and a memory. The memory stores computer program instructions, and when the computer program instructions are executed by the processor, the real-time dynamic projection and location tracking control method for cultural and tourism scenes provided by this invention is implemented.
[0061] The system also includes other components well-known to those skilled in the art, such as communication buses and communication interfaces, the setup and functions of which are known in the art and will not be described in detail here. In this invention, the aforementioned memory can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0062] The above are all preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Therefore, all equivalent changes made in accordance with the structure, shape and principle of the present invention should be covered within the scope of protection of the present invention.
Claims
1. A method for real-time dynamic projection and position tracking control in cultural and tourism scenes, characterized in that, include: Obtain preprocessed normalized RGB image frames and normalized depth image frames; Human detection is performed based on normalized RGB image frames, and human bounding boxes are output. The human bounding box is mapped to a normalized depth image frame for depth validity verification. Based on the qualified human bounding box and the corresponding depth information, the three-dimensional spatial coordinates of each tourist in the camera coordinate system are calculated. Based on the three-dimensional spatial coordinates of each tourist, inter-frame correlation matching is performed to determine the identity number of each tourist; for each tourist, the motion parameters of the tourist are calculated based on the three-dimensional spatial coordinates of multiple consecutive acquisition times; the degree of motion change of the tourist is calculated based on the motion parameters, and the main tracking target is determined from all tourists based on the positional relationship between the tourist's three-dimensional spatial coordinates and the preset projection area; the velocity vector of the main tracking target is calculated using the effective historical position sequence of the main tracking target, and forward position prediction is performed in combination with the system delay; the control parameters of the projection device are generated based on the predicted position. The projected content is projected to the forward prediction position according to the control parameters, a scene image containing the projected light spot is acquired, the actual light spot position is detected, the following error between the actual light spot position and the forward prediction position is calculated, and a graded correction is performed based on the following error.
2. The method for real-time dynamic projection and position tracking control of cultural and tourism scenes according to claim 1, characterized in that, The acquisition of preprocessed normalized RGB image frames and normalized depth image frames includes: RGB images and depth images are simultaneously acquired using depth cameras deployed in cultural and tourism settings; The RGB image is denoised, and the depth image is subjected to invalid point removal and isolated noise removal. The difference between the exposure midpoint of the RGB image and the exposure midpoint of the depth image is used as the shooting time difference. Based on the comparison between the shooting time difference and the preset time deviation tolerance threshold, it is determined whether to perform time interpolation alignment on the depth image. The aligned RGB image and the depth image are normalized and mapped to obtain normalized RGB image frames and normalized depth image frames.
3. The method for real-time dynamic projection and position tracking control of cultural and tourism scenes according to claim 1, characterized in that, The method of human detection based on normalized RGB image frames and outputting human bounding boxes includes: Normalized RGB image frames are input into a pre-trained human detection network, which outputs all detected human bounding boxes and their confidence scores in the frame, retaining human bounding boxes with confidence scores greater than a preset confidence threshold.
4. The method for real-time dynamic projection and position tracking control of cultural and tourism scenes according to claim 3, characterized in that, The human detection network employs a single-stage target detection network based on deep learning, and its training process includes: Images containing human bodies under different scenes, lighting conditions, and poses are collected as training samples. The bounding box coordinates and category labels are labeled for each human target. The training samples are input into the network in batches for forward propagation, the category prediction loss is calculated, the network weights are updated through backpropagation, and the training is iteratively trained until convergence.
5. The method for real-time dynamic projection and position tracking control of cultural and tourism scenes according to claim 1, characterized in that, The process of mapping human bounding boxes to normalized depth image frames for depth validity verification, and calculating the three-dimensional spatial coordinates of each tourist in the camera coordinate system based on the verified human bounding boxes and corresponding depth information, includes: Map each human bounding box to a normalized depth image frame, extract the effective depth points within each human bounding box, and remove human bounding boxes with insufficient effective depth points. For a qualified human bounding box, determine its bottom center point and obtain the corresponding depth value. Based on the intrinsic parameter matrix of the depth camera, project the image coordinates of the bottom center point and its depth value back onto the camera's three-dimensional space to obtain the three-dimensional spatial coordinates of the tourist in the camera coordinate system.
6. The method for real-time dynamic projection and position tracking control of cultural and tourism scenes according to claim 1, characterized in that, For each tourist, the motion parameters are calculated based on the three-dimensional spatial coordinates of the tourist's location at multiple consecutive data collection times, including: Within a sliding window consisting of multiple consecutive acquisition times, including the current acquisition time, the instantaneous velocity vector at each acquisition time is calculated based on the ratio of the difference in the three-dimensional spatial coordinates of adjacent acquisition times to the sampling time interval. The instantaneous acceleration vector at each acquisition moment is calculated based on the ratio of the difference in instantaneous velocity vectors at adjacent acquisition moments to the sampling time interval.
7. The method for real-time dynamic projection and position tracking control of cultural and tourism scenes according to claim 6, characterized in that, The calculation of the tourist's degree of motion mutation based on motion parameters includes: Within the sliding window, the magnitude of the instantaneous acceleration vector at each acquisition moment is normalized to a preset acceleration reference value to obtain the normalized acceleration amplitude at each acquisition moment. Based on the instantaneous velocity vector at each acquisition moment, the velocity components in the horizontal plane are extracted. The motion direction angle at each acquisition moment is determined according to the ratio of the velocity components. The ratio of the difference in motion direction angle between adjacent acquisition moments to the sampling time interval is calculated as the direction angle change rate. The absolute value of the direction angle change rate is normalized with a preset direction angle change rate reference value to obtain the normalized direction angle change amplitude at each acquisition moment. The sum of the statistical mean of the normalized acceleration amplitude and the normalized direction angle change amplitude at all acquisition moments within the sliding window is taken as the degree of motion change of the tourist at the current acquisition moment.
8. The method for real-time dynamic projection and position tracking control of cultural and tourism scenes according to claim 1, characterized in that, The process of determining the primary tracking target from all tourists based on the positional relationship between the tourist's three-dimensional spatial coordinates and the preset projection area includes: For each tourist at the current data collection time, calculate the spatial distance between the tourist's three-dimensional spatial coordinates and the center point of the preset projection area; The tourist with the smallest spatial distance among all tourists is identified as the primary tracking target.
9. The method for real-time dynamic projection and position tracking control of cultural and tourism scenes according to claim 1, characterized in that, The process of calculating the velocity vector of the main tracking target using its effective historical position sequence and predicting its forward position by combining it with system delay, and generating control parameters for the projection device based on the predicted position, includes: The three-dimensional spatial coordinates of the main tracking target at multiple consecutive historical acquisition moments are obtained to form a historical position sequence; The validity of the historical location sequence is checked, and abnormal jump points are removed to obtain the valid historical location sequence; The velocity vector of the main tracking target at the current acquisition time is calculated based on the ratio of the difference in three-dimensional spatial position coordinates between adjacent acquisition times in the effective historical position sequence to the sampling time interval. The sum of the products of the three-dimensional spatial coordinates of the main tracking target at the current acquisition time, the velocity vector, and the system delay time is used as the forward predicted position. The forward predicted position is transformed from the camera coordinate system to the projection device coordinate system. Based on the transformed three-dimensional coordinates, the horizontal and vertical control values of the projection device are generated as control parameters of the projection device.
10. A real-time dynamic projection and location tracking control system for cultural and tourism scenes, characterized in that, include: The processor and memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the real-time dynamic projection and position tracking control method for cultural and tourism scenes according to any one of claims 1-9 is implemented.
