Map construction method, device, computer equipment and storage medium

By automatically adding scene elements by using map attribute feature screening conditions and scene element distribution characteristics in large-world games and metaverse scenarios, the problem of low efficiency in building large-world maps is solved, and fast and efficient map construction is achieved.

CN114090715BActive Publication Date: 2025-10-14BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111408543.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2025-10-14
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

When building large-world maps in large-world games and metaverse scenarios, existing technologies require a lot of manpower and time costs, resulting in low construction efficiency.

Method used

By obtaining the attribute feature screening conditions of the initial map, the target area is determined, and the scene elements that meet the conditions are automatically added according to the distribution characteristics of the scene elements, the area range is optimized, and the construction efficiency is improved.

Benefits of technology

It has achieved the rapid construction of a realistic large world map while ensuring map quality, improving construction efficiency and reducing manpower and time costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114090715B_ABST
    Figure CN114090715B_ABST
Patent Text Reader

Abstract

The present disclosure provides a map construction method and device, computer equipment and a storage medium, wherein the method comprises: obtaining an initial map and at least one set of screening conditions corresponding to the initial map; wherein each set of screening conditions comprises at least one screening condition, and each screening condition corresponds to a property feature of a map element in the initial map; for each set of screening conditions in the at least one set of screening conditions, determining a target region to be edited that meets the set of screening conditions; for each determined target region, adding a target scene element meeting a scene element distribution feature in the target region according to the scene element distribution feature corresponding to the target region, to construct a scene map corresponding to the initial map.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, in particular, to a map construction method and device, computer equipment and storage medium. BACKGROUND

[0002] In the scenarios of big world games, metaverse, etc., when constructing a big world map, in order to make the constructed big world map more realistic and bring immersive experience to users, an art development personnel usually needs to set objects in each scene in the map according to actual needs of each scene in the map, through a scene development tool and in combination with a manual editing manner, and set specific rendering details such as materials of each object. This process often needs to consume a large amount of human cost and time cost, and makes the construction efficiency of the big world map lower. SUMMARY

[0003] The present disclosure at least provides a map construction method, device, computer equipment and storage medium.

[0004] In a first aspect, the present disclosure provides a map construction method, comprising:

[0005] obtaining an initial map and at least one set of filtering conditions corresponding to the initial map, wherein each set of filtering conditions comprises at least one filtering condition, and each filtering condition corresponds to an attribute feature of a map element in the initial map;

[0006] for each set of filtering conditions in the at least one set of filtering conditions, determining a target region to be edited that meets the set of filtering conditions;

[0007] for each determined target region, adding a target scene element meeting a scene element distribution feature in the target region according to the scene element distribution feature corresponding to the target region, to construct a scene map corresponding to the initial map.

[0008] In a possible implementation, the attribute feature comprises at least one of the following:

[0009] height feature, shadow feature, orientation feature, category feature, edge feature, slope feature.

[0010] In a possible implementation, after determining the target region to be edited that meets the set of filtering conditions, the method further comprises:

[0011] obtaining a region optimization strategy;

[0012] adjusting a region range of the target region based on the region optimization strategy.

[0013] In a possible implementation, the adjusting the region range of the target region based on the region optimization strategy comprises:

[0014] deleting the target region with an area less than a region minimum area threshold included in the region optimization strategy; and / or,

[0015] adjusting a non-target region included in the maximum region range corresponding to the target region to a target region.

[0016] In a possible implementation, the adding, for each of the determined target regions, a target scene element conforming to the scene element distribution feature in the target region according to the scene element distribution feature corresponding to the target region comprises:

[0017] determining a type of the to-be-screened scene element corresponding to the region type of the target region, and adding the to-be-screened scene element in the target region randomly according to the type of the to-be-screened scene element;

[0018] screening the to-be-screened scene element in the target region based on the scene element distribution feature, to determine a target scene element conforming to the scene element distribution feature from the to-be-screened scene element.

[0019] In a possible implementation, the scene element distribution feature comprises a same scene element distribution feature and / or different scene element distribution features.

[0020] In a possible implementation, the screening the to-be-screened scene element in the target region based on the scene element distribution feature comprises:

[0021] screening, for at least two to-be-screened scene elements in the target region, the at least two to-be-screened scene elements based on attribute information of the at least two to-be-screened scene elements and the scene element distribution feature.

[0022] In a second aspect, the present disclosure also provides a map construction apparatus, comprising:

[0023] an acquisition module configured to acquire an initial map and at least one set of screening conditions corresponding to the initial map; wherein each set of screening conditions comprises at least one screening condition, and each screening condition corresponds to an attribute feature of a map element in the initial map;

[0024] a determination module configured to determine, for each set of screening conditions in the at least one set of screening conditions, a target region to be edited conforming to the set of screening conditions;

[0025] An adding module is configured to, for each of the determined target region, add target scene elements conforming to a scene element distribution feature corresponding to the target region in the target region according to the scene element distribution feature, to construct a scene map corresponding to the initial map.

[0026] In a possible implementation, the attribute feature includes at least one of the following:

[0027] The height feature, the shadow feature, the orientation feature, the category feature, the edge feature, and the slope feature.

[0028] In a possible implementation, after the target region to be edited conforming to the set of screening conditions is determined, the determining module is further configured to:

[0029] Obtain a region optimization strategy;

[0030] Adjust a region range of the target region based on the region optimization strategy.

[0031] In a possible implementation, when the region range of the target region is adjusted based on the region optimization strategy, the determining module is configured to:

[0032] Delete the target region with an area less than a region minimum area threshold included in the region optimization strategy; and / or,

[0033] Adjust a non-target region included in a maximum region range corresponding to the target region to be the target region.

[0034] In a possible implementation, when the adding module adds, for each of the determined target region, target scene elements conforming to a scene element distribution feature corresponding to the target region in the target region according to the scene element distribution feature, the adding module is configured to:

[0035] Determine a type of the to-be-screened scene element corresponding to a region type of the target region, and randomly add the to-be-screened scene element in the target region according to the type of the to-be-screened scene element;

[0036] Screen the to-be-screened scene element in the target region based on the scene element distribution feature, to determine the target scene element conforming to the scene element distribution feature in the to-be-screened scene element.

[0037] In a possible implementation, the scene element distribution feature includes a same-scene-element distribution feature and / or a different-scene-element distribution feature.

[0038] In a possible implementation, the adding module is configured to, when screening the to-be-screened scene elements in the target region based on the scene element distribution feature:

[0039] screen the at least two to-be-screened scene elements based on attribute information of the at least two to-be-screened scene elements and the scene element distribution feature.

[0040] In a third aspect, the present disclosure also provides a computer device, including a processor, a memory and a bus, the memory stores machine readable instructions executable by the processor, when the computer device is running, the processor and the memory communicate through the bus, and the machine readable instructions are executed by the processor to perform the steps of the first aspect or any possible implementation of the first aspect.

[0041] In a fourth aspect, the present disclosure also provides a computer readable storage medium, the computer readable storage medium stores a computer program, and the computer program is executed by the processor to perform the steps of the first aspect or any possible implementation of the first aspect.

[0042] The map construction method and device, the computer device and the storage medium provided by the present disclosure can screen the map based on the screening condition corresponding to the attribute feature of the map element, can determine the target region meeting the screening condition, and can quickly locate the target region in the map according to the development demand of the user. For each determined target region, the target scene element meeting the scene element distribution feature corresponding to the target region is added in the target region, so that the scene element can be automatically added in the target region, and the added scene element meets the scene element distribution feature, thereby the map construction can be quickly performed under the premise of ensuring the quality of the map, and the construction efficiency of the large world map is improved.

[0043] In order to make the above objectives, features and advantages of the present disclosure more apparent, clear and easy to understand, the following will specifically describe a preferred embodiment in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments. The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and, together with the specification, are used to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without inventive effort.

[0045] Figure 1 A flowchart of a map construction method provided by an embodiment of the present disclosure is shown;

[0046] Figure 2a A schematic diagram showing a target area before adjustment in the map construction method provided by an embodiment of the present disclosure is shown;

