Control method and device of time-of-flight sensor and projector

By acquiring and analyzing the distance and angle detection information of the time of flight sensor and performing corresponding angle adjustments, the problem of low distance measurement accuracy in large angle scenarios is solved, and the data measurement accuracy of the time of flight sensor is improved.

CN119064864APending Publication Date: 2024-12-03ANKER INNOVATIONS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310650805.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-02
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing time-of-flight sensors have low ranging accuracy in large angle scenarios, especially in the angle range of 20° to 40°, which is not as effective as in the scenes of 0° to 20°, resulting in a decrease in the accuracy of data measurement.

Method used

By obtaining the distance detection information obtained after the flight time sensor is transmitted, it is determined whether the first angle adjustment is performed, and the angle detection information is obtained after the adjustment is completed, and further determine whether the second angle adjustment is performed. In this way, the angle setting of the sensor is optimized to Improve measurement accuracy.

Benefits of technology

By adjusting the angle of the time of flight sensor, the accuracy of its data measurement in large angle scenarios is significantly improved, and the accuracy and efficiency of distance measurement are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119064864A_ABST
    Figure CN119064864A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a time-of-flight sensor control method and device and a projector. The method comprises the following steps: acquiring distance detection information obtained by a time-of-flight sensor after signal emission; determining whether to control the flight time sensor to perform first angle adjustment based on the distance detection information; under the condition of determining to control the flight time sensor to perform the first angle adjustment, controlling the flight time sensor to perform the first angle adjustment; after the first angle adjustment of the time-of-flight sensor is completed, angle detection information obtained by the time-of-flight sensor after signal emission is obtained; and determining whether to control the time-of-flight sensor to perform second angle adjustment based on the angle detection information. Therefore, the accuracy of subsequent data measurement of the time-of-flight sensor can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a control method, device and projector for a time-of-flight sensor. Background Art

[0002] TOF (Time of flight) sensors are often used to measure distance. Currently, many products are increasingly using TOF sensors for distance measurement.

[0003] As the demand for large-angle scenes increases, the existing TOF ranging solutions do not provide as good a user experience at large angles (e.g., 20° to 40°) as at small angles (e.g., 0° to 20°). It can be seen that how to improve the accuracy of data measurement by time-of-flight sensors is a technical issue worthy of attention. Summary of the invention

[0004] In view of this, in order to solve some or all of the above technical problems, the embodiments of the present application provide a control method, device and projector for a time-of-flight sensor.

[0005] In a first aspect, an embodiment of the present application provides a control method for a time-of-flight sensor, the method comprising:

[0006] Acquiring distance detection information obtained by the time-of-flight sensor after signal transmission;

[0007] Based on the distance detection information, determining whether to control the time-of-flight sensor to perform a first angle adjustment;

[0008] In a case where it is determined to control the time-of-flight sensor to perform the first angle adjustment, controlling the time-of-flight sensor to perform the first angle adjustment;

[0009] After completing the first angle adjustment of the time-of-flight sensor, acquiring angle detection information obtained by the time-of-flight sensor after signal transmission;

[0010] Based on the angle detection information, it is determined whether to control the time-of-flight sensor to perform a second angle adjustment.

[0011] In a possible implementation manner, the distance detection information includes a first distance, a second distance, and a third distance;

[0012] One end point of the line segments representing the first distance, the second distance and the third distance respectively is the position where the time-of-flight sensor is located, and the other end point is located on the projection plane of the time-of-flight sensor;

[0013] The line segment representing the first distance is a first boundary of the detection area of ​​the time-of-flight sensor;

[0014] The line segment representing the third distance is the second boundary of the detection area;

[0015] The angle of the first angle is equal to the angle of the second angle. The first angle is the angle between the line segment representing the second distance and the line segment representing the first distance. The second angle is the angle between the line segment representing the second distance and the line segment representing the third distance.

[0016] In a possible implementation, determining whether to control the time-of-flight sensor to perform a first angle adjustment based on the distance detection information includes:

[0017] When any one of the first distance, the second distance and the third distance is less than or equal to a preset first threshold, determining to control the time-of-flight sensor to perform a first angle adjustment;

[0018] When all of the first distance, the second distance, and the third distance are greater than the preset first threshold, it is determined that there is no need to control the time-of-flight sensor to perform the first angle adjustment.

[0019] In a possible implementation, when any one of the first distance, the second distance, and the third distance is less than or equal to a preset first threshold, determining to control the time-of-flight sensor to perform a first angle adjustment includes:

[0020] When the first distance is less than or equal to the preset first threshold value and the second distance is less than the third distance, determining that the adjustment angle of the time-of-flight sensor is a first angle, so as to control the time-of-flight sensor to perform a first angle adjustment according to the first angle;

[0021] When the third distance is less than or equal to the preset first threshold value and the second distance is less than the first distance, determining that the adjustment angle of the time-of-flight sensor is a second angle, so as to control the time-of-flight sensor to adjust the first angle according to the second angle;

[0022] Wherein, the first angle and the second angle are opposite numbers of each other.

[0023] In a possible implementation manner, the angle detection information includes a yaw angle; and

[0024] The determining, based on the angle detection information, whether to control the time-of-flight sensor to perform a second angle adjustment includes:

[0025] When the angle represented by the yaw angle belongs to a preset angle range, determining that there is no need to control the time-of-flight sensor to perform a second angle adjustment;

[0026] When the angle represented by the yaw angle does not belong to the preset angle range, it is determined to control the time-of-flight sensor to perform the second angle adjustment.

[0027] In a possible implementation manner, when the angle represented by the yaw angle does not belong to the preset angle range, the flight time sensor is controlled to adjust the second angle in the following manner:

[0028] Determine an angle range including the angle represented by the yaw angle from a predetermined angle range set to obtain a target angle range, wherein each angle range in the angle range set corresponds to an adjustment angle;

