Off-focus compensation method, projection equipment and storage medium

By obtaining the cumulative number of motors on the projection equipment and determining the target motor for running-come compensation, the problem of single compensation method in the existing technology is solved, the performance of projection equipment in the case of thermal running-come is improved, and a higher choice is achieved Sex and flexibility.

CN119110041APending Publication Date: 2024-12-10CHENGDU XGIMI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310682852.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-09
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

When dealing with the thermal running-focus phenomenon in the projection equipment, the compensation method is single and the flexibility is poor, resulting in blurred projected images and changes in size, affecting the user experience.

Method used

By obtaining the cumulative steps of the mobile motor and the focus motor on the projection device, determine the appropriate target motor for the running-come compensation operation, use the target motor to perform the running-come compensation, considering the state of the mobile motor and the focus motor to achieve diversification and High flexibility compensation.

Benefits of technology

It improves the compensation selectivity and flexibility of the projection equipment in the case of thermal running-focus, ensures the clarity and stability of the projected image, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119110041A_ABST
    Figure CN119110041A_ABST
Patent Text Reader

Abstract

The invention discloses an out-of-focus compensation method, projection equipment and a storage medium, and the method comprises the steps: obtaining the accumulated step number of a moving motor on the projection equipment and the accumulated step number of a focusing motor under the condition that the current projection image projected by the projection equipment is determined to have out-of-focus; determining a target motor from the moving motor and the focus motor based on the accumulated step number of the focus motor and the accumulated step number of the moving motor; and executing out-of-focus compensation operation on the projection equipment by using the target motor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of projection technology, and in particular to a focus deviation compensation method, a projection device and a storage medium. Background Art

[0002] Thermal focus shift (thermal defocus) phenomenon commonly occurs in projection appliances. Once thermal focus shift occurs in projection appliances, it will generally cause the projection image to be blurred, and the image will change in size due to the influence of the optical projection ratio, resulting in poor projection effect and affecting the user experience.

[0003] In view of the above-mentioned thermal focus deviation phenomenon, the existing technology can only use the focus motor in the projection appliance to compensate for the focus deviation, which has relatively limited options and poor flexibility. Summary of the invention

[0004] The embodiments of the present application are intended to provide a focus deviation compensation method, a projection device, and a storage medium.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] An embodiment of the present application provides a method for compensating for defocus, the method comprising: when it is determined that a current projection image projected by the projection device is out of focus, obtaining the cumulative number of steps of a moving motor and a cumulative number of steps of a focusing motor on the projection device; based on the cumulative number of steps of the focusing motor and the cumulative number of steps of the moving motor, determining a target motor from the moving motor and the focusing motor; and performing a defocus compensation operation on the projection device using the target motor.

[0007] The present application provides a projection device, including:

[0008] An acquisition module, configured to acquire the cumulative number of steps of the moving motor and the focusing motor on the projection device when it is determined that the current projection picture projected by the projection device is out of focus;

[0009] a determination module, configured to determine a target motor from among the moving motor and the focus motor based on the accumulated number of steps of the focus motor and the accumulated number of steps of the moving motor;

[0010] An execution module is used to use the target motor to perform a focus compensation operation on the projection device.

[0011] An embodiment of the present application provides a projection device, including: a processor, a memory and a communication bus; the communication bus is used to realize a communication connection between the processor and the memory; the processor is used to execute a computer program stored in the memory to realize the above-mentioned focus deviation compensation method.

[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 defocus compensation method.

[0013] The embodiment of the present application provides a method for compensating for defocusing, a projection device, and a storage medium. The method includes: when it is determined that the current projection screen projected by the projection device is out of focus, obtaining the cumulative number of steps of the moving motor and the cumulative number of steps of the focus motor on the projection device; based on the cumulative number of steps of the focus motor and the cumulative number of steps of the moving motor, determining a target motor from the moving motor and the focus motor; and performing a defocusing compensation operation on the projection device using the target motor. The technical solution provided by the present application, when the projection device is out of focus due to thermal defocusing, takes into account the cumulative number of steps of the moving motor and the focus motor, and then determines a suitable motor based on the cumulative number of steps of the moving motor and the focus motor to implement the defocusing compensation operation on the projection device, so that the options are diverse and the flexibility is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A schematic diagram of a flow chart of a method for compensating for defocusing provided in an embodiment of the present application;

[0015] Figure 2 A schematic diagram of an exemplary process of determining whether a projection image is out of focus provided in an embodiment of the present application;

[0016] Figure 3 An exemplary process diagram of determining a target motor provided in an embodiment of the present application Figure 1 ;

[0017] Figure 4 An exemplary process diagram of determining a target motor provided in an embodiment of the present application Figure 2 ;

[0018] Figure 5 A schematic diagram of a flow chart of an exemplary target motor performing focus deviation compensation provided in an embodiment of the present application;

[0019] Figure 6 A schematic diagram of an exemplary process of focus deviation compensation provided in an embodiment of the present application;

[0020] FIG. 7( a) is a schematic diagram of an exemplary structure of an external expansion of a projection image provided in an embodiment of the present application;

[0021] FIG. 7( b ) is a schematic diagram of an exemplary structure of a retracted projection image provided in an embodiment of the present application;

[0022] Figure 8 A schematic diagram of a projection device provided in an embodiment of the present application Figure 1 ;

[0023] Fig. 9 A schematic diagram of a projection device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0024] The technical solution in the present application will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present application. It is to be 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 ease of description, only the parts related to the related application are shown in the accompanying drawings.