[0047] Figure 2b A schematic diagram showing an adjusted target area in the map construction method provided by an embodiment of the present disclosure is shown;

[0048] Figure 3 A flowchart showing a specific method for adding target scene elements in the map construction method provided by an embodiment of the present disclosure is shown;

[0049] Figure 4 A schematic diagram of the architecture of a map construction device provided by an embodiment of the present disclosure is shown;

[0050] Figure 5 A schematic structural diagram of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the disclosure for which protection is sought, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present disclosure.

[0052] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.

[0053] The term "and / or", merely describes an associated relationship, which means that there can be three relationships, for example, A and / or B, which can represent three cases: A exists alone, A and B exist together, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, and C, which can mean selecting any one or more elements from a set consisting of A, B, and C.

[0054] It is found through research that in the scenarios of big world games, metaverse, etc., in order to make the constructed big world map more realistic and bring immersive experience to users, an art development personnel usually needs to set objects in each scene according to actual needs in each scene in the map, through a scene development tool and in combination with a manual editing manner, and set specific rendering details such as materials of each object. This process often needs to consume a large amount of human and time costs, and the construction efficiency of the big world map is low.

[0055] Based on the above research, the present disclosure provides a map construction method, which can filter a map based on a filtering condition corresponding to an attribute feature of a map element, and can determine a target area meeting the filtering condition, so as to quickly locate a target area in the map according to a development demand of a user. For each determined target area, a target scene element meeting a scene element distribution feature corresponding to the target area is added in the target area according to the scene element distribution feature. In this way, scene elements can be automatically added in the target area, and the added scene elements all meet the scene element distribution feature, so that the map construction can be quickly performed under the premise of ensuring the quality of the map, and the construction efficiency of the big world map is improved.

[0056] To facilitate the understanding of the present embodiment, first, a map construction method disclosed by the present embodiment is introduced in detail. The execution subject of the map construction method provided by the present embodiment is generally a computer device with certain computing power, which for example includes a terminal device or a server or other processing device. The terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, etc. In some possible implementation manners, the map construction method can be realized by a processor calling computer readable instructions stored in a memory.

[0057] Referring to Figure 1 The method provided by the present embodiment includes S101-S103, wherein:

[0058] S101: Acquire an initial map and at least one set of filtering conditions corresponding to the initial map; each set of filtering conditions includes at least one filtering condition, and each filtering condition corresponds to an attribute feature of a map element in the initial map.

[0059] S102: For each set of filtering conditions in the at least one set of filtering conditions, determine a target area to be edited that meets the set of filtering conditions.

[0060] S103: For each of the determined target areas, according to the scene element distribution characteristics corresponding to the target area, target scene elements that meet the scene element distribution characteristics are added to the target area to construct a scene map corresponding to the initial map.

[0061] The following is a detailed description of the above steps.

[0062] For S101, the map elements are elements contained in the initial map, or elements constituting the initial map, such as land, rivers, etc., and the attribute features include at least one of height features, shadow features, orientation features, type features, edge features, and slope features.

[0063] Among them, the height feature is used to characterize the height of the map element, and its corresponding filtering condition can be, for example, a height higher than 100 meters, so that map elements with a height higher than 100 meters can be determined from the initial map; the shadow feature is used to characterize the shadow of the map element, and its corresponding filtering condition can be a shadow area greater than 10 square meters, so that shadow areas with a shadow area greater than 10 square meters can be determined from the initial map; the orientation feature is used to characterize the orientation of the map element, and its corresponding filtering condition can be, for example, an orientation of east with a range of 30 degrees to the left and right (i.e., 60° east of north). to 30° east by south, a total of 60°), so that map elements that meet the above-mentioned orientation angle requirements can be determined from the initial map; the type feature is used to characterize the type of the map element, such as land, river, etc.; the edge feature is used to characterize the edge of the map element, and its corresponding screening condition can be to obtain the edge of the map element of the target type from the initial map; the slope feature is used to characterize the slope of the map element, and its corresponding screening condition can be a slope of 20° to 50°, so that map elements that meet the above-mentioned slope requirements can be determined from the initial map.