[0029] An adjustment angle corresponding to the target angle range is determined to obtain a target adjustment angle, so as to control the time-of-flight sensor to perform a second angle adjustment according to the target adjustment angle.

[0030] In a possible implementation, after controlling the time-of-flight sensor to perform a second angle adjustment according to the target adjustment angle, the method further includes:

[0031] Perform the following determination steps: obtain angle detection information obtained by the time-of-flight sensor after signal transmission; determine whether to control the time-of-flight sensor to perform a second angle adjustment based on the angle detection information;

[0032] After determining to control the time-of-flight sensor to perform a second angle adjustment, and controlling the time-of-flight sensor to complete the second angle adjustment, performing the determining step;

[0033] After determining that it is not necessary to control the time-of-flight sensor to perform a second angle adjustment, the time-of-flight sensor is controlled to perform distance measurement.

[0034] In a second aspect, an embodiment of the present application provides a control device for a time-of-flight sensor, the device comprising:

[0035] A first acquisition unit, used to acquire distance detection information obtained by the time-of-flight sensor after signal transmission;

[0036] A first determining unit, configured to determine whether to control the time-of-flight sensor to perform a first angle adjustment based on the distance detection information;

[0037] a first control unit, configured to control the time-of-flight sensor to perform the first angle adjustment if it is determined to control the time-of-flight sensor to perform the first angle adjustment;

[0038] A second acquisition unit, configured to acquire angle detection information obtained by the time-of-flight sensor after signal transmission after completing the first angle adjustment of the time-of-flight sensor;

[0039] The second determining unit is configured to determine whether to control the time-of-flight sensor to perform a second angle adjustment based on the angle detection information.

[0040] In a possible implementation manner, the distance detection information includes a first distance, a second distance, and a third distance;

[0041] One end point of the line segments representing the first distance, the second distance and the third distance respectively is the position where the time-of-flight sensor is located, and the other end point is located on the projection plane of the time-of-flight sensor;

[0042] The line segment representing the first distance is a first boundary of the detection area of ​​the time-of-flight sensor;

[0043] The line segment representing the third distance is the second boundary of the detection area;

[0044] The angle of the first angle is equal to the angle of the second angle. The first angle is the angle between the line segment representing the second distance and the line segment representing the first distance. The second angle is the angle between the line segment representing the second distance and the line segment representing the third distance.

[0045] In a possible implementation, determining whether to control the time-of-flight sensor to perform a first angle adjustment based on the distance detection information includes:

[0046] When any one of the first distance, the second distance and the third distance is less than or equal to a preset first threshold, determining to control the time-of-flight sensor to perform a first angle adjustment;

[0047] When all of the first distance, the second distance, and the third distance are greater than the preset first threshold, it is determined that there is no need to control the time-of-flight sensor to perform the first angle adjustment.

[0048] In a possible implementation, when any one of the first distance, the second distance, and the third distance is less than or equal to a preset first threshold, determining to control the time-of-flight sensor to perform a first angle adjustment includes:

[0049] When the first distance is less than or equal to the preset first threshold value and the second distance is less than the third distance, determining that the adjustment angle of the time-of-flight sensor is a first angle, so as to control the time-of-flight sensor to perform a first angle adjustment according to the first angle;

[0050] When the third distance is less than or equal to the preset first threshold value and the second distance is less than the first distance, determining that the adjustment angle of the time-of-flight sensor is a second angle, so as to control the time-of-flight sensor to adjust the first angle according to the second angle;

[0051] Wherein, the first angle and the second angle are opposite numbers of each other.

[0052] In a possible implementation manner, the angle detection information includes a yaw angle; and

[0053] The determining, based on the angle detection information, whether to control the time-of-flight sensor to perform a second angle adjustment includes:

[0054] When the angle represented by the yaw angle belongs to a preset angle range, determining that there is no need to control the time-of-flight sensor to perform a second angle adjustment;

[0055] When the angle represented by the yaw angle does not belong to the preset angle range, it is determined to control the time-of-flight sensor to perform the second angle adjustment.

[0056] In a possible implementation manner, when the angle represented by the yaw angle does not belong to the preset angle range, the flight time sensor is controlled to adjust the second angle in the following manner:

[0057] Determine an angle range including the angle represented by the yaw angle from a predetermined angle range set to obtain a target angle range, wherein each angle range in the angle range set corresponds to an adjustment angle;

[0058] An adjustment angle corresponding to the target angle range is determined to obtain a target adjustment angle, so as to control the time-of-flight sensor to perform a second angle adjustment according to the target adjustment angle.

[0059] In a possible implementation manner, after controlling the time-of-flight sensor to perform a second angle adjustment according to the target adjustment angle, the device further includes:

[0060] The first execution unit is used to execute the following determination steps: obtaining angle detection information obtained by the time-of-flight sensor after signal transmission; and determining whether to control the time-of-flight sensor to perform a second angle adjustment based on the angle detection information;

[0061] a second execution unit, configured to execute the determining step after determining to control the time-of-flight sensor to perform a second angle adjustment and controlling the time-of-flight sensor to complete the second angle adjustment;

[0062] The second control unit is configured to control the time-of-flight sensor to perform distance measurement after determining that it is not necessary to control the time-of-flight sensor to perform a second angle adjustment.

[0063] In a third aspect, an embodiment of the present application provides a projector, including:

[0064] Memory for storing computer programs;

[0065] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the method for controlling a time-of-flight sensor according to the first aspect of the present application is implemented.

[0066] In a possible implementation, the projector further includes an angle sensor, and the angle sensor is used to control the time-of-flight sensor to adjust an angle.

[0067] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method of any embodiment of the method for controlling a time-of-flight sensor according to the first aspect is implemented.

[0068] In a fifth aspect, an embodiment of the present application provides a computer program, which includes a computer-readable code. When the computer-readable code is executed on a device, a processor in the device implements a method as in any embodiment of the method for controlling a time-of-flight sensor in the first aspect described above.

[0069] The control method of the time-of-flight sensor provided in the embodiment of the present application can obtain the distance detection information obtained by the time-of-flight sensor after the signal is transmitted, and then, based on the distance detection information, determine whether to control the time-of-flight sensor to perform a first angle adjustment, and then, in the case of determining to control the time-of-flight sensor to perform the first angle adjustment, control the time-of-flight sensor to perform the first angle adjustment, and then, after completing the first angle adjustment of the time-of-flight sensor, obtain the angle detection information obtained by the time-of-flight sensor after the signal is transmitted, and then, based on the angle detection information, determine whether to control the time-of-flight sensor to perform a second angle adjustment. Thus, firstly, it is determined whether to perform the first angle adjustment on the time-of-flight sensor through the distance detection information, and then it is determined whether to perform the second angle adjustment on the time-of-flight sensor through the angle detection information. In this way, by adjusting the angle of the time-of-flight sensor, the accuracy of subsequent data measurement by the time-of-flight sensor can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0071] In order to more clearly illustrate the embodiments of the present invention 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0072] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0073] Figure 1 A schematic flow chart of a control method for a time-of-flight sensor provided in an embodiment of the present application;

[0074] Figure 2 A schematic diagram of distance detection information and angle detection information in a method for controlling a time-of-flight sensor provided in an embodiment of the present application;

[0075] Figure 3 A schematic flow chart of another method for controlling a time-of-flight sensor provided in an embodiment of the present application;

[0076] Figure 4 A schematic diagram of the structure of a control device for a time-of-flight sensor provided in an embodiment of the present application;

[0077] Figure 5 A schematic diagram of the structure of a projector provided in an embodiment of the present application;

[0078] Figure 6-Figure 10 A schematic diagram of the structure of another projector provided in an embodiment of the present application;

[0079] Fig.11 A schematic flow chart of another method for controlling a time-of-flight sensor provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the numerical expressions and the numerical values ​​described in these embodiments do not limit the scope of the present application.

[0081] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.

[0082] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.

[0083] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.

[0084] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.

[0085] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.

[0086] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.

[0087] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered as part of the specification.

[0088] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0089] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0090] Figure 1 A flow chart of a control method for a time-of-flight sensor provided in an embodiment of the present application. The method can be applied to one or more projectors such as a projector, a TOF sensor, a smart phone, a laptop computer, a desktop computer, a portable computer, a server, etc. In addition, the execution subject of the method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned projectors. For example, a single projector can execute the method, or a plurality of projectors can cooperate with each other to execute the method. When the above-mentioned execution subject is software, the method can be implemented as multiple software or software modules, or as a single software or software module. It is not specifically limited here.

[0091] like Figure 1 As shown, the method specifically includes:

[0092] Step 101: Acquire distance detection information obtained by the time-of-flight sensor after signal transmission.

[0093] In this embodiment, the time-of-flight sensor can calculate the distance between the detection object in the detection area and the time-of-flight sensor by emitting light signals such as infrared light or laser and using the time difference or phase difference between the emission and reflection of the light signal.

[0094] The detection area may be the area reached by the light signal emitted by the time-of-flight sensor. The detection area may be represented by a three-dimensional space or a two-dimensional graphic.

[0095] The distance detection information may include various distance information obtained by the time-of-flight sensor.

[0096] For example, the distance detection information may include at least one of the following: a first distance, a second distance, and a third distance.

[0097] In some optional implementations of this embodiment, the distance detection information includes a first distance, a second distance, and a third distance.

[0098] Wherein, one end point of the line segments respectively representing the first distance, the second distance and the third distance is the position where the time-of-flight sensor is located, and the other end point is located on the projection plane of the time-of-flight sensor.

[0099] The line segment representing the first distance is a first boundary of a detection area of ​​the time-of-flight sensor.

[0100] The line segment representing the third distance is a second boundary of the detection area.

[0101] The first angle is equal to the second angle, wherein the first angle is the angle between the line segment representing the second distance and the line segment representing the first distance, and the second angle is the angle between the line segment representing the second distance and the line segment representing the third distance.

[0102] For details, please refer to Figure 2 , Figure 2 A schematic diagram of distance detection information and angle detection information in a method for controlling a time-of-flight sensor provided in an embodiment of the present application.

[0103] exist Figure 2 In the figure, the straight line d is used to represent the position of the projection plane. The intersection of the first distance L1, the second distance L2, and the third distance L3 may be the position of the time-of-flight sensor. That is, one end point of the line segments representing the first distance, the second distance, and the third distance is the position of the time-of-flight sensor. The other end points of the first distance L1, the second distance L2, and the third distance L3 are located in the projection plane of the time-of-flight sensor.

[0104] The triangular area formed by L1, L3 and d in the figure can represent the detection area of ​​the time-of-flight sensor.

[0105] It can be understood that in the above optional implementation, through subsequent steps, it can be determined whether to control the flight time sensor to adjust the angle based on the first distance, the second distance and the third distance. Since the speed of obtaining the above-mentioned first distance L1, the second distance L2 and the third distance L3 is faster than other distance detection information, the above-mentioned optional implementation can be adopted to improve the efficiency of the flight time sensor in data measurement.

[0106] Step 102: Determine whether to control the time-of-flight sensor to perform a first angle adjustment based on the distance detection information.

[0107] In this embodiment, the first angle adjustment may refer to an angle adjustment operation performed on the time-of-flight sensor based on the distance detection information.

[0108] In some optional implementations of this embodiment, the above step 102 may be performed in the following manner:

[0109] When any one of the first distance, the second distance and the third distance is less than or equal to a preset first threshold, it is determined to control the time-of-flight sensor to perform a first angle adjustment.

[0110] When all of the first distance, the second distance, and the third distance are greater than the preset first threshold, it is determined that there is no need to control the time-of-flight sensor to perform the first angle adjustment.

