Imaging-based distance measurement method, program product, and device

By acquiring scene images from the image acquisition device, determining the actual size and imaging magnification of the object being measured, and calculating the distance using the ranging loop in the user interface, the problem of large ranging errors and inability to perform continuous ranging in existing imaging devices is solved, achieving more intuitive and accurate target ranging.

WO2026051160A1PCT designated stage Publication Date: 2026-03-12THERMAL MASTER TECHNOLOGY CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2026-03-12

AI Technical Summary

Technical Problem

Existing target ranging methods in imaging equipment suffer from problems such as high cost, difficulty in portability, poor coordination with imaging equipment, large ranging error, inability to perform continuous ranging, and inability to save results.

Method used

By acquiring scene images captured by the image acquisition device, the actual size data and imaging magnification of the object under test are determined. The imaging size data is determined using the distance measuring ring in the user interface, and the distance between the object under test and the image acquisition device is calculated by combining the preset database.

Benefits of technology

It achieves more intuitive and accurate target ranging, reduces errors, supports continuous ranging and can save ranging results, thus improving user experience and ranging accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024125700_12032026_PF_FP_ABST
    Figure CN2024125700_12032026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are an imaging-based distance measurement method, a program product, and a device. The method comprises: acquiring a current scene image that is acquired by an image acquisition apparatus and includes an object to be measured, and displaying the current scene image on a user interface; determining actual size data of said object and a current imaging magnification of the current scene image in the user interface; on the basis of a distance measurement circle that is displayed in the user interface and matches said object, determining current imaging size data of said object in the current scene image; and on the basis of the actual size data, the current imaging magnification, and the current imaging size data, determining the distance between said object and the image acquisition apparatus.
Need to check novelty before this filing date? Find Prior Art

Description

Imaging-based ranging method, program product and device TECHNICAL FIELD

[0001] The present application relates to the technical field of ranging, in particular to an imaging-based ranging method, a computer program product and an electronic device. BACKGROUND

[0002] In current imaging devices, ranging of a target mainly includes two modes: external range finder and traditional probabilistic ranging. The external range finder has defects such as high cost, inconvenience to carry, poor coordination with the imaging device, and the need for additional charging for endurance. The traditional probabilistic ranging has a large reading error due to unstable operation when obtaining imaging data of the target, and a graphic scale used for size comparison covers a large part of the target image, affecting the outdoor observation experience. In addition, the traditional probabilistic ranging cannot perform continuous ranging, and the ranging result cannot be saved.

[0003] SUMMARY

[0004] In order to solve the existing technical problems, the present application provides an imaging-based ranging method, a computer program product and an electronic device, which can more intuitively and simply realize target ranging, and improve the accuracy of target ranging.

[0005] In a first aspect, an imaging-based ranging method is provided, including: acquiring a current scene image containing a measured object and displaying the current scene image on a user interface by an image acquisition device; determining actual size data of the measured object and a current imaging magnification of the current scene image in the user interface; determining a current imaging size data of the measured object in the current scene image based on a ranging ring matched with the measured object displayed in the user interface; and determining a distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification and the current imaging size data.

[0006] In a second aspect, a computer program product is provided, including a computer program, which, when executed by a processor, implements the imaging-based ranging method according to any embodiment of the present application.

[0007] In a third aspect, an electronic device is provided, including a memory and a processor, the memory storing a computer program, which, when executed by the processor, causes the processor to execute the imaging-based ranging method according to any embodiment of the present application.

[0008] In a fourth aspect, an electronic device is provided, including: an acquisition module and a determination module.

[0009] The acquisition module is configured to acquire a current scene image containing a measured object and display the current scene image on a user interface by an image acquisition device.

[0010] a determining module configured to determine actual size data of the measured object and a current imaging magnification of the current scene image in the user interface;

[0011] The determining module is further configured to determine current imaging size data of the measured object in the current scene image based on a ranging ring matching the measured object displayed in the user interface.

[0012] The determining module is further configured to determine a distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification and the current imaging size data.

[0013] In a fifth aspect, a computer readable storage medium is provided, which stores computer executable instructions. When the computer executable instructions are invoked by an electronic device, the electronic device performs the imaging-based ranging method according to any of the embodiments of the present application.

[0014] The embodiments of the present application display the current scene image including the measured object on the user interface, and determine the current imaging size data of the measured object in the current scene image based on the ranging ring matching the measured object displayed in the user interface, so that the current imaging size data can be determined more intuitively, and the target ranging can be realized more intuitively. Then, the distance mapped by the actual size data, the current imaging magnification and the imaging size data is obtained based on the relationship between the actual size data, the current imaging magnification and the imaging size data and the distance, so that the ranging is more accurate. BRIEF DESCRIPTION OF DRAWINGS

[0015] FIG. 1 is a diagram of an application environment of the imaging-based ranging method according to an embodiment of the present application;

[0016] FIG. 2 is a flowchart of the imaging-based ranging method according to an embodiment of the present application;

[0017] FIG. 3 is a diagram of a first user interface according to an embodiment of the present application;

[0018] FIG. 4 is a diagram of a second user interface according to an embodiment of the present application;

[0019] FIG. 5 is a diagram of the second user interface according to another embodiment of the present application;

[0020] FIG. 6 is a diagram of a ranging ring and a measured object in an inscribed relationship according to an embodiment of the present application;

[0021] FIG. 7 is a diagram of comparing the acquired data with data in a database according to an embodiment of the present application;

[0022] FIG. 8 is a diagram of an imaging-based ranging device according to an embodiment of the present application;

[0023] FIG. 9 is a schematic diagram of an electronic device in an embodiment. DETAILED DESCRIPTION

[0024] The technical solutions of the present application are further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this description, the terms "may" and "can" include any one of, or all of, the possible equivalents. The term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0026] In the following description, the expression "some embodiments" describes a subset of all possible embodiments, however, it should be understood that "some embodiments" can be the same subset or different subsets as each other and as other embodiments, and that "some embodiments" can be combined with each other and with other embodiments, without conflict.