[0064] In practical applications, the above filtering conditions can be arbitrarily combined by the user according to needs. Each set of combined filtering conditions can filter the area of ​​the initial map from the dimension of at least one attribute feature, thereby obtaining the target area to be edited that meets the filtering conditions.

[0065] In this way, by setting a variety of attribute features for users to freely combine and set parameters, it is possible to quickly and accurately locate the target area that meets the requirements in the initial map according to the user's development needs, thereby improving the efficiency of building the world map.

[0066] S102: For each set of filtering conditions in the at least one set of filtering conditions, determine a target area to be edited that meets the set of filtering conditions.

[0067] For example, if the development requirement is to edit a basin in the initial map, a set of filtering conditions can be obtained based on the development requirement, including: an altitude below 0 meters (i.e., below sea level) and a slope range of 0° to 10° (i.e., flat terrain with minimal undulations). The initial map can be filtered based on this set of filtering conditions to determine the basin to be edited from the initial map.

[0068] In a possible implementation, after determining the target area to be edited that meets the set of screening conditions, a region optimization strategy may be obtained; and based on the region optimization strategy, the region range of the target area may be adjusted.

[0069] Here, the regional optimization strategy includes target parameters for adjusting the regional range, such as a minimum area threshold, etc. The target parameters in the regional optimization strategy can be used to determine the region that needs to be adjusted.

[0070] Specifically, the area range of the target area can be adjusted in the following ways:

[0071] Method 1: Delete the target area whose area is smaller than the minimum area threshold of the area included in the area optimization strategy.

[0072] Here, since the target area is determined based on the screening conditions, some smaller areas may be determined from the initial map, and these areas often do not meet the actual development needs. Therefore, a minimum area threshold for the area can be set to delete the target areas that do not meet the area requirements.

[0073] For example, taking the minimum area threshold of the region as 1 square meter as an example, the target region with an area smaller than 1 square meter may be deleted.

[0074] Method 2: adjusting the non-target area included in the maximum area range corresponding to the target area to the target area.

[0075] Here, due to the uncertainty of the map elements in the initial map, when determining the target area according to the screening conditions, there may be a non-target area within the maximum area corresponding to the target area. The maximum range area corresponding to the target area represents the area with the largest area that includes the target area and is formed by the area edge of the target area. In this case, the obtained target area is discontinuous and often does not meet the actual development needs. Therefore, the non-target area included in the maximum area corresponding to the target area can be adjusted to the target area.

[0076] For example, the schematic diagram of the target area before adjustment can be as follows: Figure 2a As shown, Figure 2a In the figure, the shaded area is the target area, and the blank area is the non-target area. The adjusted target area schematic diagram can be as follows: Figure 2b As shown, after the non-target area included in the maximum area range corresponding to the target area is adjusted to the target area, the entire maximum area range corresponding to the target area is the target area.

[0077] In this way, the target area after the area range is adjusted can be made neater, so as to facilitate the subsequent addition of scene elements to the target area.

[0078] S103: For each of the determined target areas, according to the scene element distribution characteristics corresponding to the target area, target scene elements that meet the scene element distribution characteristics are added to the target area to construct a scene map corresponding to the initial map.

[0079] Here, the scene element may be a surface texture map of the target area, and the surface texture map may be rendered on the surface of the target area to better display the regional features of the target area.

[0080] For example, taking the target area as the above-mentioned basin, a surface material map corresponding to the basin can be added to the surface of the target area to make the display effect of the target area more realistic and give users an immersive world tour experience.

[0081] In addition, the scene elements can also be models of various organisms, such as prefabricated models of flowers, grass, trees, sparrows and other organisms. The prefabricated models contain rendering parameters of the scene elements. After adding any scene element to the target area, the scene element can be rendered according to the rendering parameters in the prefabricated model corresponding to the scene element; the scene element distribution characteristics can include distribution characteristics of the same type of scene elements, and / or distribution characteristics of different types of scene elements.

