Map collection method and device

By extracting and setting linear and surface contours of small area maps, combined with semantic segmentation and neural network models, the problem of low efficiency in small area map collection in the existing technology is solved, and efficient and low-cost map data collection is achieved.

CN112862917BActive Publication Date: 2024-10-29XIAN NAVINFO INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201911187323.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-28
Publication Date
2024-10-29
Estimated Expiration
2039-11-28

AI Technical Summary

Technical Problem

The existing technology is inefficient and costly in small area map data collection, and cannot achieve detailed geographical information collection.

Method used

By obtaining the original image of the target area, extracting linear contours and surface contours, and setting the attribute information of the vectorized electronic map, using the color difference value of the pixel point and the preset range to determine the contour, combining semantic segmentation and neural network models to improve acquisition efficiency.

Benefits of technology

It achieves efficient collection of small area maps, improves the accuracy and collection efficiency of map data, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112862917B_ABST
    Figure CN112862917B_ABST
Patent Text Reader

Abstract

The present application provides a map acquisition method and device, which obtains an original image of a target area; and obtains a vectorized electronic map of the target area based on the original image, the vectorized electronic map including the linear contour and / or the surface contour of the original image; and then sets the attribute information of the vectorized electronic map based on the linear contour and / or the surface contour. Since the vectorized electronic map of the target area is obtained based on the original image of the target area, the vectorized electronic map includes the linear contour and / or the surface contour of the original image, and then the attribute information of the vectorized electronic map is set for the linear contour and / or the surface contour of the original image, the map acquisition of the target area is realized, and the efficiency of map acquisition of the target area is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of map acquisition technology, and in particular to a map acquisition method and device. Background Art

[0002] With the rapid development of information technology and surveying and mapping technology, two-dimensional vector map data has become an essential resource for geographic information systems, intelligent transportation systems, digital cities, and digital national defense construction. The geographic information described by two-dimensional vector map data is detailed and accurate, and has great economic value and strategic significance. The current map system mainly collects data for large areas, such as the national road network and point of interest (POI) information. However, for small areas, such as parks, shopping malls, campuses, and office buildings, the collection vehicles cannot enter and detailed collection cannot be achieved. Therefore, while providing geographic information services, how to ensure the integrity of vector map data is an urgent problem that needs to be solved.

[0003] In the prior art, for map data collection of small areas, drawing software such as MapInfo and AutoCAD are usually used for on-site manual drawing, such as paper drawing or electronic drawing, and then the map information of the small area is obtained through post-processing with software.

[0004] However, the map data collection method in the prior art is costly and inefficient. Summary of the invention

[0005] The present application provides a map collection method and device to realize map collection in a target area, thereby improving the map collection efficiency of the target area.

[0006] In a first aspect, an embodiment of the present application provides a map collection method, including:

[0007] Obtain the original image of the target area;

[0008] According to the original image, a vectorized electronic map of the target area is obtained, wherein the vectorized electronic map includes a linear outline and / or a surface outline of the original image;

[0009] According to the linear outline and / or the surface outline, the attribute information of the vectorized electronic map is set.

[0010] In an embodiment of the present application, a vectorized electronic map of the target area is obtained based on an original image of the target area, the vectorized electronic map including the linear contour and / or surface contour of the original image, and then attribute information of the vectorized electronic map is set for the linear contour and / or surface contour of the original image, thereby realizing map collection of the target area and improving the map collection efficiency of the target area.

[0011] In one achievable manner, obtaining a vectorized electronic map of a target area according to an original image includes:

[0012] According to the pixel points of the original image, the linear contour in the original image is extracted;

[0013] and / or,

[0014] According to the pixels of the original image, the surface contour of the original image is extracted.

[0015] In the embodiments of the present application, the vectorized electronic map of the target area is determined by extracting the linear contours and / or surface contours of the original image, and the linear contours and / or surface contours of the original image are extracted through the pixel points of the original image, which can improve the accuracy of the linear contours and / or surface contours in the original image.

[0016] In a possible implementation, the linear contour includes a plurality of linear sub-contours, and extracting the linear contour in the original image according to the pixel points of the original image includes:

[0017] S1: determining original color points of multiple colors in the pixel points of the original image, wherein a first color difference value between the original color point of each color and a standard sample color value of the color is within a first preset range, and taking the original color point of the same color as a first target pixel point;

[0018] S2: Determine a plurality of first pixel points that are separated from the first target pixel point by M pixels, where M is an integer greater than or equal to zero;

[0019] S3: Determine a second color difference value corresponding to each first pixel, where the second color difference value is a color difference value between the first pixel and the first target pixel, and use the first target pixel as the second pixel;

[0020] S4: determining at least one first target pixel point from the plurality of first pixel points, the second color difference value of the first target pixel point being within a second preset range, and repeatedly performing steps S2-S4 until the number of the first target pixel points is at least three, and at least three first target pixel points are not on the same straight line;

[0021] S5: Connect multiple second pixel points to generate a linear sub-contour of the original image.

[0022] In a possible implementation, the surface contour includes a plurality of surface sub-contours, and extracting the surface contour of the original image according to the pixel points of the original image includes:

[0023] R1: determining original color points of multiple colors in the original image, wherein a first color difference value between the original color point of each color and a standard sample color value of the color is within a first preset range, and taking any original color point of each color as a second target pixel point;

[0024] R2: Taking the second target pixel as the center, determine a plurality of third pixel points that are N pixel points away from the second target pixel point, where N is an integer greater than or equal to zero;

[0025] R3: Determine a third color difference value corresponding to each third pixel point, where the third color difference value is a color difference value between the third pixel point and the second target pixel point;

[0026] R4: If the third color difference values ​​corresponding to each third pixel point are all within the third preset range, set N=N+1, and repeat steps R2-R4. If there is a third color difference value that is not within the third preset range, and there is a third color difference value that is within the third preset range, the second target pixel point is used as the fourth pixel point, and step R5 is executed. If all third color difference values ​​are not within the third preset range, step R6 is executed.

[0027] R5: Determine, among the plurality of third pixel points, a pixel point whose third color difference value is within a third preset range as a second target pixel point, and repeat steps R2-R5;

[0028] R6: Connect third pixel points whose third color difference values ​​are within a third preset range among a plurality of third pixel points to generate a planar sub-contour of the original image.

