Lens zoom control system, method and device, electronic equipment and storage medium
Through the lens zoom control system, magnetic components and energized components are used to drive the moving lens to realize the lens zoom of the medical endoscope, which solves the problem of unclear imaging when zooming in and out and adjusting the focal length, showing more details and clearly displaying distant and near objects.
Patent Information
- Application Number
- CN202310287940.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-03-22
AI Technical Summary
Medical endoscopes have problems with unclear imaging when zooming in and out and adjusting focus. Traditional electronic magnification methods cannot display more details, and fixed-focus lenses produce blurry images outside the depth of field range.
The lens zoom control system is adopted, including a fixed lens barrel component, a movable lens barrel component and a control component. It generates driving force in the magnetic field through magnetic components and energized components, and adjusts the position and current of the moving lens according to the control instructions to achieve lens zoom and change Field of view and focal length.
It achieves the display of more details during the zoom-in and zoom-out process of the image, and clearly displays distant and near objects when the focal length changes, solving the problems of unclear imaging and blurred imaging outside the depth of field in traditional technology.
Smart Images

Figure CN118680500A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical technology, and in particular to a lens zoom control system, method, device, electronic equipment and storage medium. Background Art
[0002] In the process of using medical endoscopes, it is often necessary to zoom in and out the image and adjust the focal length to make the image clear. In actual operation, there are always some problems. First, for image magnification, the traditional electronic magnification method is to select a local image and display it on a display device of the same size (such as a display screen). This is just a simple imaging process, and it cannot show more details in terms of the number of pixels; secondly, many small-sized medical endoscopes use fixed-focus lenses, which can only clearly image within the depth of field, and the image of objects outside the depth of field is blurred. Summary of the invention
[0003] The purpose of the present invention is to overcome the above technical deficiencies and provide a lens zoom control system, method, device, electronic device and storage medium to solve the technical problem that the endoscope cannot zoom in the prior art.
[0004] In order to achieve the above technical objectives, the present invention adopts the following technical solutions:
[0005] On the one hand, the present invention provides a lens zoom control system, comprising a fixed lens barrel assembly, a movable lens barrel assembly and a control assembly, wherein the movable lens barrel assembly comprises a movable lens barrel body and a movable lens, wherein the movable lens is fixedly connected to the movable lens barrel body, and the movable lens barrel body is slidably connected to the fixed lens barrel assembly, wherein the control assembly comprises a lens zoom driver, an operating unit and a controller, wherein the lens zoom driver comprises a magnetic component for generating a magnetic field and an energizing component capable of generating a driving force in the magnetic field to drive the movable lens to move after being energized, wherein the operating unit is used to send a control instruction to the controller, and wherein the controller is used to:
[0006] receiving a control instruction sent by the operating unit;
[0007] According to the control instruction, obtaining the target position of the movable lens;
[0008] After determining the magnitude and direction of the current of the energized component according to the target position of the movable lens, the energized component is controlled to input the determined current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the current.
[0009] In some embodiments, the controller is further configured to:
[0010] Obtaining a preset position and balance current comparison table, wherein the position and balance current comparison table stores a mapping relationship between different balance positions of the movable lens and the magnitude and direction of the balance current corresponding to the energized component, and the balance position is a position where the movable lens is subjected to force balance;
[0011] After determining the magnitude and direction of the balancing current of the energized component according to the position and balancing current comparison table and the target position of the movable lens, the energized component is controlled to input the determined balancing current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the balancing current.
[0012] In some embodiments, the controller is further configured to:
[0013] After determining the magnitude and direction of the balancing current of the energized component according to the position and balancing current comparison table and the target position of the movable lens, the energized component is controlled to input the determined balancing current;
[0014] Determine the theoretical time when the movable lens first reaches the target position and the theoretical time when it reaches each vibration peak point;
[0015] According to the theoretical time when the movable lens reaches the target position for the first time and the theoretical time when the movable lens reaches each vibration peak point, when it is determined that the movable lens reaches the target position for the first time or reaches the vibration peak point, the energizing current passed into the energizing component is changed to provide a reverse driving force for suppressing the vibration of the movable lens, so that the amplitude of the movable lens is less than a preset value, wherein the reverse driving force is opposite to the moving direction of the movable lens;
[0016] When the amplitude of the moving mirror is less than the preset value, the energizing component is controlled to continuously input the determined balancing current.
[0017] In some embodiments, the controller is further configured to:
[0018] Obtaining the speed and amplitude of the moving lens when it first reaches the target position and reaches the vibration peak point, and determining the magnitude and direction of the reverse driving force according to the speed and amplitude;
[0019] After determining the suppression current corresponding to the reverse driving force according to the mapping relationship between the reverse driving force and the suppression current, when the moving lens reaches the target position and each vibration peak point for the first time, the balancing current of the energized component is converted into the suppression current corresponding to the reverse driving force until the amplitude of the moving lens is less than the preset value.
[0020] In some embodiments, the controller is further configured to:
[0021] Obtaining the historical stabilization time of the mobile lens, and obtaining the critical time point according to the historical stabilization time and the theoretical time when the mobile lens first reaches the target position;
[0022] It is determined whether the current moment exceeds the critical time point. If so, it is determined that the amplitude of the movable lens is less than the preset value; otherwise, it is determined that the amplitude of the movable lens exceeds the preset value.
[0023] In some embodiments, the controller is further configured to:
[0024] According to the target position of the movable lens and the preset position and starting current comparison table, the magnitude and direction of the starting current of the energized component at startup are determined; wherein the position and starting current comparison table stores the mapping relationship between different equilibrium positions of the movable lens and the magnitude and direction of the starting current corresponding to the energized component.
[0025] In some embodiments, the controller is further configured to:
[0026] Obtaining the impedance change of the energized component within a test time interval; the test time interval is a preset time interval including a test time point when the movable lens reaches a target position from a current position;
[0027] The time point corresponding to the maximum impedance change is taken as the theoretical time when the movable lens reaches the target position for the first time.
[0028] In some embodiments, the controller is further configured to:
[0029] The test time for the movable lens to reach each vibration peak point from the current position is obtained, and the test time for the movable lens to reach each vibration peak point from the current position is used as the theoretical time for the movable lens to reach each vibration peak point.
[0030] In some embodiments, the number of the energized components is two, and the two energized components can generate Ampere forces in opposite directions in the magnetic field after being energized, and the driving force is the superposition force of the Ampere forces generated by the two energized components.
[0031] On the other hand, the present invention further provides a lens zoom control method, which is applicable to the lens zoom control system as described above, and the method comprises:
[0032] receiving a control instruction sent by the operating unit;
[0033] According to the control instruction, obtaining the target position of the movable lens;
[0034] After determining the magnitude and direction of the current of the energized component according to the target position of the movable lens, the energized component is controlled to input the determined current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the current.
[0035] In some embodiments, after determining the magnitude and direction of the energizing current of the energizing component according to the target position of the movable lens, controlling the energizing component to input the determined energizing current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the energizing current comprises:
[0036] Obtaining a preset position and balance current comparison table, wherein the position and balance current comparison table stores a mapping relationship between different balance positions of the movable lens and the magnitude and direction of the balance current corresponding to the energized component, and the balance position is a position where the movable lens is subjected to force balance;
[0037] After determining the magnitude and direction of the balancing current of the energized component according to the position and balancing current comparison table and the target position of the movable lens, the energized component is controlled to input the determined balancing current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the balancing current.
[0038] In some embodiments, after determining the magnitude and direction of the energized current of the energized component according to the position and balancing current comparison table and the target position of the movable lens, controlling the energized component to input the determined balancing current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the balancing current includes:
[0039] After determining the magnitude and direction of the balancing current of the energized component according to the position and balancing current comparison table and the target position of the movable lens, the energized component is controlled to input the determined balancing current;
[0040] Determine the theoretical time when the movable lens first reaches the target position and the theoretical time when it reaches each vibration peak point;
[0041] According to the theoretical time when the movable lens reaches the target position for the first time and the theoretical time when the movable lens reaches each vibration peak point, when it is determined that the movable lens reaches or approaches the target position for the first time or reaches the vibration peak point, the energizing current passed into the energizing component is changed to give a reverse driving force for suppressing the vibration of the movable lens, so that the amplitude of the movable lens is less than a preset value, wherein the reverse driving force is opposite to the moving direction of the movable lens;
[0042] When the amplitude of the moving mirror is less than the preset value, the energizing component is controlled to continuously input the determined balancing current.
[0043] In some embodiments, the changing of the current flowing into the energized component specifically includes:
[0044] Obtaining the speed and amplitude of the moving lens when it first reaches the target position and reaches the vibration peak point, and determining the magnitude and direction of the reverse driving force according to the speed and amplitude;
[0045] After determining the suppression current corresponding to the reverse driving force according to the mapping relationship between the reverse driving force and the suppression current, when the moving lens reaches the target position and each vibration peak point position for the first time, the balancing current of the energized component is converted into the suppression current corresponding to the reverse driving force until the amplitude of the moving lens is less than the preset value.
[0046] In some embodiments, the method for determining whether the amplitude of the moving lens is less than the preset value is:
[0047] Obtaining the historical stabilization time of the mobile lens, and obtaining the critical time point according to the historical stabilization time and the theoretical time when the mobile lens first reaches the target position;
[0048] It is determined whether the current moment exceeds the critical time point, if so, it is determined that the amplitude of the movable lens is less than the preset value, otherwise it is determined that the amplitude of the movable lens exceeds the preset value.
[0049] In some embodiments, before determining the magnitude and direction of the energized current of the energized component according to the position and balanced current comparison table and the target position of the movable lens, the method further includes:
[0050] According to the target position of the movable lens and the preset position and starting current comparison table, the magnitude and direction of the first power-on current of the energized component at startup are determined; wherein the position and starting current comparison table stores the mapping relationship between different equilibrium positions of the movable lens and the magnitude and direction of the starting current corresponding to the energized component.
[0051] In some embodiments, the method for obtaining the theoretical time when the moving lens reaches the target position for the first time is:
[0052] Obtaining the impedance change of the energized component within a test time interval; the test time interval is a preset time interval including a test time point when the movable lens reaches a target position from a current position;
[0053] The time point corresponding to the maximum impedance change is taken as the theoretical time when the movable lens reaches the target position for the first time.
[0054] In some embodiments, the method for obtaining the theoretical time for the moving lens to reach each vibration peak point is:
[0055] The test time for the movable lens to reach each vibration peak point from the current position is obtained, and the test time for the movable lens to reach each vibration peak point from the current position is used as the theoretical time for the movable lens to reach each vibration peak point.
[0056] In some embodiments, the number of the energized components is two, and the two energized components can generate Ampere forces in the same direction or opposite directions in the magnetic field after being energized, and the driving force is the superimposed force of the Ampere forces generated by the two energized components.
[0057] On the other hand, the present invention further provides a lens zoom control device for controlling the action of a lens zoom driver, wherein the lens zoom driver comprises a magnetic component for generating a magnetic field and an energizing component capable of generating a driving force in the magnetic field to drive a moving lens to move after being energized, and the lens zoom control device comprises:
[0058] An instruction receiving module, used for receiving control instructions sent by the operating unit;
[0059] A target position determination module, used for obtaining the target position of the mobile lens according to the control instruction;
[0060] The current determination module is used to determine the magnitude and direction of the energized current of the energized component according to the target position of the movable lens, and then control the energized component to input the determined energized current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the energized current.
[0061] In yet another aspect, the present invention further provides an electronic device, comprising: a processor and a memory;
[0062] The memory stores a computer-readable program executable by the processor;
[0063] When the processor executes the computer-readable program, the steps in the lens zoom control method as described above are implemented.
[0064] On the other hand, the present invention also provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the lens zoom control method as described above.
[0065] On the other hand, the present invention also provides a camera module with a lens zoom function, including the lens zoom control system as described above.
[0066] On the other hand, the present invention also provides an endoscope, comprising a camera module with a lens zoom function as described above.
[0067] On the other hand, the present invention also provides an endoscope system, including the camera module with lens zoom function as described above or the endoscope as described above.
[0068] Compared with the prior art, the lens zoom control system, method, device, electronic device and storage medium provided by the present invention first receive a control instruction, then obtain the target position of the mobile lens according to the control instruction, and finally determine the size and direction of the power-on current of the power-on component according to the target position of the mobile lens, so that the lens zoom driver drives the mobile lens to move to the target position according to the size and direction of the power-on current, changes the field of view angle and focal length of the optical system, and achieves the purpose of lens zoom. By changing the size of the field of view angle, the image can be magnified and reduced, and the number of pixels remains unchanged during the process of magnification and reduction, that is, when the image is magnified, more details can be displayed, and the change in focal length can clearly display distant and near objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 It is a structural schematic diagram of an embodiment of an endoscope lens to which the lens zoom control method provided by the present invention is applicable;
[0070] Figure 2 It is a schematic diagram of the exploded structure of an embodiment of a lens of an endoscope to which the lens zoom control method provided by the present invention is applicable;
[0071] Figure 3 It is a structural schematic diagram of an embodiment of a movable lens barrel assembly in the lens of an endoscope to which the lens zoom control method provided by the present invention is applicable;
[0072] Figure 4 is a cross-sectional view of an embodiment of a lens of an endoscope to which the lens zoom control method provided by the present invention is applicable;
[0073] Figure 5 is a cross-sectional view of another embodiment of a lens of an endoscope to which the lens zoom control method provided by the present invention is applicable;
[0074] Figure 6 is a schematic diagram of an embodiment of a lens zoom control system provided by the present invention;
[0075] Figure 7 is a flow chart of an embodiment of a lens zoom control method provided by the present invention;
[0076] Figure 8is a schematic diagram of an embodiment of the movement of a movable lens in the lens zoom control method provided by the present invention;
[0077] Fig. 9 is a schematic diagram of another embodiment of the movement of the mobile lens in the lens zoom control method provided by the present invention;
[0078] Fig.10 It is a schematic diagram of the force balance of the moving lens of the energized component after the energized current is passed through in the lens zoom control method provided by the present invention;
[0079] Fig.11 is a flow chart of an embodiment of step S300 in the lens zoom control method provided by the present invention;
[0080] Fig.12 is a flowchart of an embodiment of step S320 in the lens zoom control method provided by the present invention;
[0081] Fig.13 is a schematic diagram of the vibration of a moving lens from focal point B to an intermediate position between focal points A and B in the prior art;
[0082] Fig.14 is a schematic diagram of vibration of an optimized embodiment of a movable lens of the present invention, which moves from focal point B to an intermediate position between focal points A and B;
[0083] Fig.15 is a schematic diagram of vibration of another embodiment of the present invention after the movable lens is optimized from the focal point B to the intermediate position between the focal points A and B;
[0084] Fig.16 is a cross-sectional view of another embodiment of a lens of an endoscope to which the lens zoom control method provided by the present invention is applicable;
[0085] Fig.17 is a schematic diagram of an embodiment of a lens zoom control device provided by the present invention;
[0086] Fig.18 Schematic diagram of the operating environment of an embodiment of the lens zoom control program of the present invention. DETAILED DESCRIPTION
[0087] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0088] The lens zoom control system, method, device, equipment or computer-readable storage medium involved in the present invention can be used in an endoscope. The method, device, equipment or computer-readable storage medium involved in the present invention can be integrated with the above system or can be independent of each other.
[0089] It should be noted that the lens zoom control system, method, device, equipment or computer-readable storage medium of the present invention is used for but not limited to endoscopes, and can also be applied to other devices that require lens zoom. In the present invention, only the application of the lens zoom control system, method, device, equipment or computer-readable storage medium to an endoscope is used as an example for explanation, and the principle of applying the lens zoom control method, device, equipment or computer-readable storage medium to other types of equipment is substantially the same as the principle of applying to the endoscope, and will not be repeated here.
[0090] This embodiment provides a lens zoom control system, which is suitable for controlling the lens zoom of an endoscope. Figures 1 to 6 The lens zoom control system includes a fixed lens barrel assembly 1, a movable lens barrel assembly 2 and a control assembly. The fixed lens barrel assembly 1 includes a front lens barrel assembly 11 and a rear lens barrel assembly 12. The movable lens barrel assembly 2 includes a movable lens barrel body 21 and a movable lens 22. The movable lens 22 is fixedly connected to the movable lens barrel body 21. The front lens barrel assembly 11 and the rear lens barrel assembly 12 are respectively located on both sides of the movable lens barrel body 21, and the movable lens barrel body 21 is slidably connected to the front lens barrel assembly 11 and / or the rear lens barrel assembly 12. The control assembly includes a lens zoom driver 3, an operating unit 5 and a controller 4. The lens zoom driver 3 includes a magnetic component 31 for generating a magnetic field and a power-on component 32 capable of generating a driving force in the magnetic field to drive the movable lens 22 to move after being powered on. One of the magnetic component 31 and the power-on component 32 is fixed to the front lens barrel assembly 11 and / or the rear lens barrel assembly 12, and the other is fixed to the movable lens barrel body 21. The power-on component 32 is connected to the controller 4. The operating unit 5 is used to send a control instruction to the controller 4. The controller 4 is used to:
[0091] Receiving control instructions sent by the operating unit 5;
[0092] According to the control instruction, the target position of the moving lens 22 is obtained;
[0093] After determining the magnitude and direction of the current of the energizing component 32 according to the target position of the movable lens 22, the energizing component 32 is controlled to input the determined current so that the lens zoom driver 3 drives the movable lens 22 to move to the target position according to the magnitude and direction of the current.
[0094] Specifically, the front lens barrel assembly 11 and the rear lens barrel assembly 12 each have a plurality of fixed lenses, and together with the movable lens 22 form an optical system. When the movable lens 22 is in the optical axis direction (the length direction of the movable lens barrel assembly 2, i.e. Figure 4 When the optical system moves to different positions in the horizontal direction (as shown in the figure), the field angle and focal length of the optical system are different, so the zoom of the entire lens can be achieved.
[0095] Furthermore, the embodiment of the present invention drives the movable lens 22 to move by the force movement of the coil in the magnetic field. Assuming that the magnetic component 31 is fixed on the movable lens barrel body 21 and the energized component 32 is fixed on the front lens barrel assembly 11 and / or the rear lens barrel assembly 12, the magnetic component 31 forms a magnetic field perpendicular to the length direction of the movable lens barrel assembly 2 (i.e. Figure 4 The vertical direction shown), the current supply component 32 is passed into Figure 3 After the current in the horizontal direction shown in the figure is applied, the energized component 32 will be acted upon by a force in the magnetic field, and the magnetic component 31 will be acted upon by a reaction force, the magnitude of which is proportional to the product of the magnetic field strength and the current. That is, F=nBIL, where F represents the Ampere force, n represents the number of turns of the coil, B represents the magnetic field strength, I represents the magnitude of the current, and L represents the effective length of the wire. Therefore, the movable lens 22 can be driven to move by the Ampere force. When there are two energized components 32, the direction of the current can be controlled so that the directions of the forces on the two energized components 32 are opposite. When the forces are balanced, there is: F1+F2=0, that is: n1B1I1L1+n2B2I2L2=0, where n1, L1, n2, and L2 are fixed values, and B1 and B2 change with the distance between the energized component 32 and the magnetic component 31. Therefore, the balance point position of the movable lens 22 can be adjusted by controlling the magnitude of the current. Therefore, the present invention is based on this, and the balance point position is adjusted by controlling the magnitude of the current.
[0096] In some embodiments, the controller 4 is further configured to:
[0097] Obtain a preset position and balance current comparison table, wherein the position and balance current comparison table stores a mapping relationship between different balance positions of the movable lens 22 and the magnitude and direction of the balance current corresponding to the energized component 32, and the balance position is a position where the movable lens 22 is subjected to force balance;
[0098] After determining the magnitude and direction of the balancing current of the energized component 32 according to the position and balancing current comparison table and the target position of the movable lens 22, the energized component 32 is controlled to input the determined balancing current so that the lens zoom driver 3 drives the movable lens 22 to move to the target position according to the magnitude and direction of the balancing current.
[0099] In some embodiments, the controller 4 is further configured to:
[0100] After determining the magnitude and direction of the balancing current of the energizing component 32 according to the position and balancing current comparison table and the target position of the moving lens 22, the energizing component 32 is controlled to input the determined balancing current;
[0101] Determine the theoretical time when the moving lens 22 first reaches the target position and the theoretical time when it reaches each vibration peak point;
[0102] According to the theoretical time when the movable lens 22 first reaches the target position and the theoretical time when it reaches each vibration peak point, when it is determined that the movable lens 22 first reaches the target position or reaches the vibration peak point, the energizing current passed into the energizing component 32 is changed to provide a reverse driving force for suppressing the vibration of the movable lens 22, so that the amplitude of the movable lens 22 is less than a preset value, wherein the reverse driving force is opposite to the moving direction of the movable lens 22;
[0103] When the amplitude of the moving mirror 22 is smaller than a preset value, the energizing component is controlled to continuously input a determined balancing current.
[0104] In some embodiments, the controller 4 is further configured to:
[0105] Obtaining the impedance change of the energized component 32 within a test time interval; the test time interval is a preset time interval including a test time point when the moving lens 22 reaches a target position from a current position;
[0106] The time point corresponding to the maximum impedance change is taken as the theoretical time when the moving lens 22 first reaches the target position.
[0107] In some embodiments, the controller 4 is further configured to:
[0108] The test time for the moving lens 22 to reach each vibration peak point from the current position is obtained, and the test time for the moving lens 22 to reach each vibration peak point from the current position is used as the theoretical time for the moving lens 22 to reach each vibration peak point.
[0109] In some embodiments, the controller 4 is further configured to:
[0110] Obtaining the speed and amplitude of the moving lens 22 when it first reaches the target position and reaches the vibration peak point, and determining the magnitude and direction of the reverse driving force according to the speed and amplitude;
[0111] According to the mapping relationship between the reverse driving force and the suppression current, after determining the suppression current corresponding to the reverse driving force, when the moving lens 22 reaches the target position and each vibration peak point for the first time, the power-carrying current of the power-carrying component 32 is converted into the suppression current corresponding to the reverse driving force until the amplitude of the moving lens 22 is less than the preset value.
[0112] In some embodiments, the controller 4 is further configured to:
[0113] Obtain the historical stabilization time of the mobile lens 22, and obtain the critical time point according to the historical stabilization time and the theoretical time when the mobile lens 22 first reaches the target position;
[0114] It is determined whether the current moment exceeds the critical time point. If so, it is determined that the amplitude of the movable lens 22 is less than the preset value. Otherwise, it is determined that the amplitude of the movable lens 22 exceeds the preset value.
[0115] In some embodiments, the controller 4 is further configured to:
[0116] According to the target position of the movable lens 22 and the preset position and starting current comparison table, the magnitude and direction of the starting current of the energized component 32 at startup are determined; wherein the position and starting current comparison table stores the mapping relationship between different equilibrium positions of the movable lens 22 and the magnitude and direction of the starting current corresponding to the energized component 32.
[0117] In some embodiments, there are two energized components 32 , and the two energized components 32 can generate Ampere forces in opposite directions in the magnetic field after being energized, and the driving force is the superposition force of the Ampere forces generated by the two energized components 32 .
[0118] It should be noted that, in order to quickly reach the extreme position A or B of the movable lens 22, the two energized components 32 can also generate Ampere forces in the same direction in the magnetic field after being energized.
[0119] In this embodiment, two energizing components 32 are provided, and a reverse current (such as Figure 4 The current flowing through the left coil is a reverse current), and the other current-carrying component 32 flows a forward current (such as Figure 4 As shown in the figure, the current passed through the right coil is a forward current), the magnetic component 31 is subjected to a leftward force, driving the movable lens 22 to move to the left, reaching the focal point A at one end of the travel of the movable lens 22. A forward current is passed through one of the energized components 32, and a reverse current is passed through the other energized component 32. The magnetic component 31 is subjected to a rightward force, driving the movable lens 22 to move to the left, reaching the focal point B at one end of the travel of the movable lens 22. A forward or reverse current is passed through both energized components 32, and the magnetic component 31 is subjected to leftward and rightward forces at the same time. The leftward and rightward forces are equal in magnitude at a certain point within the travel of the movable lens 22. This position is the equilibrium position of the movable lens 22.
[0120] Of course, in other embodiments, the number of the energizing component 32 may be one, and in this case, a return spring may be added to average the elastic force of the return spring and the Ampere force generated by the energizing component 32 to obtain a balanced position, thereby controlling the continuous zoom of the movable lens 2. Figure 5As shown, the lens zoom control system further includes a reset member 6, one end of which is connected to the movable lens barrel assembly 2, and the other end of which is connected to the fixed lens barrel assembly 1. The reset member 6 can generate an elastic force opposite to the Ampere force, and the elastic force of the reset member 6 is F=-kx, and the Ampere force generated by the energizing component 32 is F=nBIL. When -kx=nBIL, the magnetic component 31 reaches a force equilibrium position, and therefore, the position of the movable lens barrel assembly 2 can be controlled by controlling the current passed into the energizing component 32. Preferably, the elastic force generated by the reset member 6 is a compressive force.
[0121] Based on the above lens zoom control system, an embodiment of the present invention further provides a lens zoom control method, which can be executed by a controller of the lens zoom control system, and specifically can be executed by one or more processors of the controller.
[0122] See also Figure 7 , the lens zoom control method comprises the following steps:
[0123] S100, receiving a control instruction sent by an operating unit;
[0124] S200, obtaining a target position of the moving lens according to a control instruction;
[0125] S300, after determining the magnitude and direction of the current of the energizing component according to the target position of the movable lens, control the energizing component to input the determined current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the current.
[0126] In this embodiment, a control instruction is first received, and then the target position of the mobile lens is obtained according to the control instruction. Finally, according to the target position of the mobile lens, the size and direction of the energized current of the energized component are determined, so that the lens zoom driver drives the mobile lens to move to the target position according to the size and direction of the energized current, changes the field of view angle and focal length of the optical system, and achieves the purpose of lens zoom. By changing the size of the field of view angle, the image can be zoomed in and out, and the number of pixels remains unchanged during the zooming process, that is, when the image is enlarged, more details can be displayed, and the change in focal length can clearly display distant and near objects.
[0127] In some embodiments, in step S100, the operating unit 5 is used to control the execution device (eg, Figure 5The lens zoom control device 4 shown in the figure inputs a control instruction, and the control instruction is used to indicate the target position of the moving lens. The execution device of the lens zoom control method receives the control instruction and responds to it, obtains the target position of the moving lens 22, and then calculates the magnitude and direction of the energized current of the energized component 32. Exemplarily, the operating unit 5 can be a touch screen, and the operator can input the control instruction on the touch screen, and then send it to the execution device of the lens zoom control method through the touch screen.
[0128] In some embodiments, step S200 is used to obtain the target position of the mobile lens 22 through a control instruction, wherein the control instruction may be directly the coordinates of the target position of the mobile lens 22, or the control instruction may indicate the target position of the mobile lens 22, such as a parameter such as focal length. After receiving the focal length, the lens zoom control device 4 calculates the target position of the mobile lens 22 through the focal length.
[0129] In some embodiments, step S300 is used to calculate the current magnitude and direction of the energized component 32 according to the target position of the moving lens 22, see Fig.11 , step S300 specifically includes:
[0130] S310, obtaining a preset position and balance current comparison table, wherein the position and balance current comparison table stores a mapping relationship between different balance positions of the movable lens and the magnitude and direction of the balance current corresponding to the energized component, and the balance position is a position where the movable lens is subjected to force balance;
[0131] S320, after determining the magnitude and direction of the balancing current of the energized component according to the position and balancing current comparison table and the target position of the mobile lens, control the energized component to input the determined balancing current so that the lens zoom driver drives the mobile lens to move to the target position according to the magnitude and direction of the balancing current.
[0132] In this embodiment, the magnitude and direction of the balancing current of the current-carrying component 32 at each equilibrium position are obtained by a table lookup method. Specifically, the movable lens 22 has two extreme positions, and the position between the two extreme positions is evenly divided into several parts. Then, the magnitude and direction of the balancing current corresponding to the current-carrying component 32 at each position are obtained through experiments. Therefore, after the target position is obtained, it is only necessary to find the corresponding magnitude and direction of the balancing current according to the target position.
[0133] For example, the current carrying component 32 is a coil, and the number of the current carrying components 32 is two. Figure 8 and Fig. 9, a reverse current is passed through the front coil and a forward current is passed through the rear coil, then the magnetic component 31 is subjected to a leftward force, driving the movable lens 22 to move to the left, reaching the focal point A at one end of the travel of the movable lens 22. A forward current is passed through the front coil and a reverse current is passed through the rear coil, then the magnetic component 31 is subjected to a rightward force, driving the movable lens 22 to move to the left, reaching the focal point B at one end of the travel of the movable lens 22. A forward current is passed through the front coil and a forward current is passed through the rear coil, then the magnetic component 31 is subjected to leftward and rightward forces at the same time, and the leftward and rightward forces are equal at a certain point within the travel of the movable lens 22, and this position is the equilibrium position of the movable lens 22. Therefore, the spatial coordinates of the equilibrium position can be adjusted by controlling the current size, so that the movable lens 22 can stay at any position between the focal points A and B. Fig.10 As shown, it is a schematic diagram of the force balance of the movable lens 22 at one position. Through this figure, it can be clearly known that the force balance position point of the movable lens 22 when a constant current is passed through.
[0134] Furthermore, in order to facilitate the acquisition of the magnitude and direction of the current of the front coil and the rear coil at different equilibrium positions of the mobile lens, a position and equilibrium current comparison table is preset. Specifically, the position between focus A and focus B is evenly divided into 128 parts, focus A is position 0, and focus B is position 127. The front coil current I1 and the rear coil current I2 corresponding to each position are shown in the following table:
[0135] Location <![CDATA[I1(mA)]]> <![CDATA[I2(mA)]]> Location <![CDATA[I1(mA)]]> <![CDATA[I2(mA)]]> Location <![CDATA[I1(mA)]]> <![CDATA[I2(mA)]]> Location <![CDATA[I1(mA)]]> <![CDATA[I2(mA)]]> 0 -20 100 32 37 100 64 100 97.1 96 100 35.7 1 8.2 100 33 38.3 100 65 100 94.2 97 100 34.5 2 9 100 34 39.6 100 66 100 91.4 98 100 33.4 3 9.8 100 35 40.9 100 67 100 88.8 99 100 32.2 4 10.6 100 36 42.3 100 68 100 86.1 100 100 31.1 5 11.4 100 37 43.7 100 69 100 83.6 101 100 30 6 12.1 100 38 45.1 100 70 100 81.1 102 100 28.9 7 12.9 100 39 46.6 100 71 100 78.7 103 100 27.8 8 13.7 100 40 48.1 100 72 100 76.4 104 100 26.8 9 14.4 100 41 49.7 100 73 100 74.2 105 100 25.8 10 15.3 100 42 51.3 100 74 100 72 106 100 24.9 11 16 100 43 52.9 100 75 100 69.8 107 100 23.9 12 16.8 100 44 54.6 100 76 100 67.7 108 100 23 13 17.7 100 45 56.3 100 77 100 65.6 109 100 22 14 18.5 100 46 58.1 100 78 100 63.7 110 100 21.1 15 19.4 100 47 59.9 100 79 100 61.8 111 100 20.2 16 20.2 100 48 61.8 100 80 100 59.9 112 100 19.4 17 21.1 100 49 63.7 100 81 100 58.1 113 100 18.5 18 22 100 50 65.6 100 82 100 56.3 114 100 17.7 19 23 100 51 67.7 100 83 100 54.6 115 100 16.8 20 23.9 100 52 69.8 100 84 100 52.9 116 100 16 21 24.9 100 53 72 100 85 100 51.3 117 100 15.3 22 25.8 100 54 74.2 100 86 100 49.7 118 100 14.4 23 26.8 100 55 76.4 100 87 100 48.1 119 100 13.7 24 27.8 100 56 78.7 100 88 100 46.6 120 100 12.9 25 28.9 100 57 81.1 100 89 100 45.1 121 100 12.1 26 30 100 58 83.6 100 90 100 43.7 122 100 11.4 27 31.1 100 59 86.1 100 91 100 42.3 123 100 10.6 28 32.2 100 60 88.8 100 92 100 40.9 124 100 9.8 29 33.4 100 61 91.4 100 93 100 39.6 125 100 9 30 34.5 100 62 94.2 100 94 100 38.3 126 100 8.2 31 35.7 100 63 97.1 100 95 100 37 127 100 -20
[0136] Among them, the position points and current values not given in the above table can be deduced from the current values of the two points before and after, such as: the current at the midpoint between the position point 63 and the point 64 is: I1 = 100mA; I2 = 100mA.
[0137] It should be noted that there are many ways to balance the force on the moving lens, such as Figure 4 In the embodiment, there are two energized parts, the front coil and the rear coil. The position where the moving lens is subjected to balanced force refers to the position where the vector sum of the Ampere force generated in the magnetic field after the front coil and the rear coil are energized is zero, that is, the position where the driving force is zero. Figure 5 There is only one energized component and a return spring. The position where the movable lens is subjected to balanced force refers to the position where the vector sum of the Ampere force generated in the magnetic field after the energized component is energized and the elastic force generated by the return spring is zero, that is, the position where the superposition force of the driving force and the elastic force is zero.
[0138] In some embodiments, step S320 is to determine the magnitude and direction of the balancing current of the energized component 32, so that the lens zoom driver 3 drives the movable lens 22 to move to the target position. Fig.12 , step S320 specifically includes:
[0139] S321, after determining the magnitude and direction of the balancing current of the energized component according to the position and balancing current comparison table and the target position of the moving lens, control the energized component to input the determined balancing current;
[0140] S322, determining the theoretical time when the moving lens first reaches the target position and the theoretical time when it reaches each vibration peak point;
[0141] S323, according to the theoretical time when the moving lens reaches the target position for the first time and the theoretical time when the moving lens reaches each vibration peak point, when it is determined that the moving lens reaches the target position for the first time or reaches the vibration peak point, changing the energizing current passed into the energizing component to provide a reverse driving force for suppressing the vibration of the moving lens, so that the amplitude of the moving lens is less than a preset value, wherein the reverse driving force is opposite to the moving direction of the moving lens;
[0142] S324: When the amplitude of the moving lens is less than a preset value, the energized component is controlled to continuously input a determined balancing current.
[0143] In this embodiment, firstly, the magnitude and direction of the balancing current of the energized component 32 are determined according to the position and balancing current comparison table and the target position of the moving lens, and then the moving lens 22 is driven to move. Then, according to the initial position of the moving lens 22 (i.e., the position where the moving lens 22 starts to move) and the target position, the theoretical time for the moving lens 22 to approach or reach the target position is determined. When the moving lens 22 is driven to reach or approach the target position, the moving lens 22 will vibrate near the target position, which increases the stabilization time of the moving lens 22. Fig.13 As shown, it is the vibration of the moving lens 22 from the focal point B to the middle position between the focal points A and B. Therefore, in order to reduce the stabilization time of the moving lens 22 and make the moving lens 22 quickly stabilize at the equilibrium position, this embodiment suppresses the vibration of the moving lens 22 by giving the moving lens 22 a reverse driving force, so that the moving lens 22 can stay at the target position more accurately, thereby improving the accuracy of focal length adjustment. In this embodiment, the stabilization time DT is the time taken for the vibration amplitude to decrease to 10% of the initial maximum amplitude, that is, the preset value is 10% of the initial maximum amplitude. Of course, in other embodiments, other methods can be used to define the stabilization time, and the present invention is not limited to this.
[0144] In some embodiments, the theoretical time for the moving lens to reach the target position is obtained by:
[0145] Obtaining the impedance change of the energized component within a test time interval; the test time interval is a preset time interval including a test time point when the moving lens reaches a target position from a current position;
[0146] The time point corresponding to the maximum impedance change is taken as the theoretical time when the moving lens first reaches the target position.
[0147] In this embodiment, the method for judging whether the target position has been reached or is close to the target position is obtained through calibration at the factory. First, the test time for the moving lens barrel assembly 2 to reach the target position from various positions and the resonant frequency along the optical axis when the moving lens barrel assembly 2 is forced to move are tested and collected (specifically, the acceleration sensor can be used to obtain the frequency). Then, when the moving lens barrel assembly 2 moves, the magnetic flux lines generated by the magnetic component 31 move, and the wires on the energized component 32 cut the magnetic flux lines to generate induced current. The power supply can detect the impedance change. The faster the moving speed, the greater the impedance change, which reaches the maximum at the equilibrium position. Therefore, by obtaining the time point when the energized component reaches the maximum impedance change during the energization process, and then combining the test time data and the time point of the maximum impedance change, the specific time when the moving lens barrel assembly 2 reaches or approaches the equilibrium position, that is, the theoretical time, can be determined.
[0148] Of course, in other embodiments, the above test time can be directly used as the theoretical time to reach the target position, or the time point of the maximum impedance change can be directly used as the theoretical time to reach the target position, and the present invention does not limit this.
[0149] In some embodiments, the method for obtaining the theoretical time for the moving lens to reach each vibration peak point is:
[0150] The test time for the moving lens to reach each vibration peak point from the current position is obtained, and the test time for the moving lens to reach each vibration peak point from the current position is used as the theoretical time for the moving lens to reach each vibration peak point.
[0151] In this embodiment, the method for the moving lens to reach each vibration peak point is also obtained through factory calibration. First, the vibration condition of the moving lens barrel assembly 2 after it reaches the target position for the first time from each position point is tested. The vibration condition reflects the amplitude and vibration frequency of the moving lens. Therefore, the vibration waveform diagram of the moving lens after it reaches the target position for the first time from each position point can be obtained according to its amplitude and vibration frequency. According to the vibration waveform diagram, it can be clearly seen that the time point when the moving lens reaches each vibration peak point from the current position at the target position, that is, the test time when the current position reaches each vibration peak point. Therefore, when vibration suppression is performed subsequently, it is only necessary to provide a reverse driving force at this time point, and there is no need to repeatedly calculate the theoretical time for the moving lens to reach each vibration peak point. It is simple and convenient.
[0152] In some embodiments, in order to obtain the optimal reverse driving force, changing the current flowing into the energizing component specifically includes:
[0153] Obtaining the speed and amplitude of the moving lens when it first reaches the target position and reaches the vibration peak point, and determining the magnitude and direction of the reverse driving force according to the speed and amplitude;
[0154] According to the mapping relationship between the reverse driving force and the suppression current, after determining the suppression current corresponding to the reverse driving force, when the moving lens reaches the target position and each vibration peak point for the first time, the power-carrying current of the energized component is converted into the suppression current corresponding to the reverse driving force until the amplitude of the moving lens is less than the preset value.
[0155] In this embodiment, the reverse driving force is determined by the speed and amplitude of the moving lens at the target position. Specifically, assuming that the reverse driving force consumes 1 / 2 of the kinetic energy of the target moving lens barrel assembly from crossing the equilibrium position to stopping, it can be obtained that: W = 1 / 2mV 2 =2FS, where W is the kinetic energy of the moving lens barrel assembly 2 when it passes the equilibrium position, m is the weight of the moving lens barrel assembly 2, V is the speed of the moving lens barrel assembly 2 when it passes the equilibrium position, F is the reverse driving force, S is the amplitude of the moving lens barrel assembly 2, and the required reverse driving force F=mV can be obtained from the above formula 2 / (4S), combined with the force balance position diagram under different currents, the corresponding magnitude and direction of the suppression current can be obtained, so that after the suppression current of the magnitude and direction is introduced after the vibration peak point is reached for the first time, the stabilization time of the moving lens 22 is shortened, and then the corresponding suppression current is introduced at the second vibration peak point according to the above method, and so on, until the amplitude of the moving lens is less than the preset value, the suppression current is no longer introduced at the peak point position, but the input of the balance current is maintained to stabilize the moving lens at the target position. Fig.14 As shown, it is a schematic diagram of the optimized vibration condition, and it can be seen that the stabilization time of the moving lens 22 is greatly reduced.
[0156] Of course, it should be noted that, in order to facilitate control, the speed and amplitude of the moving lens when it reaches the target position can be obtained when the moving lens approaches the target position, wherein the speed and amplitude can be historical speed and amplitude. The historical speed and amplitude can be used to more quickly determine the magnitude and direction of the reverse driving force of each peak point, thereby making it easier to suppress it without repeated calculations.
[0157] In some embodiments, in order to conveniently determine whether the amplitude of the moving lens is less than the preset value, the method for determining whether the amplitude of the moving lens is less than the preset value is:
[0158] Obtain the historical stabilization time of the mobile lens, and obtain the critical time point according to the historical stabilization time and the theoretical time when the mobile lens first reaches the target position;
[0159] It is determined whether the current moment exceeds the critical time point. If so, it is determined that the amplitude of the moving lens is less than the preset value; otherwise, it is determined that the amplitude of the moving lens exceeds the preset value.
[0160] In this embodiment, the stabilization time DT is the time taken for the vibration amplitude to decrease to 10% of the initial maximum amplitude, that is, the preset value is 10% of the initial maximum amplitude. First, in the test phase, the stabilization time DT for the moving lens to reach the target position from the current position is obtained, that is, the historical stabilization time. Then, the critical time point when the moving lens is stable is calculated through the historical stabilization time and the theoretical time when the moving lens first reaches the target position. The critical time point is the time point when the amplitude of the moving lens is less than 10% of the initial maximum amplitude. Therefore, when making a subsequent judgment, it is only necessary to judge whether the current moment exceeds the critical time point. If it exceeds, it means that the current amplitude is already below 10% of the initial maximum amplitude, and there is no need to apply a suppression current. Otherwise, it means that the amplitude is still above 10% of the initial maximum amplitude, and it is still necessary to apply a suppression current to suppress the vibration.
[0161] In some embodiments, in order to achieve zooming faster, the embodiments of the present invention further provide a position and starting current comparison table, wherein the position and starting current comparison table is used to indicate the correspondence between the starting current and the equilibrium position of the energized component 32 at the moment of starting.
[0162] Optionally, before step S321, the method further includes:
[0163] The magnitude and direction of the starting current of the energized component at startup are determined according to the target position of the moving lens and a preset position and starting current comparison table; wherein the position and starting current comparison table stores a mapping relationship between different equilibrium positions of the moving lens and the magnitude and direction of the starting current corresponding to the energized component.
[0164] In this embodiment, in order to improve the starting effect and speed, the current value is increased at the moment when the energized component 32 is energized, so that the driving force (Ampere force) exerted on the movable lens 22 is increased proportionally, that is, F=nBIL. Then, when the energized component 32 is started, the energized current is restored to the current size in the position and balance current comparison table, thereby achieving the purpose of rapid starting, and is beneficial to the rapid response of the movable lens barrel assembly 2 in the starting stage and resisting the resistance during the movement process.
[0165] For example, taking the current-carrying component 32 as a coil and the number of current-carrying components 32 as 2 as an example, the position between focus A and focus B is evenly divided into 128 parts, focus A is position 0, and focus B is position 127. At the moment of starting, the front coil current I1 and the rear coil current I2 corresponding to each position are shown in the following table:
[0166] Location <![CDATA[I1(mA)]]> <![CDATA[I2(mA)]]> Location <![CDATA[I1(mA)]]> <![CDATA[I2(mA)]]> Location <![CDATA[I1(mA)]]> <![CDATA[I2(mA)]]> Location <![CDATA[I1(mA)]]> <![CDATA[I2(mA)]]> 0 -60 300 32 111 300 64 300 291.3 96 300 107.1 1 24.6 300 33 114.9 300 65 300 282.6 97 300 103.5 2 27 300 34 118.8 300 66 300 274.2 98 300 100.2 3 29.4 300 35 122.7 300 67 300 266.4 99 300 96.6 4 31.8 300 36 126.9 300 68 300 258.3 100 300 93.3 5 34.2 300 37 131.1 300 69 300 250.8 101 300 90 6 36.3 300 38 135.3 300 70 300 243.3 102 300 86.7 7 38.7 300 39 139.8 300 71 300 236.1 103 300 83.4 8 41.1 300 40 144.3 300 72 300 229.2 104 300 80.4 9 43.2 300 41 149.1 300 73 300 222.6 105 300 77.4 10 45.9 300 42 153.9 300 74 300 216 106 300 74.7 11 48 300 43 158.7 300 75 300 209.4 107 300 71.7 12 50.4 300 44 163.8 300 76 300 203.1 108 300 69 13 53.1 300 45 168.9 300 77 300 196.8 109 300 66 14 55.5 300 46 174.3 300 78 300 191.1 110 300 63.3 15 58.2 300 47 179.7 300 79 300 185.4 111 300 60.6 16 60.6 300 48 185.4 300 80 300 179.7 112 300 58.2 17 63.3 300 49 191.1 300 81 300 174.3 113 300 55.5 18 66 300 50 196.8 300 82 300 168.9 114 300 53.1 19 69 300 51 203.1 300 83 300 163.8 115 300 50.4 20 71.7 300 52 209.4 300 84 300 158.7 116 300 48 21 74.7 300 53 216 300 85 300 153.9 117 300 45.9 22 77.4 300 54 222.6 300 86 300 149.1 118 300 43.2 23 80.4 300 55 229.2 300 87 300 144.3 119 300 41.1 24 83.4 300 56 236.1 300 88 300 139.8 120 300 38.7 25 86.7 300 57 243.3 300 89 300 135.3 121 300 36.3 26 90 300 58 250.8 300 90 300 131.1 122 300 34.2 27 93.3 300 59 258.3 300 91 300 126.9 123 300 31.8 28 96.6 300 60 266.4 300 92 300 122.7 124 300 29.4 29 100.2 300 61 274.2 300 93 300 118.8 125 300 27 30 103.5 300 62 282.6 300 94 300 114.9 126 300 24.6 31 107.1 300 63 291.3 300 95 300 111 127 300 -60
[0167] Accordingly, while improving the response speed and effect, the vibration of the moving lens barrel assembly 2 near the equilibrium position will also increase, which is not conducive to shortening the stabilization time. While proportionally amplifying the starting current, the above-mentioned vibration suppression method is used, and the vibration of the moving lens barrel assembly 2 is as follows: Fig.15 shown.
[0168] It should be noted that the embodiments of the present invention do not limit the specific structures of the current-carrying component 32 and the magnetic component 31. In some embodiments, the current-carrying component 32 can be a coil and the magnetic component 31 can be a magnet, or the magnetic component 31 and the current-carrying component 32 can both be coils. The coil used as the current-carrying component can pass current, the coil used as the magnetic component 31 can generate a magnetic field after being energized, and the coil used as the current-carrying component 32 can generate a driving force in the magnetic field to drive the movable lens barrel assembly 2 to slide under the action of the current.
[0169] In addition, in the embodiment of the present invention, the number of the magnetic component 31 and the power supply component 32 is not limited in principle. For example, a magnetic component 31 is fixed to the movable lens barrel body 21, and a power supply component 32 is fixed to the front lens barrel assembly 11 and the rear lens barrel assembly 12, respectively. Fig.16 As shown, a current-carrying component 32 and a magnetic component 31 are fixed on the movable lens barrel body 21, and one of the front lens barrel assembly 11 and the rear lens barrel assembly 12 is fixed with a current-carrying component 32, and the other is fixed with a magnetic component 31, thereby increasing the strength of the magnetic field, so that the movable lens barrel assembly 2 can reach the equilibrium point faster after being subjected to force.
[0170] The technical solution provided by the present invention first receives a control instruction, then obtains the target position of the mobile lens according to the control instruction, and finally determines the size and direction of the energized current of the energized component according to the target position of the mobile lens, so that the lens zoom driver drives the mobile lens to move to the target position according to the size and direction of the energized current, changes the field of view angle and focal length of the optical system, and achieves the purpose of lens zoom. By changing the size of the field of view angle, the image can be magnified and reduced, and the number of pixels remains unchanged during the process of magnification and reduction, that is, when the image is magnified, more details can be displayed, and the change in focal length can clearly display distant and near objects.
[0171] Based on the above lens zoom control method, the embodiment of the present invention also provides a lens zoom control device 400. Fig.17The lens zoom control device 400 is used to control the action of the lens zoom driver. The lens zoom driver includes a magnetic component for generating a magnetic field and an energized component that can generate a driving force in the magnetic field to drive the moving lens to move after being powered on. The lens zoom control device 400 includes an instruction receiving module 410, a target position determination module 420 and a current determination module 430.
[0172] The instruction receiving module 410 is used to receive control instructions sent by the operating unit.
[0173] The target position determination module 420 is used to obtain the target position of the moving lens according to the control instruction.
[0174] The current determination module 430 is used to determine the magnitude and direction of the current of the energized component according to the target position of the mobile lens, and then control the energized component to input the determined current so that the lens zoom driver drives the mobile lens to the target position according to the magnitude and direction of the current.
[0175] In this embodiment, a control instruction is first received, and then the target position of the mobile lens is obtained according to the control instruction. Finally, according to the target position of the mobile lens, the size and direction of the energized current of the energized component are determined, so that the lens zoom driver drives the mobile lens to move to the target position according to the size and direction of the energized current, changes the field of view angle and focal length of the optical system, and achieves the purpose of lens zoom. By changing the size of the field of view angle, the image can be zoomed in and out, and the number of pixels remains unchanged during the zooming process, that is, when the image is enlarged, more details can be displayed, and the change in focal length can clearly display distant and near objects.
[0176] It should be noted that the module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions, which is more suitable for describing the execution process of lens zoom control than a program. For the specific implementation of each module, please refer to the corresponding method embodiment above, which will not be repeated here.
[0177] In some embodiments, the current determination module 430 includes a lookup table acquisition unit and a determination unit.
[0178] The comparison table acquisition unit is used to obtain a preset position and balance current comparison table, wherein the position and balance current comparison table stores a mapping relationship between different balance positions of the movable lens and the magnitude and direction of the balance current corresponding to the energized component, and the balance position is the position where the movable lens is subjected to force balance.
[0179] The determination unit is used to determine the magnitude and direction of the current of the energized component according to the position current comparison table and the target position of the mobile lens, and then control the energized component to input the determined balancing current so that the lens zoom driver drives the mobile lens to the target position according to the magnitude and direction of the balancing current.
[0180] In some embodiments, the determining unit includes a balanced current determining subunit, a theoretical time determining subunit, a vibration suppression subunit, and a maintaining subunit.
[0181] The balancing current determination subunit is used to determine the magnitude and direction of the balancing current of the energized component according to the position and balancing current comparison table and the target position of the mobile lens, and then control the energized component to input the determined balancing current.
[0182] The theoretical time determination subunit is used to determine the theoretical time when the moving lens reaches the target position for the first time and the theoretical time when it reaches each vibration peak point.
[0183] The vibration suppression subunit is used to change the current passed through the energized component when it is determined that the moving lens has reached the target position for the first time or reached the vibration peak point based on the theoretical time for the moving lens to reach the target position for the first time and the theoretical time for reaching each vibration peak point, so as to provide a reverse driving force to suppress the vibration of the moving lens, so that the amplitude of the moving lens is less than a preset value, wherein the reverse driving force is opposite to the moving direction of the moving lens.
[0184] The maintaining subunit is used to control the energized component to continuously input a determined balancing current when the amplitude of the moving lens is less than a preset value.
[0185] In some embodiments, changing the energizing current flowing into the energizing component specifically includes:
[0186] Obtain the speed and amplitude of the moving lens when it first reaches the target position and reaches the vibration peak point, and determine the magnitude and direction of the reverse driving force according to the speed and amplitude;
[0187] According to the mapping relationship between the reverse driving force and the suppression current, after determining the suppression current corresponding to the reverse driving force, when the moving lens reaches the target position and each vibration peak point for the first time, the balancing current of the energized component is converted into the suppression current corresponding to the reverse driving force until the amplitude of the moving lens is less than the preset value.
[0188] In some embodiments, the method for determining whether the amplitude of the moving lens is less than a preset value is:
[0189] Obtain the historical stabilization time of the mobile lens, and obtain the critical time point according to the historical stabilization time and the theoretical time when the mobile lens first reaches the target position;
[0190] It is determined whether the current moment exceeds the critical time point. If so, it is determined that the amplitude of the moving lens is less than a preset value; otherwise, it is determined that the amplitude of the moving lens exceeds the preset value.
[0191] In some embodiments, the determination unit also includes a starting current determination subunit, which is used to determine the size and direction of the starting current of the energized component at startup based on the target position of the moving lens and a preset position and starting current comparison table; wherein the position and starting current comparison table stores a mapping relationship between different equilibrium positions of the moving lens and the size and direction of the starting current corresponding to the energized component.
[0192] In some embodiments, the method for obtaining the theoretical time when the moving lens reaches the target position for the first time is:
[0193] Obtaining the impedance change of the energized component within a test time interval; the test time interval is a preset time interval including a test time point when the moving lens reaches a target position from a current position;
[0194] The time point corresponding to the maximum impedance change is taken as the theoretical time when the moving lens first reaches the target position.
[0195] In some embodiments, the method for obtaining the theoretical time for the moving lens to reach each vibration peak point is:
[0196] The test time for the moving lens to reach each vibration peak point from the current position is obtained, and the test time for the moving lens to reach each vibration peak point from the current position is used as the theoretical time for the moving lens to reach each vibration peak point.
[0197] like Fig.18 As shown, based on the above lens zoom control method, the present invention also provides an electronic device, which can be a computing device such as a mobile terminal, a desktop computer, a notebook, a palm computer, and a server. The electronic device includes a processor 10, a memory 20, and a display 30. Fig.18 Only some components of the electronic device are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0198] In some embodiments, the memory 20 may be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device. In other embodiments, the memory 20 may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 20 may also include both an internal storage unit of the electronic device and an external storage device. The memory 20 is used to store application software and various types of data installed in the electronic device, such as program codes installed in the electronic device. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a lens zoom control program 40 is stored on the memory 20, and the lens zoom control program 40 can be executed by the processor 10, thereby realizing the lens zoom control method of each embodiment of the present invention.
[0199] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, which is used to run the program code stored in the memory 20 or process data, such as executing a lens zoom control method.
[0200] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the lens zoom control device and to display a visual user interface. The components 10-30 of the electronic device communicate with each other via a system bus.
[0201] In some embodiments, when the processor 10 executes the lens zoom control program 40 in the memory 20, the lens zoom control method as described in the above embodiments is implemented. Since the lens zoom control method has been described in detail above, the technical effects of the lens zoom control method are also possessed by the electronic device, so they will not be repeated here.
[0202] Based on the above lens zoom control system, an embodiment of the present invention further provides a camera module with a lens zoom function, including the lens zoom control system as described above. Since the lens zoom control system has been described in detail above, it will not be repeated here.
[0203] Based on the above-mentioned camera module with lens zoom function, an embodiment of the present invention further provides an endoscope, including the camera module with lens zoom function as described above. Since the lens zoom control system has been described in detail above, it will not be repeated here.
[0204] An embodiment of the present invention also provides an endoscope system accordingly, including a camera module with a lens zoom function as described above or an endoscope as described above. Since the lens zoom control system has been described in detail above, it will not be repeated here.
[0205] In summary, the lens zoom control system, method, device, electronic device and storage medium provided by the present invention first receive a control instruction, then obtain the target position of the mobile lens according to the control instruction, and finally determine the size and direction of the power-on current of the power-on component according to the target position of the mobile lens, so that the lens zoom driver drives the mobile lens to move to the target position according to the size and direction of the power-on current, changes the field of view angle and focal length of the optical system, and achieves the purpose of lens zoom. By changing the size of the field of view angle, the image can be magnified and reduced, and the number of pixels remains unchanged during the process of magnification and reduction, that is, when the image is magnified, more details can be displayed, and the change in focal length can clearly display distant and near objects.
[0206] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium, and the program can include the processes of the above-mentioned method embodiments when executed. The storage medium can be a memory, a disk, an optical disk, etc.
[0207] The specific implementation of the present invention described above does not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A lens zoom control system, characterized in that: The invention comprises a fixed lens barrel assembly, a movable lens barrel assembly and a control assembly, wherein the movable lens barrel assembly comprises a movable lens barrel body and a movable lens, wherein the movable lens is fixedly connected to the movable lens barrel body, and the movable lens barrel body is slidably connected to the fixed lens barrel assembly, wherein the control assembly comprises a lens zoom driver, an operating unit and a controller, wherein the lens zoom driver comprises a magnetic component for generating a magnetic field and an energizing component capable of generating a driving force in the magnetic field to drive the movable lens to move after being energized, wherein the operating unit is used to send a control instruction to the controller, and wherein the controller is used to: receiving a control instruction sent by the operating unit; According to the control instruction, obtaining the target position of the movable lens; After determining the magnitude and direction of the current of the energized component according to the target position of the movable lens, the energized component is controlled to input the determined current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the current.
2. The lens zoom control system according to claim 1, characterized in that: The controller is also used for: Obtaining a preset position and balance current comparison table, wherein the position and balance current comparison table stores a mapping relationship between different balance positions of the movable lens and the magnitude and direction of the balance current corresponding to the energized component, and the balance position is a position where the movable lens is subjected to force balance; After determining the magnitude and direction of the balancing current of the energized component according to the position and balancing current comparison table and the target position of the movable lens, the energized component is controlled to input the determined balancing current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the balancing current.
3. The lens zoom control system according to claim 2, characterized in that: The controller is also used for: After determining the magnitude and direction of the balancing current of the energized component according to the position and balancing current comparison table and the target position of the movable lens, the energized component is controlled to input the determined balancing current; Determine the theoretical time when the movable lens first reaches the target position and the theoretical time when it reaches each vibration peak point; According to the theoretical time when the movable lens reaches the target position for the first time and the theoretical time when the movable lens reaches each vibration peak point, when it is determined that the movable lens reaches the target position for the first time or reaches the vibration peak point, the energizing current passed into the energizing component is changed to provide a reverse driving force for suppressing the vibration of the movable lens, so that the amplitude of the movable lens is less than a preset value, wherein the reverse driving force is opposite to the moving direction of the movable lens; When the amplitude of the moving mirror is less than the preset value, the energizing component is controlled to continuously input the determined balancing current.
4. The lens zoom control system according to claim 3, characterized in that: The controller is also used for: Obtaining the speed and amplitude of the moving lens when it first reaches the target position and reaches the vibration peak point, and determining the magnitude and direction of the reverse driving force according to the speed and amplitude; After determining the suppression current corresponding to the reverse driving force according to the mapping relationship between the reverse driving force and the suppression current, when the moving lens reaches the target position and each vibration peak point for the first time, the balancing current of the energized component is converted into the suppression current corresponding to the reverse driving force until the amplitude of the moving lens is less than the preset value.
5. The lens zoom control system according to claim 3, characterized in that: The controller is also used for: Obtaining a historical stabilization time of the mobile lens, and obtaining a critical time point according to the historical stabilization time and a theoretical time when the mobile lens first reaches a target position; It is determined whether the current moment exceeds the critical time point, if so, it is determined that the amplitude of the movable lens is less than the preset value, otherwise it is determined that the amplitude of the movable lens exceeds the preset value.
6. The lens zoom control system according to claim 3, characterized in that: The controller is also used for: According to the target position of the movable lens and the preset position and starting current comparison table, the magnitude and direction of the starting current of the energized component at startup are determined; wherein the position and starting current comparison table stores the mapping relationship between different equilibrium positions of the movable lens and the magnitude and direction of the starting current corresponding to the energized component.
7. The lens zoom control system according to claim 3, characterized in that: The controller is also used for: Obtaining the impedance change of the energized component within a test time interval; the test time interval is a preset time interval including a test time point when the movable lens reaches a target position from a current position; The time point corresponding to the maximum impedance change is taken as the theoretical time when the movable lens reaches the target position for the first time.
8. The lens zoom control system according to claim 3, characterized in that: The controller is also used for: The test time for the movable lens to reach each vibration peak point from the current position is obtained, and the test time for the movable lens to reach each vibration peak point from the current position is used as the theoretical time for the movable lens to reach each vibration peak point.
9. The lens zoom control system according to claim 1, characterized in that: The number of the energized components is two, and the two energized components can generate Ampere forces in opposite directions in the magnetic field after being energized, and the driving force is the superposition force of the Ampere forces generated by the two energized components.
10. A lens zoom control method, characterized in that: Applicable to the lens zoom control system according to any one of claims 1 to 9, the method comprising: receiving a control instruction sent by the operating unit; According to the control instruction, obtaining the target position of the movable lens; After determining the magnitude and direction of the current of the energized component according to the target position of the movable lens, the energized component is controlled to input the determined current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the current.
11. The lens zoom control method according to claim 10, characterized in that: After determining the magnitude and direction of the energizing current of the energizing component according to the target position of the movable lens, controlling the energizing component to input the determined energizing current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the energizing current, comprising: Obtaining a preset position and balance current comparison table, wherein the position and balance current comparison table stores a mapping relationship between different balance positions of the movable lens and the magnitude and direction of the balance current corresponding to the energized component, and the balance position is a position where the movable lens is subjected to force balance; After determining the magnitude and direction of the balancing current of the energized component according to the position and balancing current comparison table and the target position of the movable lens, the energized component is controlled to input the determined balancing current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the balancing current.
12. The lens zoom control method according to claim 11, characterized in that: After determining the magnitude and direction of the energized current of the energized component according to the position and balancing current comparison table and the target position of the movable lens, controlling the energized component to input the determined balancing current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the balancing current, comprising: After determining the magnitude and direction of the balancing current of the energized component according to the position and balancing current comparison table and the target position of the movable lens, the energized component is controlled to input the determined balancing current; Determine the theoretical time when the movable lens first reaches the target position and the theoretical time when it reaches each vibration peak point; According to the theoretical time when the movable lens reaches the target position for the first time and the theoretical time when the movable lens reaches each vibration peak point, when it is determined that the movable lens reaches the target position for the first time or reaches the vibration peak point, the energizing current passed into the energizing component is changed to provide a reverse driving force for suppressing the vibration of the movable lens, so that the amplitude of the movable lens is less than a preset value, wherein the reverse driving force is opposite to the moving direction of the movable lens; When the amplitude of the moving mirror is less than the preset value, the energizing component is controlled to continuously input the determined balancing current.
13. The lens zoom control method according to claim 12, characterized in that: The changing of the current flowing into the energizing component specifically includes: Obtaining the speed and amplitude of the moving lens when it first reaches the target position and reaches the vibration peak point, and determining the magnitude and direction of the reverse driving force according to the speed and amplitude; After determining the suppression current corresponding to the reverse driving force according to the mapping relationship between the reverse driving force and the suppression current, when the moving lens reaches the target position and each vibration peak point for the first time, the balancing current of the energized component is converted into the suppression current corresponding to the reverse driving force until the amplitude of the moving lens is less than the preset value.
14. The lens zoom control method according to claim 13, characterized in that: The method for determining whether the amplitude of the moving lens is less than the preset value is: Obtaining a historical stabilization time of the mobile lens, and obtaining a critical time point according to the historical stabilization time and a theoretical time when the mobile lens first reaches a target position; It is determined whether the current moment exceeds the critical time point, if so, it is determined that the amplitude of the movable lens is less than the preset value, otherwise it is determined that the amplitude of the movable lens exceeds the preset value.
15. The lens zoom control method according to claim 12, characterized in that: Before determining the magnitude and direction of the current of the energized component according to the position and balance current comparison table and the target position of the movable lens, the method further includes: According to the target position of the movable lens and the preset position and starting current comparison table, the magnitude and direction of the starting current of the energized component at startup are determined; wherein the position and starting current comparison table stores the mapping relationship between different equilibrium positions of the movable lens and the magnitude and direction of the starting current corresponding to the energized component.
16. The lens zoom control method according to claim 12, characterized in that: The method for obtaining the theoretical time when the moving lens reaches the target position for the first time is: Obtaining the impedance change of the energized component within a test time interval; the test time interval is a preset time interval including a test time point when the movable lens reaches a target position from a current position; The time point corresponding to the maximum impedance change is taken as the theoretical time when the movable lens reaches the target position for the first time.
17. The lens zoom control method according to claim 12, characterized in that: The method for obtaining the theoretical time for the moving lens to reach each vibration peak point is: The test time for the movable lens to reach each vibration peak point from the current position is obtained, and the test time for the movable lens to reach each vibration peak point from the current position is used as the theoretical time for the movable lens to reach each vibration peak point.
18. A lens zoom control device, characterized in that: The lens zoom driver is used to control the action of the lens zoom driver, the lens zoom driver includes a magnetic component for generating a magnetic field and an energizing component capable of generating a driving force in the magnetic field to drive the moving lens to move after being energized, and the lens zoom control device includes: An instruction receiving module, used for receiving control instructions; A target position determination module, used for obtaining the target position of the mobile lens according to the control instruction; The current determination module is used to determine the magnitude and direction of the energized current of the energized component according to the target position of the movable lens, and then control the energized component to input the determined energized current so that the lens zoom driver drives the movable lens to move to the target position according to the magnitude and direction of the energized current.
19. An electronic device, characterized in that: include: Processor and memory; The memory stores a computer program executable by the processor; When the processor executes the computer program, the steps in the lens zoom control method according to any one of claims 10 to 17 are implemented.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the lens zoom control method as described in any one of claims 10-17.
21. A camera module with a lens zoom function, characterized in that: It comprises a lens zoom control system as described in any one of claims 1 to 9.
22. An endoscope, characterized in that: It comprises a camera module with a lens zoom function as described in claim 21.
23. An endoscope system, characterized in that: It includes a camera module with a lens zoom function as described in claim 21 or an endoscope as described in claim 22.
Citation Information
Patent Citations
Zooming structure, zooming objective lens, zooming method and electronic endoscope
CN111897086A
Imaging objective lens mechanism for endoscope, zoom lens, and endoscope
CN115670350A
Variable-focus camera module, capsule endoscope with variable-focus camera module and capsule endoscope system
CN211723076U
Imaging module and endoscope
CN217659791U
Objective-lens driving device
JP1998312559A
