Data processing method and device, equipment, medium and product

Through the data processing method of smart devices, the problem of users in ball sports is solved that it is difficult for users to accurately judge the position of the court, and provide batting auxiliary information to improve batting accuracy.

CN119884271APending Publication Date: 2025-04-25SHENZHEN YANXIANG STEALTH SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411985012.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In ball sports, it is difficult for users to accurately judge their current position information in the court, the position information of obstacles or the position information of the target area, resulting in inaccurate control of the hitting distance.

Method used

Through intelligent devices, data processing methods are provided, and the field map data, user position information and user hitting distance information are obtained through intelligent devices, the target area distance is calculated, the expected landing point information is determined, and the hitting auxiliary information is generated.

Benefits of technology

Helps users obtain their current position in the court in real time, and improves the accuracy of users' hitting during the play with batting assistance information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119884271A_ABST
    Figure CN119884271A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, equipment, a medium and a product, and relates to the technical field of intelligent terminals.The method comprises the steps that in response to a received operation instruction of a user, a target area is determined according to the operation instruction, and court map data, user position information and user ball hitting distance information are obtained; based on the court map data, the user position information and a target area, calculating a target area distance between the user and the target area; determining predicted drop point information according to the target area distance and the user hitting distance information; the ball hitting auxiliary information is generated according to the target area distance and the predicted drop point information, the user can be helped to obtain the current position in the ball field in real time through the ball field map data and the user position information, the user can be helped to control the ball hitting distance in the ball playing process through the ball hitting auxiliary information, and the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent terminal technology, and in particular to a data processing method, device, equipment, medium and product. Background Art

[0002] In ball sports (such as golf), if the user cannot accurately determine his current position information on the course, the position information of obstacles or the position information of the target area, it is difficult to control the hitting distance, thereby affecting the accuracy of the user's hitting.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of this application is to provide a data processing method, device, equipment, medium and product, which aims to provide batting assistance information through a smart device to improve the user's batting accuracy.

[0005] To achieve the above object, the present application provides a data processing method, which is applied to a smart device and includes:

[0006] In response to receiving an operation instruction from a user, determining a target area according to the operation instruction, and acquiring golf course map data, user location information, and user hitting distance information;

[0007] Calculating a target area distance between the user and the target area based on the course map data, the user location information and the target area;

[0008] Determine the expected landing point information according to the target area distance and the user's hitting distance information;

[0009] The ball-hitting assistance information is generated according to the target area distance and the expected landing point information.

[0010] In one embodiment, before the step of obtaining the golf course map data, the step further includes:

[0011] Obtain the longitude and latitude data of the stadium map through satellite maps;

[0012] Projecting the latitude and longitude data of the golf course map into Mercator rectangular coordinate data;

[0013] The Mercator rectangular coordinate data is converted into a screen coordinate system of a smart device to obtain the course map data.

[0014] In one embodiment, the user location information includes the latitude and longitude coordinates of the user's current point, and the step of calculating the target area distance between the user and the target area based on the course map data, the user location information and the target area includes:

[0015] Projecting the longitude and latitude coordinates of the user's current point through Mercator projection to obtain the Mercator rectangular coordinates of the current point;

[0016] Convert the Mercator rectangular coordinates of the current point to the screen coordinate system of the smart device to obtain the screen coordinate point of the user position;

[0017] The court map data is called, and the distance from the screen coordinate point of the user position to the target area is calculated to obtain the target area distance.

[0018] In one embodiment, the target area distance includes at least one of a target area front distance, a target area midpoint distance, and a target area rear edge distance, and the step of calculating the distance from the user position screen coordinate point to the target area to obtain the target area distance includes:

[0019] Determine the center point coordinates and the polygonal circumscribed rectangle of the target area;

[0020] Determine an external coordinate point according to the user position screen coordinate point and the center point coordinate of the target area;

[0021] Calculate the intersection of the line connecting the user position screen coordinate point and the external coordinate point and the circumscribed rectangle of the polygon;

[0022] At least one of the target area front distance, the target area midpoint distance and the target area rear edge distance is calculated according to the intersection point.

[0023] In one embodiment, before the step of obtaining the user's hitting distance information, the step further includes:

[0024] Detecting each swing data of the user by using a preset swing detection algorithm, and obtaining the longitude and latitude information corresponding to each swing data;

[0025] Calculate the distance data between each swing data and the corresponding next swing data in the swing data according to the swing data and the corresponding longitude and latitude information to obtain each distance data;

[0026] The average value of each distance data is calculated to obtain the user's hitting distance information.

[0027] In one embodiment, the step of generating the shot assisting information according to the target area distance and the expected landing point information comprises:

[0028] Compare the predicted landing point information with at least one of the target area front distance, the target area midpoint distance, and the target area rear edge distance to obtain a first estimation result;

[0029] Comparing the predicted landing point information with the obstacle area information in the golf course map data to obtain a second estimation result;

[0030] The batting assistance information is generated according to the first estimation result and / or the second estimation result, wherein the batting assistance information includes interface display information and / or voice prompt information.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a data processing device, which is applied to a smart device, and the data processing device includes:

[0032] A response module, configured to respond to receiving an operation instruction from a user, determine a target area according to the operation instruction, and obtain golf course map data, user location information, and user hitting distance information;

[0033] A calculation module, used for calculating the target area distance between the user and the target area based on the course map data, the user location information and the target area;

[0034] A determination module, used to determine the expected landing point information according to the target area distance and the user's hitting distance information;

[0035] A generation module is used to generate shot assisting information according to the target area distance and the expected landing point information.

[0036] In addition, to achieve the above objectives, the present application also proposes a data processing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data processing method described above.

[0037] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data processing method described above are implemented.

[0038] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the data processing method described above are implemented.

[0039] One or more technical solutions proposed in this application have at least the following technical effects:

[0040] In response to receiving an operation instruction from a user, a target area is determined according to the operation instruction, and course map data, user location information and user hitting distance information are obtained; based on the course map data, user location information and target area, a target area distance between the user and the target area is calculated; expected landing point information is determined according to the target area distance and the user hitting distance information; hitting assistance information is generated according to the target area distance and the expected landing point information. The course map data and user location information can help the user to obtain the current position in the course in real time, and can also help the user to obtain hitting assistance information on how to accurately hit the ball to the target area during the playing process, so that the user can control the hitting distance according to the hitting assistance information, thereby improving the user's hitting accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0043] Figure 1 A flowchart of the first embodiment of the data processing method of the present application is provided;

[0044] Figure 2 A flowchart of the second embodiment of the data processing method of this application is provided;

[0045] Figure 3 is a schematic diagram of a storage process according to the second embodiment;

[0046] Figure 4 A flowchart of the third embodiment of the data processing method of this application is provided;

[0047] Figure 5 is a schematic diagram of a target area distance determination process according to a third embodiment;

[0048] Figure 6 is a schematic diagram of a distance calculation process according to the third embodiment;

[0049] Figure 7 A flowchart of the fourth embodiment of the data processing method of the present application is provided;

[0050] Figure 8 is a schematic diagram of a display process according to a fourth embodiment;

[0051] Fig. 9 is a schematic diagram of a display screen according to a fourth embodiment;

[0052] Fig.10 is a schematic diagram of an estimation process according to a fourth embodiment;

[0053] Fig.11 This is a schematic diagram of the module structure of the data processing device according to an embodiment of the present application;

[0054] Fig.12 Schematic diagram of the device structure of the hardware operating environment involved in the data processing method in the embodiment of the present application.

[0055] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0056] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0057] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0058] The main solution of the embodiment of the present application is: in response to receiving an operation instruction from the user, determining the target area according to the operation instruction, and obtaining course map data, user location information and user hitting distance information; calculating the target area distance between the user and the target area based on the course map data, user location information and target area; determining the expected landing point information according to the target area distance and the user hitting distance information; generating hitting assistance information according to the target area distance and the expected landing point information, and through the course map data and user location information, it is helpful to help the user obtain the current position in the course in real time, and can also help the user control the hitting distance during the playing process through the hitting assistance information, thereby improving the user's experience.

[0059] The data processing method in the embodiments of the present application can be applied to a variety of smart devices. In the embodiments of the present application, a smart watch is used as an example for explanation.

[0060] The data processing method in the embodiments of the present application is applicable to various ball sports scenarios, such as football and basketball, etc. The data processing method in the embodiments of the present application is described using golf as an example.

[0061] Key terms and definitions used in this application:

[0062] Golf Course: A golf course is a place where you can play golf. A standard golf course consists of 18 holes, each with a set number of strokes, called par, which is 72. There are tee boxes, fairways, greens, bunkers, pools and other obstacles in the course.

[0063] Geographic Coordinate System: A coordinate system that uses a three-dimensional spherical surface to define the location on the earth's surface, so as to reference the points on the earth's surface through longitude and latitude. A geographic coordinate system consists of three parts: angular measurement units, prime meridian, and reference ellipsoid. In the spherical system, horizontal lines are equal latitude lines or latitude lines, and vertical lines are equal longitude lines or longitude lines.

[0064] Mercator two-dimensional rectangular coordinate system: usually set by two mutually perpendicular coordinate axes, usually called the X-axis and the Y-axis; the intersection of the two coordinate axes is called the origin, usually marked as O, which means both "zero" and the first letter of the English word "Origin".

[0065] Smart watch screen coordinate system: The smart watch screen coordinate system is closely related to the screen resolution. The direction of the coordinate system is usually downward for the positive direction of the Y axis, rightward for the positive direction of the X axis, and the coordinate origin O is in the upper left corner.

[0066] Golf course target area: The golf course target area defined in this article includes the green, fairway, bunker, and water area. Among them, bunker and water area are obstacle areas.

[0067] Sub-golf course: A complete golf course includes 18 holes, and each hole corresponds to a sub-golf course. Each sub-golf course contains a green, a fairway, several tee boxes, and several sand traps and pool obstacles.

[0068] In the sport of golf, golfers cannot accurately know their current specific position in the golf course during the game, and they also do not know the exact distance from the current position to the center of the green, the front edge of the green, the back edge of the green, the front edge of the bunker, the back edge of the bunker, the front edge of the water area, and the back edge of the water area. By building a golf course map and a method for calculating the distance from the current position to the target area of ​​the golf course into a smart watch, golfers can obtain the current accurate position of the golf course in real time, and also help golfers obtain the accurate distance from the current position to the center of the green, the front edge of the green, the back edge of the green, the front edge of the bunker, the back edge of the bunker, the front edge of the water area, and the back edge of the water area. Thus, golfers can control the hitting distance during the game, effectively avoid obstacles, and score efficiently.

[0069] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a data processing device, etc. The following takes a data processing device as an example to illustrate this embodiment and the following embodiments.

[0070] Based on this, the present application embodiment provides a data processing method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the data processing method of the present application.

[0071] In this embodiment, the data processing method includes steps S10 to S40:

[0072] Step S10, in response to receiving the user's operation instruction, determining the target area according to the operation instruction, and obtaining the course map data, the user's location information and the user's hitting distance information;

[0073] Specifically, in the embodiment of the present application, coordinate data is acquired in advance and golf course map data is stored. When display is required, the golf course map smart watch screen coordinate system data file is read from the smart watch storage card, and parsed after reading to obtain the golf course map smart watch screen coordinate system data. Because the golf course smart watch screen coordinate sequence data is stored, it can be directly displayed on the interface after reading and parsing. Compared with storing the original golf course map longitude and latitude data, Mercator projection calculation, coordinate mirror calculation, and coordinate scaling calculation can be omitted. Reduce calculation, reduce power consumption, and increase screen display smoothness.