[0025] The present application embodiment provides a method for compensating for focus deviation, which is implemented by a projection device, such as Figure 1 As shown, the steps S101 to S103 are included:

[0026] Step S101: when it is determined that the current projection image projected by the projection device is out of focus, the accumulated number of steps of the moving motor and the accumulated number of steps of the focus motor on the projection device are obtained.

[0027] In an embodiment of the present application, the projection device is an electronic device with a focus compensation function, the moving motor can drive the projection device to move in the front-to-back direction to adjust the object distance, and the focusing motor can adjust the optical image distance. The cumulative number of steps of the moving motor is the cumulative number of steps of the moving motor at the current moment, which is used to characterize the current state of the moving motor; the cumulative number of steps of the focusing motor is also the cumulative number of steps of the focusing motor at the current moment, which is used to characterize the current state of the focusing motor.

[0028] Step S102 : determining a target motor from among the moving motor and the focus motor based on the cumulative number of steps of the focus motor and the cumulative number of steps of the moving motor.

[0029] In an embodiment of the present application, after obtaining the cumulative steps of the focus motor and the cumulative steps of the moving motor, the projection device can determine a suitable target motor for defocus compensation from the moving motor and the focus motor based on the cumulative steps of the focus motor that characterizes the state of the focus motor and the cumulative steps of the moving motor that characterizes the state of the moving motor.

[0030] Step S103: utilizing the target motor to perform a focus compensation operation on the projection device.

[0031] In the embodiment of the present application, after the projection device determines the target motor, the target motor can be used to perform a focus compensation operation on the projection device.

[0032] Compared with the prior art, the compensation for focus deviation generally uses a focus motor to perform focal length compensation without considering the compensation of the mobile motor, which makes the focus deviation compensation method too simple and less flexible.

[0033] However, the present application determines the target motor based on the motor states of the moving motor and the focusing motor, and thus performs focus deviation compensation based on the target motor, thereby making the focus deviation compensation process diversified and more flexible.

[0034] In some embodiments, the projecting device determines that the current projection image projected by the projecting device is out of focus, which may include the following steps S201 to S204:

[0035] Step S201: photographing the initial projection image projected by the projection device when it is turned on, and the current projection image projected at the current moment, through the camera.

[0036] In an embodiment of the present application, the camera can be a camera installed on the projection device or an external camera. The projection device uses the camera to shoot the projection picture in the camera shooting space when the device is turned on, and determines the shot projection picture as the initial projection picture. The camera is also used to shoot the projection picture projected by the projection device at the current moment to obtain the current projection picture.

[0037] Step S202: determine the first position coordinates of the vertices of the initial projection image in the camera shooting space, and the second position coordinates of the vertices of the current projection image in the camera shooting space.

[0038] In the embodiment of the present application, the projection device determines the position coordinates of the vertices of the initial projection screen in the camera shooting space to obtain the first position coordinates, and determines the position coordinates of the vertices of the current projection screen in the camera shooting space to obtain the second position coordinates. For example, the projection screen is generally a rectangle with four vertices. Then, the first position coordinates and the second position coordinates obtained by the projection device at this time are actually the coordinates of the four vertices of the projection screen, that is, the first position coordinates: (x 11 ,y 11 )、(x 12 ,y 12 )、(x 13 ,y 13 ), and (x 14 ,y 14 ), and the second position coordinates: (x 21 ,y 21 )、(x 22 ,y 22 )、(x 23 ,y 23 ), and (x 24 ,y 24). Among them, if (x 11 ,y 11 ) corresponds to the vertex in the upper left corner of the initial projection screen, then (x 21 ,y 21 ) corresponds to the vertex in the upper left corner of the current projection screen, that is, (x 11 ,y 11 ) and (x 21 ,y 21 ) have the same vertex position in the corresponding projection image. 12 ,y 12 ) corresponds to (x 22 ,y 22 ),·······,(x 14 ,y 14 ) corresponds to (x 24 ,y 24 ).