[0029] Optionally, the map collection method provided in the embodiment of the present application further includes:

[0030] The pixels in each surface sub-contour are set to the same color to obtain multiple color regions.

[0031] Optionally, the map collection method provided in the embodiment of the present application further includes:

[0032] The intersection lines between different color regions are determined as linear sub-contours.

[0033] Optionally, a vectorized electronic map of the target area is obtained based on the original image, including:

[0034] Perform semantic segmentation in the layer of the original image to obtain a semantic segmentation map of the original image;

[0035] Delete the color of each segmented area in the semantic segmentation map to get the linear outline of the original image.

[0036] In the embodiment of the present application, the linear contour of the original image can be determined by performing semantic segmentation in the layer of the original image, thereby improving the efficiency of determining the linear contour of the original image.

[0037] Optionally, a vectorized electronic map of the target area is obtained based on the original image, including:

[0038] The original image is input into the neural network model to obtain a vectorized electronic map of the target area.

[0039] In the embodiment of the present application, the original image is input into the neural network model and processed by the neural network model to obtain a vectorized electronic map of the target area, thereby improving the efficiency of determining the vectorized electronic map.

[0040] Optionally, the attribute information of the vectorized electronic map includes at least one of the following attribute information of the linear contour and / or the surface contour:

[0041] Identification, name, type, level, longitude and latitude, and collection time.

[0042] The following introduces the device, electronic device, computer-readable storage medium and computer program product provided in the embodiments of the present application. Their contents and effects can refer to the map collection method provided in the embodiments of the present application and will not be repeated here.

[0043] In a second aspect, an embodiment of the present application provides a map collection device, including:

[0044] An acquisition module, used for acquiring an original image of a target area;

[0045] A processing module, used to obtain a vectorized electronic map of the target area according to the original image, wherein the vectorized electronic map includes a linear outline and / or a surface outline of the original image;

[0046] The setting module is used to set the attribute information of the vectorized electronic map according to the linear outline and / or the surface outline.

[0047] In a possible implementation, the processing module includes:

[0048] The first processing submodule is used to extract the linear contour in the original image according to the pixel points of the original image;

[0049] and / or,

[0050] The second processing submodule is used to extract the surface contour of the original image according to the pixel points of the original image.

[0051] In a possible implementation manner, the linear contour includes a plurality of linear sub-contours, and the first processing submodule is specifically configured to:

[0052] S1: determining original color points of multiple colors in the pixel points of the original image, wherein a first color difference value between the original color point of each color and a standard sample color value of the color is within a first preset range, and taking the original color point of the same color as a first target pixel point;

[0053] S2: Determine a plurality of first pixel points that are separated from the first target pixel point by M pixels, where M is an integer greater than or equal to zero;

[0054] S3: Determine a second color difference value corresponding to each first pixel, where the second color difference value is a color difference value between the first pixel and the first target pixel, and use the first target pixel as the second pixel;

[0055] S4: determining at least one first target pixel point from the plurality of first pixel points, the second color difference value of the first target pixel point being within a second preset range, and repeatedly performing steps S2-S4 until the number of the first target pixel points is at least three, and at least three first target pixel points are not on the same straight line;

[0056] S5: Connect multiple second pixel points to generate a linear sub-contour of the original image.

[0057] In a possible implementation manner, the surface profile includes a plurality of surface sub-profiles, and the second processing submodule is specifically configured to:

[0058] R1: determining original color points of multiple colors in the original image, wherein a first color difference value between the original color point of each color and a standard sample color value of the color is within a first preset range, and taking any original color point of each color as a second target pixel point;

[0059] R2: Taking the second target pixel as the center, determine a plurality of third pixel points that are N pixel points away from the second target pixel point, where N is an integer greater than or equal to zero;

[0060] R3: Determine a third color difference value corresponding to each third pixel point, where the third color difference value is a color difference value between the third pixel point and the second target pixel point;

[0061] R4: If the third color difference values ​​corresponding to each third pixel point are all within the third preset range, set N=N+1, and repeat steps R2-R4. If there is a third color difference value that is not within the third preset range, and there is a third color difference value that is within the third preset range, the second target pixel point is used as the fourth pixel point, and step R5 is executed. If all third color difference values ​​are not within the third preset range, step R6 is executed.

[0062] R5: Determine, among the plurality of third pixel points, a pixel point whose third color difference value is within a third preset range as a second target pixel point, and repeat steps R2-R5;

[0063] R6: Connect third pixel points whose third color difference values ​​are within a third preset range among a plurality of third pixel points to generate a planar sub-contour of the original image.

[0064] In a possible implementation, the setting module is further used for:

[0065] The pixels in each surface sub-contour are set to the same color to obtain multiple color regions.

[0066] Optionally, the map collection device provided in the embodiment of the present application further includes:

[0067] The determination module is used to determine that the intersection line between different color areas is a linear sub-contour.

[0068] Optional, processing module, including:

[0069] The segmentation submodule is used to perform semantic segmentation in the layer of the original image to obtain a semantic segmentation map of the original image;

[0070] The deletion submodule is also used to delete the color of each segmented area in the semantic segmentation map to obtain the linear outline of the original image.

[0071] Optional, processing module, specifically used for:

[0072] The original image is input into the neural network model to obtain a vectorized electronic map of the target area.

[0073] Optionally, the attribute information of the vectorized electronic map includes at least one of the following attribute information of the linear contour and / or the surface contour:

[0074] Identification, name, type, level, longitude and latitude, and collection time.

[0075] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0076] at least one processor; and

[0077] a memory communicatively coupled to at least one processor; wherein

[0078] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method provided in the first aspect or in an implementable manner of the first aspect.

[0079] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to cause a computer to execute the method provided in the first aspect or in an implementable manner of the first aspect.

[0080] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising: executable instructions, wherein the executable instructions are used to implement the method provided in the first aspect or in an optional manner of the first aspect.

[0081] The map collection method and device provided by the present application obtain an original image of a target area; and based on the original image, obtain a vectorized electronic map of the target area, the vectorized electronic map includes the linear contour and / or the surface contour of the original image; and then set the attribute information of the vectorized electronic map based on the linear contour and / or the surface contour. Since the vectorized electronic map of the target area is obtained based on the original image of the target area, the vectorized electronic map includes the linear contour and / or the surface contour of the original image, and then the attribute information of the vectorized electronic map is set for the linear contour and / or the surface contour of the original image, the map collection of the target area is realized, and the efficiency of map collection of the target area is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0083] Figure 1 is an exemplary application scenario diagram provided by an embodiment of the present application;

