CN118168531A - Method for determining distance in golf course, electronic device and storage medium - Google Patents
Method for determining distance in golf course, electronic device and storage medium Download PDFInfo
- Publication number
- CN118168531A CN118168531A CN202211573786.7A CN202211573786A CN118168531A CN 118168531 A CN118168531 A CN 118168531A CN 202211573786 A CN202211573786 A CN 202211573786A CN 118168531 A CN118168531 A CN 118168531A
- Authority
- CN
- China
- Prior art keywords
- user
- inflection point
- green
- point
- golf course
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000008569 process Effects 0.000 claims abstract description 10
- 230000033001 locomotion Effects 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012545 processing Methods 0.000 description 13
- 238000004364 calculation method Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 244000025254 Cannabis sativa Species 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 235000019800 disodium phosphate Nutrition 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 101100489581 Caenorhabditis elegans par-5 gene Proteins 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 235000021384 green leafy vegetables Nutrition 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
- G01B21/02—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/005—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 with correlation of navigation data from several sources, e.g. map or contour matching
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/38—Electronic maps specially adapted for navigation; Updating thereof
- G01C21/3804—Creation or updating of map data
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/38—Electronic maps specially adapted for navigation; Updating thereof
- G01C21/3804—Creation or updating of map data
- G01C21/3807—Creation or updating of map data characterised by the type of data
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/38—Electronic maps specially adapted for navigation; Updating thereof
- G01C21/3804—Creation or updating of map data
- G01C21/3833—Creation or updating of map data characterised by the source of data
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/38—Electronic maps specially adapted for navigation; Updating thereof
- G01C21/3863—Structures of map data
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/38—Electronic maps specially adapted for navigation; Updating thereof
- G01C21/3885—Transmission of map data to client devices; Reception of map data by client devices
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B69/00—Training appliances or apparatus for special sports
- A63B69/36—Training appliances or apparatus for special sports for golf
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B71/00—Games or sports accessories not covered in groups A63B1/00 - A63B69/00
- A63B71/06—Indicating or scoring devices for games or players, or for other sports activities
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Instructional Devices (AREA)
Abstract
The application provides a method for determining a distance in a golf course, electronic equipment and a storage medium, wherein in the method, terminal equipment can acquire the position of a user in the process of performing golf exercise; according to the position of the user, obtaining information of inflection points of the fairway in the golf course; according to the information of the inflection point, the distance between the user and the green in the golf course is obtained; and displaying inflection points and the distance between the user and the green in the golf course map. According to the method, the inflection point in the lane is considered, the straight line distance between the user and the green is calculated instead of the inflection point, and the accuracy of calculating the distance between the user and the green can be improved.
Description
Technical Field
The embodiment of the application relates to the technical field of intelligent terminals, in particular to a method for determining a distance in a golf course, electronic equipment and a storage medium.
Background
With the popularization of golf, more and more users participate in the golf, and corresponding intelligent terminal devices are also developed. The intelligent terminal device such as a golf range finder, a golf watch and the like can assist a user in better performing golf.
For example, the current golf watch can display the distance between the user and the green, and the user can adjust his own striking force according to the distance between the user and the green, so as to obtain a higher score. However, in the golf course, there is an inflection point between the green and the user, and the current golf watch displays a straight line distance between the green and the user, and the calculation of the distance is inaccurate, which affects the accuracy of the hitting of the user.
Disclosure of Invention
The embodiment of the application provides a method for determining a distance in a golf course, electronic equipment and a storage medium, which can improve the accuracy of distance calculation.
In a first aspect, an embodiment of the present application provides a method for determining a distance in a golf course, where an execution subject for executing the method for determining a distance in a golf course may be a terminal device or a chip in the terminal device, which is not limited in this aspect, and a terminal device is described below as an example. In the method, in the process of performing golf exercise by a user, terminal equipment can acquire the position of the user, and acquire information of inflection points of a fairway in a golf course according to the position of the user; the terminal equipment can acquire the distance between the user and the green in the golf course according to the information of the inflection point, and then the terminal equipment can display the inflection point and the distance between the user and the green in the golf course map.
In the embodiment of the application, the inflection point in the ball channel is considered instead of calculating the straight line distance between the user and the green, so that the accuracy of calculating the distance between the user and the green can be improved. In addition, the terminal equipment can display inflection points and the distance between the user and the green in the golf course map, so that the user can be assisted in batting more accurately, and the user experience is improved.
In one example, the inflection point may be understood as a drop point of a golf ball recommended to the user, so that the user can hit a ball accurately according to the inflection point displayed in the golf course map.
In one possible implementation, the information of the inflection point includes: a location or range of inflection points of at least one inflection point, the range of inflection points including the location of the at least one inflection point, the inflection point being displayed in a golf course map, comprising: the at least one inflection point or the inflection point range is displayed in the golf course map.
In the implementation mode, the inflection point information comprises the position or the inflection point range of at least one inflection point, so that one or more inflection point positions can be provided for the user, the user can conveniently determine the condition of the lane inflection point, the user can conveniently and accurately hit a ball, and the user experience is improved.
In one possible implementation manner, the obtaining the distance between the user and the green in the golf course according to the information of the inflection point includes: when the information of the inflection point includes a position of the at least one inflection point, a sum of a distance of the user from a target inflection point and a distance of the target inflection point from the green is included in the at least one inflection point as a distance of the user from the green.
When the information of the inflection point includes an inflection point range, determining a center point of the inflection point range; and adding the distance between the user and the central point and the distance between the central point and the green as the distance between the user and the green.
In the implementation manner, the terminal equipment can accurately acquire the distance between the user and the green according to the information of the inflection point, so that the calculation accuracy can be improved.
The method for acquiring the inflection point information by the terminal device according to the position of the user is described in detail below:
The terminal equipment can determine the target tee according to the position of the user, and further uses the information of the inflection point corresponding to the target tee as the information of the inflection point of the fairway in the golf course.
In one example, the terminal device may obtain information of an inflection point corresponding to at least one serving table in the golf course in advance. In this way, after determining the target tee where the user is located, the terminal device may acquire information of the inflection point of the target tee in the inflection point information corresponding to the at least one tee.
In one possible implementation, the terminal device may obtain information of an inflection point corresponding to at least one serving table in the golf course from the server in advance, e.g., the terminal device may receive information of an inflection point corresponding to at least one serving table from the server when requesting map data of the golf course from the server. The server obtains information of inflection points corresponding to at least one service platform, and can refer to the terminal equipment to obtain related description of the information of the inflection points corresponding to the at least one service platform. In the implementation manner, the terminal equipment does not need to acquire the information of the inflection point corresponding to at least one sending table, so that the calculated amount of the terminal equipment can be reduced.
In one possible implementation manner, the terminal device may obtain inflection point information corresponding to at least one serving table in the golf course according to map data of the golf course.
Wherein, the map data of the golf course includes: a lane contour, a center line, a center point of the green, a center point of the lane, and a center point of the at least one tee, the center line being: and connecting lines of the central point of the at least one service platform, the central point of the lane and the central point of the green.
The inflection points included in the inflection point information corresponding to the billiard table satisfy the following conditions:
Within the lane contour, on the centerline, and a distance from a center point of the green that is greater than a first threshold; and the included angle between the first line segment and the second line segment is in a preset angle range, the first line segment is a connecting line with the central point of the green, and the second line segment is a connecting line with the central point of the service platform. Illustratively, taking a tee as a tee 1 as an example, the inflection points included in the inflection point information corresponding to the tee 1 satisfy the following conditions: within the lane contour, on the centerline, and a distance from a center point of the green that is greater than a first threshold; and the included angle between the first line segment and the second line segment is in a preset angle range, the first line segment is a connection line with the central point of the green, and the second line segment is a connection line with the central point of the service platform 1.
The embodiment of the application sets the inflection point in this way, aiming at: the condition of lane corner is confirmed to the user of being convenient for the user can adjust own batting dynamics, batting direction, improves batting accuracy.
In one possible implementation manner, when the inflection point information corresponding to the service platform includes a location of an inflection point, the inflection point included in the inflection point information is: and an inflection point corresponding to the maximum included angle in the preset angle range. In other words, when the inflection point information corresponding to the billiard table includes a location of an inflection point, the target inflection point is the inflection point, and the terminal device may sum the distance between the user and the inflection point and the distance between the inflection point and the green as the distance between the user and the green. In addition, when the inflection point information corresponding to the billiard table includes positions of a plurality of inflection points, the inflection point corresponding to the maximum included angle within the preset angle range may be regarded as the target inflection point.
The application is arranged in such a way that: if the user hits down the golf ball at the inflection point corresponding to the maximum included angle within the preset angle range, the user can see the green at the inflection point, so that the user can accurately determine the subsequent batting strategy, and the user experience is improved.
Secondly, when the terminal equipment determines that the user is not in the tee according to the position of the user, the terminal equipment can acquire the information of the inflection point according to the position of the user and the map data of the golf course.
Wherein, the map data of the golf course includes: the ball track profile, the central line, the central point of the green, the central point of the ball track, and the central point of at least one service platform, the central line is: and connecting lines of the central point of the at least one service platform, the central point of the lane and the central point of the green.
The inflection point included in the inflection point information satisfies the following condition: within the lane contour, on the centerline, and a distance from a center point of the green that is greater than a first threshold; and the included angle between the first line segment and the third line segment is in a preset angle range, the first line segment is a connecting line with the central point of the green, and the third line segment is a connecting line with the position of the user.
In this implementation, the map data of the golf course further includes: the lane starting point, before the information of the inflection point is obtained according to the position of the user and the map data of the golf course, further comprises: acquiring the distance between the user and the central point of the green and the distance between the starting point of the lane and the central point of the green; the obtaining the information of the inflection point according to the position of the user and the map data of the golf course includes: and acquiring information of the inflection point according to the position of the user and the map data of the golf course in response to the distance between the user and the center point of the green being greater than the distance between the lane start point and the center point of the green.
When the user is not in the tee, the terminal device can also detect whether the user crosses the lane starting point, if the user crosses the lane starting point, the user can see the green, and the inflection point can be not recommended to the user, so that the calculation amount of the terminal device can be reduced. If the user does not cross the lane starting point, the user still has an inflection point from the green, the user cannot see the green, and the terminal equipment can continuously recommend the inflection point for the user according to the position of the user, so that the user can accurately hit the ball.
In one possible implementation, the map data of the golf course further includes: the hole outline, according to the position of the user, obtains the information of the inflection point of the fairway in the golf course, including: detecting whether the position of the user is contained in the hole outline of a target hole, wherein the target hole is the hole selected by the user; if yes, acquiring information of inflection points of the fairway in the golf course according to the position of the user.
In this implementation, the golf course includes many holes, and before the user starts the golf, the user may select a target hole on the terminal device, and if the user is not in the hole profile of the target hole, the terminal device may determine that the user selects a hole in error, and may prompt the user to reselect the hole. When the user is in the hole outline of the target hole, the terminal equipment can determine that the user selects the hole correctly, and the method provided by the application can be executed to acquire the information of the inflection point of the fairway in the golf course according to the position of the user.
In the implementation mode, unnecessary calculation by the terminal equipment can be avoided, and the power consumption of the terminal equipment is reduced.
In one possible implementation, the terminal device requests a server to download map data of the golf course if the map data of the golf course is not stored in response to an instruction to start golf; accordingly, the terminal device may receive map data of the golf course from the server.
In this implementation, the terminal device may request to download map data of the golf course before the start of the game so that information of inflection points in the golf course may be calculated in real time to assist the user in striking the ball.
In one possible implementation manner, in order to reduce power consumption of the terminal device, when the terminal device is in a screen-on state, the terminal device may acquire the position of the user once every first duration, and when the terminal device is in a screen-off state, acquire the position of the user once every second duration, where the second duration is longer than the first duration.
In a second aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory. The memory is for storing computer executable program code, the program code comprising instructions; the instructions, when executed by a processor, cause the electronic device to perform the method as in the first aspect.
In a third aspect, an embodiment of the present application provides an electronic device, which may be the terminal device described in the first aspect. The electronic device may comprise means, modules or circuits for performing the method provided in the first aspect above.
In a fourth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect described above.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the method of the first aspect described above.
The advantages of each of the possible implementation manners of the second aspect to the fifth aspect may be referred to as the advantages of the first aspect, and are not described herein.
The application provides a method for determining a distance in a golf course, electronic equipment and a storage medium, wherein terminal equipment can determine an inflection point in a lane according to map data, and further calculate the distance between a user and a green according to the inflection point. In addition, the terminal equipment can display inflection points and the distance between the user and the green in the golf course map, so that the user can be assisted in batting more accurately, and the user experience is improved.
Drawings
FIG. 1 is a schematic view of a golf course;
fig. 2 is a schematic diagram of a terminal device according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of an embodiment of a method for determining a distance in a golf course according to an embodiment of the present application;
Fig. 4 is an interface schematic diagram of a terminal device according to an embodiment of the present application;
fig. 5 is another interface schematic diagram of a terminal device according to an embodiment of the present application;
Fig. 6 is another interface schematic diagram of a terminal device according to an embodiment of the present application;
Fig. 7 is another interface schematic diagram of a terminal device according to an embodiment of the present application;
FIG. 8 is a schematic flow chart of another embodiment of a method for determining a distance in a golf course according to an embodiment of the present application;
FIG. 9A is a schematic flow chart diagram of another embodiment of a method for determining distance in a golf course according to an embodiment of the present application;
fig. 9B is a schematic view of a scenario provided in an embodiment of the present application;
Fig. 10 is a flowchart of another embodiment of a method for determining a distance in a golf course according to an embodiment of the present application.
Detailed Description
The terms used in the embodiments of the present application are defined as follows:
Map data of golf course: data for each region of the golf course may be included. Each zone is a ball, a tee, a hole, a lane, etc. The data for each region includes, but is not limited to: the location of each region, the location of the center point of each region, and the like. The "map data of golf course" will be hereinafter simply referred to as "map data".
In one example, the position of each region included in the map data, the position of the center point of each region, may be expressed in terms of latitude and longitude coordinates. In one example, the map data may be vector mapping data (GeoJson) mapped in the golf course by a worker.
Green (green): the green where the hole is located may include a plurality of greens in the golf course.
Center point of green: center of the green. In one example, the map data includes a center point location of the green.
Billiard table (tee): a lawn for serving may be used for a user to play a first pole.
Center point of the billiard table: center of the billiard table. In one example, the map data includes a center point location of the tee.
Hole profile: for characterizing the shape of the entire grass occupied from the tee box to the hole. In one example, the map data includes locations on the hole contour.
Ball channel (fairway): and the lawn is positioned between the billiards and the green and is convenient for the user to hit balls.
Lane contour: for characterizing the shape of the fairway. In one example, the map data includes locations on the fairway contour.
Dogleg (dog leg hole): the ball guide has a large-amplitude corner, so that the user cannot see the green from the ball serving position, and the ball hole in the green is a dogleg hole. In one example, a substantial corner may be understood as an angle of the corner that is within a preset angular range.
Inflection point: the lane is at a location where there are substantial corners.
Green contour: used to characterize the shape of the green. In one example, the map data includes locations on the contour of the green.
Obstacle region: such as long grass areas, sandpit areas, water-blocking areas, etc.
It should be understood that the unit "code" is used to characterize the distance in the embodiment of the present application, and the unit of the distance is not limited in the embodiment of the present application.
The terminal equipment in the embodiment of the application is electronic equipment with a display screen. The terminal device may be referred to as a User Equipment (UE), for example, the terminal device may be a mobile phone, a handheld device with a wireless communication function, a computing device, a watch, a wearable device such as a bracelet, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, or the like, and the form of the terminal device in the embodiment of the present application is not specifically limited.
Fig. 1 is a schematic view of a golf course. In fig. 1, a green is taken as an example, and referring to fig. 1, a golf course includes: at least one tee 11, a lane 12, a green 13, and a hole 14. In fig. 1, at least one service table is exemplified as including a service table 1 and a service table 2. The area of the golf course other than the tee 11, fairway 12, green 13, and hole 14 may be referred to as the barrier 15. Taking the tee 11 as a rectangle in fig. 1 as an example, there is a corner in the lane 12 from the tee 11 to the green 13 in fig. 1, and the user cannot see the green 13 from the tee 11. From the tee 11 to the green 13, the shape resembles a dog leg, and the holes 14 in the green 13 may be referred to as dog leg holes. Also shown in fig. 1 is the hole profile (i.e., the profile formed by the solid line of the outermost layer).
Golf is very dependent on ranging and scoring, which are usually performed by a child, and golf smart terminals have been developed for improved efficiency. Terminal devices such as golf rangefinders, golf watches, and the like.
Such as a golf range finder, may emit laser light for ranging. However, as shown in fig. 1, the user cannot see the green while launching the ball, and many obstacles exist between the tee and the green, and the laser light emitted from the golf range finder is reflected by the obstacles, so that the golf range finder cannot measure the distance between the user and the green.
The golf watch belongs to a wearable intelligent terminal device, and can provide functions of displaying golf holes, calculating green distance, obstacle distance and the like for users. It should be understood that the green distance may be understood as the distance of the user from the green. The golf watch may calculate a distance from the user to a specified point based on preset golf course data and positioning data of the golf watch to assist the user in formulating a batting strategy. The golf watch can calculate the distance between the user and the green according to the positioning data of the golf watch and the position of the green in the golf course data. However, when the distance calculated by the golf watch is the straight line distance from the user to the green, referring to fig. 1, when there is a corner between the user and the green, the straight line distance calculated by the golf watch is not the distance between the actual user and the green, and the distance calculation is inaccurate, which affects the accuracy of the hitting of the user.
The embodiment of the application provides a method for determining the distance in a golf course, which can acquire the inflection point between a user and a green, further accurately acquire the distance between the user and the green according to the inflection point, improve the calculation accuracy, better assist the user in batting and improve the user experience.
Before describing the distance determining method in the golf course provided by the embodiment of the present application, the structure of the terminal device will be described first. Fig. 2 is a schematic diagram of a terminal device according to an embodiment of the present application. Referring to fig. 2, the terminal device 200 may include: processor 210, memory 220, communication module 230, audio module 240, sensor 250, display 260, and positioning module 270, among others.
Processor 210 may include one or more processing units such as, for example: the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, a display processing unit (display process unit, DPU), and/or a neural-network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. In some embodiments, the terminal device 200 may also include one or more processors 210. The processor 210 may be a neural hub and a command center of the terminal device 200, among others. The processor 210 may generate operation control signals according to the instruction operation code and the timing signals to complete instruction fetching and instruction execution control. A memory may also be provided in the processor 210 for storing instructions and data.
Memory 220 may be used to store one or more computer programs, including instructions. The processor 210 may cause the terminal device 200 to perform various functional applications, data processing, and the like by executing the above-described instructions stored in the memory 220. In some embodiments, processor 210 may cause terminal device 200 to perform various functional applications and data processing by executing instructions stored in memory 220, and/or instructions stored in memory provided in processor 210.
In the embodiment of the present application, the memory 220 may store user data, map data, related data during the golf exercise performed by the user, and the like. User data such as user account number, password, face, etc. The relevant data in the user's golf motion may include: scoring, the number of shafts used for each hole to enter the ball, the force and direction of each swing, and the like.
The communication module 230 may include, but is not limited to: a mobile communication module such as 2G/3G/4G/5G, or a module such as a wireless local area network (wireless local area networks, WLAN), bluetooth, global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), NFC, infrared (IR), etc. The terminal device 200 may communicate with a network and other devices through the communication module 230.
The terminal device 200 may implement an audio function through the audio module 240. Such as music playing, recording, etc. Wherein the audio module 240 may be used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal.
The sensors 250 may include, but are not limited to, a gyroscope sensor 250A, an acceleration sensor 250B, a distance sensor 250C, and the like.
Among them, the gyro sensor 250A may be used to determine the motion gesture of the terminal device 200. In some embodiments, the angular velocity of the terminal device 200 about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 250A. The acceleration sensor 250B may detect the magnitude of acceleration of the terminal device 200 in various directions (e.g., x, y, and z axes). The magnitude and direction of gravity can be detected when the terminal device 200 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications. A distance sensor 250C for measuring distance. The terminal device 200 may measure the distance by infrared or laser.
The display 260 is used to display images, videos, and the like. The display 260 includes a display panel. In some embodiments, terminal device 200 may include 1 or N displays 260, N being a positive integer greater than 1.
The positioning module 270 is configured to implement positioning of the terminal device, and may obtain a position of the terminal device. The location of the terminal device may be latitude and longitude coordinates of the terminal device. In one embodiment, the positioning module 270 may include, but is not limited to: global positioning system (global positioning system, GPS), beidou satellite navigation system, and global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS).
It is to be understood that the configuration illustrated in the present embodiment does not constitute a specific limitation on the terminal device 200. In other embodiments of the application, terminal device 200 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The method for determining the distance in the golf course according to the embodiment of the present application will be described with reference to specific embodiments. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 3 is a schematic flow chart of an embodiment of a method for determining a distance in a golf course according to an embodiment of the present application. Referring to fig. 3, the method for determining a distance in a golf course according to an embodiment of the present application may include:
S301, acquiring information of inflection points corresponding to the golf sending platform according to map data of the golf course.
The golf course may include a plurality of green, and referring to fig. 1, each green may correspond to at least one tee, and in the embodiment of the present application, a procedure of acquiring information of an inflection point corresponding to a tee by a terminal device is described by taking a tee as an example.
In one embodiment, if the terminal device does not store the map data of the golf course, such as the first time the user comes from the golf course, the user may trigger the terminal device to download the map data of the golf course. For example, the user may turn on the golf mode in the terminal device so that the terminal device obtains relevant data of the user while playing golf. Wherein the terminal device is responsive to the golf mode being on, the location of the terminal device may be obtained. When the terminal device detects that the map data of the golf course where the position of the terminal device is located is not stored in the terminal device, the terminal device may display the name of the golf course where the position of the terminal device is located according to the position of the terminal device. In one example, the terminal device may obtain the location of the terminal device in response to an indication to begin a golf motion. The instruction to start the golf motion may be, for example, to turn on the golf mode for the user, or to operate a button of "start to perform the golf motion" or to input a voice of "start to perform the golf motion", which is not limited in the embodiment of the present application.
In one example, the terminal device may also display the name of the golf course around the location of the terminal device. As shown in fig. 4, the terminal device may display the name of golf course 1 where the terminal device is located, and the names of golf courses around the location of the terminal device, such as course 2 and course 3. The user can select the name of the golf course where the user is located, and trigger the terminal device to download the map data of the golf course. Illustratively, if the user selects the course 1, the terminal device can download map data of the course 1.
In one example, the terminal device can request the server to download map data of the court 1. Wherein the server may store map data for a plurality of golf courses. In one example, the map data for the golf course may be uploaded to a server by a worker after mapping the golf course, as embodiments of the application are not limited in this respect.
In one embodiment, if the terminal device has stored therein map data for a golf course, such as when a user has arrived at the golf course, the terminal device has downloaded the map data for the golf course, the terminal device may have stored therein map data for the golf course. Illustratively, the location of the terminal device may be obtained in response to the golf mode being on. When the terminal device detects that the map data of the golf course where the location of the terminal device is located is stored in the terminal device, the terminal device may not display the interface as shown in fig. 4.
The map data of the golf course may include: the green contour, the center point location of the green, the tee position, the center point location of the tee, the hole contour, the lane contour, and the centerline coordinates. Wherein, the green contour may comprise: the longitude and latitude coordinates of each position on the contour of the green, and the central point of the green comprises the longitude and latitude coordinates of the central point of the green. The tee box position may include: the longitude and latitude coordinates of each position on the outline of the billiard table, and the position of the center point of the billiard table comprises the longitude and latitude coordinates of the center point of the billiard table. The hole profile includes: longitude and latitude coordinates of each position on the ball hole outline, the ball channel outline includes: longitude and latitude coordinates of each position on the lane outline. The central line is the connecting line of the central point of each billiard table, the central point of the fairway and the central point of the green, and the central line coordinates comprise: longitude and latitude coordinates of each position on the central line. Referring to fig. 1, the center point of the green and the center point of the tee are represented by black dots in fig. 1, and the center line is represented by a broken line.
The information of the inflection point may include: the location of the inflection point. In one example, each tee may correspond to at least one inflection point, or each tee may correspond to a range of inflection points.
In the embodiment of the application, the terminal equipment can acquire the information of the inflection point in the position contained in the map data of the golf course. The terminal device may acquire the candidate inflection point in a location included in the map data of the golf course, and then determine the inflection point according to the candidate inflection point. In one example, the candidate inflection point needs to satisfy the following condition:
Condition 1: is within the lane contour.
Condition 2: on the centerline.
Condition 3: the linear distance from the center point of the green is greater than a first threshold value. The first threshold may be predefined, and illustratively, the first threshold may be 35 meters.
Condition 4: and connecting the first line segment with the central point of the green to obtain a second line segment, wherein the included angle between the first line segment and the second line segment is in a preset angle range. The preset angle range may be predefined, and exemplary, the preset angle range may be 40 ° -180 °.
The 4 conditions are set as above in the embodiment of the present application because: in one aspect, the corner of the tee to the green is in the lane and the inflection point is also in the lane contour. On the other hand, in order to assist the user in striking the golf ball to the inflection point, the inflection point is disposed on the center line, not at the edge of the course contour, thus giving the user some opportunity for trial and error. If the inflection point is set at the edge of the lane contour, the falling point of the golf ball may deviate from the lane contour, which increases the difficulty of the user in hitting the golf ball.
On the other hand, the straight line distance between the inflection point and the central point of the green is set to be larger than a first threshold value, and the first threshold value is the position where the user can see the green, so that the user can be assisted in determining the inflection point, and if the user hits a golf ball to the inflection point, the user can see the green, and the next batting of the user is facilitated. On the other hand, the included angle between the first line segment and the second line segment is set within the preset angle range, so that the inflection point can be conveniently determined at the corner of the lane, the inflection point can be determined by the user, and if the user hits the golf ball to the inflection point, the green can be seen, and the next batting of the user is facilitated.
The terminal device can obtain candidate inflection points according to the above 4 conditions, and the embodiment of the application does not limit the order of using the above 4 conditions by the terminal device. For example, the terminal device may acquire the candidate inflection points in the order of condition 1 to condition 4. For example, the terminal device may consider a location within the lane contour as the first candidate inflection point. Among the first candidate inflection points, the terminal device may take the first candidate inflection point located on the center line as the second candidate inflection point. The terminal device may calculate a distance between each second candidate inflection point and a center point of the green, and use the second candidate inflection point having a distance greater than the first threshold value as a third candidate inflection point. The terminal device may connect each third candidate inflection point with the center point of the green to obtain a first line segment, connect each third candidate inflection point with the center point of the billiard table to obtain a second line segment, and obtain an included angle between the first line segment and the second line segment corresponding to each third candidate inflection point. The terminal device may use a third candidate inflection point corresponding to the included angle in the preset angle range as the candidate inflection point.
It should be understood that, for different tee boxes, when the terminal device calculates the included angle between the first line segment and the second line segment, the terminal device may connect the third candidate inflection point with the center point of the different tee box to obtain the second line segment. Illustratively, the at least one service platform includes a service platform 1 and a service platform 2, when the terminal device obtains inflection point information corresponding to the service platform 1, the terminal device may connect each third candidate inflection point with a center point of the service platform 1 to obtain a second line segment, so as to calculate an included angle between the first line segment and the second line segment. When the terminal device obtains inflection point information corresponding to the billiard table 2, the terminal device may connect each third candidate inflection point with the center point of the billiard table 2 to obtain a second line segment, so as to calculate an included angle between the first line segment and the second line segment.
In one embodiment, the information of the inflection point corresponding to the billiard table may include a location of the inflection point. In one example, if the terminal device can screen to obtain multiple candidate inflection points according to the above 4 conditions, the terminal device may use the candidate inflection point with the largest included angle as the finally determined inflection point. Correspondingly, the inflection point information corresponding to the billiard table may include: the position of the candidate inflection point with the largest included angle. In one example, if the terminal device can screen to obtain a candidate inflection point according to the above 4 conditions, the terminal device may use the candidate inflection point as the finally determined inflection point.
In one embodiment, the information of the inflection point corresponding to the billiard table may include at least one inflection point position.
In one example, if the terminal device can screen to obtain multiple candidate inflection points according to the above 4 conditions, the terminal device may use the candidate inflection point with the largest included angle and the candidate inflection point with the smallest included angle as the finally determined inflection points. The arrangement is as follows: the condition of the corner of the lane is convenient for the user to determine, so that the user can adjust the hitting force, the hitting direction and the like of the user, and the falling point of the golf ball can be between the two inflection points.
In one example, if the terminal device can screen to obtain multiple candidate inflection points according to the above 4 conditions, the terminal device may use the candidate inflection point with the largest included angle, the candidate inflection point farthest from the green, and the candidate inflection point closest to the green as the finally determined inflection points. The arrangement is as follows: the method is convenient for the user to determine the inflection points closest to the green and farthest from the green, if the batting capability of the user is limited, the user can be guided to batte to the inflection point closest to the green, and in addition, the terminal equipment also takes the candidate inflection point with the largest included angle as the inflection point, so that the user can conveniently determine the condition of the corner of the lane.
In one embodiment, the inflection point range may be included in the information of the inflection point corresponding to the billiard table, and the inflection point range may represent the location range. Wherein the inflection point range includes a location of at least one inflection point. In one example, if the terminal device can screen to obtain multiple candidate inflection points according to the above 4 conditions, the terminal device can determine the candidate inflection point with the largest included angle and the candidate inflection point with the smallest included angle, for example, the terminal device can determine the inflection point range by taking the two candidate inflection points as two points on a circle. The arrangement is as follows: the condition of the corner of the lane is convenient for the user to determine, and the user can adjust the hitting force, the hitting direction and the like of the user, so that the falling point of the golf ball can be between the two inflection points. The embodiment of the application does not limit the shape of the inflection point range, and can be rectangular, square, triangular and the like.
In one possible scenario, where there are no corresponding inflection points for some tee boxes in the golf course, the terminal device need not obtain information for the corresponding inflection points for those tee boxes.
In one embodiment, in a scenario in which the terminal device requests the server to download map data of the golf course, because the map data of the golf course is stored in advance in the server, the server may acquire information of an inflection point corresponding to the tee according to the scenario of the map data of the golf course, so that the server may transmit the map data of the golf course and the information of the inflection point corresponding to the tee to the terminal device when the terminal device requests the server to download the map data of the golf course. In such an embodiment, the server does not obtain the information of the inflection point corresponding to the tee, so that the processing time of the terminal device can be reduced, and the information of the inflection point corresponding to the tee can be obtained at the same time when the map data of the golf course is downloaded.
S302, the position of the user is obtained.
The terminal equipment comprises a positioning module, and the terminal equipment can acquire the position of the terminal equipment through the positioning module. Because the user wears the terminal device, the terminal device can take the location of the terminal device as the location of the user.
In one example, the terminal device may be turned on in response to a golf mode and may obtain the location of the user. In one example, the terminal device may periodically acquire the location of the user, thereby performing S303-S304.
In one example, because a plurality of holes are included in the golf course, the user may select a target hole on the terminal device when the golf mode is turned on or when the golf operation is started, the target hole being a hole in which the user desires to enter a ball. In this example, after the terminal device obtains the position of the user, it may detect whether the position of the user is included in the hole contour of the target hole, if the position of the user is included in the hole contour of the target hole, the terminal device may execute S303-S304, and if the position of the user is not included in the hole contour of the target hole, which indicates that the user may have deviated from the hole contour of the target hole, the terminal device may not execute S303-S304.
S303, determining a target service platform where the user is located according to the position of the user.
The terminal device may obtain the position of each service platform according to the map data, and the terminal device may use the service platform where the position of the user is located as the target service platform. In one example, the terminal device may detect which of the tee positions includes the user's position, and then take the tee including the user's position as the target tee.
S304, according to the information of the inflection point corresponding to the target billiard table, displaying the inflection point and the distance between the user and the green in the golf course map.
After the terminal device acquires the map data, a golf course map may be displayed on the terminal device. For example, referring to a in fig. 5, the terminal device may display a partial map around the location of the user in the golf course according to the location of the user, and display the location of the user, such as location a, in the map. Fig. 5 is a partial view of the tee box, the fairway, and the green shown in fig. 1.
In the embodiment of the application, because the terminal equipment can acquire the information of the inflection points corresponding to the plurality of tee boxes in the golf course in advance, the terminal equipment can acquire the information of the inflection points corresponding to the target tee box in the information of the inflection points corresponding to the plurality of tee boxes. The location of the inflection point may be included in the information of the inflection point corresponding to the target tee, so the terminal device may display the inflection point in the golf course map. Referring to a in fig. 5, the terminal device may display an inflection point, such as position B, in the golf course map.
In one example, when positions of a plurality of inflection points are included in the information of the inflection point corresponding to the target tee, referring to B in fig. 5, the terminal device may display the plurality of inflection points, such as position B and position C, in the golf course map. In one example, when an inflection point range is included in the information of the inflection point corresponding to the target tee, referring to c in fig. 5, the terminal device may display the inflection point range, such as a gray circle covered range, in the golf course map.
It should be understood that the purpose of the terminal device displaying the inflection point in the golf course map is to: the golf ball falling point is recommended to the user, and the user can adjust the hitting force, the hitting direction and the like according to the position of the inflection point, so that the golf ball can fall on the inflection point.
In one embodiment, after determining the inflection point information corresponding to the billiard table, the terminal device may further determine a distance between the billiard table and the green according to the inflection point information. Taking a billiard table as an example, the terminal device may determine a first line segment and a second line segment with the largest included angle according to inflection point information corresponding to the billiard table, and sum the lengths of the first line segment and the second line segment to be the distance between the billiard table and the green. Correspondingly, the terminal device can acquire the distance between the target billiard table and the green, namely the distance between the user and the green.
In such an embodiment, referring to a in fig. 5, the terminal device may also display the distance of the target tee from the green, i.e., the distance of the user from the green. Illustratively, a in fig. 5 represents the distance between the user and the green by circles of different radii centered around the center point of the green.
In such an embodiment, referring to a in fig. 5, the terminal device may also display the distance of the user from the inflection point, i.e. the length of the first line segment. By way of example, a in fig. 5 may represent the distance of the user from the inflection point in circles of different radii centered around the user's location. The terminal device can use the distance between the inflection point with the largest included angle and the user as the distance between the user and the inflection point. Or the information of the inflection point corresponding to the target billiard table comprises an inflection point range, and the terminal equipment can use the distance between the center point of the inflection point range and the user as the distance between the user and the inflection point.
In one embodiment, after determining the target billiard table, the terminal device may further obtain an angle of the inflection point corresponding to the target billiard table relative to the user according to inflection point information corresponding to the target billiard table and the position of the user. In an exemplary embodiment, the terminal device may obtain, in inflection point information corresponding to the target billiard table, an angle of the inflection point with respect to the user according to a position of the inflection point where an included angle between the first line segment and the second line segment is the largest and a position of the user. For example, when the information of the inflection point corresponding to the target billiard table includes an inflection point range, the terminal device may obtain the angle of the center point of the inflection point range relative to the user according to the position of the center point of the inflection point range and the position of the user.
Referring to fig. 6, the terminal device may display an angle of the inflection point with respect to the user in the golf course map. Illustratively, the angle of the inflection point relative to the user is characterized by an arrow and an orientation "such as 10 ° in the northwest direction" in fig. 6.
In one embodiment, referring to fig. 5 and 6, the terminal device may also display the number of doglegs, as well as the standard number of poles. For example, the dogleg hole is hole No.2 (indicated by H02 in FIG. 5), and the standard number of rods is 5 rods (indicated by Par5 in FIG. 5).
In the embodiment of the application, the terminal equipment can determine the inflection point in the lane according to the map data, and further calculate the distance between the user and the green according to the inflection point. In addition, the terminal equipment can display inflection points and the distance between the user and the green in the golf course map, so that the user can be assisted in batting more accurately, and the user experience is improved.
In the above embodiment, when the user hits the first driver or when the user's position is in the tee, the terminal device may acquire information of the inflection point and the positions of the user and the green according to the embodiment shown in fig. 3. In one possible scenario, for example, after the user hits the ball, the drop point of the golf ball is not included in the tee, and when the user hits the ball again, because the position of the user is not in the tee, the terminal device cannot acquire the inflection point information in the inflection point information corresponding to the existing tee, and cannot display the inflection point. For example, referring to fig. 7, the user hits a ball at the tee 1, the drop point of the golf ball is at the position D, and when the user hits the ball at the position D, the user's position is not at the tee, and the terminal device cannot acquire information of the inflection point nor display the inflection point.
In one embodiment, the terminal device may obtain the information of the inflection point according to the location of the user. In this way, even if the user's location is not included in the tee, the terminal device can acquire information of the inflection point and display the inflection point and the green distance.
Referring to fig. 8, the method for determining a distance in a golf course according to an embodiment of the present application may include:
S801, a position of a user is acquired.
S801 may refer to the related description of S302. In one example, referring to the description related to S302, after the terminal device obtains the position of the user, it may detect whether the position of the user is included in the hole contour of the target hole, if the position of the user is included in the hole contour of the target hole, the terminal device may perform S802-S803, if the position of the user is not included in the hole contour of the target hole, which indicates that the user may have deviated from the hole contour of the target hole, the terminal device may not perform S802-S803.
S802, determining inflection point information according to the position of the user and map data.
Map data, information of inflection points may refer to the related description of S301.
In the embodiment of the application, the terminal equipment can acquire the information of the inflection point in the position contained in the map data. The terminal device may acquire the candidate inflection point in a location included in the map data, and further determine the inflection point according to the candidate inflection point. In one example, the candidate inflection point needs to satisfy the following condition:
Condition 1: is within the lane contour.
Condition 2: on the centerline.
Condition 3: the linear distance from the center point of the green is greater than a first threshold value.
Condition 5: and connecting the first line segment with the central point of the green to obtain a third line segment, and connecting the first line segment with the position of the user to obtain a third line segment, wherein the included angle between the first line segment and the third line segment is in a preset angle range.
Unlike the above condition 4, the angle between the first line segment and the third line segment, which is a line connected to the position of the user, is obtained in the condition 5. In such an embodiment, the distance of the user from the green is the sum of the lengths of the first and third line segments. The terminal device may screen to obtain candidate inflection points according to the above 4 conditions, and the embodiment of the present application does not limit the order in which the terminal device uses the above 4 conditions, and may refer to the related description in S301.
In one embodiment, the terminal device may obtain information of the inflection point upon determining that the user's location has not passed beyond the start of the lane. It will be appreciated that the purpose of this arrangement is to: if the position of the user has crossed the starting point of the lane, the user can see the green with high probability, so that the user can adjust the batting strength, batting angle and the like by virtue of own experience without displaying an inflection point.
The lane start point can be understood as: the intersection point of the lane outline and the center line is an intersection point far away from the green direction. Illustratively, referring to FIG. 1, the intersection of the lane contour with the centerline is intersection a and intersection b, which may be the lane start point. In this embodiment, the terminal device may obtain the distance between the user and the green according to the position of the user and the position of the center point of the green, and may obtain the distance between the lane start point and the green according to the position of the lane start point and the position of the center point of the green. The terminal equipment responds that the distance between the lane starting point and the green is smaller than or equal to the distance between the user and the green, and can acquire the information of the inflection point, and the terminal equipment responds that the distance between the lane starting point and the green is larger than the distance between the user and the green, and does not need to acquire the information of the inflection point.
S803, displaying the inflection point and the distance between the user and the green in the golf course map according to the information of the inflection point.
S803 can refer to the related description of S304.
Referring to fig. 7, when the user is at the location D and the location D is not included in the tee, the terminal device may perform S802 to obtain information of the inflection point, and further the terminal device may display the inflection point and the distance of the user from the green in the golf course map.
In one embodiment, fig. 9A shows a flow chart of a method for determining a distance in a golf course performed by a terminal device. Referring to fig. 9A, the terminal device may download map data of a golf course, and extract data required for the terminal device in the map data of the golf course, for example, may include a green contour, a center point position of the green, a tee position, a center point position of the tee, a hole contour, a lane contour, and a center line coordinate, etc. The terminal device can filter out invalid points according to the conditions required to be met by the inflection points, wherein the invalid points are points which are not candidate inflection points. The terminal device may connect the candidate inflection point with the center point of the user and the green to obtain a first line segment, and connect the candidate inflection point with the tee to obtain a second line segment (or connect the candidate inflection point with the user to obtain a third line segment), and calculate an included angle between the first line segment and the second line segment (or calculate an included angle between the first line segment and the third line segment). The terminal device may use the candidate inflection point corresponding to the maximum included angle as the inflection point of the lane.
In the embodiment of the application, the terminal equipment can acquire the information of the inflection point according to the position of the user, so that even if the position of the user is not contained in the service platform, the terminal equipment can acquire the information of the inflection point, the accuracy of the inflection point can be ensured, and the accurate inflection point can be displayed for the user.
In the embodiments shown in fig. 3 and 8, in one example, the terminal device may periodically obtain the location of the user, and may then periodically update the display inflection point, and the distance between the user and the green.
In one example, the terminal device may determine a period for acquiring the position of the user according to the state of the terminal device, so as to adaptively adjust the calculation amount of the terminal device and reduce the power consumption of the terminal device.
The states of the terminal device include a bright screen state and a dark screen state, when the terminal device is in the bright screen state, the position of the user is obtained once every first time period, when the terminal device is in the dark screen state, the position of the user is obtained once every second time period, and the second time period is longer than the first time period. When the terminal equipment is in a bright screen state, for example, the terminal equipment can acquire the position of the user every 1s, so that the terminal equipment updates the inflection point every 1s and the distance between the user and the green. When the terminal equipment is in the screen-off state, the map representing that the user is not looking at the golf course is displayed, for example, the terminal equipment can acquire the position of the user every 1min, so that the terminal equipment updates the inflection point every 1min and the distance between the user and the green.
Referring to a in fig. 9B, when the terminal device is in a bright screen state, the terminal device may update the inflection point and the distance of the user from the green every 1 s. Referring to B in fig. 9B, when the terminal device is in the off-screen state, the terminal device may update the inflection point and the distance between the user and the green every 1min, and B in fig. 9B does not show the interface of the terminal device because the terminal device is in the off-screen state.
In one example, the state of the terminal device may characterize the user's motion state, and the terminal device may, illustratively, obtain a change in the pose of the terminal device from the sensor 250 in the terminal device, and thereby determine the user's motion state. Wherein if the user's motion state is moving, it can be characterized that the user is not batting, the terminal device can increase the period of acquiring the user's position, or the terminal device does not acquire the user's position while the user is moving. When the motion state of the user is static, if the position of the user is unchanged within a preset duration, the user is characterized that the user is likely to hit the ball with high probability, and the terminal equipment can reduce the period of acquiring the position of the user and timely display the inflection point and the distance between the user and the green.
Thus, the terminal device can adaptively adjust the calculation period according to the state of the terminal device, and the power consumption of the terminal device can be reduced.
In one example, to reduce the workload of the terminal device, reduce the power consumption of the terminal device, the terminal device may display a key to suspend positioning, and the user may trigger the terminal device to suspend acquiring the position of the user, and further suspend executing the action of acquiring the information of the inflection point, and displaying the distance between the inflection point and the user and the green. For example, the user may move to the golf ball drop point after the ball is hit by the tee, and power consumption of the terminal device may be consumed if the terminal device always calculates the position of the user, information of inflection points, and the like during the movement of the user. In the embodiment of the application, after the user hits the ball on the service table, the user can operate the pause positioning key to trigger the terminal equipment to pause the acquisition of the position of the user, and when the user moves to the drop point of the golf ball, the user can operate the pause positioning key again to trigger the terminal equipment to acquire the position of the user, so that the terminal equipment does not need to acquire the position of the user in the process of moving the user to the drop point of the golf ball, and the calculation amount and the power consumption of the terminal equipment can be reduced.
In an embodiment, referring to fig. 10, the method for determining a distance in a golf course according to the embodiment of the present application may include:
S1001, the position of the user is acquired.
S1002, obtaining information of inflection points according to the position of a user.
In one example, the terminal device may acquire information of an inflection point according to the location of the user and the map data, and may refer to the related description in S802. In one example, the terminal device may determine, according to the location of the user, a target tee, where the user is located, and then obtain, according to the obtained information of the inflection point corresponding to the tee, the information of the inflection point corresponding to the target tee.
In one example, the terminal device may acquire information of an inflection point corresponding to each position in the non-obstacle region. Where the unobstructed area is understood to be an area of the golf course other than the unobstructed area. The manner in which the terminal device acquires the information of the inflection point corresponding to each position may be referred to the related description in S301, S802. It should be noted that there are no corresponding inflection points at some locations, so it may not be necessary to obtain inflection points at this location, such as locations that are beyond the start of the fairway.
In this example, the terminal device may determine information of an inflection point corresponding to the location of the user according to the location of the user and the information of the inflection point corresponding to each location in the acquired non-obstacle region.
In this example, in order to reduce the throughput of the terminal device, the non-obstacle region may be divided into a plurality of sub-regions, and the embodiment of the present application does not limit the number, shape, etc. of the sub-regions. In this example, the terminal device may acquire information of the inflection point corresponding to each sub-region, and may refer to the related description in S301. The terminal device may determine, according to the location of the user, the target sub-area where the user is located, and further use information of an inflection point corresponding to the target sub-area as information of an inflection point corresponding to the location of the user, which may refer to the related description in S303.
S1003, displaying the inflection point and the distance between the user and the green in the golf course map according to the information of the inflection point.
S1003 may refer to the related descriptions of S304, S803.
The embodiment of the present application has the same technical effects as the embodiment shown in fig. 3 and 8, and reference is made to the related description of the above embodiment.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.), such as the location of the user, are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide a corresponding operation entry for the user to select authorization or rejection.
It should be noted that the modules or components described in the above embodiments may be one or more integrated circuits configured to implement the above methods, for example: one or more Application SPECIFIC INTEGRATED Circuits (ASICs), or one or more microprocessors (DIGITAL SIGNAL processors, DSPs), or one or more field programmable gate arrays (field programmable GATE ARRAY, FPGAs), etc. For another example, when a module above is implemented in the form of processing element scheduler code, the processing element may be a general purpose processor, such as a central processing unit (central processing unit, CPU) or other processor that may invoke the program code, such as a controller. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, server, or data center. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk Solid STATE DISK (SSD)), among others.
The term "plurality" herein refers to two or more. The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship; in the formula, the character "/" indicates that the front and rear associated objects are a "division" relationship. In addition, it should be understood that in the description of the present application, the words "first," "second," and the like are used merely for distinguishing between the descriptions and not for indicating or implying any relative importance or order.
It will be appreciated that the various numerical numbers referred to in the embodiments of the present application are merely for ease of description and are not intended to limit the scope of the embodiments of the present application.
It should be understood that, in the embodiment of the present application, the sequence number of each process does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Claims (16)
1. A method of determining a distance in a golf course, comprising:
Acquiring the position of a user in the process of performing a golf motion by the user;
acquiring information of inflection points of the fairway in the golf course according to the position of the user;
According to the information of the inflection point, the distance between the user and the green in the golf course is obtained;
and displaying inflection points and distances between the user and the green in a golf course map.
2. The method of claim 1, wherein the inflection point information comprises: a location or range of inflection points of at least one inflection point, the range of inflection points including the location of the at least one inflection point, the inflection point being displayed in a golf course map, comprising:
The at least one inflection point or the inflection point range is displayed in the golf course map.
3. The method of claim 2, wherein the obtaining the distance between the user and the green in the golf course based on the inflection point information comprises:
When the information of the inflection point includes the position of the at least one inflection point, adding the distance of the user from a target inflection point and the distance of the target inflection point from the green, the target inflection point being included in the at least one inflection point as the distance of the user from the green;
When the information of the inflection point includes an inflection point range, determining a center point of the inflection point range;
And adding the distance between the user and the central point and the distance between the central point and the green as the distance between the user and the green.
4. A method according to any one of claims 1-3, wherein said obtaining information of inflection points of fairways in a golf course based on the location of the user comprises:
determining a target service platform where the user is located according to the position of the user;
and taking the information of the inflection point corresponding to the target sending table as the information of the inflection point of the fairway in the golf course.
5. The method according to claim 4, wherein the method further comprises:
and acquiring information of inflection points corresponding to at least one serving table in the golf course.
6. The method of claim 5, wherein the obtaining information of the inflection point corresponding to at least one serving in the golf course comprises:
and obtaining inflection point information corresponding to at least one serving table in the golf course according to the map data of the golf course.
7. The method of claim 6, wherein the map data of the golf course comprises: a lane contour, a center line, a center point of the green, a center point of the lane, and a center point of the at least one tee, the center line being: a line connecting a center point of the at least one tee, a center point of the lane, and a center point of the green;
the inflection points included in the inflection point information corresponding to the billiard table satisfy the following conditions:
within the lane contour, on the centerline, and a distance from a center point of the green that is greater than a first threshold; and
The included angle between the first line segment and the second line segment is in a preset angle range, the first line segment is a connecting line with the central point of the green, and the second line segment is a connecting line with the central point of the service platform.
8. The method of claim 7, wherein when the inflection point information corresponding to the billiard table includes a location of an inflection point, the inflection point included in the inflection point information is: and an inflection point corresponding to the maximum included angle in the preset angle range.
9. The method according to claim 4, wherein the method further comprises:
And when the user is not in the sending platform according to the position of the user, acquiring the information of the inflection point according to the position of the user and the map data of the golf course.
10. The method of claim 9, wherein the map data of the golf course comprises: the ball track profile, the central line, the central point of the green, the central point of the ball track, and the central point of at least one service platform, the central line is: a line connecting a center point of the at least one tee, a center point of the lane, and a center point of the green;
the inflection point included in the inflection point information satisfies the following condition:
within the lane contour, on the centerline, and a distance from a center point of the green that is greater than a first threshold; and
The included angle between the first line segment and the third line segment is in a preset angle range, the first line segment is a connection line with the central point of the green, and the third line segment is a connection line with the position of the user.
11. The method of claim 10, wherein the map data of the golf course further comprises: the lane starting point, before the information of the inflection point is obtained according to the position of the user and the map data of the golf course, further comprises:
acquiring the distance between the user and the central point of the green and the distance between the starting point of the lane and the central point of the green;
The obtaining the information of the inflection point according to the position of the user and the map data of the golf course includes:
And acquiring information of the inflection point according to the position of the user and the map data of the golf course in response to the distance between the user and the center point of the green being greater than the distance between the lane start point and the center point of the green.
12. The method according to any one of claims 6-11, wherein the map data of the golf course further comprises: the hole outline, according to the position of the user, obtains the information of the inflection point of the fairway in the golf course, including:
detecting whether the position of the user is contained in the hole outline of a target hole, wherein the target hole is the hole selected by the user;
If yes, acquiring information of inflection points of the fairway in the golf course according to the position of the user.
13. The method according to any one of claims 6-12, further comprising:
In response to an instruction to start golf, requesting a server to download map data of the golf course if the map data of the golf course is not stored;
Map data of the golf course is received from the server.
14. The method of any of claims 1-13, wherein the obtaining the location of the user comprises:
When the terminal equipment is in a bright screen state, acquiring the position of the user once every a first time length;
When the terminal equipment is in the off-screen state, the position of the user is acquired once every second time length, and the second time length is longer than the first time length.
15. An electronic device, comprising: a processor and a memory;
the memory stores computer instructions;
The processor executing computer instructions stored in the memory, causing the processor to perform the method of any one of claims 1-14.
16. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program or instructions, which when executed, implement the method of any of claims 1-14.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211573786.7A CN118168531A (en) | 2022-12-08 | 2022-12-08 | Method for determining distance in golf course, electronic device and storage medium |
PCT/CN2023/133668 WO2024120212A1 (en) | 2022-12-08 | 2023-11-23 | Distance determination method in golf course, electronic device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211573786.7A CN118168531A (en) | 2022-12-08 | 2022-12-08 | Method for determining distance in golf course, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118168531A true CN118168531A (en) | 2024-06-11 |
Family
ID=91347445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211573786.7A Pending CN118168531A (en) | 2022-12-08 | 2022-12-08 | Method for determining distance in golf course, electronic device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN118168531A (en) |
WO (1) | WO2024120212A1 (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
ATE177847T1 (en) * | 1991-12-16 | 1999-04-15 | Pinranger Australia | DISTANCE MEASUREMENT SYSTEM |
KR20020090176A (en) * | 2002-09-23 | 2002-11-30 | 배성두 | Golf method and the golf course |
KR100843459B1 (en) * | 2006-03-20 | 2008-07-04 | 노보스(주) | Method of displaying and fathoming of distances in golf game and their unit |
KR100741655B1 (en) * | 2006-12-18 | 2007-07-23 | 주식회사 자티전자 | A distance measuring apparatus using distance measuring and screen display method |
KR101815559B1 (en) * | 2016-06-15 | 2018-02-21 | 주식회사 파인디지털 | Method for providing golf course guide and golf course guide device |
CN112683286A (en) * | 2021-03-16 | 2021-04-20 | 季华实验室 | Method and system for establishing topological road network map, storage medium and electronic equipment |
-
2022
- 2022-12-08 CN CN202211573786.7A patent/CN118168531A/en active Pending
-
2023
- 2023-11-23 WO PCT/CN2023/133668 patent/WO2024120212A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
WO2024120212A1 (en) | 2024-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10881941B2 (en) | Hybrid golf guide system | |
US8600662B2 (en) | Method and system for plotting a user's position on a display | |
US20070265089A1 (en) | Simulated phenomena interaction game | |
US20070197314A1 (en) | Rangefinding devices and methods for golfing | |
WO2015179211A1 (en) | Devices and methods for analyzing golf swings | |
JP6204635B1 (en) | Golf play support system, golf play support method, and program | |
KR102148254B1 (en) | IoT-BASED SMART PUTTING GUIDE PROVIDING SYSTEM AND METHOD THEREOF | |
US11351436B2 (en) | Hybrid golf launch monitor | |
US20240325858A1 (en) | Sport Mode Processing Method and Wearable Device | |
US20090305822A1 (en) | Method to establish a score database for golf players by means of a global positioning system | |
CN118168531A (en) | Method for determining distance in golf course, electronic device and storage medium | |
KR102224182B1 (en) | User terminal and golf information system including the same | |
RU2413998C1 (en) | Method of shooting target in network computer game | |
US12048863B2 (en) | Skill level determination and management system and method | |
KR100808809B1 (en) | A portable apparatus for guiding golf | |
TWI795204B (en) | Hybrid golf system, control method of mobile terminal used to the same and method for locating golf ball at ball position on field using user's mobile terminal in hybrid golf system | |
KR102237571B1 (en) | Golf information providing system and wearable unit for thesame | |
KR102237251B1 (en) | Golf information providing system and wearable unit for thesame | |
WO2022102491A1 (en) | Control apparatus and control method | |
KR102224185B1 (en) | Wearable unit and golf information system including the same | |
KR20240001994A (en) | Indicator app for golf putting and putting information supportting method therefor | |
KR20190107510A (en) | Server, method, and computer for analyzing data within a golf field | |
KR20230053779A (en) | System for Managing Golf Based on Ultra Wide Band | |
CN116797728A (en) | AR-based billiard game referee method, device, storage medium and AR glasses | |
KR20070089316A (en) | System and method for providing virtual gps golf game |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |