A ToF-based projector intrusion eye protection method, system and storage medium

By establishing a spatial envelope model of the projection beam using a ToF sensor, multi-dimensional threshold chain determination is performed to identify the risk subject and calculate the estimated remaining time. This solves the problems of refined identification and fault safety redundancy in projector eye protection solutions, and achieves accurate and stable eye protection for projectors.

CN123185328APending Publication Date: 2026-11-27SHENZHEN BEIKE VIDEO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611361464.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing projector eye protection solutions cannot accurately identify human targets, lack multi-dimensional assessment of the risk of projection beam intrusion, and lack fault safety redundancy, resulting in insufficient precision and stability of protection measures.

Method used

By acquiring target distance information through a ToF sensor, establishing a spatial envelope model of the projected beam, performing multi-dimensional threshold chain determination, identifying risk subjects and calculating the estimated remaining time, executing graded protection actions and confirming the closed loop, thus achieving advanced early warning and stable recovery.

Benefits of technology

It achieves refined feedforward protection against the risk of projection beam intrusion, ensuring the accuracy and stability of protection measures and avoiding frequent switching of protection states and screen flickering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185328A_ABST
    Figure CN123185328A_ABST
Patent Text Reader

Abstract

The application provides a ToF-based projector intrusion eye protection method, system and storage medium, which acquires distance information of a target relative to a projector lens to determine whether to enter a primary warning zone, calculates a signed distance value of the target to an envelope boundary after confirming the entry; further determines whether to intrude into a light beam core risk area through the signed distance value, performs human key part detection on the target after confirming the intrusion, and identifies a risk subject according to a detection confidence to determine a risk reference point; then calculates an expected remaining time based on a time sequence tracking result of the risk reference point to determine whether to perform a hierarchical protection action; compares an actual feedback value of a light source with a protection command target value after performing the protection action to close-loop confirm the effective implementation of the protection action, and finally performs a hierarchical slow-rising recovery operation after confirming that the target no longer meets the trigger condition; thereby realizing fine feed-forward protection of the projection light beam intrusion risk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of optical safety protection technology for projection display devices, and more specifically, to a ToF-based method, system, and storage medium for protecting projectors from intrusion. Background Technology

[0002] During operation, a projector projects its light source onto a screen or wall via an imaging optical path, forming a projection beam with a certain spatial range. When users (especially children) walk between the projector and the projection surface, or adjust the device in front of the lens, their head, face, and eyes may be encroached upon the high-illuminance area of ​​the projection beam. Directly looking at or receiving projection light at close range may lead to glare, eye discomfort, or even retinal light damage.

[0003] In existing technologies, projector eye protection solutions mainly rely on infrared human body sensors, camera visual detection, or single distance threshold judgment to trigger screen-off protection, which has the following problems: First, it can only determine whether a person has entered, but cannot distinguish different parts such as hands, torso, head, face, and eyes, nor can it identify the direction of the human body, which is prone to false triggering of risk-free actions or missed response in high-risk scenarios; Second, the protection area is fixed in two-dimensional image coordinates, and no three-dimensional spatial model of the projection beam is established, so it cannot adaptively adjust when the projection distance, zoom ratio, and keystone correction angle change; Third, it only relies on single frame detection results and lacks the ability to predict the forward movement trend of the target, resulting in insufficient response margin in rapidly intruding scenarios; Fourth, the protection action is simple, only able to turn off the entire screen or reduce brightness globally, and cannot achieve local fine light control, which seriously affects the continuity of viewing; Fifth, it lacks a hardware fallback protection link independent of the main control software, and a single failure may lead to protection failure; Sixth, the recovery strategy lacks hysteresis design, which can easily cause frequent switching of protection status and screen flickering.

[0004] To address the aforementioned issues, a method for eye protection that can perform multi-dimensional, refined analysis of targets within the projected beam and possesses fault-safe redundancy is needed. Summary of the Invention

[0005] In view of the above problems, the purpose of this invention is to provide a ToF-based method, system and storage medium for protecting the eyes from intrusion of projector beams, which solves the problem of how to make a step-by-step judgment of human targets intruding on the projector beam from coarse to fine, from far to near, and from prediction to execution by constructing a multi-dimensional threshold chain, so as to achieve coordinated control of early warning, accurate classification and stable recovery.

[0006] The first aspect of this invention provides a ToF-based method for protecting projectors from intrusion into the eyes, the method comprising: Obtain the initial distance information of the target relative to the projector lens; Determine whether to enter the primary warning zone based on the first distance information; If so, the three-dimensional coordinates of the target are mapped to the spatial envelope model of the projection beam, and the signed distance value from the target to the envelope boundary is calculated; Determine whether the beam has entered the core risk region based on the signed distance value; If so, then perform human body key part detection on the target; Based on the detection confidence level, identify the risk subjects and determine the risk reference points; Based on the time-series tracking results of the risk reference point, calculate the estimated remaining time for the target to reach the envelope boundary or the near-end plane of the lens; Determine whether to perform a protection action based on the estimated remaining time; If so, the graded protection action is executed, and the actual feedback value of the light source is compared with the target value of the protection command to confirm whether the protection action is effectively implemented. If the implementation is confirmed to be effective, a tiered gradual recovery operation will be performed after the target no longer meets the triggering conditions.

[0007] In this solution, determining whether to enter the primary warning zone based on the first distance information specifically includes: Obtain the depth map output by the ToF sensor, and extract the distance value of each pixel in the depth map; Pixels whose distance value is less than a preset first distance threshold are marked as foreground candidate points; Perform connected component clustering on the foreground candidate points to generate a candidate target set; For each target in the candidate target set, track its distance change trend over multiple consecutive frames; When the distance change trend indicates that the target is continuously approaching and the approach rate exceeds a preset approach rate threshold, the target is marked as entering the primary warning zone and the high-frequency monitoring mode is activated.

[0008] In this scheme, before calculating the signed distance value from the target to the envelope boundary, the method further includes: The current zoom position, throw ratio, keystone correction parameters and device attitude angle of the projection optical engine are obtained to calculate the equations of multiple boundary planes of the projection beam in three-dimensional space. The spatial envelope model of the projection beam is formed by the boundary planes described above. An inner risk envelope is formed by offsetting a safety margin distance inward along the normal direction of each of the aforementioned boundary planes. Substitute the three-dimensional coordinates of the target into the signed distance function of the envelope model to calculate the signed distance value of the target relative to each of the boundary planes.

[0009] In this solution, the step of identifying risk subjects and determining risk reference points based on detection confidence levels specifically includes: Following the priority sequence of eyes, face, and head, the detection confidence of the corresponding parts is compared with the preset confidence threshold in turn; When the detection confidence level of the eye reaches the confidence threshold, the three-dimensional coordinates of the eye are used as the risk reference point; When the detection confidence level of the eye does not reach the confidence threshold but the detection confidence level of the face does, the three-dimensional coordinates of the face center are used as the risk reference point. When the detection confidence of the face and the eyes does not reach the confidence threshold, but the detection confidence of the head does, the three-dimensional coordinates of the point in the head region closest to the lens are used as the risk reference point.