[0039] Step S203: determining the screen offset between the initial projection screen and the current projection screen based on the first position coordinates and the second position coordinates.

[0040] In the embodiment of the present application, the first position coordinates and the second position coordinates determined by the projection device are both position coordinates in the camera shooting space, that is, the coordinate system is the same, so the offset determined based on the first position coordinates and the second position coordinates in the same coordinate system is meaningful. Of course, if the mobile motor drives the projection device to move forward and backward during the process from the power-on moment to the current moment, then the first position coordinates and the second position coordinates need to be mapped to the same coordinate.

[0041] Exemplarily, the step of determining the screen offset may be: sequentially calculating the offsets of corresponding positions in the first position coordinates and the second position coordinates, for example, calculating (x 11 ,y 11 ) and (x 21 ,y 21 )'s European difference,,·······,(x 14 ,y 14 ) and (x 24 ,y 24 ), and averaging the calculated Euclidean differences to obtain the picture offset. The Euclidean difference is determined based on the Euclidean distance formula.

[0042] Step S204: When the picture offset is greater than or equal to the preset offset, it is determined that the current projected picture is out of focus.

[0043] In an embodiment of the present application, the preset offset may be 2 pixels, 2.5 pixels, or any other arbitrary value. The specific preset offset may be set according to actual needs and application scenarios, and the present application does not impose any limitation on this.

[0044] In an embodiment of the present application, if the picture offset is greater than or equal to a preset offset, it is determined that the current projection picture is out of focus; if the picture offset is less than the preset offset, it is determined that the current projection picture is not out of focus.

[0045] Compared with the prior art method of determining focus deviation based on the projection image in the optical-mechanical space, that is, the unprojected image, the present application does not need to obtain the projection image in the optical-mechanical space, but only needs to calculate the position difference of the projection image taken by the camera, which can improve the accuracy and efficiency of focus deviation judgment.

[0046] In some embodiments, the step S102 above determines the target motor from the moving motor and the focus motor based on the accumulated steps of the focus motor and the moving motor, including the following steps S301 to S302:

[0047] Step S301, obtaining a pre-calibrated range of cumulative step counts of focusing within which gaps occur in the focusing of the focus motor, and a pre-calibrated range of cumulative step counts of movement within which gaps occur in the movement of the movement motor.

[0048] Here, considering that the focus motor needs to move the corresponding motor to execute when adjusting the image distance, and the moving motor needs to move the corresponding motor to execute when adjusting the image distance, there will be a gap, which leads to the problem of gap elimination when adjusting the image distance or the object distance. Therefore, in order to further determine the cumulative steps of the focus motor, or the cumulative steps of the moving motor whether the gap needs to be eliminated, it is also necessary to obtain the range of cumulative focusing steps in which gaps occur when the focus motor is focusing, and the range of cumulative moving steps in which gaps occur when the moving motor is moving.

[0049] Step S302: Determine the target motor based on the relationship between the cumulative step count of the focus motor and the cumulative step count range of the focus motor, and the relationship between the cumulative step count of the movement motor and the cumulative step count range of the movement motor.

[0050] Here, the projection device can judge whether the focus motor needs to eliminate the gap based on the relationship between the cumulative steps of the focus motor and the cumulative step range of the focus, and judge whether the moving motor needs to eliminate the gap based on the relationship between the cumulative steps of the moving motor and the cumulative step range of the movement, and then determine the target motor based on the above judgment results.

[0051] In some embodiments, the above step S302 may include the following steps S401 to S404:

[0052] Step S401: When the cumulative step count of the focus motor is within the cumulative step count range of the focus motor and the cumulative step count of the movement motor is within the cumulative step count range of the movement motor, determine that the focus motor is the target motor.

[0053] Here, the cumulative step count of the focus motor is within the range of the cumulative step count of focus, which indicates that the use of the focus motor needs to eliminate the gap at this time, and the cumulative step count of the moving motor is within the range of the cumulative step count of moving, which indicates that the use of the moving motor also needs to eliminate the gap at this time. In this case, the projection device will give priority to the focus motor, that is, the focus motor will be used as the target motor.

[0054] Step S402: When the cumulative step count of the focus motor is within the cumulative step count range of the focus motor and the cumulative step count of the moving motor is outside the cumulative step count range of the moving motor, determine that the moving motor is the target motor.

[0055] Here, the cumulative step count of the focus motor is within the range of the cumulative step count of focus, indicating that the gap needs to be eliminated when using the focus motor at this time, while the cumulative step count of the moving motor is outside the range of the cumulative step count of moving, indicating that the gap does not need to be eliminated when using the moving motor at this time. In this case, the projection device can determine that the moving motor that does not need to eliminate the gap is the target motor.

