Cursor position adjustment method and apparatus, and device
By calculating and adjusting the offset of the laser cursor in the thermal imaging equipment, the problem of reduced positioning accuracy between the cursor and the target object in the thermal imaging equipment is solved, and higher laser positioning accuracy and cursor calibration capabilities are achieved.
Patent Information
- Application Number
- PCT/CN2024/079580
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-14
- Filing Date
- 2024-03-01
- Publication Date
- 2024-09-19
AI Technical Summary
When the target object distance of the thermal imaging equipment changes, the deviation between the laser cursor and the target object in the target image reduces the positioning accuracy, and the physical distance between the laser rangefinder and the thermal imaging lens makes cursor calibration difficult.
By determining the position information and calibrated parameters between the laser rangefinder and the thermal imaging lens, the offset of the cursor in the target image is calculated and adjusted to make the cursor position close to the position of the target object and improve positioning accuracy.
It effectively improves the accuracy of laser positioning and ensures the accuracy of the cursor's position on the target object. Especially when the target object distance changes or the lens is changed, it can effectively calibrate the cursor position and reduce the deviation between the cursor and the target object position.
Smart Images

Figure CN2024079580_19092024_PF_FP_ABST
Abstract
Description
Method, device and apparatus for adjusting cursor position Technical Field
[0001] The present application relates to the field of infrared thermal imaging technology, and in particular to a method, device and equipment for adjusting a cursor position. Background Art
[0002] Thermal imaging devices can use lasers and thermal imaging technology to image and locate target objects, thus achieving laser positioning. For example, thermal imaging devices may include a laser rangefinder and a thermal imaging lens. During the target positioning process, the laser rangefinder emits a laser at the target object, and the thermal imaging lens captures a target image corresponding to the target object (i.e., an image obtained through thermal imaging). A laser cursor is then added to the target image to achieve the target location. However, when thermal imaging devices are shipped from the factory, the laser cursor is typically calibrated at a fixed object distance. For example, the laser cursor is first displayed at the center of the target image, always aligned with the optical axis of the thermal imaging lens, and the position of the laser cursor is not subsequently adjusted. Thus, at a fixed distance, the laser emission angle is adjusted so that the laser optical axis intersects the optical axis of the thermal imaging lens. At this point, the laser cursor in the target image coincides with the target indicated by the laser cursor. Due to the physical distance between the laser rangefinder and the thermal imaging lens, when the target object distance changes, the laser cursor remains in the center of the target image. However, in the target image, the target object indicated by the laser cursor is not in the center of the target image. That is, the position of the laser cursor in the target image deviates from the target object indicated by the laser cursor, which reduces the accuracy of laser positioning.
[0003] Summary of the Invention
[0004] The present application provides a method for adjusting a cursor position, which is applied to a thermal imaging device, wherein the thermal imaging device includes a laser rangefinder and a thermal imaging lens. The method includes:
[0005] Emitting a laser to a target object through the laser rangefinder, and collecting a target image corresponding to the target object through a thermal imaging lens, wherein the target image includes a laser cursor corresponding to the laser rangefinder;
[0006] determining a target offset of the laser cursor in the target image based on calibrated parameters corresponding to the thermal imaging lens and position information between the laser rangefinder and the thermal imaging lens;
[0007] The position of the laser cursor in the target image is adjusted based on the target offset.
[0008] The present application provides a cursor position adjustment device, which is applied to a thermal imaging device, wherein the thermal imaging device includes a laser rangefinder and a thermal imaging lens, and the device includes:
[0009] an acquisition module, configured to emit a laser to a target object through the laser rangefinder, and collect a target image corresponding to the target object through a thermal imaging lens, wherein the target image includes a laser cursor corresponding to the laser rangefinder;
[0010] a determination module, configured to determine a target offset of the laser cursor in the target image based on calibrated parameters corresponding to the thermal imaging lens and position information between the laser rangefinder and the thermal imaging lens;
[0011] An adjustment module is configured to adjust a position of the laser cursor in the target image based on the target offset.
[0012] The present application provides a thermal imaging device, comprising: a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the cursor position adjustment method of the above example of the present application.
[0013] As can be seen from the above technical solution, in the embodiments of the present application, the target offset of the laser cursor is determined based on the calibrated parameters corresponding to the thermal imaging lens and the positional information between the laser rangefinder and the thermal imaging lens. The position of the laser cursor is then adjusted based on the target offset, thereby bringing the laser cursor closer to the position of the target object indicated by the laser cursor in the target image, thereby improving the accuracy of laser positioning. Furthermore, when the distance between the target object and the thermal imaging device changes, or when the thermal imaging lens is replaced, the position of the laser cursor can be effectively calibrated to bring the target object in the target image closer to the position of the laser cursor, thereby improving the positioning accuracy of the laser rangefinder. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments of the present application or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the embodiments of the present application.
[0015] FIG1 is a schematic flow chart of a method for adjusting a cursor position in one embodiment of the present application;
[0016] FIG2 is a schematic flow chart of a laser calibration process in one embodiment of the present application;
[0017] FIG3 is a schematic diagram of determining calibrated parameters in one embodiment of the present application;
[0018] FIG4 is a schematic flow chart of a laser cursor automatic adjustment process in one embodiment of the present application;
[0019] FIG5 is a schematic diagram of determining a target offset of a laser cursor in one embodiment of the present application;
[0020] FIG6 is a schematic structural diagram of a device for adjusting a cursor position in one embodiment of the present application;
[0021] FIG. 7 is a hardware structure diagram of a thermal imaging device in one embodiment of the present application. DETAILED DESCRIPTION
[0022] The terms used in the embodiments of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms "a," "the," and "the" used in this application and claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.
[0023] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" used may also be interpreted as "at the time of" or "when" or "in response to determining".
[0024] In an embodiment of the present application, a method for adjusting the cursor position is provided. The method can be applied to a thermal imaging device. The thermal imaging device can include a laser rangefinder and a thermal imaging lens. FIG1 is a flow chart of the method for adjusting the cursor position. The method for adjusting the cursor position can include:
[0025] Step 101: A laser rangefinder emits a laser at a target object, and a thermal imaging lens captures a target image corresponding to the target object. The target image may include a laser cursor corresponding to the laser rangefinder. The laser cursor is used to indicate the position of the target object in the target image. For example, the laser cursor corresponding to the laser rangefinder may be located at the center of the target image.
[0026] Step 102 : Determine a target offset of the laser cursor in the target image based on calibrated parameters corresponding to the thermal imaging lens and position information between the laser rangefinder and the thermal imaging lens.
[0027] Step 103: Adjust the position of the laser cursor based on the target offset. For example, a target cursor position of the laser cursor is determined based on the target offset and the initial cursor position of the laser cursor (e.g., the center position of the target image), and the laser cursor in the target image is adjusted to the target cursor position. In other words, the laser cursor in the target image is adjusted to the position of the target object actually indicated by the laser.
[0028] In one possible embodiment, the process of determining the calibrated parameters corresponding to the thermal imaging lens may include, but is not limited to: emitting a laser at a sample object using a laser rangefinder, and capturing a target image corresponding to the sample object using the thermal imaging lens, wherein the target image may include a laser cursor corresponding to the laser rangefinder; for example, the laser cursor corresponding to the laser rangefinder may be located at the center of the target image. Then, the position of the laser cursor is adjusted so that the adjusted position of the laser cursor is consistent with (e.g., overlaps or partially overlaps with) the actual position of the sample object in the target image, i.e., the two are located at the same position; a sample offset of the laser cursor is determined based on the adjusted position of the laser cursor, and the calibrated parameters corresponding to the thermal imaging lens are determined based on the sample offset.
[0029] For example, the calibrated parameters may include a sample offset, a distance between the projection point of the sample object on the second optical axis of the thermal imaging lens and the thermal imaging lens (hereinafter referred to as the sample distance). Alternatively, the calibrated parameters may include an offset angle between the first optical axis of the laser rangefinder and the second optical axis of the thermal imaging lens.
[0030] For example, if the calibrated parameters include an offset angle between the first optical axis and the second optical axis, determining the calibrated parameters corresponding to the thermal imaging lens based on the sample offset may include, but is not limited to: determining the offset angle between the first optical axis and the second optical axis based on the sample offset, a sample distance between the thermal imaging lens and the projection point of the sample object on the second optical axis, the focal length of the thermal imaging lens, and position information between the laser rangefinder and the thermal imaging lens.
[0031] Determining the offset angle between the first optical axis and the second optical axis based on the sample offset, the sample distance between the projection point of the sample object on the second optical axis and the thermal imaging lens, the focal length of the thermal imaging lens, and the position information between the laser rangefinder and the thermal imaging lens can include: determining the distance between the sample object and the projection point of the sample object on the second optical axis as the projection spacing based on the sample offset, the sample distance, and the focal length of the thermal imaging lens; and determining the offset angle between the first optical axis and the second optical axis based on the projection spacing, the position information between the laser rangefinder and the thermal imaging lens, and the sample distance.
[0032] In one possible implementation, determining a target offset of a laser cursor in a target image based on calibrated parameters corresponding to a thermal imaging lens and position information between a laser rangefinder and the thermal imaging lens may include, but is not limited to, determining a target offset of a laser cursor in a target image based on calibrated parameters corresponding to the thermal imaging lens, a target distance between a target object and the laser rangefinder, a focal length of the thermal imaging lens, and position information between the laser rangefinder and the thermal imaging lens.
[0033] For example, if the calibrated parameters include an offset angle between the first optical axis of the laser rangefinder and the second optical axis of the thermal imaging lens, the target offset of the laser cursor can be determined in the following manner: based on the position information between the laser rangefinder and the thermal imaging lens, the target distance, and the offset angle, the projection distance between the target object and the projection point of the target object on the second optical axis is determined; based on the target distance and the offset angle, the distance between the projection point of the target object on the second optical axis and the thermal imaging lens is determined; the target offset of the laser cursor can be determined based on the projection distance, the distance between the projection point of the target object on the second optical axis and the thermal imaging lens, and the focal length of the thermal imaging lens.
[0034] In one possible implementation, if a thermal imaging device supports at least one thermal imaging lens (e.g., multiple thermal imaging lenses), each thermal imaging lens is sequentially installed in the thermal imaging device before the device leaves the factory. When each thermal imaging lens is installed in the device, calibrated parameters corresponding to the lens can be determined, and a mapping relationship between the lens and the calibrated parameters corresponding to the lens can be recorded. After the device leaves the factory, when the lens is installed in the device, the calibrated parameters corresponding to the lens can be queried based on the mapping relationship.
[0035] As can be seen from the above technical solution, in the embodiments of the present application, the target offset of the laser cursor is determined based on the calibrated parameters corresponding to the thermal imaging lens and the positional information between the laser rangefinder and the thermal imaging lens. The position of the laser cursor is then adjusted based on the target offset, thereby bringing the laser cursor closer to the target object indicated by the laser in the target image, thereby improving the accuracy of laser positioning. Furthermore, when the distance between the target object and the thermal imaging device changes, or when the thermal imaging lens is replaced, the position of the laser cursor can be effectively calibrated to bring the target object in the target image closer to the laser cursor, thereby improving the positioning accuracy of the laser rangefinder.
[0036] The above technical solutions of the embodiments of the present application are described below in conjunction with specific application scenarios.
[0037] Thermal imaging equipment can include laser rangefinders and thermal imaging lenses. A laser rangefinder is an instrument that uses lasers to accurately locate a target object. It can emit laser light at the target object and measure the distance between the target object and the laser rangefinder. A thermal imaging lens is an instrument used to image a target object. Thermal imaging technology can be used to capture a target image corresponding to the target object. Thermal imaging technology, for example, uses non-contact detection of infrared energy (heat) and converts it into electrical signals to generate a target image (i.e., a thermal image). The target image is related to the surface temperature of the object, and the surface temperature of the object can be determined based on the target image.
[0038] When a thermal imaging device captures a target object, it emits a laser at the target object through a laser rangefinder, captures a target image corresponding to the target object through the thermal imaging lens, and displays a laser cursor at the target object's location in the target image, thereby locating the target object. In other words, the location of the laser cursor is the location of the target object. For example, the laser cursor may be located at the center of the target image, and the target object is located at the center of the target image, so that the location of the laser cursor is the location of the target object.
[0039] However, since there is a physical distance between the laser rangefinder and the thermal imaging lens when the thermal imaging device leaves the factory, although the laser cursor will be located at the center of the target image, the position of the target object may not be the center of the target image, but may deviate from the center of the target image, resulting in the position of the laser cursor being different from the actual position of the target object indicated by the laser cursor. In other words, there is a deviation between the position of the laser cursor and the position of the target object, which in turn leads to inaccurate positioning of the target object.
[0040] In response to the above findings, an embodiment of the present application proposes a method for adjusting the cursor position. When the test object distance of the target object changes, the position of the laser cursor can be adjusted so that the position of the laser cursor is close to the position of the target object (for example, adjusted from the center position of the target image to the position of the target object), thereby reducing the deviation between the position of the laser cursor and the position of the target object, and being able to accurately determine the position of the laser cursor and improve the positioning accuracy of the laser indication.
[0041] Embodiments of the present application may involve a laser calibration process and a laser cursor automatic adjustment process. For example, the laser calibration process is completed before the thermal imaging device leaves the factory. During the laser calibration process, calibrated parameters need to be set for the thermal imaging lens, i.e., the thermal imaging device stores the calibrated parameters corresponding to the thermal imaging lens. Furthermore, the laser cursor automatic adjustment process is completed after the thermal imaging device leaves the factory, i.e., during actual use of the thermal imaging device. During the laser cursor automatic adjustment process, the cursor position can be automatically adjusted based on the calibrated parameters corresponding to the thermal imaging lens.
[0042] In one possible implementation, a thermal imaging device may support at least one thermal imaging lens. These lenses may be of different types or the same type. For example, the thermal imaging device may support thermal imaging lens 1, thermal imaging lens 2, and thermal imaging lens 3. When thermal imaging lens 1 is installed on the thermal imaging device, if a user needs to replace the thermal imaging lens, thermal imaging lens 1 is removed from the thermal imaging device and thermal imaging lens 2 is installed. If a user needs to replace the thermal imaging lens, thermal imaging lens 2 is removed from the thermal imaging device and thermal imaging lens 3 is installed, and so on. It should be noted that when different thermal imaging lenses are installed on the thermal imaging device, they are installed in the same position on the device. Therefore, the position information of the laser rangefinder and the thermal imaging lens remains unchanged when using different thermal imaging lenses.
[0043] If a thermal imaging device supports multiple thermal imaging lenses, the laser calibration process requires setting calibrated parameters for each lens. The thermal imaging device then stores these calibrated parameters for each lens. For example, before the thermal imaging device leaves the factory, thermal imaging lens 1 is installed, and calibrated parameter 1 corresponding to thermal imaging lens 1 is determined. The mapping relationship between thermal imaging lens 1 and calibrated parameter 1 is recorded. Then, thermal imaging lens 1 is removed from the thermal imaging device, and thermal imaging lens 2 is installed. Calibrated parameter 2 corresponding to thermal imaging lens 2 is determined, and the mapping relationship between thermal imaging lens 2 and calibrated parameter 2 is recorded. Then, thermal imaging lens 2 is removed from the thermal imaging device, and thermal imaging lens 3 is installed. Calibrated parameter 3 corresponding to thermal imaging lens 3 is determined, and the mapping relationship between thermal imaging lens 3 and calibrated parameter 3 is recorded. This completes the laser calibration process.
[0044] After the thermal imaging device leaves the factory, during the automatic laser cursor adjustment process, when a thermal imaging lens is installed in the thermal imaging device, the calibrated parameters corresponding to the thermal imaging lens can be queried based on the mapping relationship, and the cursor position can be automatically adjusted based on the calibrated parameters corresponding to the thermal imaging lens. For example, when thermal imaging lens 1 is installed in the thermal imaging device, the calibrated parameter 1 corresponding to thermal imaging lens 1 can be queried based on the mapping relationship, and the cursor position can be automatically adjusted based on the calibrated parameter 1, and so on.
[0045] First, the laser calibration process. During the laser calibration process, calibrated parameters need to be set for each thermal imaging lens. Since the processing method for each thermal imaging lens is the same, the following uses a thermal imaging lens as an example.
[0046] Install a thermal imaging lens on the thermal imaging device, and the optical axis of the thermal imaging lens is fixed and does not change. Install a laser rangefinder on the thermal imaging device, and the laser rangefinder is not fixed, and the angle of the optical axis of the laser rangefinder (that is, the emission angle of the laser) can be adjusted. Turn on the laser rangefinder, and adjust the angle of the optical axis of the laser rangefinder by target positioning so that the optical axis of the laser rangefinder is parallel or nearly parallel to the optical axis of the thermal imaging lens. After the optical axis of the laser rangefinder is adjusted, fix the laser rangefinder, that is, the optical axis of the laser rangefinder no longer changes. When fixing the laser rangefinder, the optical axis of the laser rangefinder may be offset due to assembly errors, so that the optical axis of the laser rangefinder and the optical axis of the thermal imaging lens are no longer parallel; or, due to the optical axis adjustment error of the laser rangefinder, the optical axis of the laser rangefinder may be non-parallel to the optical axis of the thermal imaging lens.
[0047] After the laser rangefinder is fixed and the thermal imaging lens is installed on the thermal imaging device, FIG2 is a flow chart of the laser calibration process. The laser calibration process may include:
[0048] Step 201: emit laser to a sample object through a laser rangefinder, and collect a target image corresponding to the sample object. The target image may include a laser cursor corresponding to the laser rangefinder; for example, the laser cursor corresponding to the laser rangefinder may be located at the center of the target image.
[0049] For example, before the thermal imaging device leaves the factory, a sample object can be placed in a target scene (i.e., any scene used for laser calibration of the thermal imaging device). During the process of photographing the sample object, the thermal imaging device emits a laser to the sample object through a laser rangefinder, and captures a target image corresponding to the sample object through a thermal imaging lens. Assume that the initial position of the laser cursor is at the center of the target image, and the laser cursor coincides with the optical axis of the lens. Due to the physical distance between the laser rangefinder and the thermal imaging lens, the position of the laser cursor in the target image is different from the position of the sample object indicated by the laser cursor, that is, the position of the laser cursor cannot accurately reflect the position of the sample object.
[0050] Step 202 : Adjust the position of the laser cursor so that the adjusted position of the laser cursor is consistent with the actual position of the sample object, and determine the sample offset of the laser cursor based on the adjusted position of the laser cursor.
[0051] For example, the actual position of the sample object can be located from the target image, that is, the target image can reflect the actual position of the sample object. Based on this, the position of the laser cursor can be adjusted so that the adjusted position of the laser cursor is consistent with the actual position of the sample object. For example, the user can find the actual position of the sample object from the target image and move the laser cursor to the actual position of the sample object so that the adjusted position of the laser cursor is consistent with the actual position of the sample object. Alternatively, the thermal imaging device can analyze the actual position of the sample object from the target image and move the laser cursor to the actual position of the sample object so that the adjusted position of the laser cursor is consistent with the actual position of the sample object.
[0052] After aligning the adjusted position of the laser cursor with the actual position of the sample object, the sample offset of the laser cursor can be determined. The sample offset represents the amount of movement from the initial cursor position (e.g., the center of the target image) to the target cursor position (i.e., the actual position of the sample object). The sample offset may include a horizontal sample offset X1 and a vertical sample offset Y1.
[0053] For example, a coordinate system is established with the center of the target image as the coordinate origin, the horizontal right direction as the X-axis, and the vertical upward direction as the Y-axis. The initial cursor position of the laser cursor is (0, 0). Assuming that the target cursor position is (a, b), the sample offset X1 is the difference between a and 0, that is, the horizontal offset of the laser cursor is X1. The sample offset X1 is a vector with a direction. The positive or negative value determines the offset direction, and the absolute value of the difference determines the offset distance. For example, when X1 is 10, it means that the laser cursor is offset 10 to the right from the initial cursor position (0, 0). When X1 is -10, it means that the laser cursor is offset 10 to the left from the initial cursor position (0, 0). The sample offset Y1 is the difference between b and 0, that is, the vertical offset of the laser cursor is Y1. The sample offset Y1 is a vector with a direction. The positive or negative value determines the offset direction, and the absolute value of the difference determines the offset distance. For example, when Y1 is 20, it means that the laser cursor is offset 20 degrees upward from the initial cursor position (0, 0). When Y1 is -20, it means that the laser cursor is offset 20 degrees downward from the initial cursor position (0, 0).
[0054] Step 203: Determine calibrated parameters corresponding to the thermal imaging lens based on the sample offset of the laser cursor.
[0055] For example, the calibrated parameters corresponding to the thermal imaging lens may include a sample offset, a sample distance between the projection point of a sample object on the second optical axis of the thermal imaging lens and the thermal imaging lens, or the calibrated parameters corresponding to the thermal imaging lens may include an offset angle between the first optical axis of a laser rangefinder and the second optical axis of the thermal imaging lens. Of course, the above are merely examples of calibrated parameters and are not limited to these calibrated parameters.
[0056] Case 1: The calibrated parameters may include sample offset and sample distance.
[0057] For example, during the thermal imaging device's positioning of a sample object, a laser rangefinder can be used to emit laser light toward the sample object. Laser ranging technology can then be used to determine the distance between the sample object and the laser rangefinder. Since the distance between the sample object and the laser rangefinder is approximately the same as the sample distance, the distance between the sample object and the laser rangefinder can be recorded as the sample distance. Alternatively, after placing the sample object at a specified location, the user can provide a sample distance between the projected point of the sample object on the second optical axis and the thermal imaging lens. Of course, the above is merely an example of determining the sample distance and is not intended to be limiting.
[0058] Illustratively, in step 202 , the sample offset has been obtained.
[0059] In summary, the sample offset and the sample distance can be obtained, and then the calibrated parameters corresponding to the thermal imaging lens can be obtained, and the calibrated parameters corresponding to the thermal imaging lens can be stored on the thermal imaging device.
[0060] Case 2: The calibrated parameters may include the offset angle between the first and second optical axes. Based on this, the offset angle between the first and second optical axes can be determined based on the sample offset, the sample distance between the projection point of the sample object on the second optical axis and the thermal imaging lens, the focal length of the thermal imaging lens, and the positional information between the laser rangefinder and the thermal imaging lens. For example, the projected distance between the sample object and its projection point on the second optical axis can be determined based on the sample offset, the sample distance, and the focal length of the thermal imaging lens. The offset angle between the first and second optical axes can also be determined based on the projected distance, the positional information between the laser rangefinder and the thermal imaging lens, and the sample distance.
[0061] See Figure 3, which is a schematic diagram for determining the calibrated parameters (such as the offset angle), α y represents the offset angle between the first optical axis and the second optical axis, that is, the relative offset angle between the first optical axis and the second optical axis in the vertical direction, hy represents the position information between the thermal imaging lens and the laser rangefinder (such as the vertical distance between the thermal imaging lens and the laser rangefinder, that is, the physical distance between the thermal imaging lens and the laser rangefinder in the vertical direction), h1 represents the projection distance between the sample object and the projection point of the sample object on the second optical axis, M1 represents the sample object, z1 represents the sample distance, and the sample distance is the distance between the projection point of the sample object M1 on the second optical axis and the thermal imaging lens, y1 represents the sample offset, and f represents the focal length of the thermal imaging lens.
[0062] For example, assuming the focal length of the thermal imaging lens is f, when a laser rangefinder emits a laser beam at sample object M1 at sample distance z1, a laser dot will appear on sample object M1. The position of the laser dot is the position of the laser cursor. By adjusting the laser cursor in the target image so that the adjusted position of the laser cursor aligns with the actual position of sample object M1, the position of the laser cursor is the sample offset y1. Based on the sample offset y1 (e.g., the sample offset in the vertical direction), the projection distance h1 between sample object M1 and its projection point on the second optical axis can be obtained. Specifically, a perpendicular line is drawn through point M1 to the second optical axis, with the intersection of the perpendicular line and the second optical axis being the foot of the perpendicular. h1 is the distance between point M1 and the foot of the perpendicular (i.e., the projection point).
[0063] Based on the above parameters and the imaging formula, the functional relationship shown in formula (1) can be obtained:
[0064] In formula (1), h1 represents the projection distance between the sample object M1 and the projection point of the sample object M1 on the second optical axis, z1 represents the distance between the projection point of the sample object M1 on the second optical axis and the thermal imaging lens, and the distance between the sample object M1 and the laser rangefinder is approximately the sample distance (i.e., the distance between the projection point of the sample object M1 on the second optical axis and the thermal imaging lens). The sample distance z1 can be obtained based on the laser ranging technology. y1 represents the sample offset in the vertical direction. The determination method is shown in step 202. f represents the focal length of the thermal imaging lens, which can be read from the thermal imaging lens. That is, the focal length f of the thermal imaging lens is a known value.
[0065] In summary, the sample distance z1, the vertical sample offset y1, and the focal length f of the thermal imaging lens are all known values, allowing the projection distance h1 to be calculated. Clearly, from formula (1), it is possible to determine the projection distance h1 between the sample object M1 and its projection point on the second optical axis based on the sample offset y1, the sample distance z1, and the focal length f of the thermal imaging lens.
[0066] For example, as can be seen from FIG3 , the offset angle α y It can be calculated using formula (2):
[0067] In formula (2), α y represents the offset angle between the first optical axis and the second optical axis, hy represents the vertical distance between the thermal imaging lens and the laser rangefinder, h1 represents the projection distance between the sample object and the projection point of the sample object on the second optical axis, and z1 represents the sample distance. In summary, when the sample distance z1, the vertical distance hy, and the projection distance h1 are all known values, the offset angle α can be calculated. y .
[0068] Obviously, it can be seen from formula (2) that the offset angle can be determined based on the projection spacing h1, the vertical distance hy between the thermal imaging lens and the laser rangefinder, and the sample distance z1.
[0069] In summary, the offset angle can be obtained, and then the calibrated parameters corresponding to the thermal imaging lens (ie, the offset angle) can be obtained, and the calibrated parameters corresponding to the thermal imaging lens can be stored on the thermal imaging device.
[0070] In summary, for case 1, the calibrated parameters corresponding to thermal imaging lens 1 can be sample offset a1 and sample distance b1, the calibrated parameters corresponding to thermal imaging lens 2 can be sample offset a2 and sample distance b2, the calibrated parameters corresponding to thermal imaging lens 3 can be sample offset a3 and sample distance b3, and so on. Sample offset a2 can be different from sample offset a1, sample distance b2 can be the same as or different from sample distance b1, sample offset a3 can be different from sample offset a1, sample distance b3 can be the same as or different from sample distance b1, sample offset a3 can be different from sample offset a2, and sample distance b3 can be the same as or different from sample distance b2.
[0071] For case 2, the calibrated parameter corresponding to thermal imaging lens 1 may be offset angle α1, the calibrated parameter corresponding to thermal imaging lens 2 may be offset angle α2, and the calibrated parameter corresponding to thermal imaging lens 3 may be offset angle α3. Similarly, offset angle α2 may be different from offset angle α1, offset angle α3 may be different from offset angle α1, and offset angle α3 may be different from offset angle α2.
[0072] Second, the laser cursor automatic adjustment process.
[0073] During the laser cursor automatic adjustment process, the calibrated parameters corresponding to the thermal imaging lens can be queried, and then the cursor position can be automatically adjusted based on the calibrated parameters corresponding to the thermal imaging lens. FIG4 is a flow chart of the laser cursor automatic adjustment process, which may include:
[0074] Step 401: A laser rangefinder emits a laser to a target object, and a thermal imaging lens captures a target image corresponding to the target object. The target image may include a laser cursor corresponding to the laser rangefinder. For example, the laser cursor corresponding to the laser rangefinder may be located at the center of the target image.
[0075] For example, after a thermal imaging device leaves the factory, when it is necessary to perform laser positioning on a target object in an actual detection scenario, a laser rangefinder can be used to emit a laser toward the target object, and a target image corresponding to the target object can be captured through the thermal imaging lens. The target object's position can then be located within the target image, and a laser cursor corresponding to the laser rangefinder can be displayed within the target image, with the laser cursor located at the center of the target image. Although the position of the laser cursor can reflect the location of the target object, due to the physical distance between the laser rangefinder and the thermal imaging lens, the position of the laser cursor in the target image differs from the actual location of the target object indicated by the laser cursor. This means that the position of the laser cursor cannot accurately reflect the location of the target object, and calibration must be completed through the laser cursor automatic adjustment process.
[0076] Step 402 : Determine a target offset of the laser cursor based on calibrated parameters corresponding to the thermal imaging lens, a target distance between the target object and the laser rangefinder, a focal length of the thermal imaging lens, and position information between the laser rangefinder and the thermal imaging lens.
[0077] For example, the calibrated parameters corresponding to the thermal imaging lens may include a sample offset, a sample distance between the projection point of the sample object on the second optical axis and the thermal imaging lens, or an offset angle between the first optical axis of the laser rangefinder and the second optical axis of the thermal imaging lens. Based on this, the process of determining the target offset may include:
[0078] Case 1: The calibrated parameters may include an offset angle between the first optical axis and the second optical axis. Based on this, the projection distance between the target object and the projection point of the target object on the second optical axis can be determined based on the position information between the laser rangefinder and the thermal imaging lens, the target distance and the offset angle; the distance between the projection point of the target object on the second optical axis and the thermal imaging lens can be determined based on the target distance and the offset angle; the target offset of the laser cursor can be determined based on the projection distance, the distance between the projection point of the target object on the second optical axis and the thermal imaging lens, and the focal length of the thermal imaging lens.
[0079] See Figure 5, which is a schematic diagram for determining the target offset of the laser cursor, α y represents the offset angle between the first optical axis and the second optical axis, that is, the relative offset angle between the first optical axis and the second optical axis in the vertical direction, hy represents the position information between the thermal imaging lens and the laser rangefinder, such as the physical distance between the thermal imaging lens and the laser rangefinder in the vertical direction, h1′ represents the projection distance between the target object and the projection point of the target object on the second optical axis, D represents the target distance between the target object and the laser rangefinder, that is, the object distance fed back by the laser rangefinder when testing the target object, M2 represents the target object, z1′ represents the distance between the projection point of the target object on the second optical axis and the thermal imaging lens, and in addition, y1 represents the sample offset, z1 represents the sample distance between the projection point of the sample object on the second optical axis and the thermal imaging lens, and f is the focal length of the thermal imaging lens (not shown in the figure).
[0080] Based on the above parameters and the imaging formula, the functional relationships shown in formulas (3), (4), and (5) can be obtained. Of course, formulas (3), (4), and (5) are just examples. h1′=hy+D*tanα y Formula (3) z1'=D*cosα y Formula (4)
[0081] In formula (3), h1′ represents the projection distance, hy represents the position information between the thermal imaging lens and the laser rangefinder, D represents the target distance, and α y Indicates the offset angle. hy can be the vertical or horizontal distance between the thermal imaging lens and the laser rangefinder, which is pre-configured in the thermal imaging device; D represents the target distance between the target object and the laser rangefinder, which can be obtained based on laser ranging technology; α y It can be a calibrated parameter, which is a known value. Obviously, from formula (3), it can be seen that based on the position information hy, the target distance D and the offset angle α y Determine the projection spacing h1′.
[0082] In formula (4), z1' represents the distance between the projection point of the target object on the second optical axis and the thermal imaging lens, D represents the target distance, and α y It represents the offset angle. Obviously, it can be calculated based on the target distance D and the offset angle α. y Determine the distance between the projection point of the target object on the second optical axis and the thermal imaging lens.
[0083] In formula (5), h1′ represents the projection distance, z1′ represents the distance between the target object's projection point on the second optical axis and the thermal imaging lens, f represents the focal length of the thermal imaging lens, which can be read from the thermal imaging lens and is a known value, and y1′ represents the target offset. Clearly, from formula (5), it can be seen that the target offset y1′ of the laser cursor can be determined based on the projection distance h1′, the distance z1′ between the target object's projection point on the second optical axis and the thermal imaging lens, and the focal length f of the thermal imaging lens.
[0084] In one possible implementation, the target offset y1′ includes a horizontal target offset X2 and a vertical target offset Y2, and the position information hy includes the horizontal and vertical distances between the thermal imaging lens and the laser rangefinder. Based on this, the horizontal distance between the thermal imaging lens and the laser rangefinder (i.e., hy represents this horizontal distance) can be substituted into the above formula to obtain the horizontal target offset X2 (i.e., y1′ equals X2). The vertical distance between the thermal imaging lens and the laser rangefinder (i.e., hy represents this vertical distance) can be substituted into the above formula to obtain the vertical target offset Y2 (i.e., y1′ equals Y2).
[0085] In summary, in case 1, based on the calibrated parameters, the target offset of the laser cursor can be obtained, for example, the target offset X2 in the horizontal direction and the target offset Y2 in the vertical direction.
[0086] Case 2: The calibrated parameters may include the sample offset and sample distance. Based on this, the target offset of the laser cursor can be determined based on the sample offset corresponding to the thermal imaging lens, the sample distance corresponding to the thermal imaging lens, the target distance between the target object and the laser rangefinder, the focal length of the thermal imaging lens, and the position information between the thermal imaging lens and the laser rangefinder. See Figure 5 for a schematic diagram of determining the target offset of the laser cursor. Based on the imaging formula, the functional relationships shown in Formulas (6) and (7) are obtained.
[0087] Referring to the above formulas (3), (4), and (5), by transforming formulas (3), (4), and (5), we can obtain the functional relationship shown in formula (6). Then, by transforming formula (6), we can obtain the functional relationship shown in formula (7).
[0088] In formula (7), y1′ represents the target offset, α y represents the offset angle, y1 represents the sample offset, hy represents the position information between the thermal imaging lens and the laser rangefinder (such as vertical distance and horizontal distance), f represents the focal length of the thermal imaging lens, D represents the target distance, and Z1 represents the sample distance. y , sample distance Z1, and sample offset y1 are calibrated parameters and are known values. Position information hy, focal length f, and target distance D are also known values. In summary, the target offset y1′ can be determined based on sample offset y1, sample distance Z1, target distance D, focal length f, and position information hy.
[0089] In one possible implementation, the target offset y1′ may include a horizontal target offset X2 and a vertical target offset Y2; the sample offset y1 may include a horizontal sample offset X1 and a vertical sample offset Y1; and the position information hy may include the horizontal and vertical distances between the thermal imaging lens and the laser rangefinder. Based on this, the horizontal distance between the thermal imaging lens and the laser rangefinder (i.e., hy is the horizontal distance) and the horizontal sample offset X1 (i.e., y1 is X1) can be substituted into the above formula to obtain the horizontal target offset X2 (i.e., y1′ is X2). The vertical distance between the thermal imaging lens and the laser rangefinder (i.e., hy is the vertical distance) and the vertical sample offset Y1 (i.e., y1 is Y1) can be substituted into the above formula to obtain the vertical target offset Y2 (i.e., y1′ is Y2).
[0090] In summary, in case 2, based on the calibrated parameters, the target offset of the laser cursor can be obtained, for example, the target offset X2 in the horizontal direction and the target offset Y2 in the vertical direction.
[0091] Step 403: Adjust the position of the laser cursor based on the target offset. For example, determine the target cursor position of the laser cursor based on the target offset and the initial cursor position of the laser cursor (such as the center position of the target image), and adjust the laser cursor in the target image to the target cursor position.
[0092] For example, a coordinate system is established with the center position of the target image as the coordinate origin, the horizontal right direction as the X-axis, and the vertical upward direction as the Y-axis. The initial cursor position of the laser cursor is (0, 0). Assuming the target offset is (X2, Y2), the horizontal coordinate of the target cursor position is the sum of the horizontal target offset X2 and 0, that is, after the laser cursor is offset by X2 in the horizontal direction, the horizontal coordinate of the target cursor position is obtained. The target offset X2 is a vector with a direction. The positive and negative values determine the offset direction, and the absolute value determines the offset distance. For example, when X2 is 10, it means that the laser cursor is offset 10 to the right from the initial cursor position (0, 0) as the horizontal coordinate of the target cursor position. When X2 is -10, it means that the laser cursor is offset 10 to the left from the initial cursor position (0, 0) as the horizontal coordinate of the target cursor position. The ordinate of the target cursor position is the sum of the target offset Y2 in the vertical direction and 0, that is, after the laser cursor is offset by Y2 in the vertical direction, the ordinate of the target cursor position is obtained. The target offset Y2 is a vector with a direction. The positive or negative value determines the offset direction, and the absolute value determines the offset distance. For example, when Y2 is 20, it means that the laser cursor is offset 20 upward from the initial cursor position (0, 0) as the ordinate of the target cursor position. When Y2 is -20, it means that the laser cursor is offset 20 downward from the initial cursor position (0, 0) as the ordinate of the target cursor position.
[0093] In summary, the target cursor position of the laser cursor can be obtained, that is, the target cursor position is (X2, Y2). Then, the laser cursor in the target image can be adjusted to the target cursor position.
[0094] As can be seen from the above technical solutions, in the embodiments of the present application, a target offset for the laser cursor can be determined based on the calibrated parameters corresponding to the thermal imaging lens and the positional information between the laser rangefinder and the thermal imaging lens. The position of the laser cursor is then adjusted based on the target offset, thereby aligning the laser cursor with the target object, reducing the deviation between the laser cursor and the target object. This allows for precise display of the laser cursor's position, improving the accuracy of the target object's positioning, and enhancing the positioning precision of the thermal imaging device. When the laser rangefinder's test object distance changes, the laser cursor's position can be effectively calibrated to more closely align with the target object's position. For thermal imaging devices that support multiple sets of thermal imaging lenses, due to the different focal lengths of the thermal imaging lenses, the target indicated by the laser will exhibit significant deviations in the images from different thermal imaging lenses. Therefore, in the embodiments of the present application, calibrated parameters corresponding to each thermal imaging lens are determined separately, effectively optimizing the impact of focal length and improving the accuracy of the laser cursor's indication. The farther the target distance indicated by the laser cursor, the closer the laser cursor is to the center of the target image, better meeting user needs. By pre-calibrating, which only needs to be calibrated once, the individual differences between thermal imaging lenses can be reduced, and the accuracy of laser cursor indication is better.
[0095] Based on the same application concept as the above method, an embodiment of the present application proposes a cursor position adjustment device, which is applied to a thermal imaging device. The thermal imaging device includes a laser rangefinder and a thermal imaging lens. FIG6 is a schematic structural diagram of the device. The device may include:
[0096] An acquisition module 61 is configured to emit a laser at a target object through the laser rangefinder and capture a target image corresponding to the target object through a thermal imaging lens, wherein the target image includes a laser cursor corresponding to the laser rangefinder. A determination module 62 is configured to determine a target offset of the laser cursor in the target image based on calibrated parameters corresponding to the thermal imaging lens and positional information between the laser rangefinder and the thermal imaging lens. An adjustment module 63 is configured to adjust the position of the laser cursor in the target image based on the target offset.
[0097] In a possible implementation, the determination module 62 determines the calibrated parameters corresponding to the thermal imaging lens by: emitting a laser at a sample object using the laser rangefinder, and capturing a target image corresponding to the sample object using the thermal imaging lens, where the target image includes a laser cursor corresponding to the laser rangefinder; adjusting a position of the laser cursor so that the adjusted position is consistent with a position of the sample object in the target image, and determining a sample offset of the laser cursor based on the adjusted position of the laser cursor; and determining the calibrated parameters corresponding to the thermal imaging lens based on the sample offset.
[0098] Exemplarily, the calibrated parameters include the sample offset and a sample distance between a projection point of the sample object on the second optical axis of the thermal imaging lens and the thermal imaging lens; or, the calibrated parameters include an offset angle between the first optical axis of the laser rangefinder and the second optical axis of the thermal imaging lens; if the calibrated parameters include the offset angle between the first optical axis of the laser rangefinder and the second optical axis of the thermal imaging lens, the determination module 62 determines the calibrated parameters corresponding to the thermal imaging lens based on the sample offset by specifically determining the offset angle between the first optical axis and the second optical axis based on the sample offset, the sample distance between the projection point of the sample object on the second optical axis and the thermal imaging lens, the focal length of the thermal imaging lens, and the position information between the laser rangefinder and the thermal imaging lens.
[0099] Exemplarily, the determination module 62 determines the offset angle between the first optical axis and the second optical axis based on the sample offset, the sample distance between the projection point of the sample object on the second optical axis and the thermal imaging lens, the focal length of the thermal imaging lens, and the position information between the laser rangefinder and the thermal imaging lens. Specifically, it is used to: determine the projection spacing between the sample object and the projection point of the sample object on the second optical axis based on the sample offset, the sample distance, and the focal length of the thermal imaging lens; and determine the offset angle between the first optical axis and the second optical axis based on the projection spacing, the position information between the laser rangefinder and the thermal imaging lens, and the sample distance.
[0100] Exemplarily, when determining the target offset of the laser cursor in the target image based on the calibrated parameters corresponding to the thermal imaging lens and the position information between the laser rangefinder and the thermal imaging lens, the determination module 62 is specifically configured to: determine the target offset of the laser cursor in the target image based on the calibrated parameters corresponding to the thermal imaging lens, the target distance between the target object and the laser rangefinder, the focal length of the thermal imaging lens, and the position information between the laser rangefinder and the thermal imaging lens.
[0101] Exemplarily, if the calibrated parameters include an offset angle between the first optical axis of the laser rangefinder and the second optical axis of the thermal imaging lens, the determination module 62 determines the target offset of the laser cursor in the following manner: determining the projection distance between the target object and the projection point of the target object on the second optical axis based on the position information between the laser rangefinder and the thermal imaging lens, the target distance, and the offset angle; determining the distance between the projection point of the target object on the second optical axis and the thermal imaging lens based on the target distance and the offset angle; and determining the target offset of the laser cursor based on the projection distance, the distance between the projection point of the target object on the second optical axis and the thermal imaging lens, and the focal length of the thermal imaging lens.
[0102] Based on the same application concept as the above method, a thermal imaging device is proposed in an embodiment of the present application, as shown in Figure 7. The thermal imaging device includes: a processor 71 and a machine-readable storage medium 72, and the machine-readable storage medium 72 stores machine-executable instructions that can be executed by the processor 71; the processor 71 is used to execute the machine-executable instructions to implement the cursor position adjustment method disclosed in the above example of this application.
[0103] Based on the same application concept as the above method, an embodiment of the present application also provides a machine-readable storage medium, on which a number of computer instructions are stored. When the computer instructions are executed by a processor, the cursor position adjustment method disclosed in the above example of the present application can be implemented.
[0104] The machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that may contain or store information, such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, a storage drive (such as a hard disk drive), a solid-state drive, any type of storage disk (such as a CD, DVD, etc.), or similar storage media, or a combination thereof.
[0105] The systems, devices, modules, or units described in the above embodiments may be implemented by a computer entity or by a product having certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email transceiver, game console, tablet computer, wearable device, or any combination of these devices.
[0106] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0107] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0108] The present application is described with reference to the flow chart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.
[0109] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0111] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A method for adjusting a cursor position, characterized in that: Applied to a thermal imaging device, the thermal imaging device includes a laser rangefinder and a thermal imaging lens, and the method includes: The laser rangefinder emits a laser to a target object, and a thermal imaging lens is used to collect a target image corresponding to the target object, wherein the target image includes a laser cursor corresponding to the laser rangefinder; Determining a target offset of the laser cursor in the target image based on calibrated parameters corresponding to the thermal imaging lens and position information between the laser rangefinder and the thermal imaging lens; The position of the laser cursor in the target image is adjusted based on the target offset.
2. The method according to claim 1, characterized in that The process of determining the calibrated parameters corresponding to the thermal imaging lens includes: The laser rangefinder emits a laser to a sample object, and uses the thermal imaging lens to collect a target image corresponding to the sample object, wherein the target image includes a laser cursor corresponding to the laser rangefinder; The position of the laser cursor is adjusted so that the adjusted position is consistent with the position of the sample object in the target image, and a sample offset of the laser cursor is determined based on the adjusted position of the laser cursor; and a calibrated parameter corresponding to the thermal imaging lens is determined based on the sample offset.
3. The method according to claim 2, characterized in that The calibrated parameters include the sample offset and a sample distance between a projection point of the sample object on the second optical axis of the thermal imaging lens and the thermal imaging lens; or, the calibrated parameters include an offset angle between a first optical axis of the laser rangefinder and a second optical axis of the thermal imaging lens; if the calibrated parameters include an offset angle between the first optical axis of the laser rangefinder and the second optical axis of the thermal imaging lens, determining the calibrated parameters corresponding to the thermal imaging lens based on the sample offset includes: The offset angle between the first optical axis and the second optical axis is determined based on the sample offset, the sample distance between the projection point of the sample object on the second optical axis and the thermal imaging lens, the focal length of the thermal imaging lens, and the position information between the laser rangefinder and the thermal imaging lens.
4. The method according to claim 3, characterized in that The step of determining the offset angle between the first optical axis and the second optical axis based on the sample offset, the sample distance between the projection point of the sample object on the second optical axis and the thermal imaging lens, the focal length of the thermal imaging lens, and the position information between the laser rangefinder and the thermal imaging lens comprises: Determine a projection distance between the sample object and a projection point of the sample object on the second optical axis based on the sample offset, the sample distance, and the focal length of the thermal imaging lens; Based on the projection distance, the position information between the laser rangefinder and the thermal imaging lens, the sample distance, and determining the offset angle between the first optical axis and the second optical axis.
5. The method according to any one of claims 1 to 4, characterized in that: The determining the target offset of the laser cursor in the target image based on the calibrated parameters corresponding to the thermal imaging lens and the position information between the laser rangefinder and the thermal imaging lens includes: Based on the calibrated parameters corresponding to the thermal imaging lens, the target distance between the target object and the laser rangefinder, the focal length of the thermal imaging lens, and the position information between the laser rangefinder and the thermal imaging lens, the target offset of the laser cursor in the target image is determined.
6. The method according to claim 5, characterized in that If the calibrated parameters include an offset angle between the first optical axis of the laser rangefinder and the second optical axis of the thermal imaging lens, the target offset of the laser cursor is determined in the following manner: Determine a projection distance between the target object and a projection point of the target object on the second optical axis based on position information between the laser rangefinder and the thermal imaging lens, the target distance, and the offset angle; Determining a distance between a projection point of the target object on the second optical axis and the thermal imaging lens based on the target distance and the offset angle; The target offset of the laser cursor is determined based on the projection distance, the distance between the projection point of the target object on the second optical axis and the thermal imaging lens, and the focal length of the thermal imaging lens.
7. The method according to any one of claims 1 to 4, characterized in that: If the thermal imaging device supports at least one thermal imaging lens, before the thermal imaging device leaves the factory, each thermal imaging lens is sequentially installed on the thermal imaging device; wherein, when each thermal imaging lens is installed on the thermal imaging device, a calibrated parameter corresponding to the thermal imaging lens is determined, and a mapping relationship between the thermal imaging lens and the calibrated parameter corresponding to the thermal imaging lens is recorded; After the thermal imaging device leaves the factory, when the thermal imaging lens is installed on the thermal imaging device, the calibrated parameters corresponding to the thermal imaging lens are queried based on the mapping relationship.
8. A device for adjusting the cursor position, characterized in that: Applied to thermal imaging equipment, the thermal imaging equipment includes a laser rangefinder and a thermal imaging lens, and the device includes: An acquisition module, used to emit a laser to a target object through the laser rangefinder, and collect a target image corresponding to the target object through a thermal imaging lens, wherein the target image includes a laser cursor corresponding to the laser rangefinder; A determination module, configured to determine a target offset of the laser cursor in the target image based on calibrated parameters corresponding to the thermal imaging lens and position information between the laser rangefinder and the thermal imaging lens; An adjustment module is used to adjust the position of the laser cursor in the target image based on the target offset.
9. The device according to claim 8, It is characterized in that in, When determining the calibrated parameters corresponding to the thermal imaging lens, the determination module is specifically used to: emit a laser to a sample object through the laser rangefinder, and use the thermal imaging lens to collect a target image corresponding to the sample object, wherein the target image includes a laser cursor corresponding to the laser rangefinder; adjust the position of the laser cursor so that the adjusted position is consistent with the position of the sample object in the target image, and determine a sample offset of the laser cursor based on the adjusted position of the laser cursor; and determine the calibrated parameters corresponding to the thermal imaging lens based on the sample offset; Wherein, the calibrated parameters include the sample offset, and the sample distance between the projection point of the sample object on the second optical axis of the thermal imaging lens and the thermal imaging lens; or, the calibrated parameters include the offset angle between the first optical axis of the laser rangefinder and the second optical axis of the thermal imaging lens; if the calibrated parameters include the offset angle between the first optical axis of the laser rangefinder and the second optical axis of the thermal imaging lens, when the determination module determines the calibrated parameters corresponding to the thermal imaging lens based on the sample offset, it is specifically used to: determine the offset angle between the first optical axis and the second optical axis based on the sample offset, the sample distance between the projection point of the sample object on the second optical axis and the thermal imaging lens, the focal length of the thermal imaging lens, and the position information between the laser rangefinder and the thermal imaging lens; Wherein, the determination module determines the offset angle between the first optical axis and the second optical axis based on the sample offset, the sample distance between the projection point of the sample object on the second optical axis and the thermal imaging lens, the focal length of the thermal imaging lens, and the position information between the laser rangefinder and the thermal imaging lens. Specifically, it is used to: determine the projection spacing between the sample object and the projection point of the sample object on the second optical axis based on the sample offset, the sample distance, and the focal length of the thermal imaging lens; determine the offset angle between the first optical axis and the second optical axis based on the projection spacing, the position information between the laser rangefinder and the thermal imaging lens, and the sample distance; Wherein, the determination module determines the target offset of the laser cursor in the target image based on the calibrated parameters corresponding to the thermal imaging lens and the position information between the laser rangefinder and the thermal imaging lens, and is specifically used to: determine the target offset of the laser cursor in the target image based on the calibrated parameters corresponding to the thermal imaging lens, the target distance between the target object and the laser rangefinder, the focal length of the thermal imaging lens, and the position information between the laser rangefinder and the thermal imaging lens; Wherein, if the calibrated parameters include the offset angle between the first optical axis of the laser rangefinder and the second optical axis of the thermal imaging lens, the determination module determines the target offset of the laser cursor in the following manner: based on the position information between the laser rangefinder and the thermal imaging lens, the target distance and the offset angle, determining the projection distance between the target object and the projection point of the target object on the second optical axis; based on the The target distance and the offset angle are used to determine the distance between the projection point of the target object on the second optical axis and the thermal imaging lens; based on the projection spacing, the distance between the projection point of the target object on the second optical axis and the thermal imaging lens, and the focal length of the thermal imaging lens, the target offset of the laser cursor is determined.
10. A thermal imaging device, characterized in that: include: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; The processor is used to execute machine executable instructions to implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Laser point automatic tracking method and device, storage medium and laser ranging device
CN112099028A
Cursor position adjusting method, device and equipment
CN116337242A
Apparatus for measuring distance
JP1997304055A
Digital viewfinder based golf range finder
KR102630606B1
Imaging device, rotating device, distance measuring device, distance measuring system and distance measuring method
US20180231375A1
