WO2024120212A1 - Distance determination method in golf course, electronic device, and storage medium - Google Patents

Distance determination method in golf course, electronic device, and storage medium Download PDF

Info

Publication number
WO2024120212A1
WO2024120212A1 PCT/CN2023/133668 CN2023133668W WO2024120212A1 WO 2024120212 A1 WO2024120212 A1 WO 2024120212A1 CN 2023133668 W CN2023133668 W CN 2023133668W WO 2024120212 A1 WO2024120212 A1 WO 2024120212A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
inflection point
golf course
green
point
Prior art date
Application number
PCT/CN2023/133668
Other languages
French (fr)
Chinese (zh)
Inventor
卢超群
Original Assignee
华为技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024120212A1 publication Critical patent/WO2024120212A1/en

Links

Definitions

  • the embodiments of the present application relate to the field of smart terminal technology, and in particular to a method for determining distance in a golf course, an electronic device, and a storage medium.
  • Smart terminal devices such as golf rangefinders and golf watches can help users play golf better.
  • current golf watches can display the distance from the user to the green.
  • the user can adjust the strength of his or her shot according to the distance from the green to achieve a higher score.
  • there is an inflection point between the green and the user there is an inflection point between the green and the user.
  • Current golf watches display the straight-line distance between the green and the user, and the distance calculation is inaccurate, which will affect the user's shot accuracy.
  • the embodiments of the present application provide a method for determining distance in a golf course, an electronic device, and a storage medium, which can improve the accuracy of distance calculation.
  • the embodiment of the present application provides a method for determining the distance in a golf course.
  • the execution subject of the method for determining the distance in a golf course may be a terminal device or a chip in the terminal device.
  • the present application does not limit this.
  • the following description is made using the terminal device as an example.
  • the terminal device may obtain the user's location, and obtain information about the turning point of the fairway in the golf course based on the user's location; the terminal device may obtain the distance between the user and the green in the golf course based on the information about the turning point, and then the terminal device may display the turning point and the distance between the user and the green in a golf course map.
  • the turning point in the fairway is taken into account instead of calculating the straight-line distance between the user and the green, so the calculation accuracy of the distance between the user and the green can be improved.
  • the terminal device can also display the turning point and the distance between the user and the green on the golf course map, which can assist the user to hit the ball more accurately and improve the user experience.
  • the inflection point can be understood as the landing point of the golf ball recommended to the user, so that the user can hit the ball accurately according to the inflection point displayed in the golf course map.
  • the inflection point information includes: the position of at least one inflection point or an inflection point range
  • the inflection point range includes the position of the at least one inflection point
  • displaying the inflection point in the golf course map includes: displaying the at least one inflection point or the inflection point range in the golf course map.
  • the inflection point information includes the position of at least one inflection point or the inflection point range, which can provide the user with the position of one or more inflection points, making it easier for the user to determine the situation at the inflection point of the fairway, so that the user can hit the ball accurately, thereby improving the user experience.
  • obtaining the distance between the user and the green of the golf course based on the inflection point information includes: when the inflection point information includes the position of the at least one inflection point, taking the sum of the distance between the user and a target inflection point and the distance between the target inflection point and the green as the distance between the user and the green, the target inflection point being included in the at least one inflection point.
  • the center point of the inflection point range is determined; and the sum of the distance between the user and the center point and the distance between the center point and the green is taken as the distance between the user and the green.
  • the terminal device can accurately obtain the distance between the user and the green based on the inflection point information, thereby improving calculation accuracy.
  • the terminal device can determine the target teeing ground where the user is located according to the position of the user, and then use the information of the turning point corresponding to the target teeing ground as the information of the turning point of the fairway in the golf course.
  • the terminal device may pre-acquire the inflection point information corresponding to at least one teeing station in the golf course. In this way, after determining the target teeing station where the user is located, the terminal device may acquire the inflection point information of the target teeing station from the inflection point information corresponding to the at least one teeing station.
  • the terminal device may obtain information about the inflection point corresponding to at least one teeing station in the golf course from the server in advance. For example, when the terminal device requests map data of the golf course from the server, it may receive information about the inflection point corresponding to at least one teeing station from the server. The server obtains information about the inflection point corresponding to at least one teeing station, and the description of the terminal device obtaining information about the inflection point corresponding to at least one teeing station may be referred to. In this implementation, the terminal device does not need to obtain information about the inflection point corresponding to at least one teeing station, and the amount of calculation of the terminal device may be reduced.
  • the terminal device may obtain inflection point information corresponding to at least one tee box in the golf course according to map data of the golf course.
  • the map data of the golf course includes: a fairway outline, a center line, a center point of the green, a center point of the fairway, and a center point of at least one teeing ground, and the center line is: a line connecting the center point of at least one teeing ground, the center point of the fairway, and the center point of the green.
  • the inflection points included in the inflection point information corresponding to the tee satisfy the following conditions:
  • the first line segment is within the fairway contour, is on the center line, and the distance from the center point of the green is greater than a first threshold; and the angle between the first line segment and the second line segment is within a preset angle range, the first line segment is a line connecting the center point of the green, and the second line segment is a line connecting the center point of the tee.
  • the inflection point included in the inflection point information corresponding to tee 1 satisfies the following conditions: the first line segment is within the fairway contour, is on the center line, and the distance from the center point of the green is greater than a first threshold; and the angle between the first line segment and the second line segment is within a preset angle range, the first line segment is a line connecting the center point of the green, and the second line segment is a line connecting the center point of the tee 1.
  • the purpose of setting the turning point in this way in the embodiment of the present application is to facilitate the user to determine the situation at the corner of the fairway, so that the user can adjust his or her hitting strength and hitting direction to improve the accuracy of hitting.
  • the inflection point included in the inflection point information is: the inflection point corresponding to the maximum angle within the preset angle range.
  • the target inflection point is the inflection point
  • the terminal device can use the sum of 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.
  • the inflection point information corresponding to the tee includes the positions of multiple inflection points
  • the inflection point corresponding to the maximum angle within the preset angle range can be used as the target inflection point.
  • the purpose of such arrangement of the present application is that if the user hits the golf ball at the inflection point corresponding to the maximum angle within the preset angle range, the user can see the green at the inflection point, which is convenient for the user to accurately determine the subsequent hitting strategy and improve the user experience.
  • the terminal device can obtain the information of the turning point based on the user's position and the map data of the golf course.
  • the map data of the golf course includes: a fairway outline, a center line, a center point of the green, a center point of the fairway, and a center point of at least one teeing ground, and the center line is: a line connecting the center point of at least one teeing ground, the center point of the fairway, and the center point of the green.
  • the inflection point included in the inflection point information satisfies the following conditions: being within the fairway contour, being on the center line, and being at a distance from the center point of the green greater than a first threshold; and, an angle between a first line segment and a third line segment is within a preset angle range, the first line segment being a line connecting the center point of the green, and the third line segment being a line connecting the user's position.
  • the map data of the golf course also includes: the starting point of the fairway. Before obtaining the information of the turning point based on the position of the user and the map data of the golf course, it also includes: obtaining the distance between the user and the center point of the green, and the distance between the starting point of the fairway and the center point of the green; obtaining the information of the turning point based on the position of the user and the map data of the golf course includes: in response to the distance between the user and the center point of the green being greater than the distance between the starting point of the fairway and the center point of the green, obtaining the information of the turning point based on the position of the user and the map data of the golf course.
  • the terminal device can also detect whether the user has crossed the starting point of the fairway. If the user is at the starting point of the fairway, the user can see the green, and there is no need to recommend an inflection point for the user, which can reduce the amount of calculation of the terminal device. If the user has not crossed the starting point of the fairway, there is still an inflection point between the user and the green, and the user cannot see the green. The terminal device can continue to recommend an inflection point for the user based on the user's position so that the user can hit the ball accurately.
  • the map data of the golf course also includes: a hole contour, and obtaining information about turning points of the fairway in the golf course based on the user's position includes: detecting whether the user's position is included in the hole contour of a target hole, where the target hole is the hole selected by the user; if so, obtaining information about turning points of the fairway in the golf course based on the user's position.
  • a golf course includes many holes.
  • the user Before a user starts playing golf, the user can select a target hole on a terminal device. If the user is not in the hole outline of the target hole, the terminal device can determine that the user has selected an incorrect hole and can prompt the user to reselect a hole. When the user is in the hole outline of the target hole, the terminal device can determine that the user has selected a correct hole and can execute the method provided in this application to obtain information about the turning point of the fairway in the golf course based on the user's location.
  • the terminal device can be prevented from performing unnecessary calculations, thereby reducing the power consumption of the terminal device.
  • the terminal device in response to an instruction to start playing golf, requests a server to download the map data of the golf course if the map data of the golf course is not stored; accordingly, the terminal device can receive the map data of the golf course from the server.
  • the terminal device may request to download the map data of the golf course before the sport starts, so that the information of the turning points in the golf course can be calculated in real time to assist the user in hitting the ball.
  • the terminal device in order to reduce the power consumption of the terminal device, when the terminal device is in a screen-on state, the terminal device can obtain the location of the user once every first time period, and when the terminal device is in a screen-off state, the terminal device can obtain the location of the user once every second time period, and the second time period is greater than the first time period.
  • an embodiment of the present application provides an electronic device, which may include: a processor and a memory.
  • the memory is used to store computer executable program code, and the program code includes instructions; when the processor executes the instructions, the instructions cause the electronic device to execute the method in the first 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 include a unit, a module or a circuit for executing the method provided in the first aspect above.
  • an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method in the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the method in the first aspect above.
  • the present application provides a method for determining the distance in a golf course, an electronic device, and a storage medium.
  • the terminal device can determine the inflection point in the fairway based on the map data, and then calculate the distance between the user and the green based on the inflection point. Because the embodiment of the present application takes into account the inflection point in the fairway instead of calculating the straight-line distance between the user and the green, the calculation accuracy of the distance between the user and the green can be improved.
  • the terminal device can also display the inflection point and the distance between the user and the green in the golf course map, which can assist the user to hit the ball more accurately and improve the user experience.
  • FIG1 is a schematic diagram of a golf course
  • FIG2 is a schematic diagram of a terminal device provided in an embodiment of the present application.
  • FIG3 is a flow chart of an embodiment of a method for determining distance in a golf course provided in an embodiment of the present application
  • FIG4 is a schematic diagram of an interface of a terminal device provided in an embodiment of the present application.
  • FIG5 is another schematic diagram of an interface of a terminal device provided in an embodiment of the present application.
  • FIG6 is another schematic diagram of an interface of a terminal device provided in an embodiment of the present application.
  • FIG7 is another schematic diagram of an interface of a terminal device provided in an embodiment of the present application.
  • FIG8 is a flow chart of another embodiment of a method for determining distance in a golf course provided in an embodiment of the present application.
  • FIG9A is a flow chart of another embodiment of a method for determining distance in a golf course provided in an embodiment of the present application.
  • FIG9B is a schematic diagram of a scenario provided in an embodiment of the present application.
  • FIG. 10 is a flow chart of another embodiment of a method for determining distance in a golf course provided in an embodiment of the present application.
  • Golf course map data may include data of various areas in a golf course. Each area includes a green, a tee, a hole, a fairway, etc. The data of each area includes, but is not limited to, the location of each area, the location of the center point of each area, etc. In the following, "golf course map data" is referred to as "map data”.
  • the location of each area and the location of the center point of each area included in the map data may be represented by longitude and latitude coordinates.
  • the map data may be vector surveying data (GeoJson) obtained by staff surveying in a golf course.
  • Green The lawn on which the hole is located.
  • a golf course may include multiple greens.
  • Center point of the green the center of the green.
  • the map data includes the location of the center point of the green.
  • Tee A lawn used for serving the ball, which can be used by users to serve the first shot.
  • Center point of teeing ground the center of teeing ground.
  • the map data includes the center point position of the teeing ground.
  • Hole outline A shape used to characterize the entire lawn occupied from the tee box to the hole.
  • the map data includes each location on the hole outline.
  • Fairway The lawn between the tee and the green that is convenient for users to hit the ball.
  • Fairway profile used to characterize the shape of a fairway.
  • the map data includes locations on the fairway profile.
  • Dog leg hole refers to a hole in the fairway with a large corner, where the user cannot see the green from the tee position.
  • a large corner can be understood as a corner angle within a preset angle range.
  • Inflection point The point in the fairway where there is a sharp turn.
  • Green outline used to characterize the shape of a green.
  • the map data includes locations on the green outline.
  • Obstacle areas such as rough areas, sand pit areas, water hazard areas, etc.
  • unit “yard” is used to represent the distance in the embodiments of the present application, and the embodiments of the present application do not limit the unit for representing the distance.
  • the terminal device in the embodiment of the present application is an electronic device with a display screen.
  • the terminal device can be called a user equipment (UE).
  • the terminal device can be a mobile phone, a handheld device with wireless communication function, a computing device, a watch, a bracelet and other wearable devices, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, etc.
  • VR virtual reality
  • AR augmented reality
  • the form of the terminal device is not specifically limited in the embodiment of the present application.
  • FIG1 is a schematic diagram of a golf course.
  • a golf course includes: at least one tee 11, a fairway 12, a green 13, and a hole 14.
  • FIG1 takes at least one tee including a tee 1 and a tee 2 as an example.
  • the area of the golf course other than the tee 11, the fairway 12, the green 13, and the hole 14 can be called an obstacle area 15.
  • FIG1 takes the tee 11 as a rectangle as an example. In FIG1 , there is a corner in the fairway 12 from the tee 11 to the green 13, and the user cannot see the green 13 from the tee 11.
  • the shape from the tee 11 to the green 13 is similar to a dogleg, and the hole 14 in the green 13 can be called a dogleg hole.
  • FIG1 also shows the outline of the hole (i.e., the outline formed by the outermost solid line).
  • Terminal devices include golf rangefinders, golf watches, etc.
  • a golf rangefinder can emit lasers to measure distance.
  • the user cannot see the green when teeing off, and there are many obstacles between the teeing platform and the green.
  • the laser emitted by the golf rangefinder will be reflected by the obstacles, so the golf rangefinder cannot measure the distance between the user and the green.
  • Golf watches are a type of wearable smart terminal device that can provide users with functions such as displaying golf holes, calculating green distances and obstacle distances. It should be understood that the green distance can be understood as the distance between the user and the green. Golf watches can calculate the distance from the user to a designated point based on preset golf course data and the positioning data of the golf watch to assist users in formulating a shot strategy. Golf watches can calculate the distance between the user and the green based on the positioning data of the golf watch and the location of the green in the golf course data. However, the distance calculated by the golf watch is the straight-line distance from the user to the green. Referring to Figure 1, when there is a corner between the user and the green, the straight-line distance calculated by the golf watch is not the actual distance between the user and the green. Inaccurate distance calculation will affect the user's shot accuracy.
  • the embodiment of the present application provides a method for determining the distance in a golf course, which can obtain the turning point between the user and the green, and then determine the distance between the user and the green according to the inflection point.
  • the inflection point can accurately obtain the distance between the user and the green, which can improve the calculation accuracy, better assist the user in hitting the ball, and improve the user experience.
  • FIG2 is a schematic diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device 200 may include: a processor 210, a memory 220, a communication module 230, an audio module 240, a sensor 250, a display screen 260, and a positioning module 270, etc.
  • the processor 210 may include one or more processing units, 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. Among them, different processing units can be independent devices or integrated in one or more processors.
  • the terminal device 200 may also include one or more processors 210. Among them, the processor 210 may be the nerve center and command center of the terminal device 200. The processor 210 may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
  • a memory may also be set in the processor 210 for storing instructions and data.
  • the memory 220 may be used to store one or more computer programs, which include instructions.
  • the processor 210 may enable the terminal device 200 to perform various functional applications and data processing by running the above instructions stored in the memory 220.
  • the processor 210 may enable the terminal device 200 to perform various functional applications and data processing by running the instructions stored in the memory 220 and/or the instructions stored in the memory provided in the processor 210.
  • the memory 220 may store user data, map data, and data related to the user's golfing, etc.
  • User data includes the user's account, password, face, etc.
  • the data related to the user's golfing may include: score, number of strokes used to score a goal on each hole, strength and direction of each swing, etc.
  • the communication module 230 may include, but is not limited to, 2G/3G/4G/5G and other mobile communication modules, or wireless local area networks (WLAN), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared technology (IR), and other modules.
  • WLAN wireless local area networks
  • GNSS global navigation satellite system
  • FM frequency modulation
  • IR infrared technology
  • the terminal device 200 can communicate with the network and other devices through the communication module 230.
  • the terminal device 200 can implement audio functions through the audio module 240, such as music playing, recording, etc.
  • the audio module 240 can be used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signals.
  • the sensor 250 may include, but is not limited to, a gyro sensor 250A, an acceleration sensor 250B, a distance sensor 250C, and the like.
  • the gyroscope sensor 250A can be used to determine the motion posture of the terminal device 200.
  • the angular velocity of the terminal device 200 around three axes i.e., x, y, and z axes
  • the acceleration sensor 250B can detect the magnitude of the acceleration of the terminal device 200 in various directions (such as x, y, and z axes).
  • the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and is applied to horizontal and vertical screen switching, pedometers and other applications.
  • Distance sensor 250C is used to measure distance.
  • the terminal device 200 can measure distance by infrared or laser.
  • the display screen 260 is used to display images, videos, etc.
  • the display screen 260 includes a display panel.
  • the terminal device 200 may include 1 or N display screens 260, where N is a positive integer greater than 1.
  • the positioning module 270 is used to realize the positioning of the terminal device and can obtain the position of the terminal device.
  • the position of the terminal device can be the latitude and longitude coordinates of the terminal device.
  • the positioning module 270 can include but is not limited to: a global positioning system (GPS), a Beidou satellite navigation system, and a global navigation satellite system (GNSS).
  • GPS global positioning system
  • GNSS global navigation satellite system
  • the structure illustrated in this embodiment does not constitute a specific limitation on the terminal device 200.
  • the terminal device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • FIG3 is a flow chart of an embodiment of a method for determining a distance in a golf course provided in an embodiment of the present application.
  • the method for determining a distance in a golf course provided in an embodiment of the present application may include:
  • a golf course may include multiple greens. Referring to FIG. 1 , each green may correspond to at least one tee. Taking a teeing ground as an example, the process of a terminal device obtaining information of an inflection point corresponding to the teeing ground is explained.
  • the user can trigger the terminal device to download the map data of the golf course.
  • the user can turn on the golf mode in the terminal device so that the terminal device can obtain relevant data of the user when playing golf.
  • the terminal device can obtain the location of the terminal device.
  • the terminal device can display the name of the golf course where the terminal device is located according to the location of the terminal device.
  • the terminal device can obtain the location of the terminal device in response to an instruction to start playing golf.
  • the instruction to start playing golf can be, for example, turning on the golf mode for the user, or the user operating a "start playing golf” button or inputting a voice of "start playing golf", etc., which is not limited in the embodiment of the present application.
  • the terminal device may also display the names of golf courses around the location of the terminal device. As shown in FIG4 , the terminal device may display the name of the golf course where the terminal device is located, Course 1, and the names of golf courses around the location of the terminal device, such as Course 2 and Course 3. The user may select the name of the golf course where he is located to trigger the terminal device to download the map data of the golf course. For example, if the user selects Course 1, the terminal device may download the map data of Course 1.
  • the terminal device may request the server to download the map data of the golf course 1.
  • the server may store the map data of multiple golf courses.
  • the map data of the golf course may be uploaded to the server by the staff after surveying the golf course, and the embodiment of the present application is not limited to this.
  • the terminal device may store the map data of the golf course.
  • the terminal device may obtain the location of the terminal device.
  • the terminal device may not display the interface shown in FIG. 4 .
  • the map data of a golf course may include: a green outline, a center point position of a green, a tee position, a center point position of a tee, a hole outline, a fairway outline, and a center line coordinate.
  • the green outline may include: the longitude and latitude coordinates of each position on the green outline
  • the center point position of the green includes the longitude and latitude coordinates of the center point of the green.
  • the tee position may include: the longitude and latitude coordinates of each position on the tee outline
  • the center point position of the tee includes the longitude and latitude coordinates of the center point of the tee.
  • the hole outline includes: the longitude and latitude coordinates of each position on the hole outline
  • the fairway outline includes: the longitude and latitude coordinates of each position on the fairway outline.
  • the center line is the center point of each tee, the center point of the fairway, and the center point of the green
  • the center line coordinates include: the longitude and latitude coordinates of each position on the center line.
  • black dots are used in Figure 1 to represent the center point of the green and the center point of the tee
  • dotted lines are used to represent the center line.
  • the inflection point information may include: the position of the inflection point.
  • each tee may correspond to at least one inflection point, or each tee may correspond to a range of inflection points.
  • the terminal device can obtain information about the inflection point in the location included in the map data of the golf course.
  • the terminal device can obtain candidate inflection points in the location included in the map data of the golf course, and then determine the inflection point based on the candidate inflection points.
  • the candidate inflection point needs to meet the following conditions:
  • the straight-line distance from the center point of the green is greater than a first threshold.
  • the first threshold may be predefined, and for example, the first threshold may be 35 meters.
  • a first line segment is obtained by connecting the center point of the green
  • a second line segment is obtained by connecting the center point of the tee
  • the angle between the first line segment and the second line segment is within a preset angle range.
  • the preset angle range may be predefined, and illustratively, the preset angle range may be 40°-180°.
  • the corner from the tee to the green is within the fairway, and the inflection point is also within the fairway contour.
  • the inflection point is set on the center line instead of the edge of the fairway contour, which gives the user some trial and error opportunities. For example, after the user hits the golf ball, the landing point of the golf ball deviates from the inflection point, but because the inflection point is set on the center line in the present application, even if the landing point of the golf ball deviates from the inflection point, the golf ball will fall within the fairway contour. If the inflection point is set at the edge of the fairway contour, the landing point of the golf ball may deviate from the fairway contour, which will increase the difficulty of the user's hitting.
  • the straight-line distance between the inflection point and the center point of the green is set to be greater than the first threshold value, and the first threshold value is the position where the user can see the green. This can help the user determine the inflection point. If the user hits the golf ball to the inflection point, the user can see the green, which is helpful for the user to place the golf ball.
  • the angle between the first line segment and the second line segment is set within a preset angle range in order to facilitate the determination of the turning point at the corner of the fairway, which can assist the user in determining the turning point. If the user hits the golf ball to the turning point, the green can be seen, which is also conducive to the user's next step of hitting the ball.
  • the terminal device can filter and obtain candidate inflection points according to the above four conditions, and the embodiment of the present application does not limit the order in which the terminal device uses the above four conditions.
  • the terminal device can obtain candidate inflection points in the order of conditions 1 to 4.
  • the terminal device can use the position within the fairway contour as the first candidate inflection point.
  • the terminal device can use the first candidate inflection point on the center line as the second candidate inflection point.
  • the terminal device can calculate the distance between each second candidate inflection point and the center point of the green, and use the second candidate inflection point whose distance is greater than the first threshold as the third candidate inflection point.
  • the terminal device can 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 tee to obtain a second line segment, and obtain the angle between the first line segment and the second line segment corresponding to each third candidate inflection point.
  • the terminal device can use the third candidate inflection point corresponding to the angle within the preset angle range as the candidate inflection point.
  • the terminal device may connect the third candidate inflection point with the center point of the different teeing grounds to obtain the second line segment.
  • at least one teeing ground includes teeing ground 1 and teeing ground 2.
  • the terminal device may connect each third candidate inflection point with the center point of teeing ground 1 to obtain the second line segment to calculate the angle between the first line segment and the second line segment.
  • the terminal device may connect each third candidate inflection point with the center point of teeing ground 2 to obtain the second line segment to calculate the angle between the first line segment and the second line segment.
  • the information of the inflection point corresponding to the tee may include the position of an inflection point.
  • the terminal device can filter out multiple candidate inflection points according to the above four conditions, the terminal device can use the candidate inflection point with the largest angle as the final inflection point.
  • the inflection point information corresponding to the tee may include: the position of the candidate inflection point with the largest angle.
  • the terminal device can filter out a candidate inflection point according to the above four conditions, the terminal device can use the candidate inflection point as the final inflection point.
  • the information of the inflection point corresponding to the tee may include the position of at least one inflection point.
  • the terminal device can screen multiple candidate inflection points according to the above four conditions, the terminal device can use the candidate inflection point with the largest angle and the candidate inflection point with the smallest angle as the final inflection point.
  • This setting is to facilitate the user to determine the situation at the corner of the fairway, so that the user can adjust his hitting strength, hitting direction, etc., so that the golf ball can land between the two inflection points.
  • the terminal device can use the candidate inflection point with the largest angle, the candidate inflection point farthest from the green, and the candidate inflection point closest to the green as the final inflection point.
  • This setting is to facilitate the user to determine the inflection point closest to the green and the farthest from the green. If the user's hitting ability is limited, the user can be guided to hit the ball to the inflection point closest to the green.
  • the terminal device also uses the candidate inflection point with the largest angle as the inflection point, which can facilitate the user to determine the situation at the corner of the fairway.
  • the information of the inflection point corresponding to the tee may include an inflection point range, and the inflection point range may represent a position range.
  • the inflection point range includes the position of at least one inflection point.
  • the terminal device can screen and obtain multiple candidate inflection points according to the above four conditions, the terminal device can determine the candidate inflection point with the largest angle and the candidate inflection point with the smallest angle. For example, the terminal device can use the two candidate inflection points as two points on a circle to determine the inflection point range.
  • This setting is to facilitate the user to determine the situation at the corner of the fairway, and also allows the user to adjust his or her hitting strength, hitting direction, etc., so that the landing point of the golf ball can be between the two inflection points.
  • the shape of the inflection point range is not limited in the embodiment of the present application, and can also be a rectangle, square, triangle, etc.
  • some teeing grounds in a golf course do not have corresponding inflection points, and the terminal device does not need to obtain information about the inflection points corresponding to these teeing grounds.
  • the server in a scenario where a terminal device requests a server to download map data of a golf course, since the server pre-stores the map data of the golf course, the server can obtain information on the inflection points corresponding to the teeing grounds according to the scenario of the map data of the golf course. Thus, when the terminal device requests the server to download the map data of the golf course, the server can send the map data of the golf course and the information on the inflection points corresponding to the teeing grounds to the terminal device.
  • the server rather than the terminal device, obtains the information on the inflection points corresponding to the teeing grounds, which can reduce the processing time of the terminal device, and when downloading the map data of the golf course, the information on the inflection points corresponding to the teeing grounds can be obtained at the same time.
  • the terminal device includes a positioning module, and the terminal device can obtain the location of the terminal device through the positioning module. Because the user wears the terminal device, the terminal device can use the location of the terminal device as the location of the user.
  • the terminal device may obtain the user's location in response to the golf mode being turned on. In one example, the terminal device may periodically obtain the user's location, and then execute S303-S304.
  • the user can select a target hole on the terminal device when turning on the golf mode or starting to play golf.
  • the target hole is the hole where the user expects to score a goal.
  • the terminal device can detect whether the user's position is included in the hole outline of the target hole. If the user's position is included in the hole outline of the target hole, the terminal device can execute S303-S304. If the user's position is not included in the hole outline of the target hole, it indicates that the user may have deviated from the hole outline of the target hole, and the terminal device may not execute S303-S304.
  • the terminal device can obtain the position of each teeing station according to the map data, and the terminal device can use the teeing station where the user is located as the target teeing station. In one example, the terminal device can detect which teeing station includes the user's position, and use the teeing station including the user's position as the target teeing station.
  • S304 Display the turning point and the distance between the user and the green on the golf course map according to the information of the turning point corresponding to the target tee.
  • the terminal device can display the golf course map on the terminal device. For example, referring to a in FIG. 5 , the terminal device can display a partial map around the user's location in the golf course according to the user's location, and display the user's location in the map, such as location A.
  • FIG. 5 takes the partial map including the tee, fairway, and green shown in FIG. 1 as an example.
  • the terminal device can pre-acquire the information of the inflection points corresponding to multiple teeing stations in the golf course, the terminal device can acquire the information of the inflection point corresponding to the target teeing station from the information of the inflection points corresponding to the multiple teeing stations.
  • the information of the inflection point corresponding to the target teeing station may include the position of the inflection point, so the terminal device can display the inflection point in the golf course map. Referring to a in FIG. 5 , the terminal device can display an inflection point, such as position B, in the golf course map.
  • the terminal device can display multiple inflection points in the golf course map, such as position B and position C.
  • the terminal device can display the inflection point range in the golf course map, such as the range covered by the gray circle.
  • the purpose of the terminal device displaying the inflection point in the golf course map is to recommend the landing point of the golf ball to the user.
  • the user can adjust his or her hitting strength, hitting direction, etc. according to the position of the inflection point so that the golf ball can land at the inflection point.
  • the terminal device can also determine the distance between the tee and the green based on the inflection point information. Taking a tee as an example, the terminal device can determine the first line segment and the second line segment with the largest angle based on the inflection point information corresponding to the tee, and add the lengths of the first line segment and the second line segment as the distance between the tee and the green. Accordingly, the terminal device can obtain the distance between the target tee and the green, that is, the distance between the user and the green.
  • the terminal device can also display the distance between the target tee and the green, that is, the distance between the user and the green.
  • a in Figure 5 takes the center point of the green as the center of the circle, and uses circles of different radii to represent the distance between the user and the green.
  • the terminal device may also display the distance between the user and the inflection point, which is the length of the first line segment.
  • a in FIG. 5 may use circles of different radii with the user's position as the center to represent the distance between the user and the inflection point.
  • the terminal device may use the distance between the inflection point with the largest angle and the user as the distance between the user and the inflection point.
  • the terminal device may 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.
  • the terminal device may also obtain the angle of the inflection point corresponding to the target tee relative to the user based on the inflection point information corresponding to the target tee and the user's position.
  • the terminal device may obtain the angle of the inflection point relative to the user based on the position of the inflection point where the angle between the first line segment and the second line segment is the largest and the user's position in the inflection point information corresponding to the target tee.
  • the terminal device may obtain the angle of the center point of the inflection point range relative to the user based on the position of the center point of the inflection point range and the user's position.
  • the terminal device may display the angle of the inflection point relative to the user in the golf course map.
  • an arrow and a direction “such as 10° northwest” are used to represent the angle of the inflection point relative to the user.
  • the terminal device may also display the number of the dogleg hole and the par score.
  • the dogleg hole is hole No. 2 (indicated by H02 in Figure 5) and the par score is 5 (indicated by Par5 in Figure 5).
  • the terminal device can determine the inflection point in the fairway based on the map data, and then calculate the distance between the user and the green based on the inflection point. Because the embodiment of the present application takes into account the inflection point in the fairway instead of calculating the straight-line distance between the user and the green, the calculation accuracy of the distance between the user and the green can be improved. In addition, the terminal device can also display the inflection point and the distance between the user and the green in the golf course map, which can assist the user to hit the ball more accurately and improve the user experience.
  • the terminal device when the user hits the first shot, or when the user is at the tee, the terminal device can obtain the inflection point information, as well as the position of the user and the green according to the embodiment shown in FIG3.
  • the landing point of the golf ball is not included in the tee.
  • the terminal device cannot obtain the inflection point information from the existing inflection point information corresponding to the tee, nor can it display the inflection point.
  • the user hits the ball at the tee 1
  • the landing point of the golf ball is at position D.
  • the terminal device cannot obtain the inflection point information, nor can it display the inflection point.
  • the terminal device can obtain the inflection point information according to the user's position. In this way, even if the user's position is not included in the tee box, the terminal device can obtain the inflection point information and display the inflection point and the distance to the green.
  • the method for determining the distance in a golf course may include:
  • S801 may refer to the relevant description of S302.
  • the terminal device may detect whether the user's position is included in the hole contour of the target hole. If the user's position is included in the hole contour of the target hole, the terminal device may execute S802-S803. If the user's position is not included in the hole contour of the target hole, it indicates that the user may have deviated from the hole contour of the target hole, and the terminal device may not execute S802-S803.
  • the terminal device may obtain information about the inflection point in the location included in the map data.
  • the terminal device may obtain candidate inflection points in the location included in the map data, and then determine the inflection point based on the candidate inflection points.
  • the candidate inflection points need to meet the following conditions:
  • Condition 3 The straight-line distance from the center point of the green is greater than the first threshold.
  • a first line segment is obtained by connecting the center point of the green
  • a third line segment is obtained by connecting the user's position
  • an angle between the first line segment and the third line segment is within a preset angle range.
  • the angle between the first line segment and the third line segment is obtained in condition 5, and the third line segment is a line connecting the user's position.
  • the distance between the user and the green is the sum of the lengths of the first line segment and the third line segment.
  • the terminal device can filter and obtain candidate inflection points according to the above four conditions. The embodiment of the present application does not limit the order in which the terminal device uses the above four conditions, and can refer to the relevant description in S301.
  • the terminal device can obtain the inflection point information when determining that the user's position has not passed the starting point of the fairway. It should be understood that the purpose of such a setting is that if the user's position has passed the starting point of the fairway, the user is likely to be able to see the green, so there is no need to display the inflection point, and the user can adjust the hitting force, hitting angle, etc. based on his or her own experience.
  • the starting point of the fairway can be understood as: the intersection of the fairway contour and the center line, and the intersection is the intersection away from the green.
  • the intersection of the fairway contour and the center line is intersection a and intersection b, and intersection b can be used as the starting point of the fairway.
  • the terminal device can obtain the distance between the user and the green based on the position of the user and the position of the center point of the green, and can obtain the distance between the starting point of the fairway and the green based on the position of the starting point of the fairway and the position of the center point of the green.
  • the terminal device can obtain the information of the inflection point, and in response to the distance between the starting point of the fairway and the green being greater than the distance between the user and the green, the terminal device does not need to obtain the information of the inflection point.
  • S803 Display the inflection point and the distance between the user and the green on the golf course map according to the inflection point information.
  • the terminal device may execute S802 to obtain information about the inflection point, and then the terminal device may display the inflection point and the distance between the user and the green in the golf course map.
  • FIG9A is a schematic diagram showing a flow chart of a method for determining a distance in a golf course executed by a terminal device.
  • the terminal device can download the map data of the golf course, and extract the data required by the terminal device from the map data of the golf course, such as the outline of the green, the center point position of the green, the tee position, the center point position of the tee, the outline of the hole, the outline of the fairway, and the center line coordinates.
  • the terminal device can filter out invalid points according to the conditions that the inflection point needs to meet. Invalid points are points that are not candidate inflection points.
  • the terminal device can connect the candidate inflection point and the user and the center point of the green to obtain a first line segment, and connect the candidate inflection point and the tee to obtain a second line segment (or connect the candidate inflection point and the user's position to obtain a third line segment), and calculate the angle between the first line segment and the second line segment (or calculate the angle between the first line segment and the third line segment).
  • the terminal device can use the candidate inflection point corresponding to the maximum angle as the inflection point of the fairway.
  • the terminal device can obtain the inflection point information based on the user's position, so that even if the user's position is not included in the tee, the terminal device can obtain the inflection point information, which can ensure the accuracy of the inflection point and display the accurate inflection point to the user.
  • the terminal device may periodically obtain the location of the user, and then may periodically update the display inflection point and the distance between the user and the green.
  • the terminal device may determine a period for acquiring the user's location according to the state of the terminal device, so as to adaptively adjust the computing power of the terminal device and reduce the power consumption of the terminal device.
  • the state of the terminal device includes a screen-on state and a screen-off state.
  • the terminal device When the terminal device is in the screen-on state, the user's position is obtained once every first time period.
  • the terminal device is in the screen-off state, the user's position is obtained once every second time period, and the second time period is greater than the first time period.
  • the terminal device can obtain the user's position every 1 second, so that the terminal device updates the inflection point and the distance between the user and the green every 1 second.
  • the terminal device is in the screen-off state, it indicates that the user is not looking at the map of the golf course. For example, the terminal device can obtain the user's position every 1 minute, so that the terminal device updates the inflection point and the distance between the user and the green every 1 minute.
  • the terminal device when the terminal device is in the screen-on state, the terminal device can update the inflection point and the distance between the user and the green every 1 second.
  • the terminal device when the terminal device is in the screen-off state, the terminal device can update the inflection point and the distance between the user and the green every 1 minute. Since the terminal device is in the screen-off state, b in FIG9B does not show the interface of the terminal device.
  • the state of the terminal device can represent the user's motion state.
  • the terminal device can obtain changes in the posture of the terminal device according to the sensor 250 in the terminal device, and then determine the user's motion state.
  • the terminal device can increase the period of obtaining the user's position, or the terminal device does not obtain the user's position when the user moves.
  • the terminal device can reduce the period of obtaining the user's position to timely display the inflection point and the distance between the user and the green.
  • the terminal device can adaptively adjust the calculation cycle according to the state of the terminal device, thereby reducing the power consumption of the terminal device.
  • the terminal device in order to reduce the workload of the terminal device and reduce the power consumption of the terminal device, can display a button for pausing positioning.
  • the terminal device can be triggered to pause obtaining the user's position, and then pause the execution of obtaining the inflection point information, and displaying the inflection point, the distance between the user and the green.
  • the user after hitting the ball on the tee, the user can move to the landing point of the golf ball.
  • the terminal device keeps calculating the user's position and the inflection point information, the power consumption of the terminal device will be consumed.
  • the user after hitting the ball on the tee, the user can operate the button for pausing positioning to trigger the terminal device to pause obtaining the user's position.
  • the user can operate the button for pausing positioning again to trigger the terminal device to obtain the user's position. In this way, during the process of the user moving to the landing point of the golf ball, the terminal device does not need to obtain the user's position, which can reduce the calculation amount and power consumption of the terminal device.
  • the method for determining the distance in a golf course may include:
  • the terminal device can obtain the inflection point information according to the user's location and map data, and the relevant description in S802 can be referred to. In one example, the terminal device can determine the target teeing station where the user is located according to the user's location, and then obtain the inflection point information corresponding to the target teeing station according to the obtained inflection point information corresponding to the teeing station.
  • the terminal device may obtain information about the inflection point corresponding to each position in the non-obstruction area.
  • the non-obstruction area may be understood as other areas of the golf course except the non-obstruction area.
  • the manner in which the terminal device obtains information about the inflection point corresponding to each position may refer to the relevant descriptions in S301 and S802. It should be noted that there is no corresponding inflection point at some positions, so it is not necessary to obtain the information about the inflection point at this position. The inflection points of these positions are those that cross the beginning of the fairway.
  • the terminal device can determine the information of the inflection point corresponding to the user's position based on the user's position and the acquired information of the inflection point corresponding to each position in the non-obstruction area.
  • the non-obstructed area can be divided into multiple sub-areas, and the embodiment of the present application does not limit the number, shape, etc. of the sub-areas.
  • the terminal device can obtain the information of the inflection point corresponding to each sub-area, and refer to the relevant description in S301.
  • the terminal device can determine the target sub-area where the user is located according to the user's position, and then use the information of the inflection point corresponding to the target sub-area as the information of the inflection point corresponding to the user's position, and refer to the relevant description in S303.
  • S1003 Display the inflection point and the distance between the user and the green on the golf course map according to the inflection point information.
  • the user information including but not limited to user device information, user personal information, etc.
  • data including but not limited to data used for analysis, stored data, displayed data, etc.
  • the user's location involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
  • modules or components described in the above embodiments may be one or more integrated circuits configured to implement the above methods, such as 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 (FPGAs).
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • FPGAs field programmable gate arrays
  • the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code, such as a controller.
  • these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • the computer program product includes one or more computer instructions.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.).
  • the computer-readable storage medium can be any available medium that can be accessed by the computer or a data storage device such as a server or data center that includes one or more available media integrated.
  • the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
  • SSD Solid State Disk
  • plural in this article refers to two or more than two.
  • the term “and/or” in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist.
  • a and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone.
  • the character "/" in this article generally indicates that the previous and next associated objects are in an "or” relationship; in the formula, the character "/" indicates that the previous and next associated objects are in a "division" relationship.
  • the size of the serial numbers of the above-mentioned processes does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