[0074] Optionally, based on user interaction, the distance from the current position of the golfer (i.e., the user) to the target area of ​​the golf course is calculated, and the distance from the current position of the golfer to the target area of ​​the golf course is displayed. For example, if the user selects a bunker using a smartwatch, the method for calculating the distance to the target area in the second part will be used to calculate the distance from the current position of the golfer to the midpoint of the bunker, the distance from the front edge to the back edge, and the distance are displayed on the interface.

[0075] Step S20, calculating a target area distance between the user and the target area based on the course map data, the user location information and the target area;

[0076] Optionally, through the graphics framework LVGL, using the function of drawing vector graphics, the LVGL framework can use the smart watch screen coordinate sequence of the outline of a single sub-golf course area, the smart watch screen coordinate sequence of the fairway outline of a single sub-golf course, the smart watch screen coordinate sequence of the green of a single sub-golf course, the smart watch screen coordinate sequence of the bunker outline of a single sub-golf course, and the smart watch screen coordinate sequence of the water outline of a single sub-golf course to draw the smart watch golf course. Compared with the method of using golf course pictures to display, this method of drawing using coordinate sequences saves more memory resources and has a higher smoothness of interface display. Especially when the smart watch golf map is scaled and rotated, the method of using the smart watch screen coordinate sequence of the golf course can save calculation time and rendering time and improve the smoothness of screen operation compared to the method of using golf course pictures.

[0077] Optionally, the latitude and longitude coordinates of the current user point where the golfer is located are projected by Mercator projection to obtain the Mercator rectangular coordinates of the current point, and the Mercator rectangular coordinates of the current point are converted to the screen coordinate system of the smart watch to obtain the screen coordinate point of the user position; the stored golf course map data is called to calculate the distance from the screen coordinate point of the user position to the target area, and the distance to the target area can be obtained.

[0078] Step S30, determining the expected landing point information according to the target area distance and the user's hitting distance information;

[0079] Optionally, the distances of two adjacent swings are calculated based on the latitude and longitude data after conversion to the geographic coordinate system, the Mercator rectangular coordinate system, and the smart watch screen coordinate system. After obtaining a large amount of swing distance data of the golfer, the average value is calculated to estimate the golfer's hitting distance, wherein the average value of the distances of two consecutive swings of the user is the user's hitting distance information, which is then used to obtain the expected landing point information.

[0080] Step S40, generating ball-hitting assistance information according to the target area distance and the estimated landing point information.

[0081] Optionally, after estimating the distance of the golfer's shot, combined with the calculation of the center distance, front distance, and back distance from the golfer's current position to the target area of ​​the golf course, it can be determined whether the golfer's shot is likely to hit an obstacle, or whether the golfer's shot is likely to hit the green. And the golfer is prompted through a smart watch. For example, the average shot distance of the golfer is 100 yards, and the front distance and back distance of the golfer's current position from all obstacles are calculated. Among the obstacles whose distances are calculated, obstacles with a front distance of less than 100 yards and a back distance of more than 100 yards are likely to be the landing point of the golf ball after the golfer hits the ball. For example, the average shot distance of the golfer is 100 yards, and the distance from the golfer's current position to the front of the green is calculated to be 200 yards, then it is likely that two shots are needed to hit the ball on the green.

[0082] Optionally, the first estimated result may be the probability that the expected landing point is located in the target area, and the second estimated result may be the probability that the expected landing point is located in the obstacle area. The hitting assistance information may also include suggestions on hitting direction, strength, etc., which may be displayed on the interface of the smart device as a display line or the like, or may be used to remind the user in the form of voice broadcast.

[0083] This embodiment adopts the above scheme, specifically by responding to receiving the user's operation instruction, determining the target area according to the operation instruction, and obtaining the course map data, user location information and user hitting distance information; calculating the target area distance between the user and the target area based on the course map data, user location information and target area; determining the expected landing point information according to the target area distance and the user's hitting distance information; generating hitting auxiliary information according to the target area distance and the expected landing point information, and through the course map data and user location information, it helps to help the user obtain the current position in the course in real time, and can also help the user control the hitting distance during the playing process through the hitting auxiliary information, thereby improving the user's experience.

[0084] Based on the first embodiment of the present application, the second embodiment of the present application is proposed. In the second embodiment of the present application, the same or similar contents as those of the above-mentioned embodiment 1 can be referred to the above introduction and will not be repeated later. Figure 2 Before step S10, the data processing method further includes steps S01 to S03:

[0085] S01: Obtain the longitude and latitude data of the stadium map through satellite maps;

[0086] S02: Projecting the longitude and latitude data of the golf course map into Mercator rectangular coordinate data;

[0087] S03: Convert the Mercator rectangular coordinate data into a screen coordinate system of a smart device to obtain the stadium map data.

[0088] Reference Figure 3 , Figure 3 FIG. 1 is a schematic diagram of a storage process according to the second embodiment. Figure 3 As shown, the longitude and latitude data of the golf course map can be obtained through satellite maps. The longitude and latitude data of the golf course map can be manually obtained using satellite maps and mapping software ArcGIS. The longitude and latitude data include: a longitude and latitude coordinate sequence of the outline of a single sub-golf course area corresponding to the 18 holes of the golf course, a longitude and latitude coordinate sequence of the outline of the fairway of a single sub-golf course, a longitude and latitude coordinate sequence of the outline of the green of a single sub-golf course, a longitude and latitude coordinate sequence of the outline of the bunker of a single sub-golf course, and a longitude and latitude coordinate sequence of the outline of the water area of ​​a single sub-golf course.

[0089] Alternatively, since each golf course contains 18 holes, the calculation and display methods of the sub-golf courses corresponding to each hole are the same, so a single sub-golf course can be used to illustrate the scheme. The various sequences are described using mathematical symbols:

[0090] A sequence of latitude and longitude coordinates of the outline of a single sub-golf course area:

[0091] sub_golf_geographic_coord_s=[(lat1,lon1),(lat2,lon2),…,(lat s ,lon s )]

