Road network generation method, road network generation device, electronic device and storage medium
By automatically removing lines and processing intersecting routes to generate adjacency lists, it solves the problem of low efficiency for road network mappers in complex road networks, and improves the accuracy and efficiency of road network generation and planning.
Patent Information
- Application Number
- CN202311096187.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-08-28
AI Technical Summary
In the existing technology, road network drawing personnel spend a lot of time processing complex road networks, resulting in low road network generation efficiency.
By obtaining the initial road network information, automatically dismantling the intersecting initial routes and generating an adjacency table, which improves the efficiency of road network generation and ensures the similarity between the road network and the real road network.
It realizes rapid generation of road network, improves road network generation efficiency and planning accuracy, and reduces road network drawing time.
Smart Images

Figure CN117710516B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of navigation technology, and in particular to a road network generation method, a road network generation device, an electronic device and a storage medium. Background Art
[0002] Road network refers to a network of interconnected and meshed roads in a certain area. Road network can provide navigation routes based on given departure and destination points, providing great convenience for people's travel and is widely used in electronic devices.
[0003] At present, the road network is drawn by road network drawing personnel according to the road network. However, in the process of drawing the road network by the road network drawing personnel, when the road network is relatively complex, the road network drawing personnel need to spend a lot of time to draw the road network, resulting in low efficiency in generating the road network. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a road network generation method, a road network generation device, an electronic device and a storage medium to overcome or at least partially solve the above problems of the prior art.
[0005] In a first aspect, an embodiment of the present application provides a road network generation method, which includes: obtaining initial road network information, the initial road network information including multiple initial routes; selecting any two initial routes from the multiple initial routes in turn, and recording them as the first initial route and the second initial route respectively; when it is determined that the first initial route intersects with the second initial route, performing a wire-removing process on the first initial route and the second initial route according to the corresponding intersection point to obtain corresponding wire-removing route segments, the wire-removing route segments having the intersection point as a common endpoint; generating a corresponding adjacency list according to the wire-removing route segments.
[0006] The solution provided by the present application automatically performs a wire removal process on any two intersecting initial routes selected in sequence, and quickly generates a corresponding adjacency table based on the wire removal route segments after the wire removal process, thereby improving the efficiency of road network generation. In addition, the solution provided by the present application performs a wire removal process on any two intersecting initial routes based on their intersection points, thereby ensuring that the road network superimposed and drawn at the intersection of the passable area has a high similarity with the real road network, which is conducive to improving the planning accuracy of route planning using the adjacency table.
[0007] Among them, in some optional embodiments, when it is determined that the first initial route intersects with the second initial route, the first initial route and the second initial route are subjected to stitch-removing processing according to the corresponding intersection point to obtain the corresponding stitch-removing route segment, including: when it is determined that the first initial route intersects with the second initial route, determining whether the corresponding intersection point is the endpoint of the first initial route or the endpoint of the second initial route; when it is determined that the intersection point is the endpoint of the first initial route, the second initial route is subjected to stitch-removing processing according to the intersection point to obtain the corresponding stitch-removing route segment; or when it is determined that the intersection point is the endpoint of the second initial route, the first initial route is subjected to stitch-removing processing according to the intersection point to obtain the corresponding stitch-removing route segment.
[0008] The solution provided in this embodiment realizes that when it is determined that the first initial route and the second initial route intersect at a T-junction, the first initial route or the second initial route is removed according to the intersection, thereby ensuring that the road network superimposed and drawn at the intersection of the passable area has a high similarity with the real road network.
[0009] Among them, in some optional embodiments, the road network generation method also includes: when it is determined that the intersection is not the endpoint of the first initial route, and the intersection is not the endpoint of the second initial route, calculating the first distance from the intersection to the endpoint of the first initial route and the second distance from the intersection to the endpoint of the second initial route; determining whether the minimum distance between the first distance and the second distance is less than the first distance threshold; when it is determined that the minimum distance between the first distance and the second distance is less than the first distance threshold, deleting the route segment corresponding to the minimum distance from the corresponding initial route; and performing line removal processing on another initial route according to the intersection to obtain the corresponding line removal route segment.
[0010] The solution provided in this embodiment realizes that when it is determined that the first initial route and the second initial route intersect near a T-junction, the endpoints of the corresponding initial routes are connected to the intersection according to the corresponding minimum distance, and the other initial route is disconnected according to the intersection, thereby ensuring that the road network superimposed and drawn at the intersection of the passable area has a high similarity with the real road network.
[0011] Among them, in some optional embodiments, the road network generation method also includes: when it is determined that the minimum distance between the first distance and the second distance is greater than or equal to the first distance threshold, the first initial route and the second initial route are processed according to the intersection to obtain the corresponding route segment.
[0012] The solution provided in this embodiment realizes that when it is determined that the first initial route intersects the second initial route at a crossroad, the first initial route and the second initial route are removed according to the intersection, thereby ensuring that the road network superimposed at the intersection of the passable area has a high similarity with the real road network.
[0013] Among them, in some optional embodiments, when it is determined that the first initial route intersects with the second initial route, the first initial route and the second initial route are subjected to a wire-removing process according to the corresponding intersection point, and before the corresponding wire-removing route segment is obtained, the road network generation method also includes: obtaining the first endpoint coordinates of the first initial route and the second endpoint coordinates of the second initial route; determining whether the first initial route intersects with the second initial route according to the first endpoint coordinates and the second endpoint coordinates; when it is determined that the first initial route intersects with the second initial route, the first initial route and the second initial route are subjected to a wire-removing process according to the corresponding intersection point, and the corresponding wire-removing route segment is obtained, including: when it is determined that the first initial route intersects with the second initial route according to the first endpoint coordinates and the second endpoint coordinates, the first initial route and the second initial route are subjected to a wire-removing process according to the corresponding intersection point, and the corresponding wire-removing route segment is obtained.
[0014] The solution provided in this embodiment realizes the removal of any two intersecting initial routes according to their intersection points, thereby ensuring that the road network drawn superimposed at the intersection of the passable area has a high similarity with the real road network.
[0015] Among them, in some optional embodiments, the road network generation method also includes: when it is determined that the first initial route and the second initial route do not intersect based on the first endpoint coordinates and the second endpoint coordinates, determining whether the first initial route and the second initial route are adjacent; when it is determined that the first initial route and the second initial route are adjacent, determining the corresponding target perpendicular foot, the target perpendicular foot is the perpendicular foot corresponding to the minimum distance between the third distance from the first endpoint coordinate to the second initial route and the fourth distance from the second endpoint coordinate to the first initial route; extending the initial route corresponding to the target perpendicular foot to the target perpendicular foot, and determining the target perpendicular foot as the intersection; performing line removal processing on the other initial route according to the intersection to obtain the corresponding line removal route segment.
[0016] The solution provided in this embodiment realizes the point merging and line removal processing of the first initial route and the second initial route adjacent to the intersection, ensuring that the road network superimposed and drawn at the adjacent intersections of the passable area has a high similarity with the real road network.
[0017] Among them, in some optional embodiments, when it is determined that the first initial route and the second initial route do not intersect based on the first endpoint coordinates and the second endpoint coordinates, determining whether the first initial route and the second initial route are adjacent includes: when it is determined that the first initial route and the second initial route do not intersect based on the first endpoint coordinates and the second endpoint coordinates, calculating the third distance from the first endpoint coordinates to the second initial route and the fourth distance from the second endpoint coordinates to the first initial route; when the minimum distance between the third distance and the fourth distance is less than the second distance threshold, determining that the first initial route and the second initial route are adjacent; or when the minimum distance between the third distance and the fourth distance is greater than or equal to the second distance threshold, determining that the first initial route and the second initial route are not adjacent.
[0018] Among them, in some optional embodiments, the road network generation method also includes: when it is determined that the first initial route and the second initial route are not adjacent, executing the step and subsequent steps of sequentially selecting any two initial routes from multiple initial routes and recording them as the first initial route and the second initial route respectively.
[0019] The solution provided in this embodiment realizes the cyclic traversal of multiple initial routes, and can ensure that all intersecting initial routes are removed, which is conducive to improving the accuracy of the road network.
[0020] Among them, in some optional embodiments, before determining whether the first initial route intersects with the second initial route based on the first endpoint coordinates and the second endpoint coordinates, the road network generation method also includes: determining whether the first initial route is adjacent to the second initial route; determining whether the first initial route intersects with the second initial route based on the first endpoint coordinates and the second endpoint coordinates, including: when it is determined that the first initial route is not adjacent to the second initial route, determining whether the first initial route intersects with the second initial route based on the first endpoint coordinates and the second endpoint coordinates.
[0021] The solution provided in this embodiment realizes that when the first initial route and the second initial route are determined to be routes with non-intersections as endpoints, whether the first initial route and the second initial route intersect is determined based on the coordinates of the first endpoint and the coordinates of the second endpoint. This can avoid repeated intersection identification of routes with intersections as endpoints, and can improve the efficiency of road network generation.
[0022] Among them, in some optional embodiments, the first endpoint coordinates include the first coordinate and the second coordinate, and the second endpoint coordinates include the third coordinate and the fourth coordinate; determining whether the first initial route is adjacent to the second initial route includes: when the first coordinate is the same as the third coordinate or the fourth coordinate, then determining that the first initial route is adjacent to the second initial route; or when the second coordinate is the same as the third coordinate or the fourth coordinate, then determining that the first initial route is adjacent to the second initial route; or when the first coordinate is different from the third coordinate and the fourth coordinate, and the second coordinate is different from the third coordinate and the fourth coordinate, then determining that the first initial route is not adjacent to the second initial route.
[0023] Among them, in some optional embodiments, the road network generation method also includes: when it is determined that the first initial route is adjacent to the second initial route, executing the step and subsequent steps of sequentially selecting any two initial routes from multiple initial routes, and recording them as the first initial route and the second initial route respectively.
[0024] The solution provided in this embodiment realizes the cyclic traversal of multiple initial routes, and can ensure that all intersecting initial routes are removed, which is conducive to improving the accuracy of the road network.
[0025] Among them, in some optional embodiments, obtaining initial road network information includes: obtaining laser radar point cloud data; generating a corresponding tile map based on the laser radar point cloud data; and obtaining corresponding initial road network information based on the tile map.
[0026] The solution provided in this embodiment realizes the acquisition of corresponding initial road network information based on the laser radar point cloud data. Since the laser radar has a high measurement accuracy, the initial road network information is guaranteed to have a high accuracy, which is conducive to improving the accuracy of road network generation.
[0027] Among them, in some optional embodiments, obtaining corresponding initial road network information according to the tile map includes: inputting the tile map into Labelme software, so that the Labelme software generates and outputs corresponding initial road network information according to the tile map; receiving the initial road network information output by the Labelme software.
[0028] The solution provided in this embodiment realizes automatic labeling of tile maps based on Labelme software, ensures that the labeling time of tile maps is short, and is conducive to improving the generation efficiency of the road network.
[0029] Among them, in some optional embodiments, the road network generation method also includes: obtaining a route planning request, the route planning request carries a route planning starting point and a route planning end point, the route planning starting point and the route planning end point are included in an adjacency table; in response to the route planning request, generating a corresponding planned route according to the adjacency table; and outputting the planned route.
[0030] The solution provided in this embodiment realizes that when a route planning request is obtained, a corresponding planned route is generated based on the adjacency table, thereby improving the user's route planning experience.
[0031] Among them, in some optional embodiments, there are multiple planned routes, and outputting the planned routes includes: obtaining the route distance of each planned route; sorting each planned route in order from small to large according to the corresponding route distance; and outputting the planned route ranked first.
[0032] The solution provided in this embodiment realizes outputting a planned route with the shortest route distance based on an adjacency table when a route planning request is obtained, thereby further improving the user's route planning experience.
[0033] In the second aspect, the embodiment of the present application provides a road network generation device, which includes an information acquisition module, a selection module, a wire removal processing module, and an adjacency list generation module. The information acquisition module is used to obtain initial road network information, which includes multiple initial routes; the selection module is used to select any two initial routes from the multiple initial routes in turn, which are respectively recorded as the first initial route and the second initial route; the wire removal processing module is used to remove the wires of the first initial route and the second initial route according to the corresponding intersection when it is determined that the first initial route intersects with the second initial route, and obtain the corresponding wire removal route segment, which uses the intersection as the common endpoint; the adjacency list generation module is used to generate the corresponding adjacency list according to the wire removal route segment.
[0034] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electronic device executes the road network generation method provided in the first aspect above.
[0035] In a fourth aspect, an embodiment of the present application provides a chip, which is applied to an electronic device. The chip includes a processor, and the processor is used to read and execute a computer program stored in a memory. When the computer program is executed by the processor, the electronic device can execute the road network generation method provided in the first aspect above.
[0036] In some optional embodiments, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.
[0037] In some optional embodiments, the chip also includes a communication interface.
[0038] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by an electronic device to execute the road network generation method provided in the first aspect above.
[0039] In a sixth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the road network generation method provided in the first aspect above.
[0040] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only 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 work.
[0042] Figure 1 A schematic flow chart of a road network generation method provided in an embodiment of the present application is shown.
[0043] Figure 2 A schematic diagram of a scenario of wire removal processing in the road network generation method provided in an embodiment of the present application is shown.
[0044] Figure 3 Another schematic diagram of a scenario of wire removal processing in the road network generation method provided in an embodiment of the present application is shown.
[0045] Figure 4 A schematic diagram of another scenario of wire removal processing in the road network generation method provided in an embodiment of the present application is shown.
[0046] Figure 5 A schematic diagram of another scenario of wire removal processing in the road network generation method provided in an embodiment of the present application is shown.
[0047] Figure 6 Another schematic diagram of a scenario of wire removal processing in the road network generation method provided in an embodiment of the present application is shown.
[0048] Figure 7 Another schematic diagram of a scenario of wire removal processing in the road network generation method provided in an embodiment of the present application is shown.
[0049] Figure 8 A schematic flow chart of a line removal processing method in a road network generation method provided in an embodiment of the present application is shown.
[0050] Fig. 9 A schematic diagram of a scenario of a wire removal route segment of a wire removal processing method in a road network generation method provided in an embodiment of the present application is shown.
[0051] Fig.10 Another flowchart of the road network generation method provided in an embodiment of the present application is shown.
[0052] Fig.11 A structural block diagram of a road network generation device provided in an embodiment of the present application is shown.
[0053] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0054] Fig.13 A functional block diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0055] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0056] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplification and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed.
[0057] Road network refers to a network of interconnected and meshed roads in a certain area. Road network can provide navigation routes based on given departure and destination points, providing great convenience for people's travel and is widely used in electronic devices.
[0058] At present, the road network is drawn by road network drawing personnel according to the road network. However, in the process of drawing the road network by the road network drawing personnel, when the road network is relatively complex, the road network drawing personnel need to spend a lot of time to draw the road network, resulting in low efficiency in generating the road network.
[0059] In view of the above problems, the road network generation method, road network generation device, electronic device and storage medium provided by the embodiment of the present application, the road network generation method obtains initial road network information, the initial road network information includes multiple initial routes, and selects any two initial routes from the multiple initial routes in turn, respectively recorded as the first initial route and the second initial route, and when it is determined that the first initial route intersects with the second initial route, the first initial route and the second initial route are processed according to the corresponding intersection to obtain the corresponding de-threaded route segment, the de-threaded route segment uses the intersection as the common endpoint, and according to the de-threaded route segment, a corresponding adjacency table is generated, so that the de-threading process is automatically performed on any two intersecting initial routes selected in turn, and the corresponding adjacency table is quickly generated according to the de-threaded route segment after the de-threading process, thereby improving the generation efficiency of the road network. In addition, the scheme provided by the present application performs de-threading on any two intersecting initial routes according to the intersection of the two initial routes, ensuring that the road network superimposed and drawn at the intersection of the passable area has a high similarity with the real road network, which is conducive to improving the planning accuracy of route planning using the adjacency table.
[0060] The technical solutions 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.
[0061] The road network generation method provided in the embodiment of the present application can be applied to electronic devices. The electronic devices can include various terminal devices, which can also be called terminals, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc.
[0062] The terminal device may be a mobile phone, a sweeping robot, a drone, a smart TV, a wearable device, a PDA, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The type of terminal device is not limited here, and it can be set according to actual needs.
[0063] See also Figure 1 , which shows a flow chart of a road network generation method provided by an embodiment of the present application. In a specific embodiment, the road network generation method can be applied to electronic devices. Figure 1 The process shown is described in detail, and the road network generation method may include the following steps S110 to S140.
[0064] Step S110: Acquire initial road network information.
[0065] In the embodiment of the present application, when the user needs to generate a road network, a generation instruction can be sent to an electronic device, and the electronic device receives and responds to the generation instruction to obtain initial road network information. The initial road network information may include multiple initial routes.
[0066] In some embodiments, when a user needs to generate a road network, a generation instruction can be sent to an electronic device, which receives and responds to the generation instruction, obtains lidar point cloud data, generates a corresponding tile map based on the lidar point cloud data, and obtains corresponding initial road network information based on the tile map, thereby obtaining the corresponding initial road network information based on the lidar point cloud data. Since lidar has a high measurement accuracy, the initial road network information is guaranteed to have a high accuracy, which is beneficial to improving the accuracy of road network generation.
[0067] Specifically, when the user needs to generate a road network, a generation instruction can be sent to the electronic device, the electronic device receives and responds to the generation instruction, obtains the laser radar point cloud data, and generates a corresponding tile map based on the laser radar point cloud data, and inputs the tile map to the Labelme software, the Labelme software receives and responds to the tile map, generates and outputs the corresponding initial road network information to the electronic device, and the electronic device receives the initial road network information output by the Labelme software, and realizes automatic labeling of the tile map based on the Labelme software, ensuring that the labeling time of the tile map is short, which is conducive to improving the generation efficiency of the road network. Among them, the initial road network information is Json (JavaScript Object Notation, JS object notation) file information.
[0068] As an implementation method, the electronic device pre-stores lidar point cloud data. When the user needs to generate a road network, a generation instruction can be sent to the electronic device. The electronic device receives and responds to the generation instruction, reads the pre-stored lidar point cloud data, and generates a corresponding tile map based on the lidar point cloud data. The tile map is input into the Labelme software. The Labelme software receives and responds to the tile map, generates and outputs the corresponding initial road network information to the electronic device, and the electronic device receives the initial road network information output by the Labelme software.
[0069] As an implementation method, when a user needs to generate a road network, a generation instruction can be sent to an electronic device, and the electronic device receives and responds to the generation instruction, and generates corresponding data upload prompt information. When the user uploads the corresponding laser radar point cloud data to the electronic device according to the data upload prompt information, the electronic device receives the laser radar point cloud data uploaded by the user, and generates a corresponding tile map based on the laser radar point cloud data, and inputs the tile map to the Labelme software. The Labelme software receives and responds to the tile map, generates and outputs the corresponding initial road network information to the electronic device, and the electronic device receives the initial road network information output by the Labelme software. Among them, the data upload prompt information can be used to prompt the user to upload the corresponding laser radar point cloud data to the electronic device.
[0070] As an implementation method, the server pre-stores the laser radar point cloud data, the server is connected to the electronic device via a network, and exchanges data with the electronic device via the network.
[0071] When the user needs to generate a road network, a generation instruction can be sent to the electronic device. The electronic device receives and responds to the generation instruction, sends an acquisition instruction to the server through the network, and the server receives and responds to the acquisition instruction. The laser radar point cloud data is sent to the electronic device through the network. The electronic device receives the laser radar point cloud data returned by the server, and generates a corresponding tile map based on the laser radar point cloud data, and inputs the tile map into the Labelme software. The Labelme software receives and responds to the tile map, generates and outputs the corresponding initial road network information to the electronic device, and the electronic device receives the initial road network information output by the Labelme software.
[0072] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or any one of the cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), big data or artificial intelligence platforms, etc.
[0073] The network can be any one of a ZigBee network, a Bluetooth (BT) network, a Wireless Fidelity (Wi-Fi) network, a Thread network, a Long Range Radio (LoRa) network, a Low-Power Wide-Area Network (LPWAN), an infrared network, a Narrow Band Internet of Things (NB-IoT), a Controller Area Network (CAN), a Digital Living Network Alliance (DLNA) network, a Wide Area Network (WAN), a Local Area Network (LAN), a Metropolitan Area Network (MAN) or a Wireless Personal Area Network (WPAN), etc. The type of network is not limited here and can be set according to actual needs.
[0074] In some embodiments, the electronic device may include an input panel. When a user needs to generate a road network, the user may input a generation instruction into the input panel of the electronic device, and the electronic device receives the generation instruction through the input panel.
[0075] In some embodiments, the electronic device may include a voice recognition module. When a user needs to generate a road network, a first voice message carrying a generation instruction can be sent within the voice collection range of the voice recognition module. The electronic device collects the first voice information through the voice recognition module, and performs voice recognition on the first voice information to obtain the generation instruction.
[0076] In some embodiments, the client is connected to the electronic device via a network and exchanges data with the electronic device via the network. When the user needs to generate a road network, a generation instruction can be sent to the client, the client receives and responds to the generation instruction, forwards the generation instruction to the electronic device via the network, and the electronic device receives the generation instruction forwarded by the client.
[0077] Among them, the client can be any one of a mobile client (for example, a mobile phone client, a personal digital assistant (PDA) client, a tablet computer (Tablet Personal Computer, Tablet PC) client, a laptop computer client, a smart watch client, a smart bracelet client or a wearable client, etc.) or a fixed client (for example, a desktop computer client, a smart panel client, etc.). The type of client is not limited here and can be set according to actual needs.
[0078] Step S120: selecting any two initial routes from the multiple initial routes in sequence, and recording them as the first initial route and the second initial route respectively.
[0079] In an embodiment of the present application, after acquiring the initial road network information, the electronic device may select any two initial routes from the multiple initial routes in sequence, which are respectively recorded as the first initial route and the second initial route.
[0080] Specifically, after obtaining the initial road network information, the electronic device can select any one initial route from multiple initial routes, recorded as the first initial route, and based on the first initial route, select any one initial route from other initial routes in turn, recorded as the second initial route, until all initial routes in other initial routes are looped through.
[0081] In some embodiments, after the electronic device sequentially selects any two initial routes from multiple initial routes and records them as the first initial route and the second initial route, respectively, it can obtain the first endpoint coordinates of the first initial route and the second endpoint coordinates of the second initial route, and determine whether the first initial route intersects with the second initial route based on the first endpoint coordinates and the second endpoint coordinates.
[0082] Specifically, after the electronic device selects any two initial routes from multiple initial routes in sequence and records them as the first initial route and the second initial route respectively, it can obtain the first endpoint coordinates of the first initial route and the second endpoint coordinates of the second initial route, and determine the corresponding first trajectory according to the first endpoint coordinates, determine the corresponding second trajectory according to the second endpoint coordinates, and determine whether the first initial route intersects with the second initial route according to the first trajectory and the second trajectory.
[0083] When the first track and the second track intersect, it is determined that the first initial route intersects the second initial route; or when the first track and the second track do not intersect, it is determined that the first initial route does not intersect the second initial route.
[0084] In some embodiments, after the electronic device sequentially selects any two initial routes from a plurality of initial routes and records them as the first initial route and the second initial route respectively, it can obtain the first endpoint coordinates of the first initial route and the second endpoint coordinates of the second initial route, and determine whether the first initial route is adjacent to the second initial route. When it is determined that the first initial route is not adjacent to the second initial route, determine whether the first initial route intersects with the second initial route based on the first endpoint coordinates and the second endpoint coordinates.
[0085] Adjacency can be used to characterize that two initial routes have an endpoint that completely overlaps. The first initial route and the second initial route are not adjacent, indicating that the first initial route and the second initial route are routes with non-intersections as endpoints. When determining that the first initial route and the second initial route are routes with non-intersections as endpoints, whether the first initial route and the second initial route intersect is determined based on the coordinates of the first endpoint and the coordinates of the second endpoint, which can avoid repeated intersection identification of routes with intersections as endpoints and improve the efficiency of road network generation.
[0086] The first endpoint coordinates may include a first coordinate and a second coordinate, and the second endpoint coordinates may include a third coordinate and a fourth coordinate.
[0087] When the first coordinate is the same as the third coordinate or the fourth coordinate, it is determined that the first initial route is adjacent to the second initial route; or when the second coordinate is the same as the third coordinate or the fourth coordinate, it is determined that the first initial route is adjacent to the second initial route; or when the first coordinate is different from the third coordinate and the fourth coordinate, and the second coordinate is different from the third coordinate and the fourth coordinate, it is determined that the first initial route is not adjacent to the second initial route.
[0088] In some embodiments, after the electronic device sequentially selects any two initial routes from a plurality of initial routes and records them as the first initial route and the second initial route, respectively, it can obtain the first endpoint coordinates of the first initial route and the second endpoint coordinates of the second initial route, and determine whether the first initial route is adjacent to the second initial route. When it is determined that the first initial route is adjacent to the second initial route, the electronic device sequentially selects any two initial routes from a plurality of initial routes and records them as the first initial route and the second initial route, respectively, and subsequent steps, thereby realizing a cyclic traversal of the plurality of initial routes, ensuring that all intersecting initial routes are de-routed, and facilitating improving the accuracy of the road network.
[0089] Step S130: when it is determined that the first initial route intersects with the second initial route, a thread-removing process is performed on the first initial route and the second initial route according to the corresponding intersection point to obtain a corresponding thread-removing route segment.
[0090] In the embodiment of the present application, when the electronic device determines that the first initial route intersects the second initial route, the first initial route and the second initial route may be subjected to stitch removal processing according to corresponding intersection points to obtain corresponding stitch removal route segments.
[0091] Among them, the intersection can include a T-junction intersection, a near T-junction intersection and a crossroad intersection, etc. The T-junction intersection means that the intersection is on the first initial route or the second initial route, the near T-junction intersection means that one end of the first initial route or the second initial route slightly exceeds the T-junction, and the crossroad intersection means that the intersection is in the middle of the first initial route and the second initial route; the removal route segment uses the intersection as the common endpoint.
[0092] Specifically, when the electronic device determines that the first initial route intersects the second initial route based on the first endpoint coordinates and the second endpoint coordinates, the first initial route and the second initial route can be de-wired according to the corresponding intersection points to obtain corresponding de-wired route segments, thereby realizing de-wired processing of any two intersecting initial routes according to their intersection points, thereby ensuring that the road network superimposed at the intersection of the passable area has a high similarity with the real road network.
[0093] In some embodiments, when the electronic device determines that the first initial route intersects the second initial route, it can determine whether the corresponding intersection is the endpoint of the first initial route or the endpoint of the second initial route, that is, whether the first initial route and the second initial route intersect at a T-junction. When the intersection is determined to be the endpoint of the first initial route, it means that the first initial route and the second initial route intersect at a T-junction, and the intersection is on the second initial route, and the second initial route is processed according to the intersection to obtain a corresponding thread-removed route segment; or when the intersection is determined to be the endpoint of the second initial route, it means that the first initial route and the second initial route intersect at a T-junction, and the intersection is on the first initial route, and the first initial route is processed according to the intersection to obtain a corresponding thread-removed route segment. It is achieved that when the first initial route and the second initial route are determined to intersect at a T-junction, the first initial route or the second initial route is processed according to the intersection, which ensures that the road network superimposed and drawn at the intersection of the passable area has a high similarity with the real road network.
[0094] In one application scenario, such as Figure 2 As shown, the first initial route is AP, the second initial route is CD, the first initial route AP intersects the second initial route CD at a T-junction, and the intersection P is the endpoint of the first initial route AP, that is, the intersection P is on the second initial route CD.
[0095] The second initial route CD can be decoupled into a route segment CP and a route segment DP according to the intersection point P, and the corresponding decoupled route segments are obtained as a route segment AP, a route segment CP and a route segment DP.
[0096] In one application scenario, such as Figure 3 As shown, the first initial route is AB, the second initial route is CP, the first initial route AB intersects with the second initial route CP at a T-junction, and the intersection P is the endpoint of the second initial route CP, that is, the intersection P is on the first initial route AB.
[0097] The first initial route AB can be decomposed into a route segment AP and a route segment BP according to the intersection point P, and the corresponding decomposed route segments are obtained as the route segment AP, the route segment BP and the route segment CP.
[0098] In some embodiments, when the electronic device determines that the first initial route intersects the second initial route, it can determine whether the corresponding intersection is the endpoint of the first initial route or the endpoint of the second initial route. When it is determined that the intersection is not the endpoint of the first initial route and the intersection is not the endpoint of the second initial route, it means that the first initial route and the second initial route are not a T-junction intersection. A first distance from the intersection to the endpoint of the first initial route and a second distance from the intersection to the second initial route are calculated, and it is determined whether the minimum distance of the first distance and the second distance is less than the first distance threshold. When it is determined that the minimum distance of the first distance and the second distance is less than the first distance threshold, , the route segment corresponding to the minimum distance is deleted from the corresponding initial route, and the other initial route is decoupled according to the intersection to obtain the corresponding decoupled route segment. The first distance threshold can be used to characterize the maximum excess distance slightly exceeding the T-junction corresponding to the intersection of the first initial route and the second initial route near the T-junction. When it is determined that the first initial route and the second initial route are near the T-junction, the endpoints of the corresponding initial routes are connected to the intersection according to the corresponding minimum distance, and the other initial route is decoupled according to the intersection, which ensures that the road network superimposed and drawn at the intersection of the passable area has a high similarity with the real road network.
[0099] Among them, the first distance threshold can be a distance value pre-set by the user, or a distance value automatically generated by the electronic device according to multiple road network generation processes, etc. The setting method of the first distance threshold is not limited here, and can be set according to actual needs.
[0100] In one application scenario, such as Figure 4 As shown, the first initial route is AB, the second initial route is CD, the first initial route AB and the second initial route CD intersect at a T-junction, and the intersection is P. The first distances are │AP│ and │BP│, the second distances are │CP│ and │DP│, the minimum distance between the first distance and the second distance is │DP│, and the minimum distance │DP│ is less than the first distance threshold.
[0101] The route segment DP corresponding to the minimum distance |DP| can be deleted from the second initial route CD to obtain the route segment CP, and the first initial route AB can be decoupled into route segments AP and BP according to the intersection P, so that the corresponding decoupled route segments are route segments AP, BP and CP.
[0102] In one application scenario, such as Figure 5As shown, the first initial route is AB, the second initial route is CD, the first initial route AB and the second initial route CD intersect at a T-junction, and the intersection is P. The first distances are │AP│ and │BP│, the second distances are │CP│ and │DP│, the minimum distance between the first distance and the second distance is │BP│, and the minimum distance │BP│ is less than the first distance threshold.
[0103] The route segment BP corresponding to the minimum distance |BP| can be deleted from the first initial route AB to obtain the route segment AP, and the second initial route CD can be decoupled into the route segment CP and the route segment DP according to the intersection P, so that the corresponding decoupled route segments are the route segment AP, the route segment CP and the route segment DP.
[0104] In some embodiments, when the electronic device determines that the first initial route intersects the second initial route, it can determine whether the corresponding intersection is the endpoint of the first initial route or the endpoint of the second initial route. When it is determined that the intersection is not the endpoint of the first initial route and the intersection is not the endpoint of the second initial route, a first distance from the intersection to the endpoint of the first initial route and a second distance from the intersection to the second initial route are calculated, and it is determined whether the minimum distance between the first distance and the second distance is less than the first distance threshold. When it is determined that the minimum distance between the first distance and the second distance is greater than or equal to the first distance threshold, it indicates that the first initial route intersects the second initial route at the intersection. The first initial route and the second initial route are de-wired according to the intersection to obtain the corresponding de-wired route segment, so that when it is determined that the first initial route intersects the second initial route at the intersection, the first initial route and the second initial route are de-wired according to the intersection, so as to ensure that the road network superimposed and drawn at the intersection of the passable area has a high similarity with the real road network.
[0105] In one application scenario, such as Figure 6 As shown, the first initial route is AB, the second initial route is CD, the first initial route AB intersects the second initial route CD at a crossroad, and the intersection point is P. The first distances are │AP│ and │BP│, the second distances are │CP│ and │DP│, the minimum distance between the first distance and the second distance is │DP│, and the minimum distance │DP│ is greater than or equal to the first distance threshold.
[0106] The first initial route AB can be split into route segment AP and route segment BP according to the intersection point P, and the second route segment CD can be split into route segment CP and route segment DP according to the intersection point P, then the corresponding split route segments are route segment AP, route segment BP, route segment CP and route segment DP.
[0107] In some embodiments, when the electronic device determines that the first initial route and the second initial route do not intersect based on the first endpoint coordinates and the second endpoint coordinates, it can determine whether the first initial route and the second initial route are adjacent, and when it is determined that the first initial route and the second initial route are adjacent, determine the corresponding target vertical foot, the target vertical foot is the vertical foot corresponding to the minimum distance between the third distance from the first endpoint coordinate to the second initial route and the fourth distance from the second endpoint coordinate to the first initial route, and extend the initial route corresponding to the target vertical foot to the target vertical foot, and determine the target vertical foot as the intersection, that is, perform point merging processing on the endpoint corresponding to the target vertical foot and the target vertical foot, and perform line removal processing on the other initial route according to the intersection to obtain the corresponding line removal route segment, thereby realizing point merging processing and line removal processing of the first initial route and the second initial route adjacent to the intersection, and ensuring that the road network superimposed and drawn at the adjacent intersection of the passable area has a high similarity with the real road network.
[0108] Among them, when the electronic device determines that the first initial route and the second initial route do not intersect based on the first endpoint coordinates and the second endpoint coordinates, it can calculate the third distance from the first endpoint coordinates to the second initial route and the fourth distance from the second endpoint coordinates to the first initial route, and determine the minimum distance between the third distance and the fourth distance, and determine whether the first initial route and the second initial route are adjacent based on the minimum distance between the third distance and the fourth distance.
[0109] When the minimum distance between the third distance and the fourth distance is less than the second distance threshold, it is determined that the first initial route is adjacent to the second initial route; or when the minimum distance between the third distance and the fourth distance is greater than or equal to the second distance threshold, it is determined that the first initial route is not adjacent to the second initial route.
[0110] The second distance threshold can be used to characterize the maximum distance from the endpoint of one route to another route when the first initial route is adjacent to the second initial route. The second distance threshold can be a distance value pre-set by the user, or a distance value automatically generated by the electronic device according to multiple road network generation processes, etc. The setting method of the second distance threshold is not limited here, and can be set according to actual needs.
[0111] In one application scenario, such as Figure 7 As shown, the first initial route is AB, the second initial route is CD, the first initial route AB and the second initial route CD do not intersect, the first initial route AB and the second initial route CD are adjacent, the target perpendicular foot is the perpendicular foot P corresponding to the endpoint D, and the perpendicular foot P is on the first initial route AB.
[0112] The second initial route CD corresponding to the target perpendicular foot P can be extended to the target perpendicular foot P, that is, the endpoint D is connected to the target perpendicular foot P to obtain the route segment CP, and the target perpendicular foot P is determined as the intersection of the first initial route AB and the second initial route CD. According to the intersection point P, the first initial route AB is split into route segment AP and route segment BP, and the corresponding split route segments are route segment AP, route segment BP and route segment CP.
[0113] In some embodiments, when the electronic device determines that the first initial route and the second initial route do not intersect based on the first endpoint coordinates and the second endpoint coordinates, it can determine whether the first initial route and the second initial route are adjacent, and when it is determined that the first initial route and the second initial route are not adjacent, execute the steps of selecting any two initial routes from multiple initial routes in sequence, and record them as the first initial route and the second initial route respectively, and the subsequent steps, thereby realizing a cyclic traversal of multiple initial routes, ensuring that all intersecting initial routes are removed, which is beneficial to improving the accuracy of the road network.
[0114] In one application scenario, such as Figure 8 As shown, the road network wire removal processing method may include steps S11 to S26.
[0115] Step S11: Input the drawn initial road network information (road network Json file information).
[0116] Step S12: split the linestrip in the road network Json file information into multiple straight lines to obtain multiple initial routes.
[0117] Step S13: Select any two initial routes from the multiple initial routes in sequence, and record them as the first initial route (line 1) and the second initial route (line 2) respectively.
[0118] Specifically, taking an initial route of a certain day among the multiple initial routes as a reference, all other initial routes are traversed in a loop.
[0119] Step S14: Determine whether line 1 and line 2 are adjacent.
[0120] When line 1 and line 2 are not adjacent, execute step S15;
[0121] When line 1 and line 2 are adjacent, the process returns to step S13.
[0122] Step S15: Determine whether line 1 and line 2 intersect.
[0123] When line 1 and line 2 do not intersect, execute step S16;
[0124] When line 1 and line 2 intersect, step S17 is executed.
[0125] Step S16: Determine whether line 1 and line 2 are adjacent.
[0126] When line 1 and line 2 are adjacent, step S18 is executed.
[0127] When line 1 and line 2 are not adjacent, the process returns to step S13.
[0128] Step S17: Determine the intersection of line 1 and line 2.
[0129] Step S18: determine the corresponding target perpendicular foot, extend the initial route corresponding to the target perpendicular foot to the target perpendicular foot, determine the target perpendicular foot as an intersection, and perform a thread-removal process on another initial route according to the intersection to obtain a corresponding thread-removal route segment.
[0130] Step S19: Determine whether the intersection point is the endpoint of line 1 or the endpoint of line 2.
[0131] When the intersection coordinates are the endpoints of line 1, execute step S20;
[0132] When the intersection coordinates are the endpoints of line 2, execute step S21;
[0133] When the intersection coordinates are not the endpoints of line 1 and line 2, step S22 is executed.
[0134] Step S20: performing line removal processing on line 2 according to the intersection point to obtain the corresponding line removal route segment.
[0135] Step S21: performing line removal processing on line 1 according to the intersection point to obtain the corresponding line removal route segment.
[0136] Step S22: Calculate the minimum value of the distances from the four endpoints of line 1 and line 2 to the intersection point, and record it as the minimum intersection distance.
[0137] Step S23: Determine whether the minimum intersection distance is less than a first distance threshold.
[0138] When the minimum intersection distance is less than the first distance threshold, executing step S24;
[0139] When the minimum intersection distance is greater than or equal to the first distance threshold, step S25 is executed.
[0140] Step S24: The endpoints corresponding to the minimum intersection distance are connected to the intersection point, and the route segment corresponding to the minimum intersection distance is deleted from the corresponding initial route, and another initial route is de-threaded according to the intersection point to obtain the corresponding de-threaded route segment.
[0141] Step S25: performing line removal processing on line 1 and line 2 according to the intersection point to obtain corresponding line removal route segments.
[0142] Step S26: outputting the suture removal route segment.
[0143] like Fig. 9 As shown, it shows a scenario schematic diagram of a wire removal route segment in a road network wire removal processing method.
[0144] Step S140: Generate a corresponding adjacency table according to the line removal route segment.
[0145] In an embodiment of the present application, when the electronic device determines that the first initial route intersects with the second initial route, the first initial route and the second initial route are processed according to the corresponding intersection points, and after obtaining the corresponding route segments, the corresponding adjacency table can be generated according to the route segments, so as to automatically process the intersecting initial routes of any two selected in sequence, and quickly generate the corresponding adjacency table according to the route segments after the process of processing, thereby improving the efficiency of generating the road network. In addition, the scheme provided by the present application processes the intersecting initial routes according to the intersection points of any two intersecting initial routes, thereby ensuring that the road network superimposed and drawn at the intersection of the passable area has a high similarity with the real road network, which is conducive to improving the planning accuracy of route planning using the adjacency table.
[0146] In some embodiments, after the electronic device generates a corresponding adjacency list according to the removal route segment, it can send the adjacency list to the cloud platform through the network. The cloud platform receives and stores the adjacency list sent by the electronic device, thereby realizing cloud deployment of the road network. When using the road network for route planning, route planning can be performed by calling the cloud platform, which can reduce the computing resource consumption of the electronic device and improve the operating efficiency of the electronic device.
[0147] Among them, the cloud platform can be an independent physical cloud platform, or a cloud platform cluster or distributed system composed of multiple physical cloud platforms, or any one of the cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), big data or artificial intelligence platforms, etc.
[0148] The solution provided in this embodiment obtains initial road network information, which includes multiple initial routes, and selects any two initial routes from the multiple initial routes in turn, which are recorded as the first initial route and the second initial route respectively, and when it is determined that the first initial route intersects with the second initial route, the first initial route and the second initial route are processed according to the corresponding intersection to obtain the corresponding route segment, which has the intersection as the common endpoint, and generates the corresponding adjacency table according to the route segment, so as to realize the automatic processing of the first and second intersecting initial routes selected in turn, and quickly generate the corresponding adjacency table according to the route segment after the processing, thereby improving the generation efficiency of the road network. In addition, the solution provided in this application processes the first and second initial routes according to the intersection of any two intersecting initial routes, thereby ensuring that the road network superimposed and drawn at the intersection of the passable area has a high similarity with the real road network, which is conducive to improving the planning accuracy of route planning using the adjacency table.
[0149] See also Fig.10 , which shows a flow chart of a road network generation method provided by another embodiment of the present application. In a specific embodiment, the road network generation method can be applied to electronic devices. Fig.10 The process shown is described in detail, and the road network generation method may include the following steps S210 to S270.
[0150] Step S210: Acquire initial road network information.
[0151] Step S220: selecting any two initial routes from the multiple initial routes in sequence, and recording them as the first initial route and the second initial route respectively.
[0152] Step S230: when it is determined that the first initial route intersects with the second initial route, a thread-removing process is performed on the first initial route and the second initial route according to the corresponding intersection point to obtain a corresponding thread-removing route segment.
[0153] Step S240: Generate a corresponding adjacency table according to the line removal route segment.
[0154] In this embodiment, step S210, step S220, step S230 and step S240 may refer to the contents of the corresponding steps in the aforementioned embodiments, which will not be described in detail here.
[0155] Step S250: Obtain a route planning request.
[0156] In this embodiment, after the electronic device generates a corresponding adjacency table according to the unthreading route segment, it can obtain a route planning request, wherein the route planning request can carry a route planning start point and a route planning end point, and the route planning start point and the route planning end point can be included in the adjacency table.
[0157] In some embodiments, the electronic device may include an input panel, and a user may input a route planning starting point and a route planning end point on the input panel of the electronic device. The electronic device receives the route planning starting point and the route planning end point through the input panel, and generates a corresponding route planning request based on the route planning starting point and the route planning end point.
[0158] In some embodiments, the electronic device may include a voice recognition module, and the user can send a second voice message carrying the route planning starting point and the route planning end point within the voice collection range of the voice recognition module. The electronic device collects the second voice message through the voice recognition module, and performs voice recognition on the second voice message to obtain the route planning starting point and the route planning end point, and generates a corresponding recorded planning request based on the route planning starting point and the route planning end point.
[0159] In some embodiments, a user can send a route planning request containing a route planning starting point and a route planning end point to a client. The client receives and responds to the route planning request, forwards the route planning request to an electronic device via a network, and the electronic device receives the route planning request forwarded by the client.
[0160] Step S260: In response to the route planning request, a corresponding planned route is generated according to the adjacency table.
[0161] In this embodiment, after obtaining the route planning request, the electronic device can respond to the route planning request, calculate the corresponding route distance according to the route planning starting point, the route planning end point and the preset algorithm, and generate the corresponding planned route according to the route distance and the adjacency table. The preset algorithm can be a Manhattan distance algorithm or a Euclidean distance algorithm.
[0162] In some embodiments, the preset algorithm is a Manhattan distance algorithm. After receiving a route planning request, the electronic device can respond to the route planning request, calculate the corresponding route distance based on the route planning starting point, the route planning end point and the Manhattan distance algorithm, and generate a corresponding planned route based on the route distance and the adjacency table.
[0163] In some embodiments, the preset algorithm is a Euclidean distance algorithm. After receiving a route planning request, the electronic device can respond to the route planning request, calculate the corresponding route distance based on the route planning starting point, the route planning end point and the Euclidean distance algorithm, and generate a corresponding planned route based on the route distance and the adjacency table.
[0164] Step S270: Output the planned route.
[0165] In this embodiment, after the electronic device generates a corresponding planned route according to the adjacency table in response to a route planning request, it can output the planned route, thereby achieving generation of a corresponding planned route based on the adjacency table when a route planning request is obtained, thereby improving the user's route planning experience.
[0166] In some embodiments, there may be multiple planned routes. After the electronic device generates a corresponding planned route according to the adjacency table in response to a route planning request, it can obtain the route distance of each planned route, sort each planned route in order from small to large according to the corresponding route distance, and output the planned route ranked first. This achieves the output of the planned route with the shortest route distance based on the adjacency table when a route planning request is obtained, further improving the user's route planning experience.
[0167] The solution provided in this embodiment obtains the initial road network information, and selects any two initial routes from multiple initial routes in sequence, which are recorded as the first initial route and the second initial route respectively, and when it is determined that the first initial route intersects with the second initial route, the first initial route and the second initial route are processed according to the corresponding intersection, and the corresponding route segment is obtained. According to the route segment, a corresponding adjacency table is generated, and a route planning request is obtained, and in response to the route planning request, a corresponding planned route is generated according to the adjacency table, and the planned route is output, so that the automatic processing of the first and second intersecting initial routes selected in sequence is realized, and the corresponding adjacency table is quickly generated according to the route segment after the processing of the route segment, thereby improving the generation efficiency of the road network. In addition, the solution provided in this application processes the first and second initial routes according to the intersection of any two intersecting initial routes, so as to ensure that the road network superimposed and drawn at the intersection of the passable area has a high similarity with the real road network, which is conducive to improving the planning accuracy of route planning using the adjacency table.
[0168] Furthermore, in response to the acquired route planning request, a corresponding planned route is generated according to the adjacency table, thereby improving the user's route planning experience.
[0169] See also Fig.11 , which shows a road network generation device 300 provided by an embodiment of the present application. The road network generation device 300 can be applied to electronic devices. The following takes electronic devices as an example. Fig.11 The road network generating device 300 shown is described in detail. The road network generating device 300 may include an information acquisition module 310, a selection module 320, a line removal processing module 330 and an adjacency table generating module 340.
[0170] The information acquisition module 310 can be used to obtain initial road network information, which may include multiple initial routes; the selection module 320 can be used to select any two initial routes from the multiple initial routes in turn, and record them as the first initial route and the second initial route respectively; the line removal processing module 330 can be used to, when it is determined that the first initial route intersects with the second initial route, remove the line of the first initial route and the second initial route according to the corresponding intersection point to obtain the corresponding line removal route segment, and the line removal route segment has the intersection point as the common endpoint; the adjacency list generation module 340 can be used to generate the corresponding adjacency list according to the line removal route segment.
[0171] In some implementations, the stitch removal processing module 330 may include a first determining unit, a first stitch removal processing unit, and a second stitch removal processing unit.
[0172] The first determination unit can be used to determine whether the corresponding intersection point is the endpoint of the first initial route or the endpoint of the second initial route when it is determined that the first initial route intersects the second initial route; the first stitch-removing processing unit can be used to perform stitch-removing processing on the second initial route according to the intersection point to obtain the corresponding stitch-removing route segment when it is determined that the intersection point is the endpoint of the first initial route; the second stitch-removing processing unit can be used to perform stitch-removing processing on the first initial route according to the intersection point to obtain the corresponding stitch-removing route segment when it is determined that the intersection point is the endpoint of the second initial route.
[0173] In some implementations, the stitch removal processing module 330 may further include a calculation unit, a second determination unit, a deletion unit, and a third stitch removal processing unit.
[0174] The calculation unit can be used to calculate the first distance from the intersection to the endpoint of the first initial route and the second distance from the intersection to the endpoint of the second initial route when it is determined that the intersection is not the endpoint of the first initial route and the intersection is not the endpoint of the second initial route; the second determination unit can be used to determine whether the minimum distance between the first distance and the second distance is less than the first distance threshold; the deletion unit can be used to delete the route segment corresponding to the minimum distance from the corresponding initial route when it is determined that the minimum distance between the first distance and the second distance is less than the first distance threshold; the third thread removal processing unit can be used to perform thread removal processing on another initial route according to the intersection to obtain the corresponding thread removal route segment.
[0175] In some embodiments, the stitch removal processing module 330 may further include a fourth stitch removal processing unit.
[0176] The fourth stitch removal processing unit may be configured to perform stitch removal processing on the first initial route and the second initial route according to the intersection to obtain corresponding stitch removal route segments when it is determined that the minimum distance between the first distance and the second distance is greater than or equal to the first distance threshold.
[0177] In some implementations, the road network generating device 300 may further include a coordinate acquiring module and a first determining module.
[0178] The coordinate acquisition module can be used to perform stitching processing on the first initial route and the second initial route according to the corresponding intersection point when the stitching processing module 330 determines that the first initial route intersects the second initial route, and obtain the first endpoint coordinates of the first initial route and the second endpoint coordinates of the second initial route before obtaining the corresponding stitching route segment; the first determination module can be used to determine whether the first initial route intersects the second initial route based on the first endpoint coordinates and the second endpoint coordinates.
[0179] In some embodiments, the stitch removal processing module 330 may further include a fifth stitch removal processing unit.
[0180] The fifth stitch removal processing unit may be used to perform stitch removal processing on the first initial route and the second initial route according to the corresponding intersection point to obtain the corresponding stitch removal route segment when it is determined that the first initial route intersects the second initial route according to the first endpoint coordinates and the second endpoint coordinates.
[0181] In some implementations, the stitch removing module 330 may further include a third determining unit, a fourth determining unit, an extending unit, and a sixth stitch removing unit.
[0182] The third determination unit can be used to determine whether the first initial route is adjacent to the second initial route when it is determined that the first initial route and the second initial route do not intersect based on the first endpoint coordinates and the second endpoint coordinates; the fourth determination unit can be used to determine the corresponding target perpendicular foot when it is determined that the first initial route and the second initial route are adjacent, and the target perpendicular foot is the perpendicular foot corresponding to the minimum distance between the third distance from the first endpoint coordinate to the second initial route and the fourth distance from the second endpoint coordinate to the first initial route; the extension unit can be used to extend the initial route corresponding to the target perpendicular foot to the target perpendicular foot, and determine the target perpendicular foot as the intersection; the sixth stitch processing unit can be used to perform stitch processing on another initial route according to the intersection to obtain the corresponding stitch route segment.
[0183] In some implementations, the third determining unit may include a calculating subunit, a first determining subunit, and a second determining subunit.
[0184] The calculation subunit can be used to calculate the third distance from the first endpoint coordinates to the second initial route and the fourth distance from the second endpoint coordinates to the first initial route when it is determined that the first initial route and the second initial route do not intersect based on the first endpoint coordinates and the second endpoint coordinates; the first determination subunit can be used to determine that the first initial route is adjacent to the second initial route when the minimum distance between the third distance and the fourth distance is less than the second distance threshold; the second determination subunit can be used to determine that the first initial route and the second initial route are not adjacent to each other when the minimum distance between the third distance and the fourth distance is greater than or equal to the second distance threshold.
[0185] In some implementations, the stitch removal processing module 330 may further include a first execution unit.
[0186] The first execution unit may be configured to execute the step of sequentially selecting any two initial routes from a plurality of initial routes and recording them as the first initial route and the second initial route respectively and subsequent steps when it is determined that the first initial route and the second initial route are not adjacent.
[0187] In some implementations, the road network generating device 300 may further include a second determining module.
[0188] The second determination module may be used to determine whether the first initial route is adjacent to the second initial route before the first determination module determines whether the first initial route intersects the second initial route according to the first endpoint coordinates and the second endpoint coordinates.
[0189] In some implementations, the first determining module may include a fifth determining unit.
[0190] The fifth determining unit may be configured to determine whether the first initial route intersects the second initial route according to the first endpoint coordinates and the second endpoint coordinates when it is determined that the first initial route and the second initial route are not adjacent.
[0191] In some embodiments, the first endpoint coordinates may include a first coordinate and a second coordinate, and the second endpoint coordinates may include a third coordinate and a fourth coordinate; the second determination module may include a sixth determination unit, a seventh determination unit, and an eighth determination unit.
[0192] The sixth determination unit can be used to determine that the first initial route is adjacent to the second initial route when the first coordinate is the same as the third coordinate or the fourth coordinate; the seventh determination unit can be used to determine that the first initial route is adjacent to the second initial route when the second coordinate is the same as the third coordinate or the fourth coordinate; the eighth determination unit can be used to determine that the first initial route is not adjacent to the second initial route when the first coordinate is different from the third coordinate and the fourth coordinate, and the second coordinate is different from the third coordinate and the fourth coordinate.
[0193] In some implementations, the second determining module may further include a second executing unit.
[0194] The second execution unit may be configured to execute the step of sequentially selecting any two initial routes from the plurality of initial routes and recording them as the first initial route and the second initial route respectively and subsequent steps when it is determined that the first initial route is adjacent to the second initial route.
[0195] In some implementations, the information acquisition module 310 may include a first acquisition unit, a generation unit, and a second acquisition unit.
[0196] The first acquisition unit can be used to acquire laser radar point cloud data; the generation unit can be used to generate a corresponding tile map based on the laser radar point cloud data; the second acquisition unit can be used to acquire corresponding initial road network information based on the tile map.
[0197] In some embodiments, the second acquiring unit may include an input subunit and a receiving subunit.
[0198] The input subunit can be used to input the tile map to the Labelme software, so that the Labelme software generates and outputs the corresponding initial road network information according to the tile map; the receiving subunit can be used to receive the initial road network information output by the Labelme software.
[0199] In some implementations, the road network generating device 300 may further include a request obtaining module, a route generating module, and an output module.
[0200] The request acquisition module can be used to obtain a route planning request, which can carry a route planning starting point and a route planning end point, which can be included in an adjacency list; the route generation module can be used to respond to the route planning request and generate a corresponding planned route according to the adjacency list; the output module can be used to output the planned route.
[0201] In some implementations, there may be multiple planned routes, and the output module may include a third acquisition unit, a sorting unit, and an output unit.
[0202] The third acquisition unit can be used to acquire the route distance of each planned route; the sorting unit can be used to sort each planned route in ascending order according to the corresponding route distance; and the output unit can be used to output the planned route ranked first.
[0203] The solution provided in this embodiment obtains initial road network information, which includes multiple initial routes, and selects any two initial routes from the multiple initial routes in turn, which are recorded as the first initial route and the second initial route respectively, and when it is determined that the first initial route intersects with the second initial route, the first initial route and the second initial route are processed according to the corresponding intersection to obtain the corresponding route segment, which has the intersection as the common endpoint, and generates the corresponding adjacency table according to the route segment, so as to realize the automatic processing of the first and second intersecting initial routes selected in turn, and quickly generate the corresponding adjacency table according to the route segment after the processing, thereby improving the generation efficiency of the road network. In addition, the solution provided in this application processes the first and second initial routes according to the intersection of any two intersecting initial routes, thereby ensuring that the road network superimposed and drawn at the intersection of the passable area has a high similarity with the real road network, which is conducive to improving the planning accuracy of route planning using the adjacency table.
[0204] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Any processing method described in the method embodiment can be implemented by the corresponding processing module in the device embodiment, and will not be repeated one by one in the device embodiment.
[0205] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0206] See also Fig.12 , which shows a hardware structure diagram of an electronic device 900 provided by an embodiment of the present application. Fig.12As shown, the electronic device 900 may include a processor 910, an external memory interface 920, an internal memory 921, a Universal Serial Bus (USB) interface 930, a charging management module 940, a power management module 941, a battery 942, an antenna 1, an antenna 2, a mobile communication module 950, a wireless communication module 960, an audio module 970, a speaker 970A, a receiver 970B, a microphone 970C, an earphone interface 970D, a sensor module 980, a button 990, a motor 991, an indicator 992, a camera 993, a display screen 994, and a Subscriber Identification Module (SIM) card interface 995, etc. Among them, the sensor module 980 may include a pressure sensor 980A, a gyroscope sensor 980B, an air pressure sensor 980C, a magnetic sensor 980D, an acceleration sensor 980E, a distance sensor 980F, a proximity light sensor 980G, a fingerprint sensor 980H, a temperature sensor 980J, a touch sensor 980K, an ambient light sensor 980L, a bone conduction sensor 980M, etc.
[0207] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 900. In other embodiments of the present application, the electronic device 900 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0208] For example, Fig.12 The processor 910 shown may include one or more processing units, for example, the processor 910 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processor (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0209] The controller may be the nerve center and command center of the electronic device 900. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0210] The processor 910 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 910 is a cache memory. The memory may store instructions or data that the processor 910 has just used or cyclically used. If the processor 910 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 910, and thus improves the efficiency of the system.
[0211] In some embodiments, the processor 910 may include one or more interfaces. The interface may include an Inter-Integrated Circuit (I2C) interface, an Inter-Integrated Circuit Sound (I2S) interface, a Pulse Code Modulation (PCM) interface, a Universal Asynchronous Receiver / Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a General Purpose Input / Output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and / or a Universal Serial Bbus (USB) interface, etc.
[0212] In some embodiments, the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). The processor 910 may include multiple groups of I2C buses. The processor 910 may be coupled to the touch sensor 980K, the charger, the flash, the camera 993, etc. through different I2C bus interfaces. For example, the processor 910 may be coupled to the touch sensor 980K through the I2C interface, so that the processor 910 communicates with the touch sensor 980K through the I2C bus interface to realize the touch function of the electronic device 900.
[0213] In some embodiments, the I2S interface can be used for audio communication. The processor 910 can include multiple I2S buses. The processor 910 can be coupled to the audio module 970 via the I2S bus to achieve communication between the processor 910 and the audio module 970.
[0214] In some embodiments, the audio module 970 can transmit audio signals to the wireless communication module 960 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
[0215] In some embodiments, the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. The audio module 970 and the wireless communication module 960 can be coupled via a PCM bus interface.
[0216] In some embodiments, the audio module 970 can also transmit audio signals to the wireless communication module 960 through the PCM interface to implement the function of answering calls through a Bluetooth headset. It should be understood that both the I2S interface and the PCM interface can be used for audio communication.
[0217] In some embodiments, the UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. The UART interface is generally used to connect the processor 910 and the wireless communication module 960. For example, the processor 910 communicates with the Bluetooth module in the wireless communication module 960 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 970 can transmit an audio signal to the wireless communication module 960 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0218] In some embodiments, the MIPI interface can be used to connect the processor 910 with peripheral devices such as the display screen 994 and the camera 993. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. The processor 910 and the camera 993 communicate through the CSI interface to realize the shooting function of the electronic device 900. The processor 910 and the display screen 994 communicate through the DSI interface to realize the display function of the electronic device 900.
[0219] In some embodiments, the GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. The GPIO interface can be used to connect the processor 910 with the camera 993, the display screen 994, the wireless communication module 960, the audio module 970, the sensor module 980, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0220] Exemplarily, the USB interface 930 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 930 can be used to connect a charger to charge the electronic device 900, and can also be used to transfer data between the electronic device 900 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0221] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 900. In other embodiments of the present application, the electronic device 900 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0222] The charging management module 940 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 940 may receive charging input from a wired charger through the USB interface 930. In some wireless charging embodiments, the charging management module 940 may receive wireless charging input through a wireless charging coil of the electronic device 900. While the charging management module 940 is charging the battery 942, it may also power the electronic device through the power management module 941.
[0223] The power management module 941 can be used to connect the battery 942, the charging management module 940 and the processor 910. The power management module 941 receives input from the battery 942 and / or the charging management module 940, and supplies power to the processor 910, the internal memory 921, the external memory, the display screen 994, the camera 993 and the wireless communication module 960. The power management module 941 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 941 can also be set in the processor 910. In other embodiments, the power management module 941 and the charging management module 940 can also be set in the same device.
[0224] The wireless communication function of the electronic device 900 can be implemented through the antenna 1, the antenna 2, the mobile communication module 950, the wireless communication module 960, the modem processor, the baseband processor, etc.
[0225] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 900 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0226] The mobile communication module 950 can provide a wireless communication solution applied to the electronic device 900, such as at least one of the following solutions: a second generation (2G) mobile communication solution, a third generation (3G) mobile communication solution, a fourth generation (4G) mobile communication solution, and a fifth generation (5G) mobile communication solution. The mobile communication module 950 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 950 may receive electromagnetic waves from the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 950 may also amplify the signal modulated by the modulation and demodulation processor, and the amplified signal is converted into an electromagnetic wave and radiated out through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 950 may be arranged in the processor 910. In some embodiments, at least some of the functional modules of the mobile communication module 950 may be arranged in the same device as at least some of the modules of the processor 910.
[0227] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 970A, a receiver 970B, etc.), or displays an image or video through a display screen 994. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 910 and be set in the same device as the mobile communication module 950 or other functional modules.
[0228] The wireless communication module 960 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 900. The wireless communication module 960 can be one or more devices integrating at least one communication processing module. The wireless communication module 960 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 910. The wireless communication module 960 can also receive the signal to be sent from the processor 910, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0229] In some embodiments, the antenna 1 of the electronic device 900 is coupled to the mobile communication module 950, and the antenna 2 of the electronic device 900 is coupled to the wireless communication module 960, so that the electronic device 900 can communicate with the network and other electronic devices through wireless communication technology. The wireless communication technology may include at least one of the following communication technologies: Global System For Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wide-band Code Division Multiple Access (WCDMA), Time-division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, IR technology. The GNSS may include at least one of the following positioning technologies: Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), Beidou Navigation Satellite System (BDS), Quasi-zenith Satellite System (QZSS), and Satellite Based Augmentation Systems (SBAS).
[0230] The electronic device 900 implements the display function through a GPU, a display screen 994, and an application processor. The GPU is a microprocessor for image processing, and the GPU connects the display screen 994 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 910 may include one or more GPUs that execute program instructions to generate or change display information.
[0231] The display screen 994 is used to display images, videos, etc. The display screen 994 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light emitting diode (OLED), an active-matrix organic light emitting diode, an active-matrix organic light emitting diode (AMOLED), a flexible light emitting diode (FLED), Mini-LED, Micro-LED, Micro-OLED, quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 900 may include 1 or N display screens 994, where N is a positive integer greater than 1.
[0232] The electronic device 900 can realize the shooting function through an ISP, a camera 993, a video codec, a GPU, a display screen 994, and an application processor.
[0233] ISP is used to process the data fed back by camera 993. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 993.
[0234] The camera 993 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 900 may include 1 or N cameras 993, where N is a positive integer greater than 1.
[0235] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 900 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0236] The video codec is used to compress or decompress digital video. The electronic device 900 may support one or more video codecs. Thus, the electronic device 900 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0237] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the electronic device 900 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0238] The external memory interface 920 can be used to connect an external memory card, such as a Secure Digital (SD) card, to expand the storage capacity of the electronic device 900. The external memory card communicates with the processor 910 through the external memory interface 920 to implement a data storage function. For example, files such as music and videos are stored in the external memory card.
[0239] The internal memory 921 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 910 executes various functional applications and data processing of the electronic device 900 by running the instructions stored in the internal memory 921. The internal memory 921 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 900 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 921 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (Universal Flash Storage, UFS), etc.
[0240] The electronic device 900 can implement audio functions such as music playing and recording through the audio module 970, the speaker 970A, the receiver 970B, the microphone 970C, the headphone jack 970D, and the application processor.
[0241] The audio module 970 can be used to convert digital audio information into analog audio signal output, and can also be used to convert analog audio input into digital audio signal. The audio module 970 can also be used to encode and decode audio signals. In some embodiments, the audio module 970 can be arranged in the processor 910, or some functional modules of the audio module 970 can be arranged in the processor 910.
[0242] The speaker 970A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 900 can listen to music or listen to a hands-free call through the speaker 970A.
[0243] The receiver 970B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 900 receives a call or voice message, the voice can be received by placing the receiver 970B close to the human ear.
[0244] Microphone 970C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 970C to input the sound signal into the microphone 970C. The electronic device 900 can be provided with at least one microphone 970C. In other embodiments, the electronic device 900 can be provided with two microphones 970C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 900 can also be provided with three, four or more microphones 970C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0245] The earphone interface 970D is used to connect a wired earphone and can be a USB interface 930, or a 3.5 mm Open Mobile Terminal Platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
[0246] The pressure sensor 980A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 980A can be set on the display screen 994. There are many types of pressure sensors 980A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 980A, the capacitance between the electrodes changes. The electronic device 900 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 994, the electronic device 900 detects the touch operation intensity according to the pressure sensor 980A. The electronic device 900 can also calculate the touch position according to the detection signal of the pressure sensor 980A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0247] The gyroscope sensor 980B can be used to determine the motion posture of the electronic device 900. In some embodiments, the angular velocity of the electronic device 900 around three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 980B. The gyroscope sensor 980B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 980B detects the angle of the electronic device 900 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 900 through reverse movement to achieve anti-shake. The gyroscope sensor 980B can also be used for navigation and somatosensory game scenes.
[0248] The air pressure sensor 980C is used to measure air pressure. In some embodiments, the electronic device 900 calculates the altitude, assists positioning and navigation through the air pressure value measured by the air pressure sensor 980C.
[0249] The magnetic sensor 980D includes a Hall sensor. The electronic device 900 can use the magnetic sensor 980D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 900 is a flip phone, the electronic device 900 can detect the opening and closing of the flip cover according to the magnetic sensor 980D, and set the flip cover to automatically unlock the features according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover.
[0250] The acceleration sensor 980E can detect the magnitude of the acceleration of the electronic device 900 in all directions (generally three axes). When the electronic device 900 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0251] The distance sensor 980F is used to measure the distance. The electronic device 900 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 900 can use the distance sensor 980F to measure the distance to achieve fast focusing.
[0252] The proximity light sensor 980G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 900 emits infrared light outward through the light emitting diode. The electronic device 900 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 900. When insufficient reflected light is detected, the electronic device 900 can determine that there is no object near the electronic device 900. The electronic device 900 can use the proximity light sensor 980G to detect that the user holds the electronic device 900 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 980G can also be used for automatic unlocking and locking of the screen in leather case mode and pocket mode.
[0253] The fingerprint sensor 980H is used to collect fingerprints. The electronic device 900 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0254] The temperature sensor 980J is used to detect temperature. In some embodiments, the electronic device 900 uses the temperature detected by the temperature sensor 980J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 980J exceeds a threshold, the electronic device 900 reduces the performance of the processor located near the temperature sensor 980J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 900 heats the battery 942 to avoid abnormal shutdown of the electronic device 900 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 900 performs a boost on the output voltage of the battery 942 to avoid abnormal shutdown caused by low temperature.
[0255] The touch sensor 980K is also called a "touch panel". The touch sensor 980K can be set on the display screen 994, and the touch sensor 980K and the display screen 994 form a touch screen, also called a "touch screen". The touch sensor 980K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 994. In other embodiments, the touch sensor 980K can also be set on the surface of the electronic device 900, which is different from the position of the display screen 994.
[0256] The ambient light sensor 980L is used to sense the ambient light brightness. The electronic device 900 can adaptively adjust the brightness of the display screen 994 according to the perceived ambient light brightness. The ambient light sensor 980L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 980L can also cooperate with the proximity light sensor 980G to detect whether the electronic device 900 is in a pocket to prevent accidental touches.
[0257] The bone conduction sensor 980M can obtain a vibration signal. In some embodiments, the bone conduction sensor 980M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 980M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 980M can also be set in an earphone and combined into a bone conduction earphone. The audio module 970 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 980M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 980M to realize a heart rate detection function.
[0258] The key 990 includes a power key, a volume key, etc. The key 990 may be a mechanical key or a touch key. The electronic device 900 may receive key input and generate key signal input related to user settings and function control of the electronic device 900.
[0259] Motor 991 can generate vibration prompts. Motor 991 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 994, motor 991 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0260] Indicator 992 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0261] The SIM card interface 995 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 900 by inserting it into the SIM card interface 995 or pulling it out from the SIM card interface 995. The electronic device 900 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 995 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 995 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 995 can also be compatible with different types of SIM cards. The SIM card interface 995 can also be compatible with external memory cards. The electronic device 900 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 900 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 900 and cannot be separated from the electronic device 900.
[0262] The software system of the electronic device 900 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
[0263] Fig.13 is a functional block diagram of an electronic device according to an embodiment of the present application. Fig.13 As shown, the electronic device 2000 includes: at least one processor 2001 ( Fig.13 Only one is shown in the figure) a processor, a memory 2002, and a computer program 2003 stored in the memory 2002 and executable on at least one processor 2001. When the processor 2001 executes the computer program 2003, the electronic device 2000 implements the steps of any one of the above methods.
[0264] Those skilled in the art will understand that Fig.13 This is merely an example of the electronic device 2000 and does not constitute a limitation on the electronic device 2000. In practice, the electronic device 2000 may include more or fewer components than those shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.
[0265] The processor 2001 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0266] In some embodiments, the memory 2002 may be an internal storage unit of the electronic device 2000, such as a hard disk or memory of the electronic device 2000. In other embodiments, the memory 2002 may also be an external storage device of the electronic device 2000, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 2000. Optionally, the memory 2002 may also include both an internal storage unit of the electronic device 2000 and an external storage device. The memory 2002 is used to store an operating system, an application program, a boot loader, data, and other programs, such as program codes of a computer program. The memory 2002 may also be used to temporarily store data that has been output or is to be output.
[0267] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0268] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0269] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is called by an electronic device, it can implement the methods described in the above-mentioned various method embodiments.
[0270] An embodiment of the present application also provides a computer program product, wherein the computer-readable storage medium stores program code. When the computer program product is run on an electronic device, the electronic device executes the above-mentioned related steps to implement the methods described in the above-mentioned various method embodiments.
[0271] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0272] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0273] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0274] In the embodiments provided in the present application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0275] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0276] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0277] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0278] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0279] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some implementations", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0280] 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A road network generation method, characterized in that: The road network generation method comprises: Acquiring initial road network information, wherein the initial road network information includes a plurality of initial routes; Select any two initial routes from the multiple initial routes in sequence, and record them as the first initial route and the second initial route respectively; When it is determined that the first initial route intersects with the second initial route, performing a stitch removal process on the first initial route and the second initial route according to the corresponding intersection point to obtain a corresponding stitch removal route segment, wherein the stitch removal route segment has the intersection point as a common endpoint; Generate a corresponding adjacency table according to the line removal route segment; When it is determined that the first initial route intersects with the second initial route, performing stitch removal processing on the first initial route and the second initial route according to the corresponding intersection point to obtain the corresponding stitch removal route segment includes: When it is determined that the first initial route intersects the second initial route, determining whether the corresponding intersection point is an endpoint of the first initial route or an endpoint of the second initial route; When the intersection is determined to be the endpoint of the first initial route, the second initial route is subjected to a wire-removing process according to the intersection to obtain a corresponding wire-removing route segment; or When the intersection is determined to be the endpoint of the second initial route, the first initial route is subjected to a wire-removing process according to the intersection to obtain a corresponding wire-removing route segment.
2. The road network generation method according to claim 1, characterized in that: The road network generation method further comprises: When it is determined that the intersection is not an endpoint of the first initial route and the intersection is not an endpoint of the second initial route, calculating a first distance from the intersection to the endpoint of the first initial route and a second distance from the intersection to the endpoint of the second initial route; determining whether a minimum distance between the first distance and the second distance is less than a first distance threshold; When it is determined that the minimum distance between the first distance and the second distance is less than the first distance threshold, deleting the route segment corresponding to the minimum distance from the corresponding initial route; Another initial route is subjected to a wire-removing process according to the intersection point to obtain a corresponding wire-removing route segment.
3. The road network generation method according to claim 2, characterized in that: The road network generation method further comprises: When it is determined that the minimum distance between the first distance and the second distance is greater than or equal to the first distance threshold, the first initial route and the second initial route are subjected to a stitch-removing process according to the intersection to obtain a corresponding stitch-removing route segment.
4. The road network generation method according to claim 1, characterized in that: When it is determined that the first initial route intersects with the second initial route, before performing line removal processing on the first initial route and the second initial route according to the corresponding intersection point and obtaining the corresponding line removal route segment, the road network generation method further includes: Acquire the coordinates of a first endpoint of the first initial route and the coordinates of a second endpoint of the second initial route; Determining whether the first initial route intersects the second initial route according to the first endpoint coordinates and the second endpoint coordinates; When it is determined that the first initial route intersects with the second initial route, performing stitch removal processing on the first initial route and the second initial route according to corresponding intersection points to obtain corresponding stitch removal route segments, including: When it is determined according to the first endpoint coordinates and the second endpoint coordinates that the first initial route intersects with the second initial route, the first initial route and the second initial route are subjected to stitch removal processing according to corresponding intersection points to obtain corresponding stitch removal route segments.
5. The road network generation method according to claim 4, characterized in that: The road network generation method further comprises: When it is determined according to the first endpoint coordinates and the second endpoint coordinates that the first initial route and the second initial route do not intersect, determining whether the first initial route and the second initial route are adjacent; When it is determined that the first initial route is adjacent to the second initial route, determining a corresponding target perpendicular foot, the target perpendicular foot being a perpendicular foot corresponding to a minimum distance between a third distance from the first endpoint coordinate to the second initial route and a fourth distance from the second endpoint coordinate to the first initial route; Extending the initial route corresponding to the target vertical foot to the target vertical foot, and determining the target vertical foot as the intersection; Another initial route is subjected to a wire-removing process according to the intersection point to obtain a corresponding wire-removing route segment.
6. The road network generation method according to claim 5, characterized in that: When it is determined according to the first endpoint coordinates and the second endpoint coordinates that the first initial route and the second initial route do not intersect, determining whether the first initial route and the second initial route are adjacent includes: When it is determined according to the first endpoint coordinates and the second endpoint coordinates that the first initial route does not intersect the second initial route, calculating a third distance from the first endpoint coordinates to the second initial route and a fourth distance from the second endpoint coordinates to the first initial route; When the minimum distance between the third distance and the fourth distance is less than a second distance threshold, it is determined that the first initial route is adjacent to the second initial route; or When the minimum distance between the third distance and the fourth distance is greater than or equal to a second distance threshold, it is determined that the first initial route is not adjacent to the second initial route.
7. The road network generation method according to claim 5, characterized in that: The road network generation method further comprises: When it is determined that the first initial route and the second initial route are not adjacent to each other, the step of sequentially selecting any two initial routes from the plurality of initial routes and recording them as the first initial route and the second initial route respectively and subsequent steps are performed.
8. The road network generation method according to claim 4, characterized in that: Before determining whether the first initial route intersects with the second initial route according to the first endpoint coordinates and the second endpoint coordinates, the road network generation method further includes: determining whether the first initial route is adjacent to the second initial route; The determining, according to the first endpoint coordinates and the second endpoint coordinates, whether the first initial route intersects with the second initial route includes: When it is determined that the first initial route and the second initial route are not adjacent, it is determined whether the first initial route and the second initial route intersect according to the first endpoint coordinates and the second endpoint coordinates.
9. The road network generation method according to claim 8, characterized in that: The first endpoint coordinates include a first coordinate and a second coordinate, and the second endpoint coordinates include a third coordinate and a fourth coordinate; and determining whether the first initial route is adjacent to the second initial route includes: When the first coordinate is the same as the third coordinate or the fourth coordinate, it is determined that the first initial route is adjacent to the second initial route; or, When the second coordinate is the same as the third coordinate or the fourth coordinate, it is determined that the first initial route is adjacent to the second initial route; or, When the first coordinate is different from the third coordinate and the fourth coordinate, and the second coordinate is different from the third coordinate and the fourth coordinate, it is determined that the first initial route is not adjacent to the second initial route.
10. The road network generation method according to claim 8, characterized in that: The road network generation method further comprises: When it is determined that the first initial route is adjacent to the second initial route, the step of sequentially selecting any two initial routes from a plurality of initial routes and recording them as the first initial route and the second initial route respectively and subsequent steps are performed.
11. The road network generation method according to claim 1, characterized in that: The obtaining of initial road network information includes: Get LiDAR point cloud data; Generate a corresponding tile map according to the laser radar point cloud data; According to the tile map, the corresponding initial road network information is obtained.
12. The road network generation method according to claim 11, characterized in that: The step of obtaining corresponding initial road network information according to the tile map includes: Inputting the tile map into Labelme software, so that the Labelme software generates and outputs corresponding initial road network information according to the tile map; Receive the initial road network information output by the Labelme software.
13. The road network generation method according to any one of claims 1 to 12, characterized in that: The road network generation method further comprises: Obtaining a route planning request, wherein the route planning request carries a route planning starting point and a route planning end point, and the route planning starting point and the route planning end point are included in the adjacency table; In response to the route planning request, generating a corresponding planned route according to the adjacency table; The planned route is output.
14. The road network generation method according to claim 13, characterized in that: There are multiple planned routes, and outputting the planned routes includes: Get the route distance of each planned route; Sort each planned route in ascending order according to the corresponding route distance; The planned route that comes first is output.
15. A road network generation device, characterized in that: The road network generating device comprises: An information acquisition module, used to acquire initial road network information, wherein the initial road network information includes a plurality of initial routes; A selection module, used for selecting any two initial routes from the multiple initial routes in sequence, which are respectively recorded as the first initial route and the second initial route; a thread removal processing module, configured to, when it is determined that the first initial route intersects with the second initial route, perform thread removal processing on the first initial route and the second initial route according to the corresponding intersection point to obtain a corresponding thread removal route segment, wherein the thread removal route segment has the intersection point as a common endpoint; An adjacency table generation module, used to generate a corresponding adjacency table according to the wire removal route segment; When it is determined that the first initial route intersects with the second initial route, performing stitch removal processing on the first initial route and the second initial route according to the corresponding intersection point to obtain the corresponding stitch removal route segment includes: When it is determined that the first initial route intersects the second initial route, determining whether the corresponding intersection point is an endpoint of the first initial route or an endpoint of the second initial route; When the intersection is determined to be the endpoint of the first initial route, performing a thread-removing process on the second initial route according to the intersection to obtain a corresponding thread-removing route segment; or When the intersection is determined to be the endpoint of the second initial route, the first initial route is subjected to a wire-removing process according to the intersection to obtain a corresponding wire-removing route segment.
16. An electronic device, characterized in that: The electronic device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electronic device executes the road network generation method as claimed in any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, and the program code can be called by an electronic device to execute the road network generation method as described in any one of claims 1 to 14.
