A remote ranging method, system, device and storage medium for a mobile phone
Patent Information
- Application Number
- CN202610028248.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-09
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2046-01-09
AI Technical Summary
然而,该类方案大多将外置激光测距模块作为独立设备使用,或仅将手机作为简单的数据读取和显示终端,缺乏对手机供电能力、系统多任务环境以及手持使用特性的系统性考虑
[0016]综上,综上,本发明并非简单地将外置激光测距模块连接至手机使用,而是引入基于手机供电能力的使能控制机制,在完成通信建立和工作状态确认后才允许外置激光测距模块进入可测距状态,从而有效避免外置测距模块在启动或工作过程中对手机供电系统造成冲击,提高了整套测距系统的稳定性和可靠性。其次,通过在手机端设置受控的测距执行窗口,对外置激光测距模块的触发、数据接收及状态管理进行统一调度,使测距过程更加可控,有利于在手机多任务运行环境下保持测距流程的连续性和一致性。本发明充分利用手机内置测距模块的参考价值,在可测距区间内获取第二测距结果,并将其作为参考测距信息对外置激光测距模块输出的第一测距结果进行精度修正,从而克服单一外置测距结果在远距离场景下易受环境和姿态影响的问题。通过建立内外测距之间的偏差关系,并结合距离分段、环境参数及光照条件等因素对测距结果进行分段修正和联合补偿,本发明能够在不同测距距离和复杂环境条件下保持较高的测距精度。此外,在手机手持使用场景中,本发明还可以引入姿态感知与晃动补偿机制,利用手机内置陀螺仪获取测距过程中的姿态变化信息,对因晃动引入的测距误差进行修正或抑制,进一步提升远距离测距结果的稳定性和可信度。综上所述,本发明通过供电使能控制、测距窗口调度、内外测距协同修正的方法,使工程级远距离激光测距能力能够安全、稳定且高精度地运行于手机平台,不仅显著扩展了手机的测距距离和应用范围,而且提高了远距离测距在工程测量等实际场景中的实用性和可靠性,具有良好的应用前景和推广价值。
Smart Images