[0092] The longitude and latitude coordinate sequence of the fairway outline of a single sub-golf course:

[0093] fairway_geographic_coord_s=[(lat1, lon1), (lat2, lon2)..., (lat f ,lon f )]

[0094] The longitude and latitude coordinate sequence of the green outline of a single sub-golf course:

[0095] green_geographic_coord_s=[(lat1lon1)(lat2lon2)...,(lat g ,lon g )]

[0096] Sequence of latitude and longitude coordinates of bunker outlines for a single sub-golf course:

[0097] bunker_geographic_coord_s=[(lat1,lon1),(lat2,lon2),…,(latb ,lon b )]

[0098] The latitude and longitude coordinate sequence of the water area outline of a single sub-golf course:

[0099] water_geographic_coord_s=[(lat1lon1),(lat2,lon2),…,(lat w ,lon w )]

[0100] Among them: (lat1lon1) refers to a longitude and latitude coordinate point, lat refers to latitude, lon refers to longitude;

[0101] Furthermore, the longitude and latitude data of the golf course map are transformed into Mercator rectangular coordinate data through Mercator projection, and the Mercator rectangular coordinate sequence is obtained by calculating the formula for each longitude and latitude coordinate point. The Mercator projection formula is:

[0102] mct_x=lon×R×π÷180

[0103] mct_y=ln(tan((90+lat)×π÷360))×R

[0104] Among them: mct_x refers to the X-axis coordinate in the Mercator rectangular coordinate system; mct_y refers to the Y-axis coordinate in the Mercator rectangular coordinate system; lon refers to longitude; lat refers to latitude; ln refers to the exponential function; tan refers to the tangent trigonometric function; π refers to pi; R refers to the average radius of the earth;

[0105] The longitude and latitude coordinate sequence in the first step is calculated using the Mercator projection formula to obtain a Mercator rectangular coordinate sequence.

[0106] A sequence of Mercator rectangular coordinates of the outline of a single sub-golf course area:

[0107] sub_golf_mercator_coord_s=[(mct_x1,mct_y1),(mct2,mct_y2),…,(mct s ,mct_y s )]

[0108] The Mercator rectangular coordinate sequence of the fairway outline of a single sub-golf course:

[0109] fairway_mercator_coord_s=[(mct_x1,mct_y1),(mct_x2,mct_y2),…,(mct_x f ,mct_y f)]

[0110] The Mercator rectangular coordinate sequence of the green outline of a single sub-golf course:

[0111] green_mercator_coord_s=[(mct_x1,mct_y1)(mct_x2,mct_y2),…(mct_x g ,mct_y g )]]

[0112] A sequence of Mercator rectangular coordinates of the bunker outlines of a single sub-golf course:

[0113] bunkermercator_coord_s=[(mct_x1,mct_y1),(mct_x2,mct_y2),…,(mct_x b ,mct_y b )]

[0114] The Mercator rectangular coordinate sequence of the rough outline of a single golf course sub-course:

[0115] long_grass_mercator_coord_s=[(mct_x1,mct_y1),(mct_x2,mct_y2),…,(mct_x l ,mct_y l )]

[0116] The Mercator rectangular coordinate sequence of the water area outline of a single sub-golf course:

[0117] water_mercator_coord_s=[(mct_x1,mct_y1),(mct_x2,mct_y2),…,(mct_x w , mct-y w )]

[0118] Among them: mct_x refers to the X-axis coordinate in the Mercator rectangular coordinate system; mct_y refers to the Y-axis coordinate in the Mercator rectangular coordinate system.

[0119] Optionally, the golf course map Mercator rectangular coordinates are different from the smart watch screen coordinates in two points. First, the origin of the golf course map Mercator rectangular coordinates is located in the lower left corner, while the origin of the smart watch screen coordinates is located in the upper left corner; second, the range of the Mercator rectangular coordinates data is different from the smart watch screen coordinate range.

[0120] Therefore, the conversion between the Mercator rectangular coordinates of the golf course map and the coordinates of the smart watch screen needs to be mirrored and scaled on the X axis. The scaling factor depends on the range of the Mercator rectangular coordinate data of the golf course map and the range of the display area of ​​the smart watch screen. The scaling factor calculation formula is as follows:

[0121]

[0122] Among them: scale_factor_x refers to the X-axis scaling factor; scale_factor_y refers to the Y-axis scaling factor; watch_screen_x refers to the screen width of the smart watch displaying the golf map; watch_screen_y refers to the screen height of the smart watch displaying the golf map; max(mct_x) refers to the maximum value of the X-axis coordinate of the Mercator rectangular coordinate data obtained in the second step; min(mct_x) refers to the minimum value of the X-axis coordinate of the Mercator rectangular coordinate data obtained in the second step; max(mct_y) refers to the maximum value of the Y-axis coordinate of the Mercator rectangular coordinate data obtained in the second step; min(mct_y) refers to the minimum value of the Y-axis coordinate of the Mercator rectangular coordinate data obtained in the second step;

[0123] The Mercator rectangular coordinate data of the golf course is first mirrored along the X-axis, and then multiplied by the scaling factor to obtain the smart watch screen coordinate data:

[0124] watch_screen_x=mct_mirror_x×scale_factor_x

[0125] watch_screen_y=mct_mirror_y×scale_factor_y

[0126] Among them: watch_screen_x refers to the X coordinate of the smart watch screen; watch_screen_y refers to the Y coordinate of the smart watch screen; mct_mirror_x refers to the Mercator rectangular X coordinate after mirroring; mct_mirror_y refers to the Mercator rectangular Y coordinate after mirroring;

[0127] Finally, the golf course smart watch screen coordinate sequence is obtained:

[0128] A single sub-golf course area outline smartwatch screen coordinate sequence:

[0129] sub_golfwatch_coord_s=[(watch_x1, watch_y1), (watch2, watch_y2), ..., (watch_x s , watch_y s )]

[0130] Smartwatch screen coordinate sequence of the fairway outline for a single sub-golf course:

[0131] fairway_watch_cood_s=[(watch_x1, watch_y1), (watch_x2, watch_y2), ..., (watch_x f , watch_y f )]

[0132] The sequence of smartwatch screen coordinates of the green of a single sub-golf course:

[0133] green_watch_coord_s=[(watch_x1,mct_y1),(watch_x2,watch_y2),…,(watch_x g , watch_y g )]

[0134] Sequence of smartwatch screen coordinates for a bunker outline for a single sub-golf course:

[0135] bunkerwatch_coord_s=[(watch_x1, watch_y1), (watch_x2, watch_y2), ..., (watch_x b , watch_y b )]

[0136] Smartwatch screen coordinate sequence of the rough outline of a single sub-golf course:

[0137] long_grass_watch_coord_s=[(watch_x1, watch_y1), (watch_x2, watch_y2), ..., (watch_x l , watch_y l )]

[0138] The following sequence of smartwatch screen coordinates for the water contour of a single sub-golf course:

[0139] water_watch_coord_s=[(watch_x1, watch_y1), (watch_x2, watch_y2), ..., (watch_x w , watch_y w )]

[0140] Optionally, the calculated golf course smart watch screen coordinate sequence data is saved in a smart watch memory card. When drawing or calculation is needed, it can be taken out and used. This method of calculating the golf course smart watch screen coordinate sequence data in advance and storing it in the smart watch memory card can avoid the waste of computing resources and increase the power consumption of the smart watch caused by performing calculations during the use of the smart watch.

[0141] This embodiment adopts the above scheme to obtain the longitude and latitude data of the stadium map through a satellite map; project the longitude and latitude data of the stadium map into Mercator rectangular coordinate data; convert the Mercator rectangular coordinate data into the screen coordinate system of the smart device to obtain the stadium map data, calculate the smart watch screen coordinate sequence data of the stadium in advance and store it in the smart watch memory card, so as to avoid wasting computing resources and increasing the power consumption of the smart watch due to further calculation during the use of the smart watch.

[0142] Based on any of the foregoing embodiments of the present application, a third embodiment of the present application is proposed. In the third embodiment of the present application, the same or similar contents as any of the foregoing embodiments can be referred to the above introduction and will not be described in detail later. Figure 4 , step S20 includes steps S201 to S203:

[0143] S201: Projecting the longitude and latitude coordinates of the current point of the user through Mercator projection to obtain Mercator rectangular coordinates of the current point;

[0144] S202: Convert the Mercator rectangular coordinates of the current point to the screen coordinate system of the smart device to obtain the screen coordinate point of the user position;

[0145] S203: calling the golf course map data, calculating the distance from the screen coordinate point of the user position to the target area, and obtaining the target area distance.

[0146] Optionally, the user location information includes the latitude and longitude coordinates of the user's current point.

[0147] Reference Figure 5 , Figure 5 FIG. 4 is a schematic diagram of a target area distance determination process according to the third embodiment. Figure 5 As shown, the GPS location of the golfer is obtained through the GPS sensor of the smart watch. The location information includes the latitude and longitude coordinates of the golfer's current point, recorded as: user_geographic_point = (lat_user, lon_user).

[0148] Among them, user_point refers to the coordinate point of the golfer's current geographic coordinate system; lat_user refers to the latitude of the golfer's current geographic coordinate system; lon_user refers to the longitude of the golfer's current geographic coordinate system.

[0149] Optionally, the latitude and longitude coordinates of the user's current point are projected into Mercator rectangular coordinates through Mercator projection, and the calculation formula uses the Mercator projection formula:

[0150] mct_x_user=lon_user×R×π÷180

[0151] mct_y_user=lm(tan((90+lat_user)×π÷360))×R

[0152] Among them: mct_x_user refers to the X-axis coordinate of the player's Mercator rectangular coordinate system; mct_y_user refers to the Y-axis coordinate of the player's Mercator rectangular coordinate system; lat_user refers to the latitude of the player's current geographic coordinate system; lon_user refers to the longitude of the player's current geographic coordinate system; ln refers to the exponential function; tan refers to the tangent trigonometric function; π refers to pi; R refers to the average radius of the earth;

[0153] The Mercator rectangular coordinate point of the golfer's current point is recorded as:

[0154] user_mercator_point=(mct_x_usermct_y_user)

[0155] Optionally, the Mercator rectangular coordinates of the current point are converted to the smart watch screen coordinate system, and the user_mercator_point point is mirrored on the X axis to obtain the mirrored point user_mercator_mirror_point = (mct_x_mirror_user, mct_y_mirror_user). Then scale:

[0156] user_watch_x=mct_x_mirror_user×scale_factor_x

[0157] user_watch_y=mct_y_mirror_user×scale_factor_y

[0158] Get the smartwatch screen coordinates of the golfer's current position:

[0159] user_watch_point=(user_watch_x, user_watch_y)

[0160] Optionally, the golf course map smart watch screen coordinate system data file is read from the smart watch memory card, and parsed after reading to obtain the golf course map smart watch screen coordinate system data.

[0161] Optionally, the target area distance includes at least one of a target area front distance, a target area midpoint distance, and a target area rear edge distance, and the step of calculating the distance from the user position screen coordinate point to the target area to obtain the target area distance includes:

[0162] Determine the center point coordinates and the polygonal circumscribed rectangle of the target area;

[0163] Determine an external coordinate point according to the user position screen coordinate point and the center point coordinate of the target area;

[0164] Calculate the intersection of the line connecting the user position screen coordinate point and the external coordinate point and the circumscribed rectangle of the polygon;

[0165] At least one of the target area front distance, the target area midpoint distance and the target area rear edge distance is calculated according to the intersection point.