[0027] Referring to FIG. 1, an application environment diagram of an imaging-based distance measurement method in an embodiment. The imaging-based distance measurement method is applied in an electronic device 10, which includes a display device 11, an image acquisition device 12, and a processor 13. The image acquisition device 12 is configured to capture a scene image within a field of view, and the processor 13 is configured to calculate a distance between the image acquisition device 12 and a measured object based on the scene data captured by the image acquisition device 12. The display device 11 is configured to display the scene image and various user interfaces for interaction with a user, so as to more intuitively achieve target distance measurement and accurately measure the distance between the measured object and the image acquisition device 12.

[0028] The image acquisition device 12 can be a combination of one or more sensors. The image acquisition device 12 can be a monocular vision sensor or a multi-view vision sensor. For example, the image acquisition device 12 can be a combination of one or more of a thermal imaging sensor, a visible light image sensor, a millimeter wave sensor, a laser radar sensor, an infrared thermal imaging sensor, and a depth sensor. Typically, the image acquisition device 12 is disposed in the electronic device 10, i.e., the image acquisition device and the display device are integrated together. In other embodiments, the image acquisition device 12 can be independent of the electronic device 10 and communicate with the electronic device 10. For example, the image acquisition device 12 is installed in an environment A and configured to capture a scene image in the environment A, and the electronic device 10 is disposed in an environment B, where the environment A and the environment B are not the same environment. The electronic device 10 acquires the scene image and calculates the distance between the measured object in the scene image and the image acquisition device 12.

[0029] The processor 13 can be one or more, and when there are multiple processors 13, the multiple processors can be integrated on one chip or independently arranged on each chip. The electronic device 10 is a device for implementing an imaging-based distance measurement method, and can include a computing device (for example, a desktop computer, a laptop computer, a tablet computer, a handheld computer, a smart speaker, a server, etc.), a terminal device (for example, a mobile phone, etc.), a wearable device (for example, a pair of smart glasses or a smart watch), various infrared imaging devices, a vehicle device, or the like.

[0030] For example, when the image acquisition device 12 is an infrared imaging device, in a conventional infrared imaging device in the prior art, after selecting a measured object, two measurement points appear on the display screen of the infrared imaging device twice. The first measurement point is aligned with the top point of the image of the measured object, and the second measurement point is aligned with the bottom point of the image of the measured object, so as to determine the imaging size of the measured object in the display screen. However, since the two alignment operations of the measurement points need to slightly move the angle of the ocular lens up and down, and the size of the display screen itself is too small, the error of the distance measured based on this method will be relatively large. In the prior art, a plurality of different size graphical scales can also be displayed on the display screen, and the user selects a graphical scale matching the measured object from the plurality of graphical scales, and then calculates the distance based on the matching image scale. However, since the size of the graphical scale is fixed, it can be difficult to select a scale matching the measured object. In addition, the display screen of the general infrared imaging device is small, and the plurality of image scales will cover the image of the measured object, affecting the user experience.

[0031] Referring to FIG. 2, a flowchart of an imaging-based distance measurement method provided by an embodiment of the present application is shown, and the imaging-based distance measurement method includes the following steps:

[0032] S11, acquiring a current scene image containing a measured object and displaying the current scene image on a user interface.

[0033] In the embodiment, the current scene image indicates a scene image to be processed by using the image acquisition device. The current scene image can be an infrared image, a visible light image, or other forms of images. The measured object indicates a target to be measured. Through the imaging-based distance measurement method provided by the embodiment of the present application, the distance between the measured object and the image acquisition device can be measured.

[0034] S12, determining actual size data of the measured object and a current imaging magnification of the current scene image in the user interface.

[0035] In the present embodiment, the actual size data indicates the actual size of the measured object. The actual size data can be a combination of one or more of the following: height, length, width, radius, diameter, and area of a circle that surrounds the measured object and is inscribed in the measured object, and the like.

[0036] A control for selecting or setting the actual size parameter of the measured object can be provided on the user interface. Through one or more controls displayed on the user interface, the user can configure the actual size data of the measured object.

[0037] The imaging magnification is a parameter in optical imaging that describes the size of the image relative to the size of the original object. At least one imaging magnification can be provided, for example, which can include a one-fold imaging magnification, a 4-fold imaging magnification. The current imaging magnification can be a default imaging magnification, or an imaging magnification selection control can be displayed on the user interface, and the user can trigger the imaging magnification selection control to select the desired imaging magnification, or the imaging magnification can be automatically selected according to the actual size data of the measured object. For example, when the actual size data is less than a preset actual size threshold, the highest imaging magnification is selected. In an implementation, one imaging magnification corresponds to one preset actual size range, and the imaging magnification is automatically selected according to the actual size data of the measured object and the preset actual size range corresponding to each imaging magnification, for example, the actual size range [0.5 units, 1 unit] corresponds to a 4-fold imaging magnification, and the actual size range [1 unit, 1.5 units] corresponds to a one-fold imaging magnification.

[0038] In an optional implementation, voice interaction is provided for the user to select the actual size data of the measured object and / or the current imaging magnification. For example, various size data corresponding voice data is pre-stored in the electronic device, after the user inputs a voice information, the electronic device determines the size data matching the input voice information based on the input voice information and the pre-stored voice data.

[0039] In an optional implementation, gesture interaction is provided for the user to select the actual size data of the measured object and / or the current imaging magnification. For example, various size data corresponding gesture data is pre-stored in the electronic device, after the user inputs a gesture information, the electronic device determines the size data matching the input gesture information based on the input gesture information and the pre-stored gesture data.

[0040] S13, determining the current imaging size data of the measured object in the current scene image based on the ranging ring matching the measured object displayed in the user interface.

[0041] In the embodiment, the current imaging size data is the size data of the measured object in the current scene image. The current imaging size data can be represented by one or more of the following data in combination: radius, diameter, area of the ranging ring. The ranging ring can be circular or similar to a circle, and can also be a square ring, a diamond ring, or other suitable shape. The ranging ring is used to measure the current imaging size data of the measured object. The ranging ring is displayed on the user interface, and the ranging ring can be matched with the measured object by the position and size of the ranging ring, so that the current imaging size data can be obtained according to the size data of the ranging ring matched with the measured object.