[0010] In this solution, after identifying the risk subject and determining the risk reference point, the solution further includes: Detect the facial orientation vector of the target and calculate the angle between the facial orientation vector and the optical axis of the projector; The included angle is compared with a preset orientation angle threshold; When the included angle is less than the included angle threshold, the current risk level will be raised by one level; When the included angle is greater than or equal to the included angle threshold, the current risk level is maintained; Based on the updated risk level, determine whether to trigger the next level of protection preparation actions in advance.

[0011] In this solution, the calculation of the estimated remaining time based on the time-series tracking results of the risk reference point specifically includes: The position of the risk reference point in multiple consecutive sampling frames is time-series tracked to generate a position time-series sequence; Based on the location time sequence, calculate the motion velocity vector and motion acceleration vector of the risk reference point; Based on the current position, the velocity vector, and the acceleration vector, predict the estimated remaining time for the risk reference point to reach the envelope boundary or the near-end plane of the lens; When the estimated remaining time is less than or equal to a preset first time threshold, a protection action is immediately triggered; When the estimated remaining time is greater than the first time threshold and less than or equal to the preset warning time threshold, a pre-protection preparation action is performed.

[0012] A second aspect of the present invention provides a ToF-based projector intrusion eye protection system, including a ToF-based projector intrusion eye protection method program, wherein the ToF-based projector intrusion eye protection method program, when executed by the processor, performs the following steps: Obtain the initial distance information of the target relative to the projector lens; Determine whether to enter the primary warning zone based on the first distance information; If so, the three-dimensional coordinates of the target are mapped to the spatial envelope model of the projection beam, and the signed distance value from the target to the envelope boundary is calculated; Determine whether the beam has entered the core risk region based on the signed distance value; If so, then perform human body key part detection on the target; Based on the detection confidence level, identify the risk subjects and determine the risk reference points; Based on the time-series tracking results of the risk reference point, calculate the estimated remaining time for the target to reach the envelope boundary or the near-end plane of the lens; Determine whether to perform a protection action based on the estimated remaining time; If so, the graded protection action is executed, and the actual feedback value of the light source is compared with the target value of the protection command to confirm whether the protection action is effectively implemented. If the implementation is confirmed to be effective, a tiered gradual recovery operation will be performed after the target no longer meets the triggering conditions.

[0013] A third aspect of the present invention provides a computer-readable storage medium comprising a ToF-based projector intrusion eye protection method program, wherein when the ToF-based projector intrusion eye protection method program is executed by a processor, it implements the steps of the ToF-based projector intrusion eye protection method as described in any of the preceding claims.

[0014] This invention provides a ToF-based method, system, and storage medium for projector intrusion protection. It determines whether a target has entered a primary warning zone by acquiring the distance information of the target relative to the projector lens. Upon confirmation of entry, it calculates the signed distance value from the target to the envelope boundary. Then, it determines whether the target has intruded into the core risk area of ​​the projector beam by using the signed distance value. Upon confirmation of intrusion, it performs human body key component detection on the target and identifies the risk subject based on the detection confidence level to determine a risk reference point. Next, it calculates the estimated remaining time based on the time-series tracking results of the risk reference point to determine whether to execute a tiered protection action. After executing the protection action, it compares the actual feedback value of the light source with the target value of the protection command to confirm the effective implementation of the protection action in a closed loop. Finally, after confirming that the target no longer meets the triggering conditions, it performs a tiered gradual recovery operation. This achieves refined feedforward protection against the risk of projector beam intrusion. Attached Figure Description

[0015] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope.

[0016] Figure 1 A flowchart of a ToF-based projector intrusion protection method of the present invention is shown; Figure 2 This diagram illustrates an execution flowchart for risk level adjustment provided by an embodiment of the present invention; Figure 3 A flowchart illustrating a method for determining the estimated remaining time, provided by an embodiment of the present invention, is shown. Figure 4 A block diagram of a ToF-based projector intrusion protection system of the present invention is shown. Detailed Implementation

[0017] 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.

[0018] Unless otherwise defined, all terms (including technical and scientific terms) used in embodiments of this invention shall have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in a common dictionary shall be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and not as being interpreted in an idealized or highly formalized sense, unless expressly defined in this embodiment of the invention.

[0019] The terms "first," "second," and similar terms used in the embodiments of this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "an," "a," or "the" do not indicate a quantity limitation, but rather indicate the presence of at least one. Similarly, terms such as "including" or "comprising" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The steps preceding or following the steps in the method of the embodiments of this invention are not necessarily performed precisely in sequence. Instead, various steps can be processed in reverse order or simultaneously. Furthermore, other operations can be added to these processes, or one or more steps can be removed from these processes.

[0020] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0021] Figure 1 A flowchart of a ToF-based projector intrusion protection method according to the present invention is shown.

[0022] like Figure 1 As shown, the first aspect of this invention discloses a ToF-based method for protecting projectors from intrusion into the eyes, the method comprising: S102, Obtain the first distance information of the target relative to the projector lens; S104, determine whether to enter the primary warning zone based on the first distance information; S106, if so, then map the three-dimensional coordinates of the target to the spatial envelope model of the projection beam, and calculate the signed distance value from the target to the envelope boundary; S108, determine whether the beam core risk area has been invaded based on the signed distance value; S110, if so, then perform human body key part detection on the target; S112, Based on the detection confidence level, identify the risk subject and determine the risk reference point; S114, Based on the time-series tracking results of the risk reference point, calculate the estimated remaining time for the target to reach the envelope boundary or the near-end plane of the lens; S116, determine whether to perform a protection action based on the estimated remaining time; S118, if so, then execute the graded protection action and compare the actual feedback value of the light source with the target value of the protection command to confirm whether the protection action has been effectively implemented; S120, if the effective implementation is confirmed, a graded gradual recovery operation is performed after the target no longer meets the triggering conditions.

[0023] It should be noted that, in this embodiment, after the projector is powered on, the system first completes the joint calibration of multiple coordinate systems and the synchronous initialization of the sensors. The ToF depth sensor continuously outputs depth map data within the field of view at a preset frame rate. The system acquires the distance values ​​of each pixel in the depth map in real time and compares these distance values ​​with a preset first distance threshold point by point.

[0024] When a target (such as a human body, head, or handheld object) enters the monitoring field of view in front of the projector lens, the system identifies the target through foreground extraction and connected component clustering of the depth map, and obtains its first distance information relative to the projector lens. The system compares this distance information with a first distance threshold. If the target distance is less than the first distance threshold, the system determines that the target has entered the primary warning zone.

