A map reconstruction method, a map reconstruction terminal, a storage medium and a system
By converting vector map data into a monochrome visual parameter combination through map reconstruction, the problem of distinguishing features on golf holes on monochrome or limited color display terminals is solved, achieving stable display of golf hole maps and optimizing terminal load.
Patent Information
- Application Number
- CN202611047895.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-14
- Publication Date
- 2026-11-03
AI Technical Summary
Existing golf augmented reality display terminals struggle to effectively distinguish features on the hole under monochrome or limited color conditions, resulting in decreased map readability and excessive computational and storage burden.
By using map reconstruction methods, vector map data is parsed into semantic objects, a unified mapping relationship is established, ground objects are converted into local canvas coordinates, and monochrome visual parameter combinations are configured, so that different types of ground objects can be distinguished on monochrome display terminals, reducing the terminal's computing and storage burden.
Effectively distinguishing hole features on monochrome or limited-color display terminals improves map readability and reduces the computational and storage burden on the display terminals.
Smart Images

Figure CN123032913A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of augmented reality display and golf assistance technology, specifically to a map reconstruction method, a map reconstruction terminal, a storage medium, and a system. Background Technology
[0002] In golf, when making shot decisions on each hole, players need to understand the overall spatial layout of the hole, including the location and shape of the green, fairway, and tee box, as well as the distribution of obstacles and features such as bunkers, water hazards, vegetation, paths, or cartways. Accurately and intuitively presenting this hole structure to players helps them plan their shot lines and choose the appropriate clubs and power.
[0003] Most existing golf positioning devices and mobile applications use full-color display schemes, distinguishing different types of terrain features with different colors on a color screen. For example, green represents greens and fairways, yellow represents bunkers, and blue represents water hazards. These schemes rely heavily on color to convey the category information of terrain features.
[0004] With the development of augmented reality (AR) technology and wearable display devices, there is a growing demand for displaying hole information in an augmented reality overlay on players' field of vision. However, due to considerations of lightweight design, low power consumption, low cost, and optical structure, a significant portion of AR display terminals (such as AR glasses using monochromatic waveguides, monochromatic microdisplays, or limited grayscale displays) can only display monochrome or limited colors. When the aforementioned color map scheme, which relies on color differentiation, is directly transferred to monochrome or limited-color display terminals, the loss of color dimension causes different types of terrain features (such as fairways and greens, bunkers and water hazards) to become blurred and difficult to distinguish under monochrome conditions, resulting in a significant decrease in the readability of map information.
[0005] Furthermore, display terminals such as augmented reality glasses are typically subject to strict constraints in terms of computing power, storage capacity, and power consumption. If the display terminal is required to parse complete structured vector map data on its own and complete coordinate transformation, feature recognition, label layout, and rendering locally in real time, it will place an excessive computational and storage burden on the display terminal, affecting both the real-time performance and stability of the display, and also hindering the extension of the device's battery life.
[0006] Among related technologies, some solutions focus on using LiDAR point clouds to perform 3D measurement and modeling of the golf course terrain to adapt to golf simulation software; others focus on using drones and depth cameras to collect green topography and then overlaying the 3D simulated images onto the real green in an augmented reality manner to assist putting practice. These solutions primarily address 3D terrain modeling or the overlay display of full-color simulated images, and none of them solve the problems of how to reconstruct the hole map for monochrome or limited-color augmented reality display terminals, how to maintain the distinction between different features under monochrome conditions, and how to reasonably distribute the computational burden between the map reconstruction end and the display terminal. Therefore, it is necessary to provide a golf hole map reconstruction solution more suitable for monochrome or limited-color augmented reality display terminals. Summary of the Invention
[0007] To address the shortcomings of the existing technology, the present invention aims to provide a map reconstruction method, a map reconstruction terminal, a storage medium, and a system for improving the distinguishability of golf hole features under monochrome or limited color display conditions.
[0008] To achieve the above objectives, the first aspect of the present invention provides a map reconstruction method, the method comprising the following steps performed by a map reconstruction terminal: S1. Obtain vector map data of the identified target golf hole. The vector map data includes multiple hole features, feature type information representing the category to which the hole features belong, and a set of latitude and longitude coordinates of the hole features. S2. Based on the land feature type information, the multiple hole land feature objects are parsed into multiple hole land feature semantic objects; S3. Determine the latitude and longitude range of the target golf hole based on the valid coordinates of the boundary-type semantic objects or the preset backup semantic objects among the multiple hole feature semantic objects; S4. Based on the latitude and longitude range of the single hole and the target canvas parameters, establish a unified mapping relationship from latitude and longitude to local canvas coordinates, so that the semantic objects of the ground features to be drawn within the same target golf hole share the unified mapping relationship and are mapped to the same local canvas coordinate system. S5. Using the unified mapping relationship, the latitude and longitude coordinates of the semantic object of the hole to be drawn are converted into a canvas path or graphic object under the local canvas coordinates; S6. Based on the display constraints of the monochrome or limited color augmented reality display terminal and the category of the hole feature semantic objects, configure visual parameter combinations that distinguish different categories of hole feature semantic objects so that different categories of hole feature semantic objects can be distinguished from each other under monochrome or limited color display conditions. S7. Process the canvas path or graphic object according to the preset layer order to generate monochrome static hole map data that is used to express the stable hole terrain structure and is suitable for display on the monochrome or limited color augmented reality display terminal. S8. Provide the monochrome static hole map data to the monochrome or limited color augmented reality display terminal for the monochrome or limited color augmented reality display terminal to receive and display.
[0009] The monochrome static hole map data includes at least one of bitmap, vector graphics, canvas path set, and layer drawing data.
[0010] The stable hole feature structure refers to the hole feature structure that does not change with changes in user location, display stage status, or real-time data updates when the map version of the same target golf hole remains unchanged, and does not need to be regenerated during dynamic overlay refresh.
[0011] The monochrome or limited color augmented reality display terminal includes at least one of a monochrome display terminal, a limited grayscale display terminal, a limited color display terminal, augmented reality glasses, and a head-up display device.
[0012] Preferably, the plurality of hole feature semantic objects include at least one of areal feature semantic regions and linear feature semantic objects; The areal feature semantic region includes at least one of the following: green semantic region, fairway semantic region, tee box semantic region, bunker semantic region, water hazard semantic region, vegetation semantic region, and hole boundary semantic region; the linear feature semantic object includes at least one of the following: path or lane semantic object. The boundary class semantic object includes the ball hole boundary semantic region; When the semantic region of the hole boundary with valid coordinates is obtained through parsing, the map reconstruction terminal determines the latitude and longitude range of the single hole based on the valid coordinates of the semantic region of the hole boundary; When a semantic region of the hole boundary with valid coordinates is not parsed, the map reconstruction terminal determines the backup range source from the preset backup feature semantic objects according to the preset range selection rules, and determines the latitude and longitude range of the single hole according to the valid coordinates in the backup range source. The preset backup ground feature semantic objects include at least one of the green semantic region, tee box semantic region and fairway semantic region, and the preset range selection rule includes selecting in the order of green semantic region, tee box semantic region and fairway semantic region.
[0013] Preferably, the feature type information represents the category to which the hole feature object belongs in at least one of the following forms: field name, field value, code, enumeration value, text description, or extended attribute; The map reconstruction terminal, based on a preset feature type mapping relationship, groups hole feature objects that satisfy the preset feature type mapping relationship into area feature semantic regions or line feature semantic objects; The preset feature type mapping relationship includes at least one of the following: synonym field, abbreviation field, spell variant field, data source encoding field, or extended attribute field; The land cover type information used to characterize the outline, region, boundary or areal object of green, fairway, tee, water hazard, vegetation or hole boundary is categorized into the corresponding green semantic region, fairway semantic region, tee semantic region, water hazard semantic region, vegetation semantic region or hole boundary semantic region. Land feature type information used to characterize sand pits, sandy land, sand pit areas, sand pit outlines, or sand pit equivalent features is grouped into the sand pit semantic region. Land feature type information used to characterize paths, hole center paths, cart paths, driving paths or other linear access features is grouped into path or lane semantic objects. After converting the latitude and longitude coordinates of the areal feature semantic region or linear feature semantic object into local canvas coordinates using the unified mapping relationship, for the hole feature objects that are merged into the areal feature semantic region, a closed or closed canvas path or graphic object is generated; for the hole feature objects that are merged into the linear feature semantic object, a canvas path is generated according to the non-closed linear object.
[0014] Preferably, the semantic regions of sandpits, water obstacles, and paths or lanes are not involved in determining the latitude and longitude range of a single hole in step S3; After the latitude and longitude range of the single hole and the unified mapping relationship are established, the semantic regions of the sandpit, the semantic regions of the water obstacle, and the semantic objects of the path or lane are converted into local canvas coordinates using the unified mapping relationship.
[0015] Preferably, when a boundary-type semantic object with valid coordinates is not parsed, the map reconstruction end determines the source of the backup range from the preset backup feature semantic objects based on at least one of the following: data completeness, area size, and spatial relationship with the center line of the target hole, the center of the green, or the position of the flagpole, and determines the latitude and longitude range of the single hole based on the valid coordinates in the source of the backup range.
[0016] If the effective latitude and longitude range of a single hole cannot be determined according to the preset range selection rules, the map reconstruction terminal generates an error message or requests the vector map data of the target golf hole again. For empty coordinate sets, abnormal latitude and longitude coordinates, or hole features that are inconsistent with the predefined feature types, the canvas path or graphic object will not be generated; for hole features that have insufficient points but can form line segments or point-like hints, they will be downgraded to line segment objects or point objects.
[0017] Preferably, when both lonDelta and latDelta, determined based on the latitude and longitude range of the single hole, are greater than 0, the unified mapping relationship includes the following calculation process: Calculate the span of latitude and longitude: lonDelta = maxLon minLon, latDelta = maxLat minLat; Calculate the available drawing area in the target canvas: availableWidth = canvasWidth 2 × margin availableHeight = canvasHeight 2 × margin; Calculate the scaling ratio and determine the uniform scaling factor: scaleX = availableWidth / lonDelta, scaleY = availableHeight / latDelta, scale = min(scaleX, scaleY); Calculate the actual occupied size: usedWidth = lonDelta × scale, usedHeight = latDelta × scale; Calculate the center offset: offsetX = margin + (availableWidth usedWidth) / 2, offsetY = margin + (availableHeight usedHeight) / 2; For any latitude and longitude point lon, lat, calculate: x = offsetX + (lon minLon) × scale, y = offsetY + (maxLat lat) × scale; Wherein, minLon, maxLon, minLat, and maxLat are the minimum, maximum, minimum, and maximum longitude values determined based on the single-hole latitude and longitude range; canvasWidth and canvasHeight are the width and height of the target canvas; margin is the canvas margin; scaleX and scaleY are the scaling ratios in the X and Y axes, respectively; scale is a uniform scaling factor; offsetX and offsetY are the center offsets in the X and Y axes, respectively; x and y are the coordinate values of the latitude and longitude points mapped to the local canvas coordinate system; and maxLat... lat is used to reverse the Y-axis; The target canvas parameters include canvasWidth, canvasHeight, and margin, and are determined according to the display size of the monochrome or limited color augmented reality display terminal.
[0018] Preferably, the combination of visual parameters is a preset configuration, or it can be adjusted according to the display parameters, product version, or display terminal type of the monochrome or limited color augmented reality display terminal; The combination of visual parameters includes at least one of grayscale value, transparency, fill method, stroke method, line width, and layer order; The preset layer order includes background layer, water hazard layer, hole boundary layer, fairway layer, path or lane layer, vegetation layer, green layer, tee layer, bunker layer, and hazard connector layer. Skip a layer if no valid object exists in that layer.
[0019] Preferably, the monochrome static hole map data includes at least one stable hole feature structure among fairways, greens, tees, bunkers, water hazards, vegetation, hole boundaries, paths, lanes, and hazard connectors; Obstacle distance text, user location point, hole number, head-up display field, flagstick position displayed on the green stage, and out-of-bounds direction hints are treated as dynamic overlay elements; The map reconstruction terminal sends the monochrome static hole map data and the drawing fields of the dynamic overlay elements to the monochrome or limited color augmented reality display terminal, respectively, so that the monochrome or limited color augmented reality display terminal receives and displays the monochrome static hole map data, and draws the dynamic overlay elements according to the text fields, coordinate fields or graphic fields sent by the map reconstruction terminal.
[0020] Preferably, the map reconstruction terminal generates obstacle distance text, label box coordinates, connector coordinates, and anchor point coordinates based on the local canvas coordinates of the sandpit semantic region or the water obstacle semantic region, and sends the currently displayed label and its coordinate fields to the monochrome or limited color augmented reality display terminal so that the monochrome or limited color augmented reality display terminal draws according to the coordinate fields; After obtaining the user's location, the map reconstruction terminal uses the same unified mapping relationship as the monochrome static hole map data to convert the user's location into local canvas coordinates. When the user's location is within the boundary of the current hole map, the map reconstruction terminal sends the user icon coordinates to the monochrome or limited color augmented reality display terminal so that the monochrome or limited color augmented reality display terminal can draw the user icon at the corresponding position. When the user's location exceeds the current hole map boundary or display range, the map reconstruction terminal generates coordinate fields of a directional dashed line and arrow pointing from the user's location to the center of the green or the flagpole position, and sends them to the monochrome or limited color augmented reality display terminal so that the monochrome or limited color augmented reality display terminal can draw the directional dashed line and arrow.
[0021] Preferably, the map reconstruction terminal uses the course identifier, hole identifier, and version identifier as a cache index for the monochrome static hole map data to the monochrome or limited color augmented reality display terminal, and combines the check value to verify the integrity of the monochrome static hole map data; The version identifier includes at least one of map version, image version, and update time, and the check value includes a cyclic redundancy check value. The map reconstruction terminal sends the monochrome static hole map data, version identifier, and verification value to the monochrome or limited color augmented reality display terminal, so that after the monochrome or limited color augmented reality display terminal receives the complete monochrome static hole map data and passes the verification, it writes or overwrites the corresponding cache and returns a full map confirmation message to the map reconstruction terminal. When the map reconstruction terminal receives a re-request initiated by the monochrome or limited color augmented reality display terminal due to verification failure, version inconsistency, or invalid monochrome static hole map data, it re-provides the monochrome static hole map data of the target golf hole.
[0022] A second aspect of the present invention provides a map reconstruction terminal, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps performed by the map reconstruction terminal in the method described in the first aspect above.
[0023] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps performed by the map reconstruction end in the method described in the first aspect above.
[0024] A fourth aspect of the present invention provides a map reconstruction system, including a map reconstruction terminal and a monochrome or limited-color augmented reality display terminal; The map reconstruction terminal includes: The data acquisition module is used to acquire vector map data of the identified target golf hole. The vector map data includes multiple hole features, feature type information representing the category to which the hole features belong, and a set of latitude and longitude coordinates of the hole features. The feature semantic parsing module is used to parse the multiple hole feature objects into multiple hole feature semantic objects based on the feature type information; The coordinate range determination module is used to determine the latitude and longitude range of a single hole of the target golf hole based on the valid coordinates of boundary-type semantic objects or preset backup semantic objects among the multiple hole feature semantic objects; The coordinate mapping module is used to establish a unified mapping relationship from latitude and longitude to local canvas coordinates based on the latitude and longitude range of the single hole and the target canvas parameters, so that the semantic objects of the holes to be drawn within the same target golf hole share the unified mapping relationship and are mapped to the same local canvas coordinate system, and the unified mapping relationship is used to convert the latitude and longitude coordinates of the semantic objects of the holes to be drawn into canvas paths or graphic objects under the local canvas coordinates. A monochrome visual encoding module is used to configure visual parameter combinations that distinguish different categories of hole feature semantic objects according to the display constraints of the monochrome or limited color augmented reality display terminal and the category of the hole feature semantic objects, so that different categories of hole feature semantic objects can be distinguished from each other under monochrome or limited color display conditions. The layer drawing module is used to process the canvas path or graphic object according to a preset layer order to generate monochrome static hole map data that expresses the stable hole terrain structure and is suitable for display on the monochrome or limited color augmented reality display terminal. The output module is used to output the monochrome static hole map data to the monochrome or limited color augmented reality display terminal; The map reconstruction terminal is used to perform semantic parsing of ground features, determination of latitude and longitude range of single holes, coordinate mapping, configuration of visual parameters, and generation of monochrome static hole map data on the vector map data; the monochrome or limited color augmented reality display terminal is used to receive and display the monochrome static hole map data generated by the map reconstruction terminal.
[0025] Preferably, the map reconstruction terminal further includes a dynamic overlay field generation module, used to generate drawing fields for at least one of the following dynamic overlay elements: obstacle distance text, user location point, hole number, head-up display field, flagpole position displayed on the green stage, and over-boundary direction prompt; the output module is also used to output the drawing fields of the dynamic overlay elements to the monochrome or limited color augmented reality display terminal; the monochrome or limited color augmented reality display terminal is also used to draw the dynamic overlay elements according to the text fields, coordinate fields, or graphic fields sent by the map reconstruction terminal.
[0026] Preferably, the map reconstruction terminal further includes a cache verification module, used to use the course identifier, hole identifier, and version identifier as cache indexes for the monochrome static hole map data to the monochrome or limited-color augmented reality display terminal, and to verify the integrity of the monochrome static hole map data in conjunction with the verification value; the monochrome or limited-color augmented reality display terminal is also used to write or overwrite the corresponding cache after receiving the complete monochrome static hole map data and passing the verification, and to return a full map confirmation message to the map reconstruction terminal; when the verification fails, the version is inconsistent, or the monochrome static hole map data is invalid, a new request is initiated to the map reconstruction terminal so that the map reconstruction terminal can re-provide the monochrome static hole map data of the target golf hole.
[0027] Compared with the prior art, the present invention has the following beneficial effects: By configuring different combinations of monochrome visual parameters (combinations of grayscale value, transparency, fill method, stroke method, line width, and layer order) for different categories of golf features according to the semantic object category of the hole, different categories of golf features can still remain distinguishable even on display terminals that can only display monochrome or limited colors, overcoming the problem of feature confusion after the color scheme loses the color dimension.
[0028] A preset range selection mechanism that prioritizes hole boundaries and uses greens, tees, and fairways as backup sources is adopted to determine the latitude and longitude range of a single hole. This mechanism can reliably determine the map range even when data on a certain type of terrain feature is missing or invalid, thus improving the robustness of map reconstruction.
[0029] By providing monochrome static hole map data to a monochrome or limited-color augmented reality display terminal, the map reconstruction end undertakes the calculation tasks such as semantic analysis of ground features, coordinate mapping, visual parameter configuration and layer processing. The display terminal receives and displays the monochrome static hole map data and can draw dynamic overlay elements according to the fields issued by the map reconstruction end, which helps to reduce the computing, storage and communication burden of the display terminal. Attached Figure Description
[0030] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. In the accompanying drawings: Figure 1 This is a schematic diagram of the framework of a monochrome golf hole map reconstruction system provided in an embodiment of the present invention; Figure 2 A flowchart illustrating the golf hole map reconstruction method provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the mapping algorithm from latitude and longitude to local canvas coordinates in an embodiment of the present invention; Figure 4 This is a schematic diagram of monochrome visual encoding and layer order in an embodiment of the present invention; Figure 5 This is a schematic diagram illustrating the separation of the monochrome static hole base map and the dynamic overlay layer, as well as the indication of the direction of boundary crossing in an embodiment of the present invention. Figure 6 This is a schematic diagram of the image caching, version verification, and whole-image confirmation process in an embodiment of the present invention.
[0031] The following is an explanation of the reference numerals in the attached figures: 10. Map Reconstruction Module; 101. Data Acquisition Module; 102. Geographic Feature Semantic Analysis Module; 103. Coordinate Range Determination Module; 104. Coordinate Mapping Module; 105. Monochrome Visual Encoding Module; 106. Layer Drawing Module; 107. Output Module; 108. Dynamic Overlay Field Generation Module; 109. Cache Validation Module 20. Monochrome or limited color augmented reality display terminals.
[0032] The above reference numerals are only used to refer to corresponding parts in the drawings provided by this invention, and do not constitute a limitation on the scope of protection of this invention. Detailed Implementation The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0033] Before describing specific embodiments of the present invention, several terms used in the present invention will be explained.
[0034] In this invention, the feature type field refers to the field, code, enumeration value, text description, or extended attribute used in vector map data to characterize the category to which a green feature object belongs. Its specific name is not limited by the data source protocol. The feature type field is one form of representation of feature type information in this invention. Field names, abbreviations, spellings, or codes used in different data sources to represent greens, fairways, tees, bunkers, water hazards, vegetation, paths, lanes, or green boundaries can all be merged into the semantic objects of the green features in this invention through a preset mapping relationship. For example, in one data source, the main type field can be GPSItem.gpsType, and the descriptive attribute field can be Attributes.Type; the set of coordinate points used to express the feature outline can be Shapes or Points, and the number of points can be represented by ShapeCount. The above field names are merely examples.
[0035] In this invention, the map reconstruction terminal 10 can be a processing unit in a mobile terminal, server, augmented reality display terminal, or other electronic devices with data processing capabilities.
[0036] In this invention, the semantic object of a golf hole is a collective term for semantic objects obtained after parsing multiple golf hole objects. Based on geometric shape, it is divided into planar semantic regions and linear semantic objects. Planar semantic regions include at least one of the following: green, fairway, tee box, bunker, water hazard, vegetation, and hole boundary. They are expressed as closed planar features, and when their coordinate sets are not closed, they are closed during drawing. Linear semantic objects include at least one of the following: path and lane. They are expressed as non-closed linear objects. When determining the latitude and longitude range of a single hole of a target golf hole, the semantic region of the hole boundary is given priority, and planar semantic regions such as the green, tee box, and fairway are used as backup range sources. In specific embodiments, backup range sources can be selected step-by-step according to the preset priority of the green, tee box, and fairway. In other embodiments, backup range sources can also be determined from at least one of the green, tee box, and fairway according to preset selection rules such as data completeness, area size, and spatial relationship with the center line of the target hole, the center of the green, or the flagstick position. Sandpits, water obstacles, and linear terrain features are not included in the determination of the latitude and longitude range of a single hole.
[0037] In this invention, path or lane-type feature identifiers include identifiers used to characterize paths, center paths of holes, cart paths, driving paths, or other linear access features. For example, in a data source, these can be fields such as Path, Centralpath, or CartpathTrace. These features are treated as non-closed linear objects during drawing, rather than as closed planar features.
[0038] In this invention, a monochrome or limited-color augmented reality display terminal refers to an augmented reality display device that can only display a single color or a limited number of gray levels or colors, including but not limited to augmented reality glasses, head-up display devices, etc. that use monochrome waveguides, monochrome microdisplay devices or limited gray level display devices, and are hereinafter referred to as display terminals or glasses terminals.
[0039] In this invention, the monochrome visual parameter combination refers to a set of visual parameters used to distinguish different categories of land features under monochrome or limited color display conditions, including at least one of grayscale value, transparency, fill mode, stroke mode, line width, and layer order.
[0040] In this invention, a stable hole feature structure refers to a hole feature structure that does not change with changes in user location, display stage status, or real-time data updates when the map version of the same target golf hole remains unchanged, and does not need to be regenerated during dynamic overlay refresh. Examples include fairways, greens, tees, bunkers, water hazards, vegetation, hole boundaries, paths, lanes, and hazard connectors. When the map version of the target golf hole changes, the corresponding stable hole feature structure can be regenerated.
[0041] In this invention, monochrome static hole map data refers to map data generated after semantic parsing of ground features, coordinate mapping, visual parameter configuration, and layer order processing. This data is used to represent stable hole features and is suitable for display on monochrome or limited-color augmented reality display terminals. It includes at least one of bitmap, vector graphics, canvas path sets, and layer drawing data. When generated in the form of a bitmap (e.g., a single-channel grayscale bitmap) or vector graphics, monochrome static hole map data can also be called monochrome static hole base map. The following embodiments mainly use monochrome static hole base maps as examples for illustration.
[0042] In this invention, a dynamic overlay refers to a display layer that is overlaid on a monochrome static hole map and updates with time, user position, or display stage status. Dynamic overlay elements include at least one of obstacle distance text, user position point, hole number, head-up display field, flagstick position displayed on the green stage, and over-boundary direction prompts.
[0043] In this invention, the complete map confirmation message refers to the confirmation message, such as the ACK message, returned by the display terminal to the map reconstruction terminal after receiving complete monochrome static hole map data (e.g., a complete monochrome static hole base map) and verifying it.
[0044] Example 1, please refer to Figure 2This embodiment provides a map reconstruction method, which is executed by a map reconstruction terminal 10, such as a smartphone, tablet, or vehicle terminal paired with augmented reality glasses via Bluetooth or Wi-Fi. The method includes the following steps S1 to S8.
[0045] Step S1: Obtain the vector map data of the identified target golf hole. The target golf hole can be uniquely identified by the course identifier and the hole identifier, for example, by `courseId` specifying the course identifier and `holeId` specifying the hole identifier. The vector map data can also carry version identifiers, such as `version` or `mapVersion`. The vector map data includes multiple hole feature objects, each containing a feature type field representing its category and a set of latitude and longitude coordinates expressing its outline. In one example, the vector map data of a hole can be organized into the following hole feature objects: Green object: Its land feature type field is represented as the green outline (e.g., GreenTrace), and the coordinate set is a closed set of latitude and longitude points; Fairway objects: Their feature type field is characterized as fairway outlines (e.g., FairwayTrace). Teebox object: Its feature type field is represented as the teebox outline (e.g., TeeboxTrace). Sandpit objects: Their feature type field is characterized as sandpit, sandy land or sandpit outline (e.g., Sand, Bunker or BunkerTrace). Water obstacle objects: Their land cover type field is characterized as a water obstacle outline (e.g., WaterTrace). Vegetation objects: Their land cover type field is represented as a vegetation outline (e.g., VegetationTrace or TreesTrace). Path or lane object: Its feature type field is characterized as a path or lane type feature identifier (e.g., Path, Centralpath, or CartpathTrace). Hole boundary object: Its feature type field is characterized as a hole boundary (e.g., HoleBoundary, or its spelling variant HoleBoundry).
[0046] Step S2: Based on the feature type field, resolve multiple hole feature objects into multiple hole feature semantic objects. The multiple hole feature semantic objects include at least one of areal feature semantic regions and linear feature semantic objects. Among them, the areal feature semantic regions include at least one of green, fairway, tee box, bunker, water hazard, vegetation and hole boundary, and the linear feature semantic objects include at least one of path and lane. Specifically, hole features represented by the feature type field as green outline, fairway outline, tee box outline, water hazard outline, vegetation outline, and hole boundary are parsed into green semantic regions, fairway semantic regions, tee box semantic regions, water hazard semantic regions, vegetation semantic regions, and hole boundary semantic regions, respectively. Hole features represented by the feature type field as bunkers, sandy areas, or bunker outlines are grouped into bunker semantic regions. The aforementioned green, fairway, tee box, bunker, water hazard, vegetation, and hole boundary semantic regions all belong to areal feature semantic regions. Hole features represented by the feature type field as paths, hole center paths, cart paths, driving paths, or other linear access features are identified as path or cart path semantic objects, which belong to linear feature semantic objects. When multiple objects of the same category exist (e.g., a hole contains multiple bunkers), they are all grouped into the same semantic object category, and their respective coordinate sets are retained.
[0047] Step S3: Determine the latitude and longitude range of the target golf hole. The determination process is detailed in [link to relevant documentation]. Figure 2 First, it is determined whether a semantic region of the hole boundary has been parsed and whether the semantic region of the hole boundary has valid coordinates. If so, the latitude and longitude range of the single hole is determined based on the valid coordinates of the semantic region of the hole boundary. If no valid semantic region of the hole boundary has been parsed, a backup range source is determined from at least one of the green, tee box, and fairway according to a preset range selection rule. In this embodiment, the green, tee box, and fairway are selected as backup range sources in that order. The first isometric feature semantic region with valid coordinates is selected, and the latitude and longitude range of the single hole is determined based on the valid coordinates of the isometric feature semantic region. Having valid coordinates means that the isometric feature semantic region has a non-empty set of coordinates, the number of coordinate points is sufficient to express its outline, and the latitude and longitude values are within a reasonable range. Bunkers, water hazards, and path or lane semantic objects may be located outside the main body of the hole or be scattered. Including them in the range determination would cause map range distortion, so they are not included in the determination of the latitude and longitude range of the single hole in step S3. However, after the latitude and longitude range of the single hole and the unified mapping relationship are established, the same unified mapping relationship is still used to convert them into local canvas coordinates. If the effective latitude and longitude range of a single hole cannot be determined according to the preset range selection rules, the map reconstruction terminal 10 generates an error message or requests vector map data of the target golf hole again.
[0048] Steps S4 and S5 establish a unified mapping relationship from latitude and longitude to local canvas coordinates based on the latitude and longitude range of a single hole and the target canvas parameters. This unified mapping relationship is then used to convert the latitude and longitude coordinates of each hole's feature semantic objects into canvas paths or graphic objects under the local canvas coordinates. For a detailed calculation process and numerical example of the unified mapping relationship, please refer to Example 3. Specifically, planar feature semantic regions such as greens, fairways, tees, bunkers, water hazards, vegetation, and hole boundaries are used as planar features to generate canvas paths or graphic objects. When the coordinate set of planar features is not closed, it is closed during drawing. Path or lane semantic objects are used as linear feature semantic objects to generate canvas paths as non-closed linear objects.
[0049] Step S6: Based on the display constraints of the monochrome or limited color augmented reality display terminal, configure different monochrome visual parameter combinations for different categories of hole feature semantic objects according to their categories. For specific configuration examples, please refer to Example 4.
[0050] Step S7: Draw the canvas path or graphic object according to the preset layer order to generate a monochrome static hole base map for expressing the stable hole terrain structure. For details of the preset layer order, please refer to Example 5.
[0051] Step S8: Provide the monochrome static hole base map to a monochrome or limited-color augmented reality display terminal for reception and display. The monochrome static hole base map can be output in the form of a bitmap (e.g., a single-channel grayscale bitmap) or a vector graphic; in other embodiments, the monochrome static hole map data can also be provided to the display terminal in the form of a canvas path set or layer drawing data, which is then used by the display terminal to draw and display the data, so that different types of golf hole features remain distinguishable under monochrome or limited-color display conditions.
[0052] Example 2, this example combines Figure 2The process of determining the latitude and longitude range of a single hole in step S3 is further explained. In one example, although a target hole contains a hole boundary object, if the coordinate set of the hole boundary object is empty or the number of coordinate points is insufficient, or its latitude and longitude values are outside the reasonable range, then the semantic region of the hole boundary is determined to be invalid. In this case, the semantic region of the green is then judged. If the semantic region of the green has, for example, twelve valid coordinate points, then the latitude and longitude range of the single hole is determined using all the valid coordinates of the semantic region of the green. Determining the latitude and longitude range of a single hole means: taking all the valid coordinate points of the isometric feature semantic region from which the backup range originates, calculating the minimum longitude value minLon, the maximum longitude value maxLon, the minimum latitude value minLat, and the maximum latitude value maxLat, and using minLon, maxLon, minLat, and maxLat together to define a latitude and longitude bounding box as the latitude and longitude range of the target hole. In one numerical example, minLon = 113.5000, maxLon = 113.5030, minLat = 22.3000, and maxLat = 22.3060 are calculated from the green coordinates. If the green is also invalid, the selection continues in the order of tee box and fairway; if all are invalid, an error message is generated or vector map data is requested again. In other implementations, backup range sources can also be determined from at least one of the green, tee box, and fairway based on preset selection rules such as data completeness, area size, and spatial relationship with the center line of the target hole, the center of the green, or the flagstick position.
[0053] In another implementation, the backup range is not limited to being selected in a fixed priority order based on the green, tee, and fairway. It can also be selected based on at least one of the following: data completeness, area size, and spatial relationship with the centerline of the target hole, the center of the green, or the position of the flagstick. For example, in the semantic regions of areal features such as the green, tee, and fairway, the semantic regions of areal features with more complete coordinate points, larger coverage area, or closer to the centerline of the target hole are preferentially selected as backup range sources, so that the latitude and longitude range of a single hole determined accordingly can better represent the overall spatial distribution of the target golf hole.
[0054] Example 3, please refer to Figure 3 This embodiment provides a detailed explanation of the unified mapping relationship from latitude and longitude to local canvas coordinates established in step S4. Since the latitude and longitude range covered by a single golf hole is relatively small, this embodiment approximates the latitude and longitude range of the single hole as a local range for planar approximation, and establishes the local canvas coordinate mapping within this local range using a linear normalization method for latitude and longitude. In other embodiments, the latitude and longitude coordinates can also be first converted to local projected coordinates or local rectangular coordinates before mapping to the local canvas coordinate system. The unified mapping relationship includes the following calculation process: (1) Calculate the latitude and longitude span: lonDelta = maxLon minLon,latDelta = maxLat minLat; (2) Calculate the available drawing area: availableWidth = canvasWidth 2 × margin, availableHeight = canvasHeight 2 × margin; (3) Calculate the scaling ratio of the X-axis and Y-axis and take the smaller one: scaleX = availableWidth / lonDelta, scaleY = availableHeight / latDelta, scale = min(scaleX, scaleY); (4) Calculate the actual occupied dimensions: usedWidth = lonDelta × scale, usedHeight = latDelta × scale; (5) Calculate the center offset: offsetX = margin + (availableWidth) usedWidth) / 2, offsetY = margin + (availableHeight usedHeight) / 2; (6) For any latitude and longitude point (lon, lat), calculate its canvas coordinates: x = offsetX + (lon) minLon) × scale, y = offsetY + (maxLat lat) × scale.
[0055] Specifically, `scale` is chosen as the smaller of `scaleX` and `scaleY`, ensuring that the hole map content falls entirely within the available drawing area without altering the actual aspect ratio. `offsetX` and `offsetY` are used to center the actual occupied area within the canvas, potentially leaving horizontal or vertical margins (i.e., mailbox-style margins). Furthermore, `y` is calculated using `maxLat`. The lat setting maps points with higher latitudes to the top of the canvas and points with lower latitudes to the bottom, thus reversing the Y-axis and conforming to the map convention of north at the top and south at the bottom.
[0056] Below is a complete numerical example. Continuing from Example 2, let the latitude and longitude range of a single hole be minLon = 113.5000, maxLon = 113.5030, minLat = 22.3000, maxLat = 22.3060, and the target canvas parameters be canvasWidth = 456, canvasHeight = 600, and margin = 20 (padding is 0). Then: lonDelta = 0.0030, latDelta = 0.0060; availableWidth = 456 40 = 416, availableHeight = 600 40 = 560; scaleX = 416 / 0.0030 ≈ 138666.67, scaleY = 560 / 0.0060 ≈ 93333.33, scale = min ≈ 93333.33; usedWidth = 0.0030 × 93333.33 ≈ 280, usedHeight = 0.0060 × 93333.33 ≈ 560; offsetX = 20 + (416 280) / 2 = 88, offsetY = 20 + (560 560) / 2 = 20.
[0057] This maps to several representative points: For the center point of the green bounding box (113.5015, 22.3030): x = 88 + (113.5015) 113.5000)× 93333.33 ≈ 228, y = 20 + (22.3060 22.3030) × 93333.33 ≈ 300, which means it is mapped to the center of the canvas (228, 300); For the point of maximum latitude (lat = 22.3060): y = 20 + (22.3060) 22.3060) × 93333.33 = 20, located at the top of the canvas; For the point with the minimum latitude (lat = 22.3000): y = 20 + (22.3060) 22.3000) × 93333.33≈ 580, located at the bottom of the canvas.
[0058] As shown above, the larger the latitude, the closer it is to the top of the canvas, and the smaller the latitude, the closer it is to the bottom of the canvas, verifying the Y-axis reversal. Simultaneously, since scaleX is greater than scaleY, scaleY is actually used as the uniform scaling factor, leaving horizontal margins and centering the image using offsetX. This ensures the hole map is presented completely and centered on the canvas without stretching or distortion. The target canvas parameters are determined based on the display size of the display terminal and may include at least one of canvasWidth, canvasHeight, margin, and padding, where padding can be 0 or a preset inner margin value.
[0059] Example 4, please refer to Figure 4 This embodiment describes the combination of monochrome visual parameters configured according to semantic categories in step S6.
[0060]
[0061] Table 1 Examples of Monochrome Visual Parameter Combinations The specific values for grayscale, transparency, and line width in Table 1 are for illustrative purposes only. For example, the green uses a high-brightness grayscale value (#505050) with a thicker white outline to make it stand out against a dark background; the bunker uses the highest brightness (#FFFFFF) and high transparency to highlight it; and the water obstacle uses a low-brightness grayscale with a diagonal textured fill to distinguish it from other planar features. The outline line width can be 1px, 2px, 5px, etc. The monochrome visual parameter combination can be a preset configuration or adjusted according to the display parameters, product version, or display terminal type of the monochrome or limited-color augmented reality display terminal; for example, when the contrast of a certain model of display terminal is low, the brightness difference between key features can be increased or the outline line width can be thickened to maintain the distinguishability between features.
[0062] Example 5, please refer to Figure 4 This embodiment explains the preset layer order in step S7.
[0063] The default layer order, drawn from bottom to top, is as follows: the first layer is the background layer, the second layer is the water hazard layer, the third layer is the hole boundary layer, the fourth layer is the fairway layer, the fifth layer is the path or lane layer, the sixth layer is the vegetation layer, the seventh layer is the green layer, the eighth layer is the tee box layer, the ninth layer is the bunker layer, and the tenth layer is the hazard connector layer. The higher the layer order value, the higher the hole feature semantic object is drawn on the layer. Therefore, when the drawing areas of different features overlap, the later drawn feature will cover the earlier drawn feature.
[0064] When drawing in the above layer order, first fill the entire canvas with the background layer, then draw water hazards, hole boundaries, fairways, paths or lanes, vegetation, greens, tees, and bunkers in sequence, and finally draw the hazard connectors. Thus, large-area features such as water hazards, fairways, and vegetation, which serve as background background, are located on lower layers, while areas of focus for players, such as greens, tees, and bunkers, as well as defining and indicating features like hole boundaries, paths or lanes, and hazard connectors, are located on higher layers, ensuring that key features are not obscured by other features. Hole boundaries are drawn with no fill and white dashed lines, defining the hole's extent without obscuring features within it.
[0065] If any layer does not contain any valid objects (e.g., a hole does not contain water obstacles or paths), the drawing of that layer is skipped without affecting the drawing order of the remaining layers. The layer order and the corresponding monochrome visual parameter combinations for each layer can be found in [reference needed]. Figure 4 The specific number of layers, arrangement order, and visual parameter values in Table 1 are examples and can be adjusted according to the display constraints of monochrome or limited color augmented reality display terminals.
[0066] Example 6 illustrates the handling of abnormal data. During the parsing and drawing process, for empty coordinate sets, abnormal latitude and longitude coordinates (e.g., coordinates exceeding limits or obviously incorrect values), or hole features inconsistent with predefined feature types, no corresponding canvas paths or graphic objects are generated to avoid abnormal data contaminating the monochrome static hole base map. For hole features with insufficient points to form a closed area feature (e.g., containing only two coordinate points) but capable of forming line segments or point-like prompts, they are downgraded to line segment objects or point-like objects for drawing, thereby ensuring the accuracy of the base map while preserving as much information as possible. Furthermore, as in Example 2, when the effective latitude and longitude range of a single hole cannot be determined by following the order of green, tee, and fairway, the map reconstruction terminal 10 generates an abnormal prompt or re-requests vector map data for the target golf hole.
[0067] Example 7, please refer to Figure 5 This embodiment explains the separation of monochrome static hole map and dynamic overlay. The monochrome static hole map contains only stable hole features, namely at least one of the following: fairway, green, tee box, bunker, water hazard, vegetation, hole boundaries, path, lane, and hazard connector. Elements that change over time or with the user's status are treated as dynamic overlay elements, including hazard distance text, user location, hole number, head-up display field, flagstick position displayed on the green, and over-boundary direction hints. The hazard distance text, for example, is BF / WF text, used to indicate the distance labels from the player to the front and back edges of the bunker or water hazard.
[0068] Regarding the processing of obstacle distance text, the map reconstruction terminal 10 generates obstacle distance text, label box coordinates, connector coordinates, and anchor point coordinates based on the local canvas coordinates of the sandpit or water obstacle, and sends the currently displayed labels and their coordinate fields to the monochrome or limited color augmented reality display terminal; the display terminal draws according to the coordinate fields, without performing complete label layout calculations (such as label avoidance calculations and occlusion elimination calculations are all completed on the map reconstruction terminal 10 side), thereby reducing the computational burden on the display terminal.
[0069] Regarding the handling of user location and out-of-boundary direction prompts, after the map reconstruction terminal 10 obtains the user's location (e.g., through satellite positioning), it uses the same unified mapping relationship as the monochrome static hole base map to convert the user's location into local canvas coordinates. When the user's location is within the current hole map boundary, the display terminal draws a user icon at the corresponding position. When the user's location exceeds the current hole map boundary or display range, the display terminal draws a dashed line and arrow pointing from the user's location to the center of the green or the flagstick position based on the coordinate fields sent by the map reconstruction terminal 10, thus still indicating the target direction to the player within the limited display range. Because the base map is stable and the overlay layer is lightweight, the display terminal does not need to redraw the base map when refreshing the dynamic overlay layer, resulting in high refresh efficiency and minimal display flicker.
[0070] Example 8, please refer to Figure 6 This embodiment describes the caching index and verification mechanism for monochrome static hole base maps. The map reconstruction terminal 10 and the monochrome or limited-color augmented reality display terminal use the course identifier, hole identifier, and version identifier as the caching index for the monochrome static hole base map. For example, the caching index is composed of courseId, holeId, and version or mapVersion (or update time), and is combined with a verification value to verify the integrity of the monochrome static hole base map. The verification value is, for example, a cyclic redundancy check value. When the display terminal receives the complete monochrome static hole base map and passes the verification, it writes or overwrites the corresponding cache and returns a complete map confirmation message to the map reconstruction terminal 10. When the verification fails, the version is inconsistent, or the image is invalid, the corresponding old cache is deleted and the monochrome static hole base map of the target golf hole is requested again. This ensures that the base map displayed by the display terminal is consistent and complete with the result generated by the map reconstruction terminal 10, avoids repeated transmission of the same base map, and further reduces communication and power consumption overhead.
[0071] Example 9, please refer to Figure 1This embodiment provides a map reconstruction system, including a map reconstruction terminal 10 and a monochrome or limited-color augmented reality display terminal 20. The map reconstruction terminal 10 includes: a data acquisition module 101, used to acquire vector map data of a determined target golf hole; a feature semantic parsing module 102, used to parse the hole feature object into multiple hole feature semantic objects based on a feature type field, the hole feature semantic objects including at least one of areal feature semantic regions and linear feature semantic objects; and a coordinate range determination module 103, used to determine the latitude and longitude range of a single hole based on its valid coordinates when a hole boundary semantic region with valid coordinates is parsed, and to select from the green, tee box, and fairway according to a preset range selection rule when a hole boundary semantic region with valid coordinates is not parsed. The system determines a backup range source within at least one isometric feature semantic region and determines the latitude and longitude range of a single hole based on the valid coordinates in the backup range source; a coordinate mapping module 104 is used to establish a unified mapping relationship from latitude and longitude to local canvas coordinates and convert the coordinates of each hole feature semantic object into a canvas path or graphic object; a monochrome visual encoding module 105 is used to configure different monochrome visual parameter combinations according to semantic categories; a layer drawing module 106 is used to draw and generate a monochrome static hole base map according to a preset layer order; and an output module 107 is used to output the monochrome static hole base map and the drawing fields of the dynamic overlay elements to the display terminal 20.
[0072] Furthermore, the map reconstruction terminal 10 may also include a dynamic overlay field generation module 108, used to generate drawing fields for at least one of the following dynamic overlay elements: obstacle distance text, user location point, hole number, head-up display field, green stage flagpole position, and over-boundary direction prompt; and a cache verification module 109, used to use the course identifier, hole identifier, and version identifier as cache indexes for the monochrome static hole base map and to verify it according to the verification value. The monochrome or limited color augmented reality display terminal 20 is used to receive and display the monochrome static hole base map, draw dynamic overlay elements according to the text fields, coordinate fields, or graphic fields sent by the map reconstruction terminal 10, and does not parse the complete structured map data of the vector map data; the display terminal 20 may also include a cache verification module, which works with the map reconstruction terminal 10 to complete cache indexing and verification. The functions of the above modules correspond one-to-one with the aforementioned method steps S1 to S8, so they will not be described in detail again.
[0073] In this embodiment, the various modules of the map reconstruction terminal 10 also have the following collaborative effects. First, the unified mapping relationship established by the coordinate mapping module 104 is not only used by the layer drawing module 106 to generate a monochrome static hole base map, but also reused by the dynamic overlay field generation module 108 when generating drawing fields for dynamic overlay elements such as user location points, obstacle distance labels, and boundary crossing direction prompts, so that the dynamic overlay elements and the monochrome static hole base map fall into the same local canvas coordinate system and maintain precise alignment (corresponding to...). Figure 1 (marked ① in the text). Secondly, the monochrome static hole base map output by the layer drawing module 106 and the output module 107, and the dynamic overlay drawing field generated by the dynamic overlay field generation module 108, are respectively sent from the output module 107 to the display terminal 20, and the display terminal 20 combines the stable base map and the lightweight overlay field for display; since the base map is stable and the overlay is lightweight, the display terminal 20 does not need to redraw the base map when refreshing the dynamic overlay elements, thereby improving the refresh efficiency and reducing display flicker (corresponding to...). Figure 1 (marked ② in the text). Thirdly, the cache verification module 109 and the display terminal 20 cooperate with each other using the court identifier, hole identifier, and version identifier as cache indexes and in conjunction with the verification value: after the display terminal 20 receives and verifies the data, it writes or overwrites the corresponding cache and returns a full map confirmation message; if the verification fails, the version is inconsistent, or the image is invalid, the display terminal 20 initiates a new request, and the map reconstruction terminal 10 resends the data, thereby ensuring that the base map cached and displayed by the display terminal 20 is complete and the version is consistent (corresponding to...). Figure 1 (marked ③ in the text). Thus, the static generation, dynamic overlay, and cache verification of the single-hole map work in coordination under the same coordinate reference and the same version identifier, jointly reducing the computing power, storage, and communication burden of the display terminal 20 and improving the real-time performance and stability of the display.
[0074] In one implementation, the map reconstruction terminal 10 can be a computing device including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it performs the aforementioned steps S1 to S8 executed by the map reconstruction terminal, as well as corresponding functions such as monochrome static hole base map output, dynamic overlay field generation, and cache verification. The map reconstruction terminal 10 can be, for example, a smartphone, tablet computer, or vehicle terminal. The display terminal 20 and the map reconstruction terminal 10 can communicate via Bluetooth, wireless LAN, or other wireless methods.
[0075] Example 10: This example provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it can implement the map reconstruction method executed by the map reconstruction terminal in any of the preceding examples, including at least one of the following functions: target hole vector map data acquisition, feature semantic analysis, single hole latitude and longitude range determination, unified mapping relationship establishment, monochrome visual encoding, layer drawing, monochrome static hole base map provision, dynamic overlay field generation, and cache verification. The computer-readable storage medium may include a read-only memory, random access memory, flash memory, memory card, disk, optical disk, or other media capable of storing a computer program.
[0076] It should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion. The English field names appearing in this invention (e.g., GreenTrace, FairwayTrace, TeeboxTrace, WaterTrace, VegetationTrace, HoleBoundary, Path, Centralpath, CartpathTrace, courseId, holeId, version, crc32, ACK, etc.) and specific values (e.g., grayscale values #505050, #FFFFFF, canvas size 456×600, line width 5px, etc.) are all examples used to help understand the technical solutions of this invention and do not constitute a limitation on the scope of protection of this invention.
[0077] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A map reconstruction method, characterized in that, The method includes the following steps performed by the map reconstruction end: S1. Obtain vector map data of the identified target golf hole. The vector map data includes multiple hole features, feature type information representing the category to which the hole features belong, and a set of latitude and longitude coordinates of the hole features. S2. Based on the land feature type information, the multiple hole land feature objects are parsed into multiple hole land feature semantic objects; S3. Determine the latitude and longitude range of the target golf hole based on the valid coordinates of the boundary-type semantic objects or the preset backup semantic objects among the multiple hole feature semantic objects; S4. Based on the latitude and longitude range of the single hole and the target canvas parameters, establish a unified mapping relationship from latitude and longitude to local canvas coordinates, so that the semantic objects of the ground features to be drawn within the same target golf hole share the unified mapping relationship and are mapped to the same local canvas coordinate system. S5. Using the unified mapping relationship, the latitude and longitude coordinates of the semantic object of the hole to be drawn are converted into a canvas path or graphic object under the local canvas coordinates; S6. Based on the display constraints of the monochrome or limited color augmented reality display terminal and the category of the hole feature semantic objects, configure visual parameter combinations that distinguish different categories of hole feature semantic objects so that different categories of hole feature semantic objects can be distinguished from each other under monochrome or limited color display conditions. S7. Process the canvas path or graphic object according to the preset layer order to generate monochrome static hole map data that is used to express the stable hole terrain structure and is suitable for display on the monochrome or limited color augmented reality display terminal. S8. Provide the monochrome static hole map data to the monochrome or limited color augmented reality display terminal for the monochrome or limited color augmented reality display terminal to receive and display.
2. The method according to claim 1, characterized in that, The plurality of hole feature semantic objects include at least one of areal feature semantic regions and linear feature semantic objects; The areal feature semantic region includes at least one of the following: green semantic region, fairway semantic region, tee box semantic region, bunker semantic region, water hazard semantic region, vegetation semantic region, and hole boundary semantic region; the linear feature semantic object includes at least one of the following: path or lane semantic object. The boundary class semantic object includes the ball hole boundary semantic region; When the semantic region of the hole boundary with valid coordinates is obtained through parsing, the map reconstruction terminal determines the latitude and longitude range of the single hole based on the valid coordinates of the semantic region of the hole boundary; When a semantic region of the hole boundary with valid coordinates is not parsed, the map reconstruction terminal determines the backup range source from the preset backup feature semantic objects according to the preset range selection rules, and determines the latitude and longitude range of the single hole according to the valid coordinates in the backup range source. The preset backup ground feature semantic objects include at least one of the green semantic region, tee box semantic region and fairway semantic region, and the preset range selection rule includes selecting in the order of green semantic region, tee box semantic region and fairway semantic region.
3. The method according to claim 2, characterized in that, The feature type information represents the category to which the hole feature object belongs in at least one of the following forms: field name, field value, code, enumeration value, text description, or extended attribute; The map reconstruction terminal, based on a preset feature type mapping relationship, groups hole feature objects that satisfy the preset feature type mapping relationship into area feature semantic regions or line feature semantic objects; The preset feature type mapping relationship includes at least one of the following: synonym field, abbreviation field, spell variant field, data source encoding field, or extended attribute field; Land feature type information used to characterize greens, fairways, tees, water hazards, vegetation, or hole boundaries is grouped into the corresponding green semantic region, fairway semantic region, tee box semantic region, water hazard semantic region, vegetation semantic region, or hole boundary semantic region; land feature type information used to characterize bunkers or bunker-equivalent land features is grouped into bunker semantic regions; land feature type information used to characterize paths, cart paths, or other linear access features is grouped into path or cart path semantic objects. After converting the latitude and longitude coordinates of the areal feature semantic region or linear feature semantic object into local canvas coordinates using the unified mapping relationship, for the hole feature objects that are merged into the areal feature semantic region, a closed or closed canvas path or graphic object is generated; for the hole feature objects that are merged into the linear feature semantic object, a canvas path is generated according to the non-closed linear object.
4. The method according to claim 2, characterized in that, The semantic regions of sandpits, water obstacles, and paths or lanes are not involved in determining the latitude and longitude range of a single hole as described in step S3. After the latitude and longitude range of the single hole and the unified mapping relationship are established, the semantic regions of the sandpit, the semantic regions of the water obstacle, and the semantic objects of the path or lane are converted into local canvas coordinates using the unified mapping relationship.
5. The method according to claim 1, characterized in that, When a boundary-type semantic object with valid coordinates is not parsed, the map reconstruction end determines the source of the backup range from the preset backup feature semantic objects based on at least one of the following: data completeness, area size, and spatial relationship with the center line of the target hole, the center of the green, or the position of the flagpole. The end then determines the latitude and longitude range of the single hole based on the valid coordinates in the source of the backup range. The preset backup ground feature semantic objects include at least one of the following: green semantic region, tee box semantic region, and fairway semantic region.
6. The method according to claim 1, characterized in that, When both lonDelta and latDelta, determined based on the latitude and longitude range of the single hole, are greater than 0, the unified mapping relationship includes the following calculation process: Calculate the span of latitude and longitude: lonDelta = maxLon minLon, latDelta = maxLat minLat; Calculate the available drawing area in the target canvas: availableWidth = canvasWidth 2 × margin, availableHeight = canvasHeight 2 × margin; Calculate the scaling ratio and determine the uniform scaling factor: scaleX = availableWidth / lonDelta, scaleY = availableHeight / latDelta, scale = min(scaleX, scaleY); Calculate the actual occupied size: usedWidth = lonDelta × scale, usedHeight = latDelta × scale; Calculate the center offset: offsetX = margin + (availableWidth usedWidth) / 2, offsetY = margin + (availableHeight usedHeight) / 2; For any latitude and longitude point lon, lat, calculate: x = offsetX + (lon minLon) × scale, y = offsetY + (maxLat lat) × scale; Wherein, minLon, maxLon, minLat, and maxLat are the minimum, maximum, minimum, and maximum longitude values determined based on the single-hole latitude and longitude range; canvasWidth and canvasHeight are the width and height of the target canvas; margin is the canvas margin; scaleX and scaleY are the scaling ratios in the X and Y axes, respectively; scale is a uniform scaling factor; offsetX and offsetY are the center offsets in the X and Y axes, respectively; x and y are the coordinate values of the latitude and longitude points mapped to the local canvas coordinate system; and maxLat... lat is used to reverse the Y-axis; The target canvas parameters include canvasWidth, canvasHeight, and margin, and are determined according to the display size of the monochrome or limited color augmented reality display terminal.
7. The method according to claim 1, characterized in that, The visual parameter combination is a preset configuration, or it can be adjusted according to the display parameters, product version, or display terminal type of the monochrome or limited color augmented reality display terminal; The combination of visual parameters includes at least one of grayscale value, transparency, fill method, stroke method, line width, and layer order; The preset layer order includes background layer, water hazard layer, hole boundary layer, fairway layer, path or lane layer, vegetation layer, green layer, tee layer, bunker layer, and hazard connector layer. Skip a layer if no valid object exists in that layer.
8. The method according to claim 1, characterized in that, The monochrome static hole map data includes at least one stable hole feature structure among fairways, greens, tees, bunkers, water hazards, vegetation, hole boundaries, paths, lanes, and hazard connectors; Obstacle distance text, user location point, hole number, head-up display field, flagstick position displayed on the green stage, and out-of-bounds direction hints are treated as dynamic overlay elements; The map reconstruction terminal sends the monochrome static hole map data and the drawing fields of the dynamic overlay elements to the monochrome or limited color augmented reality display terminal, respectively, so that the monochrome or limited color augmented reality display terminal receives and displays the monochrome static hole map data, and draws the dynamic overlay elements according to the text fields, coordinate fields or graphic fields sent by the map reconstruction terminal.
9. The method according to claim 8, characterized in that, The map reconstruction terminal generates obstacle distance text, label box coordinates, connector coordinates, and anchor point coordinates based on the local canvas coordinates of the sandpit semantic region or water obstacle semantic region, and sends the currently displayed label and its coordinate fields to the monochrome or limited color augmented reality display terminal so that the monochrome or limited color augmented reality display terminal can draw according to the coordinate fields. After obtaining the user's location, the map reconstruction terminal uses the same unified mapping relationship as the monochrome static hole map data to convert the user's location into local canvas coordinates. When the user's location is within the boundary of the current hole map, the map reconstruction terminal sends the user icon coordinates to the monochrome or limited color augmented reality display terminal so that the monochrome or limited color augmented reality display terminal can draw the user icon at the corresponding position. When the user's location exceeds the current hole map boundary or display range, the map reconstruction terminal generates coordinate fields of a directional dashed line and arrow pointing from the user's location to the center of the green or the flagpole position, and sends them to the monochrome or limited color augmented reality display terminal so that the monochrome or limited color augmented reality display terminal can draw the directional dashed line and arrow.
10. The method according to claim 1, characterized in that, The map reconstruction terminal uses the course identifier, hole identifier, and version identifier as cache indexes for the monochrome static hole map data to the monochrome or limited color augmented reality display terminal, and combines the check value to verify the integrity of the monochrome static hole map data. The version identifier includes at least one of map version, image version, and update time, and the check value includes a cyclic redundancy check value. The map reconstruction terminal sends the monochrome static hole map data, version identifier, and verification value to the monochrome or limited color augmented reality display terminal, so that after the monochrome or limited color augmented reality display terminal receives the complete monochrome static hole map data and passes the verification, it writes or overwrites the corresponding cache and returns a full map confirmation message to the map reconstruction terminal. When the map reconstruction terminal receives a re-request initiated by the monochrome or limited color augmented reality display terminal due to verification failure, version inconsistency, or invalid monochrome static hole map data, it re-provides the monochrome static hole map data of the target golf hole.
11. A map reconstruction terminal, characterized in that, It includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps performed by the map reconstruction end in the method of any one of claims 1 to 10.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps performed by the map reconstruction end in the method of any one of claims 1 to 10.
13. A map reconstruction system, characterized in that, This includes map reconstruction terminals and monochrome or limited-color augmented reality display terminals; The map reconstruction terminal includes: The data acquisition module is used to acquire vector map data of the identified target golf hole. The vector map data includes multiple hole features, feature type information representing the category to which the hole features belong, and a set of latitude and longitude coordinates of the hole features. The feature semantic parsing module is used to parse the multiple hole feature objects into multiple hole feature semantic objects based on the feature type information; The coordinate range determination module is used to determine the latitude and longitude range of a single hole of the target golf hole based on the valid coordinates of boundary-type semantic objects or preset backup semantic objects among the multiple hole feature semantic objects; The coordinate mapping module is used to establish a unified mapping relationship from latitude and longitude to local canvas coordinates based on the latitude and longitude range of the single hole and the target canvas parameters, so that the semantic objects of the holes to be drawn within the same target golf hole share the unified mapping relationship and are mapped to the same local canvas coordinate system, and the unified mapping relationship is used to convert the latitude and longitude coordinates of the semantic objects of the holes to be drawn into canvas paths or graphic objects under the local canvas coordinates. A monochrome visual encoding module is used to configure visual parameter combinations that distinguish different categories of hole feature semantic objects according to the display constraints of the monochrome or limited color augmented reality display terminal and the category of the hole feature semantic objects, so that different categories of hole feature semantic objects can be distinguished from each other under monochrome or limited color display conditions. The layer drawing module is used to process the canvas path or graphic object according to a preset layer order to generate monochrome static hole map data that expresses the stable hole terrain structure and is suitable for display on the monochrome or limited color augmented reality display terminal. The output module is used to output the monochrome static hole map data to the monochrome or limited color augmented reality display terminal; The map reconstruction terminal is used to perform semantic parsing of ground features, determination of latitude and longitude range of single holes, coordinate mapping, configuration of visual parameters, and generation of monochrome static hole map data on the vector map data; the monochrome or limited color augmented reality display terminal is used to receive and display the monochrome static hole map data generated by the map reconstruction terminal.
14. The map reconstruction system according to claim 13, characterized in that, The map reconstruction terminal also includes a dynamic overlay field generation module, which is used to generate drawing fields for at least one of the following dynamic overlay elements: obstacle distance text, user location point, hole number, head-up display field, flagpole position displayed on the green stage, and over-boundary direction prompt. The output module is also used to output the drawing fields of the dynamic overlay elements to the monochrome or limited color augmented reality display terminal; The monochrome or limited color augmented reality display terminal is also used to draw the dynamic overlay elements based on the text fields, coordinate fields, or graphic fields sent by the map reconstruction terminal.
15. The map reconstruction system according to claim 13, characterized in that, The map reconstruction terminal also includes a cache verification module, which uses the course identifier, hole identifier and version identifier as cache indexes for the monochrome static hole map data to the monochrome or limited color augmented reality display terminal, and verifies the integrity of the monochrome static hole map data in combination with the verification value. The monochrome or limited color augmented reality display terminal is also used to write or overwrite the corresponding cache after receiving complete monochrome static hole map data and verifying it, and return a full map confirmation message to the map reconstruction terminal; when the verification fails, the version is inconsistent, or the monochrome static hole map data is invalid, it initiates a new request to the map reconstruction terminal so that the map reconstruction terminal can re-provide the monochrome static hole map data of the target golf hole.