[0042] S14, determining the distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification, and the current imaging size data.

[0043] In the embodiment, the mapping relationship between the actual size data, the imaging magnification, the imaging size data, and the distance is pre-stored in the preset database, so that the distance corresponding to the actual size data, the current imaging magnification, and the current imaging size data is determined according to the mapping relationship. In other embodiments, a plurality of groups of sampling points can also be pre-acquired, and the data of each group of sampling points includes the actual size data, the imaging magnification, the imaging size data, and the distance. The data relationship between the plurality of groups of sampling points is analyzed by using a data analysis method to obtain a relationship formula between the actual size data, the imaging magnification, the imaging size data, and the distance. In the relationship formula, the actual size data, the imaging magnification, and the imaging size data are independent variables, and the distance is a dependent variable. After the actual size data, the current imaging magnification, and the current imaging size data are input into the relationship formula, the corresponding distance can be calculated.

[0044] In the above embodiment, the current scene image containing the measured object is displayed on the user interface, and the current imaging size data of the measured object in the current scene image is determined based on the ranging ring matched with the measured object displayed in the user interface, so that the current imaging size data can be determined more intuitively, and the target ranging can be realized more intuitively. Then, the distance corresponding to the actual size data, the current imaging magnification, and the current imaging size data is obtained based on the relationship between the actual size data, the current imaging magnification, and the current imaging size data and the distance, so that the ranging is more accurate.

[0045] In some embodiments, the actual size data of the measured object is determined based on the user interface, including:

[0046] According to the triggering operation on the actual size selection control or the size customization control displayed on the first user interface, the actual size data of the object is obtained; wherein the first user interface displays a plurality of actual size selection controls corresponding to different sizes and / or the size customization control, and the size customization control is used for user to customize the actual size data of the object.

[0047] In the embodiment, the actual size selection control and / or the size customization control displayed on the first user interface is not limited in form, for example, can be a button, a drop-down menu, a slider, an input box, an icon button, etc. The actual size selection control can be one or more, different actual size selection controls correspond to different actual size data, and different actual size selection controls can also correspond to different actual size data and object types. The user can select the required actual size by triggering the actual size selection control. The size customization control provides the function of customizing the actual size of the object. The user can customize the actual size of the object by triggering the size customization control. As shown in FIG. 3, FIG. 3 is a schematic diagram of a first user interface in an embodiment, the first user interface displays three different actual size selection controls, which are respectively that the object is a person, the actual size is 1.8 meters; the object is a deer, the actual size is 1.5 meters; and the object is a bird, the actual size is 0.2 meters. The user can trigger the actual size selection control matching the actual size of the object. The size customization control is also displayed on the first user interface, and the user can trigger the size customization control to input the customized size data.

[0048] In the above embodiment, different actual size selection controls and / or size customization controls are provided on the user interface, and the user can configure the actual size data of the object in multiple forms, so as to more intuitively and accurately configure the actual size data of the object, thereby accurately determining the distance between the object and the image acquisition device when the actual size data of the object is obtained by using the electronic device, and the current imaging magnification of the object and the current imaging size data of the object are compared with the data in the preset database, so as to improve the accuracy of target ranging.

[0049] In some embodiments, the determining the current imaging size data of the object in the current scene image based on the ranging ring matching the object displayed in the user interface comprises:

[0050] According to the size adjustment operation of the ranging ring received by the second user interface, the size of the ranging ring displayed on the second user interface is adjusted, and / or according to the position moving operation of the ranging ring received by the second user interface, the ranging ring displayed on the second user interface is moved;

[0051] When the ranging ring matches the measured object, target ranging ring size data is acquired;

[0052] Current imaging size data of the measured object in the current scene image is determined based on the target ranging ring size data.

[0053] In the embodiment, the naming of the first user interface and the second user interface is to distinguish the interface content provided by the first user interface and the second user interface. However, the interface content provided by the first user interface and the second user interface can be located in the same user interface at the same time, or belong to different user interfaces, which is not limited in the embodiment.

[0054] In the embodiment, the user interface includes the second user interface, and the second user interface displays the current scene image and the ranging ring. The ranging ring can be circular or similar to a circle. The imaging size of the measured object can be acquired by using the ranging ring. Since the ranging ring is not limited by the posture of the measured object, it can adapt to the measured object in various postures. For example, if the measured object is a person, the imaging size of the person can be accurately acquired by the ranging ring regardless of whether the person stands or stands obliquely. However, if the height of the person is used to measure the size of the person, the height cannot accurately measure the size of the collected image of the person when the person stands obliquely. The size data of the ranging ring can be represented by at least one of the following data, including the radius, diameter, area, and the like of the ranging ring. On the second user interface, the ranging ring is superimposed on the current scene image. Therefore, the size of the ranging ring can be adjusted multiple times by a size adjustment operation until the ranging ring matches the measured object. When the ranging ring matches the measured object, the acquired size data of the ranging ring is used as the current imaging size data.

[0055] In some optional implementations, the ranging ring size adjustment operation can be performed on the ranging ring on the second user interface, and the ranging ring position moving operation can also be performed on the ranging ring to change the position of the ranging ring, so that the ranging ring matches the measured object. The ranging ring position moving operation includes but is not limited to a touch operation and a position moving operation. The touch operation includes but is not limited to one or a combination of multiple single-point touch operations and multi-point touch operations. For example, the user can drag the ranging ring from region A to region B by pressing a preset region associated with the ranging ring. The position moving operation is to change the position of the ranging ring by triggering a position moving control. The position moving control includes but is not limited to one or a combination of the following: a button, a drop-down menu, a slider, an input box, an icon button, a check box, and the like.

[0056] In the second user interface, the size of the ranging ring can be adjusted multiple times through the size adjustment operation, and / or the position of the ranging ring can be changed multiple times through the ranging ring position moving operation, until the ranging ring matches the measured object. When the ranging ring matches the measured object, the acquired size data of the ranging ring is taken as the current imaging size data.

