Judgment method and system for automatically starting ball rack in virtual scene in golf simulator

By combining area, height, and position signals in a golf simulator to determine the ball's readiness and generating a virtual chuck model, the problem of inconsistency between virtual and real ball positions is solved, improving the reliability and authenticity of training data.

CN121714906APending Publication Date: 2026-03-24SHENZHEN GREENJOY GOLF TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-27
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

In existing golf simulators, the virtual ball height is inconsistent with the physical ball position, the virtual tee display does not match the real rules, and the validity of shot data is distorted, resulting in a decline in training experience and data reliability.

Method used

By acquiring the area detection signal, height detection signal, and ball placement status signal of the hitting area, and combining the ball position type in the virtual scene and the type of cue selected by the user, it is determined whether the ball is in the ready state of the rack, and a virtual rack model is generated when the conditions are met, ensuring that the virtual display is consistent with the actual placement.

Benefits of technology

It improves the consistency between virtual and physical ball positions, reduces misjudgments, enhances the reliability and authenticity of training data, and reduces reliance on manual calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121714906A_ABST
    Figure CN121714906A_ABST
Patent Text Reader

Abstract

The invention discloses a judgment method and system for automatically starting a ball rack in a virtual scene in a golf simulator, and the method comprises the steps: obtaining an area detection signal and a height detection signal of a ball hitting area, and an in-place state signal of a ball feeding device; based on the area detection signal, the height detection signal and the in-place state signal, judging that the target ball is in a ball rack ready state; obtaining a ball position type of the virtual scene and a ball rod type selected by a user, and determining a ball rack starting condition and a target ball rack height parameter according to the ball position type and the ball rod type; and when the target ball body is in a ball rack ready state and meets the ball rack starting condition, generating a virtual ball rack model with the target ball rack height parameter at the corresponding position of the target ball body. According to the technical scheme of the invention, the generation of the virtual ball rack meets the consistency of physical placement correctness and virtual rules at the same time, so that the virtual display abnormity caused by misjudgment of the ball position is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of golf simulators, and in particular to a method and system for automatically enabling a tee in a virtual scene in a golf simulator, a computer device, and a storage medium. BACKGROUND

[0002] Golf simulators generally need to model the initial placement state of the ball in the virtual course in order to correctly present the ball position height and the rule restrictions before hitting the ball, and to calculate and train statistics on parameters such as trajectory and rotation after hitting the ball. In the prior art, the ball position recognition in the hitting area relies on a single type of detection means (e.g., only based on the presence detection of a flat area or only based on the in-place signal of a ball lifting mechanism), or only on the software side according to the ball table scene to preset fixed ball position height and display rules.

[0003] Due to the lack of reliable judgment on the actual ground height and in-place state of the ball, and the failure of the physical detection results and the rule constraints such as the ball position type and the club selection in the virtual scene to form a consistent linkage, the system is prone to misjudging the ground ball as a tee ball or misjudging the tee ball as a ground ball in the case of ball placement deviation, accidental touch, incomplete in-place of the ball lifting mechanism, ground reflection and light change, etc., resulting in inconsistencies between the virtual ball position height and the physical ball position, mismatches between the virtual tee display and the real rules, and distorted judgments of the validity of the hitting data, etc., which further affects the authenticity of the hitting experience and the reliability of the training data, and increases the dependence on manual calibration and maintenance. SUMMARY

[0004] The purpose of the embodiments of the present application is to provide a method and system for automatically enabling a tee in a virtual scene in a golf simulator, a computer device, and a storage medium, to solve the technical problems of inconsistencies between the virtual ball position height and the physical ball position, mismatches between the virtual tee display and the real rules, and distorted judgments of the validity of the hitting data.

[0005] To solve the above technical problems, the embodiments of the present application provide a method for automatically enabling a tee in a virtual scene in a golf simulator, which adopts the following technical solutions: Obtain a region detection signal, a height detection signal of the hitting area, and an in-place state signal of the ball lifting device; Determine that a target ball is in a tee-ready state based on the region detection signal, the height detection signal, and the in-place state signal; Obtain the ball position type of the virtual scene and the user-selected club type, and determine a tee enabling condition and a target tee height parameter accordingly; Generate a virtual tee model with the target tee height parameter at the position corresponding to the target ball when the target ball is in the tee-ready state and the tee enabling condition is met.