[0056] Step S403: When the cumulative step count of the focus motor is outside the cumulative step count range of the focus motor and the cumulative step count of the movement motor is within the cumulative step count range of the movement motor, determine that the focus motor is the target motor.

[0057] Here, the cumulative step count of the focus motor is outside the range of the cumulative step count of the focus, indicating that there is no need to eliminate the gap when using the focus motor at this time, and the cumulative step count of the moving motor is within the range of the cumulative step count of the moving motor, indicating that there is a need to eliminate the gap when using the moving motor at this time. In this case, the projection device can determine that the focus motor that does not require the gap to be eliminated is the target motor.

[0058] Step S404: When the cumulative step count of the focus motor is outside the focus cumulative step count range and the cumulative step count of the movement motor is outside the movement cumulative step count range, determine that the focus motor is the target motor.

[0059] Here, the cumulative step count of the focus motor is outside the range of the cumulative step count of the focus, indicating that there is no need to eliminate the gap when using the focus motor at this time, and the cumulative step count of the moving motor is outside the range of the cumulative step count of the moving motor, indicating that there is no need to eliminate the gap when using the moving motor at this time. In this case, the projection device can determine that the focus motor is the target motor.

[0060] In this way, when determining the target motor, the projection device takes into account whether the moving motor and the focusing motor need to eliminate the gap, so that the selected target motor does not need to eliminate the gap as much as possible, thereby ensuring that the entire focus deviation compensation process is intelligent and seamless.

[0061] In some embodiments, the above step S103 may include the following steps S501 to S504:

[0062] Step S501: using a preset position and focal length function relationship, based on a first position coordinate, determine a first focal length corresponding to an initial projection image.

[0063] In an embodiment of the present application, the preset position and focal length function relationship is a pre-calibrated position and focal length function relationship obtained by the projection device, and the preset position and focal length function relationship includes the position correspondence between the vertex position of the projection picture in the camera space at different focal lengths.

[0064] For example, the relationship between the preset position and the focal length function is shown in formula (1):

[0065]

[0066] Among them, fx represents the focal length parameter offset according to the x-coordinate of a certain vertex A, fy represents the focal length parameter calculated according to the y-coordinate offset of a certain vertex A, F is the focal length, and m, n, p, and q are all relationship coefficients.

[0067] Here, the first focal length may be calculated by: the projection device calculates the first position coordinate: (x 11 ,y 11 )、(x 12 ,y 12 )、(x 13 ,y 13 ), and (x 14 ,y 14 ) are substituted into the above formula (1) to obtain the four focal lengths corresponding to the first position coordinates. Then, the first focal length can be obtained by averaging the four focal lengths.

[0068] Step S502: using the relationship between the preset position and the focal length function, based on the second position coordinates, determine the second focal length corresponding to the current projection image.

[0069] Here, the projection device calculates the second focal length according to the calculation method of the first focal length, which will not be described in detail here.

[0070] Step S503: Determine the compensation direction and the number of compensation steps of the target motor based on the first focal length and the second focal length.

[0071] In an embodiment of the present application, after determining the first focal length and the second focal length, the projection device can determine the compensation direction and the number of compensation steps of the target motor based on the first focal length and the second focal length.

[0072] Step S504: Control the target motor to adjust the compensation steps according to the compensation direction.

[0073] Here, after the projection device determines the compensation direction and the compensation steps of the target motor, the target motor can be controlled to adjust the compensation steps according to the compensation direction, so as to achieve the focus deviation compensation of the projection device.

[0074] In some embodiments, the target motor is a focus motor, and the implementation of step S503 is as follows: using a pre-calibrated functional relationship between the focus motor movement amount and the focal length, based on the first focal length and the second focal length, the compensation direction and the number of compensation steps of the focus motor are determined.

[0075] In the embodiment of the present application, the pre-calibrated functional relationship between the focus motor movement amount and the focal length is shown in formula (2):

[0076] mf=a*(Fe+Fs)*(Fe-Fs)+b*(Fe-Fs)+c (2);

[0077] Wherein, mf is the compensation direction and compensation step number of the focus motor, Fs is the first focal length, Fe is the second focal length, a, b, and c are relationship coefficients. The positive and negative values ​​of mf represent the compensation direction of the focus motor.

[0078] Therefore, after the projection device obtains the first focal length and the second focal length, the first focal length and the second focal length can be substituted into formula (2) to calculate the compensation direction and the number of compensation steps of the focus motor.

[0079] Correspondingly, after executing the above step S504, the projection device may further execute the following steps: updating the accumulated number of steps of the focus motor by using the compensation direction and the compensation step number.