[0084] Figure 2 It is a flowchart of a map collection method provided by an embodiment of the present application;

[0085] Figure 3 is a flowchart of a map collection method provided by another embodiment of the present application;

[0086] Figure 4 is a schematic diagram of an original image provided by an embodiment of the present application;

[0087] Figure 5 This is a flowchart of a map collection method provided by another embodiment of the present application.

[0088] Figure 6 is a schematic diagram of an original image provided by another embodiment of the present application;

[0089] Figure 7 is a schematic diagram of an original image provided in an embodiment of the present application;

[0090] Figure 8 It is a vectorized electronic map provided by the embodiment of the present application;

[0091] Fig. 9 is a structural schematic diagram of a map collection device provided in an embodiment of the present application;

[0092] Fig.10 is a structural schematic diagram of a map collection device provided by another embodiment of the present application;

[0093] Fig.11 is a structural schematic diagram of a map collection device provided by another embodiment of the present application;

[0094] Fig.12 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0095] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0096] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0097] With the rapid development of information technology and surveying and mapping technology, two-dimensional vector map data has become an essential guarantee resource for geographic information systems, intelligent transportation systems, digital cities, and digital national defense construction. The current map system mainly collects data for large areas, such as national road networks and POI information, but for small areas, such as inside parks, shopping malls, campuses, and office buildings, the collection vehicles cannot enter and detailed collection cannot be achieved. In the prior art, for map data collection in small areas, MapInfo, AutoCAD and other drawing software are usually used for on-site manual drawing, such as through paper drawing or electronic drawing, and then after post-processing by software, the map information in the small area is obtained, but the efficiency of map collection is low. In order to solve the above technical problems, the embodiment of the present application provides a map collection method and device.

[0098] The following is an introduction to exemplary application scenarios of the embodiments of the present application.

[0099] The map collection method provided in the embodiment of the present application can be executed by the map collection device provided in the embodiment of the present application. The map collection device provided in the embodiment of the present application can be part or all of the terminal device. Figure 1 is an exemplary application scenario diagram provided by an embodiment of the present application, such as Figure 1 As shown, the map collection method provided in the embodiment of the present application can be applied to the terminal device 11, for example, it can be implemented through an application or web page in the terminal device, and the terminal device 11 and the server 12 have data communication, which is not limited in the embodiment of the present application. The embodiment of the present application does not limit the specific type of the terminal device, for example, the terminal device can be a smart phone, a personal computer, a tablet computer, a wearable device, a vehicle terminal, etc.

[0100] Figure 2 is a flowchart of a map collection method provided by an embodiment of the present application. The method can be executed by a map collection device, and the device can be implemented by software and / or hardware. For example, the device can be a client or a terminal device, and the terminal device can be a personal computer, a smart phone, a user terminal, a tablet computer, a wearable device, etc. The map collection method is described below with the terminal device as the execution subject. Figure 2 As shown, the map collection method provided in the embodiment of the present application may include:

[0101] Step S101: Acquire an original image of a target area.

[0102] The target area may be a small area. For a small area that a map collection vehicle cannot enter or is inconvenient to enter, the map collection method provided in the embodiment of the present application may be used to collect maps of the small area. The embodiment of the present application does not limit the target area. For example, the target area may be a small area such as an internal area of ​​a park, an internal area of ​​a shopping mall, an internal area of ​​a campus, an internal area of ​​an office building, a community, a scenic spot, a commercial area, a transportation hub, etc. The embodiment of the present application is not limited thereto.

[0103] The original image of the target area can be a navigation map of the target area, for example, a scenic area navigation map, a campus navigation map, a park navigation map, etc., or a design and construction model map, a promotional picture, etc. of the target area. The embodiment of the present application does not limit the specific type of the original image. In addition, the original image can be multiple images or one image. The embodiment of the present application does not limit the number of original images. For example, the original image can be one or more images that respectively contain the overall structure of the target area, or multiple images that respectively contain partial structures of the target area. The embodiment of the present application does not limit this.

[0104] The original image of the target area can be obtained through paper images such as those on websites, government-disclosed or registered designs and display drawings, image photography, the official website of the target area, public promotional images, newspapers, periodicals, etc. The embodiment of the present application does not limit the method for obtaining the original image of the target image.

[0105] Step S102: obtaining a vectorized electronic map of the target area according to the original image, wherein the vectorized electronic map includes the linear contour and / or the surface contour of the original image.

[0106] When processing the original image, it can be imported into the system in a single or batch manner. The system numbers the original images. The embodiment of the present application does not limit the numbering method of the original image. For example, the numbering method can be: NI + year, month, day + time + 3-digit sequence number, for example: NI20190306135943001. The embodiment of the present application is not limited to this. The format of the original image may include mainstream image formats such as jpeg, jpg, and png. The original images obtained through the Internet, government agencies, etc. can be uniformly placed in the folder of the terminal device, and the import path selected in the system can be used to realize the import; for pictures obtained by taking pictures directly using the terminal device, they can be used directly.

[0107] The embodiment of the present application does not limit the specific implementation method of obtaining the vectorized electronic map of the target area according to the original image, wherein the vectorized electronic map includes the linear contour and / or surface contour of the original image.

[0108] In a possible implementation, obtaining a vectorized electronic map of a target area based on an original image includes: extracting linear contours in the original image based on pixels of the original image; and / or extracting surface contours of the original image based on pixels of the original image.

[0109] The pixel values ​​of objects, buildings, paths, etc. in the target area may be different in the original image, and the pixel values ​​of the same type of areas may be the same. Therefore, the linear contour or the surface contour in the original image can be extracted according to the pixel values ​​of the pixel points of the original image. The embodiment of the present application does not limit the specific implementation method of how to extract the linear contour and / or the surface contour in the original image according to the pixel points of the original image.

[0110] In the embodiments of the present application, the vectorized electronic map of the target area is determined by extracting the linear contours and / or surface contours of the original image, and the linear contours and / or surface contours of the original image are extracted through the pixel points of the original image, which can improve the accuracy of the linear contours and / or surface contours in the original image.