[0006] To solve the above technical problems, the embodiment of the present application also provides a determination system for automatically enabling a tee in a virtual scene of a golf simulator, which adopts the technical scheme as follows: The first obtaining module is configured to obtain a region detection signal of the hitting area, a height detection signal, and a position state signal of the ball placing device. The determination module is configured to determine that the target ball is in a tee ready state based on the region detection signal, the height detection signal, and the position state signal. The second obtaining module is configured to obtain a ball position type of the virtual scene and a user-selected club type, and determine a tee enabling condition and a target tee height parameter based on the ball position type and the user-selected club type. The generation module is configured to generate a virtual tee model with the target tee height parameter at a position corresponding to the target ball when the target ball is in the tee ready state and the tee enabling condition is met.

[0007] To solve the above technical problems, the embodiment of the present application also provides a computer device, which adopts the technical scheme as follows: The computer device comprises a memory and a processor, the memory stores computer readable instructions, and the processor executes the computer readable instructions to implement the steps of the determination method for automatically enabling a tee in a virtual scene of a golf simulator.

[0008] To solve the above technical problems, the embodiment of the present application also provides a computer readable storage medium, which adopts the technical scheme as follows: The computer readable storage medium stores computer readable instructions, and the computer readable instructions are executed by a processor to implement the steps of the determination method for automatically enabling a tee in a virtual scene of a golf simulator.

[0009] Compared with the prior art, the embodiment of the present application has the following beneficial effects: The determination method for automatically enabling a tee in a virtual scene of a golf simulator disclosed in the present application uses the region detection signal of the hitting area, the height detection signal, and the position state signal of the ball placing device to determine the tee ready state, and further introduces the ball position type of the virtual scene and the club type to determine the tee enabling condition and the target tee height parameter, so that the generation of the virtual tee satisfies the physical placement correctness and the virtual rule consistency, thereby reducing the virtual display abnormalities caused by the ball position misjudgment and improving the consistency of the virtual and real scenes and the reliability of the training / statistical data. BRIEF DESCRIPTION OF DRAWINGS

[0010] In order to more clearly illustrate the scheme in the present application, the drawings needed in the description of the embodiments of the present application will be briefly introduced as follows. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor on the basis of these drawings.

[0011] Figure 1 is a flow chart of an embodiment of a determination method for automatically enabling a tee in a virtual scene in a golf simulator according to the present application; Figure 2 is a structural schematic diagram of an embodiment of a determination system for automatically enabling a tee in a virtual scene in a golf simulator according to the present application; Figure 3 is a structural schematic diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0012] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0013] Reference Figure 1 , a flow chart of an embodiment of a determination method for automatically enabling a tee in a virtual scene in a golf simulator according to the present application is shown. The tee refers to a load-bearing structure for lifting a golf ball and can provide a configurable support height, which can be a physical tee device or a virtual tee model in a virtual scene for reflecting the lifting height of the ball; the virtual scene refers to a virtual golf course picture generated and displayed by a rendering engine, which can display whether the tee is allowed to be used and the display height of the tee based on the current ball position and club rules.

[0014] The determination method for automatically enabling a tee in a virtual scene in a golf simulator includes the following steps: Step S101, acquiring a region detection signal of a hitting area, a height detection signal and a to-position state signal of a ball lifting device.

[0015] In the present embodiment, the electronic device on which the determination method for automatically enabling a tee in a virtual scene in a golf simulator runs can send or receive data through wired connection or wireless connection. It should be noted that the above-mentioned wireless connection can include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other now known or future developed wireless connection methods.

[0016] In this embodiment, the area detection signal is used to characterize whether the target ball is placed within a preset placement area of ​​the hitting zone. For example, an infrared sensor array can be used to scan the hitting zone. When the ball enters the preset range and continuously blocks the infrared light path, an area detection signal is generated. The height detection signal is used to characterize the distance from the bottom of the ball to the ground. For example, a laser rangefinder can be used to continuously measure the distance from the bottom of the ball to a ground reference surface. The ground reference surface can be defined by the surface of the hitting pad or a reference plane consistent with the ball stand base. The positioning status signal is used to characterize whether the ball feeding device has completed the ball feeding and stabilized the ball in place. For example, after the ball feeding device completes the ball feeding, a pressure / gravity sensor can detect the change in the pressure on the ball stand and combine it with the blocking status to form a status indication that the ball is in place. It should be noted that the above acquisition method is not limited to a specific hardware form. The core is to obtain three types of signals reflecting the ball position, the height above the ground, and the ball feeding and positioning status from the hitting zone, providing an objective basis for subsequent judgment.