[0025] Subsequently, the system maps the target's three-dimensional coordinates onto a pre-established projection beam spatial envelope model and calculates the signed distance value from the target to the envelope boundary. The sign of this signed distance value indicates whether the target is located outside or inside the envelope. The system compares this signed distance value with a second distance threshold; if the signed distance value is less than the second distance threshold, it determines that the target has intruded into the beam core risk region.

[0026] Based on this, the system initiates a key human body part detection process, performing human body detection, head detection, face detection, and eye key point regression on the image data captured by the image acquisition unit, and outputs the detection confidence score for each part. According to the detection confidence score, the system identifies risk subjects according to a preset part priority sequence, and determines risk reference points from the center of the eyes, face, or the nearest point on the head.

[0027] The system then performs time-series tracking of the risk reference point's position across multiple consecutive sampling frames, and calculates the estimated remaining time for the target to reach the envelope boundary or the near-end plane of the lens in its current motion state based on the tracking results. The system compares this estimated remaining time with a first time threshold; if the estimated remaining time is less than or equal to the first time threshold, a graded protection action is immediately triggered.

[0028] While executing graded protection actions, the system reads the light source drive feedback signal and compares the actual feedback value of the light source with the target value of the protection command to confirm the effectiveness of the protection action in a closed loop. If the action is confirmed to be effective, the system continuously monitors the position change of the target. When the target no longer meets any level of triggering conditions, the system initiates the recovery judgment process. After meeting the exit distance condition, the continuous safe frame count condition, and the hold time condition, the system performs a graded gradual recovery operation to gradually restore the light source power to normal operating status.

[0029] Furthermore, the aforementioned first distance threshold, second distance threshold, first time threshold, and confidence threshold are all preset configurable parameters that can be calibrated according to the product's safety level and optical performance. The graded protection actions include at least one of local brightness suppression, local black masking, global light reduction, and light source shutdown. The specific execution level is determined comprehensively based on the location of the risk reference point, the type of part, and the estimated remaining time.

[0030] According to an embodiment of the present invention, determining whether to enter the primary warning zone based on the first distance information specifically includes: Obtain the depth map output by the ToF sensor, and extract the distance value of each pixel in the depth map; Pixels whose distance value is less than a preset first distance threshold are marked as foreground candidate points; Perform connected component clustering on the foreground candidate points to generate a candidate target set; For each target in the candidate target set, track its distance change trend over multiple consecutive frames; When the distance change trend indicates that the target is continuously approaching and the approach rate exceeds a preset approach rate threshold, the target is marked as entering the primary warning zone and the high-frequency monitoring mode is activated.

[0031] It should be noted that in this embodiment, a ToF primitive ranging model and distance formula derivation are applied. The emitted light can be represented as... ,in Let m be the average light intensity, f be the modulation intensities, and f be the modulation frequency. The round-trip time occurs after the light travels to the target and returns. The phase of the received signal lags behind that of the transmitted signal. Therefore, there is The target distance is: .

[0032] After acquiring the depth map output by the ToF sensor, the system performs temperature drift correction and confidence assessment on the distance values ​​of each pixel. Then, it extracts the corrected distance values ​​of each pixel and marks pixels with distances less than a preset first distance threshold as foreground candidate points. Next, the system performs connected component clustering on these foreground candidate points, merging spatially adjacent and depth-continuous foreground pixels into the same candidate target, generating a candidate target set. For each target in the candidate target set, the system tracks the distance change of the target's centroid over multiple consecutive frames, calculating the distance change rate as an approximation rate indicator. When this approximation rate exceeds a preset approximation rate threshold, it indicates that the target is continuously and rapidly approaching the lens. The system marks the target as having entered the primary warning zone and simultaneously activates a high-frequency monitoring mode, i.e., increasing the data acquisition frame rate of the depth sensor and the sampling frame rate of the image acquisition unit, providing higher temporal resolution input data for subsequent threshold comparisons. The aforementioned approximation rate threshold setting enables the system to distinguish between actively approaching intrusive targets and stationary or receding non-risk targets.

[0033] According to an embodiment of the present invention, before calculating the signed distance value from the target to the envelope boundary, the method further includes: The current zoom position, throw ratio, keystone correction parameters and device attitude angle of the projection optical engine are obtained to calculate the equations of multiple boundary planes of the projection beam in three-dimensional space. The spatial envelope model of the projection beam is formed by the boundary planes described above. An inner risk envelope is formed by offsetting a safety margin distance inward along the normal direction of each of the aforementioned boundary planes. Substitute the three-dimensional coordinates of the target into the signed distance function of the envelope model to calculate the signed distance value of the target relative to each of the boundary planes.

[0034] It should be noted that, in this embodiment, the safety envelope in the spatial envelope model of the projected beam is written as the intersection of half spaces. For the target point Define envelope margin . ≤0 indicates that the point is located within the beam. >0 indicates that it is outside the beam.

[0035] Based on the above parameters, the system calculates the three-dimensional spatial coordinates of the four vertices of the effective projected image, and then determines the four side boundary planes by connecting each vertex to the lens exit pupil position. Combined with the near-end safety plane of the lens and the far-end plane of the projection surface, a closed spatial envelope model of the projection beam is constructed, represented by multiple boundary plane equations. On this basis, the system offsets inward by a preset safety margin distance along the normal direction of each boundary plane, forming an inner risk envelope surface, which serves as the reference surface for triggering protection actions. Subsequently, the system substitutes the target's three-dimensional coordinates after coordinate system transformation into the signed distance function of this envelope model to calculate the signed distance value of the target relative to each boundary plane. A positive value indicates that the target is outside the envelope, and a negative value indicates that it is inside the envelope; the absolute value of the signed distance indicates the distance of the target from the corresponding boundary. The above envelope model is updated in real time when zooming, keystone correction, or equipment attitude changes, ensuring that the protected area remains consistent with the current projection state.

[0036] According to an embodiment of the present invention, the step of identifying risk subjects and determining risk reference points based on detection confidence specifically includes: Following the priority sequence of eyes, face, and head, the detection confidence of the corresponding parts is compared with the preset confidence threshold in turn; When the detection confidence level of the eye reaches the confidence threshold, the three-dimensional coordinates of the eye are used as the risk reference point; When the detection confidence level of the eye does not reach the confidence threshold but the detection confidence level of the face does, the three-dimensional coordinates of the face center are used as the risk reference point. When the detection confidence of the face and the eyes does not reach the confidence threshold, but the detection confidence of the head does, the three-dimensional coordinates of the point in the head region closest to the lens are used as the risk reference point.