[0080] Here, if the compensation direction is the forward focusing direction pre-set by the focusing motor, the compensation steps are directly added to the cumulative steps of the focusing motor to obtain the updated cumulative steps of the focusing motor. If the compensation direction is the reverse focusing direction pre-set by the focusing motor, the compensation steps are directly subtracted from the cumulative steps of the focusing motor to obtain the updated cumulative steps of the focusing motor.

[0081] Exemplarily, when the projection device uses the focus motor to perform a focus deviation compensation operation, the focus motor is adjusted according to the compensation direction and compensation step number of the focus motor. If the focus motor moves one step in the forward direction, the cumulative step number of the focus motor is increased by 1; if the focus motor moves one step in the reverse direction, the cumulative step number of the focus motor is decreased by 1.

[0082] In some embodiments, the target motor is a mobile motor, and the implementation of the above step S503 is: using a pre-calibrated functional relationship between the mobile motor movement amount and the focal length, based on the first focal length and the second focal length, determine the compensation direction and compensation steps of the mobile motor.

[0083] In the embodiment of the present application, the pre-calibrated relationship between the movement amount of the moving motor and the focal length function is shown in formula (3):

[0084] md=A*(Fe+Fs)*(Fe-Fs)+B*(Fe-Fs)+C (3);

[0085] Wherein, md is the compensation direction and the number of compensation steps of the mobile motor, Fs is the first focal length, Fe is the second focal length, A, B, and C are relationship coefficients. The positive or negative value of md represents the compensation direction of the mobile motor.

[0086] Therefore, after the projection device obtains the first focal length and the second focal length, the first focal length and the second focal length can be substituted into formula (3) to calculate the compensation direction and the number of compensation steps of the moving motor.

[0087] Correspondingly, after executing the above step S504, the projection device may further execute the following steps: updating the accumulated number of steps of the moving motor using the compensation direction and the compensation step number.

[0088] Here, if the compensation direction is the pre-set forward direction of movement of the mobile motor, the compensation steps are directly added to the accumulated steps of the mobile motor to obtain the updated accumulated steps of the mobile motor; if the compensation direction is the pre-set reverse direction of movement of the mobile motor, the compensation steps are directly subtracted from the accumulated steps of the mobile motor to obtain the updated accumulated steps of the mobile motor.

[0089] Exemplarily, when the projection device uses a mobile motor to perform a focus compensation operation, the mobile motor is adjusted according to the compensation direction and compensation step number of the mobile motor. If the mobile motor moves one step in the forward direction, the accumulated step number of the mobile motor is increased by 1; if the mobile motor moves one step in the reverse direction, the accumulated step number of the mobile motor is decreased by 1.

[0090] Figure 6 The following is a flow chart of an exemplary process of focus deviation compensation provided in an embodiment of the present application. Here, a short-throw projection device (short-throw machine) is used as an example for discussion. Figure 6 As shown, the method includes:

[0091] Step 601: Determine whether the projected image is out of focus.

[0092] Here, after the short-focus machine is turned on, the camera is called to shoot the projection screen in real time. Based on the frame difference algorithm, the four corners (vertices) of the projection screen are located. When it is found that the four corners are shrinking or expanding at the same time and exceed a preset value (preset offset), it can be considered that the projection screen (current projection screen) is out of focus.

[0093] Exemplarily, as shown in FIG7 , the dotted area is the area of ​​the current projection screen, and the solid area is the area of ​​the projection screen that is not out of focus. As shown in FIG7 (a), the current projection screen is expanded, and the focal length becomes smaller. As shown in FIG7 (b), the current projection screen is retracted, and the focal length becomes larger. The implementation method for the projection device to determine whether the current projection screen is out of focus can be: taking the upper left corner vertex of the projection screen as an example, the camera will capture the position Q1 (first position coordinate) of the upper left corner vertex of the projection screen when the power is turned on, and the position Q2 (second position coordinate) of the upper left corner vertex of the projection screen captured at the current moment. If the Euclidean difference (offset) between Q1 and Q2 is greater than 2 pixels or less than -2 pixels, it is determined that the current projection screen is out of focus.

[0094] Step 602: Determine the focal length when the camera is turned on and the real-time focal length.

[0095] Here, according to the pre-calibrated pixel position and focal length relationship model of the camera projection (the relationship between the preset position and the focal length function), the specific relationship is shown in formula (1); the position coordinates (first position coordinates) of the four corners of the projection screen (initial projection screen) at startup and the position coordinates (second position coordinates) of the four corners of the real-time projection screen (current projection screen) are respectively substituted into formula (1) to obtain the four focal lengths corresponding to the projection screen at startup and the four focal lengths corresponding to the real-time projection screen. Finally, the four focal lengths corresponding to the projection screen at startup are averaged to obtain the focal length at startup (first focal length), and the four focal lengths corresponding to the real-time projection screen are averaged to obtain the real-time focal length (second focal length).

