Focusing method and imaging apparatus
Patent Information
- Application Number
- CN202611162505.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-03
- Publication Date
- 2026-10-27
AI Technical Summary
[0003]为解决现有存在的技术问题,本申请提供一种可以提高复杂环境下调焦能力的调焦方法以及成像设备
[0003]为解决现有存在的技术问题,本申请提供一种可以提高复杂环境下调焦能力的调焦方法以及成像设备。
Smart Images

Figure CN122994622A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of imaging equipment technology, and in particular to a focusing method and an imaging device. Background Technology
[0002] For focusing systems in imaging devices such as infrared products, there are two main approaches. Manual focusing offers advantages such as simple structure and low cost, but it suffers from poor handling, poor real-time performance, and low focusing efficiency in scenarios requiring rapid response. Electric focusing, on the other hand, often employs a single method, making it difficult to meet the focusing needs of various extreme environments or complex target focusing scenarios. Summary of the Invention
[0003] To address the existing technical problems, this application provides a focusing method and imaging device that can improve focusing capabilities in complex environments.
[0004] In a first aspect, embodiments of this application provide a focusing method applied to an imaging device. The method includes: acquiring the current distance between a target and the imaging device; in response to the successful acquisition of the current distance and the current distance meeting a preset ranging requirement, focusing based on the current distance; and in response to the failure to acquire the current distance or the current distance not meeting the preset ranging requirement, focusing based on the clarity of the current image of the target.
[0005] In a second aspect, an imaging device is provided, comprising: a processor, a ranging component, a lens, a detector, an adjustment component, and a display component; the ranging component and the adjustment component are both connected to the processor; the adjustment component is also connected to the lens; the detector is used to convert the light radiation signal provided by the lens into an electrical signal and provide it to the processor; the ranging component is used to measure the current distance between the target and the imaging device; the display component is used to display an image of the target; the processor is used to execute the focusing method according to any one of the first aspects of this application; wherein, the focusing includes focusing the lens and / or the detector through the adjustment component.
[0006] In the focusing method provided in the above embodiments, the current distance between the target and the imaging device is obtained; in response to the successful acquisition of the current distance and the current distance meeting the preset ranging requirements, focusing is performed based on the current distance; in response to the failure to acquire the current distance or the current distance not meeting the preset ranging requirements, focusing is performed based on the sharpness of the current image of the target. Thus, focusing is preferentially performed using a ranging-based focusing method, allowing for flexible focusing on the target distance, improving focusing efficiency and reducing data processing volume. In complex environments such as poor visibility leading to inaccurate or failed ranging, the focusing method can be switched to a sharpness-based focusing method in a timely manner. This flexible focusing strategy of "ranging-based focusing + sharpness-based focusing" reduces the large data processing volume caused by continuous focusing based on image sharpness, and allows for timely switching of focusing methods in extreme environments to meet different scenario requirements, improving focusing capabilities in various scenarios.
[0007] The imaging device provided in the above embodiments belongs to the same concept as the corresponding focusing method embodiments, and thus has the same technical effect as the corresponding focusing method embodiments, which will not be described again here. Attached Figure Description
[0008] Figure 1 This is a flowchart illustrating a focusing method in one embodiment of this application; Figure 2 This is a flowchart illustrating the focusing method in another embodiment of this application; Figure 3 This is a schematic diagram of the structure of each component included in an imaging device according to an embodiment of this application; Figure 4 This is a flowchart illustrating the focusing method in yet another embodiment of this application; Figure 5 This is a schematic diagram of an imaging device in one embodiment of this application.
[0009] Explanation of reference numerals in the attached figures 1. Processor; 2. Lens; 3. Display component; 4. Electric focusing module; 5. Detector; 6. Manual focusing knob; 21. Tail film; 41. Ranging component; 42. Adjustment component; 43. Motor drive module; 44. Position recording module; 45. Tail film adjustment module; 421. Stepper motor; 422. Transmission mechanism. Detailed Implementation
[0010] The technical solution of this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0011] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0012] In the following description, the phrase "some embodiments" refers to a subset of all possible embodiments. It should be noted that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0013] In the following description, the terms "first," "second," and "third" are used merely to distinguish similar objects and do not represent a specific ordering of the objects. It is understood that "first," "second," and "third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other.
[0014] In some embodiments, motorized focusing schemes can be structurally divided into two categories: one where the lens is fixed and the detector is moved for focusing; and the other where the detector is fixed and the lens is moved for focusing. Both structures are paired with motorized focusing algorithms to achieve motorized focusing. Common motorized focusing algorithms mainly determine the sharpest position by calculating one or more parameters of the image (such as contrast, sharpness, etc.). Furthermore, in the process of finding the sharpest position in the image, it is necessary to traverse the entire focusing range while simultaneously calculating the image sharpness, resulting in a relatively long overall focusing time, typically 3-5 seconds.
[0015] There are certain drawbacks to achieving autofocus by moving the lens. Because the entire lens is quite heavy, moving the entire lens for focusing would be cumbersome and power-consuming. Therefore, focusing can be achieved by moving parts of the lens. This method has a more complex optical design, but because the focusing load is lighter, the entire focusing process is faster, more convenient, and more energy-efficient. Additionally, the lens's focal length will slightly change at different temperatures, and the uncertainty caused by temperature variations needs to be overcome in practical use.
[0016] This application provides a focusing method applied to an imaging device, such as... Figure 1 As shown, the method may include: S10: Obtain the current distance between the target and the imaging device.
[0017] In one embodiment, the imaging device may be a device capable of imaging a target, such as acquiring and imaging the target based on at least one of infrared, visible light, and other methods. For example, the imaging device may include a display component for displaying the image of the target.
[0018] In one embodiment, the current distance refers to the distance between the target and the imaging device at the current moment. For example, the current distance can be obtained through a ranging component (such as a rangefinder) in the imaging device.
[0019] In one embodiment, step S10 may include: acquiring the current distance between the target and the imaging device multiple times. For example, the current distance may be acquired multiple times within a predetermined time period, or at a predetermined frequency, or at a predetermined number of times.
[0020] S20: In response to the successful acquisition of the current distance and the current distance meeting the preset ranging requirements, focus is adjusted based on the current distance.
[0021] In one embodiment, successful acquisition of the current distance can mean that the ranging component outputs a reading of the current distance. For example, multiple successful acquisitions of the current distance within a predetermined time period, or at least one successful acquisition, or multiple successful acquisitions of the current distance at a predetermined frequency, or multiple successful acquisitions of the current distance a predetermined number of times, or at least one successful acquisition, etc.
[0022] In one embodiment, the current distance meeting a preset ranging requirement can indicate that the current distance has high reliability. For example, the ranging component outputs the current distance and the corresponding confidence level, and the preset ranging requirement may include the confidence level being higher than a preset confidence threshold.
[0023] In one embodiment, the preset ranging requirement may also include that the error fluctuation between multiple current distances acquired is within a preset error range.
[0024] In one embodiment, focusing based on the current distance can refer to adjusting the lens's focal length based on the current distance. For example, the adjustment components in the imaging device can be controlled to move the lens to a focusing position that matches the current distance. Moving the lens can refer to moving the tailpiece within the lens.
[0025] S30: In response to the failure to acquire the current distance or the current distance not meeting the preset ranging requirements, focus is adjusted based on the clarity of the current image of the target.
[0026] In one embodiment, failure to acquire the current distance may mean that the ranging component does not output a reading of the current distance. For example, failure to acquire the current distance multiple times within a predetermined time period, or failure to acquire the current distance multiple times at a predetermined frequency, or failure to acquire the current distance multiple times, etc.
[0027] In one embodiment, "the current distance does not meet the preset ranging requirements" can mean that the current distance was successfully acquired but does not meet the preset ranging requirements. For example, the ranging component outputs the current distance and the corresponding confidence level. "Not meeting the preset ranging requirements" can include the confidence level being lower than a preset confidence threshold.
[0028] In one embodiment, failure to meet the preset ranging requirements may also include error fluctuations between multiple current distance measurements exceeding a preset error range.
[0029] In one embodiment, focusing based on the sharpness of the current image of the target can refer to focusing based on the sharpness of the current image displayed on the display component in the imaging device. For example, it can include: determining a target focus position that matches the sharpness of the current image of the target, and focusing based on the target focus position.
[0030] Among them, focusing based on the target focus position can refer to moving the tail element in the lens to the target focus position.
[0031] In one embodiment, focusing based on the current distance may include: determining the corresponding target focus position based on the current distance; and focusing based on the target focus position.
[0032] For example, determining the corresponding target focus position based on the current distance may include: querying a target focus position that matches the current distance from a plurality of currently stored candidate focus positions; or, calculating the corresponding target focus position based on the current distance and a pre-stored distance-focus position relationship formula.
[0033] In one embodiment, focusing based on the sharpness of the current image of the target may include: calculating a current sharpness score of the current image based on a sharpness evaluation function, and determining a focus position that matches the current sharpness score; and focusing based on the focus position that matches the current sharpness score.
[0034] For example, focusing based on a focus position that matches the current sharpness score may include controlling an adjustment component in the imaging device to move the lens to a focus position that matches the current sharpness score.
[0035] In one embodiment, the method may further include: determining whether focusing based on the current distance is successful; if it fails, focusing based on the sharpness of the current image of the target.
[0036] For example, determining whether focusing based on the current distance is successful may include: determining whether the sharpness of the image after focusing based on the current distance is higher than the sharpness before focusing based on the current distance; if yes, then focusing based on the current distance is successful; if no, then focusing based on the current distance is unsuccessful.
[0037] In this way, focusing is prioritized using range-measuring autofocus, which measures the distance to the target and adjusts the focus flexibly. This improves focusing efficiency and reduces data processing. In complex environments such as poor visibility that lead to inaccurate or failed range measurement, the system can switch to a focus mode based on sharpness in a timely manner. This flexible focusing strategy of "range-measuring autofocus + sharpness autofocus" reduces the large data processing volume caused by continuous focus based on image sharpness and allows for timely switching of the focus mode in extreme environments to compensate for the low accuracy of range-measuring autofocus, thereby improving focusing capabilities in various scenarios.
[0038] In some embodiments, the preset ranging requirement may include at least one of the following: The current ambient light intensity is within the preset light intensity range; The current distance is within a preset distance range; In the current distance obtained a preset number of consecutive times, the difference between the maximum and minimum values is less than a preset threshold.
[0039] In one embodiment, the current ambient light intensity may refer to the light intensity of the environment in which the imaging device is located, and / or the light intensity of the environment in which the target is located. If the current ambient light intensity is within a preset range, it indicates that the current ambient light intensity is within a normal range, and the confidence level of the current distance acquired under this light intensity is high.
[0040] In one embodiment, "current distance within a preset distance range" can mean that the current distance acquired in a single instance for the target is within the preset distance range, or it can mean that the current distance acquired multiple times for the target is within the preset distance range. For example, the preset distance range can be no more than 100m, 5m to 100m, etc.
[0041] In one embodiment, the current distance obtained consecutively a preset number of times can refer to the current distance obtained consecutively a preset number of times for the current target. For example, the preset number of times can be a fixed value, such as 3 times, 5 times, 10 times, etc., or the preset number of times can refer to the total number of times the current distance is obtained for the current target.
[0042] In one embodiment, the preset threshold can be a fixed value, such as 0.5m, 0.3m, etc., or it can be a threshold obtained based on a fixed proportion of the current distance, such as 1% or 2% of the maximum value.
[0043] In one embodiment, the preset ranging requirement may further include: in the current distances acquired a preset number of consecutive times, the rate of change between the maximum and minimum values is less than a preset rate of change. That is, the ratio of the difference between the maximum and minimum values to the maximum value is less than the preset rate of change, and / or, the ratio of the difference between the maximum and minimum values to the minimum value is less than the preset rate of change. For example, the preset rate of change may be 1%, 2%, etc.
[0044] In this way, based on ambient light intensity, current distance value, and distance error fluctuations obtained multiple times, it is possible to more accurately and quickly identify whether the ranging data is abnormal. In this case, it can switch to the sharpness focusing mode in time to avoid the ranging focusing being in an abnormal state.
[0045] In some embodiments, such as Figure 2 As shown, after step S30, the method may further include: S40: Determine whether the focus adjustment based on the aforementioned sharpness was successful; S50: In response to the failure of focusing based on the sharpness, output a first prompt message; the first prompt message is used to prompt manual focusing.
[0046] In one embodiment, determining whether focusing based on the sharpness is successful may include: determining whether the sharpness of the image after focusing based on the sharpness is higher than the sharpness before focusing based on the sharpness; if yes, then determining that focusing based on the sharpness is successful; if no, then determining that focusing based on the sharpness has failed.
[0047] In one embodiment, outputting a first prompt message in response to a focus failure based on the sharpness may include: outputting a first prompt message in response to two or more consecutive focus failures based on the sharpness.
[0048] The initial prompt can be output through voice, light, text, images, or icons, such as by displaying it on a display component. The user can then manually adjust the focus based on this prompt.
[0049] In this way, when the rangefinding focus fails, it automatically switches to the sharpness focus. When the sharpness focus also fails, it prompts the user to manually focus. This forms a focusing strategy that automatically switches between three focusing modes: rangefinding, sharpness, and manual focus, improving flexibility and focusing reliability.
[0050] In some embodiments, the method may further include: Obtain the current battery level of the imaging device; In response to the current battery level being lower than a preset battery level, a first prompt message is output; the first prompt message is used to prompt manual focus adjustment.
[0051] In one embodiment, the current power level of the imaging device may refer to the current power level of the battery in the imaging device. For example, the battery can power ranging components, adjustment components, etc. For instance, when the adjustment component includes a stepper motor, the battery can power the stepper motor.
[0052] In one embodiment, the preset battery level can be 5%, 3%, 2%, etc., of the full battery level. When the current battery level is lower than the preset level, it indicates that the battery is unable to drive the stepper motor for automatic focusing, and the user needs to manually adjust the focus.
[0053] In this way, when the battery is low and cannot support rangefinding or focus adjustment, the system can promptly prompt the user to switch to manual focus mode, thereby further improving the reliability of focusing.
[0054] In some embodiments, before obtaining the current distance between the target and the imaging device, the method further includes: Based on the target calibration operation under multiple candidate distances, candidate collimation positions that match the multiple candidate distances are obtained respectively; Store the multiple candidate distances and the matched candidate focus positions; The focusing based on the current distance may include: Among the currently stored multiple candidate focusing positions, query the target focusing position that matches the current distance; Focusing is performed based on the target's standard focus position.
[0055] In one embodiment, the matching relationship between different candidate distances and corresponding candidate focus positions can be determined based on a pre-calibration operation and stored in the imaging device or a server, other terminal, cloud platform or storage device associated with the imaging device.
[0056] For example, the candidate focus position corresponding to each candidate distance within a range of 5m to 100m can be stored. For instance, the candidate focus position corresponding to each candidate distance can be recorded every 1m. The candidate focus position can be obtained using an absolute encoder or other sensors.
[0057] In one embodiment, the calibration operation can be to obtain the highest sharpness image of the target at the candidate distance by manually focusing, and then use the corresponding focal position as the candidate focal position that matches the candidate distance.
[0058] In one embodiment, querying the target focus position that matches the current distance can refer to querying the target focus position that matches the candidate distance closest to the current distance.
[0059] In one embodiment, focusing based on a target focus position can refer to moving the tailpiece in the lens to that target focus position. For example, this can be achieved by controlling a stepper motor drive mechanism in the adjustment assembly, which in turn moves the tailpiece in the lens to the target focus position.
[0060] In this way, by pre-storing the focus positions corresponding to each distance, the corresponding focus position can be quickly found after the current distance is obtained through distance measurement, thereby efficiently completing the focusing action.
[0061] When there are significant temperature changes, the focal length of the objective lens may slightly change due to factors such as thermal expansion and contraction of the lens itself. This renders the original focusing position data inapplicable, requiring recalibration. This application proposes that during the recalibration process, the offset of any focusing position at the current temperature is confirmed through recalibration, thereby updating all focusing positions. The principle is that all focusing positions will shift overall when the temperature changes, but the difference between any two focusing positions remains unchanged.
[0062] Based on this, in some embodiments, the method may further include: Get the current ambient temperature; In response to the current ambient temperature not being within the preset temperature range, a second prompt message is output; the second prompt message is used to prompt for recalibration. Based on the recalibrated focus position obtained at the target distance, update all the currently stored candidate focus positions.
[0063] In one embodiment, the current ambient temperature may refer to the temperature of the environment in which the imaging device is currently located. A second prompt message is output in response to the current ambient temperature not being within a preset temperature range, and / or the rate of change of the ambient temperature exceeding a preset upper limit within a set time period.
[0064] The preset temperature range can be a reliable temperature range where the lens focal length will not change, such as 15~30 degrees Celsius. The set time period can be a fixed period of time prior to the current moment.
[0065] In one embodiment, recalibration can refer to recalibrating a target at a target distance, that is, aiming at the target at that target distance and focusing it to obtain the image with the highest clarity, thus obtaining the recalibrated focus position at that target distance. For example, the target distance can be 100m or greater, thereby improving the reliability of recalibration.
[0066] In one embodiment, the second prompt information can be output through voice, light, text, images, icons, etc., for example, by displaying it on a display component. The user can recalibrate based on the second prompt information.
[0067] In one embodiment, updating all currently stored candidate focus positions based on the recalibrated focus position at the target distance may include: During the recalibration process at the target distance, the recalibrated target distance and the first collimation position corresponding to the target distance after recalibration are recorded. Among all the currently stored candidate focusing positions, query the second focusing position corresponding to the target distance; Calculate the positional deviation between the first focusing position and the second focusing position; Update all currently stored candidate focus positions based on the positional deviation.
[0068] In one embodiment, updating all currently stored candidate focus positions based on the position deviation can mean adjusting all currently stored candidate focus positions based on the position deviation to obtain updated candidate focus positions.
[0069] For example, each of the currently stored candidate focus positions can be added to or subtracted from its position deviation to obtain an updated candidate focus position.
[0070] Thus, in situations where the ambient temperature is too high or too low, causing significant thermal expansion and contraction, the system prompts the user to recalibrate and update the focus position corresponding to all distances. This ensures the accuracy of the focus position and improves the reliability of autofocus.
[0071] In some embodiments, obtaining the current distance between the target and the imaging device may include: Determine if there is relative motion between the target and the imaging device; If relative motion exists, the current distance between the target and the imaging device is acquired multiple times at a first frequency; If there is no relative motion, the current distance between the target and the imaging device is obtained multiple times at a second frequency; the first frequency is greater than the second frequency.
[0072] In one embodiment, determining whether there is relative motion between the target and the imaging device may include determining whether there is relative motion between the target and the imaging device along the imaging path direction. The imaging path direction is the direction of the straight line formed by the target and the imaging device.
[0073] In one embodiment, when the current distance is acquired multiple times, the focus can be adjusted based on the current distance each time it is acquired, or the focus can be adjusted based on the current distance after a set number of acquisitions.
[0074] In this way, the ranging frequency is increased when the target is in relative motion, so that the focus can be automatically adjusted in time according to the changes in the target's position. When there is no relative motion, the ranging frequency is reduced, thereby reducing data processing and power consumption.
[0075] In some embodiments, acquiring the current distance between the target and the imaging device multiple times at a first frequency may include: Calculate the relative velocity between the target and the imaging device; The first frequency is determined based on the relative motion velocity; The current distance between the target and the imaging device is obtained multiple times at the first frequency.
[0076] In one embodiment, the higher the relative speed, the higher the first frequency. For example, when the relative speed is a first speed, the first frequency is greater than the first frequency corresponding to a second relative speed. The first speed is greater than the second speed.
[0077] In one embodiment, the current distance meeting the preset ranging requirement can mean that the current distance obtained multiple times meets the preset ranging requirement.
[0078] In this way, by flexibly adjusting the ranging frequency according to the relative motion speed, the accuracy and reliability of autofocus can be further improved.
[0079] This application also provides an imaging device, which includes: a processor 1, a lens 2, a display component 3, an electric focusing module 4, and a detector 5; the electric focusing module 4 includes a ranging component 41 and an adjustment component 42; both the ranging component 41 and the adjustment component 42 are connected to the processor 1; the adjustment component 42 is also connected to the lens 2; the detector 5 is used to convert the light radiation signal provided by the lens 2 into an electrical signal and provide it to the processor 1; The ranging component 41 is used to measure the current distance between the target and the imaging device; the display component 3 is used to display the image of the target; the processor 1 is used to execute the focusing method provided in any of the foregoing embodiments; wherein, the focusing includes focusing the lens 2 and / or the detector 5 by adjusting the component 42.
[0080] In one embodiment, processor 1 determines whether focusing based on the sharpness is successful; in response to focusing failure based on the sharpness, it outputs a first prompt message; the first prompt message is used to prompt manual focusing.
[0081] In one embodiment, the processor 1 obtains the current battery level of the imaging device; in response to the current battery level being lower than a preset battery level, it outputs a first prompt message; the first prompt message is used to prompt manual focusing.
[0082] In one embodiment, processor 1 acquires the current ambient temperature; in response to the current ambient temperature not being within a preset temperature range, it outputs a second prompt message; the second prompt message is used to prompt for recalibration; based on the recalibrated target distance and the recalibrated focus position, it updates the focus positions corresponding to all currently stored distances.
[0083] In one embodiment, the motorized focusing module 4 is detachably mounted in the imaging device. For example, the adjustment component 42 is detachably mounted on the lens 2, and the ranging component 41 is detachably mounted within a predetermined range of the lens 2.
[0084] In one embodiment, the display component 3 may also output a first prompt message and / or a second prompt message.
[0085] It should be noted that the definitions, explanations, implementation methods and beneficial effects in this embodiment can be referred to the descriptions in the foregoing focusing method embodiments, and will not be repeated here.
[0086] In some embodiments, such as Figure 3 As shown, the lens 2 includes a tail piece 21; the adjustment assembly 42 includes a stepper motor 421 and a transmission mechanism 422, the stepper motor 421 being connected to the transmission mechanism 422 and the processor 1 respectively; the transmission mechanism 422 is connected to the tail piece 21; The processor 1 controls the stepper motor 421 to drive the transmission mechanism 422 based on the focusing position matched with the current distance, and the transmission mechanism 422 drives the tail piece 21 to move for focusing.
[0087] In one embodiment, when focusing is based on sharpness, the processor 1 can also control the stepper motor 421 to drive the transmission mechanism 422 based on a focus position matched with sharpness (e.g., sharpness score), the transmission mechanism 422 driving the tail piece 21 to move for focusing.
[0088] For example, the electric focusing module 4 may also include a motor drive module 43 connected to the stepper motor 421 and the processor 1, with the processor 1 driving the stepper motor 421 through the motor drive module 43.
[0089] For example, the motorized focusing module 4 may also include a position recording module 44 connected to the processor 1, for recording in real time the position of the lens 2 moved by the transmission mechanism 422 during focusing, and transmitting the data to the processor 1. For example, the position recording module 44 may include multiple sensors.
[0090] For example, the electric focusing module 4 may also include a tail film adjustment module 45 connected between the transmission mechanism 42 and the tail film 21, for adjusting the position of the tail film 21 based on the movement of the transmission mechanism 42.
[0091] Thus, the above mechanism can be used to automatically move the tail film 21, thereby adjusting the focal length of the lens 2.
[0092] In some embodiments, the imaging device may further include a manual focus knob 6 for performing manual focusing. Rotating the manual focus knob 6 can move the tail film 21 in the lens 2. The imaging device may have a manual-electric focus switching function, that is, it can switch between manual focus and electric focus (including rangefinding focus and sharpness focus). For example, it can switch to manual focus when sharpness focus fails, switch to manual focus mode when the manual focus knob 6 is rotated to a first position, and switch to electric focus mode when the manual focus knob 6 is rotated to a second position, etc.
[0093] In one embodiment, the manual focus knob 6 can be connected to the electric focus module 4. For example, the manual focus knob 6 is sleeved on the outer periphery of the electric focus module 4, so that the electric focus module 4 is located in the inner cavity formed by the manual focus knob 6. The manual focus knob 6 can be connected to the transmission mechanism 422 of the electric focus module 4, so that when the manual focus knob 6 is manually focusing, it drives the tail plate 21 to move through the transmission mechanism 422.
[0094] For example, the manual focus knob 6 can be connected to the electric focus module 4 via a transmission component, or it can be connected to the electric focus module 4 via a snap-fit connection.
[0095] In one embodiment, the manual focus knob 6 can move relative to the electric focus module 4 along the axial direction of the manual focus knob 6.
[0096] For example, when the manual focus knob 6 moves to the first position relative to the electric focus module 4, it enters the manual focus mode. At this time, the electric focus module 4 is in a disabled state, that is, in a closed state. Focusing is achieved by rotating the manual focus knob 6 to drive the tail film 21 to move.
[0097] For example, when the manual focus knob 6 moves to the second position relative to the electric focus module 4, it enters the electric focus mode. At this time, the electric focus module 4 can be activated and drive the tail film 21 to move to achieve focusing. By changing the position of the manual focus knob 6, the focusing mode is switched, avoiding simultaneous manual and automatic focusing, and improving the reliability and stability of the focusing structure.
[0098] In some embodiments, the manual focus knob 6 is sleeved on the outer periphery of the electric focus module 4, or the manual focus knob 6 and the electric focus module 4 are arranged sequentially along the axial direction of the manual focus knob 6. The manual focus knob 6 and the electric focus module 4 are arranged sequentially along the axial direction, so that the manual focus knob 6 can move relative to the electric focus module 4 along the axial direction, thereby moving closer to or away from the electric focus module 4, so as to facilitate the engagement and disengagement of the manual focus knob 6 and the electric focus module 4.
[0099] In some embodiments, the imaging device further includes an operation unit for receiving user operation commands. The operation unit is signal-connected to the electric focusing module 4. In autofocus mode, when the operation unit receives a user operation command, it triggers the electric focusing module 4 to start. The operation unit may be, for example, a touch screen, a control button, etc. The operation unit is signal-connected to the electric focusing module 4 through a processor 1, and the processor 1 controls the electric focusing module 4 to achieve the autofocus function.
[0100] When the manual focus knob 6 moves to the first position, the manual focus knob 6 can be physically connected to the transmission mechanism 422. The connection can be a direct connection or an indirect connection through an intermediate component. At this time, when the manual focus knob 6 rotates, it can drive the transmission mechanism 422 to rotate synchronously, so that the manual focus knob 6 drives the tail piece 21 to move together through the transmission mechanism 422.
[0101] When the manual focus knob 6 moves to the second position, the manual focus knob 6 is physically disconnected from the transmission mechanism 422. After the electric focus module 4 is started, it triggers the transmission mechanism 422 to rotate. At this time, the manual focus knob 6 does not rotate synchronously with the transmission mechanism 422.
[0102] In one embodiment, the manual focus knob 6 includes a knob body and a screw cap. The screw cap is detachably connected to one end of the knob body. After being fixed to the knob body, the screw cap and the knob body together form a bottle cap-like structure. Rotating the knob body allows for manual focus adjustment. A mounting portion is provided on the inner wall of one end of the knob body. The screw cap can be fixed to the outside of the mounting portion, for example, by a screw or other connector, thereby achieving a detachable connection with the knob body.
[0103] In one embodiment, a trigger module is further included. The trigger module identifies the position of the manual focus knob 6 and feeds it back to the processor 1. The processor 1 then switches between manual focus mode and automatic focus mode based on the position of the manual focus knob 6. The trigger module and the processor 1 are electrically connected, and the trigger module has two states: triggered and disconnected. Changing the state of the trigger module corresponds to switching the focus mode, facilitating control of the electric focus module 4.
[0104] The manual focus knob 6 is used to move relative to the electric focus module 4 to a first position or a second position. When the manual focus knob 6 is in the first position, it can be connected to the transmission mechanism 422 of the electric focus module 4 via a transmission component, or it can be directly connected to the transmission mechanism 422 of the electric focus module 4. The manual focus knob 6 drives the transmission mechanism 422 to rotate together, simultaneously causing the trigger module to be in a disconnected state. The trigger processor 1 controls the electric focus module 4 to be in a closed state. The processor 1 then controls the electric focus module 4 to be in a closed state according to the trigger module. The block's disconnected state controls the electric focusing module 4, preventing it from starting. When the manual focusing knob 6 is in the second position, it is separated from the transmission mechanism 422 of the electric focusing module 4, preventing it from rotating. This triggers the module and puts it into a trigger state. The processor 1 controls the electric focusing module 4 to be in an startable state based on the trigger state. If the operation unit receives a user's operation command, the processor 1 can control the electric focusing module 4 to start.
[0105] In one embodiment, the trigger module includes a trigger element and a switch plate. When the manual focus knob 6 moves to the second position, the trigger element and the switch plate are brought into contact to form an electrical connection, thereby putting the trigger module in a triggered state. When the manual focus knob 6 moves to the first position, the trigger element and the switch plate are separated to disconnect the electrical connection, thereby putting the trigger module in a disconnected state.
[0106] As one possible implementation, this application provides a focusing scheme that combines rangefinding focusing, sharpness focusing, and manual focusing to comprehensively improve the user experience. The priority of the three focusing methods is: rangefinding focusing > sharpness focusing > manual focusing. This section first introduces the relevant theoretical basis.
[0107] 1. Distance measurement and focusing.
[0108] The basic idea behind rangefinding focusing is that when the target distance is greater than 100 meters, the change in image distance is very small (≤0.045mm). Considering the depth of field, the image distance corresponding to target distances of 100 meters and above can be considered the same. Therefore, it is only necessary to calculate the focusing position (in meters) corresponding to each distance within the range of 5m-100m and record it.
[0109] In actual use, the corresponding focus position is found based on the distance measurement value (i.e., the current distance), and then the processor moves the lens tail piece to the focus position through the motor drive module to achieve clear focusing.
[0110] 2. The problem of "focusing".
[0111] The so-called focus drift problem occurs when there are significant temperature changes. Due to factors such as the thermal expansion and contraction of the lens itself, the focal length of the objective lens may change slightly, causing the original focus position data to become inapplicable and requiring recalibration.
[0112] Recalibration: Using a target of 100m or above as a reference, manually align the device with the target of 100m or above and focus it clearly. Then click the calibration button. The device records the current focus position and compares it with the previous focus position of 100m or above. Calculate the difference and apply this difference to other focus positions to complete one calibration.
[0113] 3. Combination of three focusing methods.
[0114] Distance-based focusing is fast and accurate, but it relies heavily on accurate distance measurement readings; if the distance measurement reading is abnormal, distance-based focusing will fail. Therefore, the device employs a triple protection mechanism: if the distance measurement reading is abnormal, it automatically switches to sharpness-based focusing; if sharpness-based focusing is abnormal, the user can switch to manual focusing mode. Additionally, manual focusing is also a backup focusing method when the battery is low.
[0115] 4. Focusing process.
[0116] like Figure 4 As shown, before use, it is necessary to ensure that the device has been calibrated to eliminate focus issues. When automatic focusing is triggered, if the distance measurement reading is normal, the processor will find the corresponding focus position based on the distance measurement value and move the motor to the focus position through the motor drive module to complete the entire focusing process. If the distance measurement value is abnormal, the processor will switch to sharpness focusing to ensure that the focusing function is realized. If the battery is low or the first two focusing methods are abnormal, the user can use manual focusing.
[0117] 5. Introduction to each module.
[0118] Lens: Used for focusing, concentrating infrared radiation onto the detector surface. The tail plate adjustment module is part of the lens, and the tail plate of the lens is movable.
[0119] Detector: Used to receive radiation and convert optical radiation signals into electrical signals.
[0120] Transmission mechanism: Connects the stepper motor and the lens, transmitting the output power of the stepper motor to the lens, driving the lens to move back and forth to achieve focusing.
[0121] Position recording module: used to record the position of the lens as the transmission mechanism moves during focusing in real time, and transmit the data to the processor; in actual use, the position recording module can be a combination of multiple sensors.
[0122] Distance measuring component: Used to measure the distance from the device to the target, i.e., the object distance.
[0123] Stepper motor: generates the power output for electric focusing; according to the instructions of the motor drive module and processor, it realizes the forward and backward movement of the lens through the transmission mechanism.
[0124] The motor drive module generates the drive signals required for the stepper motor to operate and receives control commands from the processor, driving the motor to rotate and displace the tail piece. The motor drive module uses micro-stepping technology, achieving finer motor step distances by precisely controlling the magnitude and direction of the drive current, improving accuracy while further reducing stepper motor vibration and noise. It supports a maximum microstepping mode of 1 / 256, dividing each full step of the stepper motor into 256 smaller steps, thus achieving more precise stepping control.
[0125] Processor: 1. Processes image data; 2. Receive data from the ranging component, match the corresponding focusing position according to the object distance, confirm the distance the lens should move, and then send the corresponding command to move the lens to the corresponding position to achieve focusing; 3. Handling the combination of three focusing methods: When the distance measurement reading fails, the sharpness focusing is activated. When the distance measurement focusing and sharpness focusing are abnormal, or the battery power is low and cannot drive the motor, the user is prompted to manually focus.
[0126] Display component: Displays the final output image (i.e., the image).
[0127] In such Figure 5 In the imaging device shown, the electric focusing module 4 can be detachably mounted in the imaging device, for example, detachably connected to the lens 2.
[0128] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0129] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A focusing method applied to an imaging device, characterized in that, The method includes: Obtain the current distance between the target and the imaging device; In response to the successful acquisition of the current distance and the fact that the current distance meets the preset ranging requirements, focus is adjusted based on the current distance; In response to the failure to acquire the current distance or the current distance not meeting the preset ranging requirements, the focus is adjusted based on the clarity of the current image of the target.
2. The focusing method according to claim 1, characterized in that, The preset ranging requirements include at least one of the following: The current ambient light intensity is within the preset light intensity range; The current distance is within a preset distance range; In the current distance obtained a preset number of consecutive times, the difference between the maximum and minimum values is less than a preset threshold.
3. The focusing method according to claim 1, characterized in that, After focusing based on the sharpness of the current image of the target, the method further includes: Determine whether the focus adjustment based on the aforementioned sharpness was successful; In response to a focus failure based on the aforementioned sharpness, a first prompt message is output; the first prompt message is used to prompt manual focus adjustment.
4. The focusing method according to claim 1, characterized in that, The method further includes: Obtain the current battery level of the imaging device; In response to the current battery level being lower than a preset battery level, a first prompt message is output; the first prompt message is used to prompt manual focus adjustment.
5. The focusing method according to claim 1, characterized in that, The focusing based on the current distance includes: Determine the corresponding target focus position based on the current distance; Focusing is performed based on the target's standard focus position.
6. The focusing method according to claim 5, characterized in that, Before obtaining the current distance between the target and the imaging device, the following steps are also included: Based on the target calibration operation under multiple candidate distances, candidate collimation positions that match the multiple candidate distances are obtained respectively; Store the multiple candidate distances and the matched candidate focus positions; Determining the corresponding target focus position based on the current distance includes: Among the currently stored multiple candidate focus positions, query the target focus position that matches the current distance.
7. The focusing method according to claim 6, characterized in that, The method further includes: Get the current ambient temperature; In response to the current ambient temperature not being within the preset temperature range, a second prompt message is output; the second prompt message is used to prompt for recalibration. Based on the recalibrated focus position obtained at the target distance, update all the currently stored candidate focus positions.
8. The focusing method according to claim 7, characterized in that, The step of updating all currently stored candidate focus positions based on the recalibrated focus position at the target distance includes: During the recalibration process at the target distance, the recalibrated target distance and the first collimation position corresponding to the target distance after recalibration are recorded. Among all the currently stored candidate focusing positions, query the second focusing position corresponding to the target distance; Calculate the positional deviation between the first focusing position and the second focusing position; Update all currently stored candidate focus positions based on the positional deviation.
9. The focusing method according to claim 1, characterized in that, The acquisition of the current distance between the target and the imaging device includes: Determine if there is relative motion between the target and the imaging device; If relative motion exists, the current distance between the target and the imaging device is acquired multiple times at a first frequency; If there is no relative motion, the current distance between the target and the imaging device is obtained multiple times at a second frequency; the first frequency is greater than the second frequency.
10. The focusing method according to claim 9, characterized in that, The step of repeatedly acquiring the current distance between the target and the imaging device at a first frequency includes: Calculate the relative velocity between the target and the imaging device; The first frequency is determined based on the relative motion velocity; The current distance between the target and the imaging device is obtained multiple times at the first frequency.
11. An imaging device, characterized in that, The imaging device includes: a processor, a lens, a detector, a display component, and a motorized focusing module; the motorized focusing module includes a ranging component and an adjustment component; both the ranging component and the adjustment component are connected to the processor; the adjustment component is also connected to the lens; the detector is used to convert the light radiation signal provided by the lens into an electrical signal and then provide it to the processor; The ranging component is used to measure the current distance between the target and the imaging device; the display component is used to display the image of the target; the processor is used to execute the focusing method according to any one of claims 1 to 10; wherein the focusing includes focusing the lens and / or the detector by adjusting the component.
12. The imaging device according to claim 11, characterized in that, The lens includes a tailpiece; the adjustment assembly includes a stepper motor and a transmission mechanism, the stepper motor being connected to the transmission mechanism and the processor respectively; the transmission mechanism is connected to the tailpiece; The processor controls the stepper motor to drive the transmission mechanism based on the focusing position matched with the current distance, and the transmission mechanism drives the tail film to move for focusing.
13. The imaging device according to claim 11 or 12, characterized in that, The electric focusing module is detachably assembled into the imaging device.