[0037] It should be noted that in this embodiment, the system prioritizes the eyes, face, and head, comparing the detection confidence of each part with a preset confidence threshold. Specifically, it first determines whether the detection confidence of key points in the eyes reaches the threshold; if it does, the three-dimensional coordinates of the eye are directly used as a risk reference point, as the eyes are the part most at risk of damage from projected light. If the detection confidence of the eyes does not reach the threshold, it indicates that the eyes may be obstructed or the detection is unstable. In this case, the system then determines whether the detection confidence of the face reaches the threshold; if it does, the three-dimensional coordinates of the face center are used as a risk reference point. If the detection confidence of both the face and eyes does not reach the threshold, but the detection confidence of the head does, the three-dimensional coordinates of the point closest to the lens in the head's surrounding area are used as a risk reference point for conservative substitution. This hierarchical selection strategy ensures that the system can downgrade to using facial or head information when it cannot accurately locate the eyes, avoiding the loss of all protection capabilities due to a single eye detection failure, thus maintaining effective risk assessment under different obstruction and lighting conditions.

[0038] Figure 2 The diagram illustrates an execution flowchart for risk level adjustment provided by an embodiment of the present invention.

[0039] According to embodiments of the present invention, such as Figure 2 As shown, after identifying the risk subject and determining the risk reference point, the process further includes: S202, detect the facial orientation vector of the target, and calculate the angle between the facial orientation vector and the optical axis direction of the projector; S204, compare the included angle with a preset orientation included angle threshold; S206, when the included angle is less than the included angle threshold, the current risk level is increased by one level; S208, when the included angle is greater than or equal to the orientation included angle threshold, maintain the current risk level; S210, based on the updated risk level, determine whether to trigger the next level of protection preparation action in advance.

[0040] It should be noted that, in this embodiment, after determining the risk reference point, the system further estimates the target's facial orientation vector using facial key points (such as the center of the eyes, the tip of the nose, and the corners of the mouth). As one implementation method, the head posture angle is used. and the angle between the target surface normal and the optical axis The system calculates the spatial angle between the facial orientation vector and the projector's optical axis. This angle is compared to a preset orientation angle threshold. If the angle is less than the threshold, it indicates the target is facing the lens, posing a high risk of direct eye contact with the projected beam; in this case, the system increases the risk level by one level. Conversely, if the angle is greater than or equal to the threshold, it indicates the target's face is deviating from the optical axis, posing a lower risk of direct eye contact, and the current risk level remains unchanged. Specifically, a risk quantification formula is used: Each feature is normalized to [0,1], and the weights satisfy the following: The multi-factor weighting principle embodied in this system determines whether to trigger the next level of protection preparation actions in advance, thereby completing protection preparations before the target actually reaches the high-illuminance area.

[0041] Figure 3 A flowchart illustrating a method for determining the estimated remaining time, as provided in an embodiment of the present invention, is shown.

[0042] According to embodiments of the present invention, such as Figure 3 As shown, the calculation of the estimated remaining time based on the time-series tracking results of the risk reference point specifically includes: S302, perform time-series tracking of the position of the risk reference point in multiple consecutive sampling frames to generate a position time-series sequence; S304, Calculate the motion velocity vector and motion acceleration vector of the risk reference point based on the position time sequence; S306, based on the current position, the motion velocity vector, and the motion acceleration vector, predict the estimated remaining time for the risk reference point to reach the envelope boundary or the near-end plane of the lens; S308, when the estimated remaining time is less than or equal to a preset first time threshold, a protection action is immediately triggered; S310, when the estimated remaining time is greater than the first time threshold and less than or equal to the preset warning time threshold, perform the pre-protection preparation action.

[0043] It should be noted that, in this embodiment, the system uses risk reference points. Temporal tracking of 3D positions across multiple consecutive sampling frames generates a position-temporal sequence, and velocity is estimated using a Kalman filter framework or exponential smoothing. Specifically: The system estimates the velocity and acceleration vectors of the risk reference point based on the time sequence of the location. Then, based on the current position, the velocity and acceleration vectors, the system extrapolates along the current direction of motion to predict the estimated remaining time for the risk reference point to reach the envelope boundary or the near-end plane of the lens. The system compares this estimated remaining time with a preset first time threshold. If the estimated remaining time is less than or equal to the first time threshold, it indicates that the target will reach the high-risk area within the system's minimum response time, and protection actions are immediately triggered. If the estimated remaining time is greater than the first time threshold but less than or equal to a preset warning time threshold, it indicates that the target is within the warning window period, and the system performs pre-protection preparation actions to achieve feedforward protection ahead of actual intrusion.

[0044] It is worth mentioning that, before executing the graded protection action, the following steps are also included: When multiple targets simultaneously intrude into the core risk region of the beam, the risk reference point and risk level corresponding to each target are maintained in parallel. Calculate the estimated remaining time for each of the aforementioned objectives; The overall protection level is determined based on the highest risk level among all the described targets; Each target generates its own local protective mask based on its corresponding projection mapping position. The various local protection masks are merged into a global protection mask; When the detection confidence of any of the targets is lower than a preset reliability threshold, the corresponding region of the target is expanded and incorporated into the global protection mask.

[0045] It should be noted that in this embodiment, when the system detects multiple targets simultaneously intruding into the core risk region of the beam, the system maintains independent risk reference points, risk levels, and motion state vectors for each target. The system calculates the estimated remaining time for each target and determines the global protection level based on the highest risk level among all targets, ensuring a safety strategy that prioritizes the highest level. Simultaneously, based on the three-dimensional position of each target, the system projects each risk region back onto the projection screen coordinates using pixel mapping, generating separate local protection masks. These local protection masks are then merged into a global protection mask. When the detection confidence of any target is lower than a preset reliability threshold, the corresponding region of that target is expanded and incorporated into the global protection mask according to the error propagation rule to compensate for the risk of missed protection caused by positioning uncertainty.

[0046] It is worth mentioning that the aforementioned tiered gradual recovery operation specifically includes: Establish an eye protection state mechanism that includes normal state, attention state, early warning state, intervention state, protection state, and light-off state; Based on the judgment results at each level, the state machine is controlled to migrate forward step by step from the normal state to the off state; When the target no longer meets the triggering condition, the state machine is controlled to reverse back step by step in the direction from the protected state to the normal state; The aforementioned state machine is prohibited from skipping forward transitions and skipping backward transitions. When the independent safety control module is triggered, it controls the state machine to unconditionally jump to the off state and lock it until a reset signal is received before it can exit.

