WO2021051568A1 - Method and apparatus for constructing road network topological structure, and computer device and storage medium - Google Patents

Method and apparatus for constructing road network topological structure, and computer device and storage medium Download PDF

Info

Publication number
WO2021051568A1
WO2021051568A1 PCT/CN2019/117699 CN2019117699W WO2021051568A1 WO 2021051568 A1 WO2021051568 A1 WO 2021051568A1 CN 2019117699 W CN2019117699 W CN 2019117699W WO 2021051568 A1 WO2021051568 A1 WO 2021051568A1
Authority
WO
WIPO (PCT)
Prior art keywords
bayonet
group
downstream
upstream
coordinate value
Prior art date
Application number
PCT/CN2019/117699
Other languages
French (fr)
Chinese (zh)
Inventor
王淼石
吴育人
魏萍
庄伯金
王少军
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021051568A1 publication Critical patent/WO2021051568A1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • G06V20/54Surveillance or monitoring of activities, e.g. for recognising suspicious objects of traffic, e.g. cars on the road, trains or boats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/63Scene text, e.g. street names
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0137Measuring and analyzing of parameters relative to traffic conditions for specific applications
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/017Detecting movement of traffic to be counted or controlled identifying vehicles
    • G08G1/0175Detecting movement of traffic to be counted or controlled identifying vehicles by photographing vehicles, e.g. when violating traffic rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/625License plates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Definitions

  • This application relates to the field of artificial intelligence, and in particular to a method, device, computer equipment, and storage medium for constructing a road network topology.
  • the topological structure of the road network plays an important role in electronic navigation and traffic flow monitoring.
  • the direction and connectivity of the road network topological structure play a decisive role in the automatic path planning of intelligent transportation systems.
  • the inventor realizes that the existing road network topology is mostly obtained through manual collection and drawing, which has the problems of time-consuming and labor-intensive, inaccuracy and incompleteness. Therefore, there is still a lack of an automated road network topology construction method in the prior art.
  • the purpose of the embodiments of the present application is to propose an automated road network topology construction method that does not require manual collection and drawing.
  • an embodiment of the present application provides a method for constructing a road network topology, including the following steps:
  • the vehicle flow data of the reference bayonet is compared with the traffic flow data of other bayonet bays to obtain the candidate upstream bayonet group and the candidate downstream bayonet group of each reference bayonet;
  • the candidate The upstream bayonet group includes multiple candidate upstream bayonet ports, and the candidate downstream bayonet group includes multiple candidate downstream bayonet ports;
  • the candidate upstream bayonet of the group is As the upstream bayonet of the reference bayonet;
  • the candidate downstream bayonet of the group is As the downstream bayonet of the reference bayonet;
  • an embodiment of the present application also provides a device for constructing a road network topology, including:
  • the acquisition module is used to acquire traffic flow data of each bayonet of the road network in a preset time period
  • Candidate bayonet determination module used to use any bayonet as the reference bayonet, compare the traffic data of the reference bayonet with the traffic flow data of other bayonets to obtain the candidate upstream bayonet groups and candidates for each reference bayonet Downstream bayonet group; the candidate upstream bayonet group includes multiple candidate upstream bayonet, and the candidate downstream bayonet group includes multiple candidate downstream bayonet;
  • the upstream bayonet determination module is used to divide the same candidate upstream bayonet in the candidate upstream bayonet group into one group, and count the number of candidate upstream bayonet in each group, when the number is greater than or equal to the determined threshold ,
  • the candidate upstream bayonet of the group is used as the upstream bayonet of the reference bayonet;
  • the downstream bayonet determination module is used to group the same candidate downstream bayonet in the candidate downstream bayonet group into one group, and count the number of candidate downstream bayonet in each group, when the number is greater than or equal to a certain threshold ,
  • the candidate downstream bayonet of the group is regarded as the downstream bayonet of the reference bayonet;
  • the construction module is used to construct a road network topology structure according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, and display the road network topology structure at the interactive interface.
  • an embodiment of the present application further provides a computer device, including a memory and a processor, the memory stores computer readable instructions, and the processor implements the above construction method when the computer readable instructions are executed. A step of.
  • the embodiments of the present application further provide one or more non-volatile readable storage media, the non-volatile readable storage medium stores computer readable instructions, and the computer readable instructions are The processor implements the steps of the above construction method when executed.
  • Figure 1 is an exemplary system architecture diagram to which the present application can be applied;
  • Fig. 2 is a flowchart of an embodiment of a method for constructing a road network topology according to the present application
  • Fig. 3 is an actual schematic diagram of the bayonet in the method for constructing a road network topology of the present application
  • FIG. 4 is a flowchart of a specific implementation of step 30 in FIG. 2;
  • FIG. 5 is a flowchart of a specific implementation of step 301 in FIG. 4;
  • FIG. 6 is a flowchart of a specific implementation of step 60 in FIG. 2;
  • Fig. 7 is a flowchart of another embodiment of a method for constructing a road network topology according to the present application.
  • Fig. 8 is a flowchart of another embodiment of a method for constructing a road network topology according to the present application.
  • Fig. 9 is a schematic structural diagram of an embodiment of a device for constructing a road network topology according to the present application.
  • FIG. 10 is a schematic structural diagram of a specific implementation of the candidate bayonet determination module 402 shown in FIG. 9;
  • Fig. 11 is a schematic structural diagram of an embodiment of a computer device according to the present application.
  • the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105.
  • the network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105.
  • the network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, and so on.
  • the user can use the terminal devices 101, 102, and 103 to interact with the server 105 through the network 104 to receive or send messages and so on.
  • Various communication client applications such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, and social platform software, may be installed on the terminal devices 101, 102, and 103.
  • the terminal devices 101, 102, 103 may be various electronic devices with display screens and support for web browsing, including but not limited to smart phones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, moving images) Experts compress standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image experts compress standard audio layer 4) players, laptop portable computers and desktop computers, etc.
  • MP3 players Motion Picture Experts Group Audio Layer III, moving images
  • MP4 Moving Picture Experts Group Audio Layer IV, dynamic image experts compress standard audio layer 4
  • laptop portable computers and desktop computers etc.
  • the server 105 may be a server that provides various services, for example, a background server that provides support for pages displayed on the terminal devices 101, 102, and 103.
  • the present application method for constructing the road network topology is generally provided by the embodiment of the server / terminal device performs, correspondingly, means constructed road network topology is generally provided in the server / terminal device.
  • terminal devices, networks, and servers in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of terminal devices, networks, and servers.
  • FIG. 2 there is shown a flowchart of an embodiment of a method for constructing a road network topology according to the present application.
  • the construction method of the road network topology includes the following steps:
  • Step 20 Obtain traffic flow data of each bayonet of the road network in a preset time period.
  • the traffic flow data may be data collected by a monitoring device (for example, a video monitoring device) set at the bayonet, which may include the image when the vehicle passes the bayonet, the time when the vehicle passes the bayonet, and the bayonet The unique identification of the vehicle, the license plate number of the passing vehicle, etc.
  • a monitoring device for example, a video monitoring device
  • the bayonet of the road network refers to the location on the road where monitoring facilities are set up to monitor the road conditions
  • the monitoring equipment refers to the electronic equipment used to collect data in the monitoring facilities.
  • the preset time period can be 1 hour, 2 hours, and so on. The preset time period can also be adjusted according to the amount of traffic data actually required.
  • the preset time period can be set during the peak traffic period (for example, from 8 am to 9 am If less traffic data is required, the preset time period can be set in the low traffic period (for example, the time period from 11 pm to 12 pm).
  • the preset time period can also span multiple days and multiple time periods. For example, the preset time period includes: 9:00 on June 27th Until 10:00 on June 27, 13:00 on June 27 to 14:00 on June 27, 9:00 on June 28 to 10:00 on June 28, June 28 From 13:00 on the day to 14:00 on the 28th of June.
  • Step 30 Use any bayonet as the reference bayonet, and compare the traffic data of the reference bayonet with the traffic flow data of other bayonet bays to obtain the candidate upstream bayonet group and the candidate downstream bayonet group of each reference bayonet;
  • the candidate upstream bayonet group includes multiple candidate upstream bayonet ports, and the candidate downstream bayonet group includes multiple candidate downstream bayonet ports.
  • the above step 30 may include:
  • Step 301 Extract the image of the license plate area in the pass-through images of the reference bayonet and other bayonet ports, and use the image of the license plate area as a comparison image.
  • Step 302 Calculate the similarity values between the respective comparison images, and place the traffic data corresponding to the comparison images whose similarity values are greater than the similarity threshold into the same traffic data group.
  • the similarity value between the comparison images can be directly calculated through the convolutional neural network.
  • the obtained similarity value can be in the range of 0 to 1.
  • the similarity threshold can be 0.6, 0.7, 0.8, and so on.
  • the similarity threshold can be selected according to the actual application.
  • Step 303 In the same traffic data group, take the passing time in the traffic data corresponding to the reference bayonet as the reference time, and place other bayonet corresponding to the traffic data whose passing time is greater than the reference time into the candidate downstream bayonet bayonet of the reference bayonet Group, put the other bayonet corresponding to the traffic flow data whose passing time is less than the reference time into the candidate upstream bayonet group of the reference bayonet.
  • the same traffic data group contains the following three traffic data: "Bayonet A, 9:00", “Bayonet B, 9:10", "Bayonet C, 9:00" 20 points".
  • bayonet A is used as the reference bayonet
  • bayonet B and bayonet C will be placed in the candidate downstream bayonet group of the reference bayonet.
  • bayonet B is used as the reference bayonet
  • bayonet A will be placed in the candidate upstream bayonet group of the reference bayonet
  • bayonet C will be placed in the candidate downstream bayonet group of the reference bayonet.
  • the above step 301 may include:
  • Step 3011 Identify the characters in the passing image, and extract the center pixel coordinate value, the upper left pixel coordinate value, the lower left pixel coordinate value, the upper right pixel coordinate value, and the lower right pixel coordinate value of the character in the passing image.
  • recognizing the characters in the passing image can be realized by recognizing the outline and shape of the characters. After identifying the characters in the image, a rectangular extraction frame can be obtained. The image of the character area is contained in the extraction frame. At this time, the center pixel coordinate value of the character, the upper left pixel coordinate value, the lower left pixel coordinate value, and the upper right pixel. The coordinate value and the pixel coordinate value of the lower right corner are respectively the coordinate value of the midpoint pixel of the extraction frame of the character, the coordinate value of the upper left pixel, the coordinate value of the lower left pixel, the coordinate value of the upper right pixel, and the coordinate of the lower right pixel. value.
  • the values are (300,110), (280,150), (280,70), (320,150), (280,70).
  • Step 3012 Calculate the average value of the center pixel coordinate values of all characters, and use it as the average center pixel coordinate value.
  • Step 3013 Calculate the difference between the center pixel coordinate value of each character and the average center pixel coordinate value.
  • the difference is less than the similar threshold
  • the upper left corner pixel coordinate value, the lower left corner pixel coordinate value, and the upper right corner pixel coordinate value of the corresponding character are calculated.
  • the pixel coordinate values of the lower right corner are respectively placed into the upper left corner pixel coordinate value group of the license plate, the lower left corner pixel coordinate value group of the license plate, the upper right corner pixel coordinate value group and the lower right corner pixel coordinate value group of the license plate.
  • the difference between the center pixel coordinate value of the character and the average center pixel coordinate value may be the Euclidean distance value.
  • the center pixel coordinate value is (100,100)
  • the average center pixel coordinate value is (130,140), that is, the Euclidean distance value
  • the similar threshold can be set to different values according to the actual test. Since the resolution of the pass image generally remains unchanged, the pixels of the license plate area image in the pass image generally have little change, so by setting the similar threshold to an appropriate value, it is judged whether the difference is less than the similar threshold. It can be judged whether the character is a character in the license plate area.
  • the difference is greater than the similar threshold, it means that the character is far away from the image of the license plate area in the passing image. It is very likely that it is not the character of the license plate, but other interfering characters. Therefore, the pixel coordinate value of the character is not Place the coordinate value group. In this way, the influence of disturbing characters on the image extraction result can be reduced.
  • Step 3014 Among all the pixel coordinates in the pixel coordinate value group of the upper left corner of the license plate, take the smallest abscissa as the abscissa of the pixel coordinate value of the upper left corner of the license plate, and take the largest ordinate as the ordinate of the pixel coordinate value of the upper left corner of the license plate. Compose the target pixel coordinate value in the upper left corner.
  • all the pixel coordinates of the pixel coordinate value group of the upper left corner of the license plate are (100, 100), (80, 99), (60, 110) as an example, at this time, the target pixel coordinate value of the upper left corner is (60, 110).
  • Step 3015 Among all the pixel coordinates in the pixel coordinate value group of the lower left corner of the license plate, take the smallest abscissa as the abscissa of the pixel coordinate value of the lower left corner of the license plate, and take the smallest ordinate as the ordinate of the pixel coordinate value of the lower left corner of the license plate. Compose the target pixel coordinate value in the lower left corner.
  • step 3015 taking all the pixel coordinates of the pixel coordinate value group of the lower left corner of the license plate as (100,50), (80,48), (60,59) as an example, at this time, the target pixel coordinate value of the lower left corner is ( 60,48).
  • Step 3016 Among all the pixel coordinates in the pixel coordinate value group of the upper right corner of the license plate, take the largest abscissa as the abscissa of the pixel coordinate value of the upper right corner of the license plate, and take the largest ordinate as the ordinate of the pixel coordinate value of the upper right corner of the license plate. Compose the target pixel coordinate value in the upper right corner.
  • step 3016 taking all the pixel coordinates of the pixel coordinate value group of the upper right corner of the license plate as (400, 100), (380, 99), (360, 110) as an example, at this time, the target pixel coordinate value of the upper right corner is (400, 110).
  • Step 3017 Among all the pixel coordinates in the pixel coordinate value group of the lower right corner of the license plate, take the largest abscissa as the abscissa of the pixel coordinate value of the lower right corner of the license plate, and take the smallest ordinate as the ordinate of the pixel coordinate value of the lower right corner of the license plate. Compose the target pixel coordinate value in the lower right corner.
  • step 3017 taking all the pixel coordinates of the pixel coordinate value group of the lower right corner of the license plate as (400, 50), (380, 49), (360, 60) as an example, at this time, the target pixel coordinate value of the lower right corner is ( 400,49).
  • Step 3018 Extract the image in the area composed of the upper left corner target pixel coordinate value, the lower left corner target pixel coordinate value, the upper right corner target pixel coordinate value and the lower right corner target pixel coordinate value from the passed image, and use it as the license plate area image.
  • the above step 3018 based on the examples of the above step 3014, the above step 3015, the above step 3016, and the above step 3017, that is, extract the (60,110), (60,48), (400,110) and (400,49 )
  • the image in the area composed of coordinate values is used as the image of the license plate area.
  • the vehicle flow data of the reference bayonet is compared with the vehicle flow data of other bayonet bays to obtain the candidate upstream bayonet group and the candidate downstream bayonet group for each reference bayonet. It can also be implemented in the following two ways :
  • the two traffic flows can be determined by comparing the similarity of the entire image Whether the vehicle of the data is the same, if it is the same, continue to compare the time of the two traffic data, and put the unique identifier of the bayonet corresponding to the traffic flow data with the time before it into the candidate upstream of the bayonet corresponding to the traffic data with the time later In the bayonet array, the unique identifier of the bayonet corresponding to the traffic flow data with the later time is placed in the candidate downstream bayonet bayonet array for the bayonet corresponding to the traffic flow data with the previous time.
  • the two vehicle flows can also be determined by comparing whether the license plate numbers are the same Whether the vehicle of the data is the same, if it is the same, continue to compare the time of the two traffic data, and put the unique identifier of the bayonet corresponding to the traffic flow data with the time before it into the candidate upstream of the bayonet corresponding to the traffic data with the time later In the bayonet array, the unique identifier of the bayonet corresponding to the traffic flow data with the later time is placed in the candidate downstream bayonet bayonet array for the bayonet corresponding to the traffic flow data with the previous time.
  • Step 40 Divide the same candidate upstream bayonet in the candidate upstream bayonet group into one group, and count the number of candidate upstream bayonet in each group. When the number is greater than or equal to a certain threshold, the upstream candidate of the group is The bayonet is used as the upstream bayonet of the reference bayonet.
  • the same candidate upstream bayonet in the candidate upstream bayonet group is divided into one group, and the number of candidate upstream bayonet in each group is counted.
  • the unique identifier of the same bayonet can be calculated in the candidate upstream bayonet.
  • the number of occurrences in the array is implemented. For example, if the unique identifier in the candidate upstream bayonet array includes "0001, 0002, 0001, 0002, 0002", then "0001" appears 2 times in the array, and "0002" appears 3 times in the array, then the bayonet
  • the number of upstream bayonet candidates in group A is two, and the number of upstream bayonet candidates in group B is three.
  • the determination threshold can be adjusted according to actual conditions, and it can be 1, 2, 10, 50, 100, and so on. For example, if the threshold is determined to be 3, the bayonet B is used as the upstream bayonet, and the bayonet A cannot be used as the upstream bayonet.
  • Step 50 Divide the same candidate downstream bayonet points in the candidate downstream bayonet group into one group, and count the number of candidate downstream bayonet points in each group. When the number is greater than or equal to a certain threshold, the candidate downstream bayonet of the group is counted.
  • the bayonet is the downstream bayonet of the reference bayonet.
  • the same candidate downstream bayonet points in the candidate downstream bayonet group are divided into one group, and the number of candidate downstream bayonet points in each group is counted. It is also possible to calculate the unique identification of the same bayonet at the candidate downstream card points.
  • the number of occurrences in the mouth array is implemented. For example, the unique identifier in the candidate downstream bayonet array includes "0001, 0002, 0001, 0002, 0002", then "0001" appears 2 times in the array, and "0002" appears 3 times in the array, then the bayonet
  • the number of downstream bayonet candidates for group A is 2, and the number of downstream bayonet candidates for bayonet group B is 3.
  • the determination threshold can be adjusted according to actual conditions, and it can be 1, 2, 10, 50, 100, and so on. For example, if the threshold is determined to be 3, the bayonet B is used as the downstream bayonet, and the bayonet A cannot be used as the downstream bayonet.
  • Step 60 Construct a road network topology structure according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, and display the road network topology at the interactive interface.
  • step 60 when the number of upstream bayonet and downstream bayonet corresponding to each reference bayonet is single, bayonet bays with upstream and downstream relationships can be connected to each other to obtain the road network topology.
  • the above step 60 may include:
  • Step 601 Use the upstream bayonet of the reference bayonet as the upstream bayonet to be connected, and use any upstream bayonet to be connected as the reference bayonet for connection, if there are no other upstream cards to be connected in the downstream bayonet connected to the reference bayonet Port, connect the reference bayonet as the upstream bayonet.
  • the reference bayonet is bayonet A
  • the upstream bayonet of bayonet A has bayonet B and bayonet C
  • the downstream bayonet of bayonet B only has A
  • the downstream bayonet of bayonet C There are bayonet A and bayonet B.
  • the downstream bayonet of bayonet C has other upstream bayonet to be connected (ie bayonet B), so bayonet C cannot be used as the upstream bayonet of bayonet A, and bayonet B will be used as the connection of bayonet A Upstream bayonet. That is, in the subsequent steps, bayonet A and bayonet C will not be connected, only bayonet B and bayonet A will be connected.
  • bayonet A, B, C are three bayonet on the same line, and bayonet B is between bayonet A and bayonet C.
  • bayonet A, B can be made , C is connected in sequence according to the actual lines, avoiding the error situation of bayonet A connecting bayonet B and bayonet C at the same time.
  • Step 602 Use the downstream bayonet of the reference bayonet as the downstream bayonet to be connected, and use any downstream bayonet to be connected as the reference bayonet for connection. If there is no other downstream card to be connected in the upstream bayonet connected to the reference bayonet Port, connect the reference bayonet as the downstream bayonet.
  • the reference bayonet is bayonet A
  • the downstream bayonet of bayonet A has bayonet B and bayonet C
  • the upstream bayonet of bayonet B only has A
  • the upstream bayonet of bayonet C There are bayonet A and bayonet B.
  • the upstream bayonet of bayonet C has other upstream bayonet to be connected (ie bayonet B), so bayonet C cannot be used as the downstream bayonet of bayonet A, and bayonet B will be used as the connection of bayonet A Downstream bayonet. That is, in the subsequent steps, bayonet A and bayonet C will not be connected, only bayonet B and bayonet A will be connected.
  • the bayonet A, B, C are three bayonet on the same line, and the bayonet B is between the bayonet A and the bayonet C.
  • the bayonet A, B can be made , C is connected in sequence according to the actual lines, avoiding the error situation of bayonet A connecting bayonet B and bayonet C at the same time.
  • Step 603 Connect the reference bayonet to the upstream bayonet at the interactive interface, and connect the reference bayonet to the downstream bayonet.
  • step 20 step 30, step 40, step 50 and step 60
  • the vehicle flow data of the reference bayonet is compared with the traffic flow data of other bayonet to obtain the candidate upstream bayonet group and the group of each reference bayonet.
  • Candidate downstream bayonet group then count the candidate upstream bayonet in the candidate upstream bayonet group to obtain the upstream bayonet of the reference bayonet, and count the candidate downstream bayonet in the candidate downstream bayonet group to obtain the downstream bayonet of the reference bayonet
  • the road network topology is constructed according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, so as to realize the automatic construction of road network topology and solve the lack of automation in the existing technology.
  • the problem of the construction method of the road network topology is constructed according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet.
  • the above-mentioned electronic device may also perform the following steps:
  • Step 31 Determine whether the difference between the transit time in the traffic flow data of each bayonet and the transit time in the traffic flow data of other bayonet ports is less than the time threshold. If so, the candidate upstream bayonet group and candidate for each bayonet Remove other bayonet points from the downstream bayonet group. If not, keep other bayonet points in the candidate upstream bayonet group and candidate downstream bayonet group of each bayonet.
  • the time threshold can be adjusted according to the actual situation, for example, the value can be 1 minute, 2 minutes, 10 minutes, etc. For example, if the passing time in the traffic data of bayonet A is 11:00, the passing time in the traffic data of bayonet B is 11:01, and the time threshold is 2 minutes, the difference in the passing time is 1. If the minute is less than the time threshold, the bayonet B is removed from the candidate upstream bayonet group and the downstream bayonet group of bayonet A.
  • bayonet bays are set on the U-turn lanes, and the relationship between these bayonet bays is not the real upstream and downstream relationship.
  • the bayonet is a U-turn relationship, rather than the real upstream and downstream relationship.
  • the bayonet that is actually a U-turn relationship from the candidate upstream bayonet group and the candidate downstream bayonet group, so that the constructed road network topology is more accurate.
  • the above-mentioned electronic device may also perform the following steps:
  • Step 51 Use the upstream bayonet of the reference bayonet as the upstream calibration bayonet to obtain the downstream bayonet of the upstream calibration bayonet.
  • Step 52 Compare the downstream bayonet with the reference bayonet. If they are the same, keep the upstream check bayonet in the upstream bayonet of the reference bayonet; if they are not the same, remove the upstream bayonet from the upstream bayonet of the reference bayonet Check the bayonet.
  • Step 53 Use the downstream bayonet of the reference bayonet as the downstream calibration bayonet to obtain the upstream bayonet of the downstream calibration bayonet.
  • Step 54 Compare the upstream bayonet with the reference bayonet. If they are the same, keep the downstream calibration bayonet in the downstream bayonet of the reference bayonet; if they are not the same, remove the downstream bayonet from the downstream bayonet of the reference bayonet Check the bayonet.
  • step 51, step 52, step 53, and step 54 for example, after step 50, the upstream bayonet of the bayonet B is obtained as A, and the downstream bayonet is C.
  • the upstream bayonet of bayonet A is D
  • the downstream bayonet is C.
  • the upstream bayonet of bayonet C is A
  • the downstream bayonet is E.
  • the upstream bayonet of bayonet B conflicts with the downstream bayonet C of bayonet A
  • the downstream bayonet of bayonet B conflicts with the upstream bayonet of bayonet C
  • the bayonet A and bayonet C conflict. It is a real upstream and downstream relationship, so the bayonet A is removed from the upstream bayonet of the bayonet B, and the bayonet C is removed from the downstream bayonet of the bayonet B.
  • the aforementioned storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
  • this application provides an embodiment of an apparatus for constructing a road network topology structure.
  • the apparatus embodiment corresponds to the method embodiment shown in FIG. 2.
  • the device can be applied to various electronic devices.
  • the apparatus 400 for constructing a road network topology structure of this embodiment includes: an acquisition module 401, a candidate bayonet determination module 402, an upstream bayonet determination module 403, a downstream bayonet determination module 404, and a construction module 405. among them:
  • the obtaining module 401 is configured to obtain traffic flow data of each bayonet of the road network in a preset time period.
  • the candidate bayonet determination module 402 is used to use any bayonet as a reference bayonet, and compare the traffic flow data of the reference bayonet with the traffic flow data of other bayonet bays to obtain the candidate upstream bayonet group and group of each reference bayonet.
  • Candidate upstream bayonet group contains multiple candidate upstream bayonet,
  • candidate downstream bayonet group contains multiple candidate downstream bayonet.
  • the upstream bayonet determination module 403 is used to divide the same candidate upstream bayonet in the candidate upstream bayonet group into one group and count the number of candidate upstream bayonet in each group. When the number is greater than or equal to the determined threshold, The candidate upstream bayonet of this group is regarded as the upstream bayonet of the reference bayonet.
  • the downstream bayonet determination module 404 is used to divide the same candidate downstream bayonet in the candidate downstream bayonet group into one group, and count the number of candidate downstream bayonet in each group, when the number is greater than or equal to the determined threshold,
  • the candidate downstream bayonet of this group is regarded as the downstream bayonet of the reference bayonet.
  • the construction module 405 is configured to construct a road network topology structure according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, and display the road network topology at the interactive interface.
  • the vehicle flow data of the reference bayonet is compared with the vehicle flow data of other bayonet bays to obtain the candidate upstream bayonet group and the candidate downstream bayonet group for each reference bayonet, and then the candidate upstream bayonet bays are counted.
  • the corresponding upstream bayonet and downstream bayonet construct a road network topology structure, so as to realize the automatic construction of the road network topology structure, and solve the problem of the lack of an automated road network topology construction method in the prior art.
  • the candidate bayonet determination module 402 includes an extraction unit 4021, a classification unit 4022, and a determination unit 4023. among them:
  • the extraction unit 4021 is configured to extract images of the license plate area in the pass images of the reference bayonet and other bayonet ports, and use the image of the license plate area as a comparison image;
  • the classification unit 4022 is used to calculate the similarity value between the comparison images, and place the traffic flow data corresponding to the comparison images whose similarity value is greater than the similarity threshold into the same traffic flow data group;
  • the determining unit 4023 is configured to use the passing time in the traffic flow data corresponding to the reference bayonet as the reference time within the same traffic flow data group, and place the other bayonet corresponding to the traffic flow data whose passing time is greater than the reference time into the reference bayonet candidates In the downstream bayonet group, other bayonets corresponding to the traffic flow data whose passing time is less than the reference time are placed into the candidate upstream bayonet group of the reference bayonet.
  • the specific limitation on the construction device of the road network topology is consistent with the construction method of the above road network topology, and in order to avoid repetition, it will not be repeated one by one.
  • FIG. 11 is a block diagram of the basic structure of the computer device in this embodiment.
  • the computer device 11 includes a memory 111, a processor 112, and a network interface 113 that are connected to each other in communication through a system bus. It should be pointed out that the figure only shows the computer device 11 with components 111-113, but it should be understood that it is not required to implement all of the illustrated components, and more or fewer components may be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculation and/or information processing in accordance with pre-set or stored instructions.
  • Its hardware includes, but is not limited to, a microprocessor, a dedicated Integrated Circuit (Application Specific Integrated Circuit, ASIC), Programmable Gate Array (Field-Programmable Gate Array, FPGA), Digital Processor (Digital Signal Processor, DSP), embedded equipment, etc.
  • ASIC Application Specific Integrated Circuit
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • DSP Digital Processor
  • the computer device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the computer device can interact with the user through a keyboard, a mouse, a remote control, a touch panel, or a voice control device.
  • the memory 111 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static memory Random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disks, optical disks, etc.
  • the memory 111 may be an internal storage unit of the computer device 11, such as a hard disk or a memory of the computer device 11.
  • the memory 111 may also be an external storage device of the computer device 11, for example, a plug-in hard disk equipped on the computer device 11, a smart media card (SMC), and a secure digital (Secure Digital, SD) card, flash card (Flash Card), etc.
  • the memory 111 may also include both an internal storage unit of the computer device 11 and an external storage device thereof.
  • the memory 111 is generally used to store an operating system and various application software installed in the computer device 11, such as readable instruction codes of a method for constructing a road network topology.
  • the memory 111 can also be used to temporarily store various types of data that have been output or will be output.
  • the processor 112 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments.
  • the processor 112 is generally used to control the overall operation of the computer device 11.
  • the processor 112 is configured to run the readable instruction code or process data stored in the memory 111, for example, run the readable instruction code of the method for constructing the road network topology.
  • the network interface 113 may include a wireless network interface or a wired network interface, and the network interface 113 is generally used to establish a communication connection between the computer device 11 and other electronic devices.
  • This application also provides another implementation manner, that is, to provide one or more non-volatile readable storage media, where the non-volatile readable storage medium stores readable instructions for constructing a road network topology,
  • the readable instructions for constructing the road network topology can be executed by at least one processor, so that the at least one processor executes the steps of the method for constructing a road network topology as described above.
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present application.
  • a terminal device which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Abstract

Embodiments of the present application relate to the field of artificial intelligence, and relate to a method for constructing a road network topological structure, comprising: obtaining traffic flow data of checkpoints of a road network within a preset time cycle; taking any one of the checkpoints as a reference checkpoint, and comparing the traffic flow data of the reference checkpoint and the traffic flow data of other checkpoints to obtain a candidate upstream checkpoint group and a candidate downstream checkpoint group of each reference checkpoint; determining upstream checkpoints of the reference checkpoint according to the candidate upstream checkpoint group; determining downstream checkpoints of the reference checkpoint according to the candidate downstream checkpoint group; and constructing a road network topological structure according to the reference checkpoints and the upstream checkpoints and downstream checkpoints corresponding to the reference checkpoints, and displaying the road network topological structure at an interactive interface. The present application further provides a device for constructing the road network topological structure, and a computer device and a storage medium. The present application can implement the automated construction of the road network topological structure.

Description

路网拓扑结构的构建方法、装置、计算机设备及存储介质Method, device, computer equipment and storage medium for constructing road network topology structure
本申请以2019年9月18日提交的申请号为201910883358.6,名称为“路网拓扑结构的构建方法、装置、计算机设备及存储介质”的中国发明专利申请为基础,并要求其优先权。This application is based on the Chinese invention patent application filed on September 18, 2019, with the application number 201910883358.6, titled "Methods, devices, computer equipment and storage media for the construction of road network topology", and claims its priority.
技术领域Technical field
本申请涉及人工智能领域,尤其涉及一种路网拓扑结构的构建方法、装置、计算机设备及存储介质。This application relates to the field of artificial intelligence, and in particular to a method, device, computer equipment, and storage medium for constructing a road network topology.
背景技术Background technique
道路网络的拓扑结构对于电子导航、交通流量监控具有重要作用,特别是道路网络拓扑结构的方向性和连通性对于智能交通系统的自动路径规划具有决定性的作用。然而,发明人意识到现有道路路网拓扑结构的获取大多是通过人工采集绘制,其存在耗时费力,且不准确、不完整的问题。因此,现有技术中还缺少一种自动化的路网拓扑结构的构建方法。The topological structure of the road network plays an important role in electronic navigation and traffic flow monitoring. In particular, the direction and connectivity of the road network topological structure play a decisive role in the automatic path planning of intelligent transportation systems. However, the inventor realizes that the existing road network topology is mostly obtained through manual collection and drawing, which has the problems of time-consuming and labor-intensive, inaccuracy and incompleteness. Therefore, there is still a lack of an automated road network topology construction method in the prior art.
发明内容Summary of the invention
本申请实施例的目的在于提出一种无须人工采集绘制的、自动化的路网拓扑结构的构建方法。The purpose of the embodiments of the present application is to propose an automated road network topology construction method that does not require manual collection and drawing.
为了解决上述技术问题,本申请实施例提供一种路网拓扑结构的构建方法,包括下述步骤:In order to solve the above technical problems, an embodiment of the present application provides a method for constructing a road network topology, including the following steps:
获取预设的时间周期内道路网络的各个卡口的车流数据;Obtain the traffic flow data of each bayonet of the road network in a preset time period;
以任意一个卡口作为基准卡口,将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组;所述候选上游卡口组包含有多个候选上游卡口,所述候选下游卡口组包含有多个候选下游卡口;Taking any bayonet as the reference bayonet, the vehicle flow data of the reference bayonet is compared with the traffic flow data of other bayonet bays to obtain the candidate upstream bayonet group and the candidate downstream bayonet group of each reference bayonet; the candidate The upstream bayonet group includes multiple candidate upstream bayonet ports, and the candidate downstream bayonet group includes multiple candidate downstream bayonet ports;
将所述候选上游卡口组中相同的候选上游卡口分为一组,并统计每组中候选上游卡口的个数,当个数大于或等于确定阈值时,将该组的候选上游卡口作为所述基准卡口的上游卡口;Divide the same candidate upstream bayonet in the candidate upstream bayonet group into one group, and count the number of candidate upstream bayonet in each group. When the number is greater than or equal to a certain threshold, the candidate upstream bayonet of the group is As the upstream bayonet of the reference bayonet;
将所述候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数,当个数大于或等于确定阈值时,将该组的候选下游卡口作为所述基准卡口的下游卡口;Divide the same candidate downstream bayonet in the candidate downstream bayonet group into one group, and count the number of candidate downstream bayonet in each group. When the number is greater than or equal to a certain threshold, the candidate downstream bayonet of the group is As the downstream bayonet of the reference bayonet;
根据各基准卡口和所述各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,并在交互界面处展示所述路网拓扑结构。Construct a road network topology structure according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, and display the road network topology at the interactive interface.
为了解决上述技术问题,本申请实施例还提供一种路网拓扑结构的构建装置,包括:In order to solve the above technical problems, an embodiment of the present application also provides a device for constructing a road network topology, including:
获取模块,用于获取预设的时间周期内道路网络的各个卡口的车流数据;The acquisition module is used to acquire traffic flow data of each bayonet of the road network in a preset time period;
候选卡口确定模块,用于以任意一个卡口作为基准卡口,将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组;所述候选上游卡口组包含有多个候选上游卡口,所述候选下游卡口组包含有多个候选下游卡口;Candidate bayonet determination module, used to use any bayonet as the reference bayonet, compare the traffic data of the reference bayonet with the traffic flow data of other bayonets to obtain the candidate upstream bayonet groups and candidates for each reference bayonet Downstream bayonet group; the candidate upstream bayonet group includes multiple candidate upstream bayonet, and the candidate downstream bayonet group includes multiple candidate downstream bayonet;
上游卡口确定模块,用于将所述候选上游卡口组中相同的候选上游卡口分为一组,并统计每组中候选上游卡口的个数,当个数大于或等于确定阈值时,将该组的候选上游卡口作为所述基准卡口的上游卡口;The upstream bayonet determination module is used to divide the same candidate upstream bayonet in the candidate upstream bayonet group into one group, and count the number of candidate upstream bayonet in each group, when the number is greater than or equal to the determined threshold , The candidate upstream bayonet of the group is used as the upstream bayonet of the reference bayonet;
下游卡口确定模块,用于将所述候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数,当个数大于或等于确定阈值时,将该组的候选下游卡口作为所述基准卡口的下游卡口;及The downstream bayonet determination module is used to group the same candidate downstream bayonet in the candidate downstream bayonet group into one group, and count the number of candidate downstream bayonet in each group, when the number is greater than or equal to a certain threshold , The candidate downstream bayonet of the group is regarded as the downstream bayonet of the reference bayonet; and
构建模块,用于根据各基准卡口和所述各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,并在交互界面处展示所述路网拓扑结构。The construction module is used to construct a road network topology structure according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, and display the road network topology structure at the interactive interface.
为了解决上述技术问题,本申请实施例还提供一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述处理器执行所述计算机可读指令时实现上述构建方法的步骤。In order to solve the above technical problem, an embodiment of the present application further provides a computer device, including a memory and a processor, the memory stores computer readable instructions, and the processor implements the above construction method when the computer readable instructions are executed. A step of.
为了解决上述技术问题,本申请实施例还提供一个或多个非易失性可读存储介质,所述非易失性可读存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现 上述构建方法的步骤。In order to solve the above technical problems, the embodiments of the present application further provide one or more non-volatile readable storage media, the non-volatile readable storage medium stores computer readable instructions, and the computer readable instructions are The processor implements the steps of the above construction method when executed.
本申请的一个或多个实施例的细节在下面的附图和描述中提出,本申请的其他特征和优点将从说明书、附图以及权利要求变得明显。The details of one or more embodiments of the present application are set forth in the following drawings and description, and other features and advantages of the present application will become apparent from the description, drawings, and claims.
附图说明Description of the drawings
为了更清楚地说明本申请中的方案,下面将对本申请实施例描述中所需要使用的附图作一个简单介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the solution in this application more clearly, the following will briefly introduce the drawings used in the description of the embodiments of the application. Obviously, the drawings in the following description are some embodiments of the application. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图1是本申请可以应用于其中的示例性系统架构图;Figure 1 is an exemplary system architecture diagram to which the present application can be applied;
图2是根据本申请的路网拓扑结构的构建方法的一个实施例的流程图;Fig. 2 is a flowchart of an embodiment of a method for constructing a road network topology according to the present application;
图3是本申请的路网拓扑结构的构建方法中卡口的实际示意图;Fig. 3 is an actual schematic diagram of the bayonet in the method for constructing a road network topology of the present application;
图4是图2中步骤30的一种具体实施方式的流程图;FIG. 4 is a flowchart of a specific implementation of step 30 in FIG. 2;
图5是图4中步骤301的一种具体实施方式的流程图;FIG. 5 is a flowchart of a specific implementation of step 301 in FIG. 4;
图6是图2中步骤60的一种具体实施方式的流程图;FIG. 6 is a flowchart of a specific implementation of step 60 in FIG. 2;
图7是根据本申请的路网络拓扑结构的构建方法的另一个实施例的流程图;Fig. 7 is a flowchart of another embodiment of a method for constructing a road network topology according to the present application;
图8是根据本申请的路网拓扑结构的构建方法的又一个实施例的流程图;Fig. 8 is a flowchart of another embodiment of a method for constructing a road network topology according to the present application;
图9是根据本申请的路网拓扑结构的构建装置的一个实施例的结构示意图;Fig. 9 is a schematic structural diagram of an embodiment of a device for constructing a road network topology according to the present application;
图10是图9所示候选卡口确定模块402的一种具体实施方式的结构示意图;10 is a schematic structural diagram of a specific implementation of the candidate bayonet determination module 402 shown in FIG. 9;
图11是根据本申请的计算机设备的一个实施例的结构示意图。Fig. 11 is a schematic structural diagram of an embodiment of a computer device according to the present application.
具体实施方式detailed description
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同;本文中在申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请;本申请的说明书和权利要求书及上述附图说明中的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。本申请的说明书和权利要求书或上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。Unless otherwise defined, all technical and scientific terms used herein have the same meanings as commonly understood by those skilled in the technical field of the application; the terms used in the specification of the application herein are only for describing specific embodiments. The purpose is not to limit the application; the terms "including" and "having" in the specification and claims of the application and the above-mentioned description of the drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the application or the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific sequence.
为了使本技术领域的人员更好地理解本申请方案,下面将结合附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings.
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, and so on.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。The user can use the terminal devices 101, 102, and 103 to interact with the server 105 through the network 104 to receive or send messages and so on. Various communication client applications, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, and social platform software, may be installed on the terminal devices 101, 102, and 103.
终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture ExpertsGroup Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving PictureExperts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, 103 may be various electronic devices with display screens and support for web browsing, including but not limited to smart phones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, moving images) Experts compress standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image experts compress standard audio layer 4) players, laptop portable computers and desktop computers, etc.
服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103上显示的页面提供支持的后台服务器。The server 105 may be a server that provides various services, for example, a background server that provides support for pages displayed on the terminal devices 101, 102, and 103.
需要说明的是,本申请实施例所提供的路网拓扑结构的构建方法一般由 服务器/终端设备执行,相应地,路网拓扑结构的构建装置一般设置于 服务器/终端设备中。 Incidentally, the present application method for constructing the road network topology is generally provided by the embodiment of the server / terminal device performs, correspondingly, means constructed road network topology is generally provided in the server / terminal device.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks, and servers in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of terminal devices, networks, and servers.
继续参考图2,示出了根据本申请的路网拓扑结构的构建方法的一个实施例的流程图。所述的路网拓扑结构的构建方法,包括以下步骤:Continuing to refer to FIG. 2, there is shown a flowchart of an embodiment of a method for constructing a road network topology according to the present application. The construction method of the road network topology includes the following steps:
步骤20:获取预设的时间周期内道路网络的各个卡口的车流数据。Step 20: Obtain traffic flow data of each bayonet of the road network in a preset time period.
在上述步骤20中,车流数据可以是由设置于卡口的监控设备(例如,视频监控设备)采集的数据,其可以包括车辆通过卡口时的图像、车辆通过卡口时的时间、卡口的唯一标识、通过车辆的车牌号等。如图3所示,道路网络的卡口是指道路上设置有监控设施以监控道路情况的位置,监控设备是指监控设施中用于采集数据的电子设备。预设的时间周期可以是1小时、2小时等。预设的时间周期也可以根据实际需要的车流数据的多少进行调整,例如,需要较多的车流数据,则可以将预设的时间周期设定在交通高峰期(例如,早上八点至早上九点的时间段),需要较少的车流数据,则可以将预设的时间周期设定在交通低谷期(例如,晚上十一点至晚上十二点的时间段)。另外,为了避免因监控设备偶然失常造成卡口的车流数据丢失,预设的时间周期还可以跨越多个天数和多个时间段,例如,预设的时间周期包括:6月27日9点00分至6月27日10点00分,6月27日13点00分至6月27日14点00分,6月28日9点00分至6月28日10点00分,6月28日13点00分至6月28日14点00分。In the above step 20, the traffic flow data may be data collected by a monitoring device (for example, a video monitoring device) set at the bayonet, which may include the image when the vehicle passes the bayonet, the time when the vehicle passes the bayonet, and the bayonet The unique identification of the vehicle, the license plate number of the passing vehicle, etc. As shown in Figure 3, the bayonet of the road network refers to the location on the road where monitoring facilities are set up to monitor the road conditions, and the monitoring equipment refers to the electronic equipment used to collect data in the monitoring facilities. The preset time period can be 1 hour, 2 hours, and so on. The preset time period can also be adjusted according to the amount of traffic data actually required. For example, if more traffic data is required, the preset time period can be set during the peak traffic period (for example, from 8 am to 9 am If less traffic data is required, the preset time period can be set in the low traffic period (for example, the time period from 11 pm to 12 pm). In addition, in order to avoid the loss of traffic data at the bayonet due to accidental malfunction of the monitoring equipment, the preset time period can also span multiple days and multiple time periods. For example, the preset time period includes: 9:00 on June 27th Until 10:00 on June 27, 13:00 on June 27 to 14:00 on June 27, 9:00 on June 28 to 10:00 on June 28, June 28 From 13:00 on the day to 14:00 on the 28th of June.
步骤30:以任意一个卡口作为基准卡口,将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组;候选上游卡口组包含有多个候选上游卡口,候选下游卡口组包含有多个候选下游卡口。Step 30: Use any bayonet as the reference bayonet, and compare the traffic data of the reference bayonet with the traffic flow data of other bayonet bays to obtain the candidate upstream bayonet group and the candidate downstream bayonet group of each reference bayonet; The candidate upstream bayonet group includes multiple candidate upstream bayonet ports, and the candidate downstream bayonet group includes multiple candidate downstream bayonet ports.
进一步地,如图4所示,当车流数据包括有车辆通过卡口时的通过图像和车辆通过卡口时的通过时间时,上述步骤30可以包括:Further, as shown in FIG. 4, when the traffic flow data includes the passing image when the vehicle passes through the bayonet and the passing time when the vehicle passes through the bayonet, the above step 30 may include:
步骤301:提取基准卡口和其他卡口的通过图像中车牌区域的图像,将车牌区域的图像作为比对图像。Step 301: Extract the image of the license plate area in the pass-through images of the reference bayonet and other bayonet ports, and use the image of the license plate area as a comparison image.
步骤302:计算各个比对图像间的相似值,将相似值大于相似阈值的比对图像对应的车流数据置入同一车流数据组。Step 302: Calculate the similarity values between the respective comparison images, and place the traffic data corresponding to the comparison images whose similarity values are greater than the similarity threshold into the same traffic data group.
在上述步骤302中,可以通过卷积神经网络直接计算各比对图像间的相似值。所得到的相似值可以处于0~1的范围内,此时,相似阈值可以取值为0.6、0.7、0.8等。相似阈值可以根据实际应用情况选择合适的值。In the above step 302, the similarity value between the comparison images can be directly calculated through the convolutional neural network. The obtained similarity value can be in the range of 0 to 1. In this case, the similarity threshold can be 0.6, 0.7, 0.8, and so on. The similarity threshold can be selected according to the actual application.
步骤303:在同一车流数据组内,以基准卡口对应的车流数据中的通过时间为基准时间,将通过时间大于基准时间的车流数据对应的其他卡口置入基准卡口的候选下游卡口组,将通过时间小于基准时间的车流数据对应的其他卡口置入基准卡口的候选上游卡口组。Step 303: In the same traffic data group, take the passing time in the traffic data corresponding to the reference bayonet as the reference time, and place other bayonet corresponding to the traffic data whose passing time is greater than the reference time into the candidate downstream bayonet bayonet of the reference bayonet Group, put the other bayonet corresponding to the traffic flow data whose passing time is less than the reference time into the candidate upstream bayonet group of the reference bayonet.
在上述步骤303中,例如,在同一车流数据组内包含有以下三条车流数据:“卡口A,9点00分”、“卡口B,9点10分”、“卡口C,9点20分”。以卡口A为基准卡口时,卡口B和卡口C将被置入基准卡口的候选下游卡口组。以卡口B为基准卡口时,卡口A将被置入基准卡口的候选上游卡口组,卡口C将被置入基准卡口的候选下游卡口组。In the above step 303, for example, the same traffic data group contains the following three traffic data: "Bayonet A, 9:00", "Bayonet B, 9:10", "Bayonet C, 9:00" 20 points". When bayonet A is used as the reference bayonet, bayonet B and bayonet C will be placed in the candidate downstream bayonet group of the reference bayonet. When bayonet B is used as the reference bayonet, bayonet A will be placed in the candidate upstream bayonet group of the reference bayonet, and bayonet C will be placed in the candidate downstream bayonet group of the reference bayonet.
再进一步地,如图5所示,上述步骤301可以包括:Furthermore, as shown in FIG. 5, the above step 301 may include:
步骤3011:识别通过图像中的字符,并提取字符在通过图像中的中心像素坐标值、左上角像素坐标值、左下角像素坐标值、右上角像素坐标值和右下角像素坐标值。Step 3011: Identify the characters in the passing image, and extract the center pixel coordinate value, the upper left pixel coordinate value, the lower left pixel coordinate value, the upper right pixel coordinate value, and the lower right pixel coordinate value of the character in the passing image.
在上述步骤3011中,识别通过图像中的字符可以通过识别字符的轮廓,形状等方式实现。识别通过图像中的字符后可以得到矩形的提取框,字符区域的图像被容纳在提取框内,此时,字符的中心像素坐标值、左上角像素坐标值、左下角像素坐标值、右上角像素坐标值和右下角像素坐标值即分别为该字符的提取框的中点像素的坐标值、左上角像素的坐标值、左下角像素的坐标值、右上角像素的坐标值和右下角像素的坐标值。例如,提取到字符“粤”的中心像素坐标值、左上角像素坐标值、左下角像素坐标值、右上角像素坐标值和右下角像素坐标值分别为(100,100)、(80,140)、(80,60)、(120,140)和(120,60)......字符“5”的中心像素坐标值、左上角像素坐标值、左下角像素坐标值、右上角像素坐标值和右下角像素坐标值分别为(300,110)、(280,150)、(280,70)、(320,150)、(280,70)。In the above step 3011, recognizing the characters in the passing image can be realized by recognizing the outline and shape of the characters. After identifying the characters in the image, a rectangular extraction frame can be obtained. The image of the character area is contained in the extraction frame. At this time, the center pixel coordinate value of the character, the upper left pixel coordinate value, the lower left pixel coordinate value, and the upper right pixel The coordinate value and the pixel coordinate value of the lower right corner are respectively the coordinate value of the midpoint pixel of the extraction frame of the character, the coordinate value of the upper left pixel, the coordinate value of the lower left pixel, the coordinate value of the upper right pixel, and the coordinate of the lower right pixel. value. For example, the center pixel coordinate value, the upper left pixel coordinate value, the lower left pixel coordinate value, the upper right pixel coordinate value and the lower right pixel coordinate value of the character "Yue" extracted are (100,100), (80,140), (80, 60), (120,140) and (120,60)...... the center pixel coordinate value of the character "5", the upper left corner pixel coordinate value, the lower left corner pixel coordinate value, the upper right corner pixel coordinate value and the lower right corner pixel coordinate value The values are (300,110), (280,150), (280,70), (320,150), (280,70).
步骤3012:计算所有字符的中心像素坐标值的平均值,并将其作为平均中心像素坐标值。Step 3012: Calculate the average value of the center pixel coordinate values of all characters, and use it as the average center pixel coordinate value.
步骤3013:计算各个字符的中心像素坐标值与平均中心像素坐标值的差值,当差值小于相近阈值时,将对应字符的左上角像素坐标值、左下角像素坐标值、右上角像素坐标值和右 下角像素坐标值分别置入车牌左上角像素坐标值组、车牌左下角像素坐标值组、车牌右上角像素坐标值组和车牌右下角像素坐标值组。Step 3013: Calculate the difference between the center pixel coordinate value of each character and the average center pixel coordinate value. When the difference is less than the similar threshold, the upper left corner pixel coordinate value, the lower left corner pixel coordinate value, and the upper right corner pixel coordinate value of the corresponding character are calculated. And the pixel coordinate values of the lower right corner are respectively placed into the upper left corner pixel coordinate value group of the license plate, the lower left corner pixel coordinate value group of the license plate, the upper right corner pixel coordinate value group and the lower right corner pixel coordinate value group of the license plate.
在上述步骤3013中,字符的中心像素坐标值与平均中心像素坐标值的差值可以是欧式距离值。例如,中心像素坐标值为(100,100),平均中心像素坐标值为(130,140),即欧式距离值为
Figure PCTCN2019117699-appb-000001
相近阈值可以根据实际测试设置成不同的值。由于通过图像的分辨率一般是保持不变的,车牌区域的图像在通过图像中所占的像素一般也是变化不大的,所以通过设定相近阈值为合适的值,判断差值是否小于相近阈值能够判断出该字符是否是车牌区域内的字符。当差值大于相近阈值即表示该字符在通过图像中与车牌区域的图像相隔较远,有极大的可能不是车牌的字符,而是其他的干扰字符,因此,不将该字符的像素坐标值置入坐标值组。这样,能够减少干扰字符对图像提取结果的影响。
In the above step 3013, the difference between the center pixel coordinate value of the character and the average center pixel coordinate value may be the Euclidean distance value. For example, the center pixel coordinate value is (100,100), and the average center pixel coordinate value is (130,140), that is, the Euclidean distance value
Figure PCTCN2019117699-appb-000001
The similar threshold can be set to different values according to the actual test. Since the resolution of the pass image generally remains unchanged, the pixels of the license plate area image in the pass image generally have little change, so by setting the similar threshold to an appropriate value, it is judged whether the difference is less than the similar threshold. It can be judged whether the character is a character in the license plate area. When the difference is greater than the similar threshold, it means that the character is far away from the image of the license plate area in the passing image. It is very likely that it is not the character of the license plate, but other interfering characters. Therefore, the pixel coordinate value of the character is not Place the coordinate value group. In this way, the influence of disturbing characters on the image extraction result can be reduced.
步骤3014:在车牌左上角像素坐标值组的所有像素坐标中,取最小的横坐标作为车牌左上角像素坐标值的横坐标,取最大的纵坐标作为车牌左上角像素坐标值的纵坐标,以构成左上角目标像素坐标值。Step 3014: Among all the pixel coordinates in the pixel coordinate value group of the upper left corner of the license plate, take the smallest abscissa as the abscissa of the pixel coordinate value of the upper left corner of the license plate, and take the largest ordinate as the ordinate of the pixel coordinate value of the upper left corner of the license plate. Compose the target pixel coordinate value in the upper left corner.
在上述步骤3014中,以车牌左上角像素坐标值组的所有像素坐标为(100,100)、(80,99)、(60,110)为例,此时,左上角目标像素坐标值为(60,110)。In the above step 3014, all the pixel coordinates of the pixel coordinate value group of the upper left corner of the license plate are (100, 100), (80, 99), (60, 110) as an example, at this time, the target pixel coordinate value of the upper left corner is (60, 110).
步骤3015:在车牌左下角像素坐标值组的所有像素坐标中,取最小的横坐标作为车牌左下角像素坐标值的横坐标,取最小的纵坐标作为车牌左下角像素坐标值的纵坐标,以构成左下角目标像素坐标值。Step 3015: Among all the pixel coordinates in the pixel coordinate value group of the lower left corner of the license plate, take the smallest abscissa as the abscissa of the pixel coordinate value of the lower left corner of the license plate, and take the smallest ordinate as the ordinate of the pixel coordinate value of the lower left corner of the license plate. Compose the target pixel coordinate value in the lower left corner.
在上述步骤3015中,以车牌左下角像素坐标值组的所有像素坐标为(100,50)、(80,48)、(60,59)为例,此时,左下角目标像素坐标值为(60,48)。In the above step 3015, taking all the pixel coordinates of the pixel coordinate value group of the lower left corner of the license plate as (100,50), (80,48), (60,59) as an example, at this time, the target pixel coordinate value of the lower left corner is ( 60,48).
步骤3016:在车牌右上角像素坐标值组的所有像素坐标中,取最大的横坐标作为车牌右上角像素坐标值的横坐标,取最大的纵坐标作为车牌右上角像素坐标值的纵坐标,以构成右上角目标像素坐标值。Step 3016: Among all the pixel coordinates in the pixel coordinate value group of the upper right corner of the license plate, take the largest abscissa as the abscissa of the pixel coordinate value of the upper right corner of the license plate, and take the largest ordinate as the ordinate of the pixel coordinate value of the upper right corner of the license plate. Compose the target pixel coordinate value in the upper right corner.
在上述步骤3016中,以车牌右上角像素坐标值组的所有像素坐标为(400,100)、(380,99)、(360,110)为例,此时,右上角目标像素坐标值为(400,110)。In the above step 3016, taking all the pixel coordinates of the pixel coordinate value group of the upper right corner of the license plate as (400, 100), (380, 99), (360, 110) as an example, at this time, the target pixel coordinate value of the upper right corner is (400, 110).
步骤3017:在车牌右下角像素坐标值组的所有像素坐标中,取最大的横坐标作为车牌右下角像素坐标值的横坐标,取最小的纵坐标作为车牌右下角像素坐标值的纵坐标,以构成右下角目标像素坐标值。Step 3017: Among all the pixel coordinates in the pixel coordinate value group of the lower right corner of the license plate, take the largest abscissa as the abscissa of the pixel coordinate value of the lower right corner of the license plate, and take the smallest ordinate as the ordinate of the pixel coordinate value of the lower right corner of the license plate. Compose the target pixel coordinate value in the lower right corner.
在上述步骤3017中,以车牌右下角像素坐标值组的所有像素坐标为(400,50)、(380,49)、(360,60)为例,此时,右下角目标像素坐标值为(400,49)。In the above step 3017, taking all the pixel coordinates of the pixel coordinate value group of the lower right corner of the license plate as (400, 50), (380, 49), (360, 60) as an example, at this time, the target pixel coordinate value of the lower right corner is ( 400,49).
步骤3018:在通过图像中提取由左上角目标像素坐标值、左下角目标像素坐标值、右上角目标像素坐标值和右下角目标像素坐标值组成的区域中的图像,并将其作为车牌区域的图像。Step 3018: Extract the image in the area composed of the upper left corner target pixel coordinate value, the lower left corner target pixel coordinate value, the upper right corner target pixel coordinate value and the lower right corner target pixel coordinate value from the passed image, and use it as the license plate area image.
在上述步骤3018中,以上述步骤3014、上述步骤3015、上述步骤3016和上述步骤3017的例子为基础,即提取通过图像中(60,110)、(60,48)、(400,110)和(400,49)坐标值组成的区域中的图像,作为车牌区域的图像。In the above step 3018, based on the examples of the above step 3014, the above step 3015, the above step 3016, and the above step 3017, that is, extract the (60,110), (60,48), (400,110) and (400,49 ) The image in the area composed of coordinate values is used as the image of the license plate area.
在上述步骤30中,将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组也可以通过以下两种方式实现:In the above step 30, the vehicle flow data of the reference bayonet is compared with the vehicle flow data of other bayonet bays to obtain the candidate upstream bayonet group and the candidate downstream bayonet group for each reference bayonet. It can also be implemented in the following two ways :
(1)当车流数据中包括有车辆通过卡口时的图像、车辆通过卡口时的时间和车辆所通过的卡口的唯一标识时,可以通过比较整副图像的相似度来确定两条车流数据的车辆是否同一辆,若是同一辆,则继续比较两条车流数据的时间,将时间在前的车流数据对应的卡口的唯一标识置入时间在后的车流数据对应的卡口的候选上游卡口数组,将时间在后的车流数据对应的卡口的唯一标识置入时间在前的车流数据对应的卡口的候选下游卡口数组。(1) When the traffic data includes the image when the vehicle passes through the bayonet, the time when the vehicle passes through the bayonet, and the unique identification of the bayonet through which the vehicle passes, the two traffic flows can be determined by comparing the similarity of the entire image Whether the vehicle of the data is the same, if it is the same, continue to compare the time of the two traffic data, and put the unique identifier of the bayonet corresponding to the traffic flow data with the time before it into the candidate upstream of the bayonet corresponding to the traffic data with the time later In the bayonet array, the unique identifier of the bayonet corresponding to the traffic flow data with the later time is placed in the candidate downstream bayonet bayonet array for the bayonet corresponding to the traffic flow data with the previous time.
(2)当车流数据中包括有通过卡口的车辆的车牌号、车辆通过卡口时的时间和车辆所通过的卡口的唯一标识时,也可以通过比较车牌号是否相同来确定两条车流数据的车辆是否同一辆,若是同一辆,则继续比较两条车流数据的时间,将时间在前的车流数据对应的卡口的 唯一标识置入时间在后的车流数据对应的卡口的候选上游卡口数组,将时间在后的车流数据对应的卡口的唯一标识置入时间在前的车流数据对应的卡口的候选下游卡口数组。(2) When the vehicle flow data includes the license plate number of the vehicle passing through the bayonet, the time when the vehicle passes through the bayonet, and the unique identification of the bayonet through which the vehicle passes, the two vehicle flows can also be determined by comparing whether the license plate numbers are the same Whether the vehicle of the data is the same, if it is the same, continue to compare the time of the two traffic data, and put the unique identifier of the bayonet corresponding to the traffic flow data with the time before it into the candidate upstream of the bayonet corresponding to the traffic data with the time later In the bayonet array, the unique identifier of the bayonet corresponding to the traffic flow data with the later time is placed in the candidate downstream bayonet bayonet array for the bayonet corresponding to the traffic flow data with the previous time.
步骤40:将候选上游卡口组中相同的候选上游卡口分为一组,并统计每组中候选上游卡口的个数,当个数大于或等于确定阈值时,将该组的候选上游卡口作为基准卡口的上游卡口。Step 40: Divide the same candidate upstream bayonet in the candidate upstream bayonet group into one group, and count the number of candidate upstream bayonet in each group. When the number is greater than or equal to a certain threshold, the upstream candidate of the group is The bayonet is used as the upstream bayonet of the reference bayonet.
在上述步骤40中,将候选上游卡口组中相同的候选上游卡口分为一组,并统计每组中候选上游卡口的个数可以通过计算同一卡口的唯一标识在候选上游卡口数组中出现的次数来实现。例如,候选上游卡口数组中的唯一标识包括“0001、0002、0001、0002、0002”,则“0001”在数组中出现了2次,“0002”在数组中出现了3次,则卡口A组的候选上游卡口的个数为2,卡口B组的候选上游卡口的个数为3。确定阈值可以根据实际情况调整,其可以是1、2、10、50、100等。例如,确定阈值取值为3,则将卡口B作为上游卡口,卡口A并不能作为上游卡口。In the above step 40, the same candidate upstream bayonet in the candidate upstream bayonet group is divided into one group, and the number of candidate upstream bayonet in each group is counted. The unique identifier of the same bayonet can be calculated in the candidate upstream bayonet. The number of occurrences in the array is implemented. For example, if the unique identifier in the candidate upstream bayonet array includes "0001, 0002, 0001, 0002, 0002", then "0001" appears 2 times in the array, and "0002" appears 3 times in the array, then the bayonet The number of upstream bayonet candidates in group A is two, and the number of upstream bayonet candidates in group B is three. The determination threshold can be adjusted according to actual conditions, and it can be 1, 2, 10, 50, 100, and so on. For example, if the threshold is determined to be 3, the bayonet B is used as the upstream bayonet, and the bayonet A cannot be used as the upstream bayonet.
步骤50:将候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数,当个数大于或等于确定阈值时,将该组的候选下游卡口作为基准卡口的下游卡口。Step 50: Divide the same candidate downstream bayonet points in the candidate downstream bayonet group into one group, and count the number of candidate downstream bayonet points in each group. When the number is greater than or equal to a certain threshold, the candidate downstream bayonet of the group is counted. The bayonet is the downstream bayonet of the reference bayonet.
在上述步骤50中,将候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数也可以通过计算同一卡口的唯一标识在候选下游卡口数组中出现的次数来实现。例如,候选下游卡口数组中的唯一标识包括“0001、0002、0001、0002、0002”,则“0001”在数组中出现了2次,“0002”在数组中出现了3次,则卡口A组的候选下游卡口的个数为2,卡口B组的候选下游卡口的个数为3。确定阈值可以根据实际情况调整,其可以是1、2、10、50、100等。例如,确定阈值取值为3,则将卡口B作为下游卡口,卡口A并不能作为下游卡口。In the above step 50, the same candidate downstream bayonet points in the candidate downstream bayonet group are divided into one group, and the number of candidate downstream bayonet points in each group is counted. It is also possible to calculate the unique identification of the same bayonet at the candidate downstream card points. The number of occurrences in the mouth array is implemented. For example, the unique identifier in the candidate downstream bayonet array includes "0001, 0002, 0001, 0002, 0002", then "0001" appears 2 times in the array, and "0002" appears 3 times in the array, then the bayonet The number of downstream bayonet candidates for group A is 2, and the number of downstream bayonet candidates for bayonet group B is 3. The determination threshold can be adjusted according to actual conditions, and it can be 1, 2, 10, 50, 100, and so on. For example, if the threshold is determined to be 3, the bayonet B is used as the downstream bayonet, and the bayonet A cannot be used as the downstream bayonet.
步骤60:根据各基准卡口和各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,并在交互界面处展示路网拓扑结构。Step 60: Construct a road network topology structure according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, and display the road network topology at the interactive interface.
在上述步骤60中,当各基准卡口对应的上游卡口、下游卡口的数量均为单个的时候,可以将存在有上下游关系的卡口相互连接起来从而得到道路网络拓扑结构。In the above step 60, when the number of upstream bayonet and downstream bayonet corresponding to each reference bayonet is single, bayonet bays with upstream and downstream relationships can be connected to each other to obtain the road network topology.
进一步地,如图6所示,当各基准卡口对应的上游卡口、下游卡口均包含有多个卡口,上述步骤60可以包括:Further, as shown in FIG. 6, when the upstream and downstream bayonet ports corresponding to each reference bayonet both include multiple bayonet ports, the above step 60 may include:
步骤601:以基准卡口的上游卡口作为待连接上游卡口,并以任意一个待连接上游卡口作为连接基准卡口,若连接基准卡口的下游卡口中不存在其他待连接上游卡口,则将连接基准卡口作为连接上游卡口。Step 601: Use the upstream bayonet of the reference bayonet as the upstream bayonet to be connected, and use any upstream bayonet to be connected as the reference bayonet for connection, if there are no other upstream cards to be connected in the downstream bayonet connected to the reference bayonet Port, connect the reference bayonet as the upstream bayonet.
在上述步骤601中,例如,基准卡口为卡口A,卡口A的上游卡口有卡口B和卡口C,卡口B的下游卡口仅有A,卡口C的下游卡口有卡口A和卡口B。其中,卡口C的下游卡口中存在其他待连接上游卡口(即卡口B),所以卡口C不能作为卡口A的连接上游卡口,而卡口B将作为卡口A的连接上游卡口。即后续的步骤中将不连接卡口A和卡口C,只连接卡口B和卡口A。从中可以看出卡口A、B、C是在同一条线路上的三个卡口,且卡口B在卡口A和卡口C之间,通过上述步骤601,能够使卡口A、B、C按实际的线路依次连接,避免了卡口A同时连接卡口B和卡口C的错误情况。In the above step 601, for example, the reference bayonet is bayonet A, the upstream bayonet of bayonet A has bayonet B and bayonet C, the downstream bayonet of bayonet B only has A, and the downstream bayonet of bayonet C There are bayonet A and bayonet B. Among them, the downstream bayonet of bayonet C has other upstream bayonet to be connected (ie bayonet B), so bayonet C cannot be used as the upstream bayonet of bayonet A, and bayonet B will be used as the connection of bayonet A Upstream bayonet. That is, in the subsequent steps, bayonet A and bayonet C will not be connected, only bayonet B and bayonet A will be connected. It can be seen that bayonet A, B, C are three bayonet on the same line, and bayonet B is between bayonet A and bayonet C. Through the above step 601, bayonet A, B can be made , C is connected in sequence according to the actual lines, avoiding the error situation of bayonet A connecting bayonet B and bayonet C at the same time.
步骤602:以基准卡口的下游卡口作为待连接下游卡口,并以任意一个待连接下游卡口作为连接基准卡口,若连接基准卡口的上游卡口中不存在其他待连接下游卡口,则将连接基准卡口作为连接下游卡口。Step 602: Use the downstream bayonet of the reference bayonet as the downstream bayonet to be connected, and use any downstream bayonet to be connected as the reference bayonet for connection. If there is no other downstream card to be connected in the upstream bayonet connected to the reference bayonet Port, connect the reference bayonet as the downstream bayonet.
在上述步骤602中,例如,基准卡口为卡口A,卡口A的下游卡口有卡口B和卡口C,卡口B的上游卡口仅有A,卡口C的上游卡口有卡口A和卡口B。其中,卡口C的上游卡口中存在其他待连接上游卡口(即卡口B),所以卡口C不能作为卡口A的连接下游卡口,而卡口B将作为卡口A的连接下游卡口。即后续的步骤中将不连接卡口A和卡口C,只连接卡口B和卡口A。从中可以看出卡口A、B、C是在同一条线路上的三个卡口,且卡口B在卡口A和卡口C之间,通过上述步骤602,能够使卡口A、B、C按实际的线路依次连接,避免了卡口A同时连接卡口B和卡口C的错误情况。In the above step 602, for example, the reference bayonet is bayonet A, the downstream bayonet of bayonet A has bayonet B and bayonet C, the upstream bayonet of bayonet B only has A, and the upstream bayonet of bayonet C There are bayonet A and bayonet B. Among them, the upstream bayonet of bayonet C has other upstream bayonet to be connected (ie bayonet B), so bayonet C cannot be used as the downstream bayonet of bayonet A, and bayonet B will be used as the connection of bayonet A Downstream bayonet. That is, in the subsequent steps, bayonet A and bayonet C will not be connected, only bayonet B and bayonet A will be connected. It can be seen that the bayonet A, B, C are three bayonet on the same line, and the bayonet B is between the bayonet A and the bayonet C. Through the above step 602, the bayonet A, B can be made , C is connected in sequence according to the actual lines, avoiding the error situation of bayonet A connecting bayonet B and bayonet C at the same time.
步骤603:在交互界面处将基准卡口和连接上游卡口连接,将基准卡口和连接下游卡口连接。Step 603: Connect the reference bayonet to the upstream bayonet at the interactive interface, and connect the reference bayonet to the downstream bayonet.
在上述步骤20、步骤30、步骤40、步骤50和步骤60中,通过将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组,然后统计候选上游卡口组中的候选上游卡口以获得基准卡口的上游卡口,统计候选下游卡口组中的候选下游卡口以获得基准卡口的下游卡口,最后根据各基准卡口和各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,从而能够实现路网拓扑结构的自动化构建,解决现有技术中还缺少一种自动化的路网拓扑结构的构建方法的问题。In the above step 20, step 30, step 40, step 50 and step 60, the vehicle flow data of the reference bayonet is compared with the traffic flow data of other bayonet to obtain the candidate upstream bayonet group and the group of each reference bayonet. Candidate downstream bayonet group, then count the candidate upstream bayonet in the candidate upstream bayonet group to obtain the upstream bayonet of the reference bayonet, and count the candidate downstream bayonet in the candidate downstream bayonet group to obtain the downstream bayonet of the reference bayonet Finally, the road network topology is constructed according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, so as to realize the automatic construction of road network topology and solve the lack of automation in the existing technology. The problem of the construction method of the road network topology.
如图7所示,在本实施例的一些可选的实现方式中,在步骤30之后,步骤60之前,上述电子设备还可以执行以下步骤:As shown in FIG. 7, in some optional implementation manners of this embodiment, after step 30 and before step 60, the above-mentioned electronic device may also perform the following steps:
步骤31:判断每个卡口的车流数据中的通过时间与其他卡口的车流数据中的通过时间的差值是否小于时间阈值,若是,则在每个卡口的候选上游卡口组和候选下游卡口组中去除其他卡口,若否,则在每个卡口的候选上游卡口组和候选下游卡口组中保留其他卡口。Step 31: Determine whether the difference between the transit time in the traffic flow data of each bayonet and the transit time in the traffic flow data of other bayonet ports is less than the time threshold. If so, the candidate upstream bayonet group and candidate for each bayonet Remove other bayonet points from the downstream bayonet group. If not, keep other bayonet points in the candidate upstream bayonet group and candidate downstream bayonet group of each bayonet.
在上述步骤31中,时间阈值可以根据实际情况调整,例如取值为1分钟,2分钟,10分钟等。例如,卡口A的车流数据中的通过时间是11点00分,卡口B的车流数据中的通过时间是11点01分,时间阈值取值为2分钟,则通过时间的差值为1分钟,小于时间阈值,则将卡口B从卡口A的候选上游卡口组和候选下游卡口组中去除。In the above step 31, the time threshold can be adjusted according to the actual situation, for example, the value can be 1 minute, 2 minutes, 10 minutes, etc. For example, if the passing time in the traffic data of bayonet A is 11:00, the passing time in the traffic data of bayonet B is 11:01, and the time threshold is 2 minutes, the difference in the passing time is 1. If the minute is less than the time threshold, the bayonet B is removed from the candidate upstream bayonet group and the downstream bayonet group of bayonet A.
在实际应用中,有些卡口设置在掉头车道上,这些卡口之间并不是真实的上下游关系,通过上述步骤31能够检测出卡口之间是否是掉头关系,而不是真实的上下游关系,并将实际为掉头关系的卡口从候选上游卡口组和候选下游卡口组中去除,从而使构建的道路网络拓扑结构更加准确。In actual applications, some bayonet bays are set on the U-turn lanes, and the relationship between these bayonet bays is not the real upstream and downstream relationship. Through the above step 31, it can be detected whether the bayonet is a U-turn relationship, rather than the real upstream and downstream relationship. , And remove the bayonet that is actually a U-turn relationship from the candidate upstream bayonet group and the candidate downstream bayonet group, so that the constructed road network topology is more accurate.
如图8所示,在本实施例的一些可选的实现方式中,在步骤50之后,步骤60之前,上述电子设备还可以执行以下步骤:As shown in FIG. 8, in some optional implementation manners of this embodiment, after step 50 and before step 60, the above-mentioned electronic device may also perform the following steps:
步骤51:以基准卡口的上游卡口作为上游校验卡口,获取上游校验卡口的下游卡口。Step 51: Use the upstream bayonet of the reference bayonet as the upstream calibration bayonet to obtain the downstream bayonet of the upstream calibration bayonet.
步骤52:将下游卡口与基准卡口进行比较,若相同,则在基准卡口的上游卡口中保留上游校验卡口,若不相同,则在基准卡口的上游卡口中去除上游校验卡口。Step 52: Compare the downstream bayonet with the reference bayonet. If they are the same, keep the upstream check bayonet in the upstream bayonet of the reference bayonet; if they are not the same, remove the upstream bayonet from the upstream bayonet of the reference bayonet Check the bayonet.
步骤53:以基准卡口的下游卡口作为下游校验卡口,获取下游校验卡口的上游卡口。Step 53: Use the downstream bayonet of the reference bayonet as the downstream calibration bayonet to obtain the upstream bayonet of the downstream calibration bayonet.
步骤54:将上游卡口与基准卡口进行比较,若相同,则在基准卡口的下游卡口中保留下游校验卡口,若不相同,则在基准卡口的下游卡口中去除下游校验卡口。Step 54: Compare the upstream bayonet with the reference bayonet. If they are the same, keep the downstream calibration bayonet in the downstream bayonet of the reference bayonet; if they are not the same, remove the downstream bayonet from the downstream bayonet of the reference bayonet Check the bayonet.
在上述步骤51、步骤52、步骤53和步骤54中,例如,经过步骤50后,获得卡口B的上游卡口为A,下游卡口为C。卡口A的上游卡口为D,下游卡口为C。卡口C的上游卡口为A,下游卡口为E。则卡口B的上游卡口为A与卡口A的下游卡口C冲突,卡口B的下游卡口为C与卡口C的上游卡口为A冲突,卡口A和卡口C才是真实的互为上下游的关系,故将卡口A从卡口B的上游卡口中去除,将卡口C从卡口B的下游卡口中去除。In the above step 51, step 52, step 53, and step 54, for example, after step 50, the upstream bayonet of the bayonet B is obtained as A, and the downstream bayonet is C. The upstream bayonet of bayonet A is D, and the downstream bayonet is C. The upstream bayonet of bayonet C is A, and the downstream bayonet is E. Then the upstream bayonet of bayonet B conflicts with the downstream bayonet C of bayonet A, the downstream bayonet of bayonet B conflicts with the upstream bayonet of bayonet C, and the bayonet A and bayonet C conflict. It is a real upstream and downstream relationship, so the bayonet A is removed from the upstream bayonet of the bayonet B, and the bayonet C is removed from the downstream bayonet of the bayonet B.
在实际应用中,监控设备的偶然失常容易导致某一卡口的数据缺失,一旦发生数据缺失也有可能导致错误地设置卡口间的上下游关系。另外,车辆的行驶情况较为复杂多变,并不能保证车辆一定会按照道路的方向行走。例如,卡口A和卡口C之间有可能存在乡村小道,乡村小道不应构建于道路网络中,而这些乡村小道将车流导向了卡口B,这容易导致卡口B的上游卡口和下游卡口错误地设置为卡口A和卡口C,但实际上卡口A和卡口C才是真实的互为上下游关系。通过上述步骤51、步骤52、步骤53和步骤54能够对卡口的上下游关系进行校验,消除偶然情况导致的错误上下游关系,从而使构建的道路网络拓扑结构更加准确。In practical applications, accidental malfunction of the monitoring equipment can easily lead to missing data for a certain bayonet. Once the missing data occurs, it may also lead to wrong setting of the upstream and downstream relationship between bayonet bays. In addition, the driving situation of the vehicle is more complicated and changeable, and there is no guarantee that the vehicle will walk in the direction of the road. For example, there may be rural trails between bayonet A and bayonet C. Rural trails should not be built in the road network. These rural trails direct traffic to bayonet B, which easily leads to the upstream bayonet and bayonet of bayonet B. The downstream bayonet is wrongly set to bayonet A and bayonet C, but in fact bayonet A and bayonet C are actually the upstream and downstream relationship of each other. Through the above steps 51, 52, 53 and 54, the upstream and downstream relationship of the bayonet can be verified, and the wrong upstream and downstream relationship caused by accident can be eliminated, so that the constructed road network topology can be more accurate.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,该计算机可读指令可存储于非易失性可读存储介质中,该可读指令在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by instructing relevant hardware through computer-readable instructions, which can be stored in a non-volatile readable storage medium. Here, when the readable instruction is executed, it may include the procedures of the above-mentioned method embodiments. Among them, the aforementioned storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of the drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least part of the steps in the flowchart of the drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the order of execution is also It is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
进一步参考图9,作为对上述图2所示方法的实现,本申请提供了一种路网拓扑结构的构建装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to FIG. 9, as an implementation of the method shown in FIG. 2, this application provides an embodiment of an apparatus for constructing a road network topology structure. The apparatus embodiment corresponds to the method embodiment shown in FIG. 2. The device can be applied to various electronic devices.
如图9所示,本实施例的路网拓扑结构的构建装置400包括:获取模块401、候选卡口确定模块402、上游卡口确定模块403、下游卡口确定模块404以及构建模块405。其中:As shown in FIG. 9, the apparatus 400 for constructing a road network topology structure of this embodiment includes: an acquisition module 401, a candidate bayonet determination module 402, an upstream bayonet determination module 403, a downstream bayonet determination module 404, and a construction module 405. among them:
获取模块401,用于获取预设的时间周期内道路网络的各个卡口的车流数据。The obtaining module 401 is configured to obtain traffic flow data of each bayonet of the road network in a preset time period.
候选卡口确定模块402,用于以任意一个卡口作为基准卡口,将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组;候选上游卡口组包含有多个候选上游卡口,候选下游卡口组包含有多个候选下游卡口。The candidate bayonet determination module 402 is used to use any bayonet as a reference bayonet, and compare the traffic flow data of the reference bayonet with the traffic flow data of other bayonet bays to obtain the candidate upstream bayonet group and group of each reference bayonet. Candidate downstream bayonet group; Candidate upstream bayonet group contains multiple candidate upstream bayonet, candidate downstream bayonet group contains multiple candidate downstream bayonet.
上游卡口确定模块403,用于将候选上游卡口组中相同的候选上游卡口分为一组,并统计每组中候选上游卡口的个数,当个数大于或等于确定阈值时,将该组的候选上游卡口作为基准卡口的上游卡口。The upstream bayonet determination module 403 is used to divide the same candidate upstream bayonet in the candidate upstream bayonet group into one group and count the number of candidate upstream bayonet in each group. When the number is greater than or equal to the determined threshold, The candidate upstream bayonet of this group is regarded as the upstream bayonet of the reference bayonet.
下游卡口确定模块404,用于将候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数,当个数大于或等于确定阈值时,将该组的候选下游卡口作为基准卡口的下游卡口。The downstream bayonet determination module 404 is used to divide the same candidate downstream bayonet in the candidate downstream bayonet group into one group, and count the number of candidate downstream bayonet in each group, when the number is greater than or equal to the determined threshold, The candidate downstream bayonet of this group is regarded as the downstream bayonet of the reference bayonet.
构建模块405,用于根据各基准卡口和各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,并在交互界面处展示路网拓扑结构。The construction module 405 is configured to construct a road network topology structure according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, and display the road network topology at the interactive interface.
在本实施例中,通过将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组,然后统计候选上游卡口组中的候选上游卡口以获得基准卡口的上游卡口,统计候选下游卡口组中的候选下游卡口以获得基准卡口的下游卡口,最后根据各基准卡口和各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,从而能够实现路网拓扑结构的自动化构建,解决现有技术中还缺少一种自动化的路网拓扑结构的构建方法的问题。In this embodiment, the vehicle flow data of the reference bayonet is compared with the vehicle flow data of other bayonet bays to obtain the candidate upstream bayonet group and the candidate downstream bayonet group for each reference bayonet, and then the candidate upstream bayonet bays are counted. Candidate upstream bayonet in the group to obtain the upstream bayonet of the reference bayonet, count the candidate downstream bayonet in the candidate downstream bayonet group to obtain the downstream bayonet of the reference bayonet, and finally according to each reference bayonet and each reference bayonet The corresponding upstream bayonet and downstream bayonet construct a road network topology structure, so as to realize the automatic construction of the road network topology structure, and solve the problem of the lack of an automated road network topology construction method in the prior art.
参阅图10,为候选卡口确定模块402的一种具体实施方式的结构示意图,候选卡口确定模块402包括提取单元4021、归类单元4022以及确定单元4023。其中:10, which is a schematic structural diagram of a specific implementation of the candidate bayonet determination module 402. The candidate bayonet determination module 402 includes an extraction unit 4021, a classification unit 4022, and a determination unit 4023. among them:
提取单元4021,用于提取基准卡口和其他卡口的通过图像中车牌区域的图像,将车牌区域的图像作为比对图像;The extraction unit 4021 is configured to extract images of the license plate area in the pass images of the reference bayonet and other bayonet ports, and use the image of the license plate area as a comparison image;
归类单元4022,用于计算各个比对图像间的相似值,将相似值大于相似阈值的比对图像对应的车流数据置入同一车流数据组;The classification unit 4022 is used to calculate the similarity value between the comparison images, and place the traffic flow data corresponding to the comparison images whose similarity value is greater than the similarity threshold into the same traffic flow data group;
确定单元4023,用于在同一车流数据组内,以基准卡口对应的车流数据中的通过时间为基准时间,将通过时间大于基准时间的车流数据对应的其他卡口置入基准卡口的候选下游卡口组,将通过时间小于基准时间的车流数据对应的其他卡口置入基准卡口的候选上游卡口组。The determining unit 4023 is configured to use the passing time in the traffic flow data corresponding to the reference bayonet as the reference time within the same traffic flow data group, and place the other bayonet corresponding to the traffic flow data whose passing time is greater than the reference time into the reference bayonet candidates In the downstream bayonet group, other bayonets corresponding to the traffic flow data whose passing time is less than the reference time are placed into the candidate upstream bayonet group of the reference bayonet.
关于路网拓扑结构的构建装置的具体限定,与上述路网拓扑结构的构建方法一致,为避免重复,不再一一赘述。The specific limitation on the construction device of the road network topology is consistent with the construction method of the above road network topology, and in order to avoid repetition, it will not be repeated one by one.
为解决上述技术问题,本申请实施例还提供计算机设备。具体请参阅图11,图11为本实施例计算机设备基本结构框图。In order to solve the above technical problems, the embodiments of the present application also provide computer equipment. Please refer to FIG. 11 for details. FIG. 11 is a block diagram of the basic structure of the computer device in this embodiment.
所述计算机设备11包括通过系统总线相互通信连接存储器111、处理器112、网络接口113。需要指出的是,图中仅示出了具有组件111-113的计算机设备11,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。其中,本技术领域技术人员可以理解,这里的计算机设备是一种能够按照事先设定或存储的指令,自动进行数值 计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。The computer device 11 includes a memory 111, a processor 112, and a network interface 113 that are connected to each other in communication through a system bus. It should be pointed out that the figure only shows the computer device 11 with components 111-113, but it should be understood that it is not required to implement all of the illustrated components, and more or fewer components may be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculation and/or information processing in accordance with pre-set or stored instructions. Its hardware includes, but is not limited to, a microprocessor, a dedicated Integrated Circuit (Application Specific Integrated Circuit, ASIC), Programmable Gate Array (Field-Programmable Gate Array, FPGA), Digital Processor (Digital Signal Processor, DSP), embedded equipment, etc.
所述计算机设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述计算机设备可以与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互。The computer device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The computer device can interact with the user through a keyboard, a mouse, a remote control, a touch panel, or a voice control device.
所述存储器111至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,所述存储器111可以是所述计算机设备11的内部存储单元,例如该计算机设备11的硬盘或内存。在另一些实施例中,所述存储器111也可以是所述计算机设备11的外部存储设备,例如该计算机设备11上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,所述存储器111还可以既包括所述计算机设备11的内部存储单元也包括其外部存储设备。本实施例中,所述存储器111通常用于存储安装于所述计算机设备11的操作系统和各类应用软件,例如路网拓扑结构的构建方法的可读指令代码等。此外,所述存储器111还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 111 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static memory Random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disks, optical disks, etc. In some embodiments, the memory 111 may be an internal storage unit of the computer device 11, such as a hard disk or a memory of the computer device 11. In other embodiments, the memory 111 may also be an external storage device of the computer device 11, for example, a plug-in hard disk equipped on the computer device 11, a smart media card (SMC), and a secure digital (Secure Digital, SD) card, flash card (Flash Card), etc. Of course, the memory 111 may also include both an internal storage unit of the computer device 11 and an external storage device thereof. In this embodiment, the memory 111 is generally used to store an operating system and various application software installed in the computer device 11, such as readable instruction codes of a method for constructing a road network topology. In addition, the memory 111 can also be used to temporarily store various types of data that have been output or will be output.
所述处理器112在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器112通常用于控制所述计算机设备11的总体操作。本实施例中,所述处理器112用于运行所述存储器111中存储的可读指令代码或者处理数据,例如运行所述路网拓扑结构的构建方法的可读指令代码。The processor 112 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 112 is generally used to control the overall operation of the computer device 11. In this embodiment, the processor 112 is configured to run the readable instruction code or process data stored in the memory 111, for example, run the readable instruction code of the method for constructing the road network topology.
所述网络接口113可包括无线网络接口或有线网络接口,该网络接口113通常用于在所述计算机设备11与其他电子设备之间建立通信连接。The network interface 113 may include a wireless network interface or a wired network interface, and the network interface 113 is generally used to establish a communication connection between the computer device 11 and other electronic devices.
本申请还提供了另一种实施方式,即提供一种个或多个非易失性可读存储介质,所述非易失性可读存储介质存储有路网拓扑结构的构建可读指令,所述路网拓扑结构的构建可读指令可被至少一个处理器执行,以使所述至少一个处理器执行如上述的路网拓扑结构的构建方法的步骤。This application also provides another implementation manner, that is, to provide one or more non-volatile readable storage media, where the non-volatile readable storage medium stores readable instructions for constructing a road network topology, The readable instructions for constructing the road network topology can be executed by at least one processor, so that the at least one processor executes the steps of the method for constructing a road network topology as described above.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present application.

Claims (20)

  1. 一种路网拓扑结构的构建方法,其特征在于,包括下述步骤:A method for constructing a road network topology, which is characterized in that it comprises the following steps:
    获取预设的时间周期内道路网络的各个卡口的车流数据;Obtain the traffic flow data of each bayonet of the road network in a preset time period;
    以任意一个卡口作为基准卡口,将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组;所述候选上游卡口组包含有多个候选上游卡口,所述候选下游卡口组包含有多个候选下游卡口;Taking any bayonet as the reference bayonet, the vehicle flow data of the reference bayonet is compared with the traffic flow data of other bayonet bays to obtain the candidate upstream bayonet group and the candidate downstream bayonet group of each reference bayonet; the candidate The upstream bayonet group includes multiple candidate upstream bayonet ports, and the candidate downstream bayonet group includes multiple candidate downstream bayonet ports;
    将所述候选上游卡口组中相同的候选上游卡口分为一组,并统计每组中候选上游卡口的个数,当个数大于或等于确定阈值时,将该组的候选上游卡口作为所述基准卡口的上游卡口;Divide the same candidate upstream bayonet in the candidate upstream bayonet group into one group, and count the number of candidate upstream bayonet in each group. When the number is greater than or equal to a certain threshold, the candidate upstream bayonet of the group is As the upstream bayonet of the reference bayonet;
    将所述候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数,当个数大于或等于确定阈值时,将该组的候选下游卡口作为所述基准卡口的下游卡口;Divide the same candidate downstream bayonet in the candidate downstream bayonet group into one group, and count the number of candidate downstream bayonet in each group. When the number is greater than or equal to a certain threshold, the candidate downstream bayonet of the group is As the downstream bayonet of the reference bayonet;
    根据各基准卡口和所述各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,并在交互界面处展示所述路网拓扑结构。Construct a road network topology structure according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, and display the road network topology at the interactive interface.
  2. 根据权利要求1所述的构建方法,其特征在于,所述车流数据包括有车辆通过卡口时的通过图像和车辆通过卡口时的通过时间,所述将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组包括:The construction method according to claim 1, wherein the traffic flow data includes the passing image when the vehicle passes through the bayonet and the passing time when the vehicle passes through the bayonet, and the vehicle flow data of the reference bayonet is combined with other cards. The traffic flow data of the ports are compared to obtain the candidate upstream bayonet group and the candidate downstream bayonet group for each reference bayonet, including:
    提取所述基准卡口和所述其他卡口的通过图像中车牌区域的图像,将所述车牌区域的图像作为比对图像;Extracting the image of the license plate area in the pass images of the reference bayonet and the other bayonet, and using the image of the license plate area as a comparison image;
    计算各个比对图像间的相似值,将相似值大于相似阈值的比对图像对应的车流数据置入同一车流数据组;Calculate the similarity value between each comparison image, and place the traffic flow data corresponding to the comparison image whose similarity value is greater than the similarity threshold into the same traffic flow data group;
    在同一车流数据组内,以所述基准卡口对应的车流数据中的通过时间为基准时间,将通过时间大于所述基准时间的车流数据对应的其他卡口置入所述基准卡口的候选下游卡口组,将通过时间小于所述基准时间的车流数据对应的其他卡口置入所述基准卡口的候选上游卡口组。In the same traffic data group, take the passing time in the traffic data corresponding to the reference bayonet as the reference time, and place other bayonet corresponding to the traffic flow data whose passing time is greater than the reference time as candidates for the reference bayonet In the downstream bayonet group, another bayonet corresponding to the traffic flow data whose passing time is less than the reference time is placed into the candidate upstream bayonet group of the reference bayonet.
  3. 根据权利要求2所述的构建方法,其特征在于,所述提取所述基准卡口和所述其他卡口的通过图像中车牌区域的图像包括:The construction method according to claim 2, wherein the extracting the image of the license plate area in the passing image of the reference bayonet and the other bayonet comprises:
    识别所述通过图像中的字符,并提取所述字符在所述通过图像中的中心像素坐标值、左上角像素坐标值、左下角像素坐标值、右上角像素坐标值和右下角像素坐标值;Identify the character in the passing image, and extract the center pixel coordinate value, the upper left pixel coordinate value, the lower left pixel coordinate value, the upper right pixel coordinate value, and the lower right pixel coordinate value of the character in the passing image;
    计算所有字符的中心像素坐标值的平均值,并将其作为平均中心像素坐标值;Calculate the average value of the center pixel coordinate values of all characters, and use it as the average center pixel coordinate value;
    计算各个字符的中心像素坐标值与所述平均中心像素坐标值的差值,当所述差值小于相近阈值时,将对应字符的左上角像素坐标值、左下角像素坐标值、右上角像素坐标值和右下角像素坐标值分别置入车牌左上角像素坐标值组、车牌左下角像素坐标值组、车牌右上角像素坐标值组和车牌右下角像素坐标值组;Calculate the difference between the center pixel coordinate value of each character and the average center pixel coordinate value. When the difference value is less than a similar threshold, the upper left pixel coordinate value, the lower left pixel coordinate value, and the upper right pixel coordinate value of the corresponding character are calculated. The value and the pixel coordinate value of the lower right corner are respectively placed in the pixel coordinate value group of the upper left corner of the license plate, the pixel coordinate value group of the lower left corner of the license plate, the pixel coordinate value group of the upper right corner of the license plate and the pixel coordinate value group of the lower right corner of the license plate;
    在所述车牌左上角像素坐标值组的所有像素坐标中,取最小的横坐标作为车牌左上角像素坐标值的横坐标,取最大的纵坐标作为车牌左上角像素坐标值的纵坐标,以构成左上角目标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the upper left corner of the license plate, the smallest abscissa is taken as the abscissa of the pixel coordinate value of the upper left corner of the license plate, and the largest ordinate is taken as the ordinate of the pixel coordinate value of the upper left corner of the license plate to form The coordinate value of the target pixel in the upper left corner;
    在所述车牌左下角像素坐标值组的所有像素坐标中,取最小的横坐标作为车牌左下角像素坐标值的横坐标,取最小的纵坐标作为车牌左下角像素坐标值的纵坐标,以构成左下角目标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the lower left corner of the license plate, the smallest abscissa is taken as the abscissa of the pixel coordinate value of the lower left corner of the license plate, and the smallest ordinate is taken as the ordinate of the pixel coordinate value of the lower left corner of the license plate to form The coordinate value of the target pixel in the lower left corner;
    在所述车牌右上角像素坐标值组的所有像素坐标中,取最大的横坐标作为车牌右上角像素坐标值的横坐标,取最大的纵坐标作为车牌右上角像素坐标值的纵坐标,以构成右上角目标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the upper right corner of the license plate, the largest abscissa is taken as the abscissa of the pixel coordinate value of the upper right corner of the license plate, and the largest ordinate is taken as the ordinate of the pixel coordinate value of the upper right corner of the license plate to form The coordinate value of the target pixel in the upper right corner;
    在所述车牌右下角像素坐标值组的所有像素坐标中,取最大的横坐标作为车牌右下角像素坐标值的横坐标,取最小的纵坐标作为车牌右下角像素坐标值的纵坐标,以构成右下角目标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the lower right corner of the license plate, the largest abscissa is taken as the abscissa of the pixel coordinate value of the lower right corner of the license plate, and the smallest ordinate is taken as the ordinate of the pixel coordinate value of the lower right corner of the license plate to form The coordinate value of the target pixel in the lower right corner;
    在所述通过图像中提取由所述左上角目标像素坐标值、所述左下角目标像素坐标值、所述右上角目标像素坐标值和所述右下角目标像素坐标值组成的区域中的图像,并将其作为车 牌区域的图像。Extracting from the passing image an image in a region composed of the upper left corner target pixel coordinate value, the lower left corner target pixel coordinate value, the upper right corner target pixel coordinate value, and the lower right corner target pixel coordinate value, Use it as the image of the license plate area.
  4. 根据权利要求1所述的构建方法,其特征在于,所述车流数据包括车辆通过卡口的通过时间,在所述将每个卡口的车流数据和其他卡口的车流数据进行比对以获得每个卡口的候选上游卡口组和候选下游卡口组的步骤之后,还包括:The construction method according to claim 1, wherein the traffic flow data includes the passing time of the vehicle passing through the bayonet, and the traffic flow data of each bayonet is compared with the traffic flow data of other bayonet to obtain After the steps of candidate upstream bayonet group and candidate downstream bayonet group for each bayonet, it also includes:
    判断所述每个卡口的车流数据中的通过时间与所述其他卡口的车流数据中的通过时间的差值是否小于时间阈值,若是,则在所述每个卡口的候选上游卡口组和候选下游卡口组中去除所述其他卡口,若否,则在所述每个卡口的候选上游卡口组和候选下游卡口组中保留所述其他卡口。Determine whether the difference between the transit time in the traffic flow data of each bayonet and the transit time in the traffic flow data of the other bayonet is less than the time threshold, and if so, in the candidate upstream bayonet of each bayonet The other bayonet is removed from the group and the candidate downstream bayonet group, if not, the other bayonet is retained in the candidate upstream bayonet group and the candidate downstream bayonet group for each bayonet.
  5. 根据权利要求1所述的构建方法,其特征在于,在所述将所述候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数,当个数大于或等于确定阈值时,将该组的候选下游卡口作为所述基准卡口的下游卡口的步骤之后,还包括:The construction method according to claim 1, characterized in that in said grouping the same candidate downstream bayonet in the candidate downstream bayonet group into one group, and counting the number of candidate downstream bayonet in each group, When the number is greater than or equal to the determined threshold, after the step of using the candidate downstream bayonet of the group as the downstream bayonet of the reference bayonet, the method further includes:
    以基准卡口的上游卡口作为上游校验卡口,获取所述上游校验卡口的下游卡口;Taking the upstream bayonet of the reference bayonet as the upstream verification bayonet to obtain the downstream bayonet of the upstream verification bayonet;
    将所述下游卡口与所述基准卡口进行比较,若相同,则在所述基准卡口的上游卡口中保留所述上游校验卡口,若不相同,则在所述基准卡口的上游卡口中去除所述上游校验卡口;Compare the downstream bayonet with the reference bayonet. If they are the same, keep the upstream check bayonet in the upstream bayonet of the reference bayonet; if they are not the same, use the reference bayonet Remove the upstream check bayonet from the upstream bayonet;
    以基准卡口的下游卡口作为下游校验卡口,获取所述下游校验卡口的上游卡口;Taking the downstream bayonet of the reference bayonet as the downstream verification bayonet to obtain the upstream bayonet of the downstream verification bayonet;
    将所述上游卡口与所述基准卡口进行比较,若相同,则在所述基准卡口的下游卡口中保留所述下游校验卡口,若不相同,则在所述基准卡口的下游卡口中去除所述下游校验卡口。Compare the upstream bayonet with the reference bayonet, if they are the same, keep the downstream check bayonet in the downstream bayonet of the reference bayonet, if they are not the same, then use the reference bayonet The downstream check bayonet is removed from the downstream bayonet.
  6. 根据权利要求1所述的构建方法,所述各基准卡口对应的上游卡口、下游卡口均包含有多个卡口,其特征在于,所述根据各基准卡口和所述各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,并在交互界面处展示所述路网拓扑结构包括:The construction method according to claim 1, wherein the upstream bayonet and the downstream bayonet corresponding to each reference bayonet each include multiple bayonet bays, wherein the reference bayonet and each reference bayonet The upstream bayonet and downstream bayonet corresponding to the port construct a road network topology, and displaying the road network topology at the interactive interface includes:
    以基准卡口的上游卡口作为待连接上游卡口,并以任意一个待连接上游卡口作为连接基准卡口,若所述连接基准卡口的下游卡口中不存在其他待连接上游卡口,则将所述连接基准卡口作为连接上游卡口;Take the upstream bayonet of the reference bayonet as the upstream bayonet to be connected, and use any upstream bayonet to be connected as the reference bayonet for connection, if there is no other upstream bayonet to be connected in the downstream bayonet of the connection reference bayonet , Then use the connection reference bayonet as the upstream bayonet;
    以基准卡口的下游卡口作为待连接下游卡口,并以任意一个待连接下游卡口作为连接基准卡口,若所述连接基准卡口的上游卡口中不存在其他待连接下游卡口,则将所述连接基准卡口作为连接下游卡口;Take the downstream bayonet of the reference bayonet as the downstream bayonet to be connected, and use any downstream bayonet to be connected as the reference bayonet for connection, if there is no other downstream bayonet to be connected in the upstream bayonet of the reference bayonet. , Use the connection reference bayonet as the downstream bayonet;
    在交互界面处将基准卡口和连接上游卡口连接,将基准卡口和连接下游卡口连接。At the interactive interface, connect the reference bayonet to the upstream bayonet, and connect the reference bayonet to the downstream bayonet.
  7. 一种路网拓扑结构的构建装置,其特征在于,包括:A device for constructing a road network topology structure, which is characterized in that it comprises:
    获取模块,用于获取预设的时间周期内道路网络的各个卡口的车流数据;The acquisition module is used to acquire traffic flow data of each bayonet of the road network in a preset time period;
    候选卡口确定模块,用于以任意一个卡口作为基准卡口,将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组;所述候选上游卡口组包含有多个候选上游卡口,所述候选下游卡口组包含有多个候选下游卡口;Candidate bayonet determination module, used to use any bayonet as the reference bayonet, compare the traffic data of the reference bayonet with the traffic flow data of other bayonets to obtain the candidate upstream bayonet groups and candidates for each reference bayonet Downstream bayonet group; the candidate upstream bayonet group includes multiple candidate upstream bayonet, and the candidate downstream bayonet group includes multiple candidate downstream bayonet;
    上游卡口确定模块,用于将所述候选上游卡口组中相同的候选上游卡口分为一组,并统计每组中候选上游卡口的个数,当个数大于或等于确定阈值时,将该组的候选上游卡口作为所述基准卡口的上游卡口;The upstream bayonet determination module is used to divide the same candidate upstream bayonet in the candidate upstream bayonet group into one group, and count the number of candidate upstream bayonet in each group, when the number is greater than or equal to the determined threshold , The candidate upstream bayonet of the group is used as the upstream bayonet of the reference bayonet;
    下游卡口确定模块,用于将所述候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数,当个数大于或等于确定阈值时,将该组的候选下游卡口作为所述基准卡口的下游卡口;及The downstream bayonet determination module is used to group the same candidate downstream bayonet in the candidate downstream bayonet group into one group, and count the number of candidate downstream bayonet in each group, when the number is greater than or equal to a certain threshold , The candidate downstream bayonet of the group is regarded as the downstream bayonet of the reference bayonet; and
    构建模块,用于根据各基准卡口和所述各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,并在交互界面处展示所述路网拓扑结构。The construction module is used to construct a road network topology structure according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, and display the road network topology structure at the interactive interface.
  8. 根据权利要求7所述的构建装置,其特征在于,所述候选卡口确定模块包括:The construction device according to claim 7, wherein the candidate bayonet determination module comprises:
    提取单元,用于提取所述基准卡口和所述其他卡口的通过图像中车牌区域的图像,将所述车牌区域的图像作为比对图像;An extraction unit, configured to extract images of license plate regions in passing images of the reference bayonet and the other bayonet bays, and use the image of the license plate region as a comparison image;
    归类单元,用于计算各个比对图像间的相似值,将相似值大于相似阈值的比对图像对应的车流数据置入同一车流数据组;The classification unit is used to calculate the similarity value between the comparison images, and put the traffic flow data corresponding to the comparison images whose similarity value is greater than the similarity threshold into the same traffic flow data group;
    确定单元,用于在同一车流数据组内,以所述基准卡口对应的车流数据中的通过时间为 基准时间,将通过时间大于所述基准时间的车流数据对应的其他卡口置入所述基准卡口的候选下游卡口组,将通过时间小于所述基准时间的车流数据对应的其他卡口置入所述基准卡口的候选上游卡口组。The determining unit is configured to, within the same traffic data group, use the passing time in the traffic data corresponding to the reference bayonet as the reference time, and place other bayonet points corresponding to the traffic flow data whose passing time is greater than the reference time into the said vehicle flow data group. In the candidate downstream bayonet group of the reference bayonet, other bayonet corresponding to the traffic flow data whose passing time is less than the reference time are placed into the candidate upstream bayonet group of the reference bayonet.
  9. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device includes a memory and a processor, wherein computer readable instructions are stored in the memory, and the processor implements the following steps when the processor executes the computer readable instructions:
    获取预设的时间周期内道路网络的各个卡口的车流数据;Obtain the traffic flow data of each bayonet of the road network in a preset time period;
    以任意一个卡口作为基准卡口,将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组;所述候选上游卡口组包含有多个候选上游卡口,所述候选下游卡口组包含有多个候选下游卡口;Taking any bayonet as the reference bayonet, the vehicle flow data of the reference bayonet is compared with the traffic flow data of other bayonet bays to obtain the candidate upstream bayonet group and the candidate downstream bayonet group of each reference bayonet; the candidate The upstream bayonet group includes multiple candidate upstream bayonet ports, and the candidate downstream bayonet group includes multiple candidate downstream bayonet ports;
    将所述候选上游卡口组中相同的候选上游卡口分为一组,并统计每组中候选上游卡口的个数,当个数大于或等于确定阈值时,将该组的候选上游卡口作为所述基准卡口的上游卡口;Divide the same candidate upstream bayonet in the candidate upstream bayonet group into one group, and count the number of candidate upstream bayonet in each group. When the number is greater than or equal to a certain threshold, the candidate upstream bayonet of the group is As the upstream bayonet of the reference bayonet;
    将所述候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数,当个数大于或等于确定阈值时,将该组的候选下游卡口作为所述基准卡口的下游卡口;Divide the same candidate downstream bayonet in the candidate downstream bayonet group into one group, and count the number of candidate downstream bayonet in each group. When the number is greater than or equal to a certain threshold, the candidate downstream bayonet of the group is As the downstream bayonet of the reference bayonet;
    根据各基准卡口和所述各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,并在交互界面处展示所述路网拓扑结构。Construct a road network topology structure according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, and display the road network topology at the interactive interface.
  10. 根据权利要求9所述的计算机设备,其特征在于,所述车流数据包括有车辆通过卡口时的通过图像和车辆通过卡口时的通过时间,所述将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组包括:The computer device according to claim 9, wherein the traffic flow data includes the passing image when the vehicle passes through the bayonet and the passing time when the vehicle passes through the bayonet, and the vehicle flow data of the reference bayonet is combined with other cards. The traffic flow data of the ports are compared to obtain the candidate upstream bayonet group and the candidate downstream bayonet group for each reference bayonet, including:
    提取所述基准卡口和所述其他卡口的通过图像中车牌区域的图像,将所述车牌区域的图像作为比对图像;Extracting the image of the license plate area in the pass images of the reference bayonet and the other bayonet, and using the image of the license plate area as a comparison image;
    计算各个比对图像间的相似值,将相似值大于相似阈值的比对图像对应的车流数据置入同一车流数据组;Calculate the similarity value between each comparison image, and place the traffic flow data corresponding to the comparison image whose similarity value is greater than the similarity threshold into the same traffic flow data group;
    在同一车流数据组内,以所述基准卡口对应的车流数据中的通过时间为基准时间,将通过时间大于所述基准时间的车流数据对应的其他卡口置入所述基准卡口的候选下游卡口组,将通过时间小于所述基准时间的车流数据对应的其他卡口置入所述基准卡口的候选上游卡口组。In the same traffic data group, take the passing time in the traffic data corresponding to the reference bayonet as the reference time, and place other bayonet corresponding to the traffic flow data whose passing time is greater than the reference time as candidates for the reference bayonet In the downstream bayonet group, another bayonet corresponding to the traffic flow data whose passing time is less than the reference time is placed into the candidate upstream bayonet group of the reference bayonet.
  11. 根据权利要求10所述的计算机设备,其特征在于,所述提取所述基准卡口和所述其他卡口的通过图像中车牌区域的图像包括:The computer device according to claim 10, wherein said extracting the image of the license plate area in the passing image of the reference bayonet and the other bayonet comprises:
    识别所述通过图像中的字符,并提取所述字符在所述通过图像中的中心像素坐标值、左上角像素坐标值、左下角像素坐标值、右上角像素坐标值和右下角像素坐标值;Identify the character in the passing image, and extract the center pixel coordinate value, the upper left pixel coordinate value, the lower left pixel coordinate value, the upper right pixel coordinate value, and the lower right pixel coordinate value of the character in the passing image;
    计算所有字符的中心像素坐标值的平均值,并将其作为平均中心像素坐标值;Calculate the average value of the center pixel coordinate values of all characters, and use it as the average center pixel coordinate value;
    计算各个字符的中心像素坐标值与所述平均中心像素坐标值的差值,当所述差值小于相近阈值时,将对应字符的左上角像素坐标值、左下角像素坐标值、右上角像素坐标值和右下角像素坐标值分别置入车牌左上角像素坐标值组、车牌左下角像素坐标值组、车牌右上角像素坐标值组和车牌右下角像素坐标值组;Calculate the difference between the center pixel coordinate value of each character and the average center pixel coordinate value. When the difference value is less than a similar threshold, the upper left pixel coordinate value, the lower left pixel coordinate value, and the upper right pixel coordinate value of the corresponding character are calculated. The value and the pixel coordinate value of the lower right corner are respectively placed in the pixel coordinate value group of the upper left corner of the license plate, the pixel coordinate value group of the lower left corner of the license plate, the pixel coordinate value group of the upper right corner of the license plate and the pixel coordinate value group of the lower right corner of the license plate;
    在所述车牌左上角像素坐标值组的所有像素坐标中,取最小的横坐标作为车牌左上角像素坐标值的横坐标,取最大的纵坐标作为车牌左上角像素坐标值的纵坐标,以构成左上角目标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the upper left corner of the license plate, the smallest abscissa is taken as the abscissa of the pixel coordinate value of the upper left corner of the license plate, and the largest ordinate is taken as the ordinate of the pixel coordinate value of the upper left corner of the license plate to form The coordinate value of the target pixel in the upper left corner;
    在所述车牌左下角像素坐标值组的所有像素坐标中,取最小的横坐标作为车牌左下角像素坐标值的横坐标,取最小的纵坐标作为车牌左下角像素坐标值的纵坐标,以构成左下角目标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the lower left corner of the license plate, the smallest abscissa is taken as the abscissa of the pixel coordinate value of the lower left corner of the license plate, and the smallest ordinate is taken as the ordinate of the pixel coordinate value of the lower left corner of the license plate to form The coordinate value of the target pixel in the lower left corner;
    在所述车牌右上角像素坐标值组的所有像素坐标中,取最大的横坐标作为车牌右上角像素坐标值的横坐标,取最大的纵坐标作为车牌右上角像素坐标值的纵坐标,以构成右上角目标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the upper right corner of the license plate, the largest abscissa is taken as the abscissa of the pixel coordinate value of the upper right corner of the license plate, and the largest ordinate is taken as the ordinate of the pixel coordinate value of the upper right corner of the license plate to form The coordinate value of the target pixel in the upper right corner;
    在所述车牌右下角像素坐标值组的所有像素坐标中,取最大的横坐标作为车牌右下角像素坐标值的横坐标,取最小的纵坐标作为车牌右下角像素坐标值的纵坐标,以构成右下角目 标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the lower right corner of the license plate, the largest abscissa is taken as the abscissa of the pixel coordinate value of the lower right corner of the license plate, and the smallest ordinate is taken as the ordinate of the pixel coordinate value of the lower right corner of the license plate to form The coordinate value of the target pixel in the lower right corner;
    在所述通过图像中提取由所述左上角目标像素坐标值、所述左下角目标像素坐标值、所述右上角目标像素坐标值和所述右下角目标像素坐标值组成的区域中的图像,并将其作为车牌区域的图像。Extracting from the passing image an image in a region composed of the upper left corner target pixel coordinate value, the lower left corner target pixel coordinate value, the upper right corner target pixel coordinate value, and the lower right corner target pixel coordinate value, Use it as the image of the license plate area.
  12. 根据权利要求9所述的计算机设备,其特征在于,所述车流数据包括车辆通过卡口的通过时间,在所述将每个卡口的车流数据和其他卡口的车流数据进行比对以获得每个卡口的候选上游卡口组和候选下游卡口组的步骤之后,还包括:The computer device according to claim 9, wherein the traffic flow data includes the passing time of the vehicle passing through the bayonet, and the traffic flow data of each bayonet is compared with the traffic flow data of other bayonet to obtain After the steps of candidate upstream bayonet group and candidate downstream bayonet group for each bayonet, it also includes:
    判断所述每个卡口的车流数据中的通过时间与所述其他卡口的车流数据中的通过时间的差值是否小于时间阈值,若是,则在所述每个卡口的候选上游卡口组和候选下游卡口组中去除所述其他卡口,若否,则在所述每个卡口的候选上游卡口组和候选下游卡口组中保留所述其他卡口。Determine whether the difference between the transit time in the traffic flow data of each bayonet and the transit time in the traffic flow data of the other bayonet is less than the time threshold, and if so, in the candidate upstream bayonet of each bayonet The other bayonet is removed from the group and the candidate downstream bayonet group, if not, the other bayonet is retained in the candidate upstream bayonet group and the candidate downstream bayonet group for each bayonet.
  13. 根据权利要求9所述的计算机设备,其特征在于,在所述将所述候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数,当个数大于或等于确定阈值时,将该组的候选下游卡口作为所述基准卡口的下游卡口的步骤之后,还包括:9. The computer device according to claim 9, wherein in said group of candidate downstream bayonet bayonet candidates, the same candidate downstream bayonet bayonet is divided into one group, and the number of candidate downstream bayonet bayonet candidates in each group is counted, When the number is greater than or equal to the determined threshold, after the step of using the candidate downstream bayonet of the group as the downstream bayonet of the reference bayonet, the method further includes:
    以基准卡口的上游卡口作为上游校验卡口,获取所述上游校验卡口的下游卡口;Taking the upstream bayonet of the reference bayonet as the upstream verification bayonet to obtain the downstream bayonet of the upstream verification bayonet;
    将所述下游卡口与所述基准卡口进行比较,若相同,则在所述基准卡口的上游卡口中保留所述上游校验卡口,若不相同,则在所述基准卡口的上游卡口中去除所述上游校验卡口;Compare the downstream bayonet with the reference bayonet. If they are the same, keep the upstream check bayonet in the upstream bayonet of the reference bayonet; if they are not the same, use the reference bayonet Remove the upstream check bayonet from the upstream bayonet;
    以基准卡口的下游卡口作为下游校验卡口,获取所述下游校验卡口的上游卡口;Taking the downstream bayonet of the reference bayonet as the downstream verification bayonet to obtain the upstream bayonet of the downstream verification bayonet;
    将所述上游卡口与所述基准卡口进行比较,若相同,则在所述基准卡口的下游卡口中保留所述下游校验卡口,若不相同,则在所述基准卡口的下游卡口中去除所述下游校验卡口。Compare the upstream bayonet with the reference bayonet. If they are the same, keep the downstream check bayonet in the downstream bayonet of the reference bayonet; if they are not the same, use the reference bayonet The downstream check bayonet is removed from the downstream bayonet.
  14. 根据权利要求9所述的计算机设备,所述各基准卡口对应的上游卡口、下游卡口均包含有多个卡口,其特征在于,所述根据各基准卡口和所述各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,并在交互界面处展示所述路网拓扑结构包括:The computer device according to claim 9, wherein the upstream bayonet and the downstream bayonet corresponding to each reference bayonet each include a plurality of bayonet bays, wherein the reference bayonet and each reference bayonet The upstream bayonet and downstream bayonet corresponding to the port construct a road network topology, and displaying the road network topology at the interactive interface includes:
    以基准卡口的上游卡口作为待连接上游卡口,并以任意一个待连接上游卡口作为连接基准卡口,若所述连接基准卡口的下游卡口中不存在其他待连接上游卡口,则将所述连接基准卡口作为连接上游卡口;Take the upstream bayonet of the reference bayonet as the upstream bayonet to be connected, and use any upstream bayonet to be connected as the reference bayonet for connection, if there is no other upstream bayonet to be connected in the downstream bayonet of the connection reference bayonet , Then use the connection reference bayonet as the upstream bayonet;
    以基准卡口的下游卡口作为待连接下游卡口,并以任意一个待连接下游卡口作为连接基准卡口,若所述连接基准卡口的上游卡口中不存在其他待连接下游卡口,则将所述连接基准卡口作为连接下游卡口;Take the downstream bayonet of the reference bayonet as the downstream bayonet to be connected, and use any downstream bayonet to be connected as the reference bayonet for connection, if there is no other downstream bayonet to be connected in the upstream bayonet of the reference bayonet. , Use the connection reference bayonet as the downstream bayonet;
    在交互界面处将基准卡口和连接上游卡口连接,将基准卡口和连接下游卡口连接。At the interactive interface, connect the reference bayonet to the upstream bayonet, and connect the reference bayonet to the downstream bayonet.
  15. 一个或多个非易失性可读存储介质,其特征在于,所述非易失性可读存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如下步骤:One or more non-volatile readable storage media, wherein computer readable instructions are stored on the non-volatile readable storage media, and when the computer readable instructions are executed by a processor, the following steps are implemented:
    获取预设的时间周期内道路网络的各个卡口的车流数据;Obtain the traffic flow data of each bayonet of the road network in a preset time period;
    以任意一个卡口作为基准卡口,将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组;所述候选上游卡口组包含有多个候选上游卡口,所述候选下游卡口组包含有多个候选下游卡口;Taking any bayonet as the reference bayonet, the vehicle flow data of the reference bayonet is compared with the traffic flow data of other bayonet bays to obtain the candidate upstream bayonet group and the candidate downstream bayonet group of each reference bayonet; the candidate The upstream bayonet group includes multiple candidate upstream bayonet ports, and the candidate downstream bayonet group includes multiple candidate downstream bayonet ports;
    将所述候选上游卡口组中相同的候选上游卡口分为一组,并统计每组中候选上游卡口的个数,当个数大于或等于确定阈值时,将该组的候选上游卡口作为所述基准卡口的上游卡口;Divide the same candidate upstream bayonet in the candidate upstream bayonet group into one group, and count the number of candidate upstream bayonet in each group. When the number is greater than or equal to a certain threshold, the candidate upstream bayonet of the group is As the upstream bayonet of the reference bayonet;
    将所述候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数,当个数大于或等于确定阈值时,将该组的候选下游卡口作为所述基准卡口的下游卡口;Divide the same candidate downstream bayonet in the candidate downstream bayonet group into one group, and count the number of candidate downstream bayonet in each group. When the number is greater than or equal to a certain threshold, the candidate downstream bayonet of the group is As the downstream bayonet of the reference bayonet;
    根据各基准卡口和所述各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,并在交互界面处展示所述路网拓扑结构。Construct a road network topology structure according to each reference bayonet and the upstream bayonet and downstream bayonet corresponding to each reference bayonet, and display the road network topology at the interactive interface.
  16. 根据权利要求15所述的非易失性可读存储介质,其特征在于,所述车流数据包括有车辆通过卡口时的通过图像和车辆通过卡口时的通过时间,所述将基准卡口的车流数据和其他卡口的车流数据进行比对以获得每一个基准卡口的候选上游卡口组和候选下游卡口组包括:The non-volatile readable storage medium according to claim 15, wherein the traffic flow data includes a passing image when the vehicle passes through the bayonet and the passing time when the vehicle passes through the bayonet, and the reference bayonet Compare the traffic flow data of other bayonet with the traffic flow data of other bayonet to obtain the candidate upstream bayonet group and candidate downstream bayonet group of each reference bayonet, including:
    提取所述基准卡口和所述其他卡口的通过图像中车牌区域的图像,将所述车牌区域的图像作为比对图像;Extracting the image of the license plate area in the pass images of the reference bayonet and the other bayonet, and using the image of the license plate area as a comparison image;
    计算各个比对图像间的相似值,将相似值大于相似阈值的比对图像对应的车流数据置入同一车流数据组;Calculate the similarity value between each comparison image, and place the traffic flow data corresponding to the comparison image whose similarity value is greater than the similarity threshold into the same traffic flow data group;
    在同一车流数据组内,以所述基准卡口对应的车流数据中的通过时间为基准时间,将通过时间大于所述基准时间的车流数据对应的其他卡口置入所述基准卡口的候选下游卡口组,将通过时间小于所述基准时间的车流数据对应的其他卡口置入所述基准卡口的候选上游卡口组。In the same traffic data group, take the passing time in the traffic data corresponding to the reference bayonet as the reference time, and place other bayonet corresponding to the traffic flow data whose passing time is greater than the reference time as candidates for the reference bayonet In the downstream bayonet group, another bayonet corresponding to the traffic flow data whose passing time is less than the reference time is placed into the candidate upstream bayonet group of the reference bayonet.
  17. 根据权利要求16所述的非易失性可读存储介质,其特征在于,所述提取所述基准卡口和所述其他卡口的通过图像中车牌区域的图像包括:The non-volatile readable storage medium according to claim 16, wherein said extracting the image of the license plate area in the passing image of the reference bayonet and the other bayonet comprises:
    识别所述通过图像中的字符,并提取所述字符在所述通过图像中的中心像素坐标值、左上角像素坐标值、左下角像素坐标值、右上角像素坐标值和右下角像素坐标值;Identify the character in the passing image, and extract the center pixel coordinate value, the upper left pixel coordinate value, the lower left pixel coordinate value, the upper right pixel coordinate value, and the lower right pixel coordinate value of the character in the passing image;
    计算所有字符的中心像素坐标值的平均值,并将其作为平均中心像素坐标值;Calculate the average value of the center pixel coordinate values of all characters, and use it as the average center pixel coordinate value;
    计算各个字符的中心像素坐标值与所述平均中心像素坐标值的差值,当所述差值小于相近阈值时,将对应字符的左上角像素坐标值、左下角像素坐标值、右上角像素坐标值和右下角像素坐标值分别置入车牌左上角像素坐标值组、车牌左下角像素坐标值组、车牌右上角像素坐标值组和车牌右下角像素坐标值组;Calculate the difference between the center pixel coordinate value of each character and the average center pixel coordinate value. When the difference value is less than a similar threshold, the upper left pixel coordinate value, the lower left pixel coordinate value, and the upper right pixel coordinate value of the corresponding character are calculated. The value and the pixel coordinate value of the lower right corner are respectively placed in the pixel coordinate value group of the upper left corner of the license plate, the pixel coordinate value group of the lower left corner of the license plate, the pixel coordinate value group of the upper right corner of the license plate and the pixel coordinate value group of the lower right corner of the license plate;
    在所述车牌左上角像素坐标值组的所有像素坐标中,取最小的横坐标作为车牌左上角像素坐标值的横坐标,取最大的纵坐标作为车牌左上角像素坐标值的纵坐标,以构成左上角目标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the upper left corner of the license plate, the smallest abscissa is taken as the abscissa of the pixel coordinate value of the upper left corner of the license plate, and the largest ordinate is taken as the ordinate of the pixel coordinate value of the upper left corner of the license plate to form The coordinate value of the target pixel in the upper left corner;
    在所述车牌左下角像素坐标值组的所有像素坐标中,取最小的横坐标作为车牌左下角像素坐标值的横坐标,取最小的纵坐标作为车牌左下角像素坐标值的纵坐标,以构成左下角目标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the lower left corner of the license plate, the smallest abscissa is taken as the abscissa of the pixel coordinate value of the lower left corner of the license plate, and the smallest ordinate is taken as the ordinate of the pixel coordinate value of the lower left corner of the license plate to form The coordinate value of the target pixel in the lower left corner;
    在所述车牌右上角像素坐标值组的所有像素坐标中,取最大的横坐标作为车牌右上角像素坐标值的横坐标,取最大的纵坐标作为车牌右上角像素坐标值的纵坐标,以构成右上角目标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the upper right corner of the license plate, the largest abscissa is taken as the abscissa of the pixel coordinate value of the upper right corner of the license plate, and the largest ordinate is taken as the ordinate of the pixel coordinate value of the upper right corner of the license plate to form The coordinate value of the target pixel in the upper right corner;
    在所述车牌右下角像素坐标值组的所有像素坐标中,取最大的横坐标作为车牌右下角像素坐标值的横坐标,取最小的纵坐标作为车牌右下角像素坐标值的纵坐标,以构成右下角目标像素坐标值;Among all the pixel coordinates in the pixel coordinate value group of the lower right corner of the license plate, the largest abscissa is taken as the abscissa of the pixel coordinate value of the lower right corner of the license plate, and the smallest ordinate is taken as the ordinate of the pixel coordinate value of the lower right corner of the license plate to form The coordinate value of the target pixel in the lower right corner;
    在所述通过图像中提取由所述左上角目标像素坐标值、所述左下角目标像素坐标值、所述右上角目标像素坐标值和所述右下角目标像素坐标值组成的区域中的图像,并将其作为车牌区域的图像。Extracting from the passing image an image in a region composed of the upper left corner target pixel coordinate value, the lower left corner target pixel coordinate value, the upper right corner target pixel coordinate value, and the lower right corner target pixel coordinate value, Use it as the image of the license plate area.
  18. 根据权利要求15所述的非易失性可读存储介质,其特征在于,所述车流数据包括车辆通过卡口的通过时间,在所述将每个卡口的车流数据和其他卡口的车流数据进行比对以获得每个卡口的候选上游卡口组和候选下游卡口组的步骤之后,还包括:The non-volatile readable storage medium according to claim 15, wherein the traffic flow data includes the transit time of the vehicle passing through the bayonet, and the traffic flow data of each bayonet is combined with the traffic flow of other bayonet. After the data is compared to obtain the candidate upstream bayonet group and candidate downstream bayonet group for each bayonet, it also includes:
    判断所述每个卡口的车流数据中的通过时间与所述其他卡口的车流数据中的通过时间的差值是否小于时间阈值,若是,则在所述每个卡口的候选上游卡口组和候选下游卡口组中去除所述其他卡口,若否,则在所述每个卡口的候选上游卡口组和候选下游卡口组中保留所述其他卡口。Determine whether the difference between the transit time in the traffic flow data of each bayonet and the transit time in the traffic flow data of the other bayonet is less than the time threshold, and if so, in the candidate upstream bayonet of each bayonet The other bayonet is removed from the group and the candidate downstream bayonet group, if not, the other bayonet is retained in the candidate upstream bayonet group and the candidate downstream bayonet group for each bayonet.
  19. 根据权利要求15所述的非易失性可读存储介质,其特征在于,在所述将所述候选下游卡口组中相同的候选下游卡口分为一组,并统计每组中候选下游卡口的个数,当个数大于或等于确定阈值时,将该组的候选下游卡口作为所述基准卡口的下游卡口的步骤之后,还包括:The non-volatile readable storage medium according to claim 15, wherein in the group of candidate downstream bayonet ports, the same candidate downstream bayonet ports are grouped into one group, and the candidate downstream bayonet ports in each group are counted. The number of bayonet, when the number is greater than or equal to the determined threshold, after the step of using the candidate downstream bayonet of the group as the downstream bayonet of the reference bayonet, the method further includes:
    以基准卡口的上游卡口作为上游校验卡口,获取所述上游校验卡口的下游卡口;Taking the upstream bayonet of the reference bayonet as the upstream verification bayonet to obtain the downstream bayonet of the upstream verification bayonet;
    将所述下游卡口与所述基准卡口进行比较,若相同,则在所述基准卡口的上游卡口中保留所述上游校验卡口,若不相同,则在所述基准卡口的上游卡口中去除所述上游校验卡口;Compare the downstream bayonet with the reference bayonet. If they are the same, keep the upstream check bayonet in the upstream bayonet of the reference bayonet; if they are not the same, use the reference bayonet Remove the upstream check bayonet from the upstream bayonet;
    以基准卡口的下游卡口作为下游校验卡口,获取所述下游校验卡口的上游卡口;Taking the downstream bayonet of the reference bayonet as the downstream verification bayonet to obtain the upstream bayonet of the downstream verification bayonet;
    将所述上游卡口与所述基准卡口进行比较,若相同,则在所述基准卡口的下游卡口中保留所述下游校验卡口,若不相同,则在所述基准卡口的下游卡口中去除所述下游校验卡口。Compare the upstream bayonet with the reference bayonet. If they are the same, keep the downstream check bayonet in the downstream bayonet of the reference bayonet; if they are not the same, use the reference bayonet The downstream check bayonet is removed from the downstream bayonet.
  20. 根据权利要求15所述的非易失性可读存储介质,所述各基准卡口对应的上游卡口、下游卡口均包含有多个卡口,其特征在于,所述根据各基准卡口和所述各基准卡口对应的上游卡口、下游卡口构建起路网拓扑结构,并在交互界面处展示所述路网拓扑结构包括:The non-volatile readable storage medium according to claim 15, wherein the upstream bayonet and the downstream bayonet corresponding to each reference bayonet each include multiple bayonet bays, wherein the reference bayonet bayonet The upstream bayonet and the downstream bayonet corresponding to each of the reference bayonet ports construct a road network topology structure, and displaying the road network topology structure at the interactive interface includes:
    以基准卡口的上游卡口作为待连接上游卡口,并以任意一个待连接上游卡口作为连接基准卡口,若所述连接基准卡口的下游卡口中不存在其他待连接上游卡口,则将所述连接基准卡口作为连接上游卡口;Take the upstream bayonet of the reference bayonet as the upstream bayonet to be connected, and use any upstream bayonet to be connected as the reference bayonet for connection, if there is no other upstream bayonet to be connected in the downstream bayonet of the reference bayonet. , Then use the connection reference bayonet as the upstream bayonet;
    以基准卡口的下游卡口作为待连接下游卡口,并以任意一个待连接下游卡口作为连接基准卡口,若所述连接基准卡口的上游卡口中不存在其他待连接下游卡口,则将所述连接基准卡口作为连接下游卡口;Take the downstream bayonet of the reference bayonet as the downstream bayonet to be connected, and use any downstream bayonet to be connected as the reference bayonet for connection, if there is no other downstream bayonet to be connected in the upstream bayonet of the connection reference bayonet , Use the connection reference bayonet as the downstream bayonet;
    在交互界面处将基准卡口和连接上游卡口连接,将基准卡口和连接下游卡口连接。At the interactive interface, connect the reference bayonet to the upstream bayonet, and connect the reference bayonet to the downstream bayonet.
PCT/CN2019/117699 2019-09-18 2019-11-12 Method and apparatus for constructing road network topological structure, and computer device and storage medium WO2021051568A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910883358.6 2019-09-18
CN201910883358.6A CN110766938B (en) 2019-09-18 2019-09-18 Road network topological structure construction method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021051568A1 true WO2021051568A1 (en) 2021-03-25

Family

ID=69329714

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117699 WO2021051568A1 (en) 2019-09-18 2019-11-12 Method and apparatus for constructing road network topological structure, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN110766938B (en)
WO (1) WO2021051568A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116071929A (en) * 2023-03-06 2023-05-05 深圳市城市交通规划设计研究中心股份有限公司 Real-time road condition monitoring system and method based on bayonet license plate recognition data
CN116386336A (en) * 2023-05-29 2023-07-04 四川国蓝中天环境科技集团有限公司 Road network traffic flow robust calculation method and system based on bayonet license plate data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106856049A (en) * 2017-01-20 2017-06-16 东南大学 Crucial intersection demand clustering analysis method based on bayonet socket number plate identification data
US20180181817A1 (en) * 2015-09-10 2018-06-28 Baidu Online Network Technology (Beijing) Co., Ltd. Vehicular lane line data processing method, apparatus, storage medium, and device
CN108898831A (en) * 2018-06-25 2018-11-27 广州市市政工程设计研究总院有限公司 Section condition evaluation method and system based on road high definition bayonet data
CN109101649A (en) * 2018-08-23 2018-12-28 广东方纬科技有限公司 One kind can calculate road network method for building up and device
CN109243173A (en) * 2018-08-15 2019-01-18 广州市市政工程设计研究总院有限公司 Track of vehicle analysis method and system based on road high definition bayonet data

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110128A (en) * 2009-12-28 2011-06-29 日电(中国)有限公司 Traffic information conversion method and device based on traffic information element knowledge base
CN103235938B (en) * 2013-05-03 2016-01-27 通号通信信息集团有限公司 The method and system of car plate detection and indentification
CN106709126A (en) * 2016-10-18 2017-05-24 电子科技大学 Road network construction model based on urban roads
CN108038430A (en) * 2017-11-30 2018-05-15 北京华道兴科技有限公司 A kind of license plate locating method and device
CN108363945A (en) * 2017-12-29 2018-08-03 中兴智能交通股份有限公司 A kind of bayonet picture management method and device
CN109558823B (en) * 2018-11-22 2020-11-24 北京市首都公路发展集团有限公司 Vehicle identification method and system for searching images by images
CN109766642A (en) * 2019-01-15 2019-05-17 电子科技大学 One kind is from evolution traffic network topological modelling approach

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180181817A1 (en) * 2015-09-10 2018-06-28 Baidu Online Network Technology (Beijing) Co., Ltd. Vehicular lane line data processing method, apparatus, storage medium, and device
CN106856049A (en) * 2017-01-20 2017-06-16 东南大学 Crucial intersection demand clustering analysis method based on bayonet socket number plate identification data
CN108898831A (en) * 2018-06-25 2018-11-27 广州市市政工程设计研究总院有限公司 Section condition evaluation method and system based on road high definition bayonet data
CN109243173A (en) * 2018-08-15 2019-01-18 广州市市政工程设计研究总院有限公司 Track of vehicle analysis method and system based on road high definition bayonet data
CN109101649A (en) * 2018-08-23 2018-12-28 广东方纬科技有限公司 One kind can calculate road network method for building up and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WANG BEI, NING PINGHUA; DUAN XIAOMEI; WANG SHIMING; SZETO WAI YUEN: "Data Mining and Urban Road Traffic Analysis Based on Traffic Camera Data", URBAN TRANSPORT OF CHINA - CHENGSHI JIAOTONG, ZHONGGUO CHENGSHI GUIHUA SHEJI YANJIUYUAN, CN, 1 January 2019 (2019-01-01), CN, pages 89 - 96, XP055796443, ISSN: 1672-5328, DOI: 10.13813/j.cn11-5141/u.2019.0114 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116071929A (en) * 2023-03-06 2023-05-05 深圳市城市交通规划设计研究中心股份有限公司 Real-time road condition monitoring system and method based on bayonet license plate recognition data
CN116386336A (en) * 2023-05-29 2023-07-04 四川国蓝中天环境科技集团有限公司 Road network traffic flow robust calculation method and system based on bayonet license plate data
CN116386336B (en) * 2023-05-29 2023-08-08 四川国蓝中天环境科技集团有限公司 Road network traffic flow robust calculation method and system based on bayonet license plate data

Also Published As

Publication number Publication date
CN110766938B (en) 2023-04-07
CN110766938A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
WO2018028546A1 (en) Key point positioning method, terminal, and computer storage medium
CN110197146A (en) Facial image analysis method, electronic device and storage medium based on deep learning
WO2020244075A1 (en) Sign language recognition method and apparatus, and computer device and storage medium
CN113205037B (en) Event detection method, event detection device, electronic equipment and readable storage medium
CN112699775A (en) Certificate identification method, device and equipment based on deep learning and storage medium
CN111860377A (en) Live broadcast method and device based on artificial intelligence, electronic equipment and storage medium
CN110941978B (en) Face clustering method and device for unidentified personnel and storage medium
WO2021169174A1 (en) Road congestion degree prediction method, apparatus, computer device, and readable storage medium
CN112132032A (en) Traffic sign detection method and device, electronic equipment and storage medium
CN112560862A (en) Text recognition method and device and electronic equipment
WO2021051568A1 (en) Method and apparatus for constructing road network topological structure, and computer device and storage medium
CN112613569A (en) Image recognition method, and training method and device of image classification model
CN111860522A (en) Identity card picture processing method and device, terminal and storage medium
CN113313053A (en) Image processing method, apparatus, device, medium, and program product
CN112137591A (en) Target object position detection method, device, equipment and medium based on video stream
CN110807050B (en) Performance analysis method, device, computer equipment and storage medium
CN112396048B (en) Picture information extraction method and device, computer equipment and storage medium
CN111639360A (en) Intelligent data desensitization method and device, computer equipment and storage medium
CN110647595B (en) Method, device, equipment and medium for determining newly-added interest points
CN116453125A (en) Data input method, device, equipment and storage medium based on artificial intelligence
CN114241411B (en) Counting model processing method and device based on target detection and computer equipment
WO2022105120A1 (en) Text detection method and apparatus from image, computer device and storage medium
CN115378806A (en) Flow distribution method and device, computer equipment and storage medium
CN113591881A (en) Intention recognition method and device based on model fusion, electronic equipment and medium
CN113379469A (en) Abnormal flow detection method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19946131

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19946131

Country of ref document: EP

Kind code of ref document: A1