[0096] Step 603: Determine the focusing direction and the number of focusing steps of the focusing motor based on the focal length at startup and the real-time focal length.

[0097] Here, the focal length at power-on (first focal length) and the real-time focal length (second focal length) are substituted into the relationship between the calibrated motor movement and focal length change (the pre-calibrated functional relationship between the focus motor movement and focal length), see formula (2), and the focusing direction (compensation direction) and focusing steps (compensation steps) of the focus motor can be determined.

[0098] Step 604: Determine the moving direction and number of moving steps of the moving motor based on the focal length at startup and the real-time focal length.

[0099] Here, the focal length when the machine is turned on (first focal length) and the real-time focal length (second focal length) are substituted into the calibrated relationship between the forward and backward movement of the machine and the change in focal length (the pre-calibrated functional relationship between the movement of the mobile motor and the focal length), see formula (3), and the moving direction (compensation direction) and moving steps (compensation steps) of the mobile motor can be determined.

[0100] Step 605: Select a target motor according to the motor states of the moving motor and the focusing motor.

[0101] Here, the appropriate method of adjusting the focal length is selected according to the machine's mechanical state (the accumulated number of steps of the moving motor and the accumulated number of steps of the focusing motor) and logic.

[0102] It should be noted that the projection device discussed above is equipped with both a focus motor and a moving motor. However, if the projection device is only equipped with a focus motor, the projection device can directly use the focus motor as the target motor to perform the focus compensation operation after determining the focus deviation. Exemplarily, if the machine (projection device) includes a mechanism device (moving motor) that can move forward and backward, the driving machine solution calculates the direction (compensation direction) and position (number of compensation steps) to drive the machine forward and backward, changing the object distance of the machine (using the moving motor for focus deviation compensation). Of course, you can also choose to adjust the optical image distance (using the focus motor for focus deviation compensation). If there is no machine (moving motor) with a mechanism that moves forward and backward, you can choose to adjust the optical image distance (focus motor).

[0103] Since adjusting the object distance or image distance requires a mechanism to execute, there will be a gap problem. As a result, the problem of gap elimination must be considered when adjusting the physical and image distances. If the projection screen is detected to be out of focus, the corresponding compensation position after defocus needs to eliminate the gap or not eliminate the gap relative to the focus motor, and needs to eliminate the gap or not eliminate the gap relative to the moving mechanism motor. In order to make the entire compensation process more intelligent and seamless, the status of the two mechanisms (moving motor and focusing motor) is judged, and four situations may occur. In the first situation, the focusing motor needs to eliminate the gap and the moving motor needs to eliminate the gap; in the second situation, the focusing motor needs to eliminate the gap and the moving motor does not need to eliminate the gap; in the third situation, the focusing motor does not need to eliminate the gap and the moving motor needs to eliminate the gap; in the fourth situation, the focusing motor does not need to eliminate the gap and the moving motor does not need to eliminate the gap.

[0104] Among them, the state judgment process for the two mechanisms is the same. The focus motor is taken as an example for discussion here: if the gap of the focus motor is calibrated to 100 (that is, the cumulative step range of focus with a gap is -100 to 100), the cumulative count (the cumulative step number of the focus motor) is accumulated during the operation of the machine (focus motor), +1 for the forward direction and -1 for the reverse direction. When the cumulative number of steps in one direction exceeds 100, there is no gap. Otherwise, if the cumulative number is between x (0-100), there is a gap, and the value of the gap is 100-x.

[0105] For the first case, choose to use the focusing motor to complete the entire compensation process and adjust the image distance; for the second case, choose to use the moving motor to eliminate the gap and adjust the object distance; for the third case, choose to use the focusing motor to complete the compensation process and adjust the image distance; for the fourth case, choose to use the focusing motor to complete the compensation process and adjust the image distance.

[0106] Step 606: Use the target motor to perform a focus compensation operation on the projection device.

[0107] Here, after the target motor is determined, the focus deviation compensation operation can be performed on the projection device using the target motor according to the compensation direction and the number of compensation steps of the target motor determined in step S603 or step S604.

[0108] The embodiment of the present application provides a method for compensating for defocusing, the method comprising: obtaining the cumulative number of steps of the moving motor and the cumulative number of steps of the focusing motor on the projection device when it is determined that the current projection screen projected by the projection device is out of focus; determining a target motor from the moving motor and the focusing motor based on the cumulative number of steps of the focusing motor and the moving motor; and performing a defocusing compensation operation on the projection device using the target motor. The defocusing compensation method provided by the present application, when the projection device has a thermal defocusing phenomenon, takes into account the cumulative number of steps of the moving motor and the focusing motor, and then determines a suitable motor based on the cumulative number of steps of the moving motor and the focusing motor to implement the defocusing compensation operation on the projection device, so that the options are diverse and the flexibility is high.