[0111] In another possible implementation, obtaining a vectorized electronic map of the target area according to the original image includes:

[0112] Semantic segmentation is performed in the layer of the original image to obtain a semantic segmentation map of the original image; the color of each segmented area in the semantic segmentation map is deleted to obtain a linear outline of the original image.

[0113] By performing semantic segmentation on the original image, different areas in the original image can be distinguished by using different colors to obtain a semantic segmentation map of the original image. Optionally, the semantic segmentation map of the original image can be used as the surface contour of the original image; then, by deleting the colors in the semantic segmentation map, the linear contour of the original image can be obtained.

[0114] In the embodiment of the present application, the linear contour of the original image can be determined by performing semantic segmentation in the layer of the original image, thereby improving the efficiency of determining the linear contour of the original image.

[0115] In another possible implementation, obtaining a vectorized electronic map of a target area according to an original image includes:

[0116] The original image is input into the neural network model to obtain a vectorized electronic map of the target area.

[0117] By establishing a neural network model, the neural network model is used to process the original image and output a vectorized electronic map of the original image, wherein the vectorized electronic map includes the linear contour and / or surface contour of the original image. The embodiment of the present application does not limit the specific structure and training method of the neural network model.

[0118] In the embodiment of the present application, the original image is input into the neural network model and processed by the neural network model to obtain a vectorized electronic map of the target area, thereby improving the efficiency of determining the vectorized electronic map.

[0119] Step S103: setting attribute information of the vectorized electronic map according to the linear contour and / or the surface contour.

[0120] After determining the linear contour and / or surface contour of the original image, the sub-areas in the target area are distinguished. For example, if the target area is a park, the linear contour and / or surface contour of the original image can distinguish the constructions such as parks, paths, lakes, rivers, and squares in the park. In order to facilitate the identification of sub-areas in the target area, it is also necessary to set the attribute information of various constructions in the target area. Based on this, the embodiment of the present application can also set the attribute information of the vectorized electronic map according to the linear contour and / or surface contour. The setting of the attribute information of the vectorized electronic map can be automatically generated by the system or can be realized by manual input. After setting the attribute information of the vectorized electronic map, the attribute information of the vectorized electronic map can be saved in the background database, or the attribute information of the vectorized electronic map can be presented in the vectorized electronic map. The embodiment of the present application does not limit this. The embodiment of the present application does not limit the attribute information of the vectorized electronic map. In a possible implementation, the attribute information of the vectorized electronic map includes at least one of the following attribute information of the linear contour and / or surface contour: identification, name, type, level, longitude and latitude, and acquisition time.

[0121] Among them, the identification is a unique code for recording data, which can be automatically generated by the system; the name is used to record the actual name of the overall outline, which can be set by manual input; the type is used to record the acquisition type of the target area, for example, a community, a school, a shopping mall, etc., which can be set manually; the level is used to indicate that the target area belongs to a single layer or multiple layers, for example, the target area includes an underground parking lot, or the target area is a multi-layer shopping mall, then the target area belongs to multiple layers, which can be set by manual input; when the level of the target area is multiple layers, it is also possible to establish an identification associated with each layer, such as the first layer of shopping mall A, the second layer of shopping mall A, etc., which is not limited in the embodiment of the present application; the longitude and latitude are used to indicate the geographical location of the target area, which can be automatically generated by the global positioning system (GPS) of the system; the acquisition time indicates the time of generating the vectorized electronic map of the target area, which can be generated by the system or set by manual input; in addition, the attribute information of the vectorized electronic map can also include the information of the collector, the collection precautions, etc., which is not limited in the embodiment of the present application. By setting the attribute information of the vectorized electronic map, the needs of the existing electronic map can be better met, and retrieval and use as well as subsequent update and maintenance can be facilitated.

[0122] In a possible implementation, after the attribute information of the vectorized electronic map is set, it can be exported to the .dmp format in an Oracle database to meet the needs before conversion of various existing electronic map formats.

[0123] In an embodiment of the present application, a vectorized electronic map of the target area is obtained based on an original image of the target area, the vectorized electronic map including the linear contour and / or surface contour of the original image, and then attribute information of the vectorized electronic map is set for the linear contour and / or surface contour of the original image, thereby realizing map collection of the target area and improving the map collection efficiency of the target area.

[0124] In one achievable manner, the linear contour includes a plurality of linear sub-contours. Figure 3 is a flowchart of a map collection method provided by another embodiment of the present application. The method can be executed by a map collection device, and the device can be implemented by software and / or hardware. For example, the device can be a client or a terminal device, and the terminal device can be a personal computer, a smart phone, a user terminal, a tablet computer, a wearable device, etc. The map collection method is described below with the terminal device as the execution subject. Figure 3 As shown, in the map acquisition method provided in the embodiment of the present application, obtaining a vectorized electronic map of a target area according to an original image may include:

[0125] S1: determining original color points of multiple colors in the pixel points of the original image, wherein a first color difference value between the original color point of each color and a standard sample color value of the color is within a first preset range, and taking the original color point of the same color as a first target pixel point.

[0126] The original color point is used as the initial point for linear contour recognition. The embodiment of the present application does not limit the number of original color points. The selection of the original color point can be determined based on the color difference between the pixel point in the original image and the standard sample color value. The standard sample color value includes standard sample color values ​​of multiple colors. The standard sample color value of each color may include information such as the pixel value and brightness value of the color. The embodiment of the present application does not limit this. In a possible implementation, each standard sample color value includes the brightness value, red-green value, yellow-blue value, etc. of the color.

[0127] The determination of the original color point can be achieved by judging whether the first color difference value between the pixel point and the standard sample color value is within a first preset range. In a possible implementation, the first color difference value can be calculated by the following formula:

[0128]

[0129] Among them, ΔE represents the first color difference value; L represents the brightness value, + represents brighter, and - represents darker; a represents the red-green value, + represents redder, and - represents greener; b represents the yellow-blue value, + represents yellower, and - represents bluish; ΔL=Lstandard-Lmeasured (Lstandard refers to the brightness value of the standard sample color value, and Lmeasured refers to the measured brightness value of the pixel point of the original image); Δa=astandard-ameasured (astandard refers to the red-green value of the standard sample color value, and ameasured refers to the measured red-green value of the pixel point of the original image); Δb=bstandard-bmeasured (bstandard refers to the yellow-blue value of the standard sample color, and bmeasured refers to the measured yellow-blue value of the pixel point of the original image). By calculation, the first color difference value of each pixel point of the original image can be obtained.