[0047] It should be noted that in this embodiment, the system establishes an eye protection state machine including normal state, attention state, warning state, intervention state, protection state, and light-off state, with each state corresponding to a protection level from no risk to the highest risk. Based on the output results of the threshold comparison from level one to level six, the system controls the state machine to transition forward step by step from the normal state to the light-off state. Each forward transition must meet the corresponding trigger condition, and skipping levels is prohibited. When the target no longer meets the trigger condition, the system controls the state machine to transition backward step by step from the protection state to the normal state. Each backward transition must meet the safety conditions for multiple consecutive frames, and skipping levels is also prohibited. When the independent safety control module is triggered, the system controls the state machine to unconditionally transition to the light-off state and lock it. In this locked state, regardless of the output results of the threshold comparison at each level, the system maintains the light source off until it receives a safety-certified physical reset signal, thus ensuring absolute safety in extreme failure scenarios.

[0048] It is worth mentioning that after confirming whether the protection action has been effectively implemented, the following steps are also included: When the deviation between the actual feedback value of the light source and the target value of the protection command exceeds a preset deviation range, the independent safety control module is activated. The hardware comparator in the independent safety control module monitors whether the light source drive current exceeds the limit. The watchdog timer in the independent security control module monitors whether the master control heartbeat signal is normal. When the light source driving current exceeds the limit or the main control heartbeat signal is lost, the light source enable signal is directly cut off through the independent safety control module. Simultaneously with disconnecting the light source enable signal, a protection failure fault code is reported.

[0049] It should be noted that in this embodiment, when the system detects that the deviation between the actual feedback value of the light source and the target value of the protection command exceeds a preset deviation range, it determines that the main control link protection has failed and immediately activates the independent safety control module. This independent safety control module includes a hardware comparator circuit and a watchdog timer independent of the main control processor. It monitors in real time whether the light source drive current exceeds a preset safety limit; the watchdog timer continuously monitors whether the main control heartbeat signal is normal. When the hardware comparator determines that the light source drive current exceeds the limit or the watchdog timer detects that the main control heartbeat signal is lost, the independent safety control module directly disconnects the light source enable signal through a hardware path, bypassing all application layer software logic, and switches the light source to a completely off state. Simultaneously with disconnecting the light source enable signal, the system reports a protection failure fault code containing the fault type and records it in the safety log for subsequent fault tracing and analysis.

[0050] Figure 4 A block diagram of a ToF-based projector intrusion protection system of the present invention is shown.

[0051] like Figure 4 As shown, a second aspect of the present invention discloses a ToF-based projector intrusion eye protection system 4, including a memory 41 and a processor 42. The memory includes a ToF-based projector intrusion eye protection method program, which, when executed by the processor, performs the following steps: Obtain the initial distance information of the target relative to the projector lens; Determine whether to enter the primary warning zone based on the first distance information; If so, the three-dimensional coordinates of the target are mapped to the spatial envelope model of the projection beam, and the signed distance value from the target to the envelope boundary is calculated; Determine whether the beam has entered the core risk region based on the signed distance value; If so, then perform human body key part detection on the target; Based on the detection confidence level, identify the risk subjects and determine the risk reference points; Based on the time-series tracking results of the risk reference point, calculate the estimated remaining time for the target to reach the envelope boundary or the near-end plane of the lens; Determine whether to perform a protection action based on the estimated remaining time; If so, the graded protection action is executed, and the actual feedback value of the light source is compared with the target value of the protection command to confirm whether the protection action is effectively implemented. If the implementation is confirmed to be effective, a tiered gradual recovery operation will be performed after the target no longer meets the triggering conditions.

[0052] It should be noted that, in this embodiment, after the projector is powered on, the system first completes the joint calibration of multiple coordinate systems and the synchronous initialization of the sensors. The ToF depth sensor continuously outputs depth map data within the field of view at a preset frame rate. The system acquires the distance values ​​of each pixel in the depth map in real time and compares these distance values ​​with a preset first distance threshold point by point.

[0053] When a target (such as a human body, head, or handheld object) enters the monitoring field of view in front of the projector lens, the system identifies the target through foreground extraction and connected component clustering of the depth map, and obtains its first distance information relative to the projector lens. The system compares this distance information with a first distance threshold. If the target distance is less than the first distance threshold, the system determines that the target has entered the primary warning zone.

[0054] Subsequently, the system maps the target's three-dimensional coordinates onto a pre-established projection beam spatial envelope model and calculates the signed distance value from the target to the envelope boundary. The sign of this signed distance value indicates whether the target is located outside or inside the envelope. The system compares this signed distance value with a second distance threshold; if the signed distance value is less than the second distance threshold, it determines that the target has intruded into the beam core risk region.

[0055] Based on this, the system initiates a key human body part detection process, performing human body detection, head detection, face detection, and eye key point regression on the image data captured by the image acquisition unit, and outputs the detection confidence score for each part. According to the detection confidence score, the system identifies risk subjects according to a preset part priority sequence, and determines risk reference points from the center of the eyes, face, or the nearest point on the head.

[0056] The system then performs time-series tracking of the risk reference point's position across multiple consecutive sampling frames, and calculates the estimated remaining time for the target to reach the envelope boundary or the near-end plane of the lens in its current motion state based on the tracking results. The system compares this estimated remaining time with a first time threshold; if the estimated remaining time is less than or equal to the first time threshold, a graded protection action is immediately triggered.

[0057] While executing graded protection actions, the system reads the light source drive feedback signal and compares the actual feedback value of the light source with the target value of the protection command to confirm the effectiveness of the protection action in a closed loop. If the action is confirmed to be effective, the system continuously monitors the position change of the target. When the target no longer meets any level of triggering conditions, the system initiates the recovery judgment process. After meeting the exit distance condition, the continuous safe frame count condition, and the hold time condition, the system performs a graded gradual recovery operation to gradually restore the light source power to normal operating status.

[0058] Furthermore, the aforementioned first distance threshold, second distance threshold, first time threshold, and confidence threshold are all preset configurable parameters that can be calibrated according to the product's safety level and optical performance. The graded protection actions include at least one of local brightness suppression, local black masking, global light reduction, and light source shutdown. The specific execution level is determined comprehensively based on the location of the risk reference point, the type of part, and the estimated remaining time.

[0059] According to an embodiment of the present invention, determining whether to enter the primary warning zone based on the first distance information specifically includes: Obtain the depth map output by the ToF sensor, and extract the distance value of each pixel in the depth map; Pixels whose distance value is less than a preset first distance threshold are marked as foreground candidate points; Perform connected component clustering on the foreground candidate points to generate a candidate target set; For each target in the candidate target set, track its distance change trend over multiple consecutive frames; When the distance change trend indicates that the target is continuously approaching and the approach rate exceeds a preset approach rate threshold, the target is marked as entering the primary warning zone and the high-frequency monitoring mode is activated.

[0060] It should be noted that in this embodiment, a ToF primitive ranging model and distance formula derivation are applied. The emitted light can be represented as... ,in Let m be the average light intensity, f be the modulation intensities, and f be the modulation frequency. The round-trip time occurs after the light travels to the target and returns. The phase of the received signal lags behind that of the transmitted signal. Therefore, there is The target distance is: .