[0109] The present application embodiment provides a projection device, such as Figure 8 As shown, including:

[0110] The acquisition module 801 is used to acquire the cumulative number of steps of the moving motor and the cumulative number of steps of the focusing motor on the projection device when it is determined that the current projection image projected by the projection device is out of focus;

[0111] A determination module 802 is used to determine a target motor from the moving motor and the focus motor based on the accumulated steps of the focus motor and the accumulated steps of the moving motor;

[0112] The execution module 803 is used to use the target motor to perform a focus compensation operation on the projection device.

[0113] In one embodiment of the present application, the acquisition module 801 is also used to capture the initial projection screen projected by the camera when the projection device is turned on, and the current projection screen projected at the current moment; determine the first position coordinates of the vertices of the initial projection screen in the camera shooting space, and the second position coordinates of the vertices of the current projection screen in the camera shooting space; based on the first position coordinates and the second position coordinates, determine the screen offset between the initial projection screen and the current projection screen; when the screen offset is greater than or equal to the preset offset, determine that the current projection screen is out of focus.

[0114] In one embodiment of the present application, the determination module 802 is also used to obtain a pre-calibrated focusing cumulative step range in which a gap occurs when the focusing motor is focusing, and a moving cumulative step range in which a gap occurs when the moving motor is moving; based on the relationship between the cumulative steps of the focusing motor and the focusing cumulative step range, and the relationship between the cumulative steps of the moving motor and the moving cumulative step range, the target motor is determined.

[0115] In one embodiment of the present application, the determination module 802 is also used to determine that the focus motor is the target motor when the cumulative step number of the focus motor is within the focus cumulative step number range and the cumulative step number of the moving motor is within the moving cumulative step number range; determine that the moving motor is the target motor when the cumulative step number of the focus motor is within the focus cumulative step number range and the cumulative step number of the moving motor is outside the moving cumulative step number range; determine that the focus motor is the target motor when the cumulative step number of the focus motor is outside the focus cumulative step number range and the cumulative step number of the moving motor is within the moving cumulative step number range; determine that the focus motor is the target motor when the cumulative step number of the focus motor is outside the focus cumulative step number range and the cumulative step number of the moving motor is within the moving cumulative step number range.

[0116] In one embodiment of the present application, the execution module 803 is also used to determine the first focal length corresponding to the initial projection image based on the first position coordinates by utilizing the relationship between the preset position and the focal length function; determine the second focal length corresponding to the current projection image based on the second position coordinates by utilizing the relationship between the preset position and the focal length function; determine the compensation direction and compensation steps of the target motor based on the first focal length and the second focal length; and control the target motor to compensate in steps according to the compensation direction.

[0117] In one embodiment of the present application, the execution module 803 is also used to use a pre-calibrated functional relationship between the focus motor movement amount and the focal length to determine the compensation direction and compensation step number of the focus motor based on the first focal length and the second focal length; and use the compensation direction and compensation step number to update the cumulative step number of the focus motor.

[0118] In one embodiment of the present application, the execution module 803 is also used to use a pre-calibrated functional relationship between the movement amount of the mobile motor and the focal length to determine the compensation direction and compensation step number of the mobile motor based on the first focal length and the second focal length; and use the compensation direction and compensation step number to update the cumulative step number of the mobile motor.

[0119] The present application embodiment provides a projection device, such as Fig. 9 As shown, the projection device includes: a processor 901, a memory 902 and a communication bus 903;

[0120] A communication bus 903, used to implement communication connection between the processor 901 and the memory 902;

[0121] The processor 901 is used to execute the computer program stored in the memory 902 to implement the above-mentioned defocus compensation method.

[0122] The embodiment of the present application provides a projection device. When it is determined that the current projection screen projected by the projection device is out of focus and a moving motor and a focusing motor are installed on the projection device, the cumulative steps of the moving motor and the focusing motor are obtained to obtain the cumulative steps of the focusing motor and the moving motor; based on the cumulative steps of the focusing motor and the moving motor, a target motor is determined from the moving motor and the focusing motor, and the target motor is used to perform a focus compensation operation on the projection device. The projection device provided by the present application, when the projection device has a thermal focus deviation phenomenon, takes into account the cumulative steps of the moving motor and the focusing motor, and then determines a suitable motor based on the cumulative steps of the moving motor and the focusing motor to implement the focus compensation operation on the projection device, so that the selection is diverse and the flexibility is high.

[0123] An embodiment of the present application provides a computer-readable storage medium, wherein 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 above-mentioned defocus compensation 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.

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

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

[0126] 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 including 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.

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