[0082] Exemplarily, the distribution feature of the same type of scene elements may be that the distance between the roots of tree A and tree B is greater than a first preset value, which may be the sum of half the lateral length of the crown of tree A and half the lateral length of the crown of tree B, that is, the crown of tree A and the crown of tree B in the target area do not intersect; the distribution feature of different types of scene elements may be that the distance between the roots of tree C and the roots of grass D is greater than a second preset value, which may be the radius of the roots of tree C, that is, grass D can be placed at any surface position other than the roots of tree C.

[0083] In this way, by setting the scene element distribution characteristics, it can be ensured that the distribution of each scene element in the target area conforms to the actual situation, and the constructed scene map can be more realistic.

[0084] In one possible implementation, Figure 3 As shown, you can add target scene elements by following the steps below:

[0085] S301: Determine the type of the scene elements to be screened corresponding to the area type of the target area, and randomly add the scene elements to be screened to the target area according to the type of the scene elements to be screened.

[0086] Here, the area type of the target area can be determined by the attribute characteristics corresponding to the filtering conditions. For example, according to the height characteristics, the area type of the target area can be determined as a high-altitude area, a low-altitude area, etc.; when determining the type of the scene element to be filtered corresponding to the area type of the target area, it can be determined based on the pre-set mapping relationship between the scene type and the type of the scene element to be filtered. For example, the scene element to be filtered distributed in the target area with a scene type of a high-altitude area can be an alpine plant.

[0087] Specifically, when the scene elements to be screened are randomly added to the target area according to their types, the position information of each scene element to be screened in the target area can be randomly generated, and the parameter values ​​of the rendering parameters corresponding to each scene element to be screened can be randomly generated within the preset parameter range. The number of each type of scene elements to be screened can be randomly generated within the preset parameter range, or can be set by the user. For example, the user can set it to randomly generate 5 trees and 10 grasses in the target area.

[0088] S302: Screening the scene elements to be screened in the target area based on the scene element distribution characteristics, and determining target scene elements that meet the scene element distribution characteristics among the scene elements to be screened.

[0089] In one possible implementation, when screening the scene elements to be screened, the at least two scene elements to be screened in the target area can be screened based on the attribute information of the at least two scene elements to be screened and the distribution characteristics of the scene elements.

[0090] Here, the attribute information of the scene element can be represented by the rendering parameters. For example, if the tree height in the rendering parameters is 5 meters, it can be represented that the tree height in the attribute information of tree A is 5 meters. When screening the at least two scene elements to be screened, if the at least two scene elements to be screened are the same type of scene elements, the screening conditions corresponding to the distribution characteristics of the same type of scene elements can be used to screen the at least two scene elements to be screened; if the at least two scene elements to be screened are different types of scene elements, the screening conditions corresponding to the distribution characteristics of the different types of scene elements can be used to screen the at least two scene elements to be screened; and if there are both scene elements of the same type and scene elements of different types in the at least two scene elements to be screened, the screening conditions corresponding to the distribution characteristics of the different types of scene elements can be used to screen the different types of scene elements in the at least two scene elements to be screened, and the screening conditions corresponding to the distribution characteristics of the same type of scene elements can be used to screen the same type of scene elements in the at least two scene elements to be screened.

[0091] For example, taking the scene elements to be filtered as tree A, tree B, tree C, and grass A as an example, it can be judged whether tree A and tree B, tree A and tree C, and tree B and tree C meet the filtering conditions corresponding to the distribution characteristics of the same scene elements, and it can be judged whether tree A and grass A, tree B and grass A, and tree C and grass A meet the filtering conditions corresponding to the distribution characteristics of different scene elements.

[0092] Specifically, when it is determined that the attribute information corresponding to the at least two scene elements to be filtered does not meet the filtering conditions corresponding to the scene element distribution characteristics, any one of the at least two scene elements to be filtered can be deleted; or, based on the preset correspondence between the importance of each scene element, the scene element to be filtered with the lowest importance among the at least two scene elements to be filtered can be deleted. For example, if the importance of trees is high, the importance of shrubs is medium, and the importance of grass is low, then the grass with low importance among the at least two scene elements to be filtered can be deleted first; or, based on the scene element distribution characteristics, the attribute information of the scene elements to be filtered can be adjusted so that the at least two scene elements to be filtered meet the scene element distribution characteristics.