[0061] After acquiring the depth map output by the ToF sensor, the system performs temperature drift correction and confidence assessment on the distance values ​​of each pixel. Then, it extracts the corrected distance values ​​of each pixel and marks pixels with distances less than a preset first distance threshold as foreground candidate points. Next, the system performs connected component clustering on these foreground candidate points, merging spatially adjacent and depth-continuous foreground pixels into the same candidate target, generating a candidate target set. For each target in the candidate target set, the system tracks the distance change of the target's centroid over multiple consecutive frames, calculating the distance change rate as an approximation rate indicator. When this approximation rate exceeds a preset approximation rate threshold, it indicates that the target is continuously and rapidly approaching the lens. The system marks the target as having entered the primary warning zone and simultaneously activates a high-frequency monitoring mode, i.e., increasing the data acquisition frame rate of the depth sensor and the sampling frame rate of the image acquisition unit, providing higher temporal resolution input data for subsequent threshold comparisons. The aforementioned approximation rate threshold setting enables the system to distinguish between actively approaching intrusive targets and stationary or receding non-risk targets.

[0062] According to an embodiment of the present invention, before calculating the signed distance value from the target to the envelope boundary, the method further includes: The current zoom position, throw ratio, keystone correction parameters and device attitude angle of the projection optical engine are obtained to calculate the equations of multiple boundary planes of the projection beam in three-dimensional space. The spatial envelope model of the projection beam is formed by the boundary planes described above. An inner risk envelope is formed by offsetting a safety margin distance inward along the normal direction of each of the aforementioned boundary planes. Substitute the three-dimensional coordinates of the target into the signed distance function of the envelope model to calculate the signed distance value of the target relative to each of the boundary planes.

[0063] It should be noted that, in this embodiment, the safety envelope in the spatial envelope model of the projected beam is written as the intersection of half spaces. For the target point Define envelope margin . ≤0 indicates that the point is located within the beam. >0 indicates that it is outside the beam.

[0064] Based on the above parameters, the system calculates the three-dimensional spatial coordinates of the four vertices of the effective projected image, and then determines the four side boundary planes by connecting each vertex to the lens exit pupil position. Combined with the near-end safety plane of the lens and the far-end plane of the projection surface, a closed spatial envelope model of the projection beam is constructed, represented by multiple boundary plane equations. On this basis, the system offsets inward by a preset safety margin distance along the normal direction of each boundary plane, forming an inner risk envelope surface, which serves as the reference surface for triggering protection actions. Subsequently, the system substitutes the target's three-dimensional coordinates after coordinate system transformation into the signed distance function of this envelope model to calculate the signed distance value of the target relative to each boundary plane. A positive value indicates that the target is outside the envelope, and a negative value indicates that it is inside the envelope; the absolute value of the signed distance indicates the distance of the target from the corresponding boundary. The above envelope model is updated in real time when zooming, keystone correction, or equipment attitude changes, ensuring that the protected area remains consistent with the current projection state.

[0065] According to an embodiment of the present invention, the step of identifying risk subjects and determining risk reference points based on detection confidence specifically includes: Following the priority sequence of eyes, face, and head, the detection confidence of the corresponding parts is compared with the preset confidence threshold in turn; When the detection confidence level of the eye reaches the confidence threshold, the three-dimensional coordinates of the eye are used as the risk reference point; When the detection confidence level of the eye does not reach the confidence threshold but the detection confidence level of the face does, the three-dimensional coordinates of the face center are used as the risk reference point. When the detection confidence of the face and the eyes does not reach the confidence threshold, but the detection confidence of the head does, the three-dimensional coordinates of the point in the head region closest to the lens are used as the risk reference point.

[0066] It should be noted that in this embodiment, the system prioritizes the eyes, face, and head, comparing the detection confidence of each part with a preset confidence threshold. Specifically, it first determines whether the detection confidence of key points in the eyes reaches the threshold; if it does, the three-dimensional coordinates of the eye are directly used as a risk reference point, as the eyes are the part most at risk of damage from projected light. If the detection confidence of the eyes does not reach the threshold, it indicates that the eyes may be obstructed or the detection is unstable. In this case, the system then determines whether the detection confidence of the face reaches the threshold; if it does, the three-dimensional coordinates of the face center are used as a risk reference point. If the detection confidence of both the face and eyes does not reach the threshold, but the detection confidence of the head does, the three-dimensional coordinates of the point closest to the lens in the head's surrounding area are used as a risk reference point for conservative substitution. This hierarchical selection strategy ensures that the system can downgrade to using facial or head information when it cannot accurately locate the eyes, avoiding the loss of all protection capabilities due to a single eye detection failure, thus maintaining effective risk assessment under different obstruction and lighting conditions.

[0067] According to an embodiment of the present invention, after identifying the risk subject and determining the risk reference point, the method further includes: Detect the facial orientation vector of the target and calculate the angle between the facial orientation vector and the optical axis of the projector; The included angle is compared with a preset orientation angle threshold; When the included angle is less than the included angle threshold, the current risk level will be raised by one level; When the included angle is greater than or equal to the included angle threshold, the current risk level is maintained; Based on the updated risk level, determine whether to trigger the next level of protection preparation actions in advance.

[0068] It should be noted that, in this embodiment, after determining the risk reference point, the system further estimates the target's facial orientation vector using facial key points (such as the center of the eyes, the tip of the nose, and the corners of the mouth). As one implementation method, the head posture angle is used. and the angle between the target surface normal and the optical axis The system calculates the spatial angle between the facial orientation vector and the projector's optical axis. This angle is compared to a preset orientation angle threshold. If the angle is less than the threshold, it indicates the target is facing the lens, posing a high risk of direct eye contact with the projected beam; in this case, the system increases the risk level by one level. Conversely, if the angle is greater than or equal to the threshold, it indicates the target's face is deviating from the optical axis, posing a lower risk of direct eye contact, and the current risk level remains unchanged. Specifically, a risk quantification formula is used: Each feature is normalized to [0,1], and the weights satisfy the following: The multi-factor weighting principle embodied in this system determines whether to trigger the next level of protection preparation actions in advance, thereby completing protection preparations before the target actually reaches the high-illuminance area.

[0069] According to an embodiment of the present invention, the calculation of the estimated remaining time based on the time-series tracking results of the risk reference point specifically includes: The position of the risk reference point in multiple consecutive sampling frames is time-series tracked to generate a position time-series sequence; Based on the location time sequence, calculate the motion velocity vector and motion acceleration vector of the risk reference point; Based on the current position, the velocity vector, and the acceleration vector, predict the estimated remaining time for the risk reference point to reach the envelope boundary or the near-end plane of the lens; When the estimated remaining time is less than or equal to a preset first time threshold, a protection action is immediately triggered; When the estimated remaining time is greater than the first time threshold and less than or equal to the preset warning time threshold, a pre-protection preparation action is performed.