[0111] It can be understood that in the above optional implementation, if any one of the first distance, the second distance and the third distance is less than or equal to the preset first threshold, it can usually be said that there is a large deflection in the angle of the current time-of-flight sensor. Therefore, by controlling the time-of-flight sensor to perform a first angle adjustment, the angle deflection of the time-of-flight sensor can be reduced. If all of the first distance, the second distance and the third distance are greater than the preset first threshold, it is highly likely that there is a small deflection in the angle of the current time-of-flight sensor. Therefore, there is no need to control the time-of-flight sensor to perform a first angle adjustment.

[0112] In some application scenarios of the above optional implementation manner, when any one of the first distance, the second distance, and the third distance is less than or equal to a preset first threshold, the following method can be used to determine to control the time-of-flight sensor to perform a first angle adjustment:

[0113] When the first distance is less than or equal to the preset first threshold and the second distance is less than the third distance, the adjustment angle of the time of flight sensor is determined to be a first angle, so as to control the time of flight sensor to perform a first angle adjustment according to the first angle.

[0114] When the third distance is less than or equal to the preset first threshold and the second distance is less than the first distance, the adjustment angle of the time of flight sensor is determined to be a second angle, so as to control the time of flight sensor to adjust the first angle according to the second angle.

[0115] Wherein, the first angle and the second angle are opposite numbers of each other.

[0116] It can be understood that in the above application scenario, when the first distance is less than or equal to the preset first threshold value, and the second distance is less than the third distance, it can be generally explained that the left deviation angle of the TOF sensor is too large. In this case, the adjustment angle of the time of flight sensor can be determined to be a first angle (for example, 30 degrees), and then the time of flight sensor is controlled to perform a first angle adjustment according to the first angle, which can further reduce the deflection angle of the time of flight sensor in the scenario where the left deviation angle is too large. When the third distance is less than or equal to the preset first threshold value, and the second distance is less than the first distance, it can be generally explained that the right deviation angle of the TOF sensor is too large. In this case, the adjustment angle of the time of flight sensor can be determined to be a second angle (for example, -30 degrees), and then the time of flight sensor is controlled to perform a first angle adjustment according to the second angle, which can further reduce the deflection angle of the time of flight sensor in the scenario where the right deviation angle is too large.

[0117] Optionally, when all of the first distance, the second distance and the third distance are greater than the preset first threshold and the standard deviation of the first distance, the second distance and the third distance is less than a preset value, it can be determined that there is no need to control the time-of-flight sensor to perform the first angle adjustment.

[0118] Step 103: When it is determined that the time-of-flight sensor is to be controlled to adjust the first angle, control the time-of-flight sensor to adjust the first angle.

[0119] In this embodiment, if it is determined that the adjustment angle of the time-of-flight sensor is X, then the time-of-flight sensor may be controlled to deflect X degrees in a preset direction.

[0120] The deflection direction of the time-of-flight sensor can be determined by determining whether the adjustment angle is positive or negative.

[0121] Step 104: After the first angle adjustment of the time-of-flight sensor is completed, angle detection information obtained by the time-of-flight sensor after signal transmission is acquired.

[0122] In this embodiment, the angle detection information may include various angle information obtained by detection by a time-of-flight sensor.

[0123] The angle in the above angle detection information can be directly obtained via a time-of-flight sensor or calculated by itself.

[0124] Step 105: Determine whether to control the time-of-flight sensor to perform a second angle adjustment based on the angle detection information.

[0125] In this embodiment, the second angle adjustment may refer to an angle adjustment operation performed on the time-of-flight sensor based on the angle detection information.

[0126] Here, multiple methods may be used to execute the above step 105. Please refer to the following description for details, which will not be described here.

[0127] The control method of the time-of-flight sensor provided in the embodiment of the present application can obtain the distance detection information obtained by the time-of-flight sensor after the signal is transmitted, and then, based on the distance detection information, determine whether to control the time-of-flight sensor to perform a first angle adjustment, and then, in the case of determining to control the time-of-flight sensor to perform the first angle adjustment, control the time-of-flight sensor to perform the first angle adjustment, and then, after completing the first angle adjustment of the time-of-flight sensor, obtain the angle detection information obtained by the time-of-flight sensor after the signal is transmitted, and then, based on the angle detection information, determine whether to control the time-of-flight sensor to perform a second angle adjustment. Thus, firstly, it is determined whether to perform the first angle adjustment on the time-of-flight sensor through the distance detection information, and then it is determined whether to perform the second angle adjustment on the time-of-flight sensor through the angle detection information. In this way, by adjusting the angle of the time-of-flight sensor, the accuracy of subsequent data measurement by the time-of-flight sensor can be improved.

[0128] Figure 3 A flow chart of another method for controlling a time-of-flight sensor provided in an embodiment of the present application. Figure 3 As shown, the method specifically includes:

[0129] Step 201 : acquiring distance detection information obtained by the time-of-flight sensor after signal transmission, wherein the angle detection information includes a yaw angle.

[0130] In this embodiment, the yaw angle is Figure 2 As shown, the angle θ may represent the yaw angle, which may be used to represent the angle between the central light signal (eg, L2) emitted by the TOF sensor and the perpendicular line from the TOF sensor to the projection plane.

[0131] In addition, step 201 and Figure 1 Step 101 in the corresponding embodiment is basically the same and will not be described again here.

[0132] Step 202: Determine whether to control the time-of-flight sensor to perform a first angle adjustment based on the distance detection information.

[0133] In this embodiment, step 202 and Figure 1Step 102 in the corresponding embodiment is basically the same and will not be described again here.

[0134] Step 203: When it is determined that the time-of-flight sensor is to be controlled to adjust the first angle, control the time-of-flight sensor to adjust the first angle.

[0135] In this embodiment, step 203 and Figure 1 Step 103 in the corresponding embodiment is basically the same and will not be described again here.