[0093] It should be noted that after the above-mentioned deletion of the scene elements to be screened (or adjustment of the attribute information of the scene elements to be screened), if the scene elements to be screened in the target area after the deletion of the scene elements to be screened (or adjustment of the attribute information of the scene elements to be screened) still do not meet the scene element distribution characteristics, the above-mentioned process (deleting the scene elements to be screened, and / or adjusting the attribute information of the scene elements to be screened) can be continued until the scene elements to be screened in the target area meet the scene element distribution characteristics.

[0094] The map construction method provided by the embodiment of the present disclosure can filter the map based on the filtering conditions corresponding to the attribute characteristics of the map elements, and can determine the target area that meets the filtering conditions, so that the target area in the map can be quickly located according to the development needs of the user; for each of the determined target areas, according to the scene element distribution characteristics corresponding to the target area, the target scene elements that meet the scene element distribution characteristics are added to the target area. In this way, scene elements can be automatically added to the target area, and the added scene elements all meet the scene element distribution characteristics. Therefore, the map can be quickly constructed while ensuring the quality of the map, thereby improving the construction efficiency of the world map.

[0095] Those skilled in the art will understand that in the above-mentioned method of the specific implementation method, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0096] Based on the same inventive concept, the embodiment of the present disclosure also provides a map construction device corresponding to the map construction method. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned map construction method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0097] Reference Figure 4 FIG. 4 is a schematic diagram of the architecture of a map construction device provided by an embodiment of the present disclosure, wherein the device includes: an acquisition module 401, a determination module 402, and an addition module 403; wherein,

[0098] The acquisition module 401 is configured to acquire an initial map and at least one set of filtering conditions corresponding to the initial map; each set of filtering conditions includes at least one filtering condition, and each filtering condition corresponds to an attribute feature of a map element in the initial map;

[0099] A determination module 402 is configured to determine, for each set of filtering conditions in the at least one set of filtering conditions, a target area to be edited that meets the set of filtering conditions;

[0100] The adding module 403 is used to add target scene elements that meet the scene element distribution characteristics in each determined target area according to the scene element distribution characteristics corresponding to the target area, so as to construct a scene map corresponding to the initial map.

[0101] In one possible implementation, the attribute characteristics include at least one of the following:

[0102] Height features, shadow features, orientation features, type features, edge features, and slope features.

[0103] In a possible implementation, after determining the target area to be edited that meets the set of screening conditions, the determination module 402 is further configured to:

[0104] Obtain regional optimization strategies;

[0105] Based on the regional optimization strategy, the regional scope of the target region is adjusted.

[0106] In a possible implementation, when adjusting the area range of the target area based on the area optimization strategy, the determining module 402 is configured to:

[0107] Deleting target areas whose areas are smaller than the minimum area threshold of the areas included in the area optimization strategy; and / or,

[0108] The non-target area included in the maximum area range corresponding to the target area is adjusted to the target area.

[0109] In one possible implementation, the adding module 403, when adding target scene elements that meet the scene element distribution characteristics corresponding to each determined target area in accordance with the scene element distribution characteristics corresponding to the target area, is configured to:

[0110] Determining the type of the scene elements to be screened corresponding to the area type of the target area, and randomly adding the scene elements to be screened to the target area according to the type of the scene elements to be screened;

[0111] Based on the scene element distribution characteristics, the scene elements to be screened in the target area are screened, and target scene elements that meet the scene element distribution characteristics are determined among the scene elements to be screened.

[0112] In a possible implementation, the scene element distribution features include distribution features of the same type of scene elements and / or distribution features of different types of scene elements.

[0113] In a possible implementation, the adding module 403, when screening the scene elements to be screened in the target area based on the scene element distribution characteristics, is configured to:

[0114] For the at least two scene elements to be screened in the target area, the at least two scene elements to be screened are screened based on the attribute information of the at least two scene elements to be screened and the scene element distribution characteristics.