[0017] Step S102: Based on the area detection signal, height detection signal, and positioning status signal, determine that the target sphere is in the ready state of the sphere rack.

[0018] In this embodiment, the ready state of the ball rack refers to the set of physical conditions that the target ball meets for the ball rack to be activated. This includes at least the ball being located in a preset placement area, the ball's height above the ground being within a reasonable range of the ball rack's support height and having stability, and the ball loading device confirming that the ball has been successfully delivered and is in place. For example, the area detection signal can detect a 30cm×30cm placement area using an infrared array, and use a blocking duration of more than 300ms as a criterion for stable entry into the area to avoid misjudgments caused by the ball quickly passing by or accidentally touching it. The height detection signal can use a stable ball bottom height above the ground of 25-80mm as the ball rack height range, and require the height fluctuation to be less than 3mm to exclude measurement fluctuations caused by ball rolling, shaking, or ground reflection. The positioning signal can be obtained after the ball loading device delivers the ball, by detecting a change in the ball rack's bearing pressure ΔF exceeding 5g and the corresponding infrared blocking state being established, thereby confirming that the ball has indeed been pressed onto the ball rack's bearing position and is in place. By combining the three aspects of area, height above ground, and positioning status for determination, the "ground ball" and the "ball rack ball" can be distinguished, and the probability of misjudgment by a single sensor in the case of changes in lighting, accidental touch, or incomplete ball delivery can be reduced, thus providing a repeatable and verifiable basis for determining the ball rack's ready state.

[0019] Step S103: Obtain the ball position type and the cue type selected by the user in the virtual scene, and determine the cue rack activation conditions and target cue rack height parameters accordingly.

[0020] In this embodiment, the ball position type is used to characterize the ball's location environment under the current virtual golf course rules. For example, it can be categorized as a tee box, fairway, rough, or green, etc. Different ball positions have different rules for using the tee box. The club type selected by the user characterizes the type of club used for the current shot, such as a driver, fairway wood, iron, or wedge, etc. Different clubs have different requirements for tee box height under real rules and training modes. Determining the tee box activation conditions based on the ball position type and club type means introducing rule constraints into the decision chain on the software side. For example, when the virtual scene is a tee box... The virtual golf cart rack can be enabled when the user selects a driver or fairway wood, but not when the virtual scene is a fairway or green, or when the user selects a club unsuitable for using a rack. When the enabling conditions are met, a target rack height parameter must be provided. This parameter indicates the support height the virtual rack model should present. For example, a pre-defined mapping relationship between club type and rack height can be established: a higher rack height corresponds to the driver, while other clubs correspond to a lower height or no rack enabled. The height parameter and whether the rack is enabled can be adjusted based on the ball position type. By combining virtual scene rule parameters with physical readiness criteria, the activation of the virtual rack no longer relies solely on a fixed scene template or a single hardware signal, but can simultaneously satisfy the dual constraints of correct physical placement and rule-permitted use.

[0021] Step S104: When the target sphere is in the ready state of the ball rack and the ball rack activation condition is met, a virtual ball rack model with the height parameter of the target ball rack is generated at the corresponding position of the target sphere.

