Method, device, equipment and storage medium for testing virtual step of lens of projection equipment
By automatically controlling the motor to move in the DLP optical machine lens and record the clarity changes, and calculate the number of virtual steps, the problem of low efficiency and accuracy of lens virtual steps in the existing technology is solved, and efficient and accurate lens virtual steps are achieved. .
Patent Information
- Application Number
- CN202211268498.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-17
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2042-10-17
AI Technical Summary
In the prior art, the DLP optical lens virtual step test efficiency and accuracy are low, and the testing process is cumbersome, and it relies on manual operation of the remote control to focus and observe clarity changes.
By selecting a reference value within the sharpness range of the lens projection screen, controlling the motor to move in a predetermined direction and obtaining the sharpness value, recording the number of steps, stopping movement according to the set conditions, and calculating the virtual step number of the lens.
Automatic testing is realized, which significantly improves testing efficiency and accuracy, saves labor costs, and simplifies the testing process.
Smart Images

Figure CN115767053B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical measurement technology, and more specifically, to a method, device, terminal device and computer-readable storage medium for testing virtual step of a lens of a projection device. Background Art
[0002] The design of DLP optical machine lens will include a motor, and the focal length of the lens is adjusted by controlling the rotation of the motor to ensure the clarity of the projected image. The motor and the lens are engaged by gears to achieve the purpose of focusing. In the performance test of DLP optical machine, the test of the virtual step of the lens of the projection device is usually involved. At present, the method of testing the virtual step of the DLP optical machine lens is usually to manually control the remote control, and the remote control is manually operated to control the motor to drive the lens for focusing. In the process of focusing the lens by manually controlling the remote control, it is necessary to manually test the number of virtual steps of the lens by observing the change in the clarity of the projected image with the human eye. For this method of obtaining the number of virtual steps of the lens of the projection device through manual testing, not only the test efficiency is low, the accuracy is also low, and it is more cumbersome. Summary of the invention
[0003] An object of the embodiments of the present disclosure is to provide a new technical solution for a method for testing the virtual step of a lens of a projection device.
[0004] According to the first aspect of the present disclosure, a method for testing the virtual step of a lens of a projection device is provided. The method for testing the virtual step of a lens of a projection device comprises: selecting a clarity value as a reference value within the clarity range of the image projected by the lens; controlling the motor to drive the lens to move from the first stroke end position along the first direction toward the second stroke end position according to the set first step distance, and obtaining the first clarity value of the image projected by the lens at each movement of the first step distance, until it moves to the first test terminal position where the first clarity value reaches the reference value; controlling the second step distance set by the motor to drive the lens to move from the first test terminal position along the second direction opposite to the first direction, and obtaining the second clarity value of the image projected by the lens at each movement of the second step distance, until the first set condition is met and the lens stops moving and reaches the second test terminal position; wherein the first set condition includes the second clarity value decreasing for a set number of consecutive times; recording the number of first step distances that the lens moves from the first test terminal position to the second test terminal position along the second direction; and obtaining the number of virtual steps of the lens according to the number of first step distances and the set number of times.
[0005] According to a second aspect of the present disclosure, a lens virtual step test device for a projection device is also provided. The lens virtual step test device for a projection device comprises a first test module, a first control module, a second control module, a first recording module and a step number calculation module. Wherein:
[0006] The first test module is used to select a clarity value as a reference value within the clarity range of the image projected by the lens;
[0007] A first control module is used to control the motor to drive the lens to move from a first stroke endpoint position along a first direction toward a second stroke endpoint position according to a set first step distance, and obtain a first definition value of a picture projected by the lens every time the lens moves a first step distance, until the lens moves to a first test terminal position where the first definition value reaches a reference value;
[0008] A second control module is used to control the motor to drive the lens to move from the first test terminal position in a second direction opposite to the first direction according to a set second step, and obtain a second definition value of the image projected by the lens at each second step, until the first set condition is met and the lens stops moving and reaches the second test terminal position; wherein the first set condition includes that the second definition value decreases for a set number of consecutive times;
[0009] A first recording module, used for recording the number of first steps that the lens moves along the second direction from the first test terminal position to the second test terminal position;
[0010] The step number calculation module is used to obtain the number of virtual steps of the lens according to the number of first step distances and the set number of times.
[0011] According to a third aspect of the present disclosure, a terminal device is also provided, including a processor and a memory, the memory storing programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the lens virtual step testing method of the projection device as described in any one of the first aspects are implemented.
[0012] According to a fourth aspect of the present disclosure, a computer-readable storage medium is further provided, characterized in that a program or instruction is stored on the computer-readable storage medium, and when the program or instruction is executed by a processor, the steps of the lens virtual step testing method of a projection device as described in any one of the first aspects are implemented.
[0013] The lens virtual step test method of the projection device provided in the embodiment of the present application is as follows: within the clarity range of the image projected by the lens, a clarity value is selected as a reference value; the lens is driven to move from the first stroke endpoint position along the first direction toward the second stroke endpoint position to obtain the first clarity value of the image projected by the lens, until it moves to the first test terminal position where the first clarity value reaches the reference value; the second step distance set by the control motor is driven to move from the first test terminal position along the second direction opposite to the first direction to obtain the second clarity value of the image projected by the lens, until the first set condition is met and the movement is stopped to reach the second test terminal position; the number of first step distances that the lens moves from the first test terminal position to the second test terminal position along the second direction is recorded; according to the number of first step distances and the set number of times, the number of virtual steps of the lens is obtained. In this way, the number of virtual steps of the lens can be obtained through automatic testing, which not only greatly improves the test efficiency and accuracy, saves labor costs, but also eliminates the tedious process of manual testing.
[0014] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0016] Figure 1 is a hardware configuration diagram of a terminal device for implementing an embodiment;
[0017] Figure 2 is a flow chart of a method for testing a lens virtual step of a projection device according to an embodiment;
[0018] Figure 3 is a schematic diagram of a method for testing virtual step of a lens of a projection device according to yet another embodiment;
[0019] Figure 4 is a schematic diagram of a method for testing virtual step of a lens of a projection device according to yet another embodiment;
[0020] Figure 5 is a schematic diagram of a method for testing virtual step of a lens of a projection device according to yet another embodiment;
[0021] Figure 6 is a schematic diagram of a method for testing virtual step of a lens of a projection device according to yet another embodiment;
[0022] Figure 7 is a schematic diagram of a method for testing virtual step of a lens of a projection device according to yet another embodiment;
[0023] Figure 8 is a schematic diagram of a method for testing virtual step of a lens of a projection device according to yet another embodiment;
[0024] Fig. 9 is a schematic diagram of a lens virtual step testing device for a projection device that can be used to implement an embodiment;
[0025] Fig.10 A schematic diagram of the structure of a terminal device according to an embodiment. DETAILED DESCRIPTION
[0026] 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 of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0027] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0028] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0029] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0030] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0031] <Implementation Environment and Hardware Configuration>
[0032] Figure 1 The hardware configuration structure diagram of the terminal device 1000 can be applied to the lens virtual step testing method of the projection device according to the embodiment of the present invention.
[0033] like Figure 1As 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. Among them, the processor 1100 is used to execute a computer program, and the computer program may use an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 1200 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1300 is a physical interface, such as a USB interface or a headphone interface, etc. The display device 1400 may be a display screen, and the display screen may be a touch display screen. The input device 1500 may include a keyboard, a mouse, etc., and may also include a touch device.
[0034] In this embodiment, the memory 1200 of the terminal device 1000 is used to store a computer program, and the computer program is used to control the processor 1100 to operate to implement the lens virtual step test method of the projection device according to any embodiment. The technician can design the computer program according to the scheme disclosed in this specification. How the computer program controls the processor 1100 to operate is well known in the art, so it will not be described in detail here.
[0035] It should be understood by those skilled in the art that although Figure 1 Multiple devices of the terminal device 1000 are shown in the figure. The terminal device 1000 of the embodiment of the present disclosure may only involve some of the devices, or may also include other devices, which is not limited here.
[0036] <Method Example>
[0037] Figure 2 A method for testing the virtual step of a lens of a projection device according to an embodiment is shown. The method for testing the virtual step of a lens of a projection device can be performed as follows: Figure 1 The terminal device 1000 is shown as an implementation.
[0038] The lens virtual step test method of the projection device includes the following steps S1000 to S1400, which are described in detail below:
[0039] Step S1000: selecting a clarity value as a reference value within the clarity range of the image projected by the lens.
[0040] In the embodiments of the present application, Figure 3As shown, the projection device may include a lens and a motor that drives the lens to move for focusing. The lens in the projection device may be a DLP optical machine lens. The motor in the projection device can drive the lens to move, so that the lens can be focused. Specifically, the motor and the lens are engaged by gears to achieve the purpose of focusing. Among them, the motor can drive the gears to engage, and as the gears continue to engage the teeth on the gears, the focal length of the lens will change. By adjusting the focal length of the lens, the clarity of the projected 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 embodiment of the present application, every time the motor moves one step, the gear will engage the next tooth, and the focal length of the lens will change, thereby changing the clarity of the projected image.
[0041] In the embodiment of the present application, from the time when the motor starts to rotate in the opposite direction to the time when the clarity of the image projected by the lens changes, the number of teeth engaged by the gear under the control of the motor is equal to the number of steps moved by the motor, that is, the number of virtual steps of the lens. In the following content, the number of steps moved by the motor can be described as the number of steps moved by the lens. That is to say, as the lens moves, the focal length of the lens will change, and thus the clarity of the image projected by the lens will also change.
[0042] like Figure 3 As shown, a projection screen can be placed in front of the lens, and the distance between the projection screen and the lens remains unchanged. When the lens projects a projection image onto the projection screen, a camera can be set up behind the lens. Figure 4 As shown, by capturing and shooting the image on the projection screen with the camera, the image of each area in the projection screen can be obtained, and the clarity value corresponding to each area in the projection screen can be obtained in real time by identifying the image. The process of obtaining the clarity values corresponding to the images of each area in the projection screen in real time by identifying the images of each area in the projection screen can be understood by those skilled in the art and will not be described in detail here. On this basis, by calculating the average value of the clarity values corresponding to each area in the current projection screen, the clarity value corresponding to the projection screen of the lens at the current focal length is obtained. In addition, the clarity value corresponding to the projection screen of the lens at the current focal length can also be obtained by other methods, which are not limited here.
[0043] In addition, when the motor drives the lens to move to various positions, the clarity of the image projected by the lens will change when the focal length of the lens changes and the distance between the lens and the projection screen remains unchanged. In other words, the projection image generated by the lens moving to each position has a corresponding clarity value. Among them, the maximum clarity value and the minimum clarity value corresponding to the projection image generated by the lens at each position can constitute the clarity range of the lens projection image. Within the clarity range, one of the clarity values can be selected as the reference value. The process of selecting a clarity value from the clarity range is described in detail in the following content.
[0044] In the embodiment of the present application, step S1000, within the clarity range of the image projected by the lens, selects a clarity value as a reference value, including steps S1010 to S1020. The following is a detailed description:
[0045] Step S1010, controlling the motor to drive the lens to move from one stroke endpoint position to another stroke endpoint according to the set third step distance, and obtaining a third definition value of the image projected by the lens every time the lens moves a third step distance.
[0046] In one embodiment of the present application, the motor can be controlled to drive the lens to move from one stroke endpoint position to another stroke endpoint along the first direction according to the third step. In the process of the lens moving from one stroke endpoint position to another stroke endpoint along the first direction according to the third step, the direction of movement of the laser head can be the first direction. In the embodiment of the present application, the first direction can be the direction from left to right. On this basis, one stroke endpoint in the embodiment of the present application can be the leftmost position in the lens movement trajectory, and the other stroke endpoint can be the rightmost position. In the process of the lens moving from a leftmost position to a rightmost position, the corresponding clarity value of the lens projected picture can be obtained every time the lens moves a third step, and it can be used as the third clarity value. By analogy, the third clarity value of the picture projected by the lens at each position can be obtained, and by analogy, the following can be finally obtained. Figure 5 The graph shown.
[0047] like Figure 5As shown, the curve graph can represent the corresponding relationship between the position reached by the lens movement and the third clarity value. Among them, the value represented by the horizontal axis in the curve graph can be the number of third steps of the lens moving in the corresponding direction, and the value represented by the vertical axis can be the third clarity values corresponding to the positions reached by the lens. The third step number can be expressed as the number of steps of the lens movement. It should be noted that in the embodiment of the present application, the various positions of the lens are generated according to the position of the lens after moving according to the corresponding step, and are not pre-set. The specific value of the third step can be set manually according to the actual situation, and is not limited here.
[0048] In an embodiment of the present application, the first direction may be from left to right, and the second direction may be from right to left. In some other embodiments of the present application, the first direction may also be from right to left, and correspondingly, the second direction may be from left to right, which is not limited here.
[0049] Step S1020 , searching for a target interval with the largest third definition change according to a set interval length based on a correspondence between the third definition value and the third step number.
[0050] In the embodiments of the present application, Figure 5 The curve graph shown can represent the correspondence between the third clarity value and the third step number. In other words, in the process of the lens moving according to the third step, each third step number can correspond to the third clarity value of the lens projection picture. In other words, every time the lens moves a third step, the lens can move from the original position to the next position along the corresponding direction. It should be noted that the position movement of the lens here can be manifested as a change in the focal length of the lens, and the third clarity value of the projected picture will also change accordingly. According to the above content, the third step number can represent the number of steps that the lens moves along the third direction according to the third step. In the process of the lens moving from the leftmost position to the rightmost position, a correspondence between the third step number and the third clarity value can be generated. After obtaining the corresponding relationship, the target interval with the largest change in the third clarity value can be found according to the set interval length.
[0051] In the embodiment of the present application, step S1020, according to the correspondence between the third definition value and the third step number, searches for the target interval with the largest third definition change according to the set interval length, including steps S1021 to S1023. The following is a detailed description:
[0052] Step S1021, according to the correspondence between the third definition value and the third step number, the third step number corresponding to the third definition peak value is obtained as the demarcation number.
[0053] In the embodiment of the present application, after obtaining the correspondence between the third clarity value and the third step number, the maximum value of the third clarity value, that is, the third clarity peak value, can be obtained. On this basis, according to the correspondence between the third clarity peak value and the third step number, the third step number corresponding to the third clarity peak value can be obtained, and the third step number can be defined as the demarcation number.
[0054] Step S1022, based on the comparison result between the half number of the third step and the demarcation number, determine the search segment with the demarcation number as the demarcation point; wherein the half number of the third step is half of the total number of the third step, and when the demarcation number is less than the half number of the third step, the search segment may be the segment on the left side of the demarcation number, and when the demarcation number is greater than the half number of the third step, the search segment may be the segment on the right side of the demarcation number.
[0055] In an embodiment of the present application, after obtaining the demarcation number, the search segment can be determined based on the relationship between the demarcation number and the third step half number. Among them, the search interval can use the demarcation number as a demarcation point. Specifically, the demarcation number and the third step half number can be compared to determine the positional relationship between the search segment and the demarcation number. When the demarcation number is less than the third step half number, the search segment can be determined to be the left segment of the demarcation number; when the demarcation number is greater than the third step number, the search segment can be determined to be the right segment of the demarcation number; when the demarcation number is equal to the third step number, the search interval can be determined to be any one of the left segment or the right segment of the demarcation number. The third step half number can be half of the total number of the third step.
[0056] Exemplarily, when the demarcation number is 27 and the third step number is 74, the third step half number is 37. In this case, it can be determined that the demarcation number is less than the third step number, and the search segment at this time can be determined to be the left segment of the demarcation number, that is, the corresponding third step number is the segment between step 0 and step 27.
[0057] It should also be noted that in the embodiments of the present application, the case where the number of demarcations is less than the third step number is used as an example for detailed description. If the number of demarcations is greater than the third step number, the search section can be determined as the right area of the demarcation number, and the direction of the motor driving the lens is completely opposite to the case where the search area is located in the right area of the demarcation number, which will be explained in detail in the following content.
[0058] Step S1023 , in the search segment, according to the correspondence between the third definition value and the third step number, and according to the set interval length, search for the target interval with the largest third definition change.
[0059] After the search section is determined, the target interval with the largest change in the third definition value can be searched according to the corresponding relationship between the third definition value and the third step number and the set interval length.
[0060] In the embodiment of the present application, step S1023, in the search segment, according to the correspondence between the third definition value and the third step number, according to the set interval length, searches for the target interval with the largest third definition change, including steps S1023A to S1023C. The following is a detailed description:
[0061] Step S1023A, select three data pairs according to the correspondence between the third clarity value and the third step number, wherein the first data pair is the third clarity peak value and the boundary number, the third step numbers of the second data pair and the third data pair are located on both sides of the boundary number, and the third clarity values of the second data pair and the third data pair are both half of the third clarity peak value.
[0062] like Figure 6 As shown, according to the corresponding relationship between the third definition value and the third step number, three data pairs can be selected. Among them, the first data pair is the demarcation number and the third definition peak value, the third step numbers corresponding to the second data pair and the third data pair are located on both sides of the demarcation number, and the third definition values corresponding to the second data pair and the third data pair are both half of the third definition peak value.
[0063] Step S1023B, fitting a quadratic function curve according to the three data pairs.
[0064] In the embodiment of the present application, each data pair can be regarded as a coordinate point on the corresponding relationship curve between the third step number and the third clarity value, for example Figure 6 Point 1, point 2 and point 3 are shown in FIG. The third step number can be used as the value corresponding to each coordinate point on the horizontal axis, and the third clarity value can also be used as the value corresponding to each coordinate point on the vertical axis. Figure 7 As shown, a quadratic function curve can be fitted based on the coordinate information of these three data pairs.
[0065] For example, the third step number of the first data pair is 29, and the corresponding third definition value is 18; the third step number of the second data pair is 21, and the corresponding third definition value is 8; the third step number of the third data pair is 42, and the corresponding third definition value is 9. Thus, the positions of the three coordinate points can be obtained in sequence, which are (29, 18), (21, 8) and (42, 9). According to the three left points, they can be substituted into the quadratic function formula, that is, y = ax 2+bx+c. Thus, the specific values of the unknown constants a, b and c in the quadratic function curve can be obtained, so that these three data pairs can be fitted into a quadratic function curve.
[0066] Step S1023C: within the search segment, according to the quadratic function curve, search for the target interval with the largest third definition change according to the set interval length.
[0067] In the search interval, according to the quadratic function curve, the target interval with the largest change in the third definition can be found according to the set interval length. Figure 8 As shown, within the set interval length, the coordinate points at both ends of the interval length can be connected and their slopes can be calculated. It should be noted that the coordinate points at both ends of the interval length in the above content are points on the obtained quadratic function curve, and the interval length can be set manually according to actual conditions, and there is no restriction here.
[0068] Exemplarily, if the set interval length is 3, the slope of the line connecting the coordinate points at both ends of the interval length can be calculated for every three third steps, that is, one interval length. If within an interval length in the search interval, the coordinate points at both ends of the length interval are (8, 10) and (9, 12) respectively. According to the slope calculation formula, the slope of the line connecting these two points can be expressed as (12-10) / (9-8). In other words, the slope of the line connecting these two points is 2. In other words, the change value corresponding to the third clarity within this interval length is 2. According to this method, the change value corresponding to the third clarity in the determined search interval segment is calculated according to the set interval length. After obtaining the change values corresponding to all interval lengths in the search interval, the interval corresponding to the maximum change value can be selected as the target interval.
[0069] Step S1030: selecting a third definition value as a reference value within the target interval.
[0070] According to the above content, after determining the target interval, the range of the third step number within the target interval can be obtained. According to the corresponding relationship between the third step number and the third clarity value, the range of the third clarity value corresponding to the third step number within the target interval can be obtained. On this basis, any third clarity value within the range can be selected as the reference value.
[0071] For example, if the third step distance in the target interval is from step 8 to step 10, the third clarity value corresponding to step 8 is 10, and the third clarity value corresponding to step 10 is 12, then the range of the third clarity value corresponding to the target interval is 10 to 12. On this basis, the third clarity value of 11 can be selected from the range as the reference value.
[0072] Step S1100, controlling the motor to drive the lens to move from the first stroke endpoint position along the first direction toward the second stroke endpoint position according to the set first step distance, and obtaining the first clarity value of the image projected by the lens every time it moves a first step distance, until it moves to the first test terminal position where the first clarity value reaches the reference value.
[0073] The lens is driven to move from the first stroke endpoint position to the second stroke endpoint position in the first direction according to the first step distance. When each first step distance is moved, the first clarity value of the lens projection picture can be obtained in real time until the position where the first clarity value reaches the reference value is moved to, and the position is used as the first test terminal position. In the embodiment of the present application, the first stroke endpoint position can be the leftmost position, and the second stroke endpoint position can be the rightmost position.
[0074] In addition, if the number of divisions is greater than the third step number, the search section can be determined as the area to the right of the number of divisions. In this case, when the motor drives the lens to move to the first test terminal position, the lens can be moved from the second stroke terminal position along a second direction opposite to the first direction according to the first step until the position where the first clarity value reaches the reference value is used as the first test terminal position.
[0075] In the embodiment of the present application, step S1100 controls the motor to drive the lens to move from the first stroke endpoint position along the first direction toward the second stroke endpoint position according to the set first step distance, and obtains the first definition value of the image projected by the lens at each first step distance, until the lens moves to the first test terminal position where the first definition value reaches the reference value, including step S1110. The following is a detailed description:
[0076] Step S1110, until the position where the first clarity value reaches the reference value is moved to be the first test terminal position.
[0077] In an embodiment of the present application, when the lens moves toward the first direction according to the first step, when the first clarity corresponding to the position to which the lens moves is a reference value, the position can be used as the first test terminal position.
[0078] Step S1200, controlling 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 a set second step distance, and obtaining a second clarity value of the image projected by the lens each time it moves a second step distance, until the first set condition is met and the movement is stopped, and the second test terminal position is reached; wherein the first set condition includes the second clarity value decreasing for a set number of consecutive times.
[0079] After determining the first test terminal position, the lens is driven to move from the first test terminal position along the second direction according to the set second step distance. At each movement of the second step distance, a second definition value corresponding to the lens projection picture is obtained in real time.
[0080] When the lens movement process meets the first set condition, the movement will stop, and the current position will be used as the second test terminal position. The first set condition includes the second clarity value decreasing for a set number of consecutive times. In simple terms, in the process of the lens moving from the first test terminal position to the second test terminal position along the second direction according to the second step distance, when the second clarity value corresponding to the position to which the lens moves decreases for multiple consecutive times, the movement will stop after decreasing for a set number of times, and the stopped position will be used as the second test terminal position. The set number of continuous decreases here can be set manually according to actual conditions, and is not limited here. It should be noted that in the embodiments of the present application, the second step distance can be less than or equal to the first step distance.
[0081] Correspondingly, when the number of boundaries is greater than the number of third steps, after determining the first test terminal position, the lens can be driven to move along the first direction from the first test terminal position according to the set second step. When each second step is moved, the second clarity value corresponding to the lens projection picture can be obtained in real time. When the lens movement process meets the first set condition, the movement will stop, and the position at this time will be used as the second test terminal position.
[0082] In the embodiment of the present application, step S1200 controls the second step distance set by the motor, drives the lens to move from the first test terminal position in a second direction opposite to the first direction, and obtains the second definition value of the image projected by the lens at each second step distance, until the first set condition is met and the movement stops, and the second test terminal position is reached, including step S1210. The following is a detailed description:
[0083] Step S1210, stop moving until the position that meets the first set condition is set as the second test terminal position.
[0084] In an embodiment of the present application, after reaching a position that satisfies the first set condition, the lens stops moving, and the position at this time is used as the second test terminal position.
[0085] Step S1300, recording the number of first steps that the lens moves along the second direction from the first test terminal position to the second test terminal position.
[0086] In an embodiment of the present application, when the lens moves from the first test terminal position to the second test terminal position along the second direction, the number of steps of the lens movement in the process is recorded and used as the first step number.
[0087] It should be noted that during this process, the gears controlled by the motor may have engaged, but the focal length of the lens has not changed. If the focal length of the lens does not change, the clarity of the image projected by the lens will not change. Therefore, the situation where the motor starts to rotate in the opposite direction and the gears have begun to engage, but the clarity of the image projected by the lens has not changed, is called the virtual step phenomenon of the lens.
[0088] On this basis, the number of teeth that the gear engages from the time the motor rotates in the opposite direction and drives the gear to the time the clarity of the lens projection image changes is defined as the number of virtual steps of the lens. In other words, the number of first steps actually includes the number of virtual steps of the lens.
[0089] Step S1400, obtaining the number of virtual steps of the lens according to the number of first steps and the set number of times.
[0090] According to the above content, it can be known that the first step number actually includes the number of virtual steps of the lens. On this basis, the number of steps of the lens can be obtained according to the first step number and the set number of times. In the process of the lens moving from the first test terminal position to the second test terminal position along the second direction, since the first step number is the number of steps that the motor reverses and drives the lens to move from the first test terminal position to the second test terminal position along the second direction, the first step number includes the number of virtual steps of the lens and the second step number. Among them, the second step number can be the number of steps generated from the change in the clarity of the lens projected image to the arrival at the second test terminal position in the process of the lens moving from the first test terminal position to the second test terminal position along the second direction.
[0091] According to the above content, in the embodiment of the present application, when the number of demarcations is less than the number of third steps, the third clarity value corresponding to the number of third steps in the second direction of the search interval located on the left side of the number of demarcations has a gradually decreasing trend. On this basis, the number of second steps is actually equal to the set number of times. Therefore, the number of virtual steps of the lens can be obtained by subtracting the number of first steps from the set number of times.
[0092] The lens virtual step test method of the projection device provided in the embodiment of the present application is as follows: within the clarity range of the image projected by the lens, a clarity value is selected as a reference value; the lens is driven to move from the first stroke endpoint position along the first direction toward the second stroke endpoint position to obtain the first clarity value of the image projected by the lens, until it moves to the first test terminal position where the first clarity value reaches the reference value; the motor is controlled to drive the lens to move from the first test terminal position along the second direction opposite to the first direction according to the set second step distance, to obtain the second clarity value of the image projected by the lens, until the first set condition is met and the movement is stopped to reach the second test terminal position; the number of first step distances that the lens moves from the first test terminal position to the second test terminal position along the second direction is recorded; according to the number of first step distances and the set number of times, the number of virtual steps of the lens is obtained. In this way, the number of virtual steps of the lens can be obtained through automatic testing, which not only greatly improves the test efficiency and accuracy, saves labor costs, but also eliminates the tedious process of manual testing.
[0093] <System Embodiment>
[0094] In this embodiment, a lens virtual step testing device 2000 of a projection device is also provided. Fig. 9 As shown, the lens virtual step testing device 2000 of the projection device includes a first testing module 2100 , a first control module 2200 , a second control module 2300 , a first recording module 2400 and a step number calculation module 2500 .
[0095] in:
[0096] The first test module 2100 is used to select a clarity value as a reference value within the clarity range of the image projected by the lens;
[0097] The first control module 2200 is used to control the motor to drive the lens to move from the first stroke endpoint position along the first direction toward the second stroke endpoint position according to the set first step distance, and obtain the first definition value of the image projected by the lens every time the lens moves a first step distance, until the lens moves to the first test terminal position where the first definition value reaches the reference value;
[0098] The second control module 2300 is used to control the motor to drive the lens to move from the first test terminal position in a second direction opposite to the first direction according to a set second step, and obtain a second definition value of the image projected by the lens at each second step, until the first set condition is met and the lens stops moving and reaches the second test terminal position; wherein the first set condition includes that the second definition value decreases for a set number of consecutive times;
[0099] The first recording module 2400 is used to record the number of first steps that the lens moves along the second direction from the first test terminal position to the second test terminal position;
[0100] The step number calculation module 2500 is used to obtain the number of virtual steps of the lens according to the number of first steps and the set number of times.
[0101] In another embodiment of the present application, the first test module 2100 may include a third control module, a first processing module, and a second processing module. Among them: the third control module is used to control the motor to drive the lens to move from one stroke end point position to another stroke end point according to the set third step distance, and obtain the third clarity value of the image projected by the lens every time it moves a third step distance; the first processing module is used to find the target interval with the largest third clarity change according to the set interval length based on the correspondence between the third clarity value and the number of third steps; the second processing module is used to select a third clarity value as a reference value within the target interval.
[0102] In another embodiment of the present application, the first processing module may include a third processing module, a fourth processing module and a fifth processing module. Among them: the third processing module is used to obtain the third step number corresponding to the third clarity peak value as the demarcation number according to the correspondence between the third clarity value and the third step number; the fourth processing module is used to determine the search segment with the demarcation number as the demarcation point according to the comparison result between the third step half number and the demarcation number; the fifth processing module is used to search for the target interval with the largest third clarity change according to the set interval length within the search segment according to the correspondence between the third clarity value and the third step number.
[0103] In another embodiment of the present application, the fifth processing module may include a sixth processing module, a first fitting module and a seventh processing module. Among them: the sixth processing module is used to select three data pairs according to the corresponding relationship between the third clarity value and the third step number, wherein the first data pair is the third clarity peak value and the boundary number, the third step numbers of the second data pair and the third data pair are located on both sides of the boundary number, and the third clarity values of the second data pair and the third data pair are both half of the third clarity peak value; the first fitting module is used to fit a quadratic function curve according to the three data pairs; the seventh processing module is used to find the target interval with the largest third clarity change according to the quadratic function curve and the set interval length within the search section.
[0104] In another embodiment of the present application, the first control module 2200 may include an eighth processing module, wherein: the eighth processing module is used to move to a position where the first clarity value reaches a reference value as the first test terminal position.
[0105] In another embodiment of the present application, the second control module 2300 may include a ninth processing module, wherein: the ninth processing module is configured to stop moving until a position that satisfies the first set condition is reached, and the position is used as the second test terminal position.
[0106] According to the lens virtual step testing device of the projection device provided in the embodiment of the present application, the number of virtual steps of the lens can be obtained through automatic testing, which not only greatly improves the testing efficiency and accuracy, saves labor costs, but also eliminates the tedious process of manual testing.
[0107] It should be noted that, although several modules or units of the system for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the implementation method of the present application, the characteristics and functions of two or more modules or units described above can be concretized in one module or unit. On the contrary, the characteristics and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0108] <Equipment Embodiment>
[0109] In this embodiment, a terminal device is also provided. Fig.10 As shown, the terminal device 7000 may include a processor 7100 and a memory 7200, wherein the memory 7200 stores computer instructions, and when the computer instructions are executed by the processor 7100, the steps in the lens virtual step testing method of the projection device of any embodiment of the present disclosure are executed.
[0110] <Medium Example>
[0111] In this embodiment, a computer-readable storage medium is further provided, on which computer instructions are stored. When the computer instructions are executed by a processor, a lens virtual step testing method for a projection device as in any method embodiment of the present invention is implemented.
[0112] In this embodiment, a computer-readable storage medium is further provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the steps in the lens virtual step testing method for a projection device in any method embodiment of the present invention are implemented.
[0113] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing the processor 1100 to implement various aspects of the present invention.
[0114] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical 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. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, 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 disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0115] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0116] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0117] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0118] These computer-readable program instructions can be provided to a processor 1100 of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor 1100 of the computer or other programmable data processing device, a device for implementing the functions / actions specified in one or more blocks in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0119] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0120] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and a part of a module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0121] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A method for testing virtual step of a lens of a projection device, wherein the projection device comprises a lens and a motor for driving the lens to move for focusing, characterized in that: The method comprises: Within the clarity range of the image projected by the lens, a clarity value is selected as a reference value; Controlling the motor to drive the lens to move from a first stroke endpoint position along a first direction toward a second stroke endpoint position according to a set first step distance, and obtaining a first definition value of a picture projected by the lens at each first step distance movement until the lens moves to a first test terminal position where the first definition value reaches the reference value; Control the motor to drive the lens to move from the first test terminal position in a second direction opposite to the first direction according to a set second step, and obtain a second definition value of the image projected by the lens at each second step, until the first set condition is met and the lens stops moving and reaches the second test terminal position; wherein the first set condition includes that the second definition value decreases for a set number of consecutive times; Recording the number of first steps that 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 according to the number of first steps and the set number of times; wherein the number of virtual steps refers to the number of steps that the motor needs to move from the start of reverse rotation to the change in clarity of the lens projection image.
2. The method according to claim 1, characterized in that The second step distance is smaller than or equal to the first step distance.
3. The method according to claim 1, characterized in that The step of selecting a clarity value as a reference value within the clarity range of the image projected by the lens comprises: Controlling the motor to drive the lens to move from one stroke endpoint position to another stroke endpoint according to a set third step distance, and obtaining a third definition value of the image projected by the lens every time the lens moves a third step distance; According to the correspondence between the third definition value and the third step number, searching for a target interval with the largest third definition change according to a set interval length; In the target interval, a third definition value is selected as a reference value.
4. The method according to claim 3, characterized in that The step of searching, according to the correspondence between the third definition value and the third step number, a target interval having the largest third definition change according to a set interval length, comprises: According to the corresponding relationship between the third definition value and the third step number, the third step number corresponding to the third definition peak value is obtained as the demarcation number; According to the comparison result between the third step half number and the demarcation number, determining the search section with the demarcation number as the demarcation point; wherein the third step half number is half of the third step total number, and when the demarcation number is less than the third step half number, the search section is the section on the left side of the demarcation number, and when the demarcation number is greater than the third step half number, the search section is the section on the right side of the demarcation number; In the search section, according to the correspondence between the third definition value and the third step number, the target interval with the largest third definition change is searched according to the set interval length.
5. The method according to claim 4, characterized in that The step of searching, within the search section, according to the correspondence between the third definition value and the third step number and according to the set interval length, a target interval with the largest change in the third definition may also include: According to the corresponding relationship between the third definition value and the third step number, three data pairs are selected, wherein the first data pair is the third definition peak value and the boundary number, the third step numbers of the second data pair and the third data pair are located on both sides of the boundary number, and the third definition values of the second data pair and the third data pair are both half of the third definition peak value; According to the three data pairs, a quadratic function curve is fitted; In the search section, according to the quadratic function curve, the target interval with the largest third definition change is searched according to the set interval length.
6. The method according to claim 1, characterized in that The step of moving to a first test terminal position where the first clarity value reaches the reference value comprises: Until it moves to a position where the first clarity value reaches the reference value, which is used as the first test terminal position.
7. The method according to claim 1, characterized in that The step of stopping the movement until the first set condition is met and reaching the second test terminal position comprises: The movement is stopped until a position that satisfies the first set condition is reached, which is used as the second test terminal position.
8. A device for testing virtual step of a lens of a projection device, the projection device comprising a lens and a motor for driving the lens to move for focusing, characterized in that: The device comprises: A first testing module, used to select a clarity value as a reference value within the clarity range of the image projected by the lens; A first control module is used to control the motor to drive the lens to move from a first stroke endpoint position along a first direction toward a second stroke endpoint position according to a set first step distance, and obtain a first definition value of the image projected by the lens every time the lens moves a first step distance, until the lens moves to a first test terminal position where the first definition value reaches the reference value; A second control module is used to control the motor to drive the lens to move from the first test terminal position in a second direction opposite to the first direction according to a set second step, and obtain a second definition value of the image projected by the lens at each second step, until the first set condition is met and the lens stops moving and reaches the second test terminal position; wherein the first set condition includes that the second definition value decreases for a set number of consecutive times; A first recording module, used for recording the number of first steps that the lens moves along the second direction from the first test terminal position to the second test terminal position; The step number calculation module is used to obtain the number of virtual steps of the lens according to the number of first steps and the set number of times; wherein the number of virtual steps refers to the number of steps that the motor needs to move from the start of reverse rotation to the change in the clarity of the lens projection picture.
9. A terminal device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the lens virtual step testing method of the projection device as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the lens virtual step testing method of the projection device according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Projector focusing method, projector focusing device and projector
CN110996085A
Projection Focusing Method, Projection Focusing Apparatus, Projector, And Readable Storage Medium
US20220321848A1