[0136] Step 204: After the first angle adjustment of the time-of-flight sensor is completed, angle detection information obtained by the time-of-flight sensor after signal transmission is acquired.

[0137] In this embodiment, step 204 and Figure 1 Step 104 in the corresponding embodiment is basically the same and will not be described again here.

[0138] Step 205 : when the angle represented by the yaw angle belongs to a preset angle range, determining that there is no need to control the time-of-flight sensor to perform a second angle adjustment.

[0139] In this embodiment, the preset angle range may be a pre-set angle range, for example, -10 degrees to 10 degrees.

[0140] The second angle adjustment may refer to an angle adjustment operation performed on the time-of-flight sensor based on the angle detection information.

[0141] Step 206 : When the angle represented by the yaw angle does not belong to the preset angle range, determine to control the time-of-flight sensor to perform the second angle adjustment.

[0142] In some optional implementations of this embodiment, when the angle represented by the yaw angle does not belong to the preset angle range, the flight time sensor is controlled to adjust the second angle in the following manner:

[0143] First, an angle range including the angle represented by the yaw angle is determined from a predetermined angle range set to obtain a target angle range.

[0144] Wherein, each angle range in the angle range set corresponds to an adjustment angle.

[0145] Afterwards, an adjustment angle corresponding to the target angle range is determined to obtain a target adjustment angle, so as to control the time-of-flight sensor to perform a second angle adjustment according to the target adjustment angle.

[0146] As an example, the angle range set may include the following angle ranges: angle range 1 "[-20°, -10°]", corresponding to the adjustment angle of "-10°"; angle range 2 "[10°, 20°]", corresponding to the adjustment angle of "10°"; angle range 3 "[-30°, -20°]", corresponding to the adjustment angle of "-20°"; angle range 4 "[20°, 30°]", corresponding to the adjustment angle of "20°"; angle range 5 "[-40°, -30°]", corresponding to the adjustment angle of "-30°"; angle range 6 "[30°, 40°]", corresponding to the adjustment angle of "20°".

[0147] It can be understood that in the above optional implementation, an adjustment angle is set corresponding to each angle range, so that the angle adjustment can be performed according to the corresponding target adjustment angle, which can improve the accuracy of the TOF sensor angle adjustment.

[0148] In some application scenarios of the above optional implementation manners, after controlling the time-of-flight sensor to perform a second angle adjustment according to the target adjustment angle, the following steps may also be performed:

[0149] First, perform the following determination steps (including the first step and the second step):

[0150] The first step is to obtain the angle detection information obtained by the time-of-flight sensor after signal transmission.

[0151] Here, the specific implementation method of the above step 104 can refer to the above step 104, which will not be repeated here.

[0152] The second step is to determine whether to control the time-of-flight sensor to perform a second angle adjustment based on the angle detection information.

[0153] Here, the specific implementation method of the above step 105 can refer to the above step 104, which will not be repeated here.

[0154] Afterwards, after determining that the time-of-flight sensor is controlled to perform a second angle adjustment and after controlling the time-of-flight sensor to complete the second angle adjustment, the determining step is performed; after determining that the time-of-flight sensor does not need to be controlled to perform a second angle adjustment, the time-of-flight sensor is controlled to perform ranging.

[0155] It can be understood that in the above application scenario, the angle of the time-of-flight sensor can be adjusted multiple times by cyclically executing the above determination steps, which can further improve the accuracy of subsequent data measurement by the time-of-flight sensor.

[0156] It should be noted that, in addition to the above contents, this embodiment may also include Figure 1The corresponding technical features described in the corresponding embodiments are realized Figure 1 For details, please refer to the technical effect of the control method of the flight time sensor shown in Figure 1 For the sake of brevity, the relevant description is not repeated here.

[0157] The control method of the time-of-flight sensor provided in the embodiment of the present application can determine whether it is necessary to control the time-of-flight sensor to perform a second angle adjustment by determining whether the angle represented by the yaw angle falls within a preset angle range. In this way, the accuracy of subsequent data measurement by the time-of-flight sensor can be further improved.

[0158] Figure 4 A schematic diagram of the structure of a control device for a time-of-flight sensor provided in an embodiment of the present application. Specifically comprising:

[0159] A first acquisition unit 401 is used to acquire distance detection information obtained by the time-of-flight sensor after signal transmission;

[0160] A first determining unit 402 is used to determine whether to control the time-of-flight sensor to perform a first angle adjustment based on the distance detection information;

[0161] A first control unit 403 is configured to control the time-of-flight sensor to perform the first angle adjustment when it is determined to control the time-of-flight sensor to perform the first angle adjustment;

[0162] A second acquisition unit 404 is used to acquire angle detection information obtained by the time-of-flight sensor after signal transmission after completing the first angle adjustment of the time-of-flight sensor;

[0163] The second determination unit 405 is configured to determine whether to control the time-of-flight sensor to perform a second angle adjustment based on the angle detection information.

[0164] In a possible implementation manner, the distance detection information includes a first distance, a second distance, and a third distance;

[0165] One end point of the line segments representing the first distance, the second distance and the third distance respectively is the position where the time-of-flight sensor is located, and the other end point is located on the projection plane of the time-of-flight sensor;

[0166] The line segment representing the first distance is a first boundary of the detection area of ​​the time-of-flight sensor;

[0167] The line segment representing the third distance is the second boundary of the detection area;

[0168] The angle of the first angle is equal to the angle of the second angle. The first angle is the angle between the line segment representing the second distance and the line segment representing the first distance. The second angle is the angle between the line segment representing the second distance and the line segment representing the third distance.

[0169] In a possible implementation, determining whether to control the time-of-flight sensor to perform a first angle adjustment based on the distance detection information includes:

[0170] When any one of the first distance, the second distance and the third distance is less than or equal to a preset first threshold, determining to control the time-of-flight sensor to perform a first angle adjustment;