[0115] The map construction device provided by the embodiment of the present disclosure can filter the map based on the filtering conditions corresponding to the attribute characteristics of the map elements, and can determine the target area that meets the filtering conditions, so that the target area in the map can be quickly located according to the development needs of the user; for each of the determined target areas, according to the scene element distribution characteristics corresponding to the target area, the target scene elements that meet the scene element distribution characteristics are added to the target area. In this way, scene elements can be automatically added to the target area, and the added scene elements all meet the scene element distribution characteristics. Therefore, the map can be quickly constructed while ensuring the quality of the map, thereby improving the construction efficiency of the world map.

[0116] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference can be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0117] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 5 FIG. 5 is a schematic diagram of the structure of a computer device 500 provided in an embodiment of the present disclosure, comprising a processor 501, a memory 502, and a bus 503. The memory 502 is used to store execution instructions and includes a memory 5021 and an external memory 5022. The memory 5021 is also referred to as internal memory and is used to temporarily store operation data in the processor 501 and data exchanged with an external memory 5022 such as a hard disk. The processor 501 exchanges data with the external memory 5022 via the memory 5021. When the computer device 500 is running, the processor 501 communicates with the memory 502 via the bus 503, so that the processor 501 executes the following instructions:

[0118] Obtaining an initial map and at least one set of filtering conditions corresponding to the initial map; wherein each set of filtering conditions includes at least one filtering condition, and each filtering condition corresponds to an attribute feature of a map element in the initial map;

[0119] For each set of screening conditions in the at least one set of screening conditions, determining a target area to be edited that meets the set of screening conditions;

[0120] For each of the determined target region, according to the scene element distribution feature corresponding to the target region, a target scene element conforming to the scene element distribution feature is added in the target region to construct a scene map corresponding to the initial map.

[0121] In a possible implementation, the attribute feature includes at least one of the following in the instructions of the processor 501:

[0122] a height feature, a shadow feature, an orientation feature, a category feature, an edge feature, and a slope feature.

[0123] In a possible implementation, the instructions of the processor 501 further include, after determining the target region to be edited that conforms to the set of screening conditions:

[0124] obtaining a region optimization strategy;

[0125] adjusting a region range of the target region based on the region optimization strategy.

[0126] In a possible implementation, the instructions of the processor 501 include that adjusting the region range of the target region based on the region optimization strategy includes:

[0127] deleting a target region with an area less than a region minimum area threshold included in the region optimization strategy; and / or,

[0128] adjusting a non-target region included in a maximum region range corresponding to the target region to a target region.

[0129] In a possible implementation, the instructions of the processor 501 include that, for each of the determined target region, adding a target scene element conforming to the scene element distribution feature in the target region according to the scene element distribution feature corresponding to the target region includes:

[0130] determining a type of the to-be-screened scene element corresponding to the region type of the target region, and randomly adding the to-be-screened scene element in the target region according to the type of the to-be-screened scene element;

[0131] screening the to-be-screened scene element in the target region based on the scene element distribution feature to determine a target scene element conforming to the scene element distribution feature in the to-be-screened scene element.

[0132] In a possible implementation, the instructions of the processor 501 include that the scene element distribution feature includes a same-scene-element distribution feature and / or a different-scene-element distribution feature.

[0133] In a possible implementation, the instructions of the processor 501, the screening of the to-be-screened scene elements in the target region based on the scene element distribution feature includes:

[0134] For at least two to-be-screened scene elements in the target region, the at least two to-be-screened scene elements are screened based on attribute information of the at least two to-be-screened scene elements and the scene element distribution feature.

[0135] The embodiments of the present disclosure further provide a computer-readable storage medium, which stores a computer program. When the computer program is run by a processor, the steps of the map construction method described in the above method embodiments are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0136] The embodiments of the present disclosure further provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the map construction method described in the above method embodiments. For details, refer to the above method embodiments, which will not be described here.

[0137] The computer program product can be specifically implemented by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is specifically embodied as a computer storage medium. In another optional embodiment, the computer program product is specifically embodied as a software product, such as a software development kit (SDK) and the like.

[0138] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system and device can refer to the corresponding process in the foregoing method embodiments, which will not be described here. In several embodiments provided by the present disclosure, it should be understood that the disclosed system, device and method can be implemented by other means. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division, and actual implementation can have another division manner. For example, a plurality of units or components can be combined or integrated into another system, or some features can be omitted or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some communication interface, device or unit, which can be electrical, mechanical or other forms.