Figure CN121831790B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of mobile phone ranging, and more specifically, this application relates to a remote ranging method, system, device, and storage medium for mobile phones. Background Technology
[0002] With the continuous improvement of smartphone hardware performance, mobile phones are increasingly being used in various scenarios such as measurement, surveying, and engineering assistance. Current mobile phone ranging functions typically rely on the phone's built-in ranging module, such as camera-based image ranging, binocular vision ranging, structured light ranging, or Time-of-Flight (ToF) ranging technologies. These ranging methods offer advantages such as ease of operation and no need for external devices in close-range scenarios. However, their effective ranging range is usually limited by sensor power, baseline length, and ambient lighting conditions, making it difficult to meet the measurement needs of hundreds of meters or even longer distances. Furthermore, the ranging accuracy and stability further decrease in outdoor scenarios with strong light or low-reflectivity targets.
[0003] To address the issue of insufficient ranging distance in mobile phones, existing technologies include solutions that utilize external laser rangefinders or modules for long-distance measurement. However, these solutions mostly treat the external laser ranging module as a standalone device or use the mobile phone merely as a simple data reading and display terminal, lacking a systematic consideration of the phone's power supply capabilities, multi-tasking environments, and handheld usage characteristics. In practical applications, directly connecting an engineering-grade laser ranging module to a mobile phone can easily lead to unstable power supply and communication issues due to excessive startup power consumption, or fluctuations and increased errors in ranging results due to hand-held shaking. Furthermore, existing external ranging solutions typically rely on a single ranging result, lacking a collaborative correction mechanism with the phone's built-in ranging capabilities, making it difficult to consistently output high-precision, repeatable ranging results in long-distance scenarios.
[0004] Therefore, there is an urgent need for a remote ranging method, system, device, and storage medium for mobile phones to at least solve some of the above problems. Summary of the Invention
[0005] The summary section introduces a series of simplified concepts, which will be further explained in detail in the detailed description section. This summary section is not intended to limit the key and essential technical features of the claimed technical solution, nor is it intended to determine the scope of protection of the claimed technical solution.
[0006] In a first aspect, this application proposes a remote ranging method for mobile phones, comprising: A communication connection is established between the target mobile phone and the external laser ranging module, wherein the external laser ranging module is used to perform long-distance laser ranging. The target mobile phone enables the external laser ranging module based on its power supply capability. After communication establishment and working status confirmation are completed, the external laser ranging module is controlled to enter the ranging state. The target mobile phone sends a ranging trigger command to the external laser ranging module within a preset ranging execution window to control the external laser ranging module to perform laser ranging on the target object and obtain the first ranging result; The target mobile phone calls its built-in ranging module to obtain a second ranging result, wherein the second ranging result is used as reference ranging information; The target mobile phone performs accuracy correction on the first ranging result based on the second ranging result to obtain the corrected long-distance ranging result.
[0007] In one feasible implementation, the above-mentioned establishment of a communication connection between the target mobile phone and the external laser ranging module includes: After the target mobile phone and the external laser ranging module are physically connected, the target mobile phone enters the reference ranging state. Under the aforementioned reference ranging state, the target mobile phone controls the external laser ranging module and the built-in ranging module of the target mobile phone to perform ranging operations on the same initial ranging target within the preset reference ranging interval, and obtain the corresponding external ranging result and the built-in ranging result. The ranging deviation is calculated based on the external ranging results and the internal ranging results, and the ranging deviation is stored as an initial correction parameter for subsequent long-distance ranging. After the initial correction parameters are established, it is determined that the communication connection between the target mobile phone and the external laser ranging module is established.
[0008] In one feasible implementation, the above-mentioned calculation of the ranging deviation based on the external ranging result and the internal ranging result, and the storage of the ranging deviation as an initial correction parameter for subsequent long-distance ranging, includes: Within the aforementioned preset reference ranging interval, multiple sets of ranging samples for the same initial ranging target are obtained. Each set of ranging samples includes the ranging result of the external laser ranging module and the ranging result of the target mobile phone's built-in ranging module. Based on each of the above ranging samples, the corresponding ranging consistency index is calculated, wherein the above ranging consistency index represents the difference between the ranging result of the above external laser ranging module and the ranging result of the above target mobile phone built-in ranging module. Ranging samples whose ranging consistency index is less than the preset consistency threshold are determined as valid ranging samples. The system deviation benchmark is calculated based on the above effective ranging samples, and the above system deviation benchmark is determined as the above initial correction parameter.
[0009] In one feasible implementation, the above-mentioned accuracy correction of the first ranging result based on the second ranging result by the target mobile phone to obtain the corrected long-distance ranging result includes: After obtaining the first ranging result, the target distance segment is determined from multiple preset distance segments based on the ranging distance interval corresponding to the first ranging result. For the above target distance segments, the corresponding segment correction coefficients are calculated based on the above initial correction parameters; Based on the above piecewise correction coefficients, a second correction is performed on the ranging results after the initial correction parameters to obtain the corrected long-distance ranging results.
[0010] In one feasible implementation, the above-mentioned calculation of the corresponding segmentation correction coefficients based on the initial correction parameters for the target distance segmentation includes: After determining the target distance segments, environmental parameter information and illumination parameter information corresponding to the current ranging process are obtained. The environmental parameter information includes at least one or more of ambient temperature, ambient humidity and ambient visibility. The illumination parameter information is used to characterize the ambient light intensity in the target ranging direction. Based on the above target distance segmentation and the above initial correction parameters, the distance reference correction factor is determined; Based on the above environmental parameter information, an environmental correction factor is determined, and based on the above illumination parameter information, an illumination correction factor is determined. By jointly calculating the aforementioned distance reference correction factor, the aforementioned environment correction factor, and the aforementioned illumination correction factor, the segment correction coefficients corresponding to the aforementioned target distance segments are obtained.
[0011] In one feasible implementation, the determination of the distance reference correction factor based on the target distance segmentation and the initial correction parameters includes: The corresponding distance weight interval is determined based on the above target distance segmentation; Based on the mapping relationship between the above-mentioned initial correction parameters and the above-mentioned distance weight interval, the distance attenuation weight of the above-mentioned initial correction parameters in the above-mentioned target distance segment is calculated; The above initial correction parameters are combined with the above distance attenuation weights to calculate the distance reference correction factor corresponding to the above target distance segment; The determination of the environmental correction factor based on the aforementioned environmental parameter information, and the determination of the illumination correction factor based on the aforementioned illumination parameter information, include: The environmental parameter information is normalized to obtain an environmental state vector, and the environmental confidence coefficient is determined based on the environmental state vector. The above illumination parameter information is subjected to intensity grading to obtain illumination level parameters, and the illumination attenuation coefficient is determined based on the above illumination level parameters. Based on the joint constraint relationship between the above-mentioned environmental confidence coefficient and the above-mentioned illumination attenuation coefficient, the above-mentioned environmental correction factor and the above-mentioned illumination correction factor are calculated.
[0012] In one feasible implementation, during the process of controlling the external laser ranging module to perform laser ranging on the target object and obtaining the first ranging result, the method further includes: Within the ranging execution window, the target mobile phone synchronously collects the angular velocity data output by its built-in gyroscope, and calculates the attitude change of the target mobile phone within the ranging execution window based on the angular velocity data. The sway amplitude index is calculated based on the above attitude change, wherein the sway amplitude index is determined by the root mean square value of the above angular velocity data and the cumulative rotation angle within the above ranging execution window. Based on the above sway amplitude index, the above first ranging result and the preset sway compensation coefficient, the equivalent ranging deviation introduced by the sway is calculated, wherein the above equivalent ranging deviation is positively correlated with the square of the above first ranging result and the above sway amplitude index. Based on the aforementioned equivalent ranging deviation, the ranging result output by the external laser ranging module is corrected by shaking compensation to obtain the corrected first ranging result.
[0013] Secondly, the present invention also proposes a remote ranging system for mobile phones, comprising: The establishment unit is used to establish a communication connection between the target mobile phone and the external laser ranging module, wherein the external laser ranging module is used to perform long-distance laser ranging; The power supply control unit is used to enable the external laser ranging module based on the power supply capability of the target mobile phone. After communication establishment and working status confirmation are completed, the external laser ranging module is controlled to enter the ranging state. The first acquisition unit is used to send a ranging trigger command to the external laser ranging module within a preset ranging execution window, so as to control the external laser ranging module to perform laser ranging on the target object and acquire the first ranging result. The second acquisition unit is used to call the built-in ranging module of the target mobile phone to obtain the second ranging result, wherein the second ranging result is used as reference ranging information. The correction unit is used to correct the accuracy of the first ranging result based on the second ranging result of the target mobile phone, so as to obtain the corrected long-distance ranging result.
[0014] Thirdly, the present invention also proposes an electronic device comprising: a memory and a processor, characterized in that the processor, when executing a computer program stored in the memory, implements the steps of the remote ranging method for a mobile phone as described in any of the first aspects.
[0015] Fourthly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the remote ranging method for a mobile phone as described in any of the first aspects.
[0016] In summary, this invention does not simply connect an external laser ranging module to a mobile phone. Instead, it introduces an enable control mechanism based on the phone's power supply capabilities. The external laser ranging module is only allowed to enter the ranging state after communication establishment and operational status confirmation are completed. This effectively avoids impacting the phone's power supply system during startup or operation, improving the stability and reliability of the entire ranging system. Secondly, by setting a controlled ranging execution window on the mobile phone, the triggering, data reception, and status management of the external laser ranging module are uniformly scheduled, making the ranging process more controllable and facilitating the continuity and consistency of the ranging process in a multi-tasking mobile phone environment. This invention fully utilizes the reference value of the phone's built-in ranging module, acquiring a second ranging result within the measurable range and using it as reference ranging information to correct the accuracy of the first ranging result output by the external laser ranging module. This overcomes the problem that a single external ranging result is easily affected by the environment and posture in long-distance scenarios. By establishing the deviation relationship between internal and external ranging and combining factors such as distance segmentation, environmental parameters, and lighting conditions to perform segmented correction and joint compensation of the ranging results, this invention can maintain high ranging accuracy under different ranging distances and complex environmental conditions. Furthermore, in handheld mobile phone usage scenarios, this invention can also introduce attitude perception and shake compensation mechanisms. Utilizing the phone's built-in gyroscope to acquire attitude change information during the ranging process, it corrects or suppresses ranging errors introduced by shake, further improving the stability and reliability of long-distance ranging results. In summary, this invention, through power supply enable control, ranging window scheduling, and collaborative correction of internal and external ranging, enables engineering-grade long-distance laser ranging capabilities to operate safely, stably, and with high precision on mobile phone platforms. This not only significantly expands the ranging distance and application range of mobile phones but also improves the practicality and reliability of long-distance ranging in engineering surveying and other real-world scenarios, demonstrating promising application prospects and widespread application value.
[0017] Other advantages, objectives and features of this application will be apparent in part from the description which follows, and in part from what those skilled in the art will understand through study and practice of this application. Attached Figure Description
[0018] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit this specification. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 A schematic flowchart of a remote ranging method for a mobile phone provided in an embodiment of this application; Figure 2 A structural schematic diagram of a remote ranging system for mobile phones provided in an embodiment of this application; Figure 3 This is a schematic diagram of an electronic device structure provided in an embodiment of this application. Detailed Implementation
[0019] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus. The technical solutions of the embodiments of this application will now be clearly and completely described in conjunction with the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them.
[0020] Please see Figure 1 This is a flowchart illustrating a remote ranging method for a mobile phone provided in an embodiment of this application, which may specifically include: S110. Establish a communication connection between the target mobile phone and the external laser ranging module, wherein the external laser ranging module is used to perform long-distance laser ranging. S120. The target mobile phone enables the external laser ranging module based on its power supply capability. After communication establishment and working status confirmation are completed, the external laser ranging module is controlled to enter the ranging state. S130. The target mobile phone sends a ranging trigger command to the external laser ranging module within a preset ranging execution window to control the external laser ranging module to perform laser ranging on the target object and obtain the first ranging result. S140. The target mobile phone calls its built-in ranging module to obtain a second ranging result, wherein the second ranging result is used as reference ranging information. S150. The target mobile phone performs accuracy correction on the first ranging result based on the second ranging result to obtain the corrected long-distance ranging result.
[0021] For example, please refer to Figure 1 As shown in the embodiment of this application, a remote ranging method for mobile phones is provided. By working together with the target mobile phone and an external laser ranging module, engineering-grade long-distance ranging is achieved while ensuring the power supply and system stability of the mobile phone. The method also utilizes the built-in ranging capability of the mobile phone to calibrate and correct the external ranging results, thereby outputting long-distance ranging results with higher accuracy and better stability.
[0022] Specifically, in step S110, the target mobile phone first establishes a communication connection with the external laser ranging module. This external laser ranging module can use long-range ranging devices such as a 905nm laser ranging module to perform laser ranging on the target object. The target mobile phone can physically connect to the external laser ranging module via USB-to-serial conversion or similar methods, and configure communication parameters at the software level, enabling the target mobile phone to send control commands to the external laser ranging module and receive ranging data frames.
[0023] In step S120, the target mobile phone does not immediately trigger ranging after completing the connection. Instead, it enables the external laser ranging module based on its own power supply capability. For example, it outputs an enable signal or power-on control signal to the external laser ranging module only when it detects that the mobile phone's power supply voltage, current capability, or power supply stability meets preset conditions. After receiving the working status information returned by the external laser ranging module, it confirms that the module has entered the ready state and then controls the external laser ranging module to enter the ranging state. This can avoid the power consumption impact of the external ranging module at the moment of startup, which may cause the mobile phone to lose power, the interface to be unstable, or the communication to be abnormal, thereby ensuring the reliable operation of the subsequent ranging link.
[0024] In step S130, the target mobile phone sends a ranging trigger command to the external laser ranging module within a preset ranging execution window. This ranging execution window can be understood as a controlled time period for a ranging task. During this time period, the target mobile phone centrally schedules the triggering, data reception, and status readback of the external ranging module. The external laser ranging module then emits a laser beam at the target object and receives the echo signal. Based on ranging principles such as time-of-flight, it calculates the external ranging distance and outputs the first ranging result. In actual handheld mobile phone scenarios, to further improve the reliability of the first ranging result, the target mobile phone can also simultaneously collect gyroscope attitude change information within the ranging execution window to determine whether there is significant shaking during ranging and to compensate for or remove abnormal data from the ranging result, thereby reducing the impact of handheld shaking on long-distance ranging.
[0025] In step S140, the target mobile phone calls its built-in ranging module to obtain the second ranging result. The built-in ranging module can be a mobile phone's built-in ToF ranging, binocular ranging, structured light ranging, or camera-based ranging function, etc. Although its ranging range is usually smaller than that of an external laser ranging module, it has stable reference value within the range that can be measured. Therefore, the second ranging result is used as reference ranging information to constrain and correct the error of the external ranging result.
[0026] In step S150, the target mobile phone corrects the accuracy of the first ranging result based on the second ranging result. Specifically, this can be done by establishing the deviation relationship between the external ranging and the internal ranging within the reference ranging interval, calculating the initial correction parameters, and determining the segmented correction coefficient by combining the distance segmentation characteristics of long-distance ranging, ambient light, visibility, and other factors. The first ranging result is then compensated and corrected once or multiple times to obtain the corrected long-distance ranging result.
[0027] In one feasible implementation, the above-mentioned establishment of a communication connection between the target mobile phone and the external laser ranging module includes: After the target mobile phone and the external laser ranging module are physically connected, the target mobile phone enters the reference ranging state. Under the aforementioned reference ranging state, the target mobile phone controls the external laser ranging module and the built-in ranging module of the target mobile phone to perform ranging operations on the same initial ranging target within the preset reference ranging interval, and obtain the corresponding external ranging result and the built-in ranging result. The ranging deviation is calculated based on the external ranging results and the internal ranging results, and the ranging deviation is stored as an initial correction parameter for subsequent long-distance ranging. After the initial correction parameters are established, it is determined that the communication connection between the target mobile phone and the external laser ranging module is established.
[0028] For example, after the target mobile phone and the external laser ranging module complete the physical connection, the target mobile phone enters a reference ranging state. The reference ranging state can be understood as a controlled operating mode used for system initialization and calibration. In this mode, the target mobile phone constrains the ranging target and ranging conditions, for example, requiring the initial ranging target to be located within a preset reference ranging interval (e.g., ...). Furthermore, the initial ranging target's reflection conditions meet preset requirements (e.g., high reflectivity or clear target surface texture) to simultaneously satisfy the effective ranging range of both the external laser ranging module and the target phone's built-in ranging module. Under the aforementioned reference ranging state, the target phone controls both the external laser ranging module and the target phone's built-in ranging module to perform ranging operations on the same initial ranging target, acquiring the corresponding external ranging result and the built-in ranging result. The external ranging result can be denoted as... The built-in ranging result can be recorded as The difference between the two reflects the systematic deviation of the external laser ranging module relative to the mobile phone reference ranging under the current installation method, power supply status, communication link, and target environment.
[0029] To improve the stability of the initial correction parameters, the target mobile phone can collect multiple sets of ranging samples within the reference ranging interval. Let the first set be... The external ranging results of the group samples are The built-in ranging result is ,in , This represents the number of sample groups. For each sample group, the target mobile phone calculates the sample bias. For example, the following formula can be used: in, Indicates the first The deviation between the external ranging result and the internal ranging result when measuring the distance to the same initial ranging target is expressed in meters. This indicates the output of the external laser ranging module. Secondary distance measurement This indicates the output of the target phone's built-in ranging module. Secondary distance measurement.
[0030] Furthermore, to eliminate occasional anomalies during the ranging process (such as hand shake, unstable echo, etc.), a consistency threshold can be introduced for the target mobile phone. Screening the samples, for example when When this group of samples is selected, it is determined as a valid ranging sample; thus forming a valid sample set. ,in This is the set of valid sample indexes.
[0031] Subsequently, the target mobile phone calculated the system deviation benchmark based on the effective ranging samples, and determined the system deviation benchmark as the initial correction parameter. For example, the mean or median can be used to calculate it: or in, This represents the initial correction parameters, reflecting the systematic deviation benchmark between the external laser ranging module and the target mobile phone's built-in ranging module; Indicates the number of valid samples; This represents the median operation, used to reduce the impact of outliers on the correction parameters.
[0032] After the initial correction parameters are established, the target mobile phone determines that the communication connection between it and the external laser ranging module is established, and uses the connection status as the entry condition for subsequent enable control and long-distance ranging trigger, thereby ensuring that an initial reference that can be used for error compensation is available before entering the ranging process.
[0033] In subsequent long-range ranging processes, the above initial correction parameters It can be used for initial compensation of the raw long-distance ranging value output by an external laser ranging module. For example, when the raw ranging result output by the external laser ranging module is... At that time, the initial correction result can be obtained. : in, This indicates the raw ranging result output by the external laser ranging module in a long-distance scenario; This indicates the distance measurement result after initial compensation based on the initial correction parameters.
[0034] By embedding the joint ranging calibration and initial correction parameter generation under the reference ranging state into the communication connection establishment process, this embodiment can form a stable system error benchmark before ranging, reduce the impact of systematic drift generated by the external ranging module under different connection states, power supply states or environmental conditions on the accuracy of long-distance ranging, thereby improving the repeatability, stability and engineering application value of the entire mobile phone remote ranging method.
[0035] In one feasible implementation, the above-mentioned calculation of the ranging deviation based on the external ranging result and the internal ranging result, and the storage of the ranging deviation as an initial correction parameter for subsequent long-distance ranging, includes: Within the aforementioned preset reference ranging interval, multiple sets of ranging samples for the same initial ranging target are obtained, wherein each set of the aforementioned ranging samples includes the ranging result of the aforementioned external laser ranging module and the ranging result of the aforementioned target mobile phone built-in ranging module; Based on each of the above ranging samples, the corresponding ranging consistency index is calculated, wherein the above ranging consistency index represents the difference between the ranging result of the above external laser ranging module and the ranging result of the above target mobile phone built-in ranging module. Ranging samples whose ranging consistency index is less than the preset consistency threshold are determined as valid ranging samples. The system deviation benchmark is calculated based on the above effective ranging samples, and the above system deviation benchmark is determined as the above initial correction parameter.
[0036] For example, within the aforementioned preset reference ranging interval, the target mobile phone acquires multiple sets of ranging samples for the same initial ranging target, assuming the first... The external ranging results of the group ranging samples are The built-in ranging result is ,in This refers to the number of sampling times or the number of sample groups. The above external ranging results... The output from the aforementioned external laser ranging module can cover a longer distance but is easily affected by echo stability and handheld posture; the aforementioned built-in ranging results The output from the target mobile phone's built-in ranging module typically exhibits relatively stable repeatability within the reference ranging range, and therefore can be used as a reference ranging information source.
[0037] To quantify the degree of consistency between the two, the target mobile phone calculates a ranging consistency index for each set of ranging samples. The ranging consistency index is used to characterize the difference between the external ranging result and the built-in ranging result.
[0038] For example, the ranging consistency index can be defined in the form of absolute difference: in, Indicates the first The ranging consistency index of the group ranging samples, the smaller the value, the more consistent the external ranging and the internal ranging are; Indicates the first The distance value measured by the external laser ranging module; Indicates the first The distance value measured by the mobile phone's built-in ranging module is used for the secondary target. To further suppress the impact of occasional errors on the screening, the ranging consistency index can also incorporate a relative error form, for example: in, To prevent extremely small positive constants with a denominator of zero, this is used for numerical stability. This relative consistency index can provide a more balanced screening scale across different reference distances.
[0039] Subsequently, the target mobile phone compared the aforementioned ranging consistency index with a preset consistency threshold. By comparison, ranging samples whose ranging consistency index is less than the preset consistency threshold are determined as valid ranging samples, i.e., when the above-mentioned ranging consistency index is less than the preset consistency threshold, the ranging samples are determined as valid ranging samples. At that time, the first Group ranging samples are included in the valid sample set. ,in Preset consistency threshold It can be preset according to the upper limit of the reference ranging interval, target reflection conditions, and equipment accuracy requirements. For example, it can be set to... Alternatively, the distance can be set proportionally to the reference distance to ensure that only samples with high consistency, stable echoes, and stable attitudes are used for initial deviation modeling.
[0040] After obtaining valid ranging samples, the target mobile phone calculates a system deviation benchmark based on the valid samples and determines the system deviation benchmark as the initial correction parameter. For example, the deviation amount for each valid sample can be calculated first. : in, Indicates the first The deviation values of the external ranging device relative to the internal ranging device in each valid sample are calculated. Positive values indicate that the external ranging device is too large, and negative values indicate that the external ranging device is too small. The deviation values of the valid samples are then statistically aggregated to obtain the system deviation benchmark. For example, using mean aggregation: in, This represents the system deviation benchmark, used to characterize the systematic deviation of the external laser ranging module relative to the target mobile phone's built-in ranging module under the current connection method and reference ranging conditions; This represents the number of valid samples. To further reduce the bias of a small number of outliers on the benchmark, a robust aggregation method can be used for the systematic bias benchmark, such as the median: in, This represents median calculation. Ultimately, the target mobile phone will use the system deviation benchmark... The above initial correction parameters are stored and used for initial compensation in subsequent long-distance ranging, for example, when the external laser ranging module outputs the original ranging result for subsequent long-distance ranging. At that time, the initial correction result can be obtained based on the initial correction parameters. : in, This represents the ranging result after compensation using the initial correction parameters. Through the aforementioned consistency index screening mechanism, this embodiment can prioritize selecting samples with consistent internal and external ranging results and higher stability to establish a system deviation benchmark, thereby improving the reliability and repeatability of the initial correction parameters and providing a stable initial error reference for subsequent segmented correction of long-distance ranging, joint compensation for environment / illuminance, and self-learning updates.
[0041] In one feasible implementation, the above-mentioned accuracy correction of the first ranging result based on the second ranging result by the target mobile phone to obtain the corrected long-distance ranging result includes: After obtaining the first ranging result, the target distance segment is determined from multiple preset distance segments based on the ranging distance interval corresponding to the first ranging result. For the above target distance segments, the corresponding segment correction coefficients are calculated based on the above initial correction parameters; Based on the above piecewise correction coefficients, a second correction is performed on the ranging results after the initial correction parameters to obtain the corrected long-distance ranging results.
[0042] For example, after obtaining the first ranging result, the target mobile phone first determines the target distance segment from a set of preset distance segments based on the ranging distance interval corresponding to the first ranging result. The ranging range can be... Based on engineering experience or calibration results, it is divided into several continuous distance segments, for example... ,in The number of segments, For the first The distance between each segment boundary; when the first ranging result satisfy When, the target distance segment is determined to be the first... The segment is denoted as the segment number. .
[0043] After determining the target distance segments, the target mobile phone calculates the corresponding segment correction coefficients for each target distance segment based on the aforementioned initial correction parameters. The aforementioned initial correction parameters can be denoted as... It originates from the internal and external ranging deviation benchmarks for the same initial ranging target within the reference ranging interval, and is mainly used to compensate for the systematic zero bias of the external ranging module relative to the mobile phone reference ranging.
[0044] In this embodiment, to characterize the amplification characteristic of long-distance error with distance, a piecewise correction coefficient can be introduced into each distance segment. This is then associated with the initial correction parameter, so that the effect of different distance segments on the initial correction parameter can be different, thereby achieving piecewise compensation.
[0045] For example, piecewise correction coefficient It can be obtained through a preset mapping relationship or calibration, for example, by using the following linear or piecewise function form: in, Indicates the first Piece correction coefficients corresponding to each distance segment; Indicates the initial correction parameters; and In order to be with the first The coefficient parameters corresponding to each distance segment can be determined offline using historical calibration data, or updated online by a subsequent self-learning mechanism. By... and Establishing a coupling relationship can prevent the piecewise correction coefficients from becoming isolated empirical constants unrelated to the initial calibration, thereby enhancing the continuity and consistency of the correction model.
[0046] After the initial correction is completed, the target mobile phone first performs initial compensation on the first ranging result based on the initial correction parameters to obtain the initial correction result. For example, the following can be used: in, This indicates the first ranging result output by the external laser ranging module. This indicates the initial correction result after compensation with the initial correction parameters.
[0047] Subsequently, the aforementioned target mobile phone was based on a piecewise correction coefficient. A second correction is performed on the initial correction result to obtain the final corrected long-range ranging result. For example, the second-order correction can be implemented using multiplicative amplification or bias superposition, and one feasible form is multiplicative second-order correction: in, This indicates the corrected long-distance ranging result; This represents the piecewise correction factor for the target distance segments; This indicates the initial correction result. Another feasible form is a combination of bias and scaling correction: This form combines the zero-bias compensation of the initial correction parameters with the piecewise scaling correction, making it easier to implement and subsequently expand into a multi-factor joint model by introducing environment / lighting correction factors. For scenarios requiring finer-grained control, the piecewise correction coefficients can be further refined into a combination of piecewise bias terms and piecewise scaling terms, for example: or in, This is a segmentation ratio correction factor. For piecewise offset compensation, both are related to the distance piecewise number. Related.
[0048] Through the above methods, this embodiment can adopt different correction intensities and forms for different distance measurement ranges, making the correction model more consistent with the actual law of long-distance ranging error changing with distance, thereby obtaining higher accuracy and more stable long-distance ranging results across the entire range.
[0049] In one feasible implementation, the above-mentioned calculation of the corresponding segmentation correction coefficients based on the initial correction parameters for the target distance segmentation includes: After determining the target distance segments, environmental parameter information and illumination parameter information corresponding to the current ranging process are obtained. The environmental parameter information includes at least one or more of ambient temperature, ambient humidity and ambient visibility. The illumination parameter information is used to characterize the ambient light intensity in the target ranging direction. Based on the above target distance segmentation and the above initial correction parameters, the distance reference correction factor is determined; Based on the above environmental parameter information, an environmental correction factor is determined, and based on the above illumination parameter information, an illumination correction factor is determined. By jointly calculating the aforementioned distance reference correction factor, the aforementioned environment correction factor, and the aforementioned illumination correction factor, the segment correction coefficients corresponding to the aforementioned target distance segments are obtained.
[0050] In one feasible implementation, the determination of the distance reference correction factor based on the target distance segmentation and the initial correction parameters includes: The corresponding distance weight interval is determined based on the above target distance segmentation; Based on the mapping relationship between the above-mentioned initial correction parameters and the above-mentioned distance weight interval, the distance attenuation weight of the above-mentioned initial correction parameters in the above-mentioned target distance segment is calculated; The above initial correction parameters are combined with the above distance attenuation weights to calculate the distance reference correction factor corresponding to the above target distance segment; The determination of the environmental correction factor based on the aforementioned environmental parameter information, and the determination of the illumination correction factor based on the aforementioned illumination parameter information, include: The environmental parameter information is normalized to obtain an environmental state vector, and the environmental confidence coefficient is determined based on the environmental state vector. The above illumination parameter information is subjected to intensity grading to obtain illumination level parameters, and the illumination attenuation coefficient is determined based on the above illumination level parameters. Based on the joint constraint relationship between the above-mentioned environmental confidence coefficient and the above-mentioned illumination attenuation coefficient, the above-mentioned environmental correction factor and the above-mentioned illumination correction factor are calculated.
[0051] For example, after determining the target distance segments, the target mobile phone acquires environmental parameter information and illumination parameter information corresponding to the current ranging process, wherein the environmental parameter information may include ambient temperature. Ambient humidity Environmental visibility One or more of these, the illumination parameter information may include the ambient light intensity in the target ranging direction. The above parameters can be obtained from the phone's built-in sensors, system interface, or external weather data interface, and are used to characterize the impact of current ranging conditions on laser echo stability and ranging error.
[0052] In order to ensure that the segmented correction coefficients reflect both the differences in distance segments and inherit the unified zero-biased benchmark of the initial correction parameters, the target mobile phone first determines the distance benchmark correction factor based on the target distance segments and the initial correction parameters.
[0053] For example, let the target distance segment number be... The distance boundaries corresponding to this distance segment are Then, the distance weight interval can be determined based on this segmentation, and the distance decay weight can be constructed. For example, linear decay or exponential decay can be used. An example of linear decay is: in, Indicates the first The representative distance of each distance segment (e.g., the distance between the center of each segment) Alternatively, the distance measured when the first distance measurement result falls into that segment can be used as the representative distance. and These represent the minimum and maximum ranging ranges of the ranging system, respectively. This is the distance attenuation coefficient, used to control the impact of initial deviation compensation on the final coefficient as the distance increases. Represents the amplitude limiting function. This serves as the lower bound for the distance attenuation weight, preventing the correction from failing due to excessively small weights at long distances. The aforementioned distance attenuation weights essentially constitute a mapping between the initial correction parameter and the distance segments, ensuring that the same initial correction parameter contributes differently to the correction across different distance segments.
[0054] The initial correction parameters are combined with the range attenuation weights to calculate the range baseline correction factor. ,For example: in, Indicates the first Distance baseline correction factor for each distance segment, This represents the initial correction parameter (i.e., the zero offset compensation amount obtained from the external ranging and internal ranging deviation benchmark within the reference ranging interval). To prevent extremely small positive constants with a denominator of zero, the above formula avoids correcting for intensity imbalances at different distance scales through normalization using "deviation / distance," and also through... Achieve attenuation modulation that varies with distance segments.
[0055] After obtaining the distance baseline correction factor, the target mobile phone further determines the environmental correction factor based on environmental parameter information, and the illumination correction factor based on illumination parameter information. To enhance the robustness of environmental impact modeling, the aforementioned environmental parameter information can first be normalized to obtain the environmental state vector. ,For example: in, This serves as the baseline value for environmental parameters. The scaling parameter (which can be historical statistical standard deviation or a preset range) is used for normalization. When a certain environmental parameter is missing, it can be filled with a default value or only the available components can be used. Based on the environmental state vector, the target mobile phone can calculate the environmental confidence coefficient. This is used to characterize the acceptability of ranging stability under current environmental conditions, for example: in, This represents the environmental credibility coefficient. Let be the norm of the environment state vector. This is the environmental sensitivity coefficient; the more the environment deviates from the baseline conditions, the lower the sensitivity coefficient becomes. The larger, the better The smaller the value, the more unfavorable the environment and the lower the reliability of the distance measurement.
[0056] based on Defineable environmental correction factors ,For example: in, This is the environmental correction gain coefficient, used to control the enhancement magnitude of the secondary correction when the environment is unfavorable.
[0057] At the same time, the above-mentioned illumination parameter information can be processed into intensity classification to obtain illumination level parameters. For example, according to the threshold set Light intensity Light intensity is categorized into low light, normal light, and high light levels, and the light attenuation coefficient is determined accordingly. For example, a continuous form can be used instead of hard grading to avoid threshold jumps: in, Indicates the light attenuation coefficient. As the reference value for illumination, This is the light sensitivity coefficient. This is the lower limit of attenuation, used to avoid instability caused by an excessively small coefficient under strong light conditions. An illumination correction factor can be constructed based on the illumination attenuation coefficient. ,For example: in, This is the illumination correction gain coefficient, used to adjust the degree of compensation for correction intensity under strong light or backlight conditions.
[0058] To reflect the coupling effect of environment and lighting on ranging error, the target mobile phone can also be configured with an environmental confidence coefficient. With light attenuation coefficient The joint constraint relationship is used to enhance correction or reduce ranging confidence under conditions of poor environment and strong light superposition.
[0059] For example, joint constraint factors can be constructed. : in, Represents the joint constraint factor. This serves as its lower limit. Based on this joint constraint factor, the environmental correction factor and the illumination correction factor can be further coupled and adjusted, for example: in, and These are the environmental correction factor and the illumination correction factor after joint constraints, respectively, so that when When the value decreases (indicating unfavorable environmental and lighting conditions), the correction intensity increases accordingly or the range finding conservatism improves.
[0060] After determining the above three factors, the target mobile phone jointly calculates the distance reference correction factor, environmental correction factor, and illumination correction factor to obtain the segmented correction coefficients corresponding to the target distance segments. For example, joint computation can take the form of multiplicative fusion: in, Indicates the first Piecewise correction coefficients corresponding to each target distance segment Indicates the distance to the reference correction factor. This represents the environmental correction factor after joint constraints. This represents the illumination correction factor after joint constraints. The aforementioned piecewise correction coefficients are then used to perform a secondary correction on the ranging result after the initial correction using the initial correction parameters, for example, if the initial correction result is... At this point, the final corrected result can be obtained: in, This indicates the corrected long-distance ranging result. This indicates the first ranging result output by the external laser ranging module. This indicates the initial correction parameters.
[0061] This embodiment can dynamically adjust the segment correction coefficient under different distance segments and different environmental and lighting conditions, so that the secondary correction is not only related to distance, but can also adaptively compensate for the influence of environment and lighting on the stability and error of laser ranging, thereby obtaining more stable and accurate long-distance ranging results in complex indoor and outdoor scenarios.
[0062] In one feasible implementation, during the process of controlling the external laser ranging module to perform laser ranging on the target object and obtaining the first ranging result, the method further includes: Within the ranging execution window, the target mobile phone synchronously collects the angular velocity data output by its built-in gyroscope, and calculates the attitude change of the target mobile phone within the ranging execution window based on the angular velocity data. The sway amplitude index is calculated based on the above attitude change, wherein the sway amplitude index is determined by the root mean square value of the above angular velocity data and the cumulative rotation angle within the above ranging execution window. Based on the above sway amplitude index, the above first ranging result and the preset sway compensation coefficient, the equivalent ranging deviation introduced by the sway is calculated, wherein the above equivalent ranging deviation is positively correlated with the square of the above first ranging result and the above sway amplitude index. Based on the aforementioned equivalent ranging deviation, the ranging result output by the external laser ranging module is corrected by shaking compensation to obtain the corrected first ranging result.
[0063] For example, considering that slight shaking is inevitable when the target mobile phone is handheld for distance measurement, and that the external laser ranging module is sensitive to pointing stability within the distance measurement execution window of laser emission and echo reception, shaking may cause the laser spot to drift on the target surface, echo energy to fluctuate, or the echo decision time to jitter, thus causing initial deviations in the distance measurement results output by the external laser ranging module. Therefore, this embodiment introduces a shaking detection and compensation correction mechanism based on the mobile phone gyroscope during the process of controlling the external laser ranging module to perform laser distance measurement on the target object and obtain the first distance measurement result. This allows the first distance measurement result to suppress errors introduced by handheld shaking before entering the subsequent accuracy correction link, thereby improving the stability and consistency of long-distance distance measurement.
[0064] Specifically, within the ranging execution window, the target mobile phone synchronously collects angular velocity data output by its built-in gyroscope, and calculates the attitude change of the target mobile phone within the ranging execution window based on the angular velocity data. For example, let the ranging execution window be... The gyroscope uses a sampling period Output angular velocity sequence ,in Let be the number of sampling points within the window. Then, the angular velocity modulus at each sampling moment can be expressed as: in, These represent the angular velocity components around the three axes of the phone, with units of [missing information]. Or deg / s. Based on the above angular velocity sequence, the cumulative rotation angle (i.e., a representation of attitude change) within the ranging execution window can be approximated as: in, This indicates the cumulative rotation angle within the ranging execution window, reflecting the cumulative degree of change in the phone's attitude within that window.
[0065] Based on this, the target mobile phone calculates the sway amplitude index based on the attitude change, and the sway amplitude index is determined by the root mean square value of the angular velocity data and the cumulative rotation angle.
[0066] For example, the root mean square value of the angular velocity can be calculated first. : in, This indicates the angular velocity energy level within the ranging execution window, reflecting the intensity of the swaying; then the accumulated rotation angle... As a measure of the duration of the swaying; and thus constructing a swaying amplitude index. for: in, Indicates the amplitude of swaying; and , where is the weighting coefficient, used to balance the contributions of the intensity and duration terms to the sway assessment; both can be set empirically or determined through calibration. When When the value increases, it indicates that the shaking within the ranging execution window is more severe or lasts longer, and the reliability of the first ranging result is more likely to be affected.
[0067] Subsequently, the target mobile phone calculates the equivalent ranging deviation introduced by the shaking based on the shaking amplitude index, the first ranging result, and a preset shaking compensation coefficient, and makes this equivalent ranging deviation positively correlated with the square of the first ranging result and the shaking amplitude index. For example, let the original ranging result output by the external laser ranging module be... (That is, the first ranging result before compensation), then the equivalent ranging deviation introduced by the shaking can be considered. Set as: in, This represents the equivalent ranging deviation introduced by the swaying, expressed in meters. This represents the preset sway compensation coefficient, used to characterize the sensitivity of sway to ranging errors. It can be obtained through experimental calibration and can be set to different values based on the characteristics of different external ranging modules; This indicates the raw ranging result output by the external laser ranging module; This indicates the amplitude of the sway. The above format makes it possible to measure sway amplitude at long distances (…). Larger) or larger shaking ( When the value is relatively large, the equivalent deviation will be more significant, thus conforming to the engineering principle that long-distance objects are more sensitive to swaying, while the square term... It also reflects the nonlinear characteristic that slight shaking has little impact on error, while violent shaking has a rapidly amplified impact on error.
[0068] Finally, the target mobile phone performs shake compensation correction on the ranging result output by the external laser ranging module based on the aforementioned equivalent ranging deviation to obtain the corrected first ranging result. For example, the following compensation relationship can be used: in, This represents the first ranging result after sway compensation, which serves as the input for subsequent initial correction parameter compensation and segmented one-time correction based on the first ranging result; This represents the uncompensated original first ranging result; This indicates the equivalent distance measurement deviation introduced by the shaking.
[0069] Through the aforementioned shaking sensing and compensation correction mechanism, this embodiment can suppress systematic deviations caused by handheld shaking at the front end of the ranging link, reduce the interference of abnormal ranging values on subsequent initial calibration, segmented correction and self-learning update processes, thereby improving the stability, repeatability and reliability of long-distance ranging results in engineering applications.
[0070] In summary, this invention does not simply connect an external laser ranging module to a mobile phone. Instead, it introduces an enable control mechanism based on the phone's power supply capabilities. The external laser ranging module is only allowed to enter the ranging state after communication establishment and operational status confirmation are completed. This effectively avoids impacting the phone's power supply system during startup or operation, improving the stability and reliability of the entire ranging system. Secondly, by setting a controlled ranging execution window on the mobile phone, the triggering, data reception, and status management of the external laser ranging module are uniformly scheduled, making the ranging process more controllable and facilitating the continuity and consistency of the ranging process in a multi-tasking mobile phone environment. This invention fully utilizes the reference value of the phone's built-in ranging module, acquiring a second ranging result within the measurable range and using it as reference ranging information to correct the accuracy of the first ranging result output by the external laser ranging module. This overcomes the problem that a single external ranging result is easily affected by the environment and posture in long-distance scenarios. By establishing the deviation relationship between internal and external ranging and combining factors such as distance segmentation, environmental parameters, and lighting conditions to perform segmented correction and joint compensation of the ranging results, this invention can maintain high ranging accuracy under different ranging distances and complex environmental conditions. Furthermore, in handheld mobile phone usage scenarios, this invention can also introduce attitude perception and shake compensation mechanisms. Utilizing the phone's built-in gyroscope to acquire attitude change information during the ranging process, it corrects or suppresses ranging errors introduced by shake, further improving the stability and reliability of long-distance ranging results. In summary, this invention, through power supply enable control, ranging window scheduling, and collaborative correction of internal and external ranging, enables engineering-grade long-distance laser ranging capabilities to operate safely, stably, and with high precision on mobile phone platforms. This not only significantly expands the ranging distance and application range of mobile phones but also improves the practicality and reliability of long-distance ranging in engineering surveying and other real-world scenarios, demonstrating promising application prospects and widespread application value.
[0071] Secondly, the present invention also proposes a remote ranging system for mobile phones, such as... Figure 2 As shown, it includes: Establishment unit 21 is used to establish a communication connection between the target mobile phone and the external laser ranging module, wherein the external laser ranging module is used to perform long-distance laser ranging; The power supply control unit 22 is used to enable the external laser ranging module based on the power supply capability of the target mobile phone. After the communication establishment and working status confirmation are completed, the external laser ranging module is controlled to enter the ranging state. The first acquisition unit 23 is used to send a ranging trigger command to the external laser ranging module within a preset ranging execution window by the target mobile phone, so as to control the external laser ranging module to perform laser ranging on the target object and acquire the first ranging result. The second acquisition unit 24 is used to call the built-in ranging module of the target mobile phone to obtain the second ranging result, wherein the second ranging result is used as reference ranging information. The correction unit 25 is used to correct the accuracy of the first ranging result based on the second ranging result of the target mobile phone, so as to obtain the corrected long-distance ranging result.
[0072] In one feasible implementation, a remote ranging system for a mobile phone can also perform any step of the method proposed in the first aspect.
[0073] Thirdly, the present invention also proposes an electronic device 300, such as... Figure 3 As shown, it includes a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor. When the processor 320 executes the computer program 311, it implements the steps of the remote ranging method for a mobile phone as described in any of the first aspects.
[0074] Fourthly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the remote ranging method for a mobile phone as described in any one of the first aspects.
[0075] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0076] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0077] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0078] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0079] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0080] This application also provides a computer program product, which includes computer software instructions. When the computer software instructions are executed on a processing device, the processing device performs the voice-based identity recognition process in the corresponding embodiment. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0081] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0082] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.
[0083] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the present invention, depending on actual needs.
[0084] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0085] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0086] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A remote ranging method for mobile phones, characterized in that, include: A communication connection is established between the target mobile phone and the external laser ranging module, wherein the external laser ranging module is used to perform long-distance laser ranging; The target mobile phone enables the external laser ranging module based on its power supply capability. After communication establishment and working status confirmation are completed, the external laser ranging module is controlled to enter the ranging state. The target mobile phone sends a ranging trigger command to the external laser ranging module within a preset ranging execution window to control the external laser ranging module to perform laser ranging on the target object and obtain the first ranging result; The target mobile phone calls its built-in ranging module to obtain a second ranging result, wherein the second ranging result serves as reference ranging information; The target mobile phone performs an accuracy correction on the first ranging result based on the second ranging result to obtain a corrected long-distance ranging result. The step of establishing a communication connection between the target mobile phone and the external laser ranging module includes: After the target mobile phone and the external laser ranging module complete the physical connection, the target mobile phone enters the reference ranging state. In the reference ranging state, the target mobile phone controls the external laser ranging module and the built-in ranging module of the target mobile phone to perform ranging operations on the same initial ranging target within a preset reference ranging interval, and obtain the corresponding external ranging result and the built-in ranging result. The ranging deviation is calculated based on the external ranging result and the internal ranging result, and the ranging deviation is stored as an initial correction parameter for subsequent long-distance ranging. After the initial correction parameters are established, it is determined that the communication connection between the target mobile phone and the external laser ranging module is established.
2. The remote ranging method for mobile phones according to claim 1, characterized in that, The step of calculating the ranging deviation based on the external ranging result and the internal ranging result, and storing the ranging deviation as an initial correction parameter for subsequent long-distance ranging, includes: Within the preset reference ranging interval, multiple sets of ranging samples for the same initial ranging target are obtained, wherein each set of ranging samples includes the ranging result of the external laser ranging module and the ranging result of the target mobile phone's built-in ranging module; The distance measurement consistency index is calculated based on each group of distance measurement samples, wherein the distance measurement consistency index represents the difference between the distance measurement result of the external laser distance measurement module and the distance measurement result of the target mobile phone's built-in distance measurement module. Ranging samples whose ranging consistency index is less than a preset consistency threshold are determined as valid ranging samples. The system deviation benchmark is calculated based on the effective ranging samples, and the system deviation benchmark is determined as the initial correction parameter.
3. The remote ranging method for mobile phones according to claim 2, characterized in that, The step of correcting the accuracy of the first ranging result based on the second ranging result on the target mobile phone to obtain a corrected long-distance ranging result includes: After obtaining the first ranging result, the target distance segment is determined from multiple preset distance segments based on the ranging distance interval corresponding to the first ranging result. For the target distance segments, the corresponding segment correction coefficients are calculated based on the initial correction parameters; The distance measurement result after being corrected by the initial correction parameter is corrected by the piecewise correction coefficient to obtain the corrected long-distance distance measurement result.
4. The remote ranging method for mobile phones according to claim 3, characterized in that, The step of calculating the corresponding segmentation correction coefficient based on the initial correction parameters for the target distance segmentation includes: After determining the target distance segments, environmental parameter information and illumination parameter information corresponding to the current ranging process are obtained. The environmental parameter information includes at least one or more of ambient temperature, ambient humidity and ambient visibility. The illumination parameter information is used to characterize the ambient light intensity in the target ranging direction. Determine the distance reference correction factor based on the target distance segmentation and the initial correction parameters; An environmental correction factor is determined based on the environmental parameter information, and an illumination correction factor is determined based on the illumination parameter information. The distance reference correction factor, the environment correction factor, and the illumination correction factor are jointly calculated to obtain the segment correction coefficients corresponding to the target distance segments.
5. The remote ranging method for mobile phones according to claim 4, characterized in that, The step of determining the distance reference correction factor based on the target distance segment and the initial correction parameters includes: The corresponding distance weight interval is determined based on the target distance segmentation; Based on the mapping relationship between the initial correction parameter and the distance weight interval, the distance attenuation weight of the initial correction parameter within the target distance segment is calculated; The initial correction parameters are combined with the distance attenuation weight to calculate the distance reference correction factor corresponding to the target distance segment; The step of determining the environmental correction factor based on the environmental parameter information and the illumination correction factor based on the illumination parameter information includes: The environmental parameter information is normalized to obtain an environmental state vector, and the environmental confidence coefficient is determined based on the environmental state vector. The illumination parameter information is subjected to intensity grading processing to obtain illumination level parameters, and the illumination attenuation coefficient is determined based on the illumination level parameters; Based on the joint constraint relationship between the environmental confidence coefficient and the illumination attenuation coefficient, the environmental correction factor and the illumination correction factor are calculated.
6. The remote ranging method for mobile phones according to claim 1, characterized in that, In the process of controlling the external laser ranging module to perform laser ranging on the target object and obtaining the first ranging result, the method further includes: Within the ranging execution window, the target mobile phone synchronously collects angular velocity data output by its built-in gyroscope, and calculates the attitude change of the target mobile phone within the ranging execution window based on the angular velocity data. The sway amplitude index is calculated based on the attitude change, wherein the sway amplitude index is jointly determined by the root mean square value of the angular velocity data and the cumulative rotation angle within the ranging execution window; Based on the sway amplitude index, the first ranging result, and the preset sway compensation coefficient, the equivalent ranging deviation introduced by the sway is calculated, wherein the equivalent ranging deviation is positively correlated with the square of the first ranging result and the sway amplitude index. The distance measurement result output by the external laser ranging module is corrected by shaking compensation based on the equivalent ranging deviation to obtain the corrected first ranging result.
7. A remote ranging system for mobile phones, used in the remote ranging method according to any one of claims 1 to 6, characterized in that, include: A communication connection is established between the target mobile phone and the external laser ranging module, wherein the external laser ranging module is used to perform long-distance laser ranging. The power supply control unit is used to enable the external laser ranging module based on the target mobile phone's power supply capability, and after the communication establishment and working status confirmation are completed, control the external laser ranging module to enter the ranging state. The first acquisition unit is used to send a ranging trigger command to the external laser ranging module within a preset ranging execution window, so as to control the external laser ranging module to perform laser ranging on the target object and acquire the first ranging result. The second acquisition unit is used to have the target mobile phone call its built-in ranging module to acquire a second ranging result, wherein the second ranging result is used as reference ranging information; The correction unit is used to correct the accuracy of the first ranging result based on the second ranging result on the target mobile phone, so as to obtain a corrected long-distance ranging result.
8. An electronic device, comprising: The memory and processor are characterized in that the processor, when executing a computer program stored in the memory, implements the steps of the remote ranging method for a mobile phone as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the remote ranging method for a mobile phone as described in any one of claims 1-6.
Citation Information
Patent Citations
Test method and test device for laser ranging and mobile terminal
CN110196422A