[0022] In this embodiment, the target ball's corresponding position refers to the position in the virtual scene that matches the actual position of the ball within the physical hitting area, which can be obtained by mapping the positioning results of the sensor array in the hitting area to the virtual coordinate system; generating a virtual ball rack model refers to creating and rendering a three-dimensional model or equivalent visual representation of the ball rack in the virtual scene, so that the user sees a supporting state consistent with the real ball position on the screen; having the target ball rack height parameter means that the display height, support height, or relative height of the virtual ball rack model to the ground reference is determined by the target ball rack height parameter, so that the initial height of the virtual ball is consistent with the real ball rack supporting height. For example, in a tee box scenario, a user selects a driver to prepare for a tee shot. After the ball is delivered by the ball-loading device, the infrared array determines that the ball is stably located within the placement area, and the laser rangefinder determines that the height of the ball's bottom from the ground is stably within the rack height range and the fluctuation meets the threshold. At the same time, the positioning status signal confirms that the ball has been pressed onto the rack support and is in place. The virtual scene reads that the ball position type is a tee box and the club is a driver, determines that the rack can be enabled, and selects the corresponding target rack height parameter. Then, a virtual rack model of that height is rendered at the corresponding position of the ball, so that the ball position height in the virtual screen is consistent with the physical hitting area. Conversely, when the virtual scene is a fairway or the user selects an iron, even if the ball is physically placed at a certain height, the system can choose not to generate a virtual rack model or select a different height parameter based on the rack enabling conditions, thereby avoiding inconsistencies between the virtual ball position and the rules.

[0023] This application combines the area detection signal, height detection signal, and ball placement device positioning status signal of the hitting area to determine the ready state of the rack. Furthermore, it introduces the ball position type and club type of the virtual scene to determine the rack activation conditions and target rack height parameters. This ensures that the generation of the virtual rack satisfies both physical placement correctness and virtual rule consistency, thereby reducing virtual display anomalies caused by ball position misjudgment and improving the consistency between virtual and real and the reliability of training / statistical data.

[0024] In some optional implementations of this embodiment, the step of determining that the target sphere is in the ready state based on the area detection signal, height detection signal, and positioning status signal includes: The preset placement area of ​​the hitting zone is scanned by an infrared sensor array; When the target sphere enters the preset placement area and the occlusion state is continuously maintained at a duration not less than a threshold, a valid area result is output, and the valid area result is used to form the ready state of the sphere rack.

[0025] In this embodiment, the core functionality lies in continuously scanning the preset placement area of ​​the hitting zone using an infrared sensor array to obtain information reflecting whether the target ball has entered the area and thus achieving an obstruction state. The preset placement area can be understood as the target ball placement range defined near the hitting mat or rack. The infrared sensor array forms an optical path through multiple sets of transmitters and receivers. When the ball enters the range, it partially obstructs the optical path and generates an obstruction signal. A duration threshold is set, meaning that a valid result for the area is only output when the obstruction state is continuously maintained at this threshold. This avoids momentary false triggers caused by the ball passing by, brief hand obstruction, or slight contact. For example, if the duration threshold is set to approximately 300ms, the system only confirms that the ball has been placed in the correct area after the ball has remained stably within the area and continuously obstructed for more than this time, and considers this valid result as one of the necessary conditions for the rack to be ready.

[0026] This application uses an infrared sensor array to scan a preset placement area and introduces a duration threshold for the occlusion state. This can filter out short-term interferences such as momentary occlusion and accidental touch, and reliably confirm that the ball has entered and stayed in the effective placement area. This improves the anti-interference ability and repeatability of area determination, and provides a reliable basis for the ball rack to be ready.

[0027] In some optional implementations of this embodiment, after the step of outputting a valid result for the region when the target sphere enters the preset placement area and the occlusion state is continuously maintained at a duration not less than a threshold value, the method further includes: The height of the bottom of the target sphere above the ground is continuously sampled by a laser rangefinder, and the height fluctuation is obtained based on the difference between adjacent sample values. When the height of the ball bottom above the ground falls within the preset ball rack height range and the height fluctuation does not exceed the fluctuation threshold, a valid height result is output. The valid height result is used to form the ready state of the ball rack.

[0028] In this embodiment, the system distinguishes between "located within the area" and "at the ball rack support height." The ball's bottom height from the ground can be understood as the distance from the lowest point of the ball to the ground reference plane, which can be the surface of the hitting pad or a horizontal reference plane calibrated by the equipment. To improve anti-interference capability, the height fluctuation is obtained by differentiating adjacent sampled values. This means using the variation amplitude of continuous measurements to characterize whether the ball is stable and whether the ranging signal is affected by reflections, jitter, etc. When the ball's bottom height falls within the preset ball rack height range and the height fluctuation does not exceed the fluctuation threshold, a valid height result is output and used to establish the ball rack ready state. For example, the ball rack height range can be set to 25-80mm, and the fluctuation threshold can be set to 3mm to distinguish between placing the ball directly on the ground (height close to 0) and placing it on the ball rack (height significantly greater than 0), while also eliminating false heights caused by ball rolling or ranging noise.