[0057] In the above embodiments, in the user interface, the current scene image containing the measured object and the ranging ring are displayed, and the size and / or position of the ranging ring is changed intuitively on the user interface to match the ranging ring with the measured object, without the need to use multiple graphic scales on the user interface to match the displayed image, and the size of the ranging ring is directly changed, which facilitates the user to intuitively measure the distance; and without the need to locate the top and bottom positions of the measured object, the error can be reduced, so that the imaging size data of the measured object can be accurately acquired, and when the actual size data of the measured object is acquired by using the electronic device, and the current imaging magnification of the measured object and the current imaging size data of the measured object are compared with the data in the preset database, the distance between the measured object and the image acquisition device can be accurately determined, so that the accuracy of target ranging can be improved.

[0058] In some embodiments, the size of the ranging ring displayed on the second user interface is adjusted based on the size adjustment operation received by the second user interface, including:

[0059] The size adjustment operation is acquired based on the size adjustment control displayed on the second user interface, and the size of the ranging ring displayed on the second user interface is adjusted based on the size adjustment operation; and / or

[0060] The size touch operation on the ranging ring is acquired based on the second user interface, and the size of the ranging ring displayed on the second user interface is adjusted through the size touch operation.

[0061] In the present embodiment, the size adjustment control includes but is not limited to one or a combination of the following: a button, a drop-down menu, a slider, an input box, an icon button, a check box, a sliding bar, etc. The size touch operation includes but is not limited to one or a combination of the following: single-point touch, multi-point touch. For example, the size of the ranging ring is adjusted through the double-finger pinch touch method in the multi-point touch method, that is, the size of the ranging ring is changed by changing the distance between the two fingers. When the two fingers are pinched in the associated area of the ranging ring, the size of the ranging ring is reduced; when the two fingers are pulled apart in the associated area of the ranging ring, the size of the ranging ring is expanded.

[0062] In the embodiment, the second user interface further comprises a sliding bar, and a sliding length of the sliding bar has a corresponding relationship with a size change of the ranging ring, for example, the sliding length is 5 cm, the size of the ranging ring increases by 10 cm, and the like. Therefore, the size of the ranging ring can be changed by operating the sliding bar. In the process of operating the sliding bar, the size of the ranging ring is changed correspondingly, and therefore the size change of the ranging ring is displayed in real time on the user interface. The user can change the position of the center of the ranging ring by moving the inner region of the ranging ring, for example, by keeping any position of the inner region of the ranging ring unchanged and dragging the ranging ring to another position, so as to change the position of the center of the ranging ring. The electronic device controls the center position of the ranging ring to move from a current position to a stop position corresponding to the moving operation on the ranging ring based on the second user interface. As shown in FIG. 4, it is a schematic diagram of the second user interface in an embodiment, and the sliding bar, the ranging ring and the current scene image containing the measured object are displayed on the second user interface. The size of the ranging ring can be adjusted by adjusting the sliding bar.

[0063] In the above embodiment, the current scene image containing the measured object and the ranging ring are displayed on the user interface, the size and / or position of the ranging ring are changed intuitively by providing the size adjustment operation and / or the size touch operation on the user interface, so that the ranging ring is matched with the measured object, the multiple graphic scales on the user interface are not needed to match with the displayed image, the size of the ranging ring is directly changed, the user can intuitively measure the distance, the top position and the bottom position of the measured object are not needed to be positioned, the error can be reduced, the imaging size data of the measured object can be accurately acquired, the distance between the measured object and the image acquisition device can be accurately determined when the actual size data of the measured object is acquired by using the electronic device, the current imaging magnification of the measured object is photographed, and the current imaging size data of the measured object is compared with the data in the preset database, and therefore the accuracy of the target distance measurement can be improved.

[0064] In some embodiments, the method further comprises:

[0065] In the process of performing the ranging ring size adjustment operation on the ranging ring, the current ranging ring size data is acquired in real time;

[0066] Based on the actual size data, the current imaging magnification and the current ranging ring size data, a current distance between the measured object and the image acquisition device is determined, and the current distance is displayed in real time on the second user interface.

[0067] In the embodiment, during the process of adjusting the ranging ring multiple times, current ranging ring size data after each size adjustment operation, actual size data, and a current distance mapped by the current imaging magnification can be obtained. The current ranging ring size data is current size data after adjusting the ranging ring size during the ranging process. For example, the actual size data, the current imaging magnification, and the current ranging ring size data are compared with each group of data stored in the preset database, a distance mapped by a group of data in which the stored imaging magnification is the same as the current imaging magnification, the error between the stored actual size data and the actual size data is the smallest, and the error between the stored imaging size data and the current ranging ring size data is the smallest is determined as the current distance, and the current distance is displayed on the second user interface. Therefore, the current distance corresponding to the current ranging ring size data obtained after adjusting the ranging ring size each time can be displayed on the second user interface, so that the user can directly see the distance value corresponding to each adjustment of the ranging ring size. For example, “Distance: 26m”, “Distance: 23m”, and “Distance: 17m” shown in FIGS. 4-6 represent the current distances corresponding to the current ranging ring size data after each adjustment during the process of adjusting the ranging ring, which are 26m, 23m, and 17m respectively.

[0068] In the above embodiment, the actual size data, the current imaging magnification, and the current ranging ring size data are compared with the data in the preset database in real time during the process of adjusting the ranging ring, the mapped current distance is determined, and the current distance is displayed on the second user interface; by dynamically changing the size change of the ranging ring, dynamic and continuous ranging can be realized, the user can intuitively range, and thus the ranging accuracy is improved.

[0069] In some embodiments, the method further includes:

[0070] During the process of performing the ranging ring size adjustment operation on the ranging ring, the size change of the ranging ring is displayed on the second user interface in real time.

[0071] In the above embodiment, the current scene image and the ranging ring are displayed on the user interface, the size of the ranging ring is dynamically changed, and the size change of the ranging ring is dynamically displayed, so that dynamic and continuous ranging can be realized, the user can intuitively range, and thus the ranging ring can be quickly found to match the measured object, and the ranging accuracy is improved.

[0072] In some embodiments, the method further includes:

[0073] The saving operation on the current distance is obtained.