[0070] It should be noted that, in this embodiment, the system uses risk reference points. Temporal tracking of 3D positions across multiple consecutive sampling frames generates a position-temporal sequence, and velocity is estimated using a Kalman filter framework or exponential smoothing. Specifically: The system estimates the velocity and acceleration vectors of the risk reference point based on the time sequence of the location. Then, based on the current position, the velocity and acceleration vectors, the system extrapolates along the current direction of motion to predict the estimated remaining time for the risk reference point to reach the envelope boundary or the near-end plane of the lens. The system compares this estimated remaining time with a preset first time threshold. If the estimated remaining time is less than or equal to the first time threshold, it indicates that the target will reach the high-risk area within the system's minimum response time, and protection actions are immediately triggered. If the estimated remaining time is greater than the first time threshold but less than or equal to a preset warning time threshold, it indicates that the target is within the warning window period, and the system performs pre-protection preparation actions to achieve feedforward protection ahead of actual intrusion.

[0071] It is worth mentioning that, before executing the graded protection action, the following steps are also included: When multiple targets simultaneously intrude into the core risk region of the beam, the risk reference point and risk level corresponding to each target are maintained in parallel. Calculate the estimated remaining time for each of the aforementioned objectives; The overall protection level is determined based on the highest risk level among all the described targets; Each target generates its own local protective mask based on its corresponding projection mapping position. The various local protection masks are merged into a global protection mask; When the detection confidence of any of the targets is lower than a preset reliability threshold, the corresponding region of the target is expanded and incorporated into the global protection mask.

[0072] It should be noted that in this embodiment, when the system detects multiple targets simultaneously intruding into the core risk region of the beam, the system maintains independent risk reference points, risk levels, and motion state vectors for each target. The system calculates the estimated remaining time for each target and determines the global protection level based on the highest risk level among all targets, ensuring a safety strategy that prioritizes the highest level. Simultaneously, based on the three-dimensional position of each target, the system projects each risk region back onto the projection screen coordinates using pixel mapping, generating separate local protection masks. These local protection masks are then merged into a global protection mask. When the detection confidence of any target is lower than a preset reliability threshold, the corresponding region of that target is expanded and incorporated into the global protection mask according to the error propagation rule to compensate for the risk of missed protection caused by positioning uncertainty.

[0073] It is worth mentioning that the aforementioned tiered gradual recovery operation specifically includes: Establish an eye protection state mechanism that includes normal state, attention state, early warning state, intervention state, protection state, and light-off state; Based on the judgment results at each level, the state machine is controlled to migrate forward step by step from the normal state to the off state; When the target no longer meets the triggering condition, the state machine is controlled to reverse back step by step in the direction from the protected state to the normal state; The aforementioned state machine is prohibited from skipping forward transitions and skipping backward transitions. When the independent safety control module is triggered, it controls the state machine to unconditionally jump to the off state and lock it until a reset signal is received before it can exit.

[0074] It should be noted that in this embodiment, the system establishes an eye protection state machine including normal state, attention state, warning state, intervention state, protection state, and light-off state, with each state corresponding to a protection level from no risk to the highest risk. Based on the output results of the threshold comparison from level one to level six, the system controls the state machine to transition forward step by step from the normal state to the light-off state. Each forward transition must meet the corresponding trigger condition, and skipping levels is prohibited. When the target no longer meets the trigger condition, the system controls the state machine to transition backward step by step from the protection state to the normal state. Each backward transition must meet the safety conditions for multiple consecutive frames, and skipping levels is also prohibited. When the independent safety control module is triggered, the system controls the state machine to unconditionally transition to the light-off state and lock it. In this locked state, regardless of the output results of the threshold comparison at each level, the system maintains the light source off until it receives a safety-certified physical reset signal, thus ensuring absolute safety in extreme failure scenarios.

[0075] It is worth mentioning that after confirming whether the protection action has been effectively implemented, the following steps are also included: When the deviation between the actual feedback value of the light source and the target value of the protection command exceeds a preset deviation range, the independent safety control module is activated. The hardware comparator in the independent safety control module monitors whether the light source drive current exceeds the limit. The watchdog timer in the independent security control module monitors whether the master control heartbeat signal is normal. When the light source driving current exceeds the limit or the main control heartbeat signal is lost, the light source enable signal is directly cut off through the independent safety control module. Simultaneously with disconnecting the light source enable signal, a protection failure fault code is reported.

[0076] It should be noted that in this embodiment, when the system detects that the deviation between the actual feedback value of the light source and the target value of the protection command exceeds a preset deviation range, it determines that the main control link protection has failed and immediately activates the independent safety control module. This independent safety control module includes a hardware comparator circuit and a watchdog timer independent of the main control processor. It monitors in real time whether the light source drive current exceeds a preset safety limit; the watchdog timer continuously monitors whether the main control heartbeat signal is normal. When the hardware comparator determines that the light source drive current exceeds the limit or the watchdog timer detects that the main control heartbeat signal is lost, the independent safety control module directly disconnects the light source enable signal through a hardware path, bypassing all application layer software logic, and switches the light source to a completely off state. Simultaneously with disconnecting the light source enable signal, the system reports a protection failure fault code containing the fault type and records it in the safety log for subsequent fault tracing and analysis.

[0077] A third aspect of the present invention provides a computer-readable storage medium comprising a ToF-based projector intrusion eye protection method program, wherein when the ToF-based projector intrusion eye protection method program is executed by a processor, it implements the steps of the ToF-based projector intrusion eye protection method as described in any of the preceding claims.

[0078] In summary, this invention provides a ToF-based method, system, and storage medium for projector intrusion protection. It determines whether a target has entered the primary warning zone by acquiring the distance information of the target relative to the projector lens. Upon confirmation of entry, it calculates the signed distance value from the target to the envelope boundary. Then, it determines whether the target has intruded into the core risk area of ​​the projector beam by using the signed distance value. Upon confirmation of intrusion, it performs human body key component detection on the target and identifies the risk subject based on the detection confidence level to determine a risk reference point. Next, it calculates the estimated remaining time based on the time-series tracking results of the risk reference point to determine whether to execute a tiered protection action. After executing the protection action, it compares the actual feedback value of the light source with the target value of the protection command to confirm the effective implementation of the protection action in a closed loop. Finally, after confirming that the target no longer meets the triggering conditions, it performs a tiered gradual recovery operation. This achieves refined feedforward protection against the risk of projector beam intrusion.