[0139] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e. may be located in one place, or may be distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0140] In addition, each functional unit in various embodiments of the present disclosure can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.

[0141] If the functions are realized in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solutions of the present disclosure essentially or the part of the prior art or the part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for making a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure. The foregoing storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and various program code storage media.

[0142] Finally, it should be noted that: the above-described embodiments are only specific embodiments of the present disclosure, used to illustrate the technical solutions of the present disclosure, rather than limit them, the protection scope of the present disclosure is not limited thereto, although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand: any skilled person in the art within the technical range disclosed by the present disclosure, they can still modify or easily think of changes to the technical solutions recorded in the foregoing embodiments, or make equivalent replacement to part of the technical features; and these modifications, changes or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and all should be covered in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims

1. A map construction method, characterized in that: include: Obtaining an initial map and at least one set of filtering conditions corresponding to the initial map; Each set of screening conditions includes at least one screening condition, and each of the screening conditions corresponds to an attribute feature of a map element in the initial map; For each set of screening conditions in the at least one set of screening conditions, determining a target area to be edited that meets the set of screening conditions; For each of the determined target areas, according to the scene element distribution characteristics corresponding to the target area, target scene elements that meet the scene element distribution characteristics are added in the target area to construct a scene map corresponding to the initial map; After determining the target area to be edited that meets the set of screening conditions, the method further includes: Obtain regional optimization strategies; Based on the regional optimization strategy, adjusting the regional scope of the target area; The adjusting of the area range of the target area based on the area optimization strategy includes: Deleting target areas whose areas are smaller than the minimum area threshold of the areas included in the area optimization strategy; and / or, The non-target area included in the maximum area range corresponding to the target area is adjusted to the target area.

2. The method according to claim 1, characterized in that The attribute characteristics include at least one of the following: Height features, shadow features, orientation features, type features, edge features, and slope features.

3. The method according to claim 1 or 2, characterized in that The step of adding, for each of the determined target areas, target scene elements that meet the scene element distribution characteristics corresponding to the target area, in the target area includes: Determining the type of the scene elements to be screened corresponding to the area type of the target area, and randomly adding the scene elements to be screened to the target area according to the type of the scene elements to be screened; Based on the scene element distribution characteristics, the scene elements to be screened in the target area are screened, and target scene elements that meet the scene element distribution characteristics are determined among the scene elements to be screened.

4. The method according to claim 3, characterized in that The scene element distribution features include the distribution features of the same type of scene elements and / or the distribution features of different types of scene elements.

5. The method according to claim 3, characterized in that The screening of the scene elements to be screened in the target area based on the scene element distribution characteristics includes: For the at least two scene elements to be screened in the target area, the at least two scene elements to be screened are screened based on the attribute information of the at least two scene elements to be screened and the scene element distribution characteristics.

6. A map construction device, characterized in that: include: An acquisition module, configured to acquire an initial map and at least one set of screening conditions corresponding to the initial map; Each set of screening conditions includes at least one screening condition, and each of the screening conditions corresponds to an attribute feature of a map element in the initial map; a determination module, configured to determine, for each set of screening conditions in the at least one set of screening conditions, a target area to be edited that meets the set of screening conditions; an adding module for adding target scene elements that meet the scene element distribution characteristics in each determined target area according to the scene element distribution characteristics corresponding to the target area, so as to construct a scene map corresponding to the initial map; The determining module is further configured to obtain a regional optimization strategy, and adjust the regional scope of the target region based on the regional optimization strategy; The determination module is further configured to delete a target area whose area is smaller than a minimum area threshold included in the area optimization strategy, and / or adjust a non-target area included in the maximum area range corresponding to the target area to a target area.

7. A computer device, characterized in that: include: A processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the memory communicate via the bus. When the machine-readable instructions are executed by the processor, the steps of the map construction method according to any one of claims 1 to 5 are performed.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the map construction method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Map data processing method, device and equipment and storage medium

    CN111708858A

  • Map display device

    JP2007322370A