[0074] Based on the saving operation, the current distance corresponding to each saving operation is sequentially displayed on the second user interface.

[0075] The saving operation includes, but is not limited to, an interactive operation based on a saving control on the second user interface, a voice operation, a gesture operation, and the like. As shown in FIG. 5, which is a schematic diagram of a second user interface in another embodiment, after the size of the ranging ring is adjusted and the current distance is obtained, the "Record" control can be clicked to save the current distance, so that the user can intuitively observe the change of the ranging distance along with the change of the size of the ranging ring. For example, five distance readings are displayed on the right side of the slider bar in FIG. 5, that is, five distance readings are saved during the dynamic ranging process.

[0076] In an optional implementation, the method further includes:

[0077] When the displayed distance exceeds the preset number, the distance reading meeting the deletion condition is deleted.

[0078] Due to the display of the display area, the preset number of distance readings are displayed on the second user interface. If the saved distance readings exceed the preset number, not all of them can be displayed, and in this case, the distance reading saved for a longer time can be deleted. Alternatively, a distance deletion control can be provided on the second user interface, the user triggers the distance deletion control to select the distance to be deleted, the electronic device obtains the triggering operation of the distance deletion control, and based on the triggering operation of the distance deletion control, the corresponding distance reading is obtained and the corresponding distance reading is deleted.

[0079] In the above embodiments, the current scene image, the ranging ring, and the matched distance after the size of the ranging ring is adjusted are displayed on the user interface, so that the change of the distance can be intuitively observed, and the matched distance reading can be saved. Through intuitive operation on the user interface, the imaging size data of the measured object can be accurately obtained, and in subsequent utilization of the electronic device to obtain the actual size data of the measured object and comparison of the current imaging magnification of the measured object and the current imaging size data of the measured object with the data in the preset database, the current distance of the measured object can be accurately determined, so that the accuracy of infrared thermal imaging probabilistic ranging can be improved, and the ranging is also more efficient.

[0080] In the above embodiments, the current scene image and the ranging ring are displayed on the user interface, the size of the ranging ring is dynamically changed, and the change of the size of the ranging ring is dynamically displayed, so that dynamic and continuous ranging can be realized. Moreover, the distance during the dynamic ranging process can be saved through the user interface, so that the user can intuitively observe the change of the ranging distance and intuitively range, so as to quickly find the condition that the ranging ring matches the measured object, thereby improving the ranging accuracy and efficiency.

[0081] In some embodiments, the ranging ring matches the measured object means that the ranging ring is inscribed with the measured object in the current scene image.

[0082] In the embodiment, when the object and the ranging ring are in the inscribed relationship, i.e., the ranging ring can just surround the contour of the object, the ranging ring size data obtained in this case is the target ranging ring size data. As shown in FIG. 6, it is a schematic diagram in which the ranging ring and the object in the current scene image are in the inscribed relationship in an embodiment. The ranging ring and the image of the fawn in the current scene image are in the inscribed relationship. In this case, the ranging ring size data is the current imaging size data of the fawn.

[0083] In the above embodiment, the current scene image and the ranging ring are displayed on the user interface, the size of the ranging ring is dynamically changed, and the size change of the ranging ring is dynamically displayed, so that the dynamic and continuous ranging can be realized, and the case in which the ranging ring and the object are in the inscribed relationship is found. Since the size of the ranging ring is not affected by the posture of the object, the current imaging size data of the object can be accurately obtained through the ranging ring size data. Therefore, the ranging accuracy and the ranging efficiency can be improved while the intuitive ranging is realized.

[0084] In some embodiments, the method further comprises:

[0085] determining the contour line of the object from the current scene image;

[0086] judging whether the ranging ring and the object in the current scene image are in the inscribed relationship based on the contour line of the object and the positional relationship of the ranging ring, to determine whether the ranging ring matches the object.

[0087] In the embodiment, the object is recognized from the current scene image by using an image recognition method, and the contour line of the object is detected by using an edge detection method. The image recognition method includes but is not limited to a target detection method based on deep learning, a target detection method based on template matching, and the like. The edge detection method includes but is not limited to a gray-based edge detection method, a Sobel operator-based edge detection method, and the like. The image recognition method and the edge detection method are prior art, and will not be described here.

[0088] In the embodiment, whether the center point of the ranging ring is located inside the profile of the measured object and the ranging ring does not intersect the outside of the profile of the measured object is determined according to the profile of the measured object and the position relationship of the ranging ring. If the center point of the ranging ring is located inside the profile of the measured object and the ranging ring does not intersect the outside of the profile of the measured object, the shortest distance from the boundary of the ranging ring to each point of the profile of the measured object is calculated. If there is a point at which the distance between the ranging ring and the profile of the measured object is zero, it indicates that the ranging ring is tangent to the measured object in the current scene image. When the electronic device automatically detects that the ranging ring is tangent to the measured object in the current scene image, a prompt information can be displayed on the second user interface to prompt the user that the ranging ring is matched with the measured object, indicating that the current imaging size data can be accurately determined.

[0089] The above embodiment is to automatically identify whether the ranging ring is matched with the measured object by the electronic device. Of course, whether the ranging ring is matched with the measured object can also be determined by the user's eyes. That is, the user stops adjusting the size of the ranging ring when the user determines that the ranging ring is matched with the measured object by the eyes. At this time, the size of the ranging ring is the current imaging size data of the measured object, and the distance displayed on the interface is the current distance of the measured object. In an optional implementation, an imaging size confirmation control can be provided on the second user interface. After the user adjusts the size of the ranging ring for multiple times and determines that the ranging ring is matched with the measured object by the eyes, the imaging size confirmation control can be triggered. The electronic device obtains the current size of the ranging ring as the current imaging size data based on the triggering operation of the imaging size confirmation control.

[0090] In the above embodiment, the current scene image and the ranging ring are displayed on the user interface. The size of the ranging ring is dynamically changed, and the size change of the ranging ring is dynamically displayed, so that the dynamic and continuous ranging can be realized. In the process of dynamic and continuous ranging, whether the ranging ring is matched with the measured object can be automatically detected, so that the current imaging size data of the measured object can be accurately obtained through the size data of the ranging ring. Therefore, the ranging precision and efficiency can be improved while the ranging is intuitive.

