Embedded multi-modal fusion AI golf ranging device and ranging method thereof
By using an embedded multimodal fusion AI golf ranging device, the time alignment and spatial mapping of laser point clouds and image frames are achieved, interference points are eliminated, and occlusion compensation is performed. This solves the problems of ranging accuracy and response speed in existing technologies and meets the precise ranging requirements of golf competitions.
Patent Information
- Application Number
- CN202611709876.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-11-02
- Publication Date
- 2026-11-27
AI Technical Summary
Existing golf distance measuring devices struggle to achieve accurate distance measurement in complex course environments, especially under conditions such as thin flagpoles, backlighting, partial obstruction, and multiple reflections. They are unable to effectively perform time alignment, spatial mapping, semantic attribution, interference removal, and obstruction compensation, resulting in low distance measurement accuracy and slow response speed, which is difficult to meet the requirements of competition.
An embedded multimodal fusion AI golf ranging device is adopted. Through a laser ranging module, a visual acquisition module, an embedded AI inference module, and a spatiotemporal synchronization and fusion decision module, it realizes the temporal alignment, spatial mapping, and target determination of laser point clouds and image frames, eliminates interference points, performs occlusion compensation, and completes data fusion and calculation locally.
It improves ranging accuracy and response speed in complex environments, ensures reliable ranging results under different lighting and field conditions, reduces the risk of erroneous readings, and simplifies operation in event mode to meet competition requirements.
Smart Images

Figure CN123176786A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of laser ranging technology, specifically relating to an embedded multimodal fusion AI golf ranging device and its ranging method. Background Technology
[0002] In golf, distance measuring devices are used to determine the distance from the ball's striking position to the flagstick before impact, allowing the user to select the appropriate club. Existing distance measuring devices can be broadly categorized into three types based on their sensing method: one type relies on satellite positioning and course map data to calculate the distance; its accuracy is limited by positioning errors and map accuracy, and it cannot directly sense the actual position of the flagstick. Another type uses laser time-of-flight ranging, calculating the distance by emitting laser pulses and receiving the target echo; this type is further divided into indirect time-of-flight architecture and direct time-of-flight architecture based on its ranging principle. A third type adds tilt detection to the above laser ranging methods, outputting the horizontal distance using slope compensation.
[0003] Laser rangefinders have the following problems in real-world sports field environments: Firstly, the divergence angle of the laser beam is limited after collimation, and the spot size falling on the flagpole at a long distance is very small. In addition, the flagpole is thin, and there is shaking when the user holds it to aim, making it difficult for the device to stably aim at the flagpole. When the background of the flagpole is a forest, building, golf cart or people, the echo is easily generated by the background objects, and the distance output by the device is actually the background distance rather than the flagpole distance.
[0004] Secondly, under conditions of strong midday light, backlight, or large-area high reflectivity background, the echo signal-to-noise ratio decreases, the receiving channel is prone to saturation or false echoes, and the ranging readings jump, making it difficult for users to determine whether the readings are reliable.
[0005] Third, when the ranging optical path is partially blocked by tree branches, shrubs, people, or flagpole sheaths, the laser can only obtain the echo of the foreground obstruction. The device or output distance is significantly smaller, or no reading is output due to insufficient echo energy. The user needs to repeatedly adjust the position and remeasure.
[0006] Fourth, when multiple reflections occur between multi-layered vegetation, building facades, and the ground, the receiving channel receives multiple echoes within a single frame. Selecting the measurement point solely based on the nearest or strongest echo may misjudge false echoes as flagpole echoes, leading to significant deviations in the ranging results.
[0007] To address these issues, some existing solutions incorporate visual sensors to assist laser ranging. For example, image recognition can be used to determine the flagpole's location and then narrow the laser scanning range, or the distance can be estimated from the target's imaging size in the image. However, these solutions are mostly loosely coupled between vision and laser, resulting in the following shortcomings: image frames and laser point clouds are acquired at their own pace, without establishing a unified time reference. When scanning handheld or when the target is in relative motion, the scenes described by the two are not at the same moment, leading to mismatches where the flagpole is framed in the image but the point cloud falls on trees; there is no calibrated quantitative mapping relationship between image pixel coordinates and laser echo points, and the attribution of an echo point to a specific target relies solely on empirical judgment of overlapping areas; for different interferences such as backlighting, occlusion, and multiple echoes, there is a lack of quantifiable and executable discrimination criteria and weighting mechanisms, and the fusion result depends on manually set fixed thresholds, resulting in poor stability under different lighting and field conditions.
[0008] In addition, existing rangefinders with slope compensation functions must disable this function in official competitions. This usually requires disabling it through menu settings, which is cumbersome and prone to omissions. Some solutions place image recognition and fusion calculations on mobile phones or in the cloud, relying on wireless links. When the network coverage on the court is poor, the response is slow, making it difficult to meet the requirement of quickly obtaining data before hitting the ball.
[0009] In summary, existing technologies lack a quantitative fusion mechanism that can perform time alignment, spatial mapping, semantic attribution, interference removal, occlusion compensation, and confidence determination locally on the embedded end. Therefore, it is difficult to simultaneously ensure ranging accuracy, response speed, and event compliance requirements in complex stadium environments with thin flagpoles, backlighting, partial occlusion, and multiple reflections. Summary of the Invention
[0010] The purpose of this invention is to overcome the aforementioned problems in traditional technologies and provide an embedded multimodal fusion AI golf ranging device and its ranging method.
[0011] To achieve the above-mentioned technical objectives and effects, the present invention is implemented through the following technical solution: This invention provides an embedded multimodal fusion AI golf ranging device, including a housing, and a laser ranging module, a visual acquisition module, an embedded AI inference module, a spatiotemporal synchronization and fusion decision module, and a ranging calculation output module disposed within the housing; The laser ranging module includes a pulsed laser emitting unit and a single-photon avalanche diode array receiving unit, and is configured to output laser point cloud data in frames. The laser point cloud data includes the distance value, reflection intensity value and echo timestamp of each echo point. The imaging field of view of the visual acquisition module and the emission field of view of the laser ranging module are calibrated to match each other and configured to output image frames and the acquisition timestamp of the image frames. The embedded AI inference module is configured to run a lightweight object detection network locally within the housing, and output object category labels, category confidence scores, and object bounding boxes for the image frames. The spatiotemporal synchronization and fusion decision module includes a time alignment unit, a spatial mapping unit, and a target decision unit. The time alignment unit is configured to interpolate and align the laser point cloud data to the acquisition time of the image frame based on the echo timestamp and the acquisition timestamp to obtain a fused frame. The spatial mapping unit is configured to project the echo points in the fused frame onto the image pixel coordinate system based on pre-calibrated intrinsic and extrinsic parameter matrices, and determine the target contour box to which each echo point belongs. The target decision unit is configured to determine the echo points as valid target points or interference points based on the echo point's attribution relationship, the category label of the target to which it belongs, the reflection intensity value of the echo point, and the semantic consistency score, and output a set of valid ranging points when the number of valid target points is greater than zero. The semantic consistency score is determined by the overlap between the projection box of the echo point on the image and the target contour box to which it belongs, the category confidence of the target contour box, and the deviation between the distance value of the echo point and the historical calculated distance of the same target. The ranging calculation output module is configured to calculate the target distance based on the effective ranging point set, and output the ranging result and target lock prompt.
[0012] Furthermore, the time alignment unit is configured to align the laser point cloud data to the acquisition time of the image frame according to equations (1) and (2): w =( t v - t k ) / ( t k+1 - t k (1) d s ( t v )=(1− w )· d k + w · d k+1 (2) In the formula, t v t is the acquisition timestamp of the current image frame; k t k+1 Let t be the echo timestamp of two adjacent frames in the laser point cloud data, and t k ≤t v <t k+1 w represents the interpolation weight; dk d k+1 d represents the echo distance values of the same angle channel in the k-th and (k+1)-th frames, respectively; s (t v ) represents the angle channel at acquisition time t v The alignment distance value; The time alignment unit is also configured to: when t v With t k The difference is greater than the preset synchronization window Δt max When the fused frame is determined to be mismatched, it is discarded, where Δt max =1 / (2f v )+τ,f v τ is the frame rate of the visual acquisition module, and τ is the single-frame processing delay of the laser ranging module.
[0013] Furthermore, the spatial mapping unit is configured to project the echo point onto the image pixel coordinate system according to equation (3), and calculate the semantic consistency score between the echo point and the target bounding box it falls into according to equation (4): [ u , v ,1] T =(1 / Z )· K ·[ R | t ]·[ X , Y , Z ,1] T (3) r = l 1· IoU ( b p , b o )+ l 2. c o + l 3·(1−| d p - d o | / d o (4) In the formula, (X,Y,Z) are the three-dimensional coordinates of the echo point in the laser coordinate system, and Z is the depth component of the echo point; K is the intrinsic parameter matrix; [R|t] is the rotation and translation matrix from the laser coordinate system to the image coordinate system; (u,v) are the pixel coordinates obtained by projection; b p b is a rectangular frame centered at the projection point, with a side length equal to the diameter of the laser spot's projection on the image; oThe target bounding box; IoU(·) represents the intersection-union ratio; c o The category confidence of the target outline; d p d represents the distance to the echo point. o The distance value is calculated for the same target in the previous fusion frame. If there is no previous fusion frame, then d is taken. o =d p λ1, λ2, and λ3 are preset weights, and λ1 + λ2 + λ3 = 1; The target decision unit is configured such that: when ρ is not less than a preset consistency threshold ρ th If the category label of the target belongs to a preset set of valid categories, the echo point is determined to be a valid target point; otherwise, the echo point is determined to be an interference point.
[0014] Furthermore, the target decision unit is also configured to calculate the highlight ratio of the region of interest corresponding to the laser spot in the image frame according to equation (5), and determine the lower limit of the reflection intensity of the fused frame according to equation (6): R hl = N ( I px ≥ I th ) / N roi (5) I min '= I min ·(1+ m · R hl (6) In the formula, I px N(I) represents the brightness value of the pixel within the region of interest; px ≥I th The brightness value is not less than the high luminance threshold I. th The number of pixels; N roi R represents the total number of pixels in the region of interest. hl Highlight ratio; I min The lower limit of the reference reflection intensity; μ is the backlight gain coefficient; I min 'This represents the lower limit of the reflection intensity of the fused frame; When R hl Not less than the preset percentage threshold R th When the fused frame is in a backlit state, it is determined that the frame is in a backlit state, and the frames in the fused frame that belong to the valid category set and whose reflection intensity value is less than I are selected. min The echo points are discarded as saturation false points; when R hl Less than R thAt that time, the fused frame containing elements belonging to the valid category set and with a reflection intensity value less than I will be considered. min Echo points are removed.
[0015] Furthermore, the target decision unit is configured to sort the valid target points in ascending order of distance values as follows: d1≤d2≤…≤d n The distance jump rate between adjacent echo points is calculated according to equation (7), and the confidence level of each echo point is calculated according to equation (8): d i =( d i+1 - d i ) / d i (7) C i = a 1·( I i / I max )+ a 2·(1− d i / d th )+ a 3· r i (8) In the formula, δ i Let δ be the distance hopping rate between the i-th echo point and its (i+1)-th adjacent echo point, where i = 1, 2, ..., n−1, and δ is taken when i = n. n =0;I i Let I be the reflection intensity value of the i-th echo point; max δ represents the maximum reflection intensity value among the effective target points. th The preset jump rate threshold; ρ i The semantic consistency score is given for the i-th echo point; a1, a2, and a3 are preset weights, and a1+a2+a3=1; When δ i >δ th When the i+1th echo point and subsequent echo points are determined to be false echoes caused by penetration of obstructions or multiple reflections, they are discarded; among the remaining echo points after the discarding, the confidence level C is determined. i The largest echo point is written into the set of effective ranging points as the ranging point.
[0016] Furthermore, the spatiotemporal synchronization and fusion decision module also includes an occlusion compensation unit, which is configured to determine whether the fused frame has local occlusion according to equation (9): d max < c · d v (9) In the formula, d max d represents the distance value of the echo point with the largest distance value in the laser point cloud data. v The visually estimated distance is obtained by performing monocular depth inference on target contour boxes in an image frame whose category labels belong to the valid category set and whose contour integrity is not less than a preset integrity threshold; γ is the occlusion determination coefficient; the contour integrity is the ratio of the number of pixels in the target contour box that are identified as the category label to the area of the target contour box; When equation (9) is true and the category label of the target to which the echo point with the largest distance value belongs belongs to the preset foreground interference category set, it is determined that the fused frame has local occlusion.
[0017] The occlusion compensation unit is also configured to calculate the scale correction coefficient according to equation (10), and output the compensation distance according to equation (11) when it is determined that there is partial occlusion: k =(1 / M )· S j=1 M ( d l,j / d v,j (10) d out = α · k · d v +(1− α )· d b , α =(1 / s v 2 ) / [(1 / s v 2 )+(1 / s b 2 (11) In the formula, M is the number of the most recent M fused frames determined to be occluded; d l,j Let d be the laser solution distance for the j-th unobstructed fusion frame; v,j The visual distance is estimated for the j-th occluded fused frame; κ is the scale correction coefficient; d bThis is the mean distance of the cluster with the most echo points among the remaining clusters after clustering laser point cloud data by distance and removing clusters belonging to the foreground interference category. When no remaining clusters exist, d is taken as the mean distance. b =κ·d v ;σ v σ represents the standard deviation of the depth output of monocular depth inference. b α represents the standard deviation of the distance values of echo points within the remaining clusters; α is the weight of the visual compensation term.
[0018] Furthermore, the ranging calculation output module is configured to calculate the overall confidence level of the current ranging result according to equation (12), and only when the overall confidence level is not less than a preset confidence threshold Q... th Output distance measurement results: Q = k 1· c o + k 2. r max + k 3·(1− s / d out )+ k 4. minutes ( N eff / N th ,1) (12) In the formula, c o The category confidence of the bounding box containing the valid target; ρ max σ is the maximum semantic consistency score of all echo points in the effective ranging point set; σ is the standard deviation of the distance values of the echo points involved in the solution; d out N represents the distance value obtained from this calculation or compensation. eff N represents the number of echo points in the effective ranging point set. th The preset quantity baseline value; k1, k2, k3, and k4 are preset weights, and k1+k2+k3+k4=1; When Q is less than Q th At this time, the ranging result is not output, but a prompt signal is output to remind you to re-aim.
[0019] Furthermore, it also includes a slope compensation module, a race mode switching module, and a status indicator module; The slope compensation module includes a tilt angle detection unit, which is configured to determine the pitch angle of the housing according to equation (13): i = arcsin ( a y / g (13) In the formula, a y The tilt angle detection unit measures the gravitational acceleration component along the emission optical axis of the laser ranging module; g is the gravitational acceleration; θ is the pitch angle of the shell, which is positive when the shell is tilted up and negative when it is tilted down. The slope compensation module is configured to decompose the target distance D according to equations (14) and (15): D h = D · cosθ (14) H = D · sinth (15) In the formula, D h H represents the horizontal distance; H represents the height difference, with H taking a positive value when the target is above the shell and a negative value when it is below the shell. The slope compensation module is also configured to output the slope compensation distance according to equation (16): D c = D h + k · H (16) In the formula, D c The slope compensation distance is k; k is the slope conversion factor, which is k=k1 when H is not less than zero, and k=k2 when H is less than zero. k1 and k2 are preset positive coefficients, and k2 is... <k1; The event mode switching module is a physical button located on the side of the housing, connected to the distance calculation output module, and is configured to generate an event mode command upon a single trigger, prohibiting the slope compensation module from outputting the horizontal distance and the height difference, and only outputting the target distance D; The status indicator module is linked to the competition mode switching module and is configured to light up the first color indicator light in competition mode and light up the second color indicator light or turn it off in non-competition mode.
[0020] Furthermore, the difference between the emission field of view of the laser ranging module and the imaging field of view of the visual acquisition module does not exceed 5°, and the baseline distance between the optical axis of the laser ranging module and the optical axis of the visual acquisition module is less than a preset baseline threshold. The embedded AI inference module, the spatiotemporal synchronization and fusion decision module, and the ranging calculation output module are integrated on the same system-on-a-chip. The inference, interpolation alignment, projection, and decision of the lightweight target detection network are all completed locally within the housing without going through an external network. The housing also includes a vibration motor and a display unit connected to the ranging calculation output module. The vibration motor is configured to vibrate for a preset duration when the target lock prompt is output, and the display unit is configured to display the ranging result and the occlusion compensation status indicator.
[0021] This invention also provides an embedded multimodal fusion AI golf ranging method, which uses the aforementioned embedded multimodal fusion AI golf ranging device and includes the following steps: S1. Power-on initialization, loading the intrinsic parameter matrix, the extrinsic parameter matrix, and the model parameters of the lightweight target detection network; S2. Simultaneously acquire laser point cloud data and image frames, and interpolate and align the laser point cloud data to the acquisition time of the image frame based on the echo timestamp and the acquisition timestamp to obtain a fused frame; S3. Perform target detection on the image frame, output target category label, category confidence and target bounding box, and project the echo points in the fused frame to the image pixel coordinate system to determine the target bounding box to which each echo point belongs and its semantic consistency score. S4. Based on the attribution relationship of the echo points, the category label of the target to which they belong, and the reflection intensity value, interference points are eliminated to obtain valid target points; S5. Perform multiple echo filtering on the effective target points, take the echo point with the highest confidence as the ranging point, obtain the effective ranging point set and calculate the target distance; S6. When local occlusion is detected, output the compensation distance in a confidence-weighted manner, and decide whether to output the ranging result based on the overall confidence level. S7. When receiving a race mode command, disable slope compensation output and illuminate the status indicator light.
[0022] The beneficial effects of this invention are: 1. The laser point cloud and image frame are interpolated and aligned to the same acquisition time based on their respective hardware timestamps, so that the two types of data involved in the fusion describe the same scene state. When handheld scanning or when the target is in relative motion, if the nearest frame is directly paired, there will be a time difference of up to about half a laser frame cycle between the laser frame and the image frame, and the landing point of the echo point on the image will deviate from the actual position. This invention unifies the point cloud to the image acquisition time by linearly interpolating the echo distance of the same angle channel, and directly discards the fusion frame that exceeds the synchronization window, thus avoiding the mismatch of "framing the flagpole in the image, but the point cloud falling on the tree" from the data source.
[0023] 2. After the echo points are calibrated and projected onto the pixel coordinate system, a semantic consistency score is obtained by weighting three factors: overlap, category confidence, and distance continuity. This transforms the target attribution of echo points from an empirical judgment based on regional overlap to a comparable numerical decision. The distance continuity factor can also suppress the misattribution of the background behind the flagpole as the flagpole, improving the accuracy of attribution under conditions of long distance and small target.
[0024] 3. The lower limit of reflection intensity adaptively increases with the proportion of highlight in the region of interest, enabling the device to automatically increase the requirements for echo intensity in strong midday light, backlight, or large-area high-reflection backgrounds, eliminating false points caused by saturation; while in non-backlight scenes, it still filters according to the baseline threshold, taking into account the detection of weak echo targets. False echoes generated by penetrating branches and leaves and multiple reflections are identified by the distance jump rate of adjacent echoes, and the remaining echoes are selected based on three confidence factors: intensity, jump rate, and semantic consistency, avoiding target misjudgment caused by only taking the nearest or strongest echo. The occlusion criterion compares the maximum laser echo distance with the visually estimated distance, and combines the semantic attribution of the echo point to confirm the cause of occlusion; during compensation, the scale drift of monocular depth is corrected with a scale correction coefficient, and the weights of laser and vision are allocated according to the inverse of variance, so that the compensation result still takes the actual laser measurement as the main factor when the visual depth error is large, and can still output stable readings under partial occlusion; for severe occlusion, compensation is explicitly rejected to avoid giving misleading values.
[0025] 4. The overall confidence level is weighted by category confidence, semantic consistency, distance dispersion, and the number of valid echoes. A reading is only output when the confidence level reaches a threshold, allowing the device to provide a prompt instead of an erroneous value when the target is unreliable, reducing the risk of users selecting a pole based on incorrect readings. All inference and fusion calculations are performed on the on-chip system within the casing, independent of wireless links and cloud computing power, ensuring controllable response latency and normal operation even with poor network coverage on the course. Game modes are switched with a single physical button, avoiding the tedious operation and risk of missing steps in disabling slope compensation through menus during gameplay.
[0026] Of course, any product implementing this invention does not necessarily need to achieve all of the above advantages at the same time. Attached Figure Description
[0027] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1 This is a structural block diagram of the embedded multimodal fusion AI golf ranging device in an embodiment of the present invention; Figure 2This is a schematic diagram of the unit composition and data flow of the spatiotemporal synchronization and fusion decision module in an embodiment of the present invention; Figure 3 A flowchart of the ranging method provided in an embodiment of the present invention; In the attached diagram, the components represented by each number are as follows: 1-Housing, 2-Laser ranging module, 21-Pulsed laser emitting unit, 22-Single-photon avalanche diode array receiving unit, 3-Visual acquisition module, 4-Embedded AI inference module, 5-Spatiotemporal synchronization and fusion decision module, 51-Time alignment unit, 52-Spatial mapping unit, 53-Target judgment unit, 54-Occlusion compensation unit, 6-Range calculation output module, 7-Slope compensation module, 71-Tilt angle detection unit, 8-Event mode switching module, 9-Status indication module, 10-Vibration motor, 11-Display unit. Detailed Implementation
[0029] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0030] like Figure 1 As shown, this embodiment provides an embedded multimodal fusion AI golf ranging device, including a housing 1. The housing 1 houses a laser ranging module 2, a visual acquisition module 3, an embedded AI inference module 4, a spatiotemporal synchronization and fusion decision-making module 5, a ranging calculation and output module 6, a slope compensation module 7, a tournament mode switching module 8, a status indication module 9, a vibration motor 10, and a display unit 11. All modules are powered by a lithium battery housed within the housing 1 and connected to the main control board via flexible cables.
[0031] The laser ranging module 2 includes a pulsed laser emitting unit 21 and a single-photon avalanche diode array receiving unit 22. The pulsed laser emitting unit 21 uses a semiconductor laser with a wavelength of 905nm, a pulse width of 5ns, and a repetition frequency of 60kHz. The emitted beam, after passing through a collimating lens, has a divergence angle of approximately 3mrad, forming an 8°×6° emission field of view. The single-photon avalanche diode array receiving unit 22 uses an 8×8 array of single-photon avalanche diode chips, working with a time-to-digital converter to record the photon arrival time, achieving a time resolution of 250ps, corresponding to a one-way distance resolution of approximately 3.75cm. The laser ranging module 2 has a ranging range of 5m to 1200m, a ranging accuracy of ±0.3m, and a frame rate of 60Hz. Each frame outputs the distance value, reflection intensity value, and echo timestamp for each echo point. The reflection intensity value is the normalized photon count of that echo, ranging from 0 to 255.
[0032] The visual acquisition module 3 uses a 1 / 2.7-inch CMOS image sensor with an effective pixel count of 1920×1080, a frame rate of 30fps, and a lens field of view of 8°×6°, which is calibrated to match the emission field of view of the laser ranging module 2. The optical axis of the visual acquisition module 3 is parallel to the emission optical axis of the laser ranging module 2, with a baseline distance of 8mm, less than the preset baseline threshold of 10mm, and a parallelism error of less than 0.1°. The visual acquisition module 3 has a built-in image preprocessing circuit that performs automatic exposure, de-mosaicing, and noise reduction on the image before outputting the image frame and its acquisition timestamp.
[0033] The embedded AI inference module 4 employs an edge computing chip with an integrated neural network processing unit. This unit has a computing power of 1 TOPS and runs a lightweight target detection network quantized with INT8. The network takes a 640×640 pixel image as input and outputs target category labels, category confidence scores, and target bounding boxes. Target categories include five types: flagpoles, trees, buildings, people, and carts. Flagpoles belong to the valid category set, while trees, buildings, people, and carts belong to the interference category set, and trees, people, and carts belong to the foreground interference category set. The inference time per frame does not exceed 15ms, and all inference is completed within the housing 1.
[0034] The spatiotemporal synchronization and fusion decision module 5 includes a time alignment unit 51, a spatial mapping unit 52, a target decision unit 53, and an occlusion compensation unit 54, and its data flow is as follows: Figure 2 As shown: the time alignment unit 51 receives the timestamps of the laser point cloud data and the image frame, and outputs the fused frame; the spatial mapping unit 52 performs projection and assignment on the echo points in the fused frame, and outputs the pixel coordinates of the echo points, the assigned target and the semantic consistency score; the target decision unit 53 performs intensity filtering and multi-echo filtering, and outputs the effective ranging point set; the occlusion compensation unit 54 outputs the compensation distance when it is determined that there is local occlusion.
[0035] The ranging calculation output module 6 is connected to the spatiotemporal synchronization and fusion decision module 5. Based on the effective ranging point set, it calculates the target distance, drives the display unit 11 to display the ranging result, and drives the vibration motor 10 to vibrate for 0.5 seconds when the target lock prompt is output. The slope compensation module 7 includes a tilt angle detection unit 71. The tilt angle detection unit 71 uses a dual-axis accelerometer with a range of ±2g, a resolution of 0.1°, and a sampling rate of 100Hz. Its measurement axis is parallel to the emission optical axis of the laser ranging module 2, and it is used to output the gravitational acceleration component along the emission optical axis.
[0036] The competition mode switching module 8 is a physical touch button located on the side of the housing 1. The button has a raised protective ring around its perimeter and is connected to the input pin of the distance measurement and calculation output module 6. A single short press generates a competition mode command. The status indicator module 9 is a dual-color LED; green corresponds to competition mode, and blue corresponds to practice mode. The vibration motor 10 is a miniature eccentric vibration motor. The display unit 11 is a 0.49-inch organic light-emitting diode display screen used to display distance values, units, and status indicators. The housing 1 is a waterproof plastic housing with an IPX5 protection rating and a Class 1 laser product rating. The lithium battery capacity is 1000mAh, and the standby power consumption of the entire device is less than 100mW.
[0037] This embodiment further illustrates the specific implementation of each unit in the spatiotemporal synchronization and fusion decision module 5. For ease of explanation, a set of example values are used for the parameters in each formula; those skilled in the art can adjust these values according to the device parameters and court conditions, and the values themselves do not constitute a limitation on the present invention.
[0038] The working process of the time alignment unit 51 is as follows. The laser ranging module 2 and the vision acquisition module 3 are triggered by the same master clock frequency division, and the timestamps output by both are based on the counting of the master clock, thereby eliminating clock drift at the hardware level. The laser frame rate is 60Hz and the image frame rate is 30fps. The acquisition time of an image frame usually falls between two adjacent laser frames. If the nearest laser frame is directly paired with the image frame, a scene time difference of up to about 16.7ms will be generated during handheld scanning, which corresponds to the displacement of the target in the image reaching tens of pixels. For this reason, the time alignment unit 51 calculates the interpolation weight according to formula (1) and performs linear interpolation on the echo distance of the same angle channel according to formula (2) to unify the point cloud to the image acquisition time.
[0039] w =( t v - t k ) / ( t k+1 - t k (1) d s ( t v )=(1− w )· d k + w · d k+1 (2) In a specific example, the acquisition timestamp t of the current image frame v The echo timestamp t between two adjacent frames in the laser point cloud data is 2.0150s. k For 2.0100s, t k+1 The time is 2.0267s, and according to equation (1), the interpolation weight w is 0.2994; the echo distance d of a certain angle channel in the kth frame and the (k+1)th frame is... k 152.40m, d k+1 The distance is 152.90m. According to formula (2), the alignment distance d of the channel at the acquisition time is obtained. s (t v The value is 152.55m. Synchronization window Δt max Press 1 / (2f) v )+τ calculation, f v Given 30fps and τ = 8ms, we get Δt. max Approximately 24.7ms; in this example, t v With t k The difference is 5.0 ms, which is less than Δt. max The fused frame is valid. If a frame has a time difference exceeding 24.7ms due to exposure extension or data transmission congestion, the fused frame is deemed mismatched and discarded to avoid using outdated point clouds in the decision-making process.
[0040] The intrinsic parameter matrix K and extrinsic parameter matrix [R|t] used by the spatial mapping unit 52 are obtained through offline calibration. During calibration, checkerboard targets are arranged at three distances of 6m, 30m, and 80m, and no fewer than 20 sets of image and point cloud data pairs are collected. The intrinsic parameter matrix is solved using the Zhang Zhengyou calibration method, and the extrinsic parameter matrix is solved based on the pixel coordinates of the target corner points in the image and their three-dimensional coordinates in the laser coordinate system. The reprojection error is controlled within 0.5 pixels. The calibration results are written to the device's memory and loaded during power-on initialization.
[0041] [ u , v ,1] T =(1 / Z )· K ·[ R | t ]·[ X , Y ,Z ,1] T (3) In a specific example, f in the intrinsic parameter matrix K x with f y All are 1400 pixels, with the principal point coordinates being (960, 540); the coordinates of a certain echo point in the laser coordinate system are (0.62, 0.31, 152.55), and the pixel coordinates (965.69, 542.84) are obtained by projection according to formula (3). These pixel coordinates fall within the outline of the flagpole target. The projection diameter of the laser spot on the image is estimated by f·φ / Z, where φ is the spot diameter of the emitted beam at the target; in this embodiment, the divergence angle of the emitted beam is 3mrad, and the spot diameter at 150m is approximately 0.45m, corresponding to a projection diameter of approximately 4 pixels on the image. Therefore, the projection frame b p Take a rectangular frame centered at the projection point with a side length of 4 pixels.
[0042] After the echo point is projected onto the image, the spatial mapping unit 52 calculates the semantic consistency score between it and the target contour box it falls into according to equation (4). The first term in the equation measures the spatial overlap between the projected box and the target contour box, the second term measures the confidence of the detection network in the target, and the third term measures the consistency between the distance of the echo point and the historical distance calculated for the same target. The weights λ1, λ2, and λ3 are 0.5, 0.3, and 0.2, respectively, and the consistency threshold ρ... th Take 0.6.
[0043] r = l 1· IoU ( b p , b o )+ l 2. c o + l 3·(1−| d p - d o | / d o (4) In a specific example, the intersection-union ratio (IU) of the projected frame and the flagpole outline is 0.72, and the class confidence level (c) of the outline is... o The distance d from the echo point is 0.93. p The calculated distance d of the flagpole in the previous fused frame is 152.55m. oThe distance is 151.80m. According to formula (4), the semantic consistency score ρ is 0.838, which is greater than 0.6. The category label is flagpole, so the echo point is determined to be a valid target point. When multiple target outlines overlap with the same projection frame, the target outline with the largest intersection-union ratio is taken as the belonging object. The function of the third term is to suppress temporal jumps: if the projection of an echo point falls within the flagpole frame, but its distance suddenly increases compared to the previous fused frame, the third term will decrease significantly, making the score lower than the threshold, thereby avoiding misjudging the background echo behind the flagpole as the flagpole.
[0044] After completing the attribution determination, the target decision unit 53 calculates the highlight ratio of the laser spot corresponding to the region of interest according to formula (5). The region of interest is a square area with a side length of 64 pixels centered on the projection point, totaling 4096 pixels; the highlight brightness threshold I th Take 220, the percentage threshold R th The backlight gain coefficient μ is set to 0.45, and the lower limit of the reference reflection intensity I is set to 0.5. min Take 80.
[0045] R hl = N ( I px ≥ I th ) / N roi (5) I min '= I min ·(1+ m · R hl (6) In a specific example, there are 1980 pixels with a brightness of not less than 220 in the region of interest of a certain fused frame. The highlight ratio R is obtained according to equation (5). hl The value is 0.4834, which is greater than 0.45, so the frame is determined to be in a backlit state; the lower limit of the reflection intensity I of the frame is obtained according to formula (6). min The threshold is set at 99.34, meaning echo points with a reflection intensity below 99.34 are considered false points caused by strong light saturation and are therefore removed. When a frame is determined to be non-backlight, it is still filtered according to the baseline lower limit of 80 to avoid mistakenly deleting weak echoes from a distance. Since the backlight gain coefficient is proportional to the proportion of highlights, the stronger the light and the brighter the background, the greater the increase in the intensity threshold, thus achieving scene-adaptive thresholding.
[0046] The valid target points after intensity screening are arranged in ascending order of distance value. The target decision unit 53 calculates the distance jump rate between adjacent echo points according to formula (7). The jump rate threshold δ thSet the value to 0.15; set the credibility weights a1, a2, and a3 to 0.4, 0.3, and 0.3, respectively.
[0047] d i =( d i+1 - d i ) / d i (7) C i = a 1·( I i / I max )+ a 2·(1− d i / d th )+ a 3· r i (8) In a specific example, the effective target points after intensity screening, ordered by distance in ascending order, are 152.55m, 168.20m, and 210.50m, with corresponding reflection intensities of 146, 92, and 61, respectively. According to equation (7), δ1 is 0.1026 and δ2 is 0.2515; since δ2 is greater than 0.15, the echo point at 210.50m is determined to be a false echo generated by penetrating branches and leaves and is therefore discarded. The confidence level of the retained echo points is calculated according to equation (8): the confidence level C1 of the first point is 0.746, and the confidence level C2 of the second point is 0.438 because there is a distance jump after it. Therefore, the echo point at 152.55m is taken as the ranging point. For the retained points with subsequent jumps, the jump rate is calculated according to δ th The value is set such that the second term of equation (8) is zero, thereby avoiding negative values for the credibility.
[0048] The distance jump rate can distinguish between real target echoes and false echoes because the distance of the echo formed after the laser penetrates the branches or leaves or is reflected multiple times changes by several times or a large amount compared to the previous echo; while the distance difference between echo points on the same target surface is usually very small, and the jump rate is at a low level.
[0049] The occlusion compensation unit 54 determines local occlusion according to formula (9), and the occlusion determination coefficient γ is 0.75. When the maximum echo distance of the laser point cloud is less than 0.75 times the visually estimated distance, and the category label of the target to which the maximum echo point belongs belongs to the foreground interference category set, it indicates that the laser only obtains the echo of the foreground occluder and fails to reach the flagpole, and it is determined that there is local occlusion. Among them, the contour integrity is the ratio of the number of pixels identified as the category label in the target contour box to the area of the target contour box, and the integrity threshold is 0.6. Visually estimated distance d v The lightweight monocular depth inference subnetwork deployed in the embedded AI inference module 4 provides the following: This subnetwork has an encoder-decoder structure, taking a 256×256 target bounding box image as input and outputting a relative depth map; after performing mean filtering and removing outliers from the depth map, the median is taken as d. v The standard deviation of the depth map is used as σ. v .
[0050] d max < c · d v (9) The scale correction coefficient κ is obtained by averaging the ratio of the laser-calculated distance to the visually estimated distance of the most recent M unoccluded fusion frames according to equation (10), where M is 5. Monocular depth estimation suffers from scale drift, and the absolute value of its output changes with the scene scale. However, the ratio of laser distance to visual distance is relatively stable in the same scene. Therefore, using this ratio to correct the visual depth can make the compensation result independent of the absolute scale of the depth network. The compensation distance is calculated according to equation (11), where α is the weight of the visual compensation term, distributed according to the reciprocal of the variances of laser and vision: the larger the variance of visual depth, the smaller α, and the more the compensation result depends on the measured distance of the remaining point cloud; conversely, the visual estimation is more readily accepted.
[0051] k =(1 / M )· S j=1 M ( d l,j / d v,j (10) d out = α · k · d v +(1− α )· d b , α =(1 / s v2 ) / [(1 / s v 2 )+(1 / s b 2 (11) In a specific example, the maximum echo distance d of the laser point cloud in a certain fused frame max The echo point is 38.60m, and the target is a tree; the flagpole outline integrity in the image is 0.86, which is not less than 0.6, and the visually estimated distance d v The distance is 152.0m. According to equation (9), 38.60m is less than 0.75×152.0m, which is 114.0m, and the largest echo point belongs to a tree, so it is determined that there is local occlusion. The ratio of the laser solution distance to the visual estimation distance of the last 5 unoccluded fused frames is 1.008, 0.995, 1.002, 1.010, and 0.985 respectively. According to equation (10), κ is 1.000. After clustering the point cloud with a distance threshold of 2.0m and removing the tree cluster, the mean distance of the remaining clusters is 151.60m and the standard deviation of the echo point distance is σ. b The visual depth standard deviation is σ = 0.90m. v The distance is 4.20m. According to formula (11), α is 0.044, and the compensation distance d out It is 151.62m. Due to σ v Significantly greater than σ b The value of α is relatively small, and the compensation result mainly adopts the measured distance of the remaining point cloud. The visual estimation is only fine-tuned, so that it remains stable even when there is a scale error in the monocular depth.
[0052] When no remaining clusters exist after removing the foreground clusters, it is determined to be severe occlusion, and d is taken as... b =κ·d v Equation (11) degenerates into d out =κ·d v The device also outputs a re-aiming prompt to avoid giving incorrect compensation values.
[0053] The ranging calculation output module 6 calculates the comprehensive confidence level according to equation (12), with weights k1 to k4 taking values of 0.35, 0.25, 0.2, and 0.2 respectively, and the confidence threshold Q. th Take 0.60, quantity benchmark value N th Take 3.
[0054] Q = k 1· c o + k 2. r max + k3·(1− s / d out )+ k 4. minutes ( N eff / N th ,1) (12) Following the example above, the category confidence level c o The maximum value ρ of the semantic consistency score is 0.93. max The standard deviation σ of the distance between the echo points involved in the calculation is 0.838, the distance value d is 0.35m. out The effective echo point is 151.62m, and the number of effective echo points is N. eff Given a value of 2, according to equation (12), the overall confidence level Q is 0.868, which is greater than 0.60, and the output is 151.6m. If the target has only one echo point and the detection quality deteriorates, take c. o 0.35, ρ max If σ is 0.55 and 1.2m, then according to formula (12), Q is 0.525, which is lower than 0.60. Therefore, the device does not output the distance value, but only outputs a re-aiming prompt.
[0055] The slope compensation module 7 obtains the pitch angle of the housing 1 through the tilt angle detection unit 71. The measuring axis of the tilt angle detection unit 71 is parallel to the emitted light axis, and the gravitational component 'a' along the emitted light axis direction when the housing is tilted upwards... y If positive, the pitch angle θ can be obtained according to equation (13). To suppress noise caused by hand shake, the pitch angle θ is calculated for 5 consecutive sampling periods. y Take the moving average and then substitute it into equation (13).
[0056] i = arcsin ( a y / g (13) After obtaining the pitch angle, the slope compensation module 7 decomposes the target distance into horizontal distance and height difference according to equations (14) and (15), and outputs the slope compensation distance according to equation (16).
[0057] D h = D · cosθ (14) H = D · sinth (15) D c = D h + k ·H (16) In a specific example, a y Given a velocity of 1.0244 m / s², and g = 9.8 m / s², θ = 6.00° according to equation (13). When the target distance D is 151.62 m, the horizontal distance D is obtained according to equations (14) and (15). h The slope is 150.79m, the height difference H is 15.85m; k1 is 0.9, k2 is 0.6, and since H is positive, k is 0.9. According to formula (16), the slope compensation distance D is obtained. c It is 165.05m.
[0058] The slope conversion factor takes different values for uphill and downhill because: when hitting the ball uphill, the increase in hitting distance required for every 1m increase in elevation is greater than the decrease in hitting distance required for every 1m decrease in elevation when hitting the ball downhill, so k1 is greater than k2.
[0059] The race mode switching module 8 is a physical button. A single short press generates a race mode command, and the controller disables the slope compensation module 7 from outputting the slope compensation distance D. c Horizontal distance D h The display unit 11 only displays the target distance D, along with the height difference H. The status indicator module 9 illuminates a green indicator light. A short press again restores the slope compensation output, and the indicator light turns blue. The reason for using physical buttons instead of menu items is that the slope compensation function is prohibited in official matches. If it were to be turned off step by step through the menu, the operation would be cumbersome and easy to miss during the match. Physical buttons can be operated blindly with one hand, and the raised protective ring around the buttons can prevent the device from being accidentally triggered when it is placed in the bag.
[0060] like Figure 3 As shown, this embodiment provides a ranging method using the above-described device, including steps S1 to S7.
[0061] S1. Press and hold the power button for 1.5 seconds to turn on the device. The controller completes self-test and checks the communication status of the laser ranging module 2, the vision acquisition module 3, and the tilt detection unit 71. It reads the intrinsic parameter matrix, extrinsic parameter matrix, and various threshold and weight parameters from the memory. The embedded AI inference module 4 loads the quantized target detection network and the monocular depth inference sub-network and completes the inference initialization.
[0062] S2, the laser ranging module 2 outputs laser point cloud data at 60Hz, and the visual acquisition module 3 outputs image frames at 30fps. Both have the same timestamp. The time alignment unit 51 interpolates the point cloud to the image acquisition time according to equations (1) and (2); if the time difference exceeds the synchronization window Δt... max Discard the merged frame and wait for the next frame.
[0063] S3, Embedded AI inference module 4 performs target detection on image frames and outputs the category label, category confidence and target contour box of each target; Spatial mapping unit 52 projects the echo points to the pixel coordinate system according to equation (3), calculates the semantic consistency score according to equation (4), and assigns the echo points to the target contour box with the largest intersection-union ratio.
[0064] S4. Target decision unit 53 performs two-level screening: First, it determines the lower limit of the reflection intensity of the fused frame according to equations (5) and (6), and removes saturated false points and weak echo points; then, it removes echo points whose category label belongs to the interference category set, and retains those whose category label is flagpole and whose semantic consistency score is not less than ρ. th The echo point is taken as the valid target point. If there is no valid target point, no reading is output, and the process returns to S2 to continue acquisition.
[0065] S5. Perform multi-echo filtering on valid target points according to equations (7) and (8) to eliminate targets with a distance jump rate exceeding δ. th The false echoes are identified, and the echo point with the highest confidence is selected as the ranging point to obtain the effective ranging point set and calculate the target distance; when the target is locked, the vibration motor 10 is driven to vibrate for 0.5s, and the display unit 11 displays the distance value.
[0066] S6. The occlusion compensation unit 54 determines whether there is local occlusion according to formula (9): if there is, it calculates the scale correction coefficient according to formula (10), outputs the compensation distance according to formula (11), and gives a compensation mark on the display unit 11; if the effective ranging point set is empty and there is a complete flagpole outline in the image, it is determined to be severely occluded and prompts to re-aiming. Then, it calculates the comprehensive confidence level according to formula (12), and only when the confidence level is not less than Q th Output the reading at any time.
[0067] S7. When the race mode command is received, the slope compensation output is disabled, the display unit 11 only displays the target distance, and the status indicator module 9 lights up the green indicator light; when the switching command is received again, the slope compensation output is restored.
[0068] In other embodiments, the laser ranging module can employ a single-point ranging combined with galvanometer scanning, or a linear array of single-photon avalanche diodes combined with one-dimensional scanning; the visual acquisition module can employ a binocular camera, using binocular parallax instead of monocular depth inference; the target detection network can be replaced with other single-stage detection networks. All of the above modifications fall within the scope of this invention and do not affect the fusion logic expressed in the formulas.
[0069] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to specific implementations. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims
1. An embedded multimodal fusion AI golf ranging device, characterized in that, It includes a housing, and a laser ranging module, a visual acquisition module, an embedded AI inference module, a spatiotemporal synchronization and fusion decision module, and a ranging calculation output module disposed within the housing; The laser ranging module includes a pulsed laser emitting unit and a single-photon avalanche diode array receiving unit, and is configured to output laser point cloud data in frames. The laser point cloud data includes the distance value, reflection intensity value and echo timestamp of each echo point. The imaging field of view of the visual acquisition module and the emission field of view of the laser ranging module are calibrated to match each other and configured to output image frames and the acquisition timestamp of the image frames. The embedded AI inference module is configured to run a lightweight object detection network locally within the housing, and output object category labels, category confidence scores, and object bounding boxes for the image frames. The spatiotemporal synchronization and fusion decision module includes a time alignment unit, a spatial mapping unit, and a target determination unit. The time alignment unit is configured to interpolate and align the laser point cloud data to the acquisition time of the image frame based on the echo timestamp and the acquisition timestamp to obtain a fused frame. The spatial mapping unit is configured to project the echo points in the fused frame onto the image pixel coordinate system based on pre-calibrated intrinsic and extrinsic parameter matrices, and determine the target contour box to which each echo point belongs. The target decision unit is configured to determine whether an echo point is a valid target point or an interference point based on the echo point's attribution relationship, the category label of the target to which it belongs, the reflection intensity value of the echo point, and the semantic consistency score. When the number of valid target points is greater than zero, the unit outputs a set of valid ranging points. The semantic consistency score is determined by the overlap between the projection box of the echo point on the image and the outline of the target to which it belongs, the category confidence of the outline of the target, and the deviation between the distance value of the echo point and the historical calculated distance of the same target. The ranging calculation output module is configured to calculate the target distance based on the effective ranging point set, and output the ranging result and target lock prompt.
2. The embedded multimodal fusion AI golf ranging device according to claim 1, characterized in that, The time alignment unit is configured to align the laser point cloud data to the acquisition time of the image frame according to equations (1) and (2): w =( t v − t k ) / ( t k+1 − t k ) (1) d s ( t v )=(1− w )· d k + w · d k+1 (2) In the formula, t v t is the acquisition timestamp of the current image frame; k t k+1 Let t be the echo timestamp of two adjacent frames in the laser point cloud data, and t k ≤t v <t k+1 w represents the interpolation weight; d k d k+1 d represents the echo distance values of the same angle channel in the k-th and (k+1)-th frames, respectively; s (t v ) represents the angle channel at acquisition time t v The alignment distance value; The time alignment unit is also configured to: when t v With t k The difference is greater than the preset synchronization window Δt max When the fused frame is determined to be mismatched, it is discarded, where Δt max =1 / (2f v )+τ,f v τ is the frame rate of the visual acquisition module, and τ is the single-frame processing delay of the laser ranging module.
3. The embedded multimodal fusion AI golf ranging device according to claim 2, characterized in that, The spatial mapping unit is configured to project the echo point onto the image pixel coordinate system according to equation (3), and calculate the semantic consistency score between the echo point and the target bounding box it falls into according to equation (4): [ u , v ,1] T =(1 / Z )· K ·[ R | t ]·[ X , Y , Z ,1] T (3) ρ = λ 1· IoU ( b p , b o )+ λ 2· c o + λ 3·(1−| d p − d o | / d o ) (4) In the formula, (X,Y,Z) are the three-dimensional coordinates of the echo point in the laser coordinate system, Z is the depth component of the echo point; K is the intrinsic parameter matrix; [R|t] is the rotation and translation matrix from the laser coordinate system to the image coordinate system; (u,v) are the pixel coordinates obtained from the projection; b p b is a rectangular frame centered at the projection point, with a side length equal to the diameter of the laser spot's projection on the image; o Define the target outline; IoU(·) represents the intersection-union ratio; c o The category confidence score for the target bounding box; d p d represents the distance to the echo point. o The distance value is calculated for the same target in the previous fusion frame. If there is no previous fusion frame, then d is taken. o =d p λ1, λ2, and λ3 are preset weights, and λ1 + λ2 + λ3 = 1; The target decision unit is configured such that: when ρ is not less than a preset consistency threshold ρ th If the category label of the target belongs to a preset set of valid categories, the echo point is determined to be a valid target point. Otherwise, the echo point is determined to be an interference point.
4. The embedded multimodal fusion AI golf ranging device according to claim 3, characterized in that, The target decision unit is further configured to calculate the highlight ratio of the region of interest corresponding to the laser spot in the image frame according to equation (5), and determine the lower limit of the reflection intensity of the fused frame according to equation (6): R hl = N ( I px ≥ I th ) / N roi (5) I min '= I min ·(1+ μ · R hl ) (6) In the formula, I px N(I) represents the brightness value of the pixel within the region of interest; px ≥I th The brightness value is not less than the high luminance threshold I. th The number of pixels; N roi R represents the total number of pixels in the region of interest. hl Highlight ratio; I min The lower limit of the reference reflection intensity; μ is the backlight gain coefficient; I min 'This represents the lower limit of the reflection intensity of the fused frame; When R hl Not less than the preset percentage threshold R th When the fused frame is in a backlit state, it is determined that the frame is in a backlit state, and the frame that belongs to the valid category set and has a reflection intensity value less than I is selected. min The echo points are discarded as saturation false points; when R hl Less than R th At that time, the fused frame containing elements belonging to the valid category set and with a reflection intensity value less than I will be considered. min Echo points are removed.
5. The embedded multimodal fusion AI golf ranging device according to claim 4, characterized in that, The target decision unit is further configured to sort the valid target points in ascending order of distance value as follows: d1≤d2≤…≤d n The distance jump rate between adjacent echo points is calculated according to equation (7), and the confidence level of each echo point is calculated according to equation (8): δ i =( d i+1 − d i ) / d i (7) C i = a 1·( I i / I max )+ a 2·(1− δ i / δ th )+ a 3· ρ i (8) In the formula, δ i Let δ be the distance hopping rate between the i-th echo point and its (i+1)-th adjacent echo point, where i = 1, 2, ..., n−1, and δ is taken when i = n. n =0;I i Let I be the reflection intensity value of the i-th echo point; max δ represents the maximum reflection intensity value among the effective target points. th The preset jump rate threshold; ρ i The semantic consistency score is given for the i-th echo point; a1, a2, and a3 are preset weights, and a1+a2+a3=1; When δ i >δ th When the i+1th echo point and subsequent echo points are determined to be false echoes caused by penetration of obstructions or multiple reflections, they are discarded; among the remaining echo points after the discarding, the confidence level C is determined. i The largest echo point is written into the set of effective ranging points as the ranging point.
6. The embedded multimodal fusion AI golf ranging device according to claim 5, characterized in that, The spatiotemporal synchronization and fusion decision module further includes an occlusion compensation unit, which is configured to determine whether the fused frame has local occlusion according to equation (9): d max < γ · d v (9) In the formula, d max d represents the distance value of the echo point with the largest distance value in the laser point cloud data. v The visually estimated distance is obtained by performing monocular depth inference on target contour boxes in an image frame whose category labels belong to the valid category set and whose contour integrity is not less than a preset integrity threshold; γ is the occlusion determination coefficient; the contour integrity is the ratio of the number of pixels in the target contour box that are identified as the category label to the area of the target contour box; When equation (9) is true and the category label of the target to which the echo point with the largest distance value belongs belongs to the preset foreground interference category set, it is determined that the fused frame has local occlusion. The occlusion compensation unit is also configured to calculate the scale correction coefficient according to equation (10), and output the compensation distance according to equation (11) when it is determined that there is partial occlusion: κ =(1 / M )· Σ j=1 M ( d l,j / d v,j ) (10) d out = α · κ · d v +(1− α )· d b , α =(1 / σ v 2 ) / [(1 / σ v 2 )+(1 / σ b 2 )] (11) In the formula, M is the number of the most recent M fused frames determined to be occluded; d l,j Let d be the laser solution distance for the j-th unobstructed fusion frame; v,j The visual distance is estimated for the j-th occluded fused frame; κ is the scale correction coefficient; d b This is the mean distance of the cluster with the most echo points among the remaining clusters after clustering laser point cloud data by distance and removing clusters belonging to the foreground interference category. When no remaining clusters exist, d is taken as the mean distance. b =κ·d v ;σ v σ represents the standard deviation of the depth output of monocular depth inference. b α represents the standard deviation of the distance values of echo points within the remaining clusters; α is the weight of the visual compensation term.
7. The embedded multimodal fusion AI golf ranging device according to claim 6, characterized in that, The ranging calculation output module is configured to calculate the overall confidence level of the current ranging result according to equation (12), and only when the overall confidence level is not less than the preset confidence threshold Q. th Output distance measurement results: Q = k 1· c o + k 2· ρ max + k 3·(1− σ / d out )+ k 4· min ( N eff / N th ,1) (12) In the formula, c o The category confidence of the bounding box containing the valid target; ρ max σ is the maximum semantic consistency score of all echo points in the effective ranging point set; σ is the standard deviation of the distance values of the echo points involved in the solution; d out N represents the distance value obtained from this calculation or compensation. eff N represents the number of echo points in the effective ranging point set. th The preset quantity baseline value; k1, k2, k3, and k4 are preset weights, and k1+k2+k3+k4=1; When Q is less than Q th At this time, the ranging result is not output, but a prompt signal is output to prompt re-aiming.
8. The embedded multimodal fusion AI golf ranging device according to claim 7, characterized in that, It also includes a slope compensation module, a race mode switching module, and a status indicator module; The slope compensation module includes a tilt angle detection unit, which is configured to determine the pitch angle of the housing according to equation (13): θ = arcsin ( a y / g ) (13) In the formula, a y The tilt angle detection unit measures the gravitational acceleration component along the emission optical axis of the laser ranging module; g is the gravitational acceleration; θ is the pitch angle of the shell, which is positive when the shell is tilted up and negative when it is tilted down. The slope compensation module is configured to decompose the target distance D according to equations (14) and (15): D h = D · cosθ (14) H = D · sinθ (15) In the formula, D h H represents the horizontal distance; H represents the height difference, with H taking a positive value when the target is above the shell and a negative value when it is below the shell. The slope compensation module is also configured to output the slope compensation distance according to equation (16): D c = D h + k · H (16) In the formula, D c The slope compensation distance is k; k is the slope conversion factor, which is k=k1 when H is not less than zero, and k=k2 when H is less than zero. k1 and k2 are preset positive coefficients, and k2 is... <k1; The event mode switching module is a physical button located on the side of the housing, connected to the distance calculation output module, and is configured to generate an event mode command upon a single trigger, prohibiting the slope compensation module from outputting the horizontal distance and the height difference, and only outputting the target distance D; The status indicator module is linked to the competition mode switching module and is configured to light up the first color indicator light in competition mode and light up the second color indicator light or turn it off in non-competition mode.
9. The embedded multimodal fusion AI golf ranging device according to claim 8, characterized in that, The difference between the emission field of view of the laser ranging module and the imaging field of view of the visual acquisition module does not exceed 5°, and the baseline distance between the optical axis of the laser ranging module and the optical axis of the visual acquisition module is less than a preset baseline threshold. The embedded AI inference module, the spatiotemporal synchronization and fusion decision module, and the ranging calculation output module are integrated on the same system-on-a-chip. The inference, interpolation alignment, projection, and decision of the lightweight target detection network are all completed locally within the housing without going through an external network. The housing also includes a vibration motor and a display unit connected to the ranging calculation output module. The vibration motor is configured to vibrate for a preset duration when the target lock prompt is output, and the display unit is configured to display the ranging result and the occlusion compensation status indicator.
10. An embedded multimodal fusion AI golf ranging method, characterized in that, The embedded multimodal fusion AI golf ranging device according to any one of claims 1 to 9 includes the following steps: S1. Power-on initialization, loading the intrinsic parameter matrix, the extrinsic parameter matrix, and the model parameters of the lightweight target detection network; S2. Simultaneously acquire laser point cloud data and image frames, and interpolate and align the laser point cloud data to the acquisition time of the image frame based on the echo timestamp and the acquisition timestamp to obtain a fused frame; S3. Perform target detection on the image frame, output target category label, category confidence and target bounding box, and project the echo points in the fused frame to the image pixel coordinate system to determine the target bounding box to which each echo point belongs and its semantic consistency score. S4. Based on the attribution relationship of the echo points, the category label of the target to which they belong, and the reflection intensity value, interference points are eliminated to obtain valid target points; S5. Perform multiple echo filtering on the effective target points, take the echo point with the highest confidence as the ranging point, obtain the effective ranging point set and calculate the target distance; S6. When local occlusion is detected, output the compensation distance in a confidence-weighted manner, and decide whether to output the ranging result based on the overall confidence level. S7. When receiving a race mode command, disable slope compensation output and illuminate the status indicator light.