[0128] 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 method for compensating for defocusing, characterized in that: Applied to a projection device, the method comprises: When it is determined that the current projection image projected by the projection device is out of focus, obtaining the cumulative number of steps of the moving motor and the cumulative number of steps of the focusing motor on the projection device; determining a target motor from among the moving motor and the focus motor based on the accumulated number of steps of the focus motor and the accumulated number of steps of the moving motor; The target motor is used to perform a focus compensation operation on the projection device.

2. The method according to claim 1, characterized in that The determining that the current projection image projected by the projection device is out of focus includes: The initial projection picture projected when the projection device is turned on, and the current projection picture projected at the current moment, taken by the camera; Determine the first position coordinates of the vertices of the initial projection image in the camera shooting space, and the second position coordinates of the vertices of the current projection image in the camera shooting space; Determining a screen offset between the initial projection screen and the current projection screen based on the first position coordinates and the second position coordinates; When the picture offset is greater than or equal to a preset offset, it is determined that the current projection picture is out of focus.

3. The method according to claim 1, characterized in that The step of determining a target motor from the moving motor and the focus motor based on the accumulated number of steps of the focus motor and the accumulated number of steps of the moving motor comprises: Acquire a pre-calibrated range of cumulative focusing steps within which gaps occur during focusing of the focusing motor, and a pre-calibrated range of cumulative moving steps within which gaps occur during moving of the moving motor; The target motor is determined based on a relationship between the cumulative number of steps of the focus motor and the focus cumulative number of steps range, and a relationship between the cumulative number of steps of the movement motor and the movement cumulative number of steps range.

4. The method according to claim 3, characterized in that The determining the target motor based on the relationship between the cumulative number of steps of the focus motor and the range of the cumulative number of steps of the focus motor, and the relationship between the cumulative number of steps of the movement motor and the range of the cumulative number of steps of the movement, comprises: When the cumulative step number of the focus motor is within the cumulative focus step number range, and the cumulative step number of the movement motor is within the cumulative movement step number range, determining that the focus motor is the target motor; When the cumulative step count of the focus motor is within the cumulative focus step count range and the cumulative step count of the movement motor is outside the cumulative movement step count range, determining that the movement motor is the target motor; When the cumulative step number of the focus motor is outside the cumulative step number range of focus and the cumulative step number of the movement motor is within the cumulative step number range of movement, determining that the focus motor is the target motor; When the cumulative step count of the focus motor is outside the focus cumulative step count range and the cumulative step count of the movement motor is outside the movement cumulative step count range, the focus motor is determined to be the target motor.

5. The method according to claim 2, characterized in that: The using the target motor to perform a focus compensation operation on the projection device includes: Determine a first focal length corresponding to the initial projection image based on the first position coordinates by using a preset position and focal length function relationship; Determine a second focal length corresponding to the current projection image based on the second position coordinates by using the relationship between the preset position and the focal length function; Determining a compensation direction and a number of compensation steps of the target motor based on the first focal length and the second focal length; The target motor is controlled to adjust the compensation step number according to the compensation direction.

6. The method according to claim 5, characterized in that The target motor is a focus motor, and determining a compensation direction and a number of compensation steps of the target motor based on the first focal length and the second focal length includes: Determining the compensation direction and the number of compensation steps of the focus motor based on the first focal length and the second focal length by using a pre-calibrated functional relationship between the focus motor movement amount and the focal length; Correspondingly, after controlling the target motor to adjust the compensation step number according to the compensation direction, the method further includes: The accumulated number of steps of the focus motor is updated using the compensation direction and the compensation step number.

7. The method according to claim 5, characterized in that The target motor is a mobile motor, and determining a compensation direction and a compensation step number of the target motor based on the first focal length and the second focal length includes: Determining the compensation direction and the number of compensation steps of the mobile motor based on the first focal length and the second focal length by using a pre-calibrated functional relationship between the mobile motor movement amount and the focal length; Correspondingly, after controlling the target motor to adjust the compensation step number according to the compensation direction, the method further includes: The accumulated number of steps of the moving motor is updated using the compensation direction and the compensation step number.

8. A projection device, characterized in that: include: An acquisition module, configured to acquire the cumulative number of steps of the moving motor and the focusing motor on the projection device when it is determined that the current projection picture projected by the projection device is out of focus; a determination module, configured to determine a target motor from among the moving motor and the focus motor based on the accumulated number of steps of the focus motor and the accumulated number of steps of the moving motor; An execution module is used to use the target motor to perform a focus compensation operation on the projection device.

9. A projection device, characterized in that: include: processor, memory, and communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the computer program stored in the memory to implement the focus deviation compensation method according to any one of claims 1 to 7.

10. 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 focus deviation compensation method as described in any one of claims 1 to 7.