Landscapes

  • Instructional Devices (AREA)

Abstract

The present application provides a distance determination method in a golf course, an electronic device, and a storage medium. The method comprises: a terminal device acquiring the position of a user when the user plays golf; acquiring information of a turning point of a fairway in the golf course according to the position of the user; acquiring a distance between the user and the putting green in the golf course according to the information of the turning point; and displaying the turning point and the distance between the user and the putting green in a golf course map. The present application considers the turning point in the fairway rather than calculating a linear distance between the user and the putting green, such that the accuracy of calculation of the distance between the user and the putting green can be improved.

Description

高尔夫球场中距离的确定方法、电子设备及存储介质Method for determining distance in golf course, electronic device and storage medium
本申请要求于2022年12月08日提交中国专利局、申请号为202211573786.7、申请名称为“高尔夫球场中距离的确定方法、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the Chinese Patent Office on December 8, 2022, with application number 202211573786.7 and application name “Method for determining distance in a golf course, electronic device and storage medium”, the entire contents of which are incorporated by reference in this application.
技术领域Technical Field
本申请实施例涉及智能终端技术领域,尤其涉及一种高尔夫球场中距离的确定方法、电子设备及存储介质。The embodiments of the present application relate to the field of smart terminal technology, and in particular to a method for determining distance in a golf course, an electronic device, and a storage medium.
背景技术Background technique
随着高尔夫运动的普及,越来越多的用户参与其中,相应的智能终端设备也随之发展。智能终端设备如高尔夫测距仪、高尔夫手表等,可以辅助用户更好地进行高尔夫运动。As golf becomes more popular, more and more users are participating in it, and corresponding smart terminal devices are also developing. Smart terminal devices such as golf rangefinders and golf watches can help users play golf better.
如目前的高尔夫手表可以显示用户距离果岭的距离,用户根据距离果岭的距离,可以调整自己的击球力度,以便取得更高的得分。但在高尔夫球场中,果岭和用户之间会存在拐点,目前的高尔夫手表显示的是果岭和用户之间的直线距离,距离计算不准确,会影响用户的击球准确性。For example, current golf watches can display the distance from the user to the green. The user can adjust the strength of his or her shot according to the distance from the green to achieve a higher score. However, on a golf course, there is an inflection point between the green and the user. Current golf watches display the straight-line distance between the green and the user, and the distance calculation is inaccurate, which will affect the user's shot accuracy.
发明内容Summary of the invention
本申请实施例提供一种高尔夫球场中距离的确定方法、电子设备及存储介质,可以提高距离计算的准确性。The embodiments of the present application provide a method for determining distance in a golf course, an electronic device, and a storage medium, which can improve the accuracy of distance calculation.
第一方面,本申请实施例提供一种高尔夫球场中距离的确定方法,执行该高尔夫球场中距离的确定方法的执行主体可以为终端设备或终端设备中的芯片,本申请对此不作限制,下述以终端设备为例进行说明。在该方法中,在用户进行高尔夫运动的过程中,终端设备可以获取所述用户的位置,且根据所述用户的位置,获取高尔夫球场中球道的拐点的信息;终端设备可以根据所述拐点的信息,获取所述用户与所述高尔夫球场中果岭的距离,进而终端设备可以在高尔夫球场地图中显示拐点,以及所述用户与所述果岭的距离。In the first aspect, the embodiment of the present application provides a method for determining the distance in a golf course. The execution subject of the method for determining the distance in a golf course may be a terminal device or a chip in the terminal device. The present application does not limit this. The following description is made using the terminal device as an example. In the method, during the process of a user playing golf, the terminal device may obtain the user's location, and obtain information about the turning point of the fairway in the golf course based on the user's location; the terminal device may obtain the distance between the user and the green in the golf course based on the information about the turning point, and then the terminal device may display the turning point and the distance between the user and the green in a golf course map.
本申请实施例中考虑到球道中的拐点,而不是计算用户和果岭的直线距离,因此可以提高用户与果岭的距离的计算准确性。另,终端设备还可以在高尔夫球场地图中显示拐点以及用户与果岭的距离,可以辅助用户更准确地击球,提高用户体验。In the embodiment of the present application, the turning point in the fairway is taken into account instead of calculating the straight-line distance between the user and the green, so the calculation accuracy of the distance between the user and the green can be improved. In addition, the terminal device can also display the turning point and the distance between the user and the green on the golf course map, which can assist the user to hit the ball more accurately and improve the user experience.
在一种示例中,拐点可以理解为为用户推荐的高尔夫球的落点,这样,用户可以根据高尔夫球场地图中显示的拐点,准确击球。In one example, the inflection point can be understood as the landing point of the golf ball recommended to the user, so that the user can hit the ball accurately according to the inflection point displayed in the golf course map.
在一种可能的实现方式中,所述拐点的信息包括:至少一个拐点的位置或拐点范围,所述拐点范围包括所述至少一个拐点的位置,所述在高尔夫球场地图中显示拐点,包括:在所述高尔夫球场地图中显示所述至少一个拐点或所述拐点范围。In a possible implementation, the inflection point information includes: the position of at least one inflection point or an inflection point range, the inflection point range includes the position of the at least one inflection point, and displaying the inflection point in the golf course map includes: displaying the at least one inflection point or the inflection point range in the golf course map.
在该实现方式中,拐点信息中包括至少一个拐点的位置或拐点范围,可以为用户提供一个甚至多个拐点的位置,便于用户确定球道拐点处的情况,便于用户可以准确击球,提高用户体验。In this implementation, the inflection point information includes the position of at least one inflection point or the inflection point range, which can provide the user with the position of one or more inflection points, making it easier for the user to determine the situation at the inflection point of the fairway, so that the user can hit the ball accurately, thereby improving the user experience.
在一种可能的实现方式中,所述根据所述拐点的信息,获取所述用户与所述高尔夫球场中果岭的距离,包括:当所述拐点的信息包括所述至少一个拐点的位置时,将所述用户与目标拐点的距离,以及所述目标拐点与所述果岭的距离的加和,作为所述用户与所述果岭的距离,所述目标拐点包含于所述至少一个拐点中。In a possible implementation, obtaining the distance between the user and the green of the golf course based on the inflection point information includes: when the inflection point information includes the position of the at least one inflection point, taking the sum of the distance between the user and a target inflection point and the distance between the target inflection point and the green as the distance between the user and the green, the target inflection point being included in the at least one inflection point.
当所述拐点的信息包括拐点范围时,确定所述拐点范围的中心点;将所述用户与所述中心点的距离,以及所述中心点与所述果岭的距离的加和,作为所述用户与所述果岭的距离。When the inflection point information includes an inflection point range, the center point of the inflection point range is determined; and the sum of the distance between the user and the center point and the distance between the center point and the green is taken as the distance between the user and the green.
在该实现方式中,终端设备可以根据拐点的信息,准确获取用户与所述果岭的距离,可以提高计算准确性。 In this implementation, the terminal device can accurately obtain the distance between the user and the green based on the inflection point information, thereby improving calculation accuracy.
下面详述终端设备根据用户的位置,获取拐点的信息的方法:The following is a detailed description of the method by which the terminal device obtains the inflection point information according to the user's location:
其一,终端设备可以根据所述用户的位置,确定所述用户所处的目标发球台,进而将所述目标发球台对应的拐点的信息,作为所述高尔夫球场中球道的拐点的信息。First, the terminal device can determine the target teeing ground where the user is located according to the position of the user, and then use the information of the turning point corresponding to the target teeing ground as the information of the turning point of the fairway in the golf course.
在一种示例中,终端设备可以预先获取所述高尔夫球场中至少一个发球台对应的拐点的信息。这样,终端设备可以在确定用户所处的目标发球台后,在该至少一个发球台对应的拐点信息中,获取目标发球台的拐点的信息。In one example, the terminal device may pre-acquire the inflection point information corresponding to at least one teeing station in the golf course. In this way, after determining the target teeing station where the user is located, the terminal device may acquire the inflection point information of the target teeing station from the inflection point information corresponding to the at least one teeing station.
在一种可能的实现方式中,终端设备可以预先从服务器获取高尔夫球场中至少一个发球台对应的拐点的信息,如终端设备可以在从服务器请求高尔夫球场的地图数据时,接收来自所述服务器的至少一个发球台对应的拐点的信息。其中,服务器获取至少一个发球台对应的拐点的信息,可以参照终端设备获取至少一个发球台对应的拐点的信息的相关描述。在该实现方式中,终端设备无需获取至少一个发球台对应的拐点的信息,可以减少终端设备的计算量。In a possible implementation, the terminal device may obtain information about the inflection point corresponding to at least one teeing station in the golf course from the server in advance. For example, when the terminal device requests map data of the golf course from the server, it may receive information about the inflection point corresponding to at least one teeing station from the server. The server obtains information about the inflection point corresponding to at least one teeing station, and the description of the terminal device obtaining information about the inflection point corresponding to at least one teeing station may be referred to. In this implementation, the terminal device does not need to obtain information about the inflection point corresponding to at least one teeing station, and the amount of calculation of the terminal device may be reduced.
在一种可能的实现方式中,终端设备可以根据所述高尔夫球场的地图数据,获取所述高尔夫球场中至少一个发球台对应的拐点信息。In a possible implementation manner, the terminal device may obtain inflection point information corresponding to at least one tee box in the golf course according to map data of the golf course.
其中,所述高尔夫球场的地图数据包括:球道轮廓、中心线、所述果岭的中心点、球道的中心点,以及所述至少一个发球台的中心点,所述中心线为:所述至少一个发球台的中心点、所述球道的中心点以及所述果岭的中心点的连线。The map data of the golf course includes: a fairway outline, a center line, a center point of the green, a center point of the fairway, and a center point of at least one teeing ground, and the center line is: a line connecting the center point of at least one teeing ground, the center point of the fairway, and the center point of the green.
发球台对应的拐点信息中包括的拐点满足如下条件:The inflection points included in the inflection point information corresponding to the tee satisfy the following conditions:
处于所述球道轮廓内、处于所述中心线上,以及与所述果岭的中心点的距离大于第一阈值;以及,第一线段和第二线段的夹角处于预设角度范围内,所述第一线段为与所述果岭的中心点的连线,所述第二线段为与发球台的中心点的连线。示例性的,以发球台为发球台1为例,发球台1对应的拐点信息中包括的拐点满足如下条件:处于所述球道轮廓内、处于所述中心线上,以及与所述果岭的中心点的距离大于第一阈值;以及,第一线段和第二线段的夹角处于预设角度范围内,所述第一线段为与所述果岭的中心点的连线,所述第二线段为与发球台1的中心点的连线。The first line segment is within the fairway contour, is on the center line, and the distance from the center point of the green is greater than a first threshold; and the angle between the first line segment and the second line segment is within a preset angle range, the first line segment is a line connecting the center point of the green, and the second line segment is a line connecting the center point of the tee. Exemplarily, taking the tee as tee 1, the inflection point included in the inflection point information corresponding to tee 1 satisfies the following conditions: the first line segment is within the fairway contour, is on the center line, and the distance from the center point of the green is greater than a first threshold; and the angle between the first line segment and the second line segment is within a preset angle range, the first line segment is a line connecting the center point of the green, and the second line segment is a line connecting the center point of the tee 1.
本申请实施例如此这样设置拐点,目的在于:便于用户确定球道拐角处的情况,使得用户可以调整自己的击球力度、击球方向,提高击球准确性。The purpose of setting the turning point in this way in the embodiment of the present application is to facilitate the user to determine the situation at the corner of the fairway, so that the user can adjust his or her hitting strength and hitting direction to improve the accuracy of hitting.
在一种可能的实现方式中,当发球台对应的拐点信息包括一个拐点的位置时,所述拐点的信息中包括的拐点为:处于所述预设角度范围内的最大夹角对应的拐点。换句话说,当发球台对应的拐点信息包括一个拐点的位置时,目标拐点为该拐点,终端设备可以将所述用户与该拐点的距离,以及所述该拐点与所述果岭的距离的加和,作为所述用户与所述果岭的距离。另,当发球台对应的拐点信息包括多个拐点的位置时,可以将处于所述预设角度范围内的最大夹角对应的拐点,作为目标拐点。In a possible implementation, when the inflection point information corresponding to the tee includes the position of an inflection point, the inflection point included in the inflection point information is: the inflection point corresponding to the maximum angle within the preset angle range. In other words, when the inflection point information corresponding to the tee includes the position of an inflection point, the target inflection point is the inflection point, and the terminal device can use the sum of 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 tee includes the positions of multiple inflection points, the inflection point corresponding to the maximum angle within the preset angle range can be used as the target inflection point.
本申请如此设置的目的在于:若用户将高尔夫球击落在处于所述预设角度范围内的最大夹角对应的拐点,则用户可以在拐点处看到果岭,便于用户准确确定后续的击球策略,提高用户体验。The purpose of such arrangement of the present application is that if the user hits the golf ball at the inflection point corresponding to the maximum angle within the preset angle range, the user can see the green at the inflection point, which is convenient for the user to accurately determine the subsequent hitting strategy and improve the user experience.
其二,当终端设备根据所述用户的位置,确定所述用户未处于发球台中时,终端设备可以根据所述用户的位置,以及所述高尔夫球场的地图数据,获取所述拐点的信息。Secondly, when the terminal device determines that the user is not at the tee box based on the user's position, the terminal device can obtain the information of the turning point based on the user's position and the map data of the golf course.
其中,所述高尔夫球场的地图数据包括:球道轮廓、中心线、所述果岭的中心点、球道的中心点,以及至少一个发球台的中心点,所述中心线为:所述至少一个发球台的中心点、所述球道的中心点以及所述果岭的中心点的连线。The map data of the golf course includes: a fairway outline, a center line, a center point of the green, a center point of the fairway, and a center point of at least one teeing ground, and the center line is: a line connecting the center point of at least one teeing ground, the center point of the fairway, and the center point of the green.
所述拐点信息中包括的拐点满足如下条件:处于所述球道轮廓内、处于所述中心线上,以及与所述果岭的中心点的距离大于第一阈值;以及,第一线段和第三线段的夹角处于预设角度范围内,所述第一线段为与所述果岭的中心点的连线,所述第三线段为与所述用户的位置的连线。The inflection point included in the inflection point information satisfies the following conditions: being within the fairway contour, being on the center line, and being at a distance from the center point of the green greater than a first threshold; and, an angle between a first line segment and a third line segment is within a preset angle range, the first line segment being a line connecting the center point of the green, and the third line segment being a line connecting the user's position.
在该实现方式中,所述高尔夫球场的地图数据还包括:球道起点,所述根据所述用户的位置,以及所述高尔夫球场的地图数据,获取所述拐点的信息之前,还包括:获取所述用户与所述果岭的中心点的距离,以及所述球道起点与所述果岭的中心点的距离;所述根据所述用户的位置,以及所述高尔夫球场的地图数据,获取所述拐点的信息,包括:响应于所述用户与所述果岭的中心点的距离大于所述球道起点与所述果岭的中心点的距离,根据所述用户的位置,以及所述高尔夫球场的地图数据,获取所述拐点的信息。In this implementation, the map data of the golf course also includes: the starting point of the fairway. Before obtaining the information of the turning point based on the position of the user and the map data of the golf course, it also includes: obtaining the distance between the user and the center point of the green, and the distance between the starting point of the fairway and the center point of the green; obtaining the information of the turning point based on the position of the user and the map data of the golf course includes: in response to the distance between the user and the center point of the green being greater than the distance between the starting point of the fairway and the center point of the green, obtaining the information of the turning point based on the position of the user and the map data of the golf course.
其中,当所述用户未处于发球台中时,终端设备还可以检测用户是否越过球道起点,若用户已越过 球道起点,则用户可以看到果岭,可以无需为用户推荐拐点,这样可以减小终端设备的计算量。若用户未越过球道起点,则用户到果岭还存在拐点,用户无法看到果岭,终端设备可以根据用户的位置,继续为用户推荐拐点,以便用户可以准确击球。When the user is not at the teeing station, the terminal device can also detect whether the user has crossed the starting point of the fairway. If the user is at the starting point of the fairway, the user can see the green, and there is no need to recommend an inflection point for the user, which can reduce the amount of calculation of the terminal device. If the user has not crossed the starting point of the fairway, there is still an inflection point between the user and the green, and the user cannot see the green. The terminal device can continue to recommend an inflection point for the user based on the user's position so that the user can hit the ball accurately.
在一种可能的实现方式中,所述高尔夫球场的地图数据还包括:球洞轮廓,所述根据所述用户的位置,获取高尔夫球场中球道的拐点的信息,包括:检测所述用户的位置是否包含于目标球洞的球洞轮廓中,所述目标球洞为所述用户选择的球洞;若是,则根据所述用户的位置,获取高尔夫球场中球道的拐点的信息。In a possible implementation, the map data of the golf course also includes: a hole contour, and obtaining information about turning points of the fairway in the golf course based on the user's position includes: detecting whether the user's position is included in the hole contour of a target hole, where the target hole is the hole selected by the user; if so, obtaining information about turning points of the fairway in the golf course based on the user's position.
在该实现方式中,高尔夫球场中包含很多球洞,在用户开始进行高尔夫运动前,用户可以在终端设备上选择目标球洞,若用户未处于该目标球洞的球洞轮廓中时,终端设备可以确定用户选择球洞错误,可以提示用户重新选择球洞。当用户处于该目标球洞的球洞轮廓中时,终端设备可以确定用户选择球洞正确,可以执行本申请提供的方法,获取根据所述用户的位置,获取高尔夫球场中球道的拐点的信息。In this implementation, a golf course includes many holes. Before a user starts playing golf, the user can select a target hole on a terminal device. If the user is not in the hole outline of the target hole, the terminal device can determine that the user has selected an incorrect hole and can prompt the user to reselect a hole. When the user is in the hole outline of the target hole, the terminal device can determine that the user has selected a correct hole and can execute the method provided in this application to obtain information about the turning point of the fairway in the golf course based on the user's location.
在该实现方式中,可以避免终端设备进行不必要的计算,减少终端设备的功耗。In this implementation, the terminal device can be prevented from performing unnecessary calculations, thereby reducing the power consumption of the terminal device.
在一种可能的实现方式中,终端设备响应于开始进行高尔夫运动的指示,若未存储所述高尔夫球场的地图数据,则向服务器请求下载所述高尔夫球场的地图数据;相应的,终端设备可以接收来自所述服务器的所述高尔夫球场的地图数据。In one possible implementation, in response to an instruction to start playing golf, the terminal device requests a server to download the map data of the golf course if the map data of the golf course is not stored; accordingly, the terminal device can receive the map data of the golf course from the server.
在该实现方式中,终端设备可以在运动开始前,请求下载所述高尔夫球场的地图数据,以便于可以实时计算高尔夫球场中拐点的信息,以辅助用户击球。In this implementation, the terminal device may request to download the map data of the golf course before the sport starts, so that the information of the turning points in the golf course can be calculated in real time to assist the user in hitting the ball.
在一种可能的实现方式中,为了降低终端设备的功耗,当所述终端设备处于亮屏状态时,终端设备可以每隔第一时长,获取一次所述用户的位置,当所述终端设备处于灭屏状态时,每隔第二时长,获取一次所述用户的位置,所述第二时长大于所述第一时长。In one possible implementation, in order to reduce the power consumption of the terminal device, when the terminal device is in a screen-on state, the terminal device can obtain the location of the user once every first time period, and when the terminal device is in a screen-off state, the terminal device can obtain the location of the user once every second time period, and the second time period is greater than the first time period.
第二方面,本申请实施例提供一种电子设备,该电子设备可以包括:处理器、存储器。存储器用于存储计算机可执行程序代码,程序代码包括指令;当处理器执行指令时,指令使所述电子设备执行如第一方面中的方法。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 used to store computer executable program code, and the program code includes instructions; when the processor executes the instructions, the instructions cause the electronic device to execute the method 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 include a unit, a module or a circuit for executing the method provided in the first aspect above.
第四方面,本申请实施例提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面中的方法。In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method in the first aspect.
第五方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面中的方法。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the method in the first aspect above.
上述第二方面至第五方面的各可能的实现方式,其有益效果可以参见上述第一方面所带来的有益效果,在此不加赘述。The beneficial effects of the possible implementation methods of the second to fifth aspects mentioned above can be referred to the beneficial effects brought about by the first aspect mentioned above, and will not be elaborated here.
本申请提供一种高尔夫球场中距离的确定方法、电子设备及存储介质,终端设备可以根据地图数据,确定球道中的拐点,进而可以根据该拐点计算用户与果岭的距离,因为本申请实施例考虑到球道中的拐点,而不是计算用户和果岭的直线距离,因此可以提高用户与果岭的距离的计算准确性。另,终端设备还可以在高尔夫球场地图中显示拐点以及用户与果岭的距离,可以辅助用户更准确地击球,提高用户体验。The present application provides a method for determining the distance in a golf course, an electronic device, and a storage medium. The terminal device can determine the inflection point in the fairway based on the map data, and then calculate the distance between the user and the green based on the inflection point. Because the embodiment of the present application takes into account the inflection point in the fairway instead of calculating the straight-line distance between the user and the green, the calculation accuracy of the distance between the user and the green can be improved. In addition, the terminal device can also display the inflection point and the distance between the user and the green in the golf course map, which can assist the user to hit the ball more accurately and improve the user experience.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为高尔夫球场的一种示意图;FIG1 is a schematic diagram of a golf course;
图2为本申请实施例提供的终端设备的一种示意图;FIG2 is a schematic diagram of a terminal device provided in an embodiment of the present application;
图3为本申请实施例提供的高尔夫球场中距离的确定方法的一种实施例的流程示意图;FIG3 is a flow chart of an embodiment of a method for determining distance in a golf course provided in an embodiment of the present application;
图4为本申请实施例提供的终端设备的一种界面示意图;FIG4 is a schematic diagram of an interface of a terminal device provided in an embodiment of the present application;
图5为本申请实施例提供的终端设备的另一种界面示意图;FIG5 is another schematic diagram of an interface of a terminal device provided in an embodiment of the present application;
图6为本申请实施例提供的终端设备的另一种界面示意图;FIG6 is another schematic diagram of an interface of a terminal device provided in an embodiment of the present application;
图7为本申请实施例提供的终端设备的另一种界面示意图;FIG7 is another schematic diagram of an interface of a terminal device provided in an embodiment of the present application;
图8为本申请实施例提供的高尔夫球场中距离的确定方法的另一种实施例的流程示意图;FIG8 is a flow chart of another embodiment of a method for determining distance in a golf course provided in an embodiment of the present application;
图9A为本申请实施例提供的高尔夫球场中距离的确定方法的另一种实施例的流程示意图; FIG9A is a flow chart of another embodiment of a method for determining distance in a golf course provided in an embodiment of the present application;
图9B为本申请实施例提供的一种场景示意图;FIG9B is a schematic diagram of a scenario provided in an embodiment of the present application;
图10为本申请实施例提供的高尔夫球场中距离的确定方法的另一种实施例的流程示意图。FIG. 10 is a flow chart of another embodiment of a method for determining distance in a golf course provided in an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例涉及的术语释义:Definitions of terms used in the embodiments of this application:
高尔夫球场的地图数据:可以包括高尔夫球场中各区域的数据。各区域如果岭、发球台、球洞、球道等。各区域的数据包括但不限于:各区域的位置、各区域的中心点的位置等。下述将“高尔夫球场的地图数据”简称为“地图数据”。Golf course map data: may include data of various areas in a golf course. Each area includes a green, a tee, a hole, a fairway, etc. The data of each area includes, but is not limited to, the location of each area, the location of the center point of each area, etc. In the following, "golf course map data" is referred to as "map data".
在一种示例中,地图数据中包括的各区域的位置、各区域的中心点的位置可以采用经纬度坐标表示。在一种示例中,地图数据可以为经工作人员在高尔夫球场中测绘得到的矢量测绘数据(GeoJson)。In one example, the location of each area and the location of the center point of each area included in the map data may be represented by longitude and latitude coordinates. In one example, the map data may be vector surveying data (GeoJson) obtained by staff surveying in a golf course.
果岭(green):球洞所在的草坪,高尔夫球场中可以包括多个果岭。Green: The lawn on which the hole is located. A golf course may include multiple greens.
果岭的中心点:果岭的中心。在一种示例中,地图数据中包括果岭的中心点位置。Center point of the green: the center of the green. In one example, the map data includes the location of the center point of the green.
发球台(tee):用于发球的草坪,可以用于用户进行第一杆的发球。Tee: A lawn used for serving the ball, which can be used by users to serve the first shot.
发球台的中心点:发球台的中心。在一种示例中,地图数据中包括发球台的中心点位置。Center point of teeing ground: the center of teeing ground. In one example, the map data includes the center point position of the teeing ground.
球洞轮廓:用于表征从发球台至球洞占用的整个草坪的形状。在一种示例中,地图数据包括球洞轮廓上的各位置。Hole outline: A shape used to characterize the entire lawn occupied from the tee box to the hole. In one example, the map data includes each location on the hole outline.
球道(fairway):处于发球台和果岭之间、且便于用户击球的草坪。Fairway: The lawn between the tee and the green that is convenient for users to hit the ball.
球道轮廓:用于表征球道的形状。在一种示例中,地图数据包括球道轮廓上的各位置。Fairway profile: used to characterize the shape of a fairway. In one example, the map data includes locations on the fairway profile.
狗腿洞(dog leg hole):指球道中有大幅度拐角,用户无法从发球位置看到果岭,该果岭中的球洞为狗腿洞。在一种示例中,大幅度拐角可以理解为拐角的角度处于预设角度范围内。Dog leg hole: refers to a hole in the fairway with a large corner, where the user cannot see the green from the tee position. In one example, a large corner can be understood as a corner angle within a preset angle range.
拐点:球道中存在大幅拐角的位置处。Inflection point: The point in the fairway where there is a sharp turn.
果岭轮廓:用于表征果岭的形状。在一种示例中,地图数据包括果岭轮廓上的各位置。Green outline: used to characterize the shape of a green. In one example, the map data includes locations on the green outline.
障碍区:如可以包括长草区、沙坑区、水障碍区等。Obstacle areas: such as rough areas, sand pit areas, water hazard areas, etc.
应理解,本申请实施例中采用单位“码”表征距离,本申请实施例对表征距离的单位不做限制。It should be understood that the unit "yard" is used to represent the distance in the embodiments of the present application, and the embodiments of the present application do not limit the unit for representing the distance.
本申请实施例中的终端设备为具有显示屏的电子设备。终端设备可以称为用户设备(user equipment,UE),例如,终端设备可以为手机、具有无线通信功能的手持设备、计算设备、手表、手环等可穿戴设备,虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备等,本申请实施例中对终端设备的形态不做具体限定。The terminal device in the embodiment of the present application is an electronic device with a display screen. The terminal device can be called a user equipment (UE). For example, the terminal device can be a mobile phone, a handheld device with wireless communication function, a computing device, a watch, a bracelet and other wearable devices, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, etc. The form of the terminal device is not specifically limited in the embodiment of the present application.
图1为高尔夫球场的一种示意图。图1中以一个果岭为例进行说明,参照图1,高尔夫球场包括:至少一个发球台11、球道12、果岭13,以及球洞14。图1中以至少一个发球台包括发球台1和发球2为例。高尔夫球场中除了发球台11、球道12、果岭13,以及球洞14的区域可以称为障碍区15。图1中以发球台11为矩形为例,图1中发球台11至果岭13的球道12中存在一个拐角,用户从发球台11无法看到果岭13。从发球台11至果岭13的形状类似狗腿,果岭13中的球洞14可以称为狗腿洞。图1中还示出了球洞轮廓(即最外层的实线形成的轮廓)。FIG1 is a schematic diagram of a golf course. FIG1 takes a green as an example for explanation. Referring to FIG1 , a golf course includes: at least one tee 11, a fairway 12, a green 13, and a hole 14. FIG1 takes at least one tee including a tee 1 and a tee 2 as an example. The area of the golf course other than the tee 11, the fairway 12, the green 13, and the hole 14 can be called an obstacle area 15. FIG1 takes the tee 11 as a rectangle as an example. In FIG1 , there is a corner in the fairway 12 from the tee 11 to the green 13, and the user cannot see the green 13 from the tee 11. The shape from the tee 11 to the green 13 is similar to a dogleg, and the hole 14 in the green 13 can be called a dogleg hole. FIG1 also shows the outline of the hole (i.e., the outline formed by the outermost solid line).
高尔夫运动非常依赖测距、计分,这些工作通常由球童进行,为了提高效率,高尔夫智能终端设备应运而生。终端设备如高尔夫测距仪、高尔夫手表等。Golf is very dependent on distance measurement and scoring, which are usually done by caddies. In order to improve efficiency, golf smart terminal devices have emerged. Terminal devices include golf rangefinders, golf watches, etc.
如高尔夫测距仪可以发射激光进行测距。但如图1所示,用户在发球时看不到果岭,在发球台和果岭之间存在很多障碍物,高尔夫测距仪发射的激光会经障碍物反射,因此高尔夫测距仪无法测量到用户与果岭的距离。For example, a golf rangefinder can emit lasers to measure distance. However, as shown in Figure 1, the user cannot see the green when teeing off, and there are many obstacles between the teeing platform and the green. The laser emitted by the golf rangefinder will be reflected by the obstacles, so the golf rangefinder cannot measure the distance between the user and the green.
高尔夫手表属于穿戴式智能终端设备的一种,能为用户提供展示高尔夫球洞、计算果岭距离和障碍物距离等功能。应理解,果岭距离可以理解为用户与果岭的距离。高尔夫手表可以根据预置的高尔夫球场数据和高尔夫手表的定位数据,计算用户到指定点的距离,以辅助用户制定击球策略。高尔夫手表可以根据高尔夫手表的定位数据,以及高尔夫球场数据中果岭的位置,计算用户与果岭的距离。但高尔夫手表计算得到的距离为用户到果岭的直线距离,参照图1,当用户到果岭之间存在拐角时,高尔夫手表计算得到的直线距离并非实际用户与果岭的距离,距离计算不准确,会影响用户的击球准确性。Golf watches are a type of wearable smart terminal device that can provide users with functions such as displaying golf holes, calculating green distances and obstacle distances. It should be understood that the green distance can be understood as the distance between the user and the green. Golf watches can calculate the distance from the user to a designated point based on preset golf course data and the positioning data of the golf watch to assist users in formulating a shot strategy. Golf watches can calculate the distance between the user and the green based on the positioning data of the golf watch and the location of the green in the golf course data. However, the distance calculated by the golf watch is the straight-line distance from the user to the green. Referring to Figure 1, when there is a corner between the user and the green, the straight-line distance calculated by the golf watch is not the actual distance between the user and the green. Inaccurate distance calculation will affect the user's shot accuracy.
本申请实施例提供一种高尔夫球场中距离的确定方法,可以获取用户到果岭之间的拐点,进而根据 拐点准确获取用户与果岭的距离,可以提高计算准确性,更好地辅助用户击球,可以提高用户体验。The embodiment of the present application provides a method for determining the distance in a golf course, which can obtain the turning point between the user and the green, and then determine the distance between the user and the green according to the inflection point. The inflection point can accurately obtain the distance between the user and the green, which can improve the calculation accuracy, better assist the user in hitting the ball, and improve the user experience.
在介绍本申请实施例提供的高尔夫球场中距离的确定方法之前,首先说明终端设备的结构。图2为本申请实施例提供的终端设备的一种示意图。参照图2,终端设备200可以包括:处理器210,存储器220,通信模块230,音频模块240,传感器250,显示屏260,以及定位模块270等。Before introducing the method for determining the distance in a golf course provided by an embodiment of the present application, the structure of the terminal device is first described. FIG2 is a schematic diagram of a terminal device provided by an embodiment of the present application. Referring to FIG2, the terminal device 200 may include: a processor 210, a memory 220, a communication module 230, an audio module 240, a sensor 250, a display screen 260, and a positioning module 270, etc.
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,显示处理单元(display process unit,DPU),和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在一些实施例中,终端设备200也可以包括一个或多个处理器210。其中,处理器210可以是终端设备200的神经中枢和指挥中心。处理器210可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器210中还可以设置存储器,用于存储指令和数据。The processor 210 may include one or more processing units, 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. Among them, different processing units can be independent devices or integrated in one or more processors. In some embodiments, the terminal device 200 may also include one or more processors 210. Among them, the processor 210 may be the nerve center and command center of the terminal device 200. The processor 210 may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions. A memory may also be set in the processor 210 for storing instructions and data.
存储器220可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器210可以通过运行存储在存储器220的上述指令,从而使得终端设备200执行各种功能应用以及数据处理等。在一些实施例中,处理器210可以通过运行存储在存储器220的指令,和/或存储在设置于处理器210中的存储器的指令,来使得终端设备200执行各种功能应用及数据处理。The memory 220 may be used to store one or more computer programs, which include instructions. The processor 210 may enable the terminal device 200 to perform various functional applications and data processing by running the above instructions stored in the memory 220. In some embodiments, the processor 210 may enable the terminal device 200 to perform various functional applications and data processing by running the instructions stored in the memory 220 and/or the instructions stored in the memory provided in the processor 210.
本申请实施例中,存储器220中可以存储用户数据、地图数据,以及用户进行高尔夫运动中的相关数据等。用户数据如用户的账号、密码、人脸等。用户进行高尔夫运动中的相关数据可以包括:得分,每个球洞进球使用的杆数,每次挥杆的力度、方向等。In the embodiment of the present application, the memory 220 may store user data, map data, and data related to the user's golfing, etc. User data includes the user's account, password, face, etc. The data related to the user's golfing may include: score, number of strokes used to score a goal on each hole, strength and direction of each swing, etc.
通信模块230可以包括但不限于:2G/3G/4G/5G等移动通信模块,或无线局域网(wireless local area networks,WLAN),蓝牙,全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),NFC,红外技术(infrared,IR)等模块。终端设备200可以通过通信模块230与网络以及其他设备通信。The communication module 230 may include, but is not limited to, 2G/3G/4G/5G and other mobile communication modules, or wireless local area networks (WLAN), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared technology (IR), and other modules. The terminal device 200 can communicate with the network and other devices through the communication module 230.
终端设备200可以通过音频模块240实现音频功能。例如音乐播放,录音等。其中,音频模块240可以用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。The terminal device 200 can implement audio functions through the audio module 240, such as music playing, recording, etc. The audio module 240 can be used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signals.
传感器250可以包括但不限于陀螺仪传感器250A,加速度传感器250B,距离传感器250C,等。The sensor 250 may include, but is not limited to, a gyro sensor 250A, an acceleration sensor 250B, a distance sensor 250C, and the like.
其中,陀螺仪传感器250A可以用于确定终端设备200的运动姿态。在一些实施例中,可以通过陀螺仪传感器250A确定终端设备200围绕三个轴(即,x,y和z轴)的角速度。加速度传感器250B可检测终端设备200在各个方向上(如x,y和z三轴)加速度的大小。当终端设备200静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。距离传感器250C,用于测量距离。终端设备200可以通过红外或激光测量距离。Among them, the gyroscope sensor 250A can be used to determine the motion posture of the terminal device 200. In some embodiments, the angular velocity of the terminal device 200 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 250A. The acceleration sensor 250B can detect the magnitude of the acceleration of the terminal device 200 in various directions (such as x, y, and z axes). When the terminal device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and is applied to horizontal and vertical screen switching, pedometers and other applications. Distance sensor 250C is used to measure distance. The terminal device 200 can measure distance by infrared or laser.
显示屏260用于显示图像,视频等。显示屏260包括显示面板。在一些实施例中,终端设备200可以包括1个或N个显示屏260,N为大于1的正整数。The display screen 260 is used to display images, videos, etc. The display screen 260 includes a display panel. In some embodiments, the terminal device 200 may include 1 or N display screens 260, where N is a positive integer greater than 1.
定位模块270用于实现终端设备的定位,可以获取终端设备的位置。终端设备的位置可以为终端设备的经纬度坐标。在一种实施例中,定位模块270可以包括但不限于:全球定位***(global positioning system,GPS),北斗卫星导航***,以及全球导航卫星***(global navigation satellite system,GNSS)。The positioning module 270 is used to realize the positioning of the terminal device and can obtain the position of the terminal device. The position of the terminal device can be the latitude and longitude coordinates of the terminal device. In one embodiment, the positioning module 270 can include but is not limited to: a global positioning system (GPS), a Beidou satellite navigation system, and a global navigation satellite system (GNSS).
可以理解的是,本实施例示意的结构并不构成对终端设备200的具体限定。在本申请另一些实施例中,终端设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件,或软件和硬件的组合实现。It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the terminal device 200. In other embodiments of the present application, the terminal device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
下面结合具体的实施例对本申请实施例提供的高尔夫球场中距离的确定方法进行说明。下面这几个实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The following is a description of the method for determining the distance in a golf course provided by the embodiment of the present application in conjunction with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
图3为本申请实施例提供的高尔夫球场中距离的确定方法的一种实施例的流程示意图。参照图3,本申请实施例提供的高尔夫球场中距离的确定方法可以包括:FIG3 is a flow chart of an embodiment of a method for determining a distance in a golf course provided in an embodiment of the present application. Referring to FIG3 , the method for determining a distance in a golf course provided in an embodiment of the present application may include:
S301,根据高尔夫球场的地图数据,获取发球台对应的拐点的信息。S301, obtaining information of the turning point corresponding to the tee box according to the map data of the golf course.
高尔夫球场中可以包括多个果岭,参照图1,每个果岭可以对应至少一个发球台,本申请实施例中 以一个发球台为例,说明终端设备获取发球台对应的拐点的信息的过程。A golf course may include multiple greens. Referring to FIG. 1 , each green may correspond to at least one tee. Taking a teeing ground as an example, the process of a terminal device obtaining information of an inflection point corresponding to the teeing ground is explained.
在一种实施例中,若终端设备中未存储高尔夫球场的地图数据,如用户第一次来高尔夫球场,则用户可以触发终端设备下载该高尔夫球场的地图数据。示例性的,用户可以在终端设备中打开高尔夫模式,以便于终端设备获取用户在进行高尔夫运动时的相关数据。其中,终端设备响应于高尔夫模式打开,可以获取终端设备的位置。当终端设备检测到终端设备中,未存储终端设备的位置所处的高尔夫球场的地图数据时,终端设备可以根据终端设备的位置,显示终端设备的位置所处的高尔夫球场的名称。在一种示例中,终端设备可以响应于开始进行高尔夫运动的指示,可以获取终端设备的位置。其中,开始进行高尔夫运动的指示如可以为用户打开高尔夫模式,或者用户操作“开始进行高尔夫运动”的按键或输入“开始进行高尔夫运动”的语音等,本申请实施例对此不作限制。In one embodiment, if the terminal device does not store the map data of the golf course, such as the user's first visit to the golf course, the user can trigger the terminal device to download the map data of the golf course. Exemplarily, the user can turn on the golf mode in the terminal device so that the terminal device can obtain relevant data of the user when playing golf. In response to the golf mode being turned on, the terminal device can obtain the location of the terminal device. When the terminal device detects that the map data of the golf course where the terminal device is located is not stored in the terminal device, the terminal device can display the name of the golf course where the terminal device is located according to the location of the terminal device. In one example, the terminal device can obtain the location of the terminal device in response to an instruction to start playing golf. In this case, the instruction to start playing golf can be, for example, turning on the golf mode for the user, or the user operating a "start playing golf" button or inputting a voice of "start playing golf", etc., which is not limited in the embodiment of the present application.
在一种示例中,终端设备还可以显示终端设备的位置周围的高尔夫球场的名称。如图4所示,终端设备可以显示终端设备的位置所处的高尔夫球场的名称球场1,以及终端设备的位置周围的高尔夫球场的名称如球场2和球场3等。用户可以选择自己所处的高尔夫球场的名称,触发终端设备下载该高尔夫球场的地图数据。示例性的,如用户选择球场1,则终端设备可以下载球场1的地图数据。In one example, the terminal device may also display the names of golf courses around the location of the terminal device. As shown in FIG4 , the terminal device may display the name of the golf course where the terminal device is located, Course 1, and the names of golf courses around the location of the terminal device, such as Course 2 and Course 3. The user may select the name of the golf course where he is located to trigger the terminal device to download the map data of the golf course. For example, if the user selects Course 1, the terminal device may download the map data of Course 1.
在一种示例中,终端设备可以向服务器请求下载球场1的地图数据。其中,服务器可以存储多个高尔夫球场的地图数据。在一种示例中,高尔夫球场的地图数据可以为工作人员在对高尔夫球场进行测绘后上传至服务器的,本申请实施例对此不作限制。In one example, the terminal device may request the server to download the map data of the golf course 1. The server may store the map data of multiple golf courses. In one example, the map data of the golf course may be uploaded to the server by the staff after surveying the golf course, and the embodiment of the present application is not limited to this.
在一种实施例中,若终端设备中已存储有高尔夫球场的地图数据,如用户已经来过该高尔夫球场,终端设备已下载过该高尔夫球场的地图数据,则终端设备中可以存储有该高尔夫球场的地图数据。示例性的,终端设备响应于高尔夫模式打开,可以获取终端设备的位置。当终端设备检测到终端设备中,存储有终端设备的位置所处的高尔夫球场的地图数据时,终端设备可以不显示如图4所示的界面。In one embodiment, if the terminal device has stored map data of a golf course, such as the user has been to the golf course and the terminal device has downloaded the map data of the golf course, the terminal device may store the map data of the golf course. Exemplarily, in response to the golf mode being turned on, the terminal device may obtain the location of the terminal device. When the terminal device detects that the map data of the golf course where the terminal device is located is stored in the terminal device, the terminal device may not display the interface shown in FIG. 4 .
高尔夫球场的地图数据可以包括:果岭轮廓、果岭的中心点位置、发球台位置、发球台的中心点位置、球洞轮廓、球道轮廓,以及中心线坐标。其中,果岭轮廓可以包括:果岭轮廓上各位置的经纬度坐标,果岭的中心点位置包括果岭的中心点的经纬度坐标。发球台位置可以包括:发球台轮廓上各位置的经纬度坐标,发球台的中心点位置包括发球台的中心点的经纬度坐标。球洞轮廓包括:球洞轮廓上各位置的经纬度坐标,球道轮廓包括:球道轮廓上各位置的经纬度坐标。中心线为每个发球台的中心点、球道的中心点,以及果岭的中心点的连线,中心线坐标包括:中心线上各位置的经纬度坐标。参照图1,图1中采用黑色圆点表征果岭的中心点和发球台的中心点,以虚线表征中心线。The map data of a golf course may include: a green outline, a center point position of a green, a tee position, a center point position of a tee, a hole outline, a fairway outline, and a center line coordinate. Among them, the green outline may include: the longitude and latitude coordinates of each position on the green outline, and the center point position of the green includes the longitude and latitude coordinates of the center point of the green. The tee position may include: the longitude and latitude coordinates of each position on the tee outline, and the center point position of the tee includes the longitude and latitude coordinates of the center point of the tee. The hole outline includes: the longitude and latitude coordinates of each position on the hole outline, and the fairway outline includes: the longitude and latitude coordinates of each position on the fairway outline. The center line is the center point of each tee, the center point of the fairway, and the center point of the green, and the center line coordinates include: the longitude and latitude coordinates of each position on the center line. Referring to Figure 1, black dots are used in Figure 1 to represent the center point of the green and the center point of the tee, and dotted lines are used to represent the center line.
拐点的信息可以包括:拐点的位置。在一种示例中,每个发球台可以对应至少一个拐点,或每个发球台可以对应一个拐点范围。The inflection point information may include: the position of the inflection point. In an example, each tee may correspond to at least one inflection point, or each tee may correspond to a range of inflection points.
本申请实施例中,终端设备可以在高尔夫球场的地图数据包含的位置中,获取拐点的信息。其中,终端设备可以在高尔夫球场的地图数据包含的位置中,获取候选拐点,进而根据候选拐点确定拐点。在一种示例中,候选拐点需要满足如下条件:In an embodiment of the present application, the terminal device can obtain information about the inflection point in the location included in the map data of the golf course. The terminal device can obtain candidate inflection points in the location included in the map data of the golf course, and then determine the inflection point based on the candidate inflection points. In one example, the candidate inflection point needs to meet the following conditions:
条件1:处于球道轮廓内。Condition 1: Within the fairway outline.
条件2:处于中心线上。Condition 2: On the center line.
条件3:距离果岭的中心点的直线距离大于第一阈值。第一阈值可以为预先定义的,示例性的,第一阈值可以为35米。Condition 3: The straight-line distance from the center point of the green is greater than a first threshold. The first threshold may be predefined, and for example, the first threshold may be 35 meters.
条件4:与果岭的中心点连线得到第一线段,与发球台的中心点连线得到第二线段,第一线段和第二线段的夹角处于预设角度范围内。预设角度范围可以为预先定义的,示例性的,预设角度范围可以为40°-180°。Condition 4: A first line segment is obtained by connecting the center point of the green, a second line segment is obtained by connecting the center point of the tee, and the angle between the first line segment and the second line segment is within a preset angle range. The preset angle range may be predefined, and illustratively, the preset angle range may be 40°-180°.
本申请实施例之所以设置如上4个条件,是因为:一方面,发球台到果岭的拐角处于球道内,拐点也是处于球道轮廓内的。另一方面,为了辅助用户可以击打高尔夫球至拐点,将拐点设置在中心线上,而不是球道轮廓的边缘,这样给用户一些试错机会。如用户击打高尔夫球后,高尔夫球的落点与拐点有偏差,但因为本申请中将拐点设置在中心线上,即使高尔夫球的落点与拐点有偏差,高尔夫球也会落在球道轮廓内,若将拐点设置在球道轮廓的边缘,则高尔夫球的落点可能会偏出球道轮廓,会增加用户的击球难度。The above four conditions are set in the embodiment of the present application because: on the one hand, the corner from the tee to the green is within the fairway, and the inflection point is also within the fairway contour. On the other hand, in order to assist the user in hitting the golf ball to the inflection point, the inflection point is set on the center line instead of the edge of the fairway contour, which gives the user some trial and error opportunities. For example, after the user hits the golf ball, the landing point of the golf ball deviates from the inflection point, but because the inflection point is set on the center line in the present application, even if the landing point of the golf ball deviates from the inflection point, the golf ball will fall within the fairway contour. If the inflection point is set at the edge of the fairway contour, the landing point of the golf ball may deviate from the fairway contour, which will increase the difficulty of the user's hitting.
另一方面,设置拐点距离果岭的中心点的直线距离大于第一阈值,该第一阈值为用户可以看到果岭的位置,这样可以辅助用户确定拐点,若用户击打高尔夫球至拐点处,便可以看到果岭,有利于用户下 一步击球。另一方面,设置第一线段和第二线段的夹角处于预设角度范围内,是为了便于将拐点确定在球道的拐角处,这样可以辅助用户确定拐点,若用户击打高尔夫球至拐点处,便可以看到果岭,也有利于用户下一步击球。On the other hand, the straight-line distance between the inflection point and the center point of the green is set to be greater than the first threshold value, and the first threshold value is the position where the user can see the green. This can help the user determine the inflection point. If the user hits the golf ball to the inflection point, the user can see the green, which is helpful for the user to place the golf ball. On the other hand, the angle between the first line segment and the second line segment is set within a preset angle range in order to facilitate the determination of the turning point at the corner of the fairway, which can assist the user in determining the turning point. If the user hits the golf ball to the turning point, the green can be seen, which is also conducive to the user's next step of hitting the ball.
终端设备可以按照如上4个条件筛选得到候选拐点,本申请实施例不限制终端设备使用如上4个条件的顺序。示例性的,如终端设备可以按照条件1至条件4的顺序,获取候选拐点。如终端设备可以将处于球道轮廓内的位置作为第一候选拐点。在第一候选拐点中,终端设备可以将处于中心线上的第一候选拐点作为第二候选拐点。终端设备可以计算每个第二候选拐点与果岭的中心点的距离,且将距离大于第一阈值的第二候选拐点作为第三候选拐点。终端设备可以将每个第三候选拐点与果岭的中心点连线得到第一线段,将每个第三候选拐点与发球台的中心点连线得到第二线段,以及获取每个第三候选拐点对应的第一线段和第二线段的夹角。终端设备可以将处于预设角度范围内的夹角对应的第三候选拐点作为候选拐点。The terminal device can filter and obtain candidate inflection points according to the above four conditions, and the embodiment of the present application does not limit the order in which the terminal device uses the above four conditions. For example, the terminal device can obtain candidate inflection points in the order of conditions 1 to 4. For example, the terminal device can use the position within the fairway contour as the first candidate inflection point. Among the first candidate inflection points, the terminal device can use the first candidate inflection point on the center line as the second candidate inflection point. The terminal device can calculate the distance between each second candidate inflection point and the center point of the green, and use the second candidate inflection point whose distance is greater than the first threshold as the third candidate inflection point. The terminal device can 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 tee to obtain a second line segment, and obtain the angle between the first line segment and the second line segment corresponding to each third candidate inflection point. The terminal device can use the third candidate inflection point corresponding to the angle within the preset angle range as the candidate inflection point.
应理解的是,对于不同的发球台来说,终端设备在计算第一线段和第二线段的夹角时,终端设备可以将第三候选拐点与不同的发球台的中心点连线得到第二线段。示例性的,至少一个发球台包括发球台1和发球台2,当终端设备获取发球台1对应的拐点信息时,终端设备可以将每个第三候选拐点与发球台1的中心点连线得到第二线段,以计算第一线段和第二线段的夹角。当终端设备获取发球台2对应的拐点信息时,终端设备可以将每个第三候选拐点与发球台2的中心点连线得到第二线段,以计算第一线段和第二线段的夹角。It should be understood that, for different teeing grounds, when the terminal device calculates the 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 teeing grounds to obtain the second line segment. Exemplarily, at least one teeing ground includes teeing ground 1 and teeing ground 2. When the terminal device obtains the inflection point information corresponding to teeing ground 1, the terminal device may connect each third candidate inflection point with the center point of teeing ground 1 to obtain the second line segment to calculate the angle between the first line segment and the second line segment. When the terminal device obtains the inflection point information corresponding to teeing ground 2, the terminal device may connect each third candidate inflection point with the center point of teeing ground 2 to obtain the second line segment to calculate the angle between the first line segment and the second line segment.
在一种实施例中,发球台对应的拐点的信息中可以包括一个拐点的位置。在一种示例中,若终端设备根据如上4个条件可以筛选得到多个候选拐点,终端设备可以将夹角最大的候选拐点作为最终确定的拐点。相应的,发球台对应的拐点信息中可以包括:该夹角最大的候选拐点的位置。在一种示例中,若终端设备根据如上4个条件可以筛选得到一个候选拐点,则终端设备可以将该候选拐点作为最终确定的拐点。In one embodiment, the information of the inflection point corresponding to the tee may include the position of an inflection point. In one example, if the terminal device can filter out multiple candidate inflection points according to the above four conditions, the terminal device can use the candidate inflection point with the largest angle as the final inflection point. Correspondingly, the inflection point information corresponding to the tee may include: the position of the candidate inflection point with the largest angle. In one example, if the terminal device can filter out a candidate inflection point according to the above four conditions, the terminal device can use the candidate inflection point as the final inflection point.
在一种实施例中,发球台对应的拐点的信息中可以包括至少一个拐点的位置。In one embodiment, the information of the inflection point corresponding to the tee may include the position of at least one inflection point.
在一种示例中,若终端设备根据如上4个条件可以筛选得到多个候选拐点,终端设备可以将夹角最大的候选拐点,以及夹角最小的候选拐点作为最终确定的拐点。这样设置是为了:便于用户确定球道拐角处的情况,使得用户可以调整自己的击球力度、击球方向等,使得高尔夫球的落点可以在该两个拐点之间。In one example, if the terminal device can screen multiple candidate inflection points according to the above four conditions, the terminal device can use the candidate inflection point with the largest angle and the candidate inflection point with the smallest angle as the final inflection point. This setting is to facilitate the user to determine the situation at the corner of the fairway, so that the user can adjust his hitting strength, hitting direction, etc., so that the golf ball can land between the two inflection points.
在一种示例中,若终端设备根据如上4个条件可以筛选得到多个候选拐点,终端设备可以将夹角最大的候选拐点、距离果岭最远的候选拐点,以及距离果岭最近的候选拐点,作为最终确定的拐点。这样设置是为了:便于用户确定距离果岭最近、以及最远的拐点,若用户的击球能力有限时,可以引导用户击球至距离果岭最近的拐点,另外终端设备还将夹角最大的候选拐点作为拐点,这样可以便于用户确定球道拐角处的情况。In one example, if the terminal device can screen multiple candidate inflection points according to the above four conditions, the terminal device can use the candidate inflection point with the largest angle, the candidate inflection point farthest from the green, and the candidate inflection point closest to the green as the final inflection point. This setting is to facilitate the user to determine the inflection point closest to the green and the farthest from the green. If the user's hitting ability is limited, the user can be guided to hit the ball to the inflection point closest to the green. In addition, the terminal device also uses the candidate inflection point with the largest angle as the inflection point, which can facilitate the user to determine the situation at the corner of the fairway.
在一种实施例中,发球台对应的拐点的信息中可以包括拐点范围,拐点范围可以表征位置范围。其中,拐点范围包括至少一个拐点的位置。在一种示例中,若终端设备根据如上4个条件可以筛选得到多个候选拐点,终端设备可以确定夹角最大的候选拐点,以及夹角最小的候选拐点,如终端设备可以将该两个候选拐点作为圆上的两个点,确定拐点范围。这样设置是为了:便于用户确定球道拐角处的情况,同样可以使得用户可以调整自己的击球力度、击球方向等,使得高尔夫球的落点可以在该两个拐点之间。本申请实施例中并不限制拐点范围的形状,如还可以为矩形、正方形、三角形等。In one embodiment, the information of the inflection point corresponding to the tee may include an inflection point range, and the inflection point range may represent a position range. Among them, the inflection point range includes the position of at least one inflection point. In one example, if the terminal device can screen and obtain multiple candidate inflection points according to the above four conditions, the terminal device can determine the candidate inflection point with the largest angle and the candidate inflection point with the smallest angle. For example, the terminal device can use the two candidate inflection points as two points on a circle to determine the inflection point range. This setting is to facilitate the user to determine the situation at the corner of the fairway, and also allows the user to adjust his or her hitting strength, hitting direction, etc., so that the landing point of the golf ball can be between the two inflection points. The shape of the inflection point range is not limited in the embodiment of the present application, and can also be a rectangle, square, triangle, etc.
在一种可能的场景中,高尔夫球场中的一些发球台不存在对应的拐点,则终端设备无需获取这些发球台对应的拐点的信息。In a possible scenario, some teeing grounds in a golf course do not have corresponding inflection points, and the terminal device does not need to obtain information about the inflection points corresponding to these teeing grounds.
在一种实施例中,在终端设备向服务器请求下载高尔夫球场的地图数据的场景中,因为服务器中预先存储高尔夫球场的地图数据,则服务器可以根据高尔夫球场的地图数据的场景,获取发球台对应的拐点的信息,这样在终端设备向服务器请求下载高尔夫球场的地图数据时,服务器可以向终端设备发送高尔夫球场的地图数据,以及发球台对应的拐点的信息。在该种实施例中,由服务器并非终端设备获取发球台对应的拐点的信息,可以减少终端设备的处理时间,在下载高尔夫球场的地图数据时,就可以同时得到发球台对应的拐点的信息。In one embodiment, in a scenario where a terminal device requests a server to download map data of a golf course, since the server pre-stores the map data of the golf course, the server can obtain information on the inflection points corresponding to the teeing grounds according to the scenario of the map data of the golf course. Thus, when the terminal device requests the server to download the map data of the golf course, the server can send the map data of the golf course and the information on the inflection points corresponding to the teeing grounds to the terminal device. In this embodiment, the server, rather than the terminal device, obtains the information on the inflection points corresponding to the teeing grounds, which can reduce the processing time of the terminal device, and when downloading the map data of the golf course, the information on the inflection points corresponding to the teeing grounds can be obtained at the same time.
S302,获取用户的位置。 S302, obtaining the user's location.
终端设备包括定位模块,终端设备可以通过定位模块获取终端设备的位置。因为用户穿戴终端设备,因此终端设备可以将终端设备的位置作为用户的位置。The terminal device includes a positioning module, and the terminal device can obtain the location of the terminal device through the positioning module. Because the user wears the terminal device, the terminal device can use the location of the terminal device as the location of the user.
在一种示例中,终端设备可以响应于高尔夫模式打开,可以获取用户的位置。在一种示例中,终端设备可以周期性地获取用户的位置,进而执行S303-S304。In one example, the terminal device may obtain the user's location in response to the golf mode being turned on. In one example, the terminal device may periodically obtain the user's location, and then execute S303-S304.
在一种示例中,因为高尔夫球场中包括多个球洞,用户可以在打开高尔夫模式时,或者开始进行高尔夫运动时,可以在终端设备上选择目标球洞,该目标球洞为用户期望进球的球洞。在该种示例中,终端设备获取用户的位置后,可以检测用户的位置是否包含于目标球洞的球洞轮廓中,若用户的位置包含于目标球洞的球洞轮廓中,则终端设备可以执行S303-S304,若用户的位置未包含于目标球洞的球洞轮廓中,表征用户可能已经偏离该目标球洞的球洞轮廓,则终端设备可以不执行S303-S304。In one example, because a golf course includes multiple holes, the user can select a target hole on the terminal device when turning on the golf mode or starting to play golf. The target hole is the hole where the user expects to score a goal. In this example, after the terminal device obtains the user's position, it can detect whether the user's position is included in the hole outline of the target hole. If the user's position is included in the hole outline of the target hole, the terminal device can execute S303-S304. If the user's position is not included in the hole outline of the target hole, it indicates that the user may have deviated from the hole outline of the target hole, and the terminal device may not execute S303-S304.
S303,根据用户的位置,确定用户所处的目标发球台。S303, determining the target teeing ground where the user is located according to the user's position.
终端设备可以根据地图数据,获取每个发球台的位置,终端设备可以将用户的位置所处的发球台作为目标发球台。在一种示例中,终端设备可以检测哪个发球台的位置中包括用户的位置,则将包含有用户的位置的发球台作为目标发球台。The terminal device can obtain the position of each teeing station according to the map data, and the terminal device can use the teeing station where the user is located as the target teeing station. In one example, the terminal device can detect which teeing station includes the user's position, and use the teeing station including the user's position as the target teeing station.
S304,根据目标发球台对应的拐点的信息,在高尔夫球场地图中显示拐点,以及用户与果岭的距离。S304: Display the turning point and the distance between the user and the green on the golf course map according to the information of the turning point corresponding to the target tee.
终端设备在获取地图数据后,可以在终端设备上显示高尔夫球场地图。示例性的,参照图5中的a,终端设备可以根据用户的位置,显示高尔夫球场中用户的位置周围的部分地图,且在地图中显示用户的位置,如位置A。图5中以部分地图包括图1所示的发球台、球道以及果岭为例。After acquiring the map data, the terminal device can display the golf course map on the terminal device. For example, referring to a in FIG. 5 , the terminal device can display a partial map around the user's location in the golf course according to the user's location, and display the user's location in the map, such as location A. FIG. 5 takes the partial map including the tee, fairway, and green shown in FIG. 1 as an example.
本申请实施例中,因为终端设备可以预先获取高尔夫球场中多个发球台对应的拐点的信息,终端设备可以在该多个发球台对应的拐点的信息中,获取目标发球台对应的拐点的信息。目标发球台对应的拐点的信息中可以包括拐点的位置,因此终端设备可以在高尔夫球场地图中显示拐点。参照图5中的a,终端设备可以在高尔夫球场地图中显示一个拐点,如位置B。In the embodiment of the present application, because the terminal device can pre-acquire the information of the inflection points corresponding to multiple teeing stations in the golf course, the terminal device can acquire the information of the inflection point corresponding to the target teeing station from the information of the inflection points corresponding to the multiple teeing stations. The information of the inflection point corresponding to the target teeing station may include the position of the inflection point, so the terminal device can display the inflection point in the golf course map. Referring to a in FIG. 5 , the terminal device can display an inflection point, such as position B, in the golf course map.
在一种示例中,当目标发球台对应的拐点的信息中包括多个拐点的位置时,参照图5中的b,终端设备可以在高尔夫球场地图中显示多个拐点,如位置B和位置C。在一种示例中,当目标发球台对应的拐点的信息中包括拐点范围时,参照图5中的c,终端设备可以在高尔夫球场地图中显示拐点范围,如灰色圆形覆盖的范围。In one example, when the information of the inflection point corresponding to the target tee includes the positions of multiple inflection points, referring to b in FIG. 5 , the terminal device can display multiple inflection points in the golf course map, such as position B and position C. In one example, when the information of the inflection point corresponding to the target tee includes the inflection point range, referring to c in FIG. 5 , the terminal device can display the inflection point range in the golf course map, such as the range covered by the gray circle.
应理解,终端设备在高尔夫球场地图中显示拐点的目的在于:为用户推荐高尔夫球的落点,用户可以根据拐点的位置,调整自己的击球力度、击球方向等,以便于高尔夫球可以落在拐点。It should be understood that the purpose of the terminal device displaying the inflection point in the golf course map is to recommend the landing point of the golf ball to the user. The user can adjust his or her hitting strength, hitting direction, etc. according to the position of the inflection point so that the golf ball can land at the inflection point.
在一种实施例中,终端设备在确定发球台对应的拐点信息后,还可以根据拐点的信息,确定发球台与果岭的距离。其中,以一个发球台为例进行说明,终端设备可以根据发球台对应的拐点信息,确定夹角最大的第一线段和第二线段,且将第一线段和第二线段的长度加和作为发球台与果岭的距离。相应的,终端设备可以获取目标发球台与果岭的距离,即用户与果岭的距离。In one embodiment, after determining the inflection point information corresponding to the tee, the terminal device can also determine the distance between the tee and the green based on the inflection point information. Taking a tee as an example, the terminal device can determine the first line segment and the second line segment with the largest angle based on the inflection point information corresponding to the tee, and add the lengths of the first line segment and the second line segment as the distance between the tee and the green. Accordingly, the terminal device can obtain the distance between the target tee and the green, that is, the distance between the user and the green.
在该种实施例中,参照图5中的a,终端设备还可以显示目标发球台与果岭的距离,即用户与果岭的距离。示例性的,图5中的a以果岭的中心点为圆心,以不同半径的圆形表征用户与果岭的距离。In this embodiment, referring to a in Figure 5, the terminal device can also display the distance between the target tee and the green, that is, the distance between the user and the green. For example, a in Figure 5 takes the center point of the green as the center of the circle, and uses circles of different radii to represent the distance between the user and the green.
在该种实施例中,参照图5中的a,终端设备还可以显示用户与拐点的距离,该距离即第一线段的长度。示例性的,图5中的a可以以用户的位置为圆心,以不同半径的圆形表征用户与拐点的距离。终端设备可以将夹角最大的拐点与用户的距离,作为用户与拐点的距离。或者,如目标发球台对应的拐点的信息包括拐点范围,终端设备可以将拐点范围的中心点与用户的距离,作为用户与拐点的距离。In this embodiment, referring to a in FIG. 5 , the terminal device may also display the distance between the user and the inflection point, which is the length of the first line segment. Exemplarily, a in FIG. 5 may use circles of different radii with the user's position as the center to represent the distance between the user and the inflection point. The terminal device may use the distance between the inflection point with the largest angle and the user as the distance between the user and the inflection point. Alternatively, if the information of the inflection point corresponding to the target tee includes the inflection point range, the terminal device may 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 tee, the terminal device may also obtain the angle of the inflection point corresponding to the target tee relative to the user based on the inflection point information corresponding to the target tee and the user's position. Exemplarily, the terminal device may obtain the angle of the inflection point relative to the user based on the position of the inflection point where the angle between the first line segment and the second line segment is the largest and the user's position in the inflection point information corresponding to the target tee. Exemplarily, if the inflection point information corresponding to the target tee 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 based on the position of the center point of the inflection point range and the user's position.
参照图6,终端设备可以在高尔夫球场地图中显示拐点相对于用户的角度。示例性的,图6中以箭头和方位“如西北方向10°”表征拐点相对于用户的角度。6 , the terminal device may display the angle of the inflection point relative to the user in the golf course map. For example, in FIG6 , an arrow and a direction “such as 10° northwest” are used to represent the angle of the inflection point relative to the user.
在一种实施例中,参照图5和图6,终端设备还可以显示狗腿洞的编号,以及标准杆数。如狗腿洞为2号洞(图5中以H02表示),标准杆数为5杆(图5中以Par5表示)。 In one embodiment, referring to Figures 5 and 6, the terminal device may also display the number of the dogleg hole and the par score. For example, the dogleg hole is hole No. 2 (indicated by H02 in Figure 5) and the par score is 5 (indicated by Par5 in Figure 5).
本申请实施例中,终端设备可以根据地图数据,确定球道中的拐点,进而可以根据该拐点计算用户与果岭的距离,因为本申请实施例考虑到球道中的拐点,而不是计算用户和果岭的直线距离,因此可以提高用户与果岭的距离的计算准确性。另,终端设备还可以在高尔夫球场地图中显示拐点以及用户与果岭的距离,可以辅助用户更准确地击球,提高用户体验。In the embodiment of the present application, the terminal device can determine the inflection point in the fairway based on the map data, and then calculate the distance between the user and the green based on the inflection point. Because the embodiment of the present application takes into account the inflection point in the fairway instead of calculating the straight-line distance between the user and the green, the calculation accuracy of the distance between the user and the green can be improved. In addition, the terminal device can also display the inflection point and the distance between the user and the green in the golf course map, which can assist the user to hit the ball more accurately and improve the user experience.
如上实施例中,在用户击打第一杆球时,或者用户的位置处于发球台时,终端设备可以按照图3所示的实施例获取拐点的信息,以及用户和果岭的位置。在一种可能的场景中,如用户击球后,高尔夫球的落点未包含于发球台中,在用户再次击球时,因为用户的位置未处于发球台,则终端设备无法在已有的发球台对应的拐点信息中获取拐点的信息,也无法显示拐点。示例性的,参照图7,用户在发球台1处击球,高尔夫球的落点在位置D处,当用户在位置D击球时,用户的位置未处于发球台,终端设备无法获取拐点的信息,也无法显示拐点。As in the above embodiment, when the user hits the first shot, or when the user is at the tee, the terminal device can obtain the inflection point information, as well as the position of the user and the green according to the embodiment shown in FIG3. In a possible scenario, after the user hits the ball, the landing point of the golf ball is not included in the tee. When the user hits the ball again, because the user is not at the tee, the terminal device cannot obtain the inflection point information from the existing inflection point information corresponding to the tee, nor can it display the inflection point. For example, referring to FIG7, the user hits the ball at the tee 1, and the landing point of the golf ball is at position D. When the user hits the ball at position D, the user is not at the tee, and the terminal device cannot obtain the inflection point information, nor can it display the inflection point.
在一种实施例中,终端设备可以根据用户的位置,获取拐点的信息。这样,即使用户的位置未包含于发球台中,终端设备也可以获取拐点的信息,以及显示拐点和果岭距离。In one embodiment, the terminal device can obtain the inflection point information according to the user's position. In this way, even if the user's position is not included in the tee box, the terminal device can obtain the inflection point information and display the inflection point and the distance to the green.
参照图8,本申请实施例提供的高尔夫球场中距离的确定方法可以包括:8 , the method for determining the distance in a golf course provided in an embodiment of the present application may include:
S801,获取用户的位置。S801, obtaining the user's location.
S801可以参照S302的相关描述。在一种示例中,参照S302的相关描述,终端设备获取用户的位置后,可以检测用户的位置是否包含于目标球洞的球洞轮廓中,若用户的位置包含于目标球洞的球洞轮廓中,则终端设备可以执行S802-S803,若用户的位置未包含于目标球洞的球洞轮廓中,表征用户可能已经偏离该目标球洞的球洞轮廓,则终端设备可以不执行S802-S803。S801 may refer to the relevant description of S302. In one example, referring to the relevant description of S302, after the terminal device obtains the user's position, it may detect whether the user's position is included in the hole contour of the target hole. If the user's position is included in the hole contour of the target hole, the terminal device may execute S802-S803. If the user's position is not included in the hole contour of the target hole, it indicates that the user may have deviated from the hole contour of the target hole, and the terminal device may not execute S802-S803.
S802,根据用户的位置,以及地图数据,确定拐点的信息。S802, determining the turning point information according to the user's location and map data.
地图数据、拐点的信息可以参照S301的相关描述。For information on map data and turning points, reference may be made to the relevant description of S301 .
本申请实施例中,终端设备可以在地图数据包含的位置中,获取拐点的信息。其中,终端设备可以在地图数据包含的位置中,获取候选拐点,进而根据候选拐点确定拐点。在一种示例中,候选拐点需要满足如下条件:In an embodiment of the present application, the terminal device may obtain information about the inflection point in the location included in the map data. The terminal device may obtain candidate inflection points in the location included in the map data, and then determine the inflection point based on the candidate inflection points. In one example, the candidate inflection points need to meet the following conditions:
条件1:处于球道轮廓内。Condition 1: Within the fairway outline.
条件2:处于中心线上。Condition 2: On the center line.
条件3:距离果岭的中心点的直线距离大于第一阈值。Condition 3: The straight-line distance from the center point of the green is greater than the first threshold.
条件5:与果岭的中心点连线得到第一线段,与用户的位置连线得到第三线段,第一线段和第三线段的夹角处于预设角度范围内。Condition 5: A first line segment is obtained by connecting the center point of the green, a third line segment is obtained by connecting the user's position, and an angle between the first line segment and the third line segment is within a preset angle range.
与上述条件4不同的是,条件5中获取的是第一线段和第三线段之间的夹角,第三线段为与用户的位置连线。在该种实施例中,用户与果岭的距离为第一线段和第三线段的长度的加和。终端设备可以按照如上4个条件筛选得到候选拐点,本申请实施例不限制终端设备使用如上4个条件的顺序,可以参照S301中的相关描述。Different from the above condition 4, the angle between the first line segment and the third line segment is obtained in condition 5, and the third line segment is a line connecting the user's position. In this embodiment, the distance between the user and the green is the sum of the lengths of the first line segment and the third line segment. The terminal device can filter and obtain candidate inflection points according to the above four conditions. The embodiment of the present application does not limit the order in which the terminal device uses the above four conditions, and can refer to the relevant description in S301.
在一种实施例中,终端设备可以在确定用户的位置未越过球道起点时,获取拐点的信息。应理解,这样设置的目的在于:若用户的位置已经越过了球道起点,用户大概率已经可以看到果岭,因此无需显示拐点,用户可以凭借自己的经验,调整击球力度、击球角度等。In one embodiment, the terminal device can obtain the inflection point information when determining that the user's position has not passed the starting point of the fairway. It should be understood that the purpose of such a setting is that if the user's position has passed the starting point of the fairway, the user is likely to be able to see the green, so there is no need to display the inflection point, and the user can adjust the hitting force, hitting angle, etc. based on his or her own experience.
其中,球道起点可以理解为:球道轮廓与中心线的交点,且该交点为远离果岭方向的交点。示例性的,参照图1,球道轮廓与中心线的交点为交点a和交点b,交点b可以作为球道起点。在该实施例中,终端设备可以根据用户的位置与果岭的中心点的位置,获取用户与果岭的距离,且可以根据球道起点的位置和果岭的中心点的位置,获取球道起点与果岭的距离。其中,终端设备响应于球道起点与果岭的距离小于或等于用户与果岭的距离,可以获取拐点的信息,终端设备响应于球道起点与果岭的距离大于用户与果岭的距离,无需获取拐点的信息。The starting point of the fairway can be understood as: the intersection of the fairway contour and the center line, and the intersection is the intersection away from the green. Exemplarily, referring to Figure 1, the intersection of the fairway contour and the center line is intersection a and intersection b, and intersection b can be used as the starting point of the fairway. In this embodiment, the terminal device can obtain the distance between the user and the green based on the position of the user and the position of the center point of the green, and can obtain the distance between the starting point of the fairway and the green based on the position of the starting point of the fairway and the position of the center point of the green. In response to the distance between the starting point of the fairway and the green being less than or equal to the distance between the user and the green, the terminal device can obtain the information of the inflection point, and in response to the distance between the starting point of the fairway and the green being greater than the distance between the user and the green, the terminal device does not need to obtain the information of the inflection point.
S803,根据拐点的信息,在高尔夫球场地图中显示拐点,以及用户与果岭的距离。S803: Display the inflection point and the distance between the user and the green on the golf course map according to the inflection point information.
S803可以参照S304的相关描述。For S803 , reference may be made to the relevant description of S304 .
参照图7,当用户处于位置D,且位置D未包含于发球台中时,终端设备可以执行S802得到拐点的信息,进而终端设备可以在高尔夫球场地图中显示拐点,以及用户与果岭的距离。7 , when the user is at position D and position D is not included in the tee box, the terminal device may execute S802 to obtain information about the inflection point, and then the terminal device may display the inflection point and the distance between the user and the green in the golf course map.
在一种实施例中,图9A示出了终端设备执行高尔夫球场中距离的确定方法的流程示意图。参照图 9A,终端设备可以下载高尔夫球场的地图数据,且在高尔夫球场的地图数据中提取终端设备所需的数据,如可以包括果岭轮廓、果岭的中心点位置、发球台位置、发球台的中心点位置、球洞轮廓、球道轮廓,以及中心线坐标等。终端设备可以根据拐点所需满足的条件,过滤掉无效的点,无效的点即为不是候选拐点的点。终端设备可以连接候选拐点和用户和果岭的中心点得到第一线段,以及连接候选拐点与发球台得到第二线段(或连接候选拐点与用户的位置得到第三线段),计算第一线段和第二线段的夹角(或计算第一线段和第三线段的夹角)。终端设备可以将最大夹角对应候选拐点作为球道的拐点。In one embodiment, FIG9A is a schematic diagram showing a flow chart of a method for determining a distance in a golf course executed by a terminal device. 9A, the terminal device can download the map data of the golf course, and extract the data required by the terminal device from the map data of the golf course, such as the outline of the green, the center point position of the green, the tee position, the center point position of the tee, the outline of the hole, the outline of the fairway, and the center line coordinates. The terminal device can filter out invalid points according to the conditions that the inflection point needs to meet. Invalid points are points that are not candidate inflection points. The terminal device can connect the candidate inflection point and the user and the center point of the green to obtain a first line segment, and connect the candidate inflection point and the tee to obtain a second line segment (or connect the candidate inflection point and the user's position to obtain a third line segment), and calculate the angle between the first line segment and the second line segment (or calculate the angle between the first line segment and the third line segment). The terminal device can use the candidate inflection point corresponding to the maximum angle as the inflection point of the fairway.
本申请实施例中,终端设备可以根据用户的位置,获取拐点的信息,这样即使用户的位置未包含于发球台,终端设备也能够获取拐点的信息,可以保证拐点的准确性,能够为用户显示准确的拐点。In an embodiment of the present application, the terminal device can obtain the inflection point information based on the user's position, so that even if the user's position is not included in the tee, the terminal device can obtain the inflection point information, which can ensure the accuracy of the inflection point and display the accurate inflection point to the user.
在图3和图8所示的实施例中,在一种示例中,终端设备可以周期性地获取用户的位置,进而可以周期性地更新显示拐点,以及用户与果岭的距离。In the embodiments shown in FIG. 3 and FIG. 8 , in one example, the terminal device may periodically obtain the location of the user, and then may 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 user's location according to the state of the terminal device, so as to adaptively adjust the computing power of the terminal device and reduce the power consumption of the terminal device.
示例性的,终端设备的状态包括亮屏状态和灭屏状态,当终端设备处于亮屏状态时,每隔第一时长,获取一次用户的位置,当终端设备处于灭屏状态时,每隔第二时长,获取一次用户的位置,第二时长大于第一时长。当终端设备处于亮屏状态时,如终端设备可以每隔1s获取一次用户的位置,这样终端设备每隔1s更新一次拐点,以及用户与果岭的距离。当终端设备处于灭屏状态时,表征用户没有在看高尔夫球场的地图,如终端设备可以每隔1min获取一次用户的位置,这样终端设备每隔1min更新一次拐点,以及用户与果岭的距离。Exemplarily, the state of the terminal device includes a screen-on state and a screen-off state. When the terminal device is in the screen-on state, the user's position is obtained once every first time period. When the terminal device is in the screen-off state, the user's position is obtained once every second time period, and the second time period is greater than the first time period. When the terminal device is in the screen-on state, the terminal device can obtain the user's position every 1 second, so that the terminal device updates the inflection point and the distance between the user and the green every 1 second. When the terminal device is in the screen-off state, it indicates that the user is not looking at the map of the golf course. For example, the terminal device can obtain the user's position every 1 minute, so that the terminal device updates the inflection point and the distance between the user and the green every 1 minute.
参照图9B中的a,当终端设备处于亮屏状态时,终端设备可以每隔1s更新一次拐点,以及用户与果岭的距离。参照图9B中的b,当终端设备处于灭屏状态时,终端设备可以每隔1min更新一次拐点,以及用户与果岭的距离,因终端设备处于灭屏状态,图9B中的b未示出终端设备的界面。Referring to a in FIG9B , when the terminal device is in the screen-on state, the terminal device can update the inflection point and the distance between the user and the green every 1 second. Referring to b in FIG9B , when the terminal device is in the screen-off state, the terminal device can update the inflection point and the distance between the user and the green every 1 minute. Since the terminal device is in the screen-off state, b in FIG9B does not show the interface of the terminal device.
在一种示例中,终端设备的状态可以表征用户的运动状态,示例性的,终端设备可以根据终端设备中的传感器250获取终端设备的姿态的变化,进而确定用户的运动状态。其中,如当用户的运动状态为移动时,可以表征用户未击球,则终端设备可以增长获取用户的位置的周期,或者终端设备在用户移动时不获取用户的位置。当用户的运动状态为静止时,如用户的位置在预设时长内不变,则表征用户大概率可能会击球,则终端设备可以减小获取用户的位置的周期,以及时显示拐点以及用户与果岭的距离。In one example, the state of the terminal device can represent the user's motion state. For example, the terminal device can obtain changes in the posture of the terminal device according to the sensor 250 in the terminal device, and then determine the user's motion state. Among them, when the user's motion state is moving, it can represent that the user has not hit the ball, and the terminal device can increase the period of obtaining the user's position, or the terminal device does not obtain the user's position when the user moves. When the user's motion state is stationary, if the user's position does not change within a preset time, it represents that the user is likely to hit the ball, and the terminal device can reduce the period of obtaining the user's position to timely display the inflection point and the distance between the user and the green.
如此,终端设备可以根据终端设备的状态,自适应调整计算周期,可以降低终端设备的功耗。In this way, the terminal device can adaptively adjust the calculation cycle according to the state of the terminal device, thereby reducing the power consumption of the terminal device.
在一种示例中,为了减少终端设备的工作量,降低终端设备的功耗,终端设备可以显示暂停定位的按键,用户操作暂停定位的按键,可以触发终端设备暂停获取用户的位置,进而暂停执行获取拐点的信息,以及显示拐点、用户与果岭的距离的动作。示例性的,用户在发球台击球后,可以移动至高尔夫球的落点处,在用户移动的过程中,若终端设备一直计算用户的位置,以及拐点的信息等,会消耗终端设备的功耗。本申请实施例中,用户在发球台击球后,可以操作暂停定位的按键,触发终端设备暂停获取用户的位置,在用户移动至高尔夫球的落点处时,用户可以再次操作暂停定位的按键,触发终端设备获取用户的位置,这样在用户移动至高尔夫球的落点处的过程中,终端设备无需获取用户的位置,可以减少终端设备的计算量和功耗。In one example, in order to reduce the workload of the terminal device and reduce the power consumption of the terminal device, the terminal device can display a button for pausing positioning. When the user operates the button for pausing positioning, the terminal device can be triggered to pause obtaining the user's position, and then pause the execution of obtaining the inflection point information, and displaying the inflection point, the distance between the user and the green. Exemplarily, after hitting the ball on the tee, the user can move to the landing point of the golf ball. During the user's movement, if the terminal device keeps calculating the user's position and the inflection point information, the power consumption of the terminal device will be consumed. In the embodiment of the present application, after hitting the ball on the tee, the user can operate the button for pausing positioning to trigger the terminal device to pause obtaining the user's position. When the user moves to the landing point of the golf ball, the user can operate the button for pausing positioning again to trigger the terminal device to obtain the user's position. In this way, during the process of the user moving to the landing point of the golf ball, the terminal device does not need to obtain the user's position, which can reduce the calculation amount and power consumption of the terminal device.
综合图3和图8所示的实施例,在一种实施例中,参照图10,本申请实施例提供的高尔夫球场中距离的确定方法可以包括:Combining the embodiments shown in FIG. 3 and FIG. 8 , in one embodiment, referring to FIG. 10 , the method for determining the distance in a golf course provided in the embodiment of the present application may include:
S1001,获取用户的位置。S1001, obtaining the user's location.
S1002,根据用户的位置,获取拐点的信息。S1002, obtaining inflection point information according to the user's location.
在一种示例中,终端设备可以根据用户的位置,以及地图数据,获取拐点的信息,可以参照S802中的相关描述。在一种示例中,终端设备可以根据用户的位置,确定用户所处的目标发球台,再根据已获取的发球台对应的拐点的信息,获取目标发球台对应的拐点的信息。In one example, the terminal device can obtain the inflection point information according to the user's location and map data, and the relevant description in S802 can be referred to. In one example, the terminal device can determine the target teeing station where the user is located according to the user's location, and then obtain the inflection point information corresponding to the target teeing station according to the obtained inflection point information corresponding to the teeing station.
在一种示例中,终端设备可以获取非障碍区中每个位置对应的拐点的信息。其中,非障碍区可以理解为高尔夫球场中除了非障碍区之外的其他区域。终端设备获取每个位置对应的拐点的信息的方式可以参照S301、S802中的相关描述。应注意,在一些位置并不存在对应的拐点,因此可以无需获取这个位 置的拐点,如这些位置为越过球道起点的位置。In one example, the terminal device may obtain information about the inflection point corresponding to each position in the non-obstruction area. The non-obstruction area may be understood as other areas of the golf course except the non-obstruction area. The manner in which the terminal device obtains information about the inflection point corresponding to each position may refer to the relevant descriptions in S301 and S802. It should be noted that there is no corresponding inflection point at some positions, so it is not necessary to obtain the information about the inflection point at this position. The inflection points of these positions are those that cross the beginning of the fairway.
在该示例中,终端设备可以根据用户的位置,以及已获取的非障碍区中每个位置对应的拐点的信息,确定用户的位置对应的拐点的信息。In this example, the terminal device can determine the information of the inflection point corresponding to the user's position based on the user's position and the acquired information of the inflection point corresponding to each position in the non-obstruction area.
在该示例中,为了减少终端设备的处理量,可以将非障碍区划分为多个子区域,本申请实施例不限制子区域的数量、形状等。在该示例中,终端设备可以获取每个子区域对应的拐点的信息,可以参照S301中的相关描述。终端设备可以根据用户的位置,确定用户所处的目标子区域,进而将目标子区域对应的拐点的信息作为用户的位置对应的拐点的信息,可以参照S303中的相关描述。In this example, in order to reduce the processing load of the terminal device, the non-obstructed area can be divided into multiple sub-areas, and the embodiment of the present application does not limit the number, shape, etc. of the sub-areas. In this example, the terminal device can obtain the information of the inflection point corresponding to each sub-area, and refer to the relevant description in S301. The terminal device can determine the target sub-area where the user is located according to the user's position, and then use the information of the inflection point corresponding to the target sub-area as the information of the inflection point corresponding to the user's position, and refer to the relevant description in S303.
S1003,根据拐点的信息,在高尔夫球场地图中显示拐点,以及用户与果岭的距离。S1003: Display the inflection point and the distance between the user and the green on the golf course map according to the inflection point information.
S1003可以参照S304、S803的相关描述。For S1003 , reference may be made to the relevant descriptions of S304 and S803 .
本申请实施例具有与图3和图8所示的实施例相同的技术效果,可以参照上述实施例的相关描述。The embodiments of the present application have the same technical effects as the embodiments shown in FIG. 3 and FIG. 8 , and reference may be made to the relevant descriptions of the above embodiments.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),如用户的位置,均为经用户授权或者经过各方充分授权的信息和数据,并且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准,并提供有相应的操作入口,供用户选择授权或者拒绝。It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.), such as the user's location, involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
需要说明的是,上述实施例中所述的模块或部件可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个专用集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序代码的处理器如控制器。再如,这些模块可以集成在一起,以片上***(system-on-a-chip,SOC)的形式实现。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, such as 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 (FPGAs). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code, such as a controller. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can 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 the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by the computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
本文中的术语“多个”是指两个或两个以上。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系;在公式中,字符“/”,表示前后关联对象是一种“相除”的关系。另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。The term "plurality" in this article refers to two or more than two. The term "and/or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character "/" in this article generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character "/" indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.
可以理解的是,在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。 It can be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