[0091] In some embodiments, the distance between the measured object and the image acquisition device is determined based on the actual size data, the current imaging magnification, and the current imaging size data.

[0092] The distance between the measured object and the image acquisition device is determined based on the actual size data, the current imaging magnification, the current imaging size data, and a preset database. The preset database stores the mapping relationship between the imaging magnification, the actual size data, the imaging size data, and the distance.

[0093] In the embodiment, the preset database stores a plurality of sets of data, each set of data including a mapping relationship among an imaging magnification, actual size data, imaging size data, and a distance. The storage format of the plurality of sets of data is not limited, for example, a plurality of sets of data at one imaging magnification can be stored in one file, that is, a plurality of sets of data at each imaging magnification is stored in a corresponding file, or all data can be stored in one file, and the like. In establishing the database, different sample types and different sizes of samples need to be measured to establish the preset database. The imaging magnification represents the imaging magnification when the sample image is collected, the actual size data represents the actual size of the sample, the imaging size represents the image size of the sample, and the distance represents the distance between the sample and the measured object. The actual size data and the imaging size data stored in the preset database can be one or a combination of a plurality of data, such as height, length, width, radius, diameter, and area of a circular ring surrounding the sample and inscribed with the sample, and the like. The circular ring can be a circle or a shape similar to a circle. The type of the actual size data corresponds to the type of the actual size data stored in the database. The type of the current imaging size data corresponds to the type of the imaging size data stored in the database, for example, if the type of the current imaging size data in the preset database is the diameter of the circular ring, the type of the current imaging size data is also the diameter.

[0094] In establishing the database, for one sample, the imaging size data of the sample is collected at one distance and imaging magnification, so as to form a set of mapping data of the actual size data of the sample, the imaging magnification, and the imaging size data and the distance. For the same sample type and the same size of the sample, the same imaging magnification can be used, and the corresponding imaging size data can be collected at different distances, so as to obtain data of different mapping relationships. Meanwhile, the imaging magnification is changed, and the corresponding imaging size data can be collected at different distances, so as to obtain data of different mapping relationships. In order to make the data of the database more abundant, the corresponding data of different sizes of the same sample type can be collected, for example, for a person, people of different heights can be collected, and the corresponding imaging size data can be collected at one imaging magnification and different distances. The corresponding imaging size data can be collected at four imaging magnifications and different distances. In order to collect more abundant data, the sample type can also be changed, for example, the corresponding data of various animals can be collected, and the sample types include but are not limited to people, various types of animals.

[0095] As shown in FIG. 7, FIG. 7 is a schematic diagram of comparing the acquired data with the data in the database in an embodiment. After the actual size data of the measured object, the current imaging magnification, and the current imaging size data are acquired, the data stored in the preset database is compared, the distance mapped with the actual size data of the measured object, the current imaging magnification, and the current imaging size data is determined, and then the mapped distance is taken as the distance between the measured object and the image collection device.

[0096] In some embodiments, the distance between the measured object and the image acquisition device is determined based on the actual size data, the current imaging magnification, the current imaging size data, and a preset database, including:

[0097] The distance mapped in the preset database when the matching condition is met is taken as the distance between the measured object and the image acquisition device, and the matching condition includes that the data stored in the preset database simultaneously satisfies: the stored imaging magnification is the same as the current imaging magnification, the error between the stored actual size data and the actual size data is the smallest, and the error between the stored imaging size data and the current imaging size data is the smallest.

[0098] In the embodiment, when the matching condition is met, a set of data in the preset database is determined to be the most matched with the obtained actual size data, the current imaging magnification, and the current imaging size data, and the distance in the set of data is taken as the distance mapped when the matching condition is met.

[0099] In the above embodiment, the actual size data of the measured object is obtained, and the current imaging magnification of the measured object and the current imaging size data of the measured object are photographed, and then the data in the preset database is compared to determine the distance between the measured object and the image acquisition device. The preset database is data measured for different sizes of samples of different sample types at different distances, so the data stored in the database is more abundant, and a more accurate distance between the measured object and the image acquisition device can be obtained, thereby improving the target ranging accuracy.

[0100] In some embodiments, the method further includes:

[0101] When the display proportion of the measured object in the user interface exceeds a first preset threshold, a first prompt information is output to prompt that the image acquisition device is too close to the measured object;

[0102] When the display proportion of the measured object in the user interface is lower than a second preset threshold, a second prompt information is output to prompt that the image acquisition device is too far away from the measured object; and the first preset threshold is greater than the second preset threshold.

[0103] In the embodiment, the distance between the measured object and the image acquisition device is between 5m and 200m. When the distance between the measured object and the image acquisition device is very close, the measured object is too large or not completely displayed on the user interface, the size data of the ranging ring cannot represent the real imaging size data of the measured object, and a first prompt information is displayed on the user interface, for example, “<5m” is displayed. When the distance between the measured object and the image acquisition device is very far, the measured object is too small on the user interface, the size data of the ranging ring cannot represent the real imaging size data of the measured object, and a second prompt information is displayed on the user interface, for example, “>200m” is displayed. When the distance between the measured object and the image acquisition device is very close or very far, no specific distance value is displayed.

[0104] In the above embodiment, for the measured object beyond the measurement range, only the distance is approximately displayed, so that the user can intuitively understand the distance between the measured object and the image acquisition device.

[0105] In another aspect of the present application, a computer program product is provided, which comprises a computer program, and the computer program is executed by a processor to implement the imaging-based ranging method according to any one of the embodiments of the present application.

[0106] In the computer program product, the optional implementation form of the program module architecture of the computer program implementing the steps of the imaging-based ranging method can be an imaging-based ranging device.

[0107] Referring to FIG. 8, an imaging-based ranging device is provided according to an embodiment of the present application, which comprises: an acquisition module 81, configured to acquire a current scene image containing a measured object and displayed on a user interface by an image acquisition device; a determination module 82, configured to determine actual size data of the measured object and a current imaging magnification of the current scene image in the user interface; the determination module 82 is further configured to determine current imaging size data of the measured object in the current scene image based on a ranging ring matched with the measured object displayed in the user interface; and the determination module 82 is further configured to determine a distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification, and the current imaging size data.

