A method and device for controlling the switch of projection equipment based on TOF, and an intelligent projector
The TOF module calculates the spatial distance parameters between the projector and the remote control to determine the effectiveness of the switch command, solving the problem of the projector accidentally triggering the switch on and off in special scenarios, and achieving safe and reliable switch control.
Patent Information
- Application Number
- CN202310525982.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-05-11
AI Technical Summary
In special scenarios such as when the projector is being carried, the remote control may be stuck on the front cover of the projector, which may cause the system to accidentally trigger power on or off, causing accidents or inconvenience.
The TOF module receives the switch command of the remote control, calculates the spatial distance parameter between the projector and the remote control, compares the relationship with the standard distance parameter, determines the effective state of the switch command, and selects the switch command according to the valid state to control the switch operation.
This prevents the system from accidentally triggering the power on and off, ensuring the safe operation of the projector in abnormal usage scenarios such as portability, and improving the convenience of use.
Smart Images

Figure CN116996650B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of projection equipment, and in particular to a method and device for controlling the switching of projection equipment based on TOF, and an intelligent projector. Background Art
[0002] When the projector is working normally and the projector system is working normally, most of them realize trapezoidal calibration, focus function, test distance or other operations by driving the TOF module. Its operating principle is that the TOF (Time of Flight) sensor emits laser pulses outward, and the laser pulses are emitted to the flight time sensor after encountering an object. The time difference or phase difference from emission to reflection back to the flight time sensor is calculated to obtain depth data, and then the TOF module is driven by the built-in operating system of the projector to obtain the return data. The system makes decisions and controls whether to turn on and off the projector based on the return data.
[0003] However, when the projector is in special scenarios such as being carried, the system may be mistakenly triggered to start up due to the remote control being stuck to the front cover of the projector. The projector is a high-heat, high-focusing product. Once it is turned on in a small space, unknown accidents may occur. During the use of the projector, if the remote control is stuck to the front cover of the projector, the system may be mistakenly triggered to shut down, causing inconvenience to use.
[0004] At present, in order to solve the above technical problems, it is necessary to add a Hall device to the conventional projector. The Hall device detects whether the remote control is approaching to decide how to complete the power on and off operation. However, the method of adding devices is hindered by the high hardware cost investment in commercial applications. Summary of the invention
[0005] The purpose of the present application is to provide a method, device and intelligent projector for controlling the power on and off of a projection device based on TOF, and to optimize the power on and off control method according to the use requirements of the projector in special scenarios such as carrying, so as to avoid the system from accidentally triggering the power on and off.
[0006] The specific technical solutions of this application are as follows:
[0007] The first aspect of the present application provides a method for controlling a projection device switch based on TOF, comprising the following steps:
[0008] After receiving a switch command from the remote controller, the TOF module is started, and a spatial distance parameter between the projector and the remote controller is calculated according to the switch command;
[0009] Acquire a standard distance parameter between the projector and the remote controller, and determine a valid state of the switch instruction according to a comparison relationship between the spatial distance parameter and the standard distance parameter;
[0010] The switch instruction is switched according to the effective state and the execution of the switched switch instruction is controlled.
[0011] Furthermore, the spatial distance parameter between the projector and the remote controller is calculated according to the switch instruction as follows:
[0012] Acquire the base point position and projection direction of the projector, and determine the spatial coordinate system according to the base point position and the projection direction;
[0013] The transmitting end position of the switch instruction is obtained, and the spatial coordinates located in the spatial coordinate system are generated according to the transmitting end position, which are the spatial distance parameters.
[0014] Furthermore, the standard distance parameter between the projector and the remote control is obtained as follows:
[0015] Acquire configuration parameters of the projector and acquire the spatial coordinate system of the projector;
[0016] A standard coordinate set located in the space coordinate system is generated according to the configuration parameters, and a coordinate set of the standard coordinate set is used as the standard distance parameter.
[0017] Furthermore, the configuration parameters include a minimum projection distance and a minimum projection radius, and generating a standard coordinate set in the spatial coordinate system according to the configuration parameters is specifically:
[0018] The x-coordinate value of the standard coordinate set is determined according to the minimum projection distance, and the y-coordinate value and the z-coordinate value of the standard coordinate set are determined according to the minimum projection radius.
[0019] Furthermore, determining the effective state of the switch instruction according to the comparison relationship between the spatial distance parameter and the standard distance parameter is specifically:
[0020] Generate a standard closed surface according to the standard distance parameter; and
[0021] determining a first space of the projector based on the spatial distance parameter;
[0022] The effective state of the switch instruction is determined according to the position distribution of the standard closed surface and the first space.
[0023] Further, determining the effective state of the switch instruction according to the position distribution of the standard closed surface and the first space includes:
[0024] Dividing the space into invalid space and valid space by the standard closed surface;
[0025] If the first space belongs to the invalid space, the valid state is determined to be invalid; if the first space belongs to the valid space, the valid state is determined to be valid.
[0026] Furthermore, it also includes:
[0027] Obtaining a shielding distance parameter of the projector;
[0028] The effective state of the switch instruction is corrected according to the second space corresponding to the occlusion distance parameter. If the second space belongs to an invalid space, the effective state is corrected to be invalid. If the second space belongs to a valid space, no correction is performed.
[0029] Further, the switching instruction is selected and controlled to be executed according to the effective state as follows:
[0030] If the effective state is invalid, the switch instruction is automatically switched to a closing instruction and the execution of the closing instruction is controlled;
[0031] If the effective state is effective, the switch instruction is directly controlled to be executed.
[0032] Furthermore, it also includes:
[0033] When the valid state is invalid, obtaining the power on / off state of the projector;
[0034] Determining the consistency between the on / off state and the on / off instruction;
[0035] The switch instruction is switched according to the consistency judgment result and the switch status, and the execution of the switched switch instruction is controlled.
[0036] A second aspect of the present application provides a TOF-based switching device for controlling a projection device, the TOF-based switching device for controlling a projection device comprising:
[0037] A TOF module, configured to start the TOF module after receiving a switch instruction from the remote controller, and calculate a spatial distance parameter between the projector and the remote controller according to the switch instruction;
[0038] An analysis module, used for obtaining a standard distance parameter between the projector and the remote controller, and determining a valid state of the switch instruction according to a comparison relationship between the spatial distance parameter and the standard distance parameter;
[0039] A control module is used to select and switch the switch instruction according to the effective state and control the execution of the switched switch instruction.
[0040] A third aspect of the present application provides an intelligent projector, which implements each step in the method for controlling the switching of a projection device based on TOF, or includes each module in the device for controlling the switching of a projection device based on TOF.
[0041] In summary, the present application provides a method, device and intelligent projector for controlling the switch of a projection device based on TOF, calculates the spatial distance parameters between the projector and the remote control according to the switch instruction, determines the effective state of the switch instruction according to the comparison relationship between the spatial distance parameters and the standard distance parameters, selects the switch instruction to be switched according to the effective state and controls the execution of the switch instruction after switching. The present application completes the spatial distance parameter measurement through the data transmission between the projector and the remote control of the switch instruction, and uses it as the basis for judging the validity of the switch instruction, and determines the validity of the switch instruction by judging whether the spatial distance parameter is within the standard distance parameter range that allows safe use. When the switch instruction is valid, it is considered that the projector is in a normal use scenario, and the execution of the switch instruction can be directly controlled. When the switch instruction is invalid, it is considered that the projector is in an abnormal use scenario such as carrying, and it is necessary to switch the switch instruction to ensure that the power on and off state of the projector after execution meets the requirements of the actual application scenario, thereby avoiding the problem of system erroneous power on and off. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0043] Figure 1 This is a flow chart of the method for controlling the switching of a projection device based on TOF in this application;
[0044] Figure 2 This is a block diagram of a switch device for controlling a projection device based on TOF in this application. DETAILED DESCRIPTION
[0045] In order to make the purpose, features, and advantages of this application more obvious and easy to understand, the technical solutions in the embodiments of this application are clearly and completely described. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] Please refer to Figure 1 , Figure 1 This is a flow chart of the method for controlling the switching of a projection device based on TOF in this application.
[0047] The embodiment of the present application provides a method for controlling a projection device switch based on TOF, comprising the following steps:
[0048] S1: After receiving a switch command from the remote control, the TOF module is started, and the spatial distance parameter between the projector and the remote control is calculated according to the switch command;
[0049] S2: obtaining a standard distance parameter between the projector and the remote controller, and determining a valid state of the switch instruction according to a comparison relationship between the spatial distance parameter and the standard distance parameter;
[0050] S3: Selecting to switch the switch instruction according to the effective state and controlling the execution of the switched switch instruction.
[0051] As an embodiment, the remote control in S1 can be a remote control device that comes with the projector, or it can be other intelligent devices that can realize the remote control function of the projector. After receiving the switch command, the intelligent projector system starts the TOF module, and completes the spatial distance parameter measurement through the data transmission between the projector and the remote control of the switch command. For example, the TOF sensor is used to emit laser pulses outward. After encountering the obstruction of the remote control, the laser pulses are emitted to the flight time sensor, and the time difference or phase difference from emission to reflection back to the flight time sensor is calculated to obtain the spatial distance parameter. The spatial distance parameter represents the spatial position relationship between the projector and the remote control entity, which serves as the basis for judging the effectiveness of the switch command.
[0052] In S2, the standard distance parameter between the projector and the remote control is obtained through the cloud, where the standard distance parameter represents the minimum space limit that can be safely used between the projector and the remote control entity, which can be determined by the specification attributes of the projector. The validity of the switch command is determined by judging whether the space distance parameter is within the standard distance parameter range that allows safe use.
[0053] In S3, the power on and off of the projector is controlled according to the validity of the switch command. When the switch command is valid, it is considered that the projector is in a normal use scenario, and the switch command can be directly controlled to execute. When the switch command is invalid, it is considered that the projector is in an abnormal use scenario such as carrying, and it is necessary to switch the switch command to ensure that the power on and off state of the projector after execution meets the requirements of the actual application scenario, thereby avoiding the problem of system power on and off by mistake.
[0054] According to an embodiment of the present application, the spatial distance parameter between the projector and the remote controller is calculated according to the switch instruction as follows:
[0055] Acquire the base point position and projection direction of the projector, and determine the spatial coordinate system according to the base point position and the projection direction;
[0056] The transmitting end position of the switch instruction is obtained, and the spatial coordinates located in the spatial coordinate system are generated according to the transmitting end position, which are the spatial distance parameters.
[0057] As an embodiment, the base point position of the projector is located inside the projector entity, which can be any position in the lens, light source, and switch, and the projection direction refers to the projection direction of the light source. When determining the spatial coordinate system, the base point position can be used as the coordinate origin, the projection direction as the x-axis, the direction perpendicular to the projection direction in the horizontal plane as the y-axis, and the direction perpendicular to the horizontal plane as the z-axis. The transmitting end of the switch instruction refers to the location of the signal transmitting module, which is located inside the remote control entity. The TOF module can generate the xyz coordinate value of the transmitting end in the spatial coordinate system, that is, the spatial distance parameter between the projector and the remote control.
[0058] According to an embodiment of the present application, obtaining the standard distance parameter between the projector and the remote control is specifically as follows:
[0059] Acquire configuration parameters of the projector and acquire the spatial coordinate system of the projector;
[0060] A standard coordinate set located in the space coordinate system is generated according to the configuration parameters, and a coordinate set of the standard coordinate set is used as the standard distance parameter.
[0061] As an embodiment, the configuration parameters of the projector may be projection distance parameters, projection radius, light source intensity, etc., which are used to analyze the acceptable safe use distance parameters of the projector. The standard coordinate set may be a limiting projection surface composed of the minimum projection distance parameter and the minimum projection radius in the spatial coordinate system, which may be spherical or ellipsoidal in space, and theoretically the center of the sphere or ellipsoid is located at the light source of the projector. The coordinate values of the standard coordinate set represent the standard distance parameters between the projector and the remote control, and the standard distance parameters may change according to the configuration parameters of the projector.
[0062] According to an embodiment of the present application, the configuration parameters include a minimum projection distance and a minimum projection radius, and generating a standard coordinate set located in the spatial coordinate system according to the configuration parameters is specifically:
[0063] The x-coordinate value of the standard coordinate set is determined according to the minimum projection distance, and the y-coordinate value and the z-coordinate value of the standard coordinate set are determined according to the minimum projection radius.
[0064] As an embodiment, since the smaller the projection distance, the higher the focusing force of the projection light source, continuous projection will cause safety risks in energy focusing. The minimum projection distance refers to the minimum safe projection distance of the projector, which can be determined based on parameters such as the type of light source, the intensity of the light source, and the layout structure of the optical components. Also considering the safety risks of energy focusing, the minimum projection radius refers to the minimum safe projection radius of the projector, which can be determined based on the layout structure of the optical components. The standard coordinate set in the spatial coordinate system can be an ellipsoid range, the center of which is located at the origin of the spatial coordinate system, that is, the position of the projector base point. The area of the ellipse is πab, and the ellipse can be regarded as a circle with the minimum projection radius as the radius stretched in the projection direction with the minimum projection distance as the length. Therefore, the xyz coordinates of the standard coordinate set can be different values at different positions. For example, the coordinate parameter equation of the standard coordinate set can be expressed as: x=acosθ, y=bsinθ.
[0065] According to an embodiment of the present application, determining the effective state of the switch instruction according to the comparison relationship between the spatial distance parameter and the standard distance parameter is specifically:
[0066] Generate a standard closed surface according to the standard distance parameter; and
[0067] determining a first space of the projector based on the spatial distance parameter;
[0068] The effective state of the switch instruction is determined according to the position distribution of the standard closed surface and the first space.
[0069] According to an embodiment of the present application, determining the effective state of the switch instruction according to the position distribution of the standard closed surface and the first space includes:
[0070] Dividing the space into invalid space and valid space by the standard closed surface;
[0071] If the first space belongs to the invalid space, the valid state is determined to be invalid; if the first space belongs to the valid space, the valid state is determined to be valid.
[0072] As an embodiment, the standard closed surface can be an ellipsoidal surface composed of a standard coordinate set in space. The invalid space refers to the internal space of the ellipsoidal surface covering the center position of the circle. In the invalid space, it is considered that the projector and the remote control are in contact or attached. At this time, signal transmission and data reception and transmission will be disturbed, causing the system to trigger the power on and off by mistake. The effective space refers to the external space of the ellipsoidal surface. In the effective space, the spatial distance parameters of the projector and the remote control are considered to be in the normal use distance parameters.
[0073] According to an embodiment of the present application, it also includes:
[0074] Obtaining a shielding distance parameter of the projector;
[0075] The effective state of the switch instruction is corrected according to the second space corresponding to the occlusion distance parameter. If the second space belongs to an invalid space, the effective state is corrected to be invalid. If the second space belongs to a valid space, no correction is performed.
[0076] As an embodiment, the shielding distance parameter refers to the distance parameter of the outer surface of the projector entity being shielded in the actual use scenario, which can be directly measured by an infrared sensor. If the shielding distance parameter is within the invalid space range, it indicates that the projector may be in a portable state or improperly used. At this time, regardless of the effective state of the switch command, it will be corrected to invalid; if the shielding distance parameter is within the effective space range, it indicates that the projector is in normal use, and the original effective state is retained.
[0077] According to an embodiment of the present application, the switching instruction is selected and controlled to be executed according to the effective state as follows:
[0078] If the effective state is invalid, the switch instruction is automatically switched to a closing instruction and the execution of the closing instruction is controlled;
[0079] If the effective state is effective, the switch instruction is directly controlled to be executed.
[0080] As an embodiment, when the effective state is invalid, no matter the projector is in the power-off or power-on state, after receiving the switch command, the switch command is automatically switched to the power-off command to maintain the current power-off state and no power-on processing is performed. When the effective state is valid, if the projector is in the power-off state, the system completes the power-on processing after receiving the power-on command; if the projector is in the power-on state, the system can obtain the time after 100ms while maintaining the power-on state and repeatedly start the TOF module, continue to detect whether the spatial distance parameter between the projector and the remote control has changed, and complete the switch command validity judgment and switch command operation.
[0081] According to an embodiment of the present application, it also includes:
[0082] When the valid state is invalid, obtaining the power on / off state of the projector;
[0083] Determining the consistency between the on / off state and the on / off instruction;
[0084] The switch instruction is switched according to the consistency judgment result and the switch status, and the execution of the switched switch instruction is controlled.
[0085] As an embodiment, when the effective state of the switch instruction is determined to be invalid, it may be caused by the contact and attachment of the projector to the remote control. In order to avoid the system from triggering the startup process by mistake, the system will force the shutdown process. If the projector has actual use needs at this time, the forced switching process of the system will cause inconvenience, such as emergency use in a narrow mobile scene. At this time, the switch instruction can be reselected by judging the consistency between the current power-on and power-off state of the projector and the received switch instruction. If the power-on and power-off state is consistent with the received switch instruction, the system determines that the projector is in the managed state and is accidentally touched, then the switch instruction is switched to the shutdown instruction for shutdown processing; if the power-on and power-off state is inconsistent with the received switch instruction, the system determines that the projector is in the managed state, then the switch instruction is controlled to execute. For example, when the projector is shut down and receives a power-on instruction, the system performs a power-on process; when the projector is powered on and receives a power-off instruction, the system performs a power-off process; when the projector is shut down and receives a power-off instruction, the system performs a power-off process; when the projector is powered on and receives a power-on instruction, the system performs a power-off process. In addition, considering that the probability of accidentally triggering the power-on or power-off command when the projector is in the managed state is equal, the recognition process of the switch command can be increased at this time. For example, when the power-on or power-off state is inconsistent with the received switch command, it is possible to identify whether the power-on or power-off command at this time is a double-click.
[0086] Please refer to Figure 2 , Figure 2 This is a block diagram of a switch device for controlling a projection device based on TOF in this application.
[0087] The embodiment of the present application further provides a device for controlling a projection device switch based on TOF, and the device for controlling a projection device switch based on TOF includes:
[0088] A TOF module 1, configured to start the TOF module after receiving a switch command from the remote controller, and calculate a spatial distance parameter between the projector and the remote controller according to the switch command;
[0089] An analysis module 2 is used to obtain a standard distance parameter between the projector and the remote controller, and determine a valid state of the switch instruction according to a comparison relationship between the spatial distance parameter and the standard distance parameter;
[0090] The control module 3 is used to select and switch the switch instruction according to the effective state and control the execution of the switched switch instruction.
[0091] As an embodiment, when the projector is in the off state, the MCU minimum system program loads the generated TOF driver in the TOF module to drive the TOF hardware to start running, and at the same time starts the TOF detection program to measure the spatial distance parameters, and uses the standard I2C communication program to return to the TOF driver, and then cooperates with the effective state judgment of the analysis module and the control software execution to complete the system power on and off operation. When the projector is in the on state, the TOF driver sends the TOF detection program to the software system to start the spatial distance parameter calculation process, and uses the standard I2C communication program to return to the TOF driver to complete the system power on and off operation.
[0092] According to an embodiment of the present application, the TOF module is specifically used for:
[0093] Acquire the base point position and projection direction of the projector, and determine the spatial coordinate system according to the base point position and the projection direction;
[0094] The transmitting end position of the switch instruction is obtained, and the spatial coordinates located in the spatial coordinate system are generated according to the transmitting end position, which are the spatial distance parameters.
[0095] According to an embodiment of the present application, the analysis module is specifically used for:
[0096] Acquire configuration parameters of the projector and acquire the spatial coordinate system of the projector;
[0097] A standard coordinate set located in the space coordinate system is generated according to the configuration parameters, and a coordinate set of the standard coordinate set is used as the standard distance parameter.
[0098] According to an embodiment of the present application, the analysis module is specifically used for:
[0099] The x-coordinate value of the standard coordinate set is determined according to the minimum projection distance, and the y-coordinate value and the z-coordinate value of the standard coordinate set are determined according to the minimum projection radius.
[0100] According to an embodiment of the present application, the analysis module is specifically used for:
[0101] Generate a standard closed surface according to the standard distance parameter; and
[0102] determining a first space of the projector based on the spatial distance parameter;
[0103] The effective state of the switch instruction is determined according to the position distribution of the standard closed surface and the first space.
[0104] According to an embodiment of the present application, the analysis module is specifically used for:
[0105] Dividing the space into invalid space and valid space by the standard closed surface;
[0106] If the first space belongs to the invalid space, the valid state is determined to be invalid; if the first space belongs to the valid space, the valid state is determined to be valid.
[0107] According to an embodiment of the present application, the analysis module is also used for:
[0108] Obtaining a shielding distance parameter of the projector;
[0109] The effective state of the switch instruction is corrected according to the second space corresponding to the shielding distance parameter. If the shielding second space belongs to an invalid space, the effective state is corrected to be invalid. If the second space belongs to a valid space, no correction is performed.
[0110] According to an embodiment of the present application, the control module is specifically used for:
[0111] If the effective state is invalid, the switch instruction is automatically switched to a closing instruction and the execution of the closing instruction is controlled;
[0112] If the effective state is effective, the switch instruction is directly controlled to be executed.
[0113] According to an embodiment of the present application, the control module is also used for:
[0114] When the valid state is invalid, obtaining the power on / off state of the projector;
[0115] Determining the consistency between the on / off state and the on / off instruction;
[0116] The switch instruction is switched according to the consistency judgment result and the switch status, and the execution of the switched switch instruction is controlled.
[0117] An embodiment of the present application also provides an intelligent projector, which implements each step in the method for controlling the switching of a projection device based on TOF, or includes each module in the device for controlling the switching of a projection device based on TOF.
[0118] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for controlling the switch of a projection device based on TOF, characterized in that: The steps include: After receiving a switch command from the remote controller, the TOF module is started, and a spatial distance parameter between the projector and the remote controller is calculated according to the switch command; Acquire a standard distance parameter between the projector and the remote controller, and determine a valid state of the switch instruction according to a comparison relationship between the spatial distance parameter and the standard distance parameter; Selecting to switch the switch instruction according to the effective state and controlling the execution of the switched switch instruction; The specific method for obtaining the standard distance parameter between the projector and the remote control is: Acquire configuration parameters of the projector and acquire the spatial coordinate system of the projector; Generate a standard coordinate set located in the spatial coordinate system according to the configuration parameters, and use the coordinate set of the standard coordinate set as the standard distance parameter; The configuration parameters include a minimum projection distance and a minimum projection radius. Generating a standard coordinate set located in the spatial coordinate system according to the configuration parameters is specifically as follows: determining the x coordinate value of the standard coordinate set according to the minimum projection distance, and determining the y coordinate value and the z coordinate value of the standard coordinate set according to the minimum projection radius.
2. The method for controlling the switching of a projection device based on TOF as claimed in claim 1, characterized in that: The spatial distance parameter between the projector and the remote controller is calculated according to the switch instruction as follows: Acquire the base point position and projection direction of the projector, and determine the spatial coordinate system according to the base point position and the projection direction; The transmitting end position of the switch instruction is obtained, and the spatial coordinates located in the spatial coordinate system are generated according to the transmitting end position, which are the spatial distance parameters.
3. The method for controlling the switching of a projection device based on TOF as claimed in claim 1, characterized in that: The effective state of the switch instruction is determined according to the comparison relationship between the spatial distance parameter and the standard distance parameter: Generate a standard closed surface according to the standard distance parameter; and determining a first space of the projector based on the spatial distance parameter; The effective state of the switch instruction is determined according to the position distribution of the standard closed surface and the first space.
4. The method for controlling the switching of a projection device based on TOF as claimed in claim 3, characterized in that: Determining the effective state of the switch instruction according to the position distribution of the standard closed surface and the first space includes: Dividing the space into invalid space and valid space by the standard closed surface; If the first space belongs to the invalid space, the valid state is determined to be invalid; if the first space belongs to the valid space, the valid state is determined to be valid.
5. The method for controlling the switching of a projection device based on TOF as claimed in claim 1, characterized in that: Also includes: Obtaining a shielding distance parameter of the projector; The effective state of the switch instruction is corrected according to the second space corresponding to the occlusion distance parameter. If the second space belongs to an invalid space, the effective state is corrected to be invalid. If the second space belongs to a valid space, no correction is performed.
6. The method for controlling the switching of a projection device based on TOF according to any one of claims 1 to 5, characterized in that: Selecting to switch the switch instruction according to the effective state and controlling the execution of the switched switch instruction is specifically as follows: If the effective state is invalid, the switch instruction is automatically switched to a closing instruction and the execution of the closing instruction is controlled; If the effective state is effective, the switch instruction is directly controlled to be executed.
7. The method for controlling the switching of a projection device based on TOF according to any one of claims 1 to 5, characterized in that: Also includes: When the valid state is invalid, obtaining the power on / off state of the projector; Determining the consistency between the on / off state and the on / off instruction; The switch instruction is switched according to the consistency judgment result and the switch status, and the execution of the switched switch instruction is controlled.
8. A smart projector, characterized in that: The intelligent projector implements each step of the method for controlling the switching of a projection device based on TOF as described in any one of claims 1 to 7.