[0166] Reference Figure 6 , Figure 6 FIG. 1 is a schematic diagram of a distance calculation process according to the third embodiment. Figure 6 As shown, the distance from the current position of the golfer to the target area of ​​the golf course is calculated. The target area of ​​the golf course defined in the embodiment of the present application includes the green, the fairway, the bunker, and the water area. Among them, the bunker and the water area are obstacle areas. Since the principle of calculating the distance from the current coordinate point to the target area is the same in the modeling and calculation process, the green, the fairway, the bunker, and the water area are represented and the algorithm is derived using unified mathematical symbols.

[0167] Define the target area contour coordinate sequence as:

[0168] target_watch_coord_s=[(watch_x1, watch_y1), (watch_x2, watch_y2), ..., (watch_x T , watch_y T )]

[0169] The line segment is formed by any two adjacent points in the target area contour coordinate sequence, and the non-head-tail adjacent points of target_watch_coord_s (watch_x t , watch_y t ) and (watch_x t+1 , watch_yt+1 ) is defined as: The line segment between the first and last points is defined as

[0170] Then, the target area is defined as a polygon by the line segment sequence:

[0171] The algorithm steps for calculating the distance from the golfer's current position to the target area of ​​the golf course are as follows:

[0172] (1) Calculate the centroid coordinate point target_center_point of the polygon targetpolygon = (target_center_x, target_center_y);

[0173] (2) Calculate the diagonal length of the circumscribed rectangle of the target area polygon target_polygon:

[0174]

[0175] Among them: max_watch_x refers to the X-axis maximum value of the target area contour sequence target_watch_coord_s; min_watch_x refers to

[0176] The minimum X-axis value of the target area contour sequence target_watch_coord_s; max_watch_y refers to the maximum Y-axis value of the target area contour sequence targetwatch_coord_s; min_watch_y refers to the minimum Y-axis value of the target area contour sequence target_watch_coord_s;

[0177] (3) If targetcenter_x is not equal to user_watch_x, calculate the slope and intercept of the line connecting the golfer’s current position coordinate point user_watch_point and the centroid coordinate point target_center_point:

[0178]

[0179] b=user_watch_y-k×user_watch_x

[0180] Among them: k refers to the slope; b refers to the intercept;

[0181] (4) Calculate the target area as an external coordinate point outside the polygon target_polygon and on the line y=kx+b: outer_point=(outer_point_x, outer_point_y), where outer_point_x refers to the X-axis coordinate of the external coordinate point; and outer_point_y refers to the Y-axis coordinate of the external coordinate point.

[0182] If target_center_x is equal to user_watch_x, then:

[0183] outer_point_x=target_center_x

[0184]

[0185] If target_center_x is greater than user_watch_x, then:

[0186]

[0187] outer_point_y=k×outer_point_x+b

[0188] If target_center_x is less than user_watch_x, then:

[0189]

[0190] outer_point_y=k×outer_point_x+b

[0191] (5) Calculate the line segment connecting the smartwatch screen coordinate point user_watch_point of the golfer’s current position and the external coordinate point outer_point The intersection point with the target area polygon target_polygon;

[0192] The target area is defined as a polygon as above: So solving the line segment Solve the line segment equivalently to the intersection of the target area and the polygon target_polygon and The question is whether the line segments inside have any intersection.

[0193] Define any line segment contained in target_polygon as Solving for line segments With line segment The intersection coordinate algorithm is as follows:

[0194] First determine the line segment and Is there an intersection:

[0195] C1=(watch_x t+1 -watch_x t )×(user_watch_y-watch_y t )-(watch_y t+1 -watd_y t )

[0196] ×(user_watch_x-watch_x t )

[0197] C2=(watch_x t+1 -watch_x t )×(outer_point_y-watch_y t )-(watch_y t+1 -watch_y t )

[0198] ×(outer_point_x-watch_x t )

[0199] C3=(outer_point_x-user_watch_x)×(watch_y t -user_watch_y)-(outer_point_y-user_watch_y)

[0200] ×(watch_xt-user_watch_x)

[0201] C4=(outer_point_x-user_watch_x)×(watch_y t+1 -user_watch_y)-(outer_point_y-user_watch_y)

[0202] ×(watch_xt+1-user_watch_x)

[0203] If C1×C2≤0 and C3×C4≤0, then the line segment and There is an intersection. and The intersection coordinates inter_point = (inter_point_x, interpoint_y) are calculated as follows:

[0204]

[0205] Among them, inter_point_x refers to the line segment and The X-axis coordinate of the intersection point; inter_point_y refers to the line segment and The Y-coordinate of the intersection point.

[0206] Assume that the line segment is calculated in the previous step If there are M intersection points with the target polygon target_polygon, the distances between the golfer's current position coordinate point user_watch_point and the M intersection points are calculated respectively, and after sorting, the intersection points closest to and farthest from the golfer's current position coordinate point are selected from the M intersection points. They are recorded as min_d_inter_point and max_d_inter_point.

[0207] (6) Calculate the distance between the golfer's current position coordinates and the actual front edge distance, back edge distance, and midpoint distance of the target area

[0208] Midpoint distance:

[0209]

[0210] Frontier distance:

[0211] To calculate the frontier distance, first locate the frontier point. Draw a circle with user_watch_point as the center and the distance between userwatch_point and min_d_inter_point as the radius. Reduce the radius and calculate the intersection of the circle and the target area target_polygon until there is only one intersection point, which is the frontier point, recorded as front_point. Then calculate the frontier distance as follows:

[0212]

[0213] Back edge distance:

[0214] To calculate the back edge distance, first locate the back edge point. Draw a circle with user_watch_point as the center and the distance between user_watch_point and max_d_inter_point as the radius. Increase the radius and calculate the intersection of the circle and the target area target_polygon until there is only one intersection point, which is the back edge point, recorded as back_point. Then calculate the front distance as follows:

[0215]

[0216] This embodiment adopts the above scheme, specifically projects the latitude and longitude coordinates of the user's current point through Mercator projection to obtain the Mercator rectangular coordinates of the current point; converts the Mercator rectangular coordinates of the current point to the screen coordinate system of the smart device to obtain the screen coordinate point of the user's position; calls the course map data to calculate the distance from the screen coordinate point of the user's position to the target area to obtain the target area distance, which helps to assist the user to understand the distance from the current position to the target area, thereby controlling the distance of the shot, and helps to improve the user's experience of using the smart device.