[0130] After determining the first color difference value of the pixel of the original image, the pixel whose first color difference value is within the first preset range is determined to be the original color point. Since the standard sample color includes multiple colors, that is, the standard template color value includes multiple color values, the original color point can be determined by selecting the minimum first color difference value in the first color difference value calculated between the pixel and the standard template color value and comparing it with the first preset range. And, if after comparison, the minimum first color difference value is within the first preset range, then the pixel is the original color point, and the color corresponding to the original color point is the standard sample color corresponding to the minimum first color difference value.

[0131] In addition, the embodiment of the present application does not limit the size of the first preset range of the first color difference value ΔE. In a possible implementation, the first preset range is 0-0.5. In addition, the embodiment of the present application does not limit the type of color corresponding to the original color point. In the embodiment of the present application, the original color point of the same color is used as the first target pixel point to determine different linear sub-contours. The following only takes the original color point of one color as an example to introduce the method of determining the linear sub-contour.

[0132] S2: Determine a plurality of first pixel points that are separated from the first target pixel point by M pixels, where M is an integer greater than or equal to zero.

[0133] Figure 4 is a schematic diagram of an original image provided by an embodiment of the present application, such as Figure 4 As shown, each square represented by a solid line represents a pixel point, wherein pixel point 40 represents a first target pixel point, and taking M=0 as an example, the plurality of first pixel points include 8 pixel points adjacent to pixel point 40, namely pixel point 41, pixel point 42, pixel point 43, pixel point 44, pixel point 45, pixel point 46, pixel point 47, and pixel point 48. For original images of different resolutions, the value of M may be different, for example, the higher the resolution of the original image, the larger the value of M selected, and the embodiments of the present application are not limited thereto.

[0134] S3: Determine a second color difference value corresponding to each first pixel point, where the second color difference value is a color difference value between the first pixel point and a first target pixel point, and the first target pixel point is used as the second pixel point.

[0135] Determine the color difference value between each first pixel point, i.e., pixel point 41, pixel point 42, pixel point 43, pixel point 44, pixel point 45, pixel point 46, pixel point 47, and pixel point 48, and the pixel point 40, respectively, to obtain the second color difference value corresponding to each first pixel point. The calculation method of the second color difference value can refer to the calculation formula of the first color difference value mentioned above, and will not be repeated here.

[0136] For the convenience of subsequent description, the first target pixel point 40 is taken as the second pixel point.

[0137] S4: Determine at least one first target pixel point among the plurality of first pixel points, wherein the second color difference value of the first target pixel point is within a second preset range.

[0138] Among multiple first pixel points, determine the first pixel point whose second color difference value is within the second preset range as the first target pixel point, wherein the embodiment of the present application does not limit the second preset range, and exemplarily, the second preset range is 0-0.5, but the embodiment of the present application is not limited to this.

[0139] After determining the first target pixel point, it is necessary to judge the number and position of the first target pixel points. If the number of the first target pixel points is at least three, and at least three first target pixel points are not on the same straight line, execute step S5; otherwise, repeat steps S2-S4.

[0140] Exemplarily, if among the multiple first pixel points, only the second color difference value of pixel point 41 is within the second preset range, pixel point 41 is used as the first target pixel point, and steps S2-S4 are repeated; if among the multiple first pixel points, the second color difference values ​​of pixel point 41 and pixel point 43 are both within the second preset range, pixel point 41 and pixel point 43 are used as the first target pixel points, and steps S2-S4 are repeated; if among the multiple first pixel points, the second color difference values ​​of pixel point 41, pixel point 43 and pixel point 46 are all within the second preset range, step S5 is executed. The above is only an exemplary description, and the embodiments of the present application are not limited thereto.

[0141] S5: Connect multiple second pixel points to generate a linear sub-contour of the original image.

[0142] The embodiment of the present application does not limit the specific implementation method of connecting multiple second pixel points to generate a linear sub-contour of the original image. For example, the coordinate values ​​of multiple second pixel points can be obtained by determining the coordinate value of each pixel point.

[0143] The specific coordinate setting of each pixel point can be based on the size of the pixel points of the original image, with the distance of one pixel point as the benchmark. The width of each pixel point represents one coordinate distance, and the corresponding coordinates are generated. Each pixel point is automatically numbered by the system according to the principle of starting from the left of the bottom layer. For example, the coordinates of multiple second pixel points are recorded as O1 (X1, Y1), O2 (X2, Y2), O3 (X3, Y3), O4 (X4, Y4), and then a new layer is created according to the corresponding relationship between the coordinates of the new layer and the coordinates of the original image to form a linear sub-contour of the original image. By obtaining multiple linear sub-contours in the original image, the linear contour of the original image is formed.

[0144] In one achievable manner, the surface contour includes a plurality of surface sub-contours. Figure 5 It is a flowchart of a map collection method provided by another embodiment of the present application. The method can be executed by a map collection device, and the device can be implemented by software and / or hardware. For example, the device can be a client or a terminal device, and the terminal device can be a personal computer, a smart phone, a user terminal, a tablet computer, a wearable device, etc. The map collection method is described below with the terminal device as the execution subject. Figure 5As shown, step S102 in the map acquisition method provided in the embodiment of the present application, i.e., obtaining a vectorized electronic map of the target area according to the original image, may include:

[0145] R1: Determine original color points of multiple colors in the original image, the first color difference value between the original color point of each color and the standard sample color value of the color is within a first preset range, and any original color point of each color is used as the second target pixel point.

[0146] The content of this step is similar to that of step S1. For details, please refer to the introduction of step S1 and will not be repeated here.

[0147] R2: Taking the second target pixel as the center, determine a plurality of third pixel points that are N pixel points away from the second target pixel point, where N is an integer greater than or equal to zero.