[0108] Optionally, the determination module 82 is further configured to:

[0109] The actual size data of the measured object is acquired based on a triggering operation on an actual size selection control or a size customization control displayed on a first user interface; wherein the first user interface displays a plurality of actual size selection controls respectively corresponding to different sizes and / or the size customization control, and the size customization control is used for the user to customize the actual size data of the measured object.

[0110] Optionally, the determining module 82 is further configured to:

[0111] adjust the size of the ranging ring displayed on the second user interface based on a size adjustment operation received by the second user interface, and / or move the ranging ring displayed on the second user interface based on a position moving operation received by the second user interface;

[0112] acquire target ranging ring size data when the ranging ring matches the measured object;

[0113] determine current imaging size data of the measured object in the current scene image based on the target ranging ring size data.

[0114] Optionally, the determining module 82 is further configured to:

[0115] acquire a size adjustment operation based on a size adjustment control displayed on the second user interface, and adjust the size of the ranging ring displayed on the second user interface based on the size adjustment operation; and / or

[0116] acquire a size touch operation on the ranging ring based on the second user interface, and adjust the size of the ranging ring displayed on the second user interface through the size touch operation.

[0117] Optionally, the determining module 82 is further configured to:

[0118] acquire current ranging ring size data in real time during the execution of the ranging ring size adjustment operation on the ranging ring;

[0119] determine a current distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification, and the current ranging ring size data, and display the current distance on the second user interface in real time.

[0120] Optionally, the determining module 82 is further configured to:

[0121] display the size change of the ranging ring on the second user interface in real time during the execution of the ranging ring size adjustment operation on the ranging ring.

[0122] Optionally, the determining module 82 is further configured to:

[0123] acquire a save operation on the current distance;

[0124] display the current distance corresponding to each save operation on the second user interface in sequence based on the save operation.

[0125] Optionally, the determining module 82 is further configured to:

[0126] When the displayed distance exceeds a preset number, the distance reading meeting the deletion condition is deleted.

[0127] Optionally, the matching of the ranging ring and the measured object means that the ranging ring is inscribed in the measured object in the current scene image.

[0128] Optionally, the determining module 82 is further configured to:

[0129] determine the contour line of the measured object from the current scene image;

[0130] determine whether the ranging ring is inscribed in the measured object in the current scene image based on the contour line of the measured object and the positional relationship of the ranging ring, to determine whether the ranging ring is matched with the measured object.

[0131] Optionally, the determining module 82 is further configured to:

[0132] determine the distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification, the current imaging size data and a preset database, wherein the preset database stores a mapping relationship among imaging magnification, actual size data, imaging size data and distance.

[0133] Optionally, the determining module 82 is further configured to:

[0134] map the distance in the preset database as the distance between the measured object and the image acquisition device when the matching condition is met, the matching condition including that the data stored in the preset database simultaneously meet: the stored imaging magnification is the same as the current imaging magnification, the stored actual size data has the minimum error with the actual size data, and the stored imaging size data has the minimum error with the current imaging size data.

[0135] Optionally, the determining module 82 is further configured to:

[0136] when the display proportion of the measured object in the user interface exceeds a first preset threshold, output a first prompt information to prompt that the image acquisition device is too close to the measured object;

[0137] when the display proportion of the measured object in the user interface is lower than a second preset threshold, output a second prompt information to prompt that the image acquisition device is too far away from the measured object; wherein the first preset threshold is greater than the second preset threshold.

[0138] Optionally, the determining module 82 is further configured to:

[0139] According to a relationship formula, the distance between the measured object and the image acquisition device is calculated, wherein the actual size data, the imaging magnification, and the imaging size data are independent variables, and the distance is a dependent variable.

[0140] Those skilled in the art can understand that the structure of the imaging-based distance measuring device in FIG. 8 does not constitute a limitation on the imaging-based distance measuring device, and the various modules can be implemented in whole or in part by software, hardware, and combinations thereof. The various modules described above can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in a computer device in software form, so as to be called and executed by a processor to perform the operations corresponding to the various modules. In other embodiments, the imaging-based distance measuring device can include more or fewer modules than those shown.

[0141] Referring to FIG. 9, another aspect of the embodiments of the present application further provides an electronic device 10, which includes a processor 13 and a memory 14. The memory 14 stores a computer program, and the computer program causes the processor 13 to perform the steps of the imaging-based distance measuring method provided by any of the embodiments of the present application when the computer program is executed by the processor. The electronic device 10 can include a computing device (for example, a desktop computer, a laptop computer, a tablet computer, a handheld computer, a smart speaker, a server, etc.), a terminal device (for example, a mobile phone, etc.), a wearable device (for example, a pair of smart glasses or a smart watch), various infrared imaging devices, or the like.

[0142] The processor 13 is a control center, which connects various parts of the computer device through various interfaces and lines, executes software programs and / or modules stored in the memory 14, and calls data stored in the memory 14, to perform various functions of the computer device and process data. Optionally, the processor 13 can include one or more processing cores; preferably, the processor 13 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the modem processor described above can also not be integrated into the processor 13.

[0143] The memory 14 can be used to store software programs and modules, and the processor 13 executes various function applications and data processing by running the software programs and modules stored in the memory 14. The memory 14 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; and the data storage area can store data created according to the use of the computer device, etc. In addition, the memory 14 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 14 can also include a memory processor to provide access of the processor 13 to the memory 14.

[0144] In another aspect, the present application also provides a computer readable storage medium storing computer executable instructions, which, when invoked by an electronic device, cause the electronic device to perform the steps of the imaging-based ranging method provided by any of the above embodiments.