[0079] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0080] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for protecting the eyes from intrusion in projectors based on Time-of-Flight (ToF) technology, characterized in that... The method includes: Obtain the initial distance information of the target relative to the projector lens; Determine whether to enter the primary warning zone based on the first distance information; If so, the three-dimensional coordinates of the target are mapped to the spatial envelope model of the projection beam, and the signed distance value from the target to the envelope boundary is calculated; Determine whether the beam has entered the core risk region based on the signed distance value; If so, then perform human body key part detection on the target; Based on the detection confidence level, identify the risk subjects and determine the risk reference points; Based on the time-series tracking results of the risk reference point, calculate the estimated remaining time for the target to reach the envelope boundary or the near-end plane of the lens; Determine whether to perform a protection action based on the estimated remaining time; If so, the graded protection action is executed, and the actual feedback value of the light source is compared with the target value of the protection command to confirm whether the protection action is effectively implemented. If the implementation is confirmed to be effective, a tiered gradual recovery operation will be performed after the target no longer meets the triggering conditions.

2. The method for protecting the eyes from intrusion of a projector based on ToF as described in claim 1, characterized in that, The step of determining whether to enter the primary warning zone based on the first distance information specifically includes: Obtain the depth map output by the ToF sensor, and extract the distance value of each pixel in the depth map; Pixels whose distance value is less than a preset first distance threshold are marked as foreground candidate points; Perform connected component clustering on the foreground candidate points to generate a candidate target set; For each target in the candidate target set, track its distance change trend over multiple consecutive frames; When the distance change trend indicates that the target is continuously approaching and the approach rate exceeds a preset approach rate threshold, the target is marked as entering the primary warning zone and the high-frequency monitoring mode is activated.

3. The method for protecting the eyes from intrusion of a projector based on ToF as described in claim 1, characterized in that, Before calculating the signed distance value from the target to the envelope boundary, the method further includes: The current zoom position, throw ratio, keystone correction parameters and device attitude angle of the projection optical engine are obtained to calculate the equations of multiple boundary planes of the projection beam in three-dimensional space. The spatial envelope model of the projection beam is formed by the boundary planes described above. An inner risk envelope is formed by offsetting a safety margin distance inward along the normal direction of each of the aforementioned boundary planes. Substitute the three-dimensional coordinates of the target into the signed distance function of the envelope model to calculate the signed distance value of the target relative to each of the boundary planes.

4. The method for protecting the eyes from intrusion of a projector based on ToF as described in claim 1, characterized in that, The process of identifying risk subjects and determining risk reference points based on detection confidence levels specifically includes: Following the priority sequence of eyes, face, and head, the detection confidence of the corresponding parts is compared with the preset confidence threshold in turn; When the detection confidence level of the eye reaches the confidence threshold, the three-dimensional coordinates of the eye are used as the risk reference point; When the detection confidence level of the eye does not reach the confidence threshold but the detection confidence level of the face does, the three-dimensional coordinates of the face center are used as the risk reference point. When the detection confidence of the face and the eyes does not reach the confidence threshold, but the detection confidence of the head does, the three-dimensional coordinates of the point in the head region closest to the lens are used as the risk reference point.

5. A method for protecting the eyes from intrusion in a projector based on ToF as described in claim 1, characterized in that, After identifying the risk subject and determining the risk reference point, the method further includes: Detect the facial orientation vector of the target and calculate the angle between the facial orientation vector and the optical axis of the projector; The included angle is compared with a preset orientation angle threshold; When the included angle is less than the included angle threshold, the current risk level will be raised by one level; When the included angle is greater than or equal to the included angle threshold, the current risk level is maintained; Based on the updated risk level, determine whether to trigger the next level of protection preparatory actions in advance.

6. The method for protecting the eyes from intrusion of a projector based on ToF as described in claim 1, characterized in that, The calculation of the estimated remaining time based on the time-series tracking results of the risk reference point specifically includes: The position of the risk reference point in multiple consecutive sampling frames is time-series tracked to generate a position time-series sequence; Based on the location time sequence, calculate the motion velocity vector and motion acceleration vector of the risk reference point; Based on the current position, the velocity vector, and the acceleration vector, predict the estimated remaining time for the risk reference point to reach the envelope boundary or the near-end plane of the lens; When the estimated remaining time is less than or equal to a preset first time threshold, a protection action is immediately triggered; When the estimated remaining time is greater than the first time threshold and less than or equal to the preset warning time threshold, a pre-protection preparation action is performed.

7. A ToF-based projector intrusion eye protection system, characterized in that, The system includes a memory and a processor. The memory includes a program for a ToF-based projector intrusion eye protection method. When the ToF-based projector intrusion eye protection method program is executed by the processor, it performs the following steps: Obtain the initial distance information of the target relative to the projector lens; Determine whether to enter the primary warning zone based on the first distance information; If so, the three-dimensional coordinates of the target are mapped to the spatial envelope model of the projection beam, and the signed distance value from the target to the envelope boundary is calculated; Determine whether the beam has entered the core risk region based on the signed distance value; If so, then perform human body key part detection on the target; Based on the detection confidence level, identify the risk subjects and determine the risk reference points; Based on the time-series tracking results of the risk reference point, calculate the estimated remaining time for the target to reach the envelope boundary or the near-end plane of the lens; Determine whether to perform a protection action based on the estimated remaining time; If so, the graded protection action is executed, and the actual feedback value of the light source is compared with the target value of the protection command to confirm whether the protection action is effectively implemented. If the implementation is confirmed to be effective, a tiered gradual recovery operation will be performed after the target no longer meets the triggering conditions.

8. A ToF-based projector intrusion eye protection system according to claim 7, characterized in that, The step of determining whether to enter the primary warning zone based on the first distance information specifically includes: Obtain the depth map output by the ToF sensor, and extract the distance value of each pixel in the depth map; Pixels whose distance value is less than a preset first distance threshold are marked as foreground candidate points; Perform connected component clustering on the foreground candidate points to generate a candidate target set; For each target in the candidate target set, track its distance change trend over multiple consecutive frames; When the distance change trend indicates that the target is continuously approaching and the approach rate exceeds a preset approach rate threshold, the target is marked as entering the primary warning zone and the high-frequency monitoring mode is activated.

9. A ToF-based projector intrusion eye protection system according to claim 7, characterized in that, Before calculating the signed distance value from the target to the envelope boundary, the method further includes: The current zoom position, throw ratio, keystone correction parameters and device attitude angle of the projection optical engine are obtained to calculate the equations of multiple boundary planes of the projection beam in three-dimensional space. The spatial envelope model of the projection beam is formed by the boundary planes described above. An inner risk envelope is formed by offsetting a safety margin distance inward along the normal direction of each of the aforementioned boundary planes. Substitute the three-dimensional coordinates of the target into the signed distance function of the envelope model to calculate the signed distance value of the target relative to each of the boundary planes.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer-readable storage medium includes a ToF-based projector intrusion eye protection method program, which, when executed by a processor, implements the steps of the ToF-based projector intrusion eye protection method as described in any one of claims 1 to 6.