[0148] Figure 6 is a schematic diagram of an original image provided by another embodiment of the present application, such as Figure 6 As shown, each square represented by a solid line represents a pixel point, wherein pixel point 50 represents a second target pixel point, and taking N=0 as an example, the plurality of third pixel points include 8 pixel points adjacent to pixel point 50, namely pixel point 51, pixel point 52, pixel point 53, pixel point 55, pixel point 55, pixel point 56, pixel point 57, and pixel point 58. For original images of different resolutions, the value of N may be different, for example, the higher the resolution of the original image, the larger the value of N selected, and the embodiments of the present application are not limited thereto.

[0149] R3: Determine a third color difference value corresponding to each third pixel point, where the third color difference value is a color difference value between the third pixel point and the second target pixel point.

[0150] Determine the color difference values ​​between each third pixel point, i.e., pixel point 51, pixel point 52, pixel point 53, pixel point 55, pixel point 55, pixel point 56, pixel point 57, and pixel point 58, and pixel point 50, respectively, to obtain the third color difference value corresponding to each third pixel point. The calculation method of the third color difference value can refer to the calculation formula of the first color difference value mentioned above, and will not be repeated here.

[0151] R4: If the third color difference values ​​corresponding to each third pixel point are all within the third preset range, set N=N+1 and repeat steps R2-R4.

[0152] The third color difference value corresponding to each third pixel point is judged. If the third color difference value corresponding to each third pixel point is within the third preset range, N=N+1 is set, and steps R2-R4 are repeated.

[0153] Exemplarily, if the third color difference values ​​of pixel 51, pixel 52, pixel 53, pixel 55, pixel 55, pixel 56, pixel 57, and pixel 58 are all within the third preset range, let N=N+1, take N=0 in R2 as an example, N=0+1=1, and when repeating step R2, take N=1 to determine multiple third pixel points, take N=1 as an example, such as Figure 6 As shown, the plurality of third pixel points are pixel points 601 to pixel points 616, which are not listed one by one here.

[0154] If there is a third color difference value that is not within the third preset range, and there is a third color difference value that is within the third preset range, then execute step R5. If both third color difference values ​​are not within the third preset range, then execute step R6.

[0155] R5: taking the second target pixel as the fourth pixel, and determining, among the plurality of third pixels, a pixel whose third color difference value is within a third preset range as the second target pixel.

[0156] The second target pixel is used as the fourth pixel, and a pixel whose third color difference value is within the third preset range among the plurality of third pixels is determined as the second target pixel, and steps R2-R5 are repeated. The second target pixel 50 is used as the fourth pixel, and a pixel whose third color difference value is within the third preset range among the plurality of third pixels 51-58 is determined as the second target pixel, and steps R2-R5 are repeated.

[0157] Exemplarily, if the third color difference value of the third pixel 51 is within the third preset range, and the third color difference value of the third pixel 58 is not within the third preset range, the third pixel 51 is determined to be the second target pixel, and steps R2-R5 are repeated. This embodiment of the application is not repeated.

[0158] R6: Connect third pixel points whose third color difference values ​​are within a third preset range among a plurality of third pixel points to generate a planar sub-contour of the original image.

[0159] If the third color difference values ​​are no longer within the third preset range, the third pixel points whose third color difference values ​​are within the third preset range are connected among the plurality of third pixel points to generate a planar sub-contour of the original image. The planar sub-contour obtained by connecting the original color points of multiple colors as the second target pixel point is generated to generate a planar contour.

[0160] The embodiments of the present application do not limit the method for generating the planar sub-contour of the original image. For example, the coordinate value of each pixel point can be determined, and the coordinate values ​​of multiple second pixel points can be obtained. For example, the coordinates of the multiple second pixel points are respectively recorded as P1 (X1, Y1), P2 (X2, Y2), P3 (X3, Y3), P4 (X4, Y4), and then a new layer is established according to the correspondence between the coordinates of the new layer and the coordinates of the original image to form the planar sub-contour of the original image. By obtaining multiple planar sub-contours in the original image, the planar contour of the original image is formed.

[0161] In order to more clearly identify the surface sub-contours, the map collection method provided in the embodiment of the present application further includes:

[0162] The pixels in each surface sub-contour are set to the same color to obtain multiple color regions.

[0163] For example, the pixel points in each planar sub-contour are set to gray or white, etc., which is not limited in this embodiment of the present application.

[0164] After determining each surface sub-contour and obtaining multiple color regions, the map acquisition method provided in the embodiment of the present application may further include:

[0165] The intersection lines between different color regions are determined as linear sub-contours.

[0166] The embodiment of the present application realizes obtaining a linear sub-contour through a planar sub-contour, thereby improving the efficiency of determining the linear sub-contour.

[0167] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0168] Figure 7 is a schematic diagram of an original image provided in an embodiment of the present application, Figure 8 is a vectorized electronic map provided in the embodiment of the present application, such as Figure 7 As shown in FIG. 1 , the original image includes a navigation map of the target area, which includes areas A, B, C, D, E, and F in the target area. After processing, as shown in FIG. Figure 8 As shown, the vectorized electronic map includes the outlines and positions of areas A, B, C, D, E, and F in the target area. This embodiment of the present application only takes this as an example and will not be described in detail.

[0169] Fig. 9is a schematic diagram of the structure of a map collection device provided in an embodiment of the present application. The device can be implemented by software and / or hardware. For example, the device can be a client or a terminal device. The terminal device can be a personal computer, a smart phone, a user terminal, a tablet computer, a wearable device, etc. Fig. 9 As shown, the map collection device provided in the embodiment of the present application may include:

[0170] The acquisition module 71 is used to acquire the original image of the target area.

[0171] The processing module 72 is used to obtain a vectorized electronic map of the target area according to the original image. The vectorized electronic map includes the linear outline and / or surface outline of the original image.

[0172] Optionally, the processing module 72 is specifically used to: input the original image into the neural network model to obtain a vectorized electronic map of the target area.

[0173] The setting module 73 is used to set the attribute information of the vectorized electronic map according to the linear contour and / or the surface contour.

[0174] Optionally, the attribute information of the vectorized electronic map includes at least one of the following attribute information of the linear contour and / or the surface contour:

[0175] Identification, name, type, level, longitude and latitude, and collection time.

[0176] In one possible implementation, Fig.10 is a schematic diagram of the structure of a map collection device provided by another embodiment of the present application. The device can be implemented by software and / or hardware. For example, the device can be a client or a terminal device. The terminal device can be a personal computer, a smart phone, a user terminal, a tablet computer, a wearable device, etc. Fig.10 As shown, the map collection device provided in the embodiment of the present application, the processing module 72, includes:

[0177] The first processing submodule 721 is used to extract the linear contour in the original image according to the pixel points of the original image;

[0178] and / or,

[0179] The second processing submodule 722 is used to extract the surface contour of the original image according to the pixel points of the original image.

[0180] In a possible implementation, the linear contour includes a plurality of linear sub-contours, and the first processing submodule 721 is specifically configured to:

[0181] S1: determining original color points of multiple colors in the pixel points of the original image, wherein a first color difference value between the original color point of each color and a standard sample color value of the color is within a first preset range, and taking the original color point of the same color as a first target pixel point;

[0182] S2: Determine a plurality of first pixel points that are separated from the first target pixel point by M pixels, where M is an integer greater than or equal to zero;

[0183] S3: Determine a second color difference value corresponding to each first pixel, where the second color difference value is a color difference value between the first pixel and the first target pixel, and use the first target pixel as the second pixel;

[0184] S4: determining at least one first target pixel point from the plurality of first pixel points, the second color difference value of the first target pixel point being within a second preset range, and repeatedly performing steps S2-S4 until the number of the first target pixel points is at least three, and at least three first target pixel points are not on the same straight line;

[0185] S5: Connect multiple second pixel points to generate a linear sub-contour of the original image.

[0186] In a possible implementation manner, the surface profile includes a plurality of surface sub-profiles, and the second processing submodule 722 is specifically configured to:

[0187] R1: determining original color points of multiple colors in the original image, wherein a first color difference value between the original color point of each color and a standard sample color value of the color is within a first preset range, and taking any original color point of each color as a second target pixel point;

[0188] R2: Taking the second target pixel as the center, determine a plurality of third pixel points that are N pixel points away from the second target pixel point, where N is an integer greater than or equal to zero;

[0189] R3: Determine a third color difference value corresponding to each third pixel point, where the third color difference value is a color difference value between the third pixel point and the second target pixel point;

[0190] R4: If the third color difference values ​​corresponding to each third pixel point are all within the third preset range, set N=N+1, and repeat steps R2-R4. If there is a third color difference value that is not within the third preset range, and there is a third color difference value that is within the third preset range, the second target pixel point is used as the fourth pixel point, and step R5 is executed. If all third color difference values ​​are not within the third preset range, step R6 is executed.

[0191] R5: Determine, among the plurality of third pixel points, a pixel point whose third color difference value is within a third preset range as a second target pixel point, and repeat steps R2-R5;

[0192] R6: Connect third pixel points whose third color difference values ​​are within a third preset range among a plurality of third pixel points to generate a planar sub-contour of the original image.

[0193] In a possible implementation, the setting module 73 is further configured to:

[0194] The pixels in each surface sub-contour are set to the same color to obtain multiple color regions.

[0195] Optional, such as Fig.10 As shown, the map collection device provided in the embodiment of the present application further includes:

[0196] The determination module 74 is used to determine that the intersection line between different color regions is a linear sub-contour.

[0197] Fig.11 is a structural diagram of a map collection device provided by another embodiment of the present application. The device can be implemented by software and / or hardware. For example, the device can be a client or a terminal device. The terminal device can be a personal computer, a smart phone, a user terminal, a tablet computer, a wearable device, etc. Fig.11 As shown, the map collection device provided in the embodiment of the present application, the processing module 72, includes:

[0198] The segmentation submodule 81 is used to perform semantic segmentation in the layer of the original image to obtain a semantic segmentation map of the original image;

[0199] The deletion submodule 82 is further used to delete the color of each segmented area in the semantic segmentation image to obtain the linear outline of the original image.

[0200] The device embodiments provided in this application are merely illustrative. Figure 9-11 The module division in the description is only a logical function division, and there may be other division methods in actual implementation. For example, multiple modules can be combined or integrated into another system. The coupling between the modules can be realized through some interfaces, which are usually electrical communication interfaces, but it is not excluded that they may be mechanical interfaces or other forms of interfaces. Therefore, the modules described as separate components may or may not be physically separated, and may be located in one place or distributed in different locations of the same or different devices.

[0201] Fig.12 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Fig.12 As shown, the device includes:

[0202] A processor 91, a memory 92, a transceiver 93 and a computer program; wherein the transceiver 93 implements data transmission between other devices, the computer program is stored in the memory 92, and is configured to be executed by the processor 91, and the computer program includes instructions for executing the above-mentioned map acquisition method. For its content and effect, please refer to the method embodiment.

[0203] In addition, an embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When at least one processor of a user device executes the computer-executable instructions, the user device executes the above-mentioned various possible methods.

[0204] Among them, computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general or special-purpose computer. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a user device. Of course, the processor and the storage medium can also be present in a communication device as discrete components.

[0205] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0206] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A map collection method, characterized in that: include: Obtain the original image of the target area; According to the original image, a vectorized electronic map of the target area is obtained, wherein the vectorized electronic map includes a linear outline and / or a surface outline of the original image; Setting attribute information of the vectorized electronic map according to the linear contour and / or the planar contour; The step of obtaining a vectorized electronic map of the target area according to the original image includes: Extracting the linear contour in the original image according to the pixel points of the original image; The linear contour includes a plurality of linear sub-contours, and extracting the linear contour in the original image according to the pixel points of the original image includes: S1: determining original color points of multiple colors in the pixel points of the original image, wherein a first color difference value between the original color point of each color and a standard sample color value of the color is within a first preset range, and taking the original color point of the same color as a first target pixel point; S2: Determine a plurality of first pixel points that are separated from the first target pixel point by M pixels, where M is an integer greater than or equal to zero; S3: Determine a second color difference value corresponding to each first pixel point, where the second color difference value is a color difference value between the first pixel point and a first target pixel point, and use the first target pixel point as the second pixel point; S4: determining at least one first target pixel point from the plurality of first pixel points, the second color difference value of the first target pixel point being within a second preset range, and repeatedly performing steps S2-S4 until the number of the first target pixel points is at least three, and at least three first target pixel points are not on the same straight line; S5: Connect multiple second pixel points to generate a linear sub-contour of the original image.

2. The method according to claim 1, characterized in that: The step of obtaining a vectorized electronic map of the target area according to the original image further includes: The surface contour of the original image is extracted according to the pixel points of the original image.