[0029] This application introduces continuous sampling of laser ranging and uses the difference between adjacent sampling values ​​to obtain the height fluctuation. While determining that the height of the ball bottom above the ground falls within the height range of the ball stand, it also constrains stability. This can effectively distinguish between balls placed on the ground and balls placed on the ball stand, and suppress the ranging fluctuation caused by factors such as ground reflection and ball rolling. This significantly reduces the risk of misjudging balls on the ball stand and balls on the ground that is difficult to distinguish based on planar area detection alone.

[0030] In some optional implementations of this embodiment, the step of determining that the target sphere is in the ready state based on the area detection signal, height detection signal, and positioning status signal further includes: After the ball feeding device completes the ball feeding, when the change in the bearing pressure of the ball frame is not less than the pressure change threshold and the infrared sensor is blocked, the output ball positioning result is valid. The ball rack is generated in a ready state only when the area validity result, height validity result, and ball placement validity result are all valid within a consistent time window.

[0031] In this embodiment, a valid ball positioning result is output when the change in bearing pressure on the ball rack is not less than the pressure change threshold and the infrared sensor is blocked. The change in bearing pressure can be obtained by detecting changes in force on the ball rack using a gravity / pressure sensor, confirming that the ball is indeed pressing against the bearing position of the ball rack. Simultaneously, the requirement that the infrared sensor be blocked serves as a second verification that the ball is still within the placement area, thus forming a double insurance on the hardware side. Furthermore, this provision only generates a ball rack ready state when the valid area result, the valid height result, and the valid ball positioning result are all valid within a consistency time window. The consistency time window can be understood as a window for time alignment, for example, within a range of several hundred milliseconds to several seconds, ensuring that the three types of results correspond to the same ball placement / delivery event, rather than miscombining results from different times. This reduces misjudgments in situations such as detecting the area and height first, then the ball being moved subsequently, or the ball delivery not being completed but the height accidentally falling into the range.

[0032] This application requires three types of valid results to be established simultaneously within the same event time range through a consistency time window, thereby achieving dual confirmation of the completion of ball delivery by the ball loading device and the actual bearing and positioning of the ball. This reduces false triggering caused by incomplete ball delivery, incomplete ball compaction, or time-spanning signal combinations, and improves the certainty and safety of the ball rack readiness status determination.

[0033] In some optional implementations of this embodiment, in the step of generating a virtual polo rack model with the target polo rack height parameter at the corresponding position of the target sphere when the target sphere is in a polo rack ready state and the polo rack activation condition is met, the steps for determining the polo rack activation condition and the target polo rack height parameter include: The ball position type is mapped to the ball position permission result, and the club type is mapped to the club permission result, respectively. When both the ball position permission result and the club permission result are satisfied, it is determined that the rack activation condition is met. When the conditions for activating the rack are met, the target rack height parameter is determined from a preset height mapping table based on the type of cue. If the deviation between the measured height of the target ball's bottom from the ground and the target rack height parameter exceeds a tolerance threshold, the target rack height parameter is corrected so that the deviation does not exceed the tolerance threshold.

[0034] In this embodiment, the ball position type is first mapped to a ball position permission result, and the club type is mapped to a club permission result. When both conditions are met simultaneously, the tee activation condition is determined. This is equivalent to solidifying real golf rules or training mode rules into calculable permission judgments. For example, permission is true when a driver / fairway wood is selected on a tee ball position, and false when a club that should not be used on a tee ball position is selected on a fairway or green position. Subsequently, when the activation condition is met, the target tee height parameter is determined from a preset height mapping table based on the club type. The preset height mapping table can be a correspondence between club type and tee height, for example, a driver corresponds to a higher height, and a fairway wood corresponds to a medium height. This embodiment also introduces a tolerance threshold and height correction. When the deviation between the measured height of the target ball's sole from the ground and the target tee height parameter exceeds the tolerance threshold, the target tee height parameter is corrected so that the deviation does not exceed the tolerance threshold. This ensures that the virtual tee model displays a height that closely matches the actual ball placement height, avoiding inconsistencies between the virtual display and the physical height due to equipment installation errors, differences in ground materials, or mechanical errors of the tee. For example, if the preset height is 40mm, but the actual measured height of the ball bottom is 42mm and exceeds the allowable tolerance, the target ball frame height parameter will be corrected to a range close to 42mm to achieve consistency between the virtual and real heights.