[0217] Based on any of the foregoing embodiments of the present application, a fourth embodiment of the present application is proposed. In the fourth embodiment of the present application, the same or similar contents as any of the foregoing embodiments can be referred to the above introduction and will not be described in detail later. Figure 7 , step S40 includes steps S401 to S403:

[0218] S401: Compare the estimated landing point information with at least one of the target area front distance, the target area midpoint distance, and the target area rear edge distance to obtain a first estimation result;

[0219] S402: Compare the predicted landing point information with the obstacle area information in the golf course map data to obtain a second estimation result;

[0220] S403: Generate the batting assistance information according to the first estimation result and / or the second estimation result, wherein the batting assistance information includes interface display information and / or voice prompt information.

[0221] Optionally, before the step of obtaining the user's hitting distance information, the step further includes:

[0222] Detecting each swing data of the user by using a preset swing detection algorithm, and obtaining the longitude and latitude information corresponding to each swing data;

[0223] Wherein, the latitude and longitude information corresponding to each swing data can be obtained through a GPS sensor;

[0224] Calculate the distance data between each swing data and the corresponding next swing data in the swing data according to the swing data and the corresponding longitude and latitude information to obtain each distance data;

[0225] The average value of each distance data is calculated to obtain the user's hitting distance information.

[0226] Reference Figure 8 , Figure 8 is a schematic diagram of a display process according to a fourth embodiment, as shown in Figure 8As shown, the golf course map smart watch screen coordinate system data file is read from the smart watch memory card, and parsed after reading to obtain the golf course map smart watch screen coordinate system data. Because the golf course smart watch screen coordinate sequence data is stored, it can be directly displayed on the interface after reading and parsing. Compared with storing the original golf course map longitude and latitude data, the Mercator projection calculation, coordinate mirror calculation, and coordinate scaling calculation can be omitted. Reduce calculations, reduce power consumption, and increase screen display smoothness.

[0227] Optionally, through the graphics framework LVGL, using the function of drawing vector graphics, the LVGL framework can use the smart watch screen coordinate sequence of the outline of a single sub-golf course area, the smart watch screen coordinate sequence of the fairway outline of a single sub-golf course, the smart watch screen coordinate sequence of the green of a single sub-golf course, the smart watch screen coordinate sequence of the bunker outline of a single sub-golf course, and the smart watch screen coordinate sequence of the water outline of a single sub-golf course to draw the smart watch golf course. Compared with the method of using golf course pictures to display, this method of drawing using coordinate sequences saves more memory resources and has a higher smoothness of interface display. Especially when the smart watch golf map is scaled and rotated, the method of using the smart watch screen coordinate sequence of the golf course can save calculation time and rendering time and improve the smoothness of screen operation compared to the method of using golf course pictures.

[0228] Reference Fig. 9 , Fig. 9 is a schematic diagram of a display screen according to a fourth embodiment, as shown in Fig. 9 As shown, according to user interaction, the distance from the golfer's current position to the target area of ​​the golf course is calculated and displayed. For example, if a user selects a bunker using a smartwatch, the method for calculating the distance to the target area in the second part will be used to calculate the distance from the current golfer's position to the midpoint of the bunker, the distance to the front edge, and the distance to the back edge will be calculated and displayed on the interface. Draw a sub-golf course and calculate the distance to all target areas as shown in the figure. Fig. 9 shown.

[0229] Reference Fig.10 , Fig.10 is a schematic diagram of an estimation process according to the fourth embodiment, as shown in Fig.10As shown, in the embodiment of the present application, a swing detection algorithm is used to detect the swing of the golfer, and the longitude and latitude data is read by the smart watch GPS sensor to record the longitude and latitude of each swing. According to the longitude and latitude data, the distance between two adjacent swings is calculated after conversion of the geographic coordinate system, the Mercator rectangular coordinate system, and the smart watch screen coordinate system. After obtaining a large amount of swing distance data of the golfer, the average value is calculated to estimate the golfer's hitting distance. After estimating the distance of the golfer's hitting, combined with the calculation of the center distance, the front distance, and the back distance from the golfer's current position to the target area of ​​the golf course, it can be judged whether the golfer's hitting this time is likely to hit an obstacle, or whether the golfer's hitting this time is likely to hit the green. And the golfer is prompted by the smart watch. For example, the average hitting distance of the golfer is 100 yards, and the front distance and back distance of the golfer's current position from all obstacles are calculated. Among the obstacles whose distances are calculated, obstacles with a front distance of less than 100 yards and a back distance of more than 100 yards are likely to be the landing point of the golf ball after the golfer hits the ball. For example, if the average hitting distance of a golfer is 100 yards, and the distance from the golfer's current position to the front edge of the green is calculated to be 200 yards, it is likely that two hits will be required to hit the ball onto the green.

[0230] Optionally, the first estimated result may be the probability that the expected landing point is located in the target area, and the second estimated result may be the probability that the expected landing point is located in the obstacle area. The hitting assistance information may also include suggestions on hitting direction, strength, etc., which may be displayed on the interface of the smart device as a display line or the like, or may be used to remind the user in the form of voice broadcast.

[0231] Through the above scheme, this embodiment obtains a first estimation result by comparing the estimated landing point information with at least one of the front distance of the target area, the midpoint distance of the target area, and the back edge distance of the target area; compares the estimated landing point information with the obstacle area information in the course map data to obtain a second estimation result; generates the hitting assistance information based on the first estimation result and / or the second estimation result, which helps the user to obtain the current position in the course in real time, and can also help the user control the hitting distance during the playing process through the hitting assistance information, thereby improving the user's experience.

[0232] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the data processing method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0233] This application also provides a data processing device, please refer to Fig.11 , the data processing device comprises:

[0234] A response module, configured to respond to receiving an operation instruction from a user, determine a target area according to the operation instruction, and obtain golf course map data, user location information, and user hitting distance information;

[0235] A calculation module, used for calculating the target area distance between the user and the target area based on the course map data, the user location information and the target area;

[0236] A determination module, used to determine the expected landing point information according to the target area distance and the user's hitting distance information;

[0237] A generation module is used to generate shot assisting information according to the target area distance and the expected landing point information.

[0238] The data processing device provided by the present application adopts the data processing method in the above embodiment to solve the technical problem of data processing. Compared with the prior art, the beneficial effects of the data processing device provided by the present application are the same as the beneficial effects of the data processing method provided by the above embodiment, and other technical features in the data processing device are the same as the features disclosed in the above embodiment method, which will not be described in detail here.

[0239] The present application provides a data processing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data processing method in the above-mentioned embodiment 1.

[0240] Reference below Fig.12 , which shows a schematic diagram of the structure of a data processing device suitable for implementing an embodiment of the present application. The data processing device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.12 The data processing device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0241] like Fig.12As shown, the data processing device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the data processing device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the data processing device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a data processing device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0242] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0243] The data processing device provided by the present application adopts the data processing method in the above embodiment to solve the technical problem of data processing. Compared with the prior art, the beneficial effects of the data processing device provided by the present application are the same as the beneficial effects of the data processing method provided by the above embodiment, and other technical features in the data processing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0244] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0245] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0246] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the data processing method in the above-mentioned embodiment.

[0247] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0248] The computer-readable storage medium may be included in a data processing device, or may exist independently without being incorporated into a data processing device.

[0249] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a data processing device, the data processing device: in response to receiving an operation instruction from a user, determines a target area according to the operation instruction, and obtains course map data, user location information, and user hitting distance information; calculates a target area distance between the user and the target area based on the course map data, user location information, and target area; determines expected landing point information according to the target area distance and the user hitting distance information; generates hitting assistance information according to the target area distance and the expected landing point information, which helps the user to obtain the current position in the course in real time, and can also help the user control the hitting distance during the playing process through the hitting assistance information, thereby improving the user's experience.

[0250] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0251] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0252] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0253] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data processing method, and can solve the technical problems of data processing. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the data processing method provided in the above-mentioned embodiment, and will not be repeated here.

[0254] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned data processing method when executed by a processor.

[0255] The computer program product provided by this application can solve the technical problem of data processing. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the data processing method provided by the above embodiment, which will not be repeated here.

[0256] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A data processing method, characterized in that: The method is applied to a smart device, comprising: In response to the received user's operation instruction, determine the target area according to the operation instruction, and obtain the course map data, user location information and user's hitting distance information; Calculating a target area distance between the user and the target area based on the course map data, user location information and the target area; Determine the expected landing point information according to the target area distance and the user's hitting distance information; The ball-hitting assistance information is generated according to the target area distance and the expected landing point information.

2. The method according to claim 1, characterized in that The step of obtaining the golf course map data also includes: Obtain the longitude and latitude data of the stadium map through satellite maps; Projecting the latitude and longitude data of the golf course map into Mercator rectangular coordinate data; The Mercator rectangular coordinate data is converted into a screen coordinate system of a smart device to obtain the course map data.

3. The method according to claim 1, characterized in that The user location information includes the latitude and longitude coordinates of the user's current point. The step of calculating the target area distance between the user and the target area based on the course map data, the user location information and the target area includes: Projecting the longitude and latitude coordinates of the user's current point through Mercator projection to obtain the Mercator rectangular coordinates of the current point; Convert the Mercator rectangular coordinates of the current point to the screen coordinate system of the smart device to obtain the screen coordinate point of the user position; The court map data is called, and the distance from the screen coordinate point of the user position to the target area is calculated to obtain the target area distance.

4. The method according to claim 3, characterized in that The target area distance includes at least one of the target area front distance, the target area midpoint distance and the target area rear edge distance. The step of calculating the distance from the user position screen coordinate point to the target area to obtain the target area distance includes: Determine the center point coordinates and the polygonal circumscribed rectangle of the target area; Determine the external coordinate point according to the screen coordinate point of the user position, the coordinates of the center point of the target area, and the polygonal circumscribed rectangle; Calculate the intersection of the line connecting the user position screen coordinate point and the external coordinate point and the polygon; At least one of the target area front distance, the target area midpoint distance and the target area rear edge distance is calculated according to the intersection point.

5. The method according to claim 1, characterized in that The step of obtaining the user's hitting distance information also includes: Detecting each swing data of the user by using a preset swing detection algorithm, and obtaining the longitude and latitude information corresponding to each swing data; Calculate the distance data between each swing data and the corresponding next swing data in the swing data according to the swing data and the corresponding longitude and latitude information to obtain each distance data; The average value of each distance data is calculated to obtain the user's hitting distance information.

6. The method according to claim 4, characterized in that The step of generating the shot assisting information according to the target area distance and the estimated landing point information comprises: Compare the predicted landing point information with at least one of the target area front distance, the target area midpoint distance, and the target area rear edge distance to obtain a first estimation result; Comparing the predicted landing point information with the obstacle area information in the golf course map data to obtain a second estimation result; The batting assistance information is generated according to the first estimation result and / or the second estimation result, wherein the batting assistance information includes interface display information and / or voice prompt information.

7. A data processing device, characterized in that: The device is applied to a smart device, including: A response module, configured to respond to receiving an operation instruction from a user, determine a target area according to the operation instruction, and obtain golf course map data, user location information, and user hitting distance information; A calculation module, used for calculating the target area distance between the user and the target area based on the course map data, the user location information and the target area; A determination module, used to determine the expected landing point information according to the target area distance and the user's hitting distance information; A generation module is used to generate shot assisting information according to the target area distance and the expected landing point information.

8. A data processing device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data processing method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 6 are implemented.