[0145] Those skilled in the art can understand that all or part of the processes in the method provided by the above embodiments can be completed by a computer program instructing related hardware. The program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above embodiments. Any reference to memory, storage, database or other medium used in the embodiments provided by the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0146] The above merely illustrates the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. The protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An imaging-based distance measuring method, characterized by, The method comprises: acquiring a current scene image containing a measured object and displayed on a user interface by an image acquisition device; determining actual size data of the measured object and a current imaging magnification of the current scene image in the user interface; determining current imaging size data of the measured object in the current scene image based on a ranging ring matching the measured object displayed in the user interface; determining a distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification and the current imaging size data.

2. The imaging-based distance measuring method of claim 1, wherein, The determination of the actual size data of the measured object comprises: acquiring the actual size data of the measured object based on a triggering operation on an actual size selection control or a size customization control displayed on a first user interface, wherein the first user interface displays a plurality of actual size selection controls corresponding to different sizes and / or the size customization control for user to customize the actual size data of the measured object.

3. The imaging-based distance measuring method of claim 1, wherein, The determination of the current imaging size data of the measured object in the current scene image based on the ranging ring matching the measured object displayed in the user interface comprises: adjusting the size of the ranging ring displayed on a second user interface based on a ranging ring size adjustment operation received by the second user interface, and / or moving the ranging ring displayed on the second user interface based on a ranging ring position moving operation received by the second user interface; acquiring target ranging ring size data when the ranging ring matches the measured object; determining the current imaging size data of the measured object in the current scene image based on the target ranging ring size data.

4. The imaging-based distance measuring method of claim 3, wherein, The adjustment of the size of the ranging ring displayed on the second user interface based on the ranging ring size adjustment operation received by the second user interface comprises: acquiring a size adjustment operation based on a size adjustment control displayed on the second user interface, and adjusting the size of the ranging ring displayed on the second user interface based on the size adjustment operation; and / or acquiring a size touch operation on the ranging ring based on the second user interface, and adjusting the size of the ranging ring displayed on the second user interface through the size touch operation. The method further comprises:

5. The imaging-based distance measuring method of claim 3, wherein, acquiring current ranging ring size data in real time during the execution of the ranging ring size adjustment operation on the ranging ring; determining a current distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification and the current ranging ring size data, and displaying the current distance in real time on the second user interface. The method further comprises:

6. The imaging-based distance measuring method of claim 3, wherein, displaying the size size change of the ranging ring in real time on the second user interface during the execution of the ranging ring size adjustment operation on the ranging ring. The method further comprises:

7. The imaging-based distance measuring method of claim 5, wherein, acquiring a saving operation on the current distance; displaying the current distance corresponding to each saving operation in sequence on the second user interface based on the saving operation. The method further comprises:

8. The imaging-based distance measuring method of claim 7, wherein, ​ When the displayed distance exceeds a preset number, the distance reading meeting the deletion condition is deleted.

9. The imaging-based distance measuring method according to any one of claims 1 to 8, characterized in that, The matching of the ranging ring and the measured object refers to that the ranging ring is inscribed in the measured object in the current scene image.

10. The imaging-based distance measuring method of claim 9, wherein, The method further comprises: determining the contour line of the measured object from the current scene image; judging whether the ranging ring is inscribed in the measured object in the current scene image based on the contour line of the measured object and the positional relationship of the ranging ring, to determine whether the ranging ring is matched with the measured object.

11. The imaging-based distance measuring method according to any one of claims 1 to 8, characterized in that, The determining of the distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification, and the current imaging size data comprises: determining the distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification, the current imaging size data, and a preset database, wherein the preset database stores the mapping relationship among imaging magnification, actual size data, imaging size data, and distance.

12. The imaging-based distance measuring method of claim 11, wherein, The determining of the distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification, the current imaging size data, and a preset database comprises: taking the distance mapped in the preset database when the matching condition is met as the distance between the measured object and the image acquisition device, the matching condition comprising that the data stored in the preset database simultaneously meet: the stored imaging magnification is the same as the current imaging magnification, the stored actual size data has the minimum error with the actual size data, and the stored imaging size data has the minimum error with the current imaging size data.

13. The imaging-based distance measuring method according to any one of claims 1 to 8, characterized in that, The method further comprises: outputting a first prompt information to prompt that the image acquisition device is too close to the measured object when the display proportion of the measured object in the user interface exceeds a first preset threshold; outputting a second prompt information to prompt that the image acquisition device is too far away from the measured object when the display proportion of the measured object in the user interface is lower than a second preset threshold, wherein the first preset threshold is greater than the second preset threshold.

14. The imaging-based distance measuring method according to any one of claims 1 to 8, characterized in that, The determining of the distance between the measured object and the image acquisition device based on the actual size data, the current imaging magnification, and the current imaging size data comprises: calculating the distance between the measured object and the image acquisition device according to a relationship formula, wherein the actual size data, the imaging magnification, and the imaging size data are independent variables, and the distance is a dependent variable.

15. An electronic device, comprising: comprise: an acquisition module and a determination module; an acquisition module, configured to acquire a current scene image containing a measured object and display the current scene image on a user interface; a determination module, configured to determine actual size data of the measured object and a current imaging magnification of the current scene image on the user interface; the determination module is further configured to determine current imaging size data of the measured object in the current scene image based on a ranging ring matched with the measured object displayed on the user interface; and the determination module is further configured to determine current imaging size data of the measured object in the current scene image based on a ranging ring matched with the measured object displayed on the user interface. The determining module is further configured to determine the distance between the object and the image acquisition device based on the actual size data, the current imaging magnification, and the current imaging size data.

16. A computer program product comprising a computer program, characterized in that, The computer program, when executed by a processor, implements the imaging-based distance measurement method according to any one of claims 1 to 14.

17. An electronic device, comprising: A computer readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to perform the imaging-based distance measurement method according to any one of claims 1 to 14.

18. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer executable instructions, and the computer executable instructions, when invoked by an electronic device, cause the electronic device to perform the imaging-based distance measurement method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Method and apparatus for determining spatial parameter by image and terminal device

    CN106373156A

  • Parameter acquisition method and terminal equipment

    CN110113528A

  • Monocular distance measurement method and device, electronic equipment and storage medium

    CN114608521A

  • Distance measurement method, device and equipment

    CN114663497A

  • Ranging method and electronic equipment

    CN116385523A