[0035] This application maps ball position type and club type to permitted results respectively, and activates the rack when both are satisfied. At the same time, it uses a preset height mapping table to determine the target rack height parameters and performs tolerance constraints and height corrections based on the measured ball bottom height. This makes the rack activation logic match the real golf rules and training mode, and makes the virtual rack display height automatically match the actual ball placement height, reducing the inconsistency between virtual and real heights caused by human settings and equipment errors.

[0036] In some optional implementations of this embodiment, after the steps of obtaining the ball position type and the user-selected cue type in the virtual scene, and determining the rack activation conditions and target rack height parameters accordingly, the method further includes: The virtual scene receives a status data packet containing the valid results of the area, the valid results of the height, and the valid results of the ball's position via a communication interface, and the status data packet is appended with a time identifier; The virtual scene selects the latest status data packet with the latest time identifier, and uses the valid area result, valid height result, and valid ball position result in the status data packet to perform the judgment of the ball rack activation condition; When the ball rack is ready and the ball rack activation condition is met, a virtual ball rack model is generated and displayed at the position corresponding to the physical ball position, and the display height of the virtual ball rack model is the target ball rack height parameter.

[0037] In this embodiment, the virtual scene receives a status data packet containing valid area results, valid height results, and valid ball positioning results via a communication interface, and adds a time stamp to the status data packet. The time stamp can be a timestamp or an incrementing sequence number, used to represent the order of the data packets. The virtual scene selects the status data packet with the latest time stamp and uses the three types of valid results to determine the rack activation conditions, thereby ensuring that the judgment results involved are from the same time or the same event. Subsequently, when the rack is ready and the rack activation conditions are met, a virtual rack model is generated and displayed at the position corresponding to the physical ball position, and the display height of the virtual rack model is the target rack height parameter. The position corresponding to the physical ball position can be obtained by mapping the positioning results of the hitting area to the virtual coordinate system, for example, by determining the plane coordinates of the virtual ball by the trigger area of ​​the infrared array or a preset mapping relationship, so that the virtual rack display position is consistent with the real ball position, and the height consistency is ensured by the target rack height parameter.

[0038] This application uses a status data packet carrying a time identifier and selects the data packet with the latest time identifier to participate in the sphere rack activation judgment. This ensures that the virtual scene side uses the latest judgment result aggregated at the same time, avoiding the misuse of old data caused by network latency, cache retention, or asynchronous updates. This improves the real-time consistency and stability between hardware judgment and virtual rendering, and reduces display lag / misalignment experience issues.

[0039] In some optional implementations of this embodiment, before the step of generating a virtual polo rack model with the target polo rack height parameter at the corresponding position of the target sphere when the target sphere is in a polo rack ready state and the polo rack activation condition is met, the method further includes: Environmental data is collected and environmental status is formed according to a preset operating cycle. The environmental data includes at least temperature, light intensity and ground material. The duration threshold, ball stand height range, fluctuation threshold, and pressure change threshold are updated based on the environmental conditions, and the updated thresholds are used to determine the ball stand ready state.

[0040] In this embodiment, environmental data is collected according to a preset operating cycle to form an environmental state. The environmental data includes at least temperature, illumination, and ground material. Temperature and illumination affect the output stability of the infrared sensor and laser ranging, while ground material (e.g., carpet, wood, plastic) affects reflectivity and ranging noise. Based on the updated environmental state duration threshold, the ball stand height range, fluctuation threshold, and pressure change threshold, the updated thresholds are used to determine the ball stand's ready state, enabling the system to maintain stable triggering and judgment boundaries under different light intensities, different reflectivity conditions, or different load characteristics. In a reference example, the system can be set to trigger self-calibration every 24 hours of operation, statistically analyze the recent false trigger rate or ranging fluctuation distribution, and fine-tune the fluctuation threshold and duration threshold accordingly, thereby reducing the frequency of manual recalibration and maintaining a high judgment accuracy.