Claims (16)

  1. 一种高尔夫球场中距离的确定方法,其特征在于,包括:A method for determining distance in a golf course, characterized by comprising:
    在用户进行高尔夫运动的过程中,获取所述用户的位置;While the user is playing golf, obtaining the user's location;
    根据所述用户的位置,获取高尔夫球场中球道的拐点的信息;Acquiring information about turning points of a fairway in a golf course according to the user's location;
    根据所述拐点的信息,获取所述用户与所述高尔夫球场中果岭的距离;Acquire the distance between the user and the green of the golf course according to the inflection point information;
    在高尔夫球场地图中显示拐点,以及所述用户与所述果岭的距离。The turning point is displayed on a golf course map, along with the distance between the user and the green.
  2. 根据权利要求1所述的方法,其特征在于,所述拐点的信息包括:至少一个拐点的位置或拐点范围,所述拐点范围包括所述至少一个拐点的位置,所述在高尔夫球场地图中显示拐点,包括:The method according to claim 1, characterized in that the information of the inflection point includes: the position of at least one inflection point or the inflection point range, the inflection point range includes the position of the at least one inflection point, and the displaying of the inflection point in the golf course map comprises:
    在所述高尔夫球场地图中显示所述至少一个拐点或所述拐点范围。The at least one inflection point or the inflection point range is displayed in the golf course map.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述拐点的信息,获取所述用户与所述高尔夫球场中果岭的距离,包括:The method according to claim 2, characterized in that the obtaining the distance between the user and the green of the golf course according to the inflection point information comprises:
    当所述拐点的信息包括所述至少一个拐点的位置时,将所述用户与目标拐点的距离,以及所述目标拐点与所述果岭的距离的加和,作为所述用户与所述果岭的距离,所述目标拐点包含于所述至少一个拐点中;When the inflection point information includes the position of the at least one inflection point, taking the sum of the distance between the user and a target inflection point and the distance between the target inflection point and the green as the distance between the user and the green, the target inflection point being included in the at least one inflection point;
    当所述拐点的信息包括拐点范围时,确定所述拐点范围的中心点;When the information of the inflection point includes an inflection point range, determining a center point of the inflection point range;
    将所述用户与所述中心点的距离,以及所述中心点与所述果岭的距离的加和,作为所述用户与所述果岭的距离。The sum of the distance between the user and the center point and the distance between the center point and the green is taken as the distance between the user and the green.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述根据所述用户的位置,获取高尔夫球场中球道的拐点的信息,包括:The method according to any one of claims 1 to 3, characterized in that the step of obtaining information about the turning point of a fairway in a golf course according to the position of the user comprises:
    根据所述用户的位置,确定所述用户所处的目标发球台;Determining a target tee box where the user is located according to the user's position;
    将所述目标发球台对应的拐点的信息,作为所述高尔夫球场中球道的拐点的信息。The information of the inflection point corresponding to the target tee is used as the information of the inflection point of the fairway in the golf course.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, characterized in that the method further comprises:
    获取所述高尔夫球场中至少一个发球台对应的拐点的信息。The information of the inflection point corresponding to at least one tee box in the golf course is obtained.
  6. 根据权利要求5所述的方法,其特征在于,所述获取所述高尔夫球场中至少一个发球台对应的拐点的信息,包括:The method according to claim 5, characterized in that the step of obtaining information of an inflection point corresponding to at least one tee box in the golf course comprises:
    根据所述高尔夫球场的地图数据,获取所述高尔夫球场中至少一个发球台对应的拐点信息。According to the map data of the golf course, inflection point information corresponding to at least one tee box in the golf course is obtained.
  7. 根据权利要求6所述的方法,其特征在于,所述高尔夫球场的地图数据包括:球道轮廓、中心线、所述果岭的中心点、球道的中心点,以及所述至少一个发球台的中心点,所述中心线为:所述至少一个发球台的中心点、所述球道的中心点以及所述果岭的中心点的连线;The method according to claim 6, characterized in that the map data of the golf course includes: a fairway outline, a center line, a center point of the green, a center point of the fairway, and a center point of the at least one teeing ground, and the center line is: a line connecting the center point of the at least one teeing ground, the center point of the fairway, and the center point of the green;
    发球台对应的拐点信息中包括的拐点满足如下条件:The inflection points included in the inflection point information corresponding to the tee satisfy the following conditions:
    处于所述球道轮廓内、处于所述中心线上,以及与所述果岭的中心点的距离大于第一阈值;以及,is within the fairway contour, on the centerline, and at a distance from the center point of the green greater than a first threshold; and,
    第一线段和第二线段的夹角处于预设角度范围内,所述第一线段为与所述果岭的中心点的连线,所述第二线段为与发球台的中心点的连线。The included angle between the first line segment and the second line segment is within a preset angle range, the first line segment is a line connected to the center point of the green, and the second line segment is a line connected to the center point of the tee.
  8. 根据权利要求7所述的方法,其特征在于,当发球台对应的拐点信息包括一个拐点的位置时,所述拐点的信息中包括的拐点为:处于所述预设角度范围内的最大夹角对应的拐点。The method according to claim 7 is characterized in that, when the inflection point information corresponding to the tee includes the position of an inflection point, the inflection point included in the inflection point information is: the inflection point corresponding to the maximum angle within the preset angle range.
  9. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, characterized in that the method further comprises:
    当根据所述用户的位置,确定所述用户未处于发球台中时,根据所述用户的位置,以及所述高尔夫球场的地图数据,获取所述拐点的信息。When it is determined based on the position of the user that the user is not at the tee box, the information of the inflection point is acquired based on the position of the user and the map data of the golf course.
  10. 根据权利要求9所述的方法,其特征在于,所述高尔夫球场的地图数据包括:球道轮廓、中心线、所述果岭的中心点、球道的中心点,以及至少一个发球台的中心点,所述中心线为:所述至少一个发球台的中心点、所述球道的中心点以及所述果岭的中心点的连线;The method according to claim 9, characterized in that the map data of the golf course includes: a fairway outline, a center line, a center point of the green, a center point of the fairway, and a center point of at least one teeing ground, and the center line is: a line connecting the center point of the at least one teeing ground, the center point of the fairway, and the center point of the green;
    所述拐点信息中包括的拐点满足如下条件:The inflection point included in the inflection point information satisfies the following conditions:
    处于所述球道轮廓内、处于所述中心线上,以及与所述果岭的中心点的距离大于第一阈值;以及,is within the fairway contour, on the centerline, and at a distance from the center point of the green greater than a first threshold; and,
    第一线段和第三线段的夹角处于预设角度范围内,所述第一线段为与所述果岭的中心点的连线,所述第三线段为与所述用户的位置的连线。The angle between the first line segment and the third line segment is within a preset angle range, the first line segment is a line connecting the center point of the green, and the third line segment is a line connecting the position of the user.
  11. 根据权利要求10所述的方法,其特征在于,所述高尔夫球场的地图数据还包括:球道起点,所述根据所述用户的位置,以及所述高尔夫球场的地图数据,获取所述拐点的信息之前,还包括: The method according to claim 10, characterized in that the map data of the golf course further includes: a starting point of a fairway, and before acquiring the information of the turning point according to the location of the user and the map data of the golf course, the method further includes:
    获取所述用户与所述果岭的中心点的距离,以及所述球道起点与所述果岭的中心点的距离;Acquire the distance between the user and the center point of the green, and the distance between the starting point of the fairway and the center point of the green;
    所述根据所述用户的位置,以及所述高尔夫球场的地图数据,获取所述拐点的信息,包括:The acquiring the information of the turning point according to the location of the user and the map data of the golf course includes:
    响应于所述用户与所述果岭的中心点的距离大于所述球道起点与所述果岭的中心点的距离,根据所述用户的位置,以及所述高尔夫球场的地图数据,获取所述拐点的信息。In response to the distance between the user and the center point of the green being greater than the distance between the start point of the fairway and the center point of the green, the information of the inflection point is acquired according to the position of the user and the map data of the golf course.
  12. 根据权利要求6-11中任一项所述的方法,其特征在于,所述高尔夫球场的地图数据还包括:球洞轮廓,所述根据所述用户的位置,获取高尔夫球场中球道的拐点的信息,包括:The method according to any one of claims 6 to 11, characterized in that the map data of the golf course further includes: a hole outline, and obtaining information on the turning points of the fairway in the golf course according to the location of the user comprises:
    检测所述用户的位置是否包含于目标球洞的球洞轮廓中,所述目标球洞为所述用户选择的球洞;Detecting whether the user's position is included in a hole outline of a target hole, where the target hole is a hole selected by the user;
    若是,则根据所述用户的位置,获取高尔夫球场中球道的拐点的信息。If so, information about the turning point of the fairway in the golf course is obtained according to the position of the user.
  13. 根据权利要求6-12中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 6 to 12, characterized in that the method further comprises:
    响应于开始进行高尔夫运动的指示,若未存储所述高尔夫球场的地图数据,则向服务器请求下载所述高尔夫球场的地图数据;In response to an instruction to start playing golf, if the map data of the golf course is not stored, requesting a server to download the map data of the golf course;
    接收来自所述服务器的所述高尔夫球场的地图数据。Map data of the golf course is received from the server.
  14. 根据权利要求1-13中任一项所述的方法,其特征在于,所述获取所述用户的位置,包括:The method according to any one of claims 1 to 13, characterized in that obtaining the location of the user comprises:
    当终端设备处于亮屏状态时,每隔第一时长,获取一次所述用户的位置;When the terminal device is in a screen-on state, obtaining the location of the user once every first time period;
    当所述终端设备处于灭屏状态时,每隔第二时长,获取一次所述用户的位置,所述第二时长大于所述第一时长。When the terminal device is in a screen-off state, the location of the user is obtained once every second time period, and the second time period is greater than the first time period.
  15. 一种电子设备,其特征在于,包括:处理器和存储器;An electronic device, characterized in that it comprises: a processor and a memory;
    所述存储器存储计算机指令;The memory stores computer instructions;
    所述处理器执行所述存储器存储的计算机指令,使得所述处理器执行如权利要求1-14中任一项所述的方法。The processor executes the computer instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 14.
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序或指令,当所述计算机程序或指令被运行时,实现如权利要求1-14中任一项所述的方法。 A computer-readable storage medium, characterized in that a computer program or instruction is stored in the computer-readable storage medium, and when the computer program or instruction is executed, the method according to any one of claims 1 to 14 is implemented.
PCT/CN2023/133668 2022-12-08 2023-11-23 Distance determination method in golf course, electronic device, and storage medium WO2024120212A1 (en)

