Focusing method, projection equipment and storage medium
By obtaining the change angle of the projection light path change of the projection device and determining the target motor position, the automatic focus of the projection device is achieved, the virtual focus problem is solved, and the accuracy of focus is improved.
Patent Information
- Application Number
- CN202311075555.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-24
- Publication Date
- 2025-02-25
AI Technical Summary
In the LCD projection display technology, there is a problem with the projected screen, which causes the resolution of different areas to be unable to be adjusted to the clearest at the same time. Adjusting the optical path angle will lead to the problem of the virtual focus, reducing the accuracy of the focus.
By obtaining the change angle of the projection light path change in the projection light path in the projection device, the target motor position of the focus motor after the projection light path changes, and performing a focus operation to complete the automatic focus.
It improves the focus accuracy of the projection device, solves the virtual focus problem, and ensures that the resolution of the projected image in different areas is the clearest.
Smart Images

Figure CN119520747A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of projection technology, and in particular to a focusing method, a projection device and a storage medium. Background Art
[0002] In order to solve the out-of-focus problem of the projected image in the Liquid Crystal Display (LCD) projection display technology, the resolutions of different areas cannot be adjusted to the clearest at the same time, and the optical path angle can be adjusted. However, after adjusting the optical path angle, the optimal focal length of the projected image changes, which will cause the out-of-focus problem again, resulting in low focusing accuracy. Summary of the invention
[0003] The embodiments of the present application are intended to provide a focusing method, a projection device and a storage medium.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] An embodiment of the present application provides a focusing method, which includes: when the projection light path of the projection device changes, obtaining a change angle of the projection light path of the projection device; determining a target motor position of a focus motor on the projection device after the projection light path changes based on the change angle; and performing a focusing operation on the focus motor based on the target motor position to complete automatic focusing.
[0006] The present application provides a projection device, including:
[0007] An acquisition module, configured to acquire a change angle of the projection light path of the projection device when the projection light path of the projection device changes;
[0008] A determination module, configured to determine, based on the change angle, a target motor position of a focus motor on the projection device after the projection light path changes;
[0009] A focusing module is used to perform a focusing operation on the focusing motor based on the target motor position to complete automatic focusing.
[0010] An embodiment of the present application provides a projection device, the projection device comprising: a processor and a focus motor;
[0011] The processor is used to obtain a change angle of the projection light path of the projection device when the projection light path of the projection device changes; determine a target motor position of the focus motor after the projection light path changes based on the change angle; and perform a focusing operation on the focus motor based on the target motor position to complete automatic focusing.
[0012] An embodiment of the present application provides a computer-readable storage medium, which stores one or more computer programs. The one or more computer programs can be executed by one or more processors to implement the above-mentioned focusing method.
[0013] The embodiment of the present application provides a focusing method, a projection device and a storage medium, the method comprising: when the projection light path of the projection device changes, obtaining the change angle of the projection light path of the projection device; determining the target motor position of the focus motor on the projection device after the projection light path changes based on the change angle; and performing a focusing operation on the focus motor based on the target motor position to complete automatic focusing. The technical solution provided by the present application takes into account the problem of out-of-focus caused by the projection light path change of the projection device, and determines the target motor position of the focus motor on the projection device after the projection light path changes based on the change angle of the projection light path of the projection device to complete focusing, thereby improving the accuracy of focusing. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A flowchart of a focusing method provided in an embodiment of the present application;
[0015] Figure 2 A schematic diagram of the structure of an exemplary side-projection projection device provided in an embodiment of the present application;
[0016] Figure 3 An exemplary process for determining the target motor position provided in an embodiment of the present application is shown in FIG. Figure 1 ;
[0017] Figure 4 A schematic diagram of an exemplary process of determining a second projection distance provided in an embodiment of the present application;
[0018] Figure 5 An exemplary focusing process diagram provided in the embodiment of the present application Figure 1 ;
[0019] Figure 6 An exemplary process for determining the target motor position provided in an embodiment of the present application is shown in FIG. Figure 2 ;
[0020] Figure 7 An exemplary process for determining the target motor position provided in an embodiment of the present application is shown in FIG. Figure 3 ;
[0021] Figure 8 A schematic diagram of an exemplary focusing operation flow provided in an embodiment of the present application;
[0022] Fig. 9 An exemplary focusing process diagram provided in the embodiment of the present application Figure 2 ;
[0023] Fig.10 A schematic diagram of a projection device provided in an embodiment of the present application Figure 1 ;
[0024] Fig.11 A schematic diagram of a projection device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the present application. It is understood that the specific embodiments described herein are only used to explain the related application, rather than to limit the application. It should also be noted that, for the convenience of description, only the parts related to the related application are shown in the drawings.
[0026] The embodiment of the present application provides a focusing method, which is implemented by a projection device, such as Figure 1 As shown, the steps S101 to S103 are included:
[0027] Step S101 : when a projection light path of a projection device changes, obtaining a change angle of the projection light path of the projection device.
[0028] In the embodiment of the present application, the projection device is an electronic device with a focus function. The projection device uses LCD projection display technology for projection. The rotation of the lens or LCD on the projection device will cause the projection light path to change. Figure 2 As shown by Figure 2 It can be seen that at this time, the plane where the projection device is located and the plane where the projection area is located are actually intersecting, and are not parallel, that is, the projection device appears side projection. Since the resolution of different areas cannot be adjusted to the clearest state at the same time after the side projection, a defocus problem is caused. At this time, the projection device will adjust the light path angle to solve the defocus problem, but this will make the accuracy of autofocus lower, that is, the optimal focal length of the projected picture has changed, and thus focusing is required to adjust to the optimal focal length. In this way, the projection device can obtain the changing angle of the projection light path of the projection device, and then focus based on the changing angle to improve the focusing accuracy.
[0029] Step S102: determining a target motor position of a focus motor on the projection device after the projection light path changes based on the change angle.
[0030] In an embodiment of the present application, when the projection light path of the projection device changes, the projection device needs to determine the target motor position of the focus motor on the projection device after the projection light path changes based on the change angle to perform focusing.
[0031] Step S103: performing a focusing operation on the focus motor based on the target motor position to complete automatic focusing.
[0032] In an embodiment of the present application, after obtaining the target motor position, the projection device adjusts the focus motor based on the target motor position, thereby completing automatic focusing.
[0033] Compared with the prior art, which did not take into account the problem of low focusing accuracy caused by the defocus problem caused by adjusting the light path change, the present application takes into account the defocus problem caused by the projection light path change of the projection device, and determines the target motor position of the focusing motor on the projection device after the projection light path changes based on the change angle of the projection light path of the projection device to complete the focusing, thereby improving the focusing accuracy.
[0034] In some embodiments, the projecting device determines the target motor position of the focus motor on the projecting device after the projection light path changes based on the change angle in step S102, which may include the following steps S301 to S303:
[0035] Step S301: Acquire angle data between the projection device and the projection area, and acquire a first projection distance between the projection device and the center point of the projection area through a distance measuring sensor.
[0036] In an embodiment of the present application, the projection device can obtain angle data between the projection device and the projection area, and obtain a first projection distance between the projection device and the center point of the projection area through a distance measuring sensor, such as Figure 2 The distance measuring sensor may be a sensor installed on the projection device, or may be a distance measuring sensor external to the projection device. The specific relationship between the distance measuring sensor and the projection device is not limited herein.
[0037] Step S302: using a preset projection distance function relationship, based on the change angle, the angle data, and the first projection distance, determine a second projection distance between the projection device and the center point of the projection area.
[0038] In the embodiment of the present application, after acquiring the change angle, angle data, and the first projection distance, the projection device can use the preset projection distance function relationship to calculate the second projection distance between the projection device and the center point of the projection area. The preset projection distance function relationship is shown in formula (1) as an example:
[0039] D=d*sin(α) / (sin(π-α-β)) (1);
[0040] Wherein, D is the second projection distance, α is the angle data, β is the first change angle, and d is the first projection distance.
[0041] Step S303: using the preset functional relationship between the projection distance and the optimal motor position, determine the target motor position based on the second projection distance.
[0042] In an embodiment of the present application, after acquiring the second projection distance, the projection device can determine the target motor position based on the preset projection distance and the optimal motor position functional relationship. The preset projection distance and the optimal motor position functional relationship (distance and focus motor model) is shown in formula (2):
[0043] m2=f(D) (2);
[0044] Wherein, m2 is the target motor position, and D is the second projection distance.
[0045] In some embodiments, the angle data includes a deflection angle or an elevation angle, and the projection device may perform the above step S302 by the following steps: using a preset projection distance function relationship, based on the change angle, the deflection angle or the elevation angle, and the first projection distance, determine the second projection distance.
[0046] For example, the deflection angle is Figure 2 The calculation formula of the deflection angle is shown in formula (3):
[0047] α= α1+π / 2 (3);
[0048] Wherein, α is the deflection angle, and α1 is the angle between the projection device and the wall (projection area) measured by the projection device through the angle measurement sensor (angle measurement module). Of course, α in formula (1) can also be an elevation angle.
[0049] In some embodiments, the angle data includes a deflection angle and an elevation angle, and the projection device may perform the above step S302 by including the following steps S401 to S404:
[0050] Step S401: determine any one of the deflection angle and the elevation angle as a first angle, and determine the other angle as a second angle.
[0051] In the embodiment of the present application, if the angle data acquired by the projection device includes both the deflection angle and the elevation angle, at this time, any one of the deflection angle and the elevation angle is determined as the first angle, and the other angle is determined as the second angle. That is, if the deflection angle is taken as the first angle, the elevation angle is the second angle; if the elevation angle is the first angle, the deflection angle is the second angle.
[0052] Step S402: using a preset projection distance function relationship, based on the change angle, the first angle, and the first projection distance, determine a third projection distance between the projection device and the center point of the projection area.
[0053] In the embodiment of the present application, after determining the first angle, the change angle, and the first projection distance, the projection device can determine the third projection distance using formula (1).
[0054] Step S403: using a preset projection distance function relationship, based on the first change angle, the second angle, and the third projection distance, determine a second projection distance between the projection device and the center point of the projection area.
[0055] In an embodiment of the present application, after determining the third projection distance, the projection device uses the third projection distance as d in formula (1) to calculate the second projection distance.
[0056] In some embodiments, before executing the above step S103, the projection device may further execute the following steps: obtaining an initial motor position of a focus motor of the projection device before the projection optical path changes.
[0057] In the embodiment of the present application, since the focus motor needs to be focused according to the initial motor position, the initial motor position of the focus motor before the projection optical path changes can be obtained in advance.
[0058] Exemplarily, the method for the projection device to obtain the initial motor position of the focus motor can be: using the first projection distance obtained in the above step S301, substituting it into the preset projection distance and the optimal motor position function relationship, that is, formula (2), the initial motor position can be solved. In this way, the projection device can focus the projection device once based on the solved initial motor position, that is, the initial motor position is the motor position of the focus motor of the projection device before the projection light path changes.
[0059] Figure 5 An exemplary focusing process diagram provided in the embodiment of the present application Figure 1 The projection device is installed with or externally connected to a distance sensor (distance measuring module) and an angle measuring sensor (angle measuring module), wherein the distance measuring module is used to measure the distance between the projection device and the center point of the projection area, and the angle measuring module is used to measure the rotation angle (optical path change angle) of the lens or LCD on the projection device. Figure 5 As shown, the exemplary focusing implementation method includes the following steps S501 to S505:
[0060] Step S501: When the projection device meets the focus triggering condition (such as detecting that the projection device is turned on, moved, or in side projection), first complete an automatic focus and record the current focus motor position m1;
[0061] Here, after the projection device meets the focus triggering conditions, it will first complete an automatic focus based on active ranging. Specifically, after the projection distance (first projection distance) is measured by the ranging module (ranging sensor), the optimal motor data (initial motor position) can be directly obtained based on the projection distance, and the focus motor is driven to rotate, completing an automatic focus, and recording the position m1 of the focus motor on the current projection device.
[0062] It should be noted that the projection device here also measures the angle data (deflection angle or elevation angle) between the current projection device and the projection surface (projection area) through the projection angle measurement module.
[0063] Step S502: when the projection light path of the projection device changes, obtaining the angle data of the current rotation of the projection device;
[0064] Here, since the angle of the projection light path changes after the side projection, the projection device will obtain the light path change angle (change angle) of the current rotation of the projection device through the angle measurement module.
[0065] Step S503, determining the optimal number of motor steps m2 (target motor position) after the optical path changes according to the above angle data and the optical path change angle;
[0066] Here, since the change in the projection light path angle will cause the entire projection image to shift toward the far end, the autofocus module (projection device) needs to reposition the distance to the center of the offset image (the second projection distance) and the optimal motor position (target motor position m2) based on the angle data and the light path change angle when the projection light path changes.
[0067] Step S504, driving the focus motor to rotate Md (m2-m1) steps to complete automatic focusing;
[0068] Here, the projection device first moves the motor step number Md between the target motor position m2 and the initial motor position m1, and then drives the focus motor to complete the automatic focusing based on the moving motor step number.
[0069] Step S505: When the projection device is moved again, the focusing is triggered again, and the above steps S501 to S504 are executed cyclically.
[0070] Here, if the mobile device moves again, the focus will be triggered again, that is, autofocus will be performed once, and then focus will be performed again based on the changed angle.
[0071] In some embodiments, before executing step S101, the projection device may further execute the following steps: when the projection device moves and completes autofocus, obtain the initial motor position of the focus motor on the projection device and the angle data between the projection device and the projection area.
[0072] In the embodiments of the present application, the movement of the projection device here can be any direction of movement such as front, back, left, or right. After the projection device moves, the distance between the projection device and the projection area will change. At this time, the projection device needs to perform autofocus first, and then record the initial motor position of the focus motor after autofocus, as well as the angle data between the projection device and the projection area. In the case that the projection light path of the projection device changes, the projection device can be refocused in combination with the changed angle and the initial motor position.
[0073] In some embodiments, the projection device executes the steps of: when the projection device moves and completes autofocus, obtaining the initial motor position of the focus motor on the projection device and the angle data between the projection device and the projection area, which may include the following steps: capturing the projection picture projected by the projection device to the projection area through a camera; performing an autofocus operation based on the projection picture, and determining the motor position of the focus motor after focusing as the initial motor position.
[0074] In the embodiments of the present application, if the projection device is not equipped with a distance measuring sensor or cannot be externally connected to a distance measuring sensor, a projection image projected by the projection device to the projection area can be captured by a camera.
[0075] In the embodiment of the present application, the projection device performs an autofocus operation according to the projection image captured by the camera, and determines the motor position of the focus motor after focusing as the initial motor position. The technical solution of autofocusing by capturing the projection image by the camera is similar to the prior art and will not be repeated here.
[0076] In some embodiments, the angle data includes a deflection angle or an elevation angle, and the projecting device may perform step S101 to obtain the change angle of the projection light path of the projecting device, including the following steps S601 to S602:
[0077] Step S601: using the conversion relationship between the preset angle and the light path change angle, based on the elevation angle or the elevation angle, determine the change angle of the projection light path of the projection device.
[0078] In the embodiment of the present application, if the angle data acquired by the projection device only includes the deflection angle or the elevation angle, the change angle of the projection light path of the projection device can be determined based on the deflection angle or the elevation angle according to the conversion relationship between the preset angle and the light path change angle. The exemplary conversion relationship between the preset angle and the light path change angle is shown in formula (4):
[0079] β = k1*α (4);
[0080] Wherein, k1 is the conversion coefficient between the rotation angle (deflection angle or elevation angle) of the projection device and the optical path change angle (optical path change angle), and α is the elevation angle or deflection angle.
[0081] Accordingly, the projection device executing step S102 may include the following steps S602:
[0082] Step S602: Determine the target motor position based on the initial motor position and the change angle by using the preset focus motor step function relationship.
[0083] In an embodiment of the present application, when the projection device determines the change angle based on the angle data, the initial motor position and the change angle are substituted into the preset focus motor step function relationship to solve the target motor position. The preset focus motor step function relationship is shown in formula (5):
[0084] m2= f(m1,β) (5);
[0085] Among them, m1 is the initial motor position and β is the change angle.
[0086] In some embodiments, the angle data includes a deflection angle and an elevation angle, and the projecting device may perform step S101 to obtain the change angle of the projection light path of the projecting device, including the following steps S701 to S702:
[0087] Step S701: determine any one of the deflection angle and the elevation angle as a third angle, and determine the other angle as a fourth angle.
[0088] In the embodiment of the present application, if the angle data acquired by the projection device includes both the deflection angle and the elevation angle, at this time, any one of the deflection angle and the elevation angle is determined as the third angle, and the other angle is determined as the fourth angle. That is, if the deflection angle is taken as the third angle, the elevation angle is the fourth angle; if the elevation angle is the third angle, the deflection angle is the fourth angle.
[0089] Step S702: using the conversion relationship between the preset angle and the light path change angle, based on the third angle and the fourth angle respectively, determine a first change angle and a second change angle corresponding to the change in the projection light path of the projection device.
[0090] In an embodiment of the present application, the projection device substitutes the third angle into the conversion relationship between the preset angle and the light path change angle, that is, formula (4) can obtain the first change angle, and substitutes the fourth angle into the conversion relationship between the preset angle and the light path change angle, that is, formula (4) can obtain the second change angle.
[0091] Accordingly, the projection device may perform step S102 by including the following steps S703 to S704:
[0092] Step S703: Determine the first motor position based on the first change angle and the initial motor position by using a preset focus motor step function relationship.
[0093] In the embodiment of the present application, the projection device substitutes the first change angle β and the initial motor position m1 into the preset focus motor step function relationship, that is, formula (5), and the first motor position can be solved.
[0094] Step S704: Determine the target motor position based on the second change angle and the first motor position by using the preset focus motor step function relationship.
[0095] In the embodiment of the present application, after obtaining the first motor position, the projection device substitutes the first motor position as m1 and the second change angle β into the preset focus motor step function relationship, that is, formula (5), to solve the target motor position.
[0096] In some embodiments, the above step S103 may include the following steps S801 to S802:
[0097] Step S801: The difference between the target motor position and the initial motor position is determined as the number of motor steps; the moving direction of the focus motor is consistent with the focusing direction.
[0098] In the embodiment of the present application, after obtaining the target motor position, the projection device determines the difference between the target motor position and the initial motor position as the number of moving motor steps. The specific determination formula is shown in formula (6):
[0099] Md=m2-m1 (6);
[0100] Among them, Md is the number of moving motor steps, m2 is the target motor position, and m1 is the initial motor position.
[0101] In the embodiments of the present application, the moving direction of the focus motor is limited to the focusing direction in order to ensure that the direction of movement of the motor after autofocusing is the telephoto direction. Exemplarily, the consistency of the moving direction and the focusing direction needs to meet the following two points: First, during optical focusing, the design ensures that the driving direction (moving direction) of the focus motor is consistent with the focusing direction. There are two situations. In the first situation, when the focus motor rotates forward, the projection focal length becomes larger; in the second situation, when the motor rotates backward, the projection focal length becomes larger. Then, based on the first point, the second point is, for the first case: when the motor rotates forward, the projection focal length becomes larger, and when the autofocus is triggered and the process ends, the motor stops rotating forward, for example, forward,..., backward, forward, or backward,..., backward, forward, that is, it stops at the end to ensure forward rotation; for the second case: when the motor rotates backward, the projection focal length becomes larger, and when the autofocus is triggered and the process ends, the motor stops rotating backward, for example, backward,..., forward, backward, or forward,..., forward, backward, that is, it stops at the end to ensure backward rotation.
[0102] Step S802: Move the focus motor from the initial motor position to the far focus by the number of motor steps to the target motor position.
[0103] In an embodiment of the present application, if the moving direction of the focus motor is consistent with the focusing direction, then when the projection device records the initial motor position m1, the direction of the focus motor is the number of motor steps moving toward the far focus direction, that is, the number of motor steps Md at this point is a value greater than 0. Therefore, it is only necessary to rotate the focus motor Md steps toward the far focus direction. In this way, there is no need to consider the empty stroke problem of the focusing structure, and a real-time imperceptible effect can be achieved.
[0104] Fig. 9 An exemplary focusing process diagram provided in the embodiment of the present application Figure 2 The projection device is installed with a camera or connected to an external camera, and the camera is used to collect the projection image projected by the projection device to the projection area. Fig. 9 As shown, the method includes steps S901 to S905:
[0105] Step S901: When the projection device meets the focus triggering condition (such as detecting that the projection device is turned on, moved, or in side projection), first complete an automatic focus and record the current focus motor position m1;
[0106] Here, after the focus triggering condition is met, the projection device will first complete a focus based on the projection image captured by the camera, and record the position m1 of the focus motor on the current projection device.
[0107] It should be noted that the projection device here also measures the angle data (deflection angle or elevation angle) between the current projection device and the projection surface (projection area) through the projection angle measurement module.
[0108] Step S902: when the projection light path of the projection device changes, obtain the angle data of the current rotation of the projection device;
[0109] Here, when the projection light path changes, the projection device will determine the angle data of the current rotation of the projection device (light path change angle) based on the acquired angle data between the current projection device and the projection surface.
[0110] Step S903, determining the optimal number of motor steps m2 (target motor position) after the optical path changes according to the optical path change angle;
[0111] Here, the projection device determines the optimal number of motor steps m2 (target motor position) after the optical path changes based on the initial motor position m1 and the determined angle data of the current rotation of the projection device.
[0112] Step S904, driving the focus motor to rotate Md (m2-m1) steps to complete automatic focusing;
[0113] Here, the projection device first moves the motor step number Md between the target motor position m2 and the initial motor position m1, and then drives the focus motor to complete the automatic focusing based on the moving motor step number.
[0114] Step S905: When the projection device is moved again, the focusing is triggered again, and the above steps S901 to S904 are executed cyclically.
[0115] Here, if the mobile device moves again, the focus will be triggered again, that is, autofocus will be performed once, and then focus will be performed again based on the changed angle.
[0116] The embodiment of the present application provides a focusing method, the method comprising: when the projection light path of the projection device changes, obtaining the change angle of the projection light path of the projection device; determining the target motor position of the focus motor on the projection device after the projection light path changes based on the change angle; and performing a focusing operation on the focus motor based on the target motor position to complete automatic focusing. The focusing method provided by the present application takes into account the problem of out-of-focus caused by the projection light path change of the projection device, and determines the target motor position of the focus motor on the projection device after the projection light path changes based on the change angle of the projection light path of the projection device to complete focusing, thereby improving the accuracy of focusing.
[0117] The present application embodiment provides a projection device, such as Fig.10 As shown, including:
[0118] An acquisition module 1001 is used to acquire a change angle of the projection light path of the projection device when the projection light path of the projection device changes;
[0119] A determination module 1002 is used to determine a target motor position of a focus motor on a projection device after a projection light path changes based on a change angle;
[0120] The focusing module 1003 is used to perform a focusing operation on the focusing motor based on the target motor position to complete automatic focusing.
[0121] In one embodiment of the present application, the determination module 1002 is also used to obtain the angle data between the projection device and the projection area, and to obtain the first projection distance between the projection device and the center point of the projection area through a ranging sensor; using a preset projection distance function relationship, based on the change angle, the angle data, and the first projection distance, determine the second projection distance between the projection device and the center point of the projection area; using a preset projection distance and an optimal motor position function relationship, determine the target motor position based on the second projection distance.
[0122] In one embodiment of the present application, the angle data includes a deflection angle or an elevation angle, and the determination module 1002 is further used to determine the second projection distance based on the change angle, the deflection angle or the elevation angle, and the first projection distance by utilizing the preset projection distance function relationship.
[0123] In one embodiment of the present application, the angle data includes a deflection angle and an elevation angle, and the determination module 1002 is also used to determine any one of the deflection angle and the elevation angle as a first angle, and the other angle as a second angle; using a preset projection distance function relationship, based on the change angle, the first angle, and the first projection distance, determine the third projection distance between the projection device and the center point of the projection area; using a preset projection distance function relationship, based on the change angle, the second angle, and the third projection distance, determine the second projection distance between the projection device and the center point of the projection area.
[0124] In an embodiment of the present application, the acquisition module 1001 is further used to acquire the initial motor position of the focus motor of the projection device before the projection optical path changes.
[0125] In one embodiment of the present application, the acquisition module 1001 is also used to acquire the initial motor position of the focus motor and the angle data between the projection device and the projection area when the projection device moves and completes autofocus.
[0126] In one embodiment of the present application, the angle data includes a deflection angle or an elevation angle, and the determination module 1002 is also used to use a preset angle and an optical path change angle conversion relationship to determine a change angle of the projection optical path of the projection device based on the elevation angle or the elevation angle; and use a preset focus motor step function relationship to determine the target motor position based on the initial motor position and the change angle.
[0127] In one embodiment of the present application, the angle data includes a deflection angle and an elevation angle, and the determination module 1002 is also used to determine any one of the deflection angle and the elevation angle as a third angle, and the other angle as a fourth angle; using a preset angle and an optical path change angle conversion relationship, based on the third angle and the fourth angle respectively, determine a first change angle and a second change angle corresponding to the change in the projection optical path of the projection device; using a preset focus motor step function relationship, based on the first change angle and the initial motor position, determine the first motor position; using a preset focus motor step function relationship, based on the second change angle and the first motor position, determine the target motor position.
[0128] In one embodiment of the present application, the focusing module 1003 is also used to determine the difference between the target motor position and the initial motor position as the moving motor step number; the moving direction of the focus motor is consistent with the focusing direction; and the focus motor is moved from the initial motor position to the far focus by the moving motor step number to the target motor position.
[0129] The present application embodiment provides a projection device, such as Fig.11 As shown, the projection device includes: a processor 1101 and a focus motor 1102;
[0130] Processor 1101 is used to obtain a change angle of the projection light path of the projection device when the projection light path of the projection device changes; determine a target motor position of the focus motor 1102 after the projection light path changes based on the change angle; and perform a focusing operation on the focus motor 1102 based on the target motor position to complete automatic focusing.
[0131] The embodiment of the present application provides a projection device, which, when the projection light path of the projection device changes, obtains the change angle of the projection light path of the projection device; determines the target motor position of the focus motor on the projection device after the projection light path changes based on the change angle; and performs a focusing operation on the focus motor based on the target motor position to complete automatic focusing. The projection device provided by the present application takes into account the problem of out-of-focus caused by the projection light path change of the projection device, and determines the target motor position of the focus motor on the projection device after the projection light path changes based on the change angle of the projection light path of the projection device to complete focusing, thereby improving the accuracy of focusing.
[0132] An embodiment of the present application provides a computer-readable storage medium, which stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement the above-mentioned focusing method. The computer-readable storage medium can be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), a flash memory (flash memory), a hard disk (Hard Disk Drive, HDD) or a solid-state drive (Solid-State Drive, SSD); or it can be a respective device including one or any combination of the above-mentioned memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.
[0133] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0134] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0135] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0137] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A focusing method, characterized in that: Applied to a projection device, the method comprises: When a projection light path of the projection device changes, obtaining a change angle of the projection light path of the projection device; Determining a target motor position of a focus motor on the projection device after the projection light path changes based on the change angle; A focusing operation is performed on the focus motor based on the target motor position to achieve auto focusing.
2. The method according to claim 1, characterized in that The step of determining the target motor position of the focus motor on the projection device after the projection light path changes based on the change angle includes: Acquire angle data between the projection device and the projection area, and acquire a first projection distance between the projection device and the center point of the projection area through a distance measuring sensor; Determine a second projection distance between the projection device and the center point of the projection area based on the change angle, the angle data, and the first projection distance by using a preset projection distance function relationship; The target motor position is determined based on the second projection distance by using a preset functional relationship between the projection distance and the optimal motor position.
3. The method according to claim 2, characterized in that The angle data includes a deflection angle or an elevation angle, and the determining, based on the change angle, the angle data, and the first projection distance, of a second projection distance between the projection device and the center point of the projection area by using a preset projection distance function relationship includes: The second projection distance is determined by using the preset projection distance function relationship based on the change angle, the deflection angle or the elevation angle, and the first projection distance.
4. The method according to claim 2, characterized in that: The angle data includes a deflection angle and an elevation angle, and the determining, based on the change angle, the angle data, and the first projection distance, of a second projection distance between the projection device and the center point of the projection area by using a preset projection distance function relationship includes: Determine any one of the deflection angle and the elevation angle as a first angle, and determine the other angle as a second angle; Determine a third projection distance between the projection device and the center point of the projection area based on the change angle, the first angle, and the first projection distance by using a preset projection distance function relationship; The second projection distance is determined by using the preset projection distance function relationship based on the change angle, the second angle, and the third projection distance.
5. The method according to claim 2, characterized in that: Before performing a focusing operation on the focus motor based on the target motor position to complete the autofocus, the method further includes: An initial motor position of the focus motor of the projection device before the projection optical path changes is obtained.
6. The method according to claim 1, characterized in that In the case where the projection light path of the projection device changes, before obtaining the change angle of the projection light path of the projection device, the method further includes: When the projection device moves and completes automatic focusing, an initial motor position of the focus motor and angle data between the projection device and a projection area are acquired.
7. The method according to claim 6, wherein the angle data comprises a deflection angle or an elevation angle, and the step of obtaining the change angle of the projection light path of the projection device comprises: Using the conversion relationship between the preset angle and the light path change angle, based on the deflection angle or the elevation angle, determine the change angle of the projection light path of the projection device; Accordingly, the step of determining the target motor position of the focus motor on the projection device after the projection light path changes based on the change angle includes: The target motor position is determined based on the initial motor position and the change angle by using a preset focus motor step function relationship.
8. The method according to claim 6, characterized in that The angle data includes a deflection angle and an elevation angle, and obtaining the change angle of the projection light path of the projection device includes: Determine any one of the deflection angle and the elevation angle as a third angle, and determine the other angle as a fourth angle; Using the conversion relationship between the preset angle and the light path change angle, determine the first change angle and the second change angle corresponding to the change of the projection light path of the projection device based on the third angle and the fourth angle respectively; Accordingly, the step of determining the target motor position of the focus motor on the projection device after the projection light path changes based on the change angle includes: Determine a first motor position based on the first change angle and the initial motor position by using the preset focus motor step function relationship; The target motor position is determined based on the preset focus motor step function relationship and the second change angle and the first motor position.
9. The method according to claim 5 or 6, characterized in that: The performing a focusing operation on the focus motor based on the target motor position to complete the automatic focusing comprises: The difference between the target motor position and the initial motor position is determined as the number of motor steps; the moving direction of the focus motor is consistent with the focusing direction; The focus motor is moved from the initial motor position toward the far focus by the movement motor number of steps to the target motor position.
10. A projection device, characterized in that: include: An acquisition module, configured to acquire a change angle of the projection light path of the projection device when the projection light path of the projection device changes; A determination module, configured to determine, based on the change angle, a target motor position of a focus motor on the projection device after the projection light path changes; A focusing module is used to perform a focusing operation on the focusing motor based on the target motor position to complete automatic focusing.
11. A projection device, characterized in that: The projection device comprises: a processor and a focus motor; The processor is used to obtain a change angle of the projection light path of the projection device when the projection light path of the projection device changes; determine a target motor position of the focus motor after the projection light path changes based on the change angle; and perform a focusing operation on the focus motor based on the target motor position to complete automatic focusing.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement the focusing method according to any one of claims 1 to 9.