[0041] This application collects environmental data such as temperature, light intensity, and ground material according to the operating cycle and dynamically updates the regional stability threshold, height range, fluctuation threshold, and pressure change threshold. This enables the system to adapt to sensor drift and noise changes under different lighting and reflection conditions, as well as different ground bearing and friction characteristics. As a result, it maintains a high judgment accuracy during long-term operation and multi-site deployment, and reduces manual calibration and maintenance costs.

[0042] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).

[0043] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0044] Further reference Figure 2 As a response to the above Figure 1The implementation of the method shown in this application provides an embodiment of a system for automatically activating golf hoops in a virtual scene of a golf simulator. This system embodiment is similar to... Figure 1 Corresponding to the method embodiments shown, the system can be specifically applied to various electronic devices.

[0045] like Figure 2 As shown, the automatic activation system 200 for the virtual scene in the golf simulator described in this embodiment includes: a first acquisition module 201, a determination module 202, a second acquisition module 203, and a generation module 204. Wherein: The first acquisition module 201 is used to acquire the area detection signal of the hitting area, the height detection signal, and the positioning status signal of the ball loading device; The determination module 202 is used to determine that the target sphere is in the ready state of the sphere rack based on the area detection signal, the height detection signal and the position status signal. The second acquisition module 203 is used to acquire the ball position type and the cue type selected by the user in the virtual scene, and determine the cue rack activation conditions and target cue rack height parameters accordingly. The generation module 204 is used to generate a virtual ball rack model with the height parameter of the target ball rack at the corresponding position of the target ball when the target ball is in the ball rack ready state and the ball rack activation condition is met.

[0046] The automatic activation system for golf racks in a virtual scene in a golf simulator provided in this embodiment of the invention can realize all the processes of the automatic activation system for golf racks in a virtual scene in a golf simulator in the above embodiment. The functions and technical effects of each module in the device are the same as those of the automatic activation system for golf racks in a virtual scene in a golf simulator in the above embodiment, and will not be repeated here.

[0047] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed]. Figure 3 , Figure 3 This is a basic structural block diagram of the computer device in this embodiment.

[0048] The computer device 3 includes a memory 31, a processor 32, and a network interface 33 that are interconnected via a system bus. It should be noted that only the computer device 3 with components 31-33 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0049] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.

[0050] The memory 31 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 31 may be an internal storage unit of the computer device 3, such as the hard disk or memory of the computer device 3. In other embodiments, the memory 31 may also be an external storage device of the computer device 3, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 3. Of course, the memory 31 may also include both the internal storage unit and its external storage device of the computer device 3. In this embodiment, the memory 31 is typically used to store the operating system and various application software installed on the computer device 3, such as computer-readable instructions for determining the automatic activation of the golf rack in a virtual scene in a golf simulator. In addition, the memory 31 can also be used to temporarily store various types of data that have been output or will be output.

[0051] In some embodiments, the processor 32 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 32 is typically used to control the overall operation of the computer device 3. In this embodiment, the processor 32 is used to execute computer-readable instructions stored in the memory 31 or to process data, such as executing computer-readable instructions for a method to automatically activate the golf rack in a virtual scene of the golf simulator.

[0052] The network interface 33 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 3 and other electronic devices.

[0053] This application also provides another embodiment, namely, providing a computer-readable storage medium storing computer-readable instructions that can be executed by at least one processor to cause the at least one processor to perform the steps of the method for automatically activating the golf rack in a virtual scene in a golf simulator as described above.

[0054] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0055] The above are merely preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for determining the automatic activation of a golf rack in a virtual scene of a golf simulator, wherein the golf rack is used to support a golf ball and provide a configurable support height, characterized in that, Includes the following steps: Acquire the area detection signal of the hitting zone, the height detection signal, and the positioning status signal of the ball loading device; Based on the area detection signal, height detection signal, and positioning status signal, it is determined that the target sphere is in the ready state of the sphere rack. Obtain the ball position type and the cue type selected by the user in the virtual scene, and determine the cue activation conditions and target cue height parameters accordingly; When the target sphere is in the ready state of the ball rack and the conditions for the ball rack to be activated are met, a virtual ball rack model with the height parameter of the target ball rack is generated at the corresponding position of the target sphere.