3. The method according to claim 2, characterized in that The surface contour includes a plurality of surface sub-contours, and extracting the surface contour of the original image according to the pixel points of the original image includes: R1: determining original color points of multiple colors in the original image, wherein a first color difference value between the original color point of each color and a standard sample color value of the color is within a first preset range, and taking any original color point of each color as a second target pixel point; R2: Taking the second target pixel as the center, determine a plurality of third pixel points that are N pixel points away from the second target pixel point, where N is an integer greater than or equal to zero; R3: Determine a third color difference value corresponding to each third pixel point, where the third color difference value is a color difference value between the third pixel point and the second target pixel point; R4: if the third color difference values ​​corresponding to each third pixel point are all within the third preset range, set N=N+1, and repeat steps R2-R4; if there is a third color difference value that is not within the third preset range, and there is a third color difference value that is within the third preset range, take the second target pixel point as the fourth pixel point, and execute step R5; if all third color difference values ​​are not within the third preset range, execute step R6; R5: Determine, among a plurality of third pixel points, a pixel point whose third color difference value is within the third preset range as a second target pixel point, and repeat steps R2-R5; R6: Connect third pixel points whose third color difference values ​​are within a third preset range among a plurality of third pixel points to generate a planar sub-contour of the original image.

4. The method according to claim 3, characterized in that: Also includes: The pixel points in each of the planar sub-contours are set to the same color to obtain a plurality of color regions.

5. The method according to claim 4, characterized in that Also includes: The intersection lines between the different color regions are determined as linear sub-contours.

6. The method according to claim 1, characterized in that The step of obtaining a vectorized electronic map of the target area according to the original image includes: Performing semantic segmentation in the layer of the original image to obtain a semantic segmentation map of the original image; The color of each segmented area in the semantic segmentation map is deleted to obtain the linear outline of the original image.

7. The method according to claim 1, characterized in that The step of obtaining a vectorized electronic map of the target area according to the original image includes: The original image is input into a neural network model to obtain a vectorized electronic map of the target area.

8. The method according to any one of claims 1 to 7, characterized in that: The attribute information of the vectorized electronic map includes at least one of the following attribute information of the linear contour and / or the planar contour: Identification, name, type, level, longitude and latitude, and collection time.

9. A map collection device, characterized in that: include: An acquisition module is used to acquire the original image of the target area; A processing module, configured to obtain a vectorized electronic map of the target area according to the original image, wherein the vectorized electronic map includes a linear outline and / or a surface outline of the original image; A setting module, used for setting the attribute information of the vectorized electronic map according to the linear contour and / or the surface contour; The processing module comprises: A first processing submodule, configured to extract the linear contour in the original image according to the pixel points of the original image; The linear contour includes a plurality of linear sub-contours, and the first processing submodule is specifically configured to: S1: determining original color points of multiple colors in the pixel points of the original image, wherein a first color difference value between the original color point of each color and a standard sample color value of the color is within a first preset range, and taking the original color point of the same color as a first target pixel point; S2: Determine a plurality of first pixel points that are separated from the first target pixel point by M pixels, where M is an integer greater than or equal to zero; S3: Determine a second color difference value corresponding to each first pixel point, where the second color difference value is a color difference value between the first pixel point and a first target pixel point, and use the first target pixel point as the second pixel point; S4: determining at least one first target pixel point from the plurality of first pixel points, the second color difference value of the first target pixel point being within a second preset range, and repeatedly performing steps S2-S4 until the number of the first target pixel points is at least three, and at least three first target pixel points are not on the same straight line; S5: Connect multiple second pixel points to generate a linear sub-contour of the original image.

10. The device according to claim 9, characterized in that The processing module further includes: The second processing submodule is used to extract the surface contour of the original image according to the pixel points of the original image.

11. The device according to claim 10, characterized in that The surface contour includes a plurality of surface sub-contours, and the second processing submodule is specifically used for: R1: determining original color points of multiple colors in the original image, wherein a first color difference value between the original color point of each color and a standard sample color value of the color is within a first preset range, and taking any original color point of each color as a second target pixel point; R2: Taking the second target pixel as the center, determine a plurality of third pixel points that are N pixel points away from the second target pixel point, where N is an integer greater than or equal to zero; R3: Determine a third color difference value corresponding to each third pixel point, where the third color difference value is a color difference value between the third pixel point and the second target pixel point; R4: if the third color difference values ​​corresponding to each third pixel point are all within the third preset range, set N=N+1, and repeat steps R2-R4; if there is a third color difference value that is not within the third preset range, and there is a third color difference value that is within the third preset range, take the second target pixel point as the fourth pixel point, and execute step R5; if all third color difference values ​​are not within the third preset range, execute step R6; R5: Determine, among a plurality of third pixel points, a pixel point whose third color difference value is within the third preset range as a second target pixel point, and repeat steps R2-R5; R6: Connect third pixel points whose third color difference values ​​are within a third preset range among a plurality of third pixel points to generate a planar sub-contour of the original image.

12. The device according to claim 11, characterized in that The setting module is also used for: The pixel points in each of the planar sub-contours are set to the same color to obtain a plurality of color regions.

13. The device according to claim 12, characterized in that Also includes: The determination module is used to determine that the intersection line between different color areas is a linear sub-contour.

14. The device according to claim 9, characterized in that The processing module comprises: A segmentation submodule, used for performing semantic segmentation in the layer of the original image to obtain a semantic segmentation map of the original image; The deletion submodule is also used to delete the color of each segmented area in the semantic segmentation map to obtain the linear outline of the original image.

15. The device according to claim 9, characterized in that The processing module is specifically used for: The original image is input into a neural network model to obtain a vectorized electronic map of the target area.

16. The device according to any one of claims 9 to 15, characterized in that: The attribute information of the vectorized electronic map includes at least one of the following attribute information of the linear contour and / or the planar contour: Identification, name, type, level, longitude and latitude, and collection time.

Citation Information

Patent Citations

  • House type vector graph generation method and apparatus for building and terminal

    CN107330979A

  • Method, device and electronic device for constructing semantic vector map based on visual point cloud

    CN109461211A

  • Information processing apparatus having wireless communication function and method of controlling the apparatus

    US20130136351A1