Lens step test method, device and equipment of projection device and storage medium
By automatically controlling the motor to drive the lens movement and acquiring sharpness values in real time, identifying sharpness peaks, and calculating the lens virtual step count, the problem of low efficiency and low accuracy in lens virtual step testing in existing technologies is solved, achieving efficient and accurate lens virtual step testing.
Patent Information
- Application Number
- CN202211254696.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-13
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-10-13
AI Technical Summary
In existing technologies, the virtual step test of DLP optical engine lenses is inefficient and inaccurate. It relies on manual operation of a remote control to drive the motor to focus the lens, and manual testing is conducted by observing changes in sharpness with the human eye, which is cumbersome and inaccurate.
By controlling the motor to drive the lens to move in a set direction, the sharpness value is obtained in real time, the sharpness peak position is automatically identified, the number of steps is recorded, and the number of virtual steps of the lens is calculated by combining the number of steps of the lens moving in the opposite direction.
It automates lens virtual step testing, improves testing efficiency and accuracy, saves labor costs, and eliminates tedious manual operations.
Smart Images

Figure CN115643382B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of optical measurement, more particularly, to a lens virtual step testing method and device of a projection device, a terminal device and a computer readable storage medium. BACKGROUND
[0002] The DLP light machine lens includes a motor in the design. The focus of the lens is adjusted by controlling the rotation of the motor to ensure the clarity of the projection picture. The motor and the lens are engaged through a gear to achieve the purpose of focusing. In the performance test of the DLP light machine, the test of the lens virtual step is usually involved. At present, the method for testing the lens virtual step of the DLP light machine is usually to manually control the remote controller and to manually operate the remote controller to control the motor to drive the lens for focusing. In the process of focusing the lens by manually controlling the remote controller, the virtual step number of the lens is manually tested by observing the change of the clarity of the projection picture by the human eye. For this method of obtaining the virtual step number of the lens by manual testing, the test efficiency is low, the accuracy is low, and it is more cumbersome. SUMMARY
[0003] One object of the embodiments of the present disclosure is to provide a new technical solution for a lens virtual step testing method of a projection device.
[0004] According to a first aspect of the present disclosure, a lens virtual step testing method of a projection device is provided, which includes: controlling a motor to drive a lens to start from a set test starting position, moving along a first direction according to a set first step distance, and acquiring a first clarity value of a picture projected by the lens every time the lens moves a first step distance, until a first peak position of the lens corresponding to a first clarity peak value is obtained according to the change of the first clarity value; wherein the first direction is a direction in which the clarity of the picture projected by the lens will first increase and then decrease; after the first peak position is obtained, the motor is controlled to drive the lens to continue moving along the first direction according to the first step distance to a first test terminal position; the number of first step distances moved by the lens along the first direction from the first peak position to the first test terminal position is recorded; the motor is controlled to drive the lens to start from the first test terminal position, moving along a second direction opposite to the first direction according to the first step distance, and acquiring a second clarity value of the picture projected by the lens every time the lens moves a first step distance, until moving to a second test terminal position after the second clarity value decreases; the number of second step distances moved by the lens along the second direction from the first test terminal position to the second test terminal position is recorded; and the number of virtual steps of the lens is obtained according to the number of first step distances and the number of second step distances.
[0005] Optionally, before the method of controlling the motor to drive the lens to move along the first direction by the first step distance, the method further comprises: controlling the motor to drive the lens to move along the first direction from a preset first mark position to a preset second mark position by a second step distance, and obtaining a third sharpness value of the projected image of the lens at each position when moving by one second step distance; wherein the second step distance is greater than or equal to the first step distance; selecting a position as the test starting position according to the third sharpness value of the projected image of the lens at each position; wherein the test starting position is between the first mark position and a third peak position of the lens corresponding to a third sharpness peak value.
[0006] Optionally, the method further comprises: controlling the motor to drive the lens to continue moving along the first direction by the first step distance to a first test end position; and controlling the motor to drive the lens to continue moving along the first direction by the first step distance for a first step distance number to reach the first test end position.
[0007] Optionally, the method further comprises: recording the second step distance number of the lens moving along the second direction from the first test end position to a second test end position, including: recording the third step distance number of the lens moving along the second direction from the first peak position to the second test end position.
[0008] Optionally, the method further comprises: obtaining a fourth step distance number according to the first step distance number and the third step distance number; and obtaining the virtual step distance number of the lens according to the second step distance number and the fourth step distance number.
[0009] Optionally, the method further comprises: moving to the second test end position until the second sharpness value decreases, including:
[0010] Optionally, the method further comprises: moving to the second test end position until the second sharpness value decreases for a first preset number of times in succession.
[0011] Optionally, the method further comprises: obtaining the first peak position of the lens corresponding to the first sharpness peak value according to the change of the first sharpness value, including: stopping obtaining the first sharpness value until the first sharpness value decreases for a second preset number of times in succession; obtaining the first sharpness peak value from the obtained first sharpness value; and obtaining the first peak position of the lens corresponding to the first sharpness peak value according to the correspondence between the first sharpness value and the position of the lens.
[0012] According to a second aspect of the present disclosure, a lens virtual step testing device of a projection device is also provided, which comprises a first testing module, a second testing module, a first recording module, a third testing module, a second recording module, and a step distance calculation module. Wherein:
[0013] The first test module is configured to control the motor-driven lens to move along a first direction according to a first step distance from a set test starting position, and obtain a first sharpness value of a projected image of the lens at each first step distance, until a first peak position corresponding to a first sharpness peak value of the lens is obtained according to a change of the first sharpness value, wherein the first direction is a direction in which the sharpness of the projected image of the lens increases first and then decreases.
[0014] The second test module is configured to control the motor-driven lens to continue to move along the first direction according to the first step distance to a first test terminal position after the first peak position is obtained.
[0015] The first recording module is configured to record a first step distance number of the lens moved from the first peak position to the first test terminal position along the first direction.
[0016] The third test module is configured to control the motor-driven lens to move along a second direction opposite to the first direction according to the first step distance from the first test terminal position, and obtain a second sharpness value of a projected image of the lens at each first step distance until the second test terminal position is reached.
[0017] The second recording module is configured to record a second step distance number of the lens moved from the first test terminal position to the second test terminal position along the second direction.
[0018] The step number calculation module is configured to obtain a virtual step number of the lens according to the first step distance number and the second step distance number.
[0019] According to a third aspect of the present disclosure, a terminal device is also provided, which comprises a processor and a memory, the memory storing programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement the steps of the lens virtual step test method of the projection device in any one of the first aspect.
[0020] According to a fourth aspect of the present disclosure, a computer readable storage medium is also provided, which stores programs or instructions, and the programs or instructions are executed by a processor to implement the steps of the lens virtual step test method of the projection device in any one of the first aspect.
[0021] The lens virtual step test method of the projection device provided by the embodiment of the application comprises the following steps: controlling a motor to drive a lens to start from a set test starting position, moving along a first direction according to a set first step distance, and obtaining a first peak position corresponding to a first sharpness peak value of the lens; after the first peak position is obtained, controlling the motor to drive the lens to continue moving along the first direction according to the first step distance to a first test terminal position; recording a first step distance number of the lens moving along the first direction from the first peak position to the first test terminal position; controlling the motor to drive the lens to start from the first test terminal position, moving along a second direction according to the first step distance, until moving to a second test terminal position with a second sharpness value reduced; recording a second step distance number of the lens moving along the second direction from the first test terminal position to the second test terminal position; and obtaining a virtual step number of the lens according to the first step distance number and the second step distance number. In this way, the virtual step number of the lens of the projection device can be obtained through automatic testing, which greatly improves the test efficiency and accuracy, saves the labor cost, and also saves the cumbersome process of manual testing.
[0022] Other features of the present application, and their advantages, will become apparent in the non-limiting embodiments of the present application from the following detailed description in conjunction with the drawings. BRIEF DESCRIPTION OF DRAWINGS
[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and, together with the description, serve to explain the principles of the application.
[0024] Figure 1 is a hardware configuration structure diagram of a terminal device for implementing an embodiment;
[0025] Figure 2 is a flowchart of a lens virtual step test method of a projection device according to an embodiment;
[0026] Figure 3 is a schematic diagram of a lens virtual step test method of a projection device according to another embodiment;
[0027] Figure 4 is a schematic diagram of a lens virtual step test method of a projection device according to another embodiment;
[0028] Figure 5 is a schematic diagram of a lens virtual step test method of a projection device according to another embodiment;
[0029] Figure 6 is Figure 5 is an enlarged schematic diagram of area A in FIG. 8;
[0030] Figure 7 is a schematic diagram of a lens virtual step test device of a projection device that can be used to implement an embodiment;
[0031] Figure 8 This is a schematic diagram of the structure of a terminal device according to one embodiment. Detailed Implementation
[0032] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0033] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the scope of this application and its application or use.
[0034] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, they should be considered part of the specification.
[0035] In all the examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0036] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0037] <Implementation Environment and Hardware Configuration>
[0038] Figure 1 This is a hardware configuration diagram of a terminal device 1000 that can be used in the lens virtual step test method of a projection device in an embodiment of the present invention.
[0039] like Figure 1 As shown, the terminal device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a display device 1400, an input device 1500, etc. The processor 1100 executes computer programs, which may employ instruction sets based on architectures such as x86, Arm, RISC, MIPS, and SSE. The memory 1200 may include, for example, ROM (Read-Only Memory), RAM (Random Access Memory), or non-volatile memory such as a hard disk. The interface device 1300 is a physical interface, such as a USB interface or a headphone jack. The display device 1400 may be a screen, which may be a touch screen. The input device 1500 may include a keyboard, a mouse, etc., or may include a touch device.
[0040] In the embodiment, the memory 1200 of the terminal device 1000 is configured to store a computer program for controlling the processor 1100 to operate to implement the lens virtual step test method of the projection device according to any embodiment. The computer program can be designed by the skilled person according to the solutions disclosed in the specification. How the computer program controls the processor 1100 to operate is known in the art, and thus is not described in detail herein.
[0041] Those skilled in the art will understand that, although the terminal device 1000 is shown in Figure 1 the embodiments of the present disclosure, the terminal device 1000 can only involve part of the devices, and can also include other devices, which are not limited herein.
[0042] <Method Embodiment>
[0043] Figure 2 The lens virtual step test method of the projection device according to an embodiment is shown. The lens virtual step test method of the projection device can be implemented by the terminal device 1000 as shown in Figure 1 .
[0044] The lens virtual step test method of the projection device includes the following steps S1000 to S1700, which are described in detail as follows:
[0045] Step S1000, control the motor to drive the lens to move from a preset first mark position to a preset second mark position along a first direction according to a set second step distance, and obtain a third sharpness value of the projection picture of the lens at each position when moving a second step distance; wherein the second step distance is greater than or equal to the first step distance.
[0046] The projection device includes a lens and a motor for driving the lens to move for focusing. The lens in the projection device can be a DLP light engine lens. The motor in the projection device can drive the lens to move, thereby focusing. Specifically, the motor and the lens are connected through gear engagement to achieve the purpose of focusing. The motor can drive the gear engagement, and as the gear continuously engages the teeth on the gear, the focal length of the lens will change. By adjusting the focal length of the lens, the sharpness of the projection image projected by the lens on the projection screen can be changed while the distance between the projection screen and the lens remains unchanged. It should be noted that in the embodiments of the present application, the motor moves one step, the gear engages the next tooth, and the focal length of the lens changes, thereby changing the sharpness of the projection picture.
[0047] In the embodiment of the present application, from the beginning of the reverse rotation of the motor to the change of the definition of the projection picture of the lens, the number of the teeth engaged by the gear under the control of the motor is equal to the number of steps of the motor, i.e. the number of virtual steps of the lens. In the following description, the number of steps of the motor can be described as the number of steps of the lens. That is, with the movement of the lens, the focal length of the lens changes, and thus the definition of the projection picture of the lens also changes.
[0048] As shown in Figure 3 , there is a projection screen placed in front of the lens of the projection device, and the distance between the projection screen and the lens remains unchanged. In the case that the lens projects a projection picture to the projection screen, a camera can be erected behind the lens. As shown in Figure 4 , by capturing the image on the projection screen through the camera, the images of the regions in the projection picture can be obtained, and thus the definition values corresponding to the regions in the projection picture can be obtained through identification. For the process of obtaining the definition values corresponding to the images of the regions in the projection picture through identification, it can be understood by those skilled in the art, and thus will not be described here. On this basis, by calculating the average of the definition values corresponding to the regions in the current projection picture, the definition value corresponding to the projection picture of the lens at the current focal length can be obtained. In addition, the definition value corresponding to the projection picture of the lens at the current focal length can also be obtained through other ways, which is not limited here.
[0049] In the embodiment of the present application, by controlling the motor to drive the lens to move from the preset first mark position to the preset second mark position in the first direction. During the movement, the definition values of the projection pictures of the lens at the positions are obtained as the third definition values. In this way, the curve diagram as shown in Figure 5 can be finally obtained.
[0050] As shown in Figure 5 , the curve diagram can represent the corresponding relationship between the positions reached by the lens and the third definition values. In the curve diagram, the value corresponding to the horizontal axis is the number of steps of the lens moving in the first direction, and the vertical axis is the third definition values corresponding to the positions reached by the lens respectively. It should be noted that in the embodiment of the present application, the positions are generated according to the positions of the lens after moving by the corresponding step distance, and are not pre-set. In addition, during the movement of the lens from the first mark position to the preset second mark position in the first direction, the lens moves according to the second step distance. The second step distance can be greater than or equal to the first step distance. The specific step distance value of the second step distance can be set according to the actual situation, which is not limited here. In addition, in the embodiment of the present application, as shown in Figure 6As shown, the first direction can be a direction from left to right, and the second direction can be a direction from right to left. In other embodiments of the present application, the first direction can also be a direction from right to left, and correspondingly, the second direction can be a direction from left to right, which is not limited here.
[0051] In step S1100, a position is selected as a test starting position according to the third sharpness values of the projected images of the lens at the positions; wherein the test starting position is between the first mark position and a third peak position corresponding to a third sharpness peak value of the lens.
[0052] According to the third sharpness values of the projected images of the lens at the positions, the maximum third sharpness value among them can be taken as the third sharpness peak value. On this basis, the position corresponding to the third sharpness peak value can be the third peak position. The test starting position can be between the first mark position and the third peak position. It should be noted that in the embodiments of the present application, the first mark position can be the position of the leftmost segment, and the second mark position can be the position of the rightmost segment. The positions of the first mark position and the second mark position can be set artificially according to actual conditions, which is not limited here. In addition, in the embodiments of the present application, any position between the first mark position and the third peak position can be selected as the test starting position.
[0053] In step S1200, the motor is controlled to drive the lens to move along the first direction according to the set first step distance from the set test starting position, and at each movement of a first step distance, the first sharpness value of the projected image of the lens is obtained until the first peak position corresponding to the first sharpness peak value of the lens is obtained according to the change of the first sharpness value; wherein the first direction is a direction in which the sharpness of the projected image of the lens will first increase and then decrease.
[0054] After obtaining the third sharpness values of the projected images of the lens at the positions, the motor can be controlled to drive the lens to move along the first direction according to the set layout from the test starting position. At each movement of a first step distance, the first sharpness value corresponding to the reached position can be obtained in real time. According to the obtained multiple first sharpness values, the first sharpness peak value, i.e. the maximum first sharpness value, is obtained. According to the first sharpness peak value, the first peak position corresponding thereto can be obtained.
[0055] In the embodiments of the present application, the first direction can be a direction from left to right. It should be noted that the lens can move from one position to the next position by moving a first step distance. In the embodiments of the present application, the first step distance and the second step distance are both constant. In addition, the first sharpness value can represent the sharpness of the picture projected by the lens after reaching the corresponding position during the movement of the lens along the first direction. The specific step value of the first step distance can be set according to actual conditions, which is not limited here.
[0056] In one embodiment, step S1200, the motor driving lens is controlled to move along the first direction according to the set first step distance from the set test starting position, and the first sharpness value of the picture projected by the lens is obtained every time the lens moves a first step distance, until the first peak position corresponding to the first sharpness peak value of the lens is obtained according to the change of the first sharpness value, including steps S1210 to S1230. Details are described below:
[0057] Step S1210, stop obtaining the first sharpness value until the first sharpness value decreases continuously for a second set number of times.
[0058] During the movement of the lens along the first direction according to the set first step distance from the test starting position, when the first sharpness value obtained continuously for a second set number of times is in a gradually decreasing condition, the first sharpness value is stopped from being obtained. On this basis, the position where the first sharpness value is stopped from being obtained can be defined as an intermediate pause point.
[0059] For example, as shown in Figure 6 , the second set number is set to 3, and when the first sharpness value corresponding to the position reached continuously for 3 times is in a continuously decreasing condition after the lens moves along the first direction according to the set first step distance from the test starting position, the first sharpness value is stopped from being obtained, and the position where the third time of continuously decreasing sharpness is located is defined as the intermediate pause point.
[0060] Step S1220, the first sharpness peak value is obtained from the obtained first sharpness values.
[0061] In the case where the first sharpness values corresponding to the positions passed by the lens are obtained, the maximum value of the first sharpness values is selected as the first sharpness peak value. According to the above content, in the case where the first sharpness value is stopped from being obtained, the maximum first sharpness value is selected as the first sharpness peak value according to the previously obtained first sharpness values.
[0062] Step S1230, according to the correspondence between the first sharpness value and the position of the lens, the first peak position corresponding to the first sharpness peak value can be obtained.
[0063] According to the correspondence between the position of the lens and the first sharpness value in the above content, the position of the lens corresponding to the first sharpness peak value can be obtained and taken as the first peak position.
[0064] In step S1300, after the first peak position is obtained, the motor is controlled to drive the lens to continue moving along the first direction by the first step distance to the first test terminal position.
[0065] After the first peak position is obtained, the motor is controlled to drive the lens to move along the first direction from the intermediate pause point to the first test terminal position by the same first step distance. In the process of continuing to move to the first test terminal position, the first sharpness value of each position reached can be continuously obtained.
[0066] In one embodiment, step S1300, after the first peak position is obtained, the motor is controlled to drive the lens to continue moving along the first direction by the first step distance to the first test terminal position, includes step S1310. Details are as follows:
[0067] In step S1310, the motor is controlled to drive the lens to continue moving along the first direction by the first step distance for a set number of steps to reach the first test terminal position.
[0068] In the embodiment of the present application, in the process of controlling the motor to drive the lens to continue moving from the intermediate pause point to the first test terminal position, the lens can be moved along the first direction for a set number of steps. After the lens is moved along the first direction for a set number of steps, the position reached by the lens can be taken as the first test terminal position. The set number of steps can be set according to actual conditions, which is not limited herein.
[0069] For example, after the first peak position is obtained, the motor can be controlled to drive the lens to continue moving along the first direction from the intermediate pause point to the first test terminal by the first step distance. If the set number of steps is set to 7, the lens will continue to move along the first direction from the intermediate pause point for 7 steps by the first step distance. When the lens moves for the 7th step, the position of the lens at this time can be taken as the first test terminal position.
[0070] In step S1400, the first step distance of the lens moved along the first direction from the first peak position to the first test terminal position is recorded.
[0071] In the embodiments of the present application, the lens of the projection device can be moved from the initial test position to the first test terminal position along the first direction. In this process, the lens can be moved from the initial test position, and the first peak position can be determined in the middle, and finally the first test terminal position is reached. In other words, after the first peak position is determined, the number of steps of the lens moving from the first peak position to the first test terminal position along the first direction can be recorded as the first step number.
[0072] In step S1500, the motor is controlled to drive the lens to move from the first test terminal position to the second test terminal position along the second direction according to the first step, and the second sharpness value of the projection image of the lens is acquired every time the lens moves by the first step, until the second test terminal position where the second sharpness value decreases is reached.
[0073] In the embodiments of the present application, after the lens moves to the first test terminal position, the direction of the motor can be controlled to rotate. In the case of rotating the direction of the motor, the lens can be driven to move along the second direction opposite to the first direction. In the process of moving the lens along the second direction, the second sharpness value corresponding to the position reached by the lens can be acquired in real time every time the lens moves by the first step, until the second test terminal position where the second sharpness decreases is reached. The second sharpness value can be the sharpness of the projection image of the lens corresponding to the position reached by the lens in the process of moving the lens along the second direction.
[0074] In the process of moving the lens from the first test terminal position to the second test terminal position along the second direction according to the first step, the number of steps of the lens moving from the first test terminal position to the first peak position is the same as the first step number of the lens moving from the first peak position to the first test terminal position along the first direction according to the first step. It should be noted that the number of steps of the lens moving from the first test terminal position to the first peak position refers to the number of steps generated between the beginning of the change of the sharpness of the projection image of the lens and the movement to the first peak position. In other words, the virtual step of the lens is not included.
[0075] In one embodiment, in step S1500, the motor is controlled to drive the lens to move from the first test terminal position to the second test terminal position along the second direction according to the first step, and the second sharpness value of the projection image of the lens is acquired every time the lens moves by the first step, until the second test terminal position where the second sharpness value decreases is reached, which includes step S1510. Details are as follows:
[0076] In step S1510, the position where the second sharpness value decreases continuously for the first set number of times is taken as the second test terminal position.
[0077] In the process of moving along the second direction to the second test terminal position, when the second sharpness value corresponding to the arrived position decreases continuously for a first set number of times. In the case of meeting this condition, the last position of the first set number of times of continuous decrease can be taken as the second test terminal position. It needs to be noted that since the second direction is from right to left, in the process of moving the lens from the first test terminal position to the second test terminal position, the first peak position can be passed through.
[0078] Exemplarily, the first set number of times is set to 3, then after the lens moves along the second direction from the first test terminal position according to the set first step distance, when the first sharpness corresponding to the arrived position decreases continuously for 3 times, the position where the first sharpness decreases for the third time is taken as the second test terminal position.
[0079] Step S1600, record the second step distance number of the lens moving along the second direction from the first test terminal position to the second test terminal position.
[0080] In the process of moving the lens along the second direction from the first test terminal position to the second test terminal position, the number of the lens moving along the second direction from the first test terminal position to the second test terminal position can be recorded as the second step distance number. It needs to be noted that in the process of moving the lens along the second direction from the first test terminal position to the second test terminal position, the motor will reverse rotation, so that the reverse engagement of the gear can be controlled to adjust the focal length of the lens.
[0081] However, in this process, there may be a case that the gear controlled by the motor has engaged the teeth, but the focal length of the lens has not changed. In the case that the focal length of the lens does not change, the sharpness of the projected image of the lens will also not change. Therefore, the case that the motor starts to reverse rotation and the gear has started to engage, but the sharpness of the projected image of the lens does not change is called the virtual step phenomenon of the lens.
[0082] On this basis, the number of teeth engaged by the gear in the process from the motor reversing rotation and driving the gear to start engaging to the sharpness of the projected image of the lens changing is defined as the virtual step number of the lens. That is to say, the second step distance number has actually included the virtual step number of the lens.
[0083] In an embodiment, S1600 records the second step distance number of the lens moving along the second direction from the first test terminal position to the second test terminal position, including step S1610. Details are as follows:
[0084] Step S1610, record the third step distance number of the lens moving along the second direction from the first peak position to the second test terminal position.
[0085] In the process of moving the lens from the first test terminal position to the second test terminal position along the second direction, the first peak position can be passed through, and thus the number of steps of moving the lens from the first peak position to the second test terminal position along the second direction can be recorded as the third step number.
[0086] In step S1700, the virtual step number of the lens is obtained according to the first step number and the second step number.
[0087] According to the first step number and the second step number recorded in the above content, the virtual step number of the lens can be obtained. The second step number can include the third step number of moving the lens from the first peak position to the second test terminal position along the second direction.
[0088] In an embodiment, step S1700 of obtaining the virtual step number of the lens according to the first step number and the second step number includes steps S1710-S1720, which are described in detail as follows.
[0089] In step S1710, a fourth step number is obtained according to the first step number and the third step number.
[0090] In the embodiment of the present application, the first step number and the third step number recorded are added to obtain the fourth step number.
[0091] In step S1720, the virtual step number of the lens is obtained according to the second step number and the fourth step number.
[0092] After obtaining the fourth step number, the second step number is subtracted from the fourth step number to obtain the virtual step number of the lens. It should be noted that according to the above content, the second step number actually also includes the virtual step number of the lens.
[0093] For example, according to the above content, the first step number of moving the lens from the first peak position to the first test terminal position along the first direction is 10, and the third step number of moving the lens from the first peak position to the second test terminal position along the second direction is 3. If the second step number of moving the lens from the first test terminal position to the second test terminal position along the second direction is 20, that is, in the process of moving the lens from the first test terminal position to the second test terminal position along the second direction according to the first step, from the beginning of the reverse rotation of the gear to the movement of the lens to the second test terminal position driven by the motor, the total number of teeth actually engaged by the gear is 20. According to the above content, the second step number actually also includes the virtual step number of the lens. On this basis, the virtual step number of the lens can be obtained by back calculation as 7.
[0094] According to the lens virtual step test method of the projection device provided in the embodiment, the motor is controlled to drive the lens to start from a set test starting position, move along a first direction according to a set first step distance, and obtain a first peak position corresponding to a first sharpness peak value of the lens; after the first peak position is obtained, the motor is controlled to drive the lens to continue moving along the first direction according to the first step distance to a first test terminal position; the first step distance number of the lens moving along the first direction from the first peak position to the first test terminal position is recorded; the motor is controlled to drive the lens to start from the first test terminal position, move along a second direction according to the first step distance, and move to a second test terminal position with a reduced second sharpness value; the second step distance number of the lens moving along the second direction from the first test terminal position to the second test terminal position is recorded; and the virtual step number of the lens is obtained according to the first step distance number and the second step distance number. In this way, the virtual step number of the lens can be obtained through automatic testing, which greatly improves the test efficiency and accuracy, saves labor cost, and saves the cumbersome process of manual testing.
[0095] <system embodiment>
[0096] In the embodiment, a lens virtual step test device 2000 of a projection device is also provided. As shown in Figure 7 The lens virtual step test device 2000 of the projection device includes a first test module 2100, a second test module 2200, a first recording module 2300, a third test module 2400, a second recording module 2500, and a step number calculation module 2600. Wherein:
[0097] The first test module 2100 is configured to control the motor to drive the lens to start from a set test starting position, move along a first direction according to a set first step distance, and obtain a first peak position corresponding to a first sharpness peak value of the lens at each first step distance; wherein the first direction is a direction in which the sharpness of the projected image of the lens first increases and then decreases;
[0098] The second test module 2200 is configured to control the motor to drive the lens to continue moving along the first direction according to the first step distance to a first test terminal position after the first peak position is obtained.
[0099] The first recording module 2300 is configured to record the first step distance number of the lens moving along the first direction from the first peak position to the first test terminal position.
[0100] The third test module 2400 is configured to control the motor to drive the lens to move from the first test terminal position to a second test terminal position in the second direction opposite to the first direction according to the first step distance, and obtain a second sharpness value of a projection image of the lens at each first step distance until the lens moves to the second test terminal position.
[0101] The second recording module 2500 is configured to record a second step distance number of the lens moving from the first test terminal position to the second test terminal position in the second direction.
[0102] The step number calculation module 2600 is configured to obtain a virtual step number of the lens according to the first step distance number and the second step distance number.
[0103] In another embodiment of the present application, the lens virtual step test device 2000 of the projection device further comprises a first control module and a first selection module. Wherein:
[0104] The first control module is configured to control the motor to drive the lens to move from a preset first mark position to a preset second mark position in the first direction according to a preset second step distance, and obtain a third sharpness value of a projection image of the lens at each second step distance; wherein the second step distance is greater than or equal to the first step distance.
[0105] The first selection module is configured to select a position as a test starting position according to the third sharpness value of the projection image of the lens at each position; wherein the test starting position is between the first mark position and a third peak position corresponding to a third sharpness peak value of the lens.
[0106] In another embodiment of the present application, the second test module can comprise a second control module. Wherein:
[0107] The second control module is configured to control the motor to drive the lens to continue to move in the first direction according to the first step distance for a preset step distance number, and reach the first test terminal position.
[0108] In an embodiment of the present application, the second recording module can comprise a third recording module. Wherein: the third recording module is configured to record a third step distance number of the lens moving from the first peak position to the second test terminal position in the second direction.
[0109] In another embodiment of the present application, the step number calculation module can comprise a first calculation module and a second calculation module. Wherein:
[0110] The first calculation module is configured to obtain a fourth step distance number according to the first step distance number and the third step distance number.
[0111] The second calculation module is used to obtain the number of virtual steps of the lens based on the number of second and fourth step distances.
[0112] In another embodiment of this application, the third testing module may include the first processing module. Wherein:
[0113] The first processing module is used to move until the position where the second resolution value decreases continuously for a first set number of times, which serves as the second test terminal position.
[0114] In another embodiment of this application, the first testing module may include a second processing module, a third processing module, and a fourth processing module. Wherein:
[0115] The second processing module is used to stop acquiring the first resolution value until the first resolution value decreases continuously for a second set number of times.
[0116] The third processing module is used to obtain the first sharpness peak value from the acquired first sharpness value; the fourth processing module is used to obtain the first peak position of the corresponding first sharpness peak value of the lens according to the correspondence between the first sharpness value and the lens position.
[0117] The lens virtual step testing device for projection equipment provided in the embodiments of this application can obtain the lens virtual step number of the projection equipment through automatic testing, which not only greatly improves the testing efficiency and accuracy and saves labor costs, but also eliminates the tedious process of manual testing.
[0118] It should be noted that although several modules or units of the system for executing actions are mentioned in the detailed description above, this division is not mandatory. In fact, according to the implementation method of this application, the characteristics and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the characteristics and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0119] <Equipment Example>
[0120] In this embodiment, a terminal device is also provided. For example... Figure 8 As shown, the terminal device 7000 may include a processor 7100 and a memory 7200. The memory 7200 stores computer instructions, which are executed by the processor 7100 to perform the steps in the lens virtual step test method of any embodiment of the present disclosure.
[0121] <Media Example>
[0122] In the embodiment, a computer readable storage medium is also provided, and the computer readable storage medium stores computer instructions. When the computer instructions are run by a processor, a lens virtual step test method of a projection device is implemented.
[0123] In the embodiment, a computer readable storage medium is also provided, and the computer readable storage medium stores computer instructions. When the computer instructions are run by a processor, a lens virtual step test method of a projection device is implemented.
[0124] The present application can be a system, a method, and / or a computer program product. The computer program product can include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present application.
[0125] The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium can be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or punched tape, a magneto-optical storage device, or any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
[0126] Computer readable program instructions described herein can be downloaded to respective computing / processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and / or a wireless network. The network can comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers. A network adapter card or network interface in each computing / processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing / processing device.
[0127] Computer readable program instructions for carrying out operations of the present application can be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate array (FPGA), or programmable logic array (PLA) can execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present application.
[0128] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0129] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0130] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0131] The flow diagrams and the block diagrams in the drawings are presented to illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flow diagrams and the block diagrams can represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logic functions. In some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks can sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and
[0132] Embodiments of the application have been described above, and the description is intended to be illustrative of the embodiments of the application and not exhaustive. Numerous modifications and adaptations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The scope of the application is defined by the appended claims.
Claims
1. A method for testing the virtual step of a projection device lens, the projection device comprising a lens and a motor for driving the lens to move for focusing, wherein the motor and the lens are focused via gear engagement, characterized in that... The method includes: The motor is controlled to drive the lens to move along a first direction from a set test starting position, according to a set first step distance. At each step distance, a first sharpness value of the image projected by the lens is obtained, until the first peak position of the lens corresponding to the first sharpness peak is obtained based on the change of the first sharpness value. The first direction is the direction in which the sharpness of the image projected by the lens first increases and then decreases. After obtaining the first peak position, control the motor to drive the lens to continue moving along the first direction to the first test terminal position according to the first step distance; Record the number of steps the lens moves along the first direction from the first peak position to the first test terminal position; The motor is controlled to drive the lens to move from the first test terminal position along a second direction opposite to the first direction according to the first step distance, and the second sharpness value of the image projected by the lens is obtained at each step distance until the second test terminal position after the second sharpness value is reduced. Record the number of second steps the lens moves along the second direction from the first test terminal position to the second test terminal position; The number of virtual steps of the lens is obtained based on the first step distance number and the second step distance number; wherein, the number of virtual steps of the lens is the number of teeth engaged by the gear during the process from the moment the motor rotates in the opposite direction and drives the gear to start meshing until the clarity of the image projected by the lens changes. The step of obtaining the virtual step number of the lens based on the first step distance number and the second step distance number includes: A fourth step distance is obtained based on the first step distance number and the third step distance number; wherein, the fourth step distance number is the sum of the first step distance number and the third step distance number, and the third step distance number is the number of steps the lens moves along the second direction from the first peak position to the second test terminal position; The number of virtual steps of the lens is obtained based on the second number of steps and the fourth number of steps: wherein the number of virtual steps of the lens is the difference between the second number of steps and the fourth number of steps.
2. The method according to claim 1, before controlling the motor to drive the lens to move along the first direction from a set test starting position according to a set first step distance, the method further includes: The motor is controlled to drive the lens to move from a preset first mark position to a preset second mark position along the first direction according to a set second step distance, and a third sharpness value of the image projected by the lens at each position is obtained after each second step distance; wherein the second step distance is greater than or equal to the first step distance; Based on the third sharpness value of the image projected by the lens at each position, a position is selected as the test starting position; wherein, the test starting position is located between the first marked position and the third peak position of the lens corresponding to the third sharpness peak.
3. The method according to claim 1, characterized in that, The control of the motor to drive the lens to continue moving along the first direction according to the first step distance to the first test terminal position includes: The motor is controlled to drive the lens, which continues to move a set number of steps along the first direction according to the first step distance, until it reaches the first test terminal position.
4. The method according to claim 1, characterized in that, The recording of the number of second steps the lens moves along the second direction from the first test terminal position to the second test terminal position includes: Record the number of third steps the lens moves along the second direction from the first peak position to the second test terminal position.
5. The method according to claim 1, characterized in that, The process of moving to the second test terminal position after the second resolution value has decreased includes: The position is determined by moving the device until it reaches a point where the second resolution value decreases a first set number of times consecutively, which is then used as the second test terminal position.
6. The method according to claim 1, characterized in that, The step of obtaining the first peak position of the lens corresponding to the first peak value based on the change of the first sharpness value includes: The acquisition of the first resolution value will stop when the first resolution value decreases for a second set number of consecutive times. From the obtained first sharpness value, the first sharpness peak value is obtained; Based on the correspondence between the first sharpness value and the lens position, the first peak position corresponding to the first sharpness peak value of the lens is obtained.
7. A lens virtual step testing device for a projection device, the projection device comprising a lens and a motor for driving the lens to move for focusing, wherein the motor and the lens are focused via gear engagement, characterized in that, The device includes: The first test module is used to control the motor to drive the lens to move along a first direction from a set test starting position, according to a set first step distance, and to obtain a first sharpness value of the image projected by the lens at each step distance, until the first peak position of the lens corresponding to the first sharpness peak is obtained according to the change of the first sharpness value; wherein, the first direction is the direction in which the sharpness of the image projected by the lens will first increase and then decrease. The second test module is used to control the motor to drive the lens to continue moving along the first direction to the first test terminal position after obtaining the first peak position; The first recording module is used to record the number of first step distances that the lens moves along the first direction from the first peak position to the first test terminal position. The third test module is used to control the motor to drive the lens to move from the first test terminal position along a second direction opposite to the first direction according to the first step distance, and to obtain the second sharpness value of the image projected by the lens every time it moves by the first step distance, until it moves to the second test terminal position after the second sharpness value decreases. The second recording module is used to record the number of second steps the lens moves along the second direction from the first test terminal position to the second test terminal position. The step count calculation module is used to obtain the virtual step count of the lens based on the first step distance number and the second step distance number; wherein, the virtual step count of the lens is the number of teeth engaged by the gear during the process from the motor rotating in the opposite direction and driving the gear to start meshing until the clarity of the image projected by the lens changes. The step count calculation module is specifically used to obtain a fourth step count based on the first step distance count and the third step distance count; wherein, the fourth step distance count is the sum of the first step distance count and the third step distance count, and the third step distance count is the number of steps the lens moves along the second direction from the first peak position to the second test terminal position; and to obtain the virtual step count of the lens based on the second step distance count and the fourth step distance count; wherein, the virtual step count of the lens is the difference between the second step distance count and the fourth step distance count.
8. A terminal device, characterized in that, It includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the lens virtual step test method of the projection device as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the lens virtual step test method for a projection device as described in any one of claims 1-6.
Citation Information
Patent Citations
Focusing method and device and projection equipment
CN110769230A
Automatic focusing method and device, electronic equipment and readable storage medium
CN110798667A