2. The method according to claim 1, characterized in that, The step of determining that the target sphere is in the ready state of the sphere rack based on the area detection signal, height detection signal, and positioning status signal includes: The preset placement area of ​​the hitting zone is scanned by an infrared sensor array; When the target sphere enters the preset placement area and the occlusion state is continuously maintained at a duration not less than a threshold, a valid area result is output, and the valid area result is used to form the ready state of the sphere rack.

3. The method according to claim 2, characterized in that, After the step of outputting a valid result for the region when the target sphere enters the preset placement area and the occlusion state is continuously maintained at a duration not less than a threshold value, the method further includes: The height of the bottom of the target sphere above the ground is continuously sampled by a laser rangefinder, and the height fluctuation is obtained based on the difference between adjacent sample values. When the height of the ball bottom above the ground falls within the preset ball rack height range and the height fluctuation does not exceed the fluctuation threshold, a valid height result is output. The valid height result is used to form the ready state of the ball rack.

4. The method according to claim 3, characterized in that, The step of determining that the target sphere is in the ready state of the sphere rack based on the area detection signal, height detection signal, and positioning status signal further includes: After the ball feeding device completes the ball feeding, when the change in the bearing pressure of the ball frame is not less than the pressure change threshold and the infrared sensor is blocked, the output ball positioning result is valid. The ball rack is generated in a ready state only when the area validity result, height validity result, and ball placement validity result are all valid within a consistent time window.

5. The method according to claim 4, characterized in that, In the step of generating a virtual polo rack model with the target polo rack height parameter at the corresponding position of the target sphere when the target sphere is in a polo rack ready state and the polo rack activation condition is met, the steps for determining the polo rack activation condition and the target polo rack height parameter include: The ball position type is mapped to the ball position permission result, and the club type is mapped to the club permission result, respectively. When both the ball position permission result and the club permission result are satisfied, it is determined that the rack activation condition is met. When the conditions for activating the rack are met, the target rack height parameter is determined from a preset height mapping table based on the type of cue. If the deviation between the measured height of the target ball's bottom from the ground and the target rack height parameter exceeds a tolerance threshold, the target rack height parameter is corrected so that the deviation does not exceed the tolerance threshold.

6. The method according to claim 5, characterized in that, After the steps of obtaining the ball position type and the user-selected cue type in the virtual scene, and determining the rack activation conditions and target rack height parameters accordingly, the method further includes: The virtual scene receives a status data packet containing the valid results of the area, the valid results of the height, and the valid results of the ball's position via a communication interface, and the status data packet is appended with a time identifier; The virtual scene selects the latest status data packet with the latest time identifier, and uses the valid area result, valid height result, and valid ball position result in the status data packet to perform the judgment of the ball rack activation condition; When the ball rack is ready and the ball rack activation condition is met, a virtual ball rack model is generated and displayed at the position corresponding to the physical ball position, and the display height of the virtual ball rack model is the target ball rack height parameter.

7. The method according to claim 4, characterized in that, Before the step of generating a virtual polo rack model with the target polo rack height parameter at the corresponding position of the target sphere when the target sphere is in the polo rack ready state and the polo rack activation condition is met, the method further includes: Environmental data is collected and environmental status is formed according to a preset operating cycle. The environmental data includes at least temperature, light intensity and ground material. The duration threshold, ball stand height range, fluctuation threshold, and pressure change threshold are updated based on the environmental conditions, and the updated thresholds are used to determine the ball stand ready state.

8. A system for automatically activating golf hoops in a virtual scene of a golf simulator, characterized in that, include: The first acquisition module is used to acquire the area detection signal of the hitting area, the height detection signal, and the positioning status signal of the ball loading device; The determination module is used to determine whether the target sphere is in the ready state of the sphere rack based on the area detection signal, the height detection signal and the position status signal. The second acquisition module is used to acquire the ball position type and the cue type selected by the user in the virtual scene, and determine the cue activation conditions and target cue height parameters accordingly. The generation module is used to generate a virtual ball rack model with the height parameter of the target ball rack at the corresponding position of the target ball when the target ball is in the ball rack ready state and the ball rack activation conditions are met.

9. A computer device, characterized in that, The device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the method for automatically activating the golf rack in a virtual scene of a golf simulator as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the method for automatically activating the golf rack in a virtual scene of a golf simulator as described in any one of claims 1 to 7.