Applications Claiming Priority (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
CN202211573786.7 2022-12-08

Publications (1)

Publication Number Publication Date
WO2024120212A1 true WO2024120212A1 (en) 2024-06-13

Family

ID=91347445

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/133668 WO2024120212A1 (en) 2022-12-08 2023-11-23 Distance determination method in golf course, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN118168531A (en)
WO (1) WO2024120212A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07501887A (en) * 1991-12-16 1995-02-23 ピンレインジャー(オーストラリア) プロプライエタリー リミテッド Distance measurement method
KR20020090176A (en) * 2002-09-23 2002-11-30 배성두 Golf method and the golf course
KR100741655B1 (en) * 2006-12-18 2007-07-23 주식회사 자티전자 A distance measuring apparatus using distance measuring and screen display method
KR20070095137A (en) * 2006-03-20 2007-09-28 노보스(주) Method of displaying and fathoming of distances in golf game and their unit
KR20170141421A (en) * 2016-06-15 2017-12-26 주식회사 파인디지털 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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07501887A (en) * 1991-12-16 1995-02-23 ピンレインジャー(オーストラリア) プロプライエタリー リミテッド Distance measurement method
KR20020090176A (en) * 2002-09-23 2002-11-30 배성두 Golf method and the golf course
KR20070095137A (en) * 2006-03-20 2007-09-28 노보스(주) 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
KR20170141421A (en) * 2016-06-15 2017-12-26 주식회사 파인디지털 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

Also Published As

Publication number Publication date
CN118168531A (en) 2024-06-11

Similar Documents

Publication Publication Date Title
US10881941B2 (en) Hybrid golf guide system
US20140274240A1 (en) Apparatus and method for simulated gameplay based on a geospatial position
US20150328523A1 (en) Devices and methods for analyzing golf swings
US20120007885A1 (en) System and Method for Viewing Golf Using Virtual Reality
US9526958B2 (en) Digital compass ball marker
JP6204635B1 (en) Golf play support system, golf play support method, and program
WO2010078484A2 (en) Golf system user interface
US8992345B2 (en) Digital compass ball marker
US10585993B2 (en) Method and apparatus for personalized putting of a golf ball
US20130144778A1 (en) Gps-based portable golf distance indicator and method for sharing map data using the same
JP2022019709A (en) Golf analysis assistant device, golf analysis assistant method and program thereof
WO2024120212A1 (en) Distance determination method in golf course, electronic device, and storage medium
WO2023109834A1 (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
WO2022001749A1 (en) Method for activating sports mode and electronic device
US20210228943A1 (en) Skill level determination and management system and method
US20150375084A1 (en) Digital compass ball marker
KR102224185B1 (en) Wearable unit and golf information system including the same
KR102237571B1 (en) Golf information providing system and wearable unit for thesame
KR102237251B1 (en) Golf information providing system and wearable unit for thesame
US20230048851A1 (en) Golf Ball Tracking System and Method
WO2022102491A1 (en) Control apparatus and control method
WO2023218627A1 (en) Golf assistance system, golf assistance method, and golf assistance program
KR200303923Y1 (en) GPS golf cart
KR20240001994A (en) Indicator app for golf putting and putting information supportting method therefor