Signal lamp data transmission method and device, storage medium and computer product
By using structured data to screen and transmit target traffic light data when no high-precision map is configured in the vehicle, the problem of low efficiency of electronic equipment processing signal light data is solved, ensuring the accuracy of vehicle decision-making instructions and the accurate display of navigation information.
Patent Information
- Application Number
- CN202411394137.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-01-07
AI Technical Summary
When high-precision maps are not configured in the vehicle, it is difficult for electronic devices to efficiently process signal light data, resulting in the vehicle being unable to correctly analyze signal light status information, reducing data processing efficiency.
By detecting that when a high-precision map is not configured in the vehicle, structured vehicle driving data and structured road information data are obtained, the target traffic lights corresponding to the vehicle are screened out, and the signal light data is directly read and transmitted to the vehicle to avoid based on multiple roads- Processing of signal light mapping relationship.
It improves the efficiency of electronic equipment in processing signal light data, ensures that the vehicle can generate accurate decision-making instructions, and improves the accuracy of displaying signal light status information on the navigation map.
Smart Images

Figure CN119274369A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a signal light data transmission method, electronic equipment, storage medium and computer program product. Background Art
[0002] With the continuous development of the automobile industry, cars have become the preferred means of transportation for more and more users in their daily travel. The intelligent driving function configured in the vehicle has become an important function to improve the user's travel experience. When the vehicle turns on the intelligent driving function, it usually needs to obtain the traffic light data of the traffic light through the preset electronic equipment, so as to generate accurate decision instructions based on the traffic light data.
[0003] In the related art, the electronic device needs to process the acquired signal light data according to the road-signal light mapping relationship configured by itself to bind the signal light data and the information of each road, and then send the processed signal light data to the vehicle, so that the vehicle can parse the signal light data based on the road-signal light mapping relationship used by itself, and then display the status information of the signal lights contained in multiple roads on the navigation map at the same time.
[0004] However, when there are differences in the road-signal light mapping relationships used by the electronic device and the vehicle, the vehicle is usually unable to correctly parse the signal light data sent by the electronic device, which can easily lead to the inability to display the correct signal light status information on the navigation map, which in turn requires the electronic device to be configured with multiple road-signal light mapping relationships in order to process the signal light data differently according to the needs of different vehicles. In this way, when the electronic device processes the signal light data, it needs to first screen out the appropriate road-signal light mapping relationship from the multiple road-signal light mapping relationships before it can process the signal light data according to the screened road-signal light mapping relationship, thereby greatly reducing the data processing efficiency of the electronic device. Summary of the invention
[0005] The main purpose of the present application is to provide a method for transmitting signal light data, a vehicle, a storage medium and a computer program product, aiming to solve the technical problem of low efficiency of electronic devices in processing signal light data in related technologies.
[0006] To achieve the above-mentioned purpose, the present application proposes a method for transmitting signal light data, the method for transmitting signal light data is applied to an electronic device, the electronic device is communicatively connected to a vehicle, and the method comprises:
[0007] When it is detected that the vehicle is not equipped with a high-precision map, obtaining structured vehicle driving data of the vehicle, and determining structured road information data corresponding to the vehicle according to the structured vehicle driving data;
[0008] Determining a target traffic light corresponding to the vehicle according to the structured vehicle driving data and the structured road information data;
[0009] The first signal light data of the target traffic light is read, and the first signal light data is transmitted to the vehicle.
[0010] In one embodiment, the step of determining the target traffic light corresponding to the vehicle according to the structured vehicle driving data and the structured road information data comprises:
[0011] Determine a target intersection corresponding to the vehicle according to the structured vehicle travel data and the structured road information data, and determine a plurality of to-be-screened traffic lights corresponding to the target intersection;
[0012] The plurality of traffic lights to be screened are screened according to the structured vehicle travel data and the structured road information data to determine a target traffic light corresponding to the vehicle.
[0013] In one embodiment, the step of determining the target intersection corresponding to the vehicle according to the structured vehicle driving data and the structured road information data includes:
[0014] Reading the vehicle longitude and latitude data contained in the structured vehicle travel data, and reading the latitude and longitude data of multiple intersections contained in the structured road information data;
[0015] Based on the latitude and longitude data of the vehicle and the latitude and longitude data of the plurality of intersections, determining the distance between each of the plurality of intersections to be screened and the vehicle;
[0016] Based on the latitude and longitude data of the vehicle and the latitude and longitude data of the plurality of intersections, determining the azimuth of the intersection to be screened between each of the plurality of intersections to be screened and the vehicle;
[0017] The target intersection corresponding to the vehicle is determined according to the distances of each of the to-be-screened intersections and the azimuths of each of the to-be-screened intersections.
[0018] In one embodiment, the step of determining the target intersection corresponding to the vehicle according to the distances of each of the to-be-screened intersections and the azimuths of each of the to-be-screened intersections comprises:
[0019] Reading a vehicle heading angle parameter contained in the structured vehicle data, and determining a plurality of target intersections to be screened from a plurality of intersections to be screened based on the vehicle heading angle parameter and the azimuth of each intersection to be screened;
[0020] Determine a preset intersection distance threshold, and compare a plurality of the to-be-screened intersection distances with the preset intersection distance threshold respectively to determine a plurality of target intersection distances, wherein the target intersection distance is a to-be-screened intersection distance whose value is less than the preset intersection distance threshold;
[0021] The plurality of target intersections to be screened are screened based on the distances of the target intersections to determine the target intersection corresponding to the vehicle.
[0022] In one embodiment, the step of determining the target intersection corresponding to the vehicle according to the structured vehicle driving data and the structured road information data further includes:
[0023] Reading the vehicle longitude and latitude data contained in the structured vehicle driving data, and reading a plurality of road longitude and latitude data contained in the structured road information data;
[0024] Filtering the plurality of road longitude and latitude data based on the vehicle longitude and latitude data to determine target road longitude and latitude data, and determining a target driving road corresponding to the vehicle according to the target road longitude and latitude data;
[0025] Determine, according to the latitude and longitude data of the vehicle, a plurality of distances between the vehicle and a plurality of intersections to be screened contained in the target driving road;
[0026] A target intersection distance is determined among the multiple intersection distances to be screened, and the intersection to be screened corresponding to the target intersection distance is determined as the target intersection corresponding to the vehicle, wherein the target intersection distance is the intersection distance to be screened with the smallest value.
[0027] In one embodiment, the step of screening the plurality of traffic lights to be screened according to the structured vehicle travel data and the structured road information data to determine the target traffic light corresponding to the vehicle comprises:
[0028] Determine the driving direction angle corresponding to the vehicle according to the vehicle heading angle parameter;
[0029] Reading the structured road information data to determine the signal light azimuth angle ranges corresponding to each of the plurality of traffic lights to be screened;
[0030] Screening the plurality of signal light azimuth angle ranges based on the driving direction angle to determine a target signal light azimuth angle range that matches the driving direction angle;
[0031] The traffic light to be screened corresponding to the target traffic light azimuth range is determined as the target traffic light corresponding to the vehicle.
[0032] In one embodiment, before the step of acquiring structured vehicle driving data of the vehicle, the method further includes:
[0033] Get the preset signal light azimuth extended parameters;
[0034] Determine the signal light deployment position information corresponding to the traffic light to be screened, and determine the signal light orientation corresponding to the traffic light to be screened according to the signal light deployment position information;
[0035] The initial azimuth of the traffic light to be screened is determined based on the direction of the traffic light, and the initial azimuth is expanded according to the signal light azimuth expansion parameter to obtain a signal light azimuth range corresponding to the traffic light to be screened.
[0036] In one embodiment, after the step of transmitting the first signal light data to the vehicle, the method further comprises:
[0037] Reading second signal light data of the target traffic light, wherein the second signal light data is obtained by updating the first signal light data by the target traffic light;
[0038] Acquiring vehicle position information corresponding to the vehicle, and determining whether the vehicle has passed the target traffic light based on the vehicle position information;
[0039] If it is determined that the vehicle has not passed the target traffic signal, the second signal light data is transmitted to the vehicle, so that the first signal light data is replaced by the second signal light data.
[0040] In addition, to achieve the above objectives, the present application also proposes an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the signal light data transmission method as described above.
[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the signal light data transmission method described above are implemented.
[0042] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the signal light data transmission method as described above are implemented.
[0043] The method for transmitting traffic light data provided in the embodiment of the present application is applied to an electronic device, which is communicatively connected to a vehicle. When it is detected that a high-precision map is not configured in the vehicle, the method obtains structured vehicle driving data of the vehicle, and determines structured road information data corresponding to the vehicle based on the structured vehicle driving data; determines a target traffic light corresponding to the vehicle based on the structured vehicle driving data and the structured road information data; reads first traffic light data of the target traffic light, and transmits the first traffic light data to the vehicle.
[0044] In this embodiment, when the electronic device is running, it first detects the vehicle that is connected to itself for communication, and then reads the structured vehicle driving data that has been structured and processed during the driving process of the vehicle, and determines the structured road information data that has been structured and processed corresponding to the city where the vehicle is located based on the structured vehicle driving data. After that, the electronic device processes the structured vehicle driving data and the structured road information data to obtain the target traffic light that the vehicle needs to face when passing the target intersection. Finally, the electronic device accesses the target traffic light to obtain the first signal light data corresponding to the target traffic light, and transmits the first signal light data to the vehicle, so that the vehicle determines the signal light indication status and the remaining time of the signal light and other parameters of the target traffic light based on the first signal light data.
[0045] In this way, the present application solves the technical problem of low efficiency of electronic devices in processing traffic light data in the related art. That is, the present application determines the structured road information data corresponding to the city where the vehicle is located according to the structured vehicle driving data when the electronic device detects that the vehicle is not equipped with a high-precision map, and screens multiple traffic lights in the city according to the structured vehicle driving data and the structured road information data to determine the target traffic light that matches the vehicle, thereby directly reading the traffic light data of the target traffic light and sending the traffic light data to the vehicle. The electronic device can directly determine the target traffic light that the vehicle will face next without processing the traffic light data of different traffic lights based on the road-traffic light mapping relationship contained in the high-precision map, and send the traffic light data corresponding to the target traffic light to the vehicle, thereby achieving the technical effect of improving the processing efficiency of the electronic device for traffic light data and ensuring that the vehicle can generate accurate decision instructions based on the traffic light data. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0048] Figure 1 A flowchart of a first embodiment of a method for transmitting signal light data of the present application is provided;
[0049] Figure 2 A flow chart of the second embodiment of the method for transmitting signal light data of the present application;
[0050] Figure 3 A schematic diagram of a vehicle driving scene involved in an embodiment of a method for transmitting signal light data of the present application;
[0051] Figure 4 A brief flowchart of the method for transmitting signal light data in this application;
[0052] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the method for transmitting traffic light data in the embodiment of the present application.
[0053] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0054] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0055] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0056] In this embodiment, for ease of description, the following description is based on electronic devices, mobile terminals, data storage control terminals, PCs (Personal Computers), and other terminals that are internally configured with communication modules and can communicate with different vehicles through the communication modules as the execution entities.
[0057] Based on the above electronic device, the overall concept of the signal light data transmission method of the present application is proposed here.
[0058] With the continuous development of the automobile industry, cars have become the preferred means of transportation for more and more users' daily travel, and the intelligent driving function configured in the vehicle has become an important function to enhance the user's travel experience. When the vehicle turns on the intelligent driving function, it usually needs to obtain the traffic light data of the traffic light through a preset electronic device, so as to generate accurate decision instructions based on the traffic light data. In the related technology, the electronic device needs to process the acquired traffic light data according to the road-traffic light mapping relationship configured by itself to bind the traffic light data and the road information, and then send the processed traffic light data to the vehicle, so that the vehicle can parse the traffic light data based on the road-traffic light mapping relationship used by itself, and then display the status information of the traffic lights contained in multiple roads on the navigation map at the same time. However, when there are differences in the road-signal light mapping relationships used by the electronic device and the vehicle, the vehicle is usually unable to correctly parse the signal light data sent by the electronic device, which can easily lead to the inability to display the correct signal light status information on the navigation map, which in turn requires the electronic device to be configured with multiple road-signal light mapping relationships in order to process the signal light data differently according to the needs of different vehicles. In this way, when the electronic device processes the signal light data, it needs to first screen out the appropriate road-signal light mapping relationship from the multiple road-signal light mapping relationships before it can process the signal light data according to the screened road-signal light mapping relationship, thereby greatly reducing the data processing efficiency of the electronic device.
[0059] In response to the above phenomenon, the present application provides a method for transmitting traffic light data, which is applied to an electronic device, and the electronic device is communicatively connected to a vehicle. The method includes: when it is detected that a high-precision map is not configured in the vehicle, obtaining structured vehicle driving data of the vehicle, and determining structured road information data corresponding to the vehicle based on the structured vehicle driving data; determining a target traffic light corresponding to the vehicle based on the structured vehicle driving data and the structured road information data; reading first traffic light data of the target traffic light, and transmitting the first traffic light data to the vehicle.
[0060] In this way, the present application solves the technical problem of low efficiency of electronic devices in processing traffic light data in the related art. That is, the present application determines the structured road information data corresponding to the city where the vehicle is located according to the structured vehicle driving data when the electronic device detects that the vehicle is not equipped with a high-precision map, and screens multiple traffic lights in the city according to the structured vehicle driving data and the structured road information data to determine the target traffic light that matches the vehicle, thereby directly reading the traffic light data of the target traffic light and sending the traffic light data to the vehicle. The electronic device can directly determine the target traffic light that the vehicle will face next without processing the traffic light data of different traffic lights based on the road-traffic light mapping relationship contained in the high-precision map, and send the traffic light data corresponding to the target traffic light to the vehicle, thereby achieving the technical effect of improving the processing efficiency of the electronic device for traffic light data and ensuring that the vehicle can generate accurate decision instructions based on the traffic light data.
[0061] Based on the overall concept of the signal light data transmission method of the present application, the present application embodiment provides a signal light data transmission method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the signal light data transmission method of the present application. In this embodiment, the signal light data transmission method is applied to an electronic device, the electronic device is connected to a vehicle for communication, and the signal light data transmission method includes steps S10 to S30:
[0062] Step S10: when it is detected that the vehicle is not equipped with a high-precision map, obtaining structured vehicle driving data of the vehicle, and determining structured road information data corresponding to the vehicle according to the structured vehicle driving data;
[0063] It should be noted that the vehicle driving data is information data that can reflect the location and driving route of the vehicle, and specifically may include parameters such as vehicle identification information, vehicle longitude and latitude data, vehicle heading angle parameters, and vehicle driving trajectory. The structured vehicle driving data is structured data obtained after structured processing of the vehicle driving data. In addition, the road information data is information data containing road information of all urban roads in the city, and signal light information of traffic lights configured on all urban roads, and specifically may include: intersection location information, intersection identification information, road longitude and latitude data, signal light deployment location information, etc. The structured road information data is structured data obtained after structured processing of the road information data. In addition, the structured vehicle driving data and structured road information data are both encapsulated and stored in a storage module configured by the electronic device itself.
[0064] In this embodiment, when the electronic device is running, it first accesses the vehicle to which it is communicatively connected to detect whether a high-precision map is configured in the vehicle. If it detects that a high-precision map is not configured in the vehicle, the electronic device obtains the structured vehicle driving data generated by the vehicle during driving through the vehicle controller configured in the vehicle. The electronic device then determines the city where the vehicle is located based on the structured vehicle driving data, and reads the storage module configured in itself to obtain the structured road information data corresponding to the city where the vehicle is located.
[0065] Exemplarily, for example, during vehicle driving, the electronic device first accesses the vehicle that is communicatively connected to itself and detects the vehicle. When it detects that the vehicle is not configured with a high-precision map, the electronic device accesses the VCU (Vehicle Control Unit) configured in the vehicle to obtain structured vehicle driving data generated by the vehicle during driving, which contains vehicle identification information, vehicle longitude and latitude data, vehicle heading angle parameters, vehicle driving trajectory and other parameters after structured processing. The electronic device then determines that the city where the vehicle is located is city A based on the vehicle longitude and latitude data contained in the structured vehicle driving data. The electronic device then reads the storage module configured by itself to determine the structured road information data corresponding to city A from the structured road information data corresponding to each of the preset multiple cities that have been structured processed.
[0066] It should be noted that after the vehicle generates each vehicle driving data, it is necessary to first perform a data cleaning operation on each vehicle driving data, so as to convert the cleaned vehicle driving data according to a preset data format, and process the converted vehicle driving data according to a preset data specification to obtain structured vehicle driving parameters. Similarly, after the electronic device obtains each road information data, it is also necessary to perform structured processing on the road information data to obtain each structured road information data. It is understandable that there are many data formats and data specifications that can be used when performing structured processing on each vehicle driving data and each road information data, and this application does not limit this.
[0067] In this way, the electronic device can obtain the structured vehicle driving data generated by the vehicle during driving by accessing the vehicle when it detects that the vehicle is not equipped with a high-precision map, and determine the city where the vehicle is located based on the structured vehicle driving data, and then obtain the structured road information data corresponding to the city.
[0068] Step S20: determining a target traffic light corresponding to the vehicle according to the structured vehicle travel data and the structured road information data;
[0069] It should be noted that the target traffic light is the traffic light that the vehicle needs to face when passing the target intersection closest to itself (for example, when the vehicle is traveling from west to east and passing the target intersection, the target traffic light is the west-bound traffic light facing west among the four traffic lights to be screened).
[0070] In this embodiment, after acquiring the structured vehicle driving data and the structured road information data, the electronic device determines the target intersection that the vehicle will pass next during driving based on the structured vehicle driving data and the structured road information data, and determines the target traffic light that the vehicle needs to face when passing the target intersection.
[0071] Exemplarily, for example, after obtaining the structured vehicle driving data of the vehicle and the structured road information data corresponding to the city A where the vehicle is located, the electronic device first reads the vehicle longitude and latitude data contained in the structured vehicle driving data, and reads the longitude and latitude data of each road contained in the structured road information data. The electronic device then screens the intersections contained in city A according to the vehicle longitude and latitude data and the longitude and latitude data of each road to determine the target intersection that the vehicle will pass through next, and then determines the target traffic light that the vehicle needs to face when passing through the target intersection among the eastbound signal light, westbound signal light, southbound signal light and northbound signal light set in the target intersection.
[0072] In this way, the electronic device can determine the target intersection that the vehicle will pass next by processing the structured vehicle driving data and the structured road information data, and determine the target traffic light that the vehicle needs to face when passing the target intersection from among the multiple traffic lights configured in the target intersection.
[0073] In a feasible implementation manner, the above step S20 may specifically include steps S201 to S202:
[0074] Step S201: determining a target intersection corresponding to the vehicle according to the structured vehicle travel data and the structured road information data, and determining a plurality of to-be-screened traffic lights corresponding to the target intersection;
[0075] Step S202: screening the plurality of traffic lights to be screened according to the structured vehicle travel data and the structured road information data to determine a target traffic light corresponding to the vehicle.
[0076] It should be noted that the target intersection is an intersection that the vehicle is about to pass through among multiple intersections in the city where the vehicle is located. In addition, the traffic lights to be screened are multiple traffic lights arranged in the target intersection. It is understandable that four traffic lights facing different directions are usually arranged in a standard intersection.
[0077] In this embodiment, after acquiring the structured vehicle driving data and the structured road information data, the electronic device first screens multiple intersections contained in the target city according to the structured vehicle driving data and the structured road information data, so as to determine the target intersection that the vehicle will pass next during driving. At the same time, the electronic device determines multiple traffic lights with different directions to be screened that are set in the target intersection. After that, the electronic device reads the structured vehicle driving data to determine the driving direction of the vehicle, and reads the structured road information data to determine the signal light directions corresponding to the multiple traffic lights to be screened. The electronic device then screens the multiple signal lights to be screened according to the driving direction and the multiple signal light directions, so as to determine the target traffic light that the vehicle needs to face when passing through the target intersection from the multiple signal lights to be screened.
[0078] For example, see Figure 3 , Figure 3 This is a schematic diagram of a vehicle driving scene involved in an embodiment of a method for transmitting signal light data of the present application, such as Figure 3 As shown, after acquiring the structured vehicle driving data of the vehicle and the structured road information data corresponding to the city where the vehicle is located, the electronic device first reads the vehicle longitude and latitude data contained in the structured vehicle driving data. At the same time, the electronic device reads the intersection longitude and latitude data corresponding to each intersection contained in the structured road information data, and screens multiple intersections to be screened contained in city A based on the vehicle longitude and latitude data and the longitude and latitude data of each intersection to determine the target intersection that the vehicle will pass next during driving. At the same time, the electronic device reads the signal light deployment position information contained in the structured road information data to determine the four intersections set in the target intersection. The electronic device then reads the vehicle heading angle parameters contained in the structured vehicle driving data, and determines the driving direction of the vehicle based on the vehicle heading angle parameters. At the same time, the electronic device reads the structured road information data to determine the signal light directions corresponding to each of the 4 traffic lights to be screened, and screens the 4 traffic lights to be screened according to the driving direction and the signal light directions. When the driving direction of the vehicle is determined to be from east to west according to the vehicle heading angle parameters, the west-bound signal light facing west among the 4 traffic lights to be screened is determined as the target traffic light that the vehicle needs to face when passing the target intersection.
[0079] In this way, the electronic device can determine the target intersection that the vehicle will pass next by processing the structured vehicle driving data and the structured road information data, and determine the target traffic light that the vehicle needs to face when passing the target intersection from among the multiple traffic lights configured in the target intersection.
[0080] In a feasible implementation manner, the step of "determining the target intersection corresponding to the vehicle according to the structured vehicle driving data and the structured road information data" in the above step S201 may specifically include steps S2011 to S2014:
[0081] Step S2011: reading the vehicle longitude and latitude data contained in the structured vehicle travel data, and reading the longitude and latitude data of multiple intersections contained in the structured road information data;
[0082] Step S2012: determining the distance between each of the plurality of to-be-screened intersections and the vehicle based on the latitude and longitude data of the vehicle and the latitude and longitude data of the plurality of intersections;
[0083] Step S2013: determining the azimuth of each of the plurality of intersections to be screened and the vehicle based on the latitude and longitude data of the vehicle and the latitude and longitude data of the plurality of intersections;
[0084] Step S2014: Determine the target intersection corresponding to the vehicle according to the distances of each of the to-be-screened intersections and the azimuths of each of the to-be-screened intersections.
[0085] It should be noted that the intersection azimuth is the angle parameter generated between the intersection to be screened and the driving direction of the vehicle.
[0086] In this embodiment, after acquiring the structured vehicle driving data and the structured road information data, the electronic device first reads the vehicle longitude and latitude data contained in the structured vehicle driving data. At the same time, the electronic device reads the longitude and latitude data of multiple intersections contained in the structured road information data. Then, the electronic device calculates the vehicle longitude and latitude data and the multiple intersection longitude and latitude data to determine multiple intersections to be screened in the city where the vehicle is located, and the distances of the intersections to be screened generated between each of them and the vehicle. Then, the electronic device calculates the vehicle longitude and latitude data and the multiple intersection longitude and latitude data to determine the azimuths of the intersections to be screened generated between the multiple intersections to be screened and the vehicle. Finally, the electronic device screens each intersection to be screened based on the distances of each intersection to be screened and the azimuths of each intersection to be screened to determine the target intersection that the vehicle is about to pass.
[0087] Exemplarily, for example, after acquiring the structured vehicle driving data of the vehicle and the structured road information data corresponding to the city where the vehicle is located, the electronic device first reads the vehicle longitude and latitude data contained in the structured vehicle driving data. At the same time, the electronic device reads the intersection longitude and latitude data corresponding to each of the intersections to be screened contained in the structured road information data. Afterwards, the electronic device calculates the acquired vehicle longitude and latitude data and multiple intersection longitude and latitude data to determine the distances between the vehicle and each of the multiple intersections to be screened. Afterwards, the electronic device calculates the acquired vehicle longitude and latitude data and multiple intersection longitude and latitude data to determine the intersection azimuths generated between each of the multiple intersections to be screened and the vehicle. Finally, the electronic device screens each intersection to be screened based on the distances and azimuths of each intersection to be screened, thereby determining the target intersection in each intersection to be screened that is in the direction of vehicle travel and has a distance within a certain range from the vehicle.
[0088] In this way, the electronic device can determine the target intersection that the vehicle will pass next by processing the structured vehicle driving data and the structured road information data.
[0089] In a feasible implementation manner, the above step S2014 may specifically include steps S20141 to S20143:
[0090] Step S20141: reading the vehicle heading angle parameter contained in the structured vehicle data, and determining a plurality of target intersections to be screened from a plurality of intersections to be screened based on the vehicle heading angle parameter and the azimuth of each intersection to be screened;
[0091] Step S20142: determining a preset intersection distance threshold, and comparing a plurality of the to-be-screened intersection distances with the preset intersection distance threshold respectively to determine a plurality of target intersection distances, wherein the target intersection distance is a to-be-screened intersection distance whose value is less than the preset intersection distance threshold;
[0092] Step S20143: Screening the plurality of target intersections to be screened based on the distances of the target intersections to determine the target intersection corresponding to the vehicle.
[0093] In this embodiment, after determining the azimuth and distance of each intersection to be screened, the electronic device first reads the vehicle heading angle parameters contained in the structured vehicle driving data, and screens the azimuth of each intersection to be screened based on the vehicle heading angle parameters, thereby determining multiple target intersections to be screened in the vehicle driving direction from multiple intersections to be screened. Afterwards, the electronic device reads the storage module configured by itself to obtain a preset intersection distance threshold, and compares the obtained multiple intersection distances to be screened with the preset intersection distance threshold respectively, thereby determining multiple target intersection distances whose values are less than the preset intersection distance threshold from multiple intersection distances to be screened. Finally, the electronic device screens the target intersections to be screened based on the multiple target distances to determine the target intersections that are in the vehicle driving direction and whose distances from the vehicle are less than the preset intersection distance threshold.
[0094] Exemplarily, for example, after determining the azimuth and distance of each intersection to be screened, the electronic device first reads the vehicle heading angle parameters contained in the structured vehicle driving data, and screens the azimuth of each intersection to be screened based on the vehicle heading angle parameters, thereby determining the target intersection to be screened located in front of the vehicle among multiple intersections to be screened. Afterwards, the electronic device reads the storage module configured by itself to obtain a preset intersection distance threshold of 2km, and compares the distance of each intersection to be screened with the preset intersection distance threshold respectively to determine whether the distance of each intersection to be screened reaches 2km. The electronic device then determines the distance of each intersection to be screened that does not reach 2km as the target intersection distance. Finally, the electronic device screens multiple target intersections to be screened located in front of the vehicle based on the distance of each target intersection, thereby determining the target intersection within 2km from the vehicle among multiple target intersections to be screened.
[0095] In addition, in this embodiment and another embodiment, after determining the azimuth angle of each intersection to be screened and the distance of each intersection to be screened, the electronic device can also first determine the target intersection to be screened that is at a certain distance from the vehicle among multiple intersections to be screened based on the distance of each intersection to be screened and the above-mentioned preset intersection distance threshold. After that, the electronic device obtains the vehicle heading angle parameter, and screens the azimuth angle of each intersection to be screened based on the vehicle heading angle parameter to determine the azimuth angle of each target intersection to be screened that matches the vehicle heading angle parameter, and then screens each target intersection to be screened based on the azimuth angle of each target intersection to be screened, thereby determining the target intersection that is in the direction of vehicle travel and within a certain distance from the vehicle.
[0096] In this way, the electronic device can determine the target intersection that the vehicle will pass next by processing the structured vehicle driving data and the structured road information data.
[0097] In a feasible implementation manner, the step of "determining the target intersection corresponding to the vehicle according to the structured vehicle driving data and the structured road information data" in the above step S201 may further include steps S2015 to S2018:
[0098] Step S2015: reading the vehicle longitude and latitude data contained in the structured vehicle driving data, and reading a plurality of road longitude and latitude data contained in the structured road information data;
[0099] Step S2016: screening the plurality of road longitude and latitude data based on the vehicle longitude and latitude data to determine target road longitude and latitude data, and determining the target driving road corresponding to the vehicle according to the target road longitude and latitude data;
[0100] Step S2017: determining the distances between the vehicle and a plurality of intersections to be screened contained in the target driving road according to the latitude and longitude data of the vehicle;
[0101] Step S2018: Determine a target intersection distance from among the multiple intersection distances to be screened, and determine the intersection to be screened corresponding to the target intersection distance as the target intersection corresponding to the vehicle, wherein the target intersection distance is the intersection distance to be screened with the smallest value.
[0102] In this embodiment, after acquiring the structured vehicle driving data and the structured road information data, the electronic device first reads the vehicle longitude and latitude data contained in the structured vehicle driving data, and reads the road longitude and latitude data corresponding to each urban road contained in the structured road information data. After that, the electronic device compares the acquired vehicle longitude and latitude data with the multiple road longitude and latitude data to obtain multiple comparison results. The electronic device then determines the target road longitude and latitude data that matches the vehicle longitude and latitude data from the multiple road longitude and latitude data based on the multiple comparison results. The electronic device then determines the urban road corresponding to the target road longitude and latitude data as the target driving road on which the vehicle is traveling. After that, the electronic device reads the position information of each intersection contained in the structured road information data to determine the multiple intersections to be screened contained in the target driving road, and determines the distances of the intersections to be screened generated between each of the multiple intersections to be screened and the vehicle according to the vehicle longitude and latitude data. Finally, the electronic device screens the multiple intersection distances to be screened to determine the target intersection distance with the smallest value contained in the multiple intersection distances to be screened, and determines the intersection to be screened corresponding to the target intersection distance as the target intersection that the vehicle is about to pass.
[0103] Exemplarily, for example, after the electronic device acquires the structured vehicle driving data of the vehicle and the structured road information data corresponding to the city A where the vehicle is located, it first reads the vehicle longitude and latitude data contained in the structured vehicle driving data. At the same time, the electronic device reads the longitude and latitude data of each road contained in the structured road information data and corresponding to each city road. Afterwards, the electronic device compares the acquired vehicle longitude and latitude data with the longitude and latitude data of each road respectively to obtain multiple first comparison results. The electronic device then determines the target road longitude and longitude data that matches the vehicle longitude and longitude data from the multiple road longitude and longitude data based on the multiple first comparison results. The electronic device thereby reads the multiple road sign information contained in the structured road information data, and determines the target road sign information that matches the target road longitude and longitude data from the multiple road sign information. , the electronic device then determines the urban road corresponding to the target road identification information as the target driving road on which the vehicle is traveling. After that, the electronic device reads the vehicle heading angle parameters contained in the structured vehicle driving data, and determines the vehicle's driving direction as from east to west based on the vehicle heading angle parameters. At the same time, the electronic device reads the location information of each intersection contained in the structured road information data, and determines multiple unpassed intersections to be screened included in the target driving road based on the intersection location information and the driving direction. The electronic device then determines the distances between the vehicle and multiple intersections to be screened based on the vehicle's latitude and longitude data. Finally, the electronic device screens the multiple intersection distances to be screened, so as to take the intersection distance with the smallest value as the target intersection distance, and determines the intersection to be screened corresponding to the target intersection distance as the target intersection that the vehicle is about to pass.
[0104] In this way, the electronic device can determine the target driving road of the vehicle in the city by processing the structured vehicle driving data and the structured road information data, and then determine the target intersection that the vehicle will pass next from the multiple intersections to be screened included in the target driving road.
[0105] In a feasible implementation manner, the above step S202 may specifically include steps S2021 to S2024:
[0106] Step S2021: determining the driving direction angle corresponding to the vehicle according to the vehicle heading angle parameter;
[0107] Step S2022: reading the structured road information data to determine the signal light azimuth angle ranges corresponding to each of the plurality of traffic lights to be screened;
[0108] Step S2023: screening the plurality of signal light azimuth angle ranges based on the driving direction angle to determine a target signal light azimuth angle range that matches the driving direction angle;
[0109] Step S2024: Determine the to-be-screened traffic lights corresponding to the target traffic light azimuth range as the target traffic lights corresponding to the vehicle.
[0110] It should be noted that the azimuth angle range of the traffic light is the angular range in which the traffic signal can be observed by vehicles, wherein the preset coordinate system is a coordinate system constructed with the traffic light as the center point, the north as the positive direction of the y-axis, and the east of the city as the positive direction of the x-axis. For example, when the traffic light is an east-bound signal light facing east, the corresponding azimuth angle range of the traffic light is 45 to 135 degrees. At this time, when the vehicle's driving direction is between 45 and 135 degrees in the coordinate system, the vehicle can observe the east-bound signal light; similarly, when the traffic light is a west-bound signal light facing west, the corresponding azimuth angle range of the traffic light is 225 to 315 degrees. This When the vehicle's travel direction is between 225 and 315 degrees in the coordinate system, the vehicle can observe the westbound traffic light; similarly, when the traffic light is a southbound traffic light facing south, the corresponding traffic light azimuth range is 135 to 225 degrees. At this time, when the vehicle's travel direction is between 135 and 225 degrees in the coordinate system, the vehicle can observe the southbound traffic light; similarly, when the traffic light is a northbound traffic light facing north, the corresponding traffic light azimuth range is 315 to 45 degrees. At this time, when the vehicle's travel direction is between 315 and 45 degrees in the coordinate system, the vehicle can observe the northbound traffic light. It can be understood that there should be no overlapping areas between the traffic light azimuth ranges corresponding to different traffic lights, so as to ensure that the electronic device can accurately identify the target traffic light corresponding to the vehicle.
[0111] In this embodiment, after the electronic device screens and obtains multiple traffic lights to be screened located in the target intersection, it first reads the vehicle heading angle parameters contained in the structured vehicle driving data, and determines the vehicle's driving direction angle based on the vehicle heading angle parameters. Then, the electronic device reads the structured road information data to obtain the signal light azimuth angle ranges corresponding to each of the multiple traffic lights to be screened. Then, the electronic device compares the obtained driving direction angle with the multiple signal light azimuth angle ranges, respectively, so as to determine the target signal light azimuth angle range that includes the driving direction angle in the multiple signal light azimuth angle ranges. Finally, the electronic device determines the traffic light to be screened corresponding to the target signal light azimuth angle range as the target traffic light that the vehicle needs to face when passing through the target intersection.
[0112] For example, after the electronic device has screened out four traffic lights with different orientations to be screened at the target intersection, it first reads the structured vehicle driving data to obtain the vehicle heading angle parameters corresponding to the vehicle, and determines that the vehicle is traveling from west to east based on the vehicle heading angle parameters, thereby determining that the vehicle's driving direction angle is 270 degrees. After that, the electronic device reads the structured road information data to obtain the signal light azimuth ranges corresponding to the above-mentioned eastbound signal light, westbound signal light, southbound signal light, and northbound signal light, which are 45 to 135 degrees, 225 degrees, and 135 degrees, respectively. To 315 degrees, 135 to 225 degrees, 315 to 45 degrees, and then, the electronic device compares the obtained driving direction angle with multiple traffic light azimuth angle ranges respectively, so as to screen out the target traffic light azimuth angle range of 225 to 315 degrees that includes the driving direction angle in the four traffic light azimuth angle ranges. Finally, the electronic device determines that the traffic light to be screened corresponding to the target traffic light azimuth angle range of 25 to 315 degrees is the west-bound traffic light facing west, and determines the west-bound traffic light as the target traffic light that the vehicle needs to face when passing the target intersection.
[0113] In this way, the electronic device can determine the vehicle's driving direction by processing the structured vehicle driving data and the structured road information data, and screen multiple traffic lights to be screened in the target intersection according to the driving direction to determine the target traffic light that the vehicle will face when passing the target intersection.
[0114] Step S30: reading first signal light data of the target traffic light, and transmitting the first signal light data to the vehicle;
[0115] It should be noted that the first signal light data is light state data including the signal light countdown and the signal light direction.
[0116] In this embodiment, after determining the target traffic light corresponding to the vehicle, the electronic device accesses the target traffic light to read the first traffic light data contained in the target traffic light, and sends the first traffic light data to the vehicle through its own configured communication module, so that the vehicle can determine the traffic light countdown, traffic light command direction and other information corresponding to the target traffic light according to the first traffic light data.
[0117] Exemplarily, for example, after the electronic device determines that the target traffic light facing the vehicle when passing through the target intersection is a westbound signal light, the electronic device further accesses the westbound signal light to read the first signal light data in the westbound signal light, which includes the signal light countdown and the signal light indication direction. The electronic device then calls its own configured communication module, and sends the acquired first signal light data to the vehicle passing through the target intersection based on the preset MQTT (Message Queuing Telemetry Transport) protocol, so that the vehicle can display the remaining signal light time and the signal light indication direction in the westbound signal light to the driver through its own configured HUD (Head-Up Display) screen.
[0118] It should be noted that, in the process of obtaining the first signal light data, the electronic device needs to first obtain the underlying signal light data of the target traffic light, and filter and clean the underlying signal light data based on preset rules to remove the dirty signal light data and obtain accurate first signal light data. It is understandable that the process of filtering and cleaning the underlying signal light data by the electronic device is a prior art, so it will not be described in detail here.
[0119] In this embodiment, when the electronic device is running, it first accesses the vehicle that is connected to itself for communication to detect whether a high-precision map is configured in the vehicle. When it is detected that the high-precision map is not configured in the vehicle, the electronic device obtains the structured vehicle driving data generated by the vehicle during driving through the vehicle controller configured in the vehicle. The electronic device then determines the city where the vehicle is located based on the structured vehicle driving data, and reads the storage module configured by itself to obtain the structured road information data corresponding to the city where the vehicle is located. Afterwards, the electronic device determines the target intersection that the vehicle will pass through next during driving based on the structured vehicle driving data and the structured road information data, and determines the target traffic light that the vehicle needs to face when passing through the target intersection. Finally, the electronic device accesses the target traffic light to read the first traffic light data contained in the target traffic light, and sends the first traffic light data to the vehicle through the communication module configured by itself, so that the vehicle determines the traffic light countdown, traffic light command direction and other information corresponding to the target traffic light based on the first traffic light data.
[0120] In this way, the present application solves the technical problem of low efficiency of electronic devices in processing traffic light data in the related art. That is, the present application determines the structured road information data corresponding to the city where the vehicle is located according to the structured vehicle driving data when the electronic device detects that the vehicle is not equipped with a high-precision map, and screens multiple traffic lights in the city according to the structured vehicle driving data and the structured road information data to determine the target traffic light that matches the vehicle, thereby directly reading the traffic light data of the target traffic light and sending the traffic light data to the vehicle. The electronic device can directly determine the target traffic light that the vehicle will face next without processing the traffic light data of different traffic lights based on the road-traffic light mapping relationship contained in the high-precision map, and send the traffic light data corresponding to the target traffic light to the vehicle, thereby achieving the technical effect of improving the processing efficiency of the electronic device for traffic light data and ensuring that the vehicle can generate accurate decision instructions based on the traffic light data.
[0121] Based on the first embodiment of the present application, the second embodiment of the present application is proposed here. In the second embodiment of the present application, the same or similar contents as those of the above-mentioned embodiment 1 can be referred to the above introduction and will not be repeated later. Figure 2 , Figure 2 A flow chart of the second embodiment of the method for transmitting signal light data of the present application is provided, as shown in FIG. Figure 2 As shown, before the above step S10, the signal light data transmission method of the present application may further include steps A10 to A30:
[0122] Step A10: Obtaining preset signal light azimuth angle extension parameters;
[0123] Step A20: determining the signal light deployment position information corresponding to the traffic light to be screened, and determining the signal light direction corresponding to the traffic light to be screened according to the signal light deployment position information;
[0124] Step A30: determining the initial azimuth of the traffic light to be screened based on the direction of the traffic light, and expanding the initial azimuth according to the signal light azimuth expansion parameter to obtain a signal light azimuth range corresponding to the traffic light to be screened.
[0125] In this embodiment, before accessing the vehicle to obtain structured vehicle driving data, the electronic device first reads the storage device configured by itself to obtain the preset signal light azimuth extension parameters. After that, the electronic device reads the above-mentioned structured road information data to determine the signal light deployment position information corresponding to the traffic light to be screened. The electronic device determines the signal light direction corresponding to the traffic light to be screened according to the signal light deployment position information. Finally, the electronic device determines the initial signal light azimuth corresponding to the traffic light to be screened in the above-mentioned preset coordinate system according to the signal light direction, and takes the initial signal light azimuth as a reference and expands the initial signal light azimuth according to the signal light azimuth extension parameters, thereby obtaining the signal light azimuth range corresponding to the traffic light to be screened.
[0126] Exemplarily, for example, before accessing a vehicle to obtain structured vehicle driving data, the electronic device first reads a storage module configured therein to obtain a preset signal light azimuth extension parameter of 45 degrees. After that, the electronic device reads the structured road information data to determine the signal light deployment location information corresponding to the target intersection. The electronic device then determines the signal light directions corresponding to the above four traffic lights to be screened according to the signal light deployment location information. Finally, the electronic device determines the initial signal light azimuth corresponding to the eastbound signal light as 90 degrees according to the directions of each signal light, and determines the westbound signal light as 90 degrees. The corresponding initial signal light azimuth is 270 degrees, and the initial signal light azimuth corresponding to the southbound signal light is determined to be 180 degrees, and the initial signal light azimuth corresponding to the northbound signal light is determined to be 0 degrees. The electronic device expands the azimuths of each initial signal light according to the signal light azimuth expansion parameter to determine that the signal light azimuth corresponding to the eastbound signal light ranges from 45 to 135 degrees, the signal light azimuth corresponding to the westbound signal light ranges from 225 to 315 degrees, the signal light azimuth corresponding to the southbound signal light ranges from 135 to 225 degrees, and the signal light azimuth corresponding to the northbound signal light ranges from 315 to 45 degrees.
[0127] It should be noted that the traffic light azimuth angle extension parameter can be set to any value according to the needs of the technicians themselves. The present application does not limit the specific value of the traffic light azimuth angle extension parameter. In addition, it can be understood that there should be no overlapping areas between the traffic light azimuth angle ranges corresponding to different traffic lights, so as to ensure that the electronic device can accurately identify the target traffic light corresponding to the vehicle.
[0128] In this way, the electronic device can set the signal light azimuth angle ranges corresponding to different traffic lights, thereby determining the traffic lights that can be observed by the vehicle when passing through the target intersection based on the signal light azimuth angle ranges.
[0129] Based on the first embodiment and / or the second embodiment of the present application, a third embodiment of the present application is proposed here. In the third embodiment of the present application, the same or similar contents as the above embodiments can be referred to the above introduction and will not be repeated later. On this basis, after the above step S30, the signal light data transmission method of the present application can also include steps B10 to B30:
[0130] Step B10: reading second signal light data of the target traffic light, wherein the second signal light data is obtained by updating the first signal light data by the target traffic light;
[0131] Step B20: acquiring vehicle position information corresponding to the vehicle, and determining whether the vehicle has passed the target traffic light based on the vehicle position information;
[0132] Step B30: If it is determined that the vehicle has not passed the target traffic signal, the second signal light data is transmitted to the vehicle, so as to replace the first signal light data with the second signal light data.
[0133] In this embodiment, after the electronic device transmits the acquired first signal light data to the vehicle, it can continue to access the above-mentioned target traffic light and detect the target traffic light. After detecting that the target traffic light updates the first signal light data to obtain the second signal light data, the electronic device reads the second signal light data. After that, the electronic device accesses the vehicle controller in the vehicle to obtain the vehicle position information corresponding to the vehicle when the above-mentioned first signal light data is received, and determines whether the vehicle has passed the target traffic light based on the vehicle position information. Finally, if the electronic device determines that the vehicle has not passed the target traffic light, it transmits the second signal light data to the vehicle through the above-mentioned communication module, so that the vehicle can obtain the signal light countdown, signal light command direction and other information corresponding to the target traffic light in real time based on the second signal light data.
[0134] Exemplarily, for example, after the electronic device sends the above-mentioned first signal light data to the vehicle, it can continue to detect the above-mentioned westbound signal light. When the westbound signal light updates the remaining signal light duration and the signal light indication direction contained in the first signal light data to generate the second signal light data, the electronic device accesses the westbound signal light to obtain the second signal light data updated by the westbound signal light. Afterwards, the electronic device accesses the VCU vehicle controller in the vehicle to obtain the vehicle position information corresponding to the vehicle when receiving the above-mentioned first signal light data. The electronic device then determines whether the vehicle has passed the westbound signal light based on the vehicle position information and the signal light deployment position information corresponding to the above-mentioned westbound signal light. Finally, if the electronic device determines that the vehicle has not passed the westbound signal light, it calls the above-mentioned communication module to send the updated second signal light data to the vehicle based on the MQTT protocol, so that the vehicle can display the remaining signal light duration and the signal light indication direction in the westbound signal light in the target intersection to the external driver through the HUD screen configured by itself.
[0135] In this way, the electronic device can periodically detect the target traffic light to obtain updated traffic light data, and send the updated traffic light data to the vehicle when it is determined that the vehicle has not passed the traffic signal, ensuring that the vehicle can obtain the latest traffic light data in real time.
[0136] In addition, in this embodiment and another embodiment, after sending the first signal light data to the vehicle, the electronic device may first access the vehicle controller in the vehicle to obtain the vehicle position information of the vehicle, and determine whether the vehicle has passed the above-mentioned target traffic light according to the vehicle position information. Afterwards, if the electronic device determines that the vehicle has passed the above-mentioned target traffic light, the first signal light data in the vehicle is deleted. In this way, the electronic device can periodically delete the signal light data stored in the vehicle to free up the storage space of the vehicle and reduce the data storage pressure of the vehicle.
[0137] For example, in order to help understand the implementation process of the signal light data transmission method obtained by combining this embodiment with the above embodiments, please refer to Figure 4 , Figure 4 A brief flow chart of a method for transmitting signal light data is provided, specifically:
[0138] In this embodiment, the electronic device first reads the storage module configured by itself to obtain the preset signal light azimuth expansion parameters and structured road information data, and the electronic device determines the signal light deployment position and signal light direction corresponding to each traffic light in the city according to the structured road information data, and the electronic device then constructs the preset coordinate system corresponding to each traffic light, and determines the initial signal light azimuth of each traffic light in the preset coordinate system according to each signal light direction, and the electronic device expands each initial signal light azimuth according to the signal light azimuth expansion parameters to determine the signal light azimuth range corresponding to each of the multiple traffic lights;
[0139] Afterwards, when the vehicle is traveling, the electronic device accesses the vehicle controller configured in the vehicle to obtain the structured vehicle driving data generated by the vehicle during the driving process, and the electronic device parses the structured vehicle driving data to determine the city where the vehicle is located, and the electronic device thereby filters the multiple structured road information data stored in itself according to the city where the vehicle is located, so as to determine the structured road information data corresponding to the city where the vehicle is located, and then the electronic device reads the vehicle longitude and latitude data contained in the structured vehicle driving data, and the multiple intersection longitude and latitude data contained in the structured road information data, and the electronic device thereby filters out the target intersection that the vehicle is about to pass through according to the vehicle longitude and latitude data and the multiple intersection longitude and latitude data;
[0140] Then, the electronic device determines a plurality of traffic lights to be screened with different orientations contained in the target intersection, and determines the signal light azimuth angle ranges corresponding to each of the plurality of traffic lights to be screened, and the electronic device compares the driving direction angle corresponding to the driving direction of the vehicle with the plurality of signal light azimuth angle ranges to determine the target signal light azimuth angle range that matches the driving direction angle, and the electronic device determines the traffic lights to be screened corresponding to the target signal light azimuth angle range as the target traffic lights that the vehicle needs to face when passing through the target intersection, and the electronic device then accesses the target traffic lights to obtain first signal light data, and transmits the first signal light data to the vehicle;
[0141] Finally, the electronic device detects the target traffic light, and when it detects that the target traffic light updates the first signal light data to obtain the second signal light data, the electronic device again accesses the vehicle controller to determine the vehicle position information of the vehicle, and determines whether the vehicle has passed the target traffic light based on the vehicle position information. When the electronic device determines that the vehicle has not passed the target traffic light, it transmits the updated second signal light data to the vehicle.
[0142] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the method for transmitting traffic light data of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0143] The present application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for transmitting signal light data in the above-mentioned embodiment 1.
[0144] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to an electronic device, a mobile terminal, a data storage control terminal, a PC (Personal Computer), etc., which is internally configured with a communication module and can communicate with different vehicles through the communication module. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0145] like Figure 5 As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0146] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0147] The electronic device provided by the present application adopts the signal light data transmission method in the above embodiment, which can solve the technical problem of low efficiency of electronic devices in the process of processing signal light data in the related art. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as the beneficial effects of the signal light data transmission method provided by the above embodiment, and the other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0148] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0149] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0150] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the signal light data transmission method in the above-mentioned embodiment.
[0151] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0152] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0153] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by an electronic device, the electronic device: obtains structured vehicle driving data of the vehicle, and determines structured road information data corresponding to the vehicle based on the structured vehicle driving data; determines the target traffic light corresponding to the vehicle based on the structured vehicle driving data and the structured road information data; reads the first traffic light data of the target traffic light, and transmits the first traffic light data to the vehicle.
[0154] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0155] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0156] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0157] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned signal light data transmission method, and can solve the technical problem of low efficiency of electronic equipment in processing signal light data in the related art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the signal light data transmission method provided by the above-mentioned embodiment, and will not be repeated here.
[0158] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned signal light data transmission method when executed by a processor.
[0159] The computer program product provided by the present application can solve the technical problem of low efficiency of electronic devices in processing signal light data in the related art. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the signal light data transmission method provided by the above embodiment, which will not be repeated here.
[0160] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for transmitting signal light data, characterized in that: The signal light data transmission method is applied to an electronic device, the electronic device is communicatively connected with a vehicle, and the method comprises: When it is detected that the vehicle is not equipped with a high-precision map, obtaining structured vehicle driving data of the vehicle, and determining structured road information data corresponding to the vehicle according to the structured vehicle driving data; Determining a target traffic light corresponding to the vehicle according to the structured vehicle driving data and the structured road information data; The first signal light data of the target traffic light is read, and the first signal light data is transmitted to the vehicle.
2. The method for transmitting signal light data according to claim 1, characterized in that: The step of determining the target traffic light corresponding to the vehicle according to the structured vehicle travel data and the structured road information data comprises: Determine a target intersection corresponding to the vehicle according to the structured vehicle travel data and the structured road information data, and determine a plurality of to-be-screened traffic lights corresponding to the target intersection; The plurality of traffic lights to be screened are screened according to the structured vehicle travel data and the structured road information data to determine a target traffic light corresponding to the vehicle.
3. The method for transmitting signal light data according to claim 2, characterized in that: The step of determining the target intersection corresponding to the vehicle according to the structured vehicle travel data and the structured road information data comprises: Reading the vehicle longitude and latitude data contained in the structured vehicle travel data, and reading the latitude and longitude data of multiple intersections contained in the structured road information data; Based on the latitude and longitude data of the vehicle and the latitude and longitude data of the plurality of intersections, determining the distance between each of the plurality of intersections to be screened and the vehicle; Based on the latitude and longitude data of the vehicle and the latitude and longitude data of the plurality of intersections, determining the azimuth of the intersection to be screened between each of the plurality of intersections to be screened and the vehicle; The target intersection corresponding to the vehicle is determined according to the distances of each of the to-be-screened intersections and the azimuths of each of the to-be-screened intersections.
4. The method for transmitting signal light data according to claim 3, characterized in that: The step of determining the target intersection corresponding to the vehicle according to the distances of each of the to-be-screened intersections and the azimuths of each of the to-be-screened intersections comprises: Reading a vehicle heading angle parameter contained in the structured vehicle data, and determining a plurality of target intersections to be screened from a plurality of intersections to be screened based on the vehicle heading angle parameter and the azimuth of each intersection to be screened; Determine a preset intersection distance threshold, and compare a plurality of the to-be-screened intersection distances with the preset intersection distance threshold respectively to determine a plurality of target intersection distances, wherein the target intersection distance is a to-be-screened intersection distance whose value is less than the preset intersection distance threshold; The plurality of target intersections to be screened are screened based on the distances of the target intersections to determine the target intersection corresponding to the vehicle.
5. The method for transmitting signal light data according to claim 2, characterized in that: The step of determining the target intersection corresponding to the vehicle according to the structured vehicle travel data and the structured road information data further includes: Reading the vehicle longitude and latitude data contained in the structured vehicle driving data, and reading a plurality of road longitude and latitude data contained in the structured road information data; Filtering the plurality of road longitude and latitude data based on the vehicle longitude and latitude data to determine target road longitude and latitude data, and determining a target driving road corresponding to the vehicle according to the target road longitude and latitude data; Determine, according to the latitude and longitude data of the vehicle, a plurality of distances between the vehicle and a plurality of intersections to be screened contained in the target driving road; A target intersection distance is determined among the multiple intersection distances to be screened, and the intersection to be screened corresponding to the target intersection distance is determined as the target intersection corresponding to the vehicle, wherein the target intersection distance is the intersection distance to be screened with the smallest value.
6. The method for transmitting signal light data according to claim 2, characterized in that: The step of screening the plurality of traffic lights to be screened according to the structured vehicle travel data and the structured road information data to determine the target traffic light corresponding to the vehicle comprises: Determine the driving direction angle corresponding to the vehicle according to the vehicle heading angle parameter; Reading the structured road information data to determine the signal light azimuth angle ranges corresponding to each of the plurality of traffic lights to be screened; Screening the plurality of signal light azimuth angle ranges based on the driving direction angle to determine a target signal light azimuth angle range that matches the driving direction angle; The traffic light to be screened corresponding to the target traffic light azimuth range is determined as the target traffic light corresponding to the vehicle.
7. The method for transmitting signal light data according to any one of claims 1 to 6, characterized in that: Before the step of acquiring structured vehicle driving data of the vehicle, the method further includes: Get the preset signal light azimuth extended parameters; Determine the signal light deployment position information corresponding to the traffic light to be screened, and determine the signal light orientation corresponding to the traffic light to be screened according to the signal light deployment position information; The initial azimuth of the traffic light to be screened is determined based on the direction of the traffic light, and the initial azimuth is expanded according to the signal light azimuth expansion parameter to obtain a signal light azimuth range corresponding to the traffic light to be screened.
8. The method for transmitting signal light data according to any one of claims 1 to 6, characterized in that: After the step of transmitting the first signal light data to the vehicle, the method further includes: Reading second signal light data of the target traffic light, wherein the second signal light data is obtained by updating the first signal light data by the target traffic light; Acquiring vehicle position information corresponding to the vehicle, and determining whether the vehicle has passed the target traffic light based on the vehicle position information; If it is determined that the vehicle has not passed the target traffic signal, the second signal light data is transmitted to the vehicle, so that the first signal light data is replaced by the second signal light data.
9. An electronic device, characterized in that: The electronic device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the signal light data transmission method according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the signal light data transmission method according to any one of claims 1 to 8 are implemented.
11. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method for transmitting signal light data according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Driving reminding method and device, equipment, storage medium and product
CN119889089A
Mixed intersection traffic light monitoring method and system, storage medium and electronic equipment
CN121545377A