[0171] When all of the first distance, the second distance, and the third distance are greater than the preset first threshold, it is determined that there is no need to control the time-of-flight sensor to perform the first angle adjustment.

[0172] In a possible implementation, when any one of the first distance, the second distance, and the third distance is less than or equal to a preset first threshold, determining to control the time-of-flight sensor to perform a first angle adjustment includes:

[0173] When the first distance is less than or equal to the preset first threshold value and the second distance is less than the third distance, determining that the adjustment angle of the time-of-flight sensor is a first angle, so as to control the time-of-flight sensor to perform a first angle adjustment according to the first angle;

[0174] When the third distance is less than or equal to the preset first threshold value and the second distance is less than the first distance, determining that the adjustment angle of the time-of-flight sensor is a second angle, so as to control the time-of-flight sensor to adjust the first angle according to the second angle;

[0175] Wherein, the first angle and the second angle are opposite numbers of each other.

[0176] In a possible implementation manner, the angle detection information includes a yaw angle; and

[0177] The determining, based on the angle detection information, whether to control the time-of-flight sensor to perform a second angle adjustment includes:

[0178] When the angle represented by the yaw angle belongs to a preset angle range, determining that there is no need to control the time-of-flight sensor to perform a second angle adjustment;

[0179] When the angle represented by the yaw angle does not belong to the preset angle range, it is determined to control the time-of-flight sensor to perform the second angle adjustment.

[0180] In a possible implementation manner, when the angle represented by the yaw angle does not belong to the preset angle range, the flight time sensor is controlled to adjust the second angle in the following manner:

[0181] Determine an angle range including the angle represented by the yaw angle from a predetermined angle range set to obtain a target angle range, wherein each angle range in the angle range set corresponds to an adjustment angle;

[0182] An adjustment angle corresponding to the target angle range is determined to obtain a target adjustment angle, so as to control the time-of-flight sensor to perform a second angle adjustment according to the target adjustment angle.

[0183] In a possible implementation manner, after controlling the time-of-flight sensor to perform a second angle adjustment according to the target adjustment angle, the device further includes:

[0184] A first execution unit (not shown in the figure) is used to perform the following determination steps: obtaining angle detection information obtained by the time-of-flight sensor after signal transmission; and determining whether to control the time-of-flight sensor to perform a second angle adjustment based on the angle detection information;

[0185] A second execution unit (not shown in the figure) is used for executing the determining step after determining to control the time-of-flight sensor to perform a second angle adjustment and controlling the time-of-flight sensor to complete the second angle adjustment;

[0186] The second control unit (not shown in the figure) is used to control the time-of-flight sensor to perform distance measurement after determining that there is no need to control the time-of-flight sensor to perform the second angle adjustment.

[0187] The control device of the time-of-flight sensor provided in this embodiment may be as follows Figure 4 The control device of the time-of-flight sensor shown in the figure can execute all the steps of the control methods of the time-of-flight sensors described above, thereby achieving the technical effects of the control methods of the time-of-flight sensors described above. For details, please refer to the above related description. For the sake of brevity, it will not be repeated here.

[0188] Figure 5 A schematic diagram of the structure of a projector provided in an embodiment of the present application is shown in FIG. Figure 5The projector 500 shown includes: a circuit board, a bracket for the circuit board, a time-of-flight sensor, and a motor for the time-of-flight sensor (TOF-motor); the circuit board is used to control the motor according to any of the methods described in the first aspect above, to drive the bracket to drive the time-of-flight sensor to adjust the angle.

[0189] The above-mentioned circuit board can be used in any of the methods described in the above-mentioned first aspect.

[0190] The circuit board bracket can be used to support the circuit board.

[0191] The time-of-flight sensor may be the time-of-flight sensor described in any one of the methods described in the first aspect above.

[0192] The motor of the time-of-flight sensor can be used to drive the time-of-flight sensor.

[0193] In some optional implementations of this embodiment, the projector further includes an angle sensor, and the angle sensor is used to control the time-of-flight sensor to adjust the angle.

[0194] It can be understood that in the above optional implementation, the time-of-flight sensor is controlled to adjust its angle by using an angle sensor, so that the deflection of the time-of-flight sensor can be controlled more accurately.

[0195] As an example, see Figure 6-Figure 10 , Figure 6-Figure 10 A schematic diagram of the structure of another projector provided in an embodiment of the present application, wherein the circuit board includes a transfer mainboard PCBA (Printed Circuit Board Assembly) and a TOF-PCBA.

[0196] The bracket of the circuit board may be a TOF-PCBA bracket.

[0197] The TOF-PCBA bracket realizes angle rotation under the drive of the TOF motor.

[0198] The connection relationship between the TOF motor and the TOF-PCBA device is as follows: the TOF-PCBA bracket is fixed on the motor output shaft. As the motor drives to rotate, the TOF-PCBA realizes angular rotation along with the rotational force of the TOF-PCBA bracket on the output shaft.

[0199] When the machine rotates to a large angle (-40°≤θ≤-10° or 10°≤θ≤40°), TOF measures the angle θ for the first time to determine whether the θ value is greater than 10° or less than -10°. Through the calibration position of the TOF motor, the output drive step number controls the TOF motor to drive the TOF-PCBA to rotate the angle γ. The TOF measurement is started to measure the angle θ with the projection surface. At this time, the θ value range is -10°≤θ≤10°.

[0200] At this time, the product's rotation angle can be accurately obtained to be equal to δ=θ+γ, so as to improve the measurement accuracy of TOF at large angles.

[0201] The projector provided in the embodiment of the present application can adopt the control method of the above-mentioned time-of-flight sensor to adjust the angle of the time-of-flight sensor, which can improve the accuracy of subsequent data measurement by the time-of-flight sensor.

[0202] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.

[0203] When one or more programs in the storage medium can be executed by one or more processors, the control method of the time-of-flight sensor executed on the projector side can be implemented.

[0204] The processor is used to execute the control program of the time-of-flight sensor stored in the memory to implement the following steps of the control method of the time-of-flight sensor executed on the projector side:

[0205] Acquiring distance detection information obtained by the time-of-flight sensor after signal transmission;

[0206] Based on the distance detection information, determining whether to control the time-of-flight sensor to perform a first angle adjustment;

[0207] In a case where it is determined to control the time-of-flight sensor to perform the first angle adjustment, controlling the time-of-flight sensor to perform the first angle adjustment;

[0208] After completing the first angle adjustment of the time-of-flight sensor, acquiring angle detection information obtained by the time-of-flight sensor after signal transmission;

[0209] Based on the angle detection information, it is determined whether to control the time-of-flight sensor to perform a second angle adjustment.

[0210] The professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0211] The following is an illustrative description of the embodiments of the present application, but it should be noted that the embodiments of the present application may have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of the present application.

[0212] In order to achieve intelligent experience, more and more projector products are using TOF ranging to achieve intelligent functions such as autofocus and automatic ladder calibration. With the increasing demand for large-angle scenes, the existing TOF solution does not have as good experience at large horizontal angles of 20° to 40° as 0° to 20° (the solution described below only takes the horizontal precision calibration as an example, however, based on the concept of the subordinate solution, it can also be applied to pitch angle calibration). The main reason for the analysis is that the current technical bottleneck of TOF is that when there is a large yaw angle with the measurement plane, the number of received photons will decrease, which in turn affects the accuracy of the measurement data. At this time, there is an error in the device angle obtained according to the measurement data, so when we use the measurement data for focus or ladder calibration, the overall effect will be less than ideal.

[0213] In order to solve the above problems, the following solutions can be adopted:

[0214] First, if Fig.11 As shown, Fig.11 A flow chart of another control method for a time-of-flight sensor provided in an embodiment of the present application. When the device moves or issues a trigger command, the distances L1 (i.e., the first distance), L2 (i.e., the second distance), and L3 (i.e., the third distance) of the three SPAD (Single Photon Avalanche Photodiode) regions can be obtained through TOF, and the FOV angle α between the interlaced SPAD regions can be added. With the auxiliary lines, the yaw angle θ between the projection plane can be calculated using the trigonometric function calculation formula.

[0215] The yaw angle calculation process is as follows:

[0216] The first step is to obtain three distance values ​​L1, L2, and L3 through TOF;

[0217] In the second step, the FOV angle between the two SPAD areas is a fixed value α, which is determined by the TOF itself;

[0218] The third step is to calculate θ using trigonometric functions as follows:

[0219] Auxiliary side: d2 = L12 + L32 - 2xL1xL3xcos(2α)

[0220] Auxiliary angle: β = arcos((L3-L1xcos(2α)) / d)

[0221] Yaw angle: θ = 90° - (α + β)

[0222] After that, perform attitude abnormality judgment: When the actual yaw angle is too large, it will cause abnormal data on one side, so the following abnormality judgment can be made:

[0223] When L1=0 and L2>L3, it is judged that the device is too far to the left, and the correction angle γ=30°;

[0224] When L3=0 and L2>L1, it is judged that the device is too far to the right, and the correction angle γ=-30°;

[0225] When L1, L2, and L3 are all > 0, no correction is required to proceed to the next step (i.e., angle correction judgment).

[0226] Then, angle correction judgment: when the calculated angle is large, different angle corrections are made according to the following set conditions. From the characteristics of TOF, it can be seen that when the projection angle is smaller, the amount of photons received is more, and the measured data is more accurate and stable. Therefore, when the final measured angle meets the requirements of steps L1, L2, and L3 are all > 0, the projection angle is considered to be optimal and no correction is required.

[0227] When -10°≤θ≤10°, no correction is required, γ=0°;

[0228] When -20°≤θ≤-10° or 10°≤θ≤20°, the correction is ±10°, and the correction angle γ=±10°;

[0229] When -30°≤θ≤-20° or 20°≤θ≤30°, the correction is ±20°, and the correction angle γ=±20°;

[0230] When -40°≤θ≤-30° or 30°≤θ≤40°, the correction is ±30°, and the correction angle γ=±30°;

[0231] In addition, in the stupid method, the control logic is as follows:

[0232] Step 1, calculate the current yaw angle θ through the above steps;

[0233] Step 2: Compare the yaw angle with the above conditions to determine the actual correction angle γ;

[0234] Step 3: Control the motor to drive the TOF to rotate, and use the angle sensor to accurately deflect and correct the angle γ;

[0235] Step 4: After the angle correction is completed, measure the yaw angle θ again. When -10°≤θ≤10°, exit the correction and consider the correction completed. Otherwise, continue to determine the correction angle γ.

[0236] At this point, the correction is completed, and the actual yaw angle δ=θ+γ is finally obtained.

[0237] In addition, the structural implementation of this solution is as follows:

[0238] The structural framework description of the structural function realization, the system includes the transfer motherboard PCBA (Printed Circuit Board Assembly), optical mechanical components, TOF-PCBA, TOF-PCBA bracket, TOF-motor, the TOF-PCBA bracket is connected to the TOF motor, outputs the motor signal, and the TOF-PCBA bracket realizes angle rotation under the drive of the TOF motor.

[0239] Link between TOF motor and TOF-PCBA device: The TOF-PCBA bracket is fixed on the motor output shaft. As the motor drives and rotates, the TOF-PCBA realizes angular rotation along with the rotational force of the TOF-PCBA bracket on the output shaft.

[0240] When the machine rotates to a large angle (-40°≤θ≤-10° or 10°≤θ≤40°), TOF measures the angle θ for the first time and determines that the θ value is greater than 10° or less than -10°; through the calibration position of the TOF motor, the output drive step number controls the TOF motor to drive the TOF-PCBA to rotate the angle γ; start the TOF measurement and the angle θ with the projection surface, at this time the θ value range is -10°≤θ≤10°;

[0241] At this time, the product's rotation angle can be accurately obtained to be equal to δ=θ+γ, so as to improve the measurement accuracy of TOF at large angles.

[0242] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effects of the control method of the time-of-flight sensor shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.

[0243] This solution improves the accuracy of measurement data and the projection focus calibration effect by adjusting the TOF attitude. At any yaw angle, the TOF attitude is continuously adjusted to keep the TOF within a precise measurement range, and then the actual yaw angle of the device is calculated to improve the projection focus calibration effect.

[0244] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0245] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A control method for a time-of-flight sensor, characterized in that: The method comprises: Acquiring distance detection information obtained by the time-of-flight sensor after signal transmission; Based on the distance detection information, determining whether to control the time-of-flight sensor to perform a first angle adjustment; In a case where it is determined to control the time-of-flight sensor to perform the first angle adjustment, controlling the time-of-flight sensor to perform the first angle adjustment; After completing the first angle adjustment of the time-of-flight sensor, acquiring angle detection information obtained by the time-of-flight sensor after signal transmission; Based on the angle detection information, it is determined whether to control the time-of-flight sensor to perform a second angle adjustment.

2. The method according to claim 1, characterized in that: The distance detection information includes a first distance, a second distance and a third distance; One end point of the line segments representing the first distance, the second distance and the third distance respectively is the position where the time-of-flight sensor is located, and the other end point is located on the projection plane of the time-of-flight sensor; The line segment representing the first distance is a first boundary of the detection area of ​​the time-of-flight sensor; The line segment representing the third distance is the second boundary of the detection area; The angle of the first angle is equal to the angle of the second angle. The first angle is the angle between the line segment representing the second distance and the line segment representing the first distance. The second angle is the angle between the line segment representing the second distance and the line segment representing the third distance.

3. The method according to claim 2, characterized in that The determining, based on the distance detection information, whether to control the time-of-flight sensor to perform a first angle adjustment includes: When any one of the first distance, the second distance and the third distance is less than or equal to a preset first threshold, determining to control the time-of-flight sensor to perform a first angle adjustment; When all of the first distance, the second distance, and the third distance are greater than the preset first threshold, it is determined that there is no need to control the time-of-flight sensor to perform the first angle adjustment.

4. The method according to claim 3, characterized in that The step of determining to control the time-of-flight sensor to perform a first angle adjustment when any one of the first distance, the second distance, and the third distance is less than or equal to a preset first threshold value includes: When the first distance is less than or equal to the preset first threshold value and the second distance is less than the third distance, determining that the adjustment angle of the time-of-flight sensor is a first angle, so as to control the time-of-flight sensor to perform a first angle adjustment according to the first angle; When the third distance is less than or equal to the preset first threshold value and the second distance is less than the first distance, determining that the adjustment angle of the time-of-flight sensor is a second angle, so as to control the time-of-flight sensor to adjust the first angle according to the second angle; Wherein, the first angle and the second angle are reciprocal numbers of each other.

5. The method according to any one of claims 1 to 4, characterized in that: The angle detection information includes a yaw angle; and The determining, based on the angle detection information, whether to control the time-of-flight sensor to perform a second angle adjustment includes: When the angle represented by the yaw angle belongs to a preset angle range, determining that there is no need to control the time-of-flight sensor to perform a second angle adjustment; When the angle represented by the yaw angle does not belong to the preset angle range, it is determined to control the time-of-flight sensor to perform the second angle adjustment.

6. The method according to claim 5, characterized in that When the angle represented by the yaw angle does not belong to the preset angle range, the flight time sensor is controlled to adjust the second angle in the following manner: Determine an angle range including the angle represented by the yaw angle from a predetermined angle range set, and obtain a target angle range, wherein each angle range in the angle range set corresponds to an adjustment angle; An adjustment angle corresponding to the target angle range is determined to obtain a target adjustment angle, so as to control the time-of-flight sensor to perform a second angle adjustment according to the target adjustment angle.

7. The method according to claim 6, characterized in that After controlling the time-of-flight sensor to perform a second angle adjustment according to the target adjustment angle, the method further includes: The following determination steps are performed: obtaining angle detection information obtained by the time-of-flight sensor after signal transmission; determining whether to control the time-of-flight sensor to perform a second angle adjustment based on the angle detection information; After determining to control the time-of-flight sensor to perform a second angle adjustment, and controlling the time-of-flight sensor to complete the second angle adjustment, performing the determining step; After determining that it is not necessary to control the time-of-flight sensor to perform a second angle adjustment, the time-of-flight sensor is controlled to perform distance measurement.

8. A control device for a time-of-flight sensor, characterized in that: The device comprises: A first acquisition unit, used to acquire distance detection information obtained by the time-of-flight sensor after signal transmission; A first determining unit, configured to determine whether to control the time-of-flight sensor to perform a first angle adjustment based on the distance detection information; An adjusting unit, configured to control the time-of-flight sensor to perform the first angle adjustment if it is determined that the time-of-flight sensor is to be controlled to perform the first angle adjustment; A second acquisition unit, configured to acquire angle detection information obtained by the time-of-flight sensor after signal transmission after completing the first angle adjustment of the time-of-flight sensor; The second determining unit is configured to determine whether to control the time-of-flight sensor to perform a second angle adjustment based on the angle detection information.

9. A projector, characterized in that: The projector comprises: a circuit board, a bracket of the circuit board, a time-of-flight sensor, and a motor of the time-of-flight sensor; The circuit board is used to control the motor according to the method described in any one of claims 1 to 7 to drive the bracket to drive the time-of-flight sensor to adjust the angle.

10. The projector according to claim 9, characterized in that The projector further comprises an angle sensor, and the angle sensor is used to control the time-of-flight sensor to adjust the angle.