Signal lamp display duration determination method and device and medium
By setting up image collectors at intersections to collect vehicle driving data and determining the signal light display duration in real time, this solves the problem of intersection signal light data not being obtained in time and improves user experience.
Patent Information
- Application Number
- CN202310455172.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-24
- Publication Date
- 2024-10-25
AI Technical Summary
In the existing technology, the display duration data of intersection signal lights is not uniformly connected to the official database, resulting in inability to obtain it in time and affecting the user experience.
By setting up an image collector at the target intersection to collect vehicle driving data, the conversion time of the signal light indicating that the vehicle passes from one road passing the target intersection to another road passing the target intersection is determined, and then the signal light display duration is accurately determined in real time.
It gets rid of dependence on official data, improves the real-time and accuracy of signal light display duration, ensures that users can obtain signal light prompt information in a timely manner, and improves user experience.
Smart Images

Figure CN118840876A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of traffic technology, and in particular to a method, device and medium for determining the display duration of a signal light. Background Art
[0002] The display duration of traffic lights at intersections is crucial to instruct users to pass through intersections. In order to provide convenience for users' travel, the duration of traffic lights can be displayed in electronic map applications to instruct users to pass through intersections in an orderly manner. The display duration of traffic lights at intersections is generally determined by official units. If the developer of a map application wants to obtain the display duration of traffic lights at intersections, it needs to obtain it from the official unit that sets the traffic light duration.
[0003] At present, the display duration data of many traffic lights at intersections have not been uniformly connected to the database of official units, resulting in the inability to obtain the display duration of traffic lights in a timely manner and the inability to provide users with prompt information on the display duration of traffic lights in a timely manner, which reduces the user experience. Summary of the invention
[0004] The present application provides a method, device and medium for determining the display duration of a signal light, so as to accurately determine the display duration of a signal light in real time and provide prompt information of the display duration of the signal light to the user in a timely manner.
[0005] According to one aspect of the present application, a method for determining a signal light display duration is provided, the method comprising:
[0006] Determine, based on images acquired by an image collector disposed at a target intersection, first driving data of a vehicle passing through the target intersection from a first road, and second driving data of a vehicle passing through the target intersection from a second road; wherein the first road and the second road intersect at the target intersection;
[0007] Determine, based on the first driving data and the second driving data, a transition time from a signal light at a target intersection indicating that a vehicle passes through the target intersection from the first road to indicating that a vehicle passes through the target intersection from the second road;
[0008] The display duration of the traffic light at the target intersection is determined according to the conversion duration.
[0009] According to another aspect of the present application, a device for determining a signal light display duration is provided, the device comprising:
[0010] A driving data determination module, configured to determine first driving data of a vehicle passing through the target intersection from a first road and second driving data of a vehicle passing through the target intersection from a second road according to an image acquired by an image acquisition device provided at the target intersection; wherein the first road and the second road intersect at the target intersection;
[0011] a conversion time determination module, used to determine, based on the first driving data and the second driving data, a conversion time from a signal light at a target intersection indicating that a vehicle passes through the target intersection from the first road to indicating that a vehicle passes through the target intersection from the second road;
[0012] The display duration determination module is used to determine the display duration of the traffic light at the target intersection according to the conversion duration.
[0013] According to another aspect of the present application, a computer-readable storage medium is provided, which stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining the display duration of a signal light in any embodiment of the present application when executed.
[0014] The technical solution of the embodiment of the present application is to determine the first driving data of a vehicle passing through the target intersection from the first road and the second driving data of a vehicle passing through the target intersection from the second road based on the image collected by the image collector set at the target intersection; wherein the first road and the second road intersect at the target intersection; determine the transition time from the signal light at the target intersection indicating that the vehicle passes through the target intersection from the first road to indicating that the vehicle passes through the target intersection from the second road based on the first driving data and the second driving data; determine the display time of the signal light at the target intersection based on the transition time. This technical solution can intelligently identify vehicles passing through the target intersection based on the images collected by the image collector set at the target intersection, and then accurately determine the display time of the signal light in real time based on the driving data of the passing vehicles, thereby getting rid of the dependence on official data and avoiding the problem that the display time of the signal light cannot be obtained in time due to the lack of official signal light data.
[0015] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 is a flow chart of a method for determining the display duration of a signal light provided in accordance with the first embodiment of the present application;
[0018] Figure 2 This is a schematic diagram of a crossroad provided according to Embodiment 1 of the present application;
[0019] Figure 3 This is a schematic diagram of a T-junction provided according to Embodiment 1 of the present application;
[0020] Figure 4 is a flow chart of a method for determining the display duration of a signal light provided in accordance with the second embodiment of the present application;
[0021] Figure 5 This is a wiring diagram of an image acquisition device group provided according to the second embodiment of the present application;
[0022] Figure 6 is a flow chart of a method for determining the display duration of a signal light provided in accordance with Embodiment 3 of the present application;
[0023] Figure 7 It is a structural schematic diagram of a device for determining the display duration of a signal light provided according to the fourth embodiment of the present application;
[0024] Figure 8 It is a structural schematic diagram of an electronic device that implements a method for determining a signal light display duration provided in Example 5 of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0026] It should be noted that the terms "first", "second", "third", "fourth", "actual", "preset", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Embodiment 1
[0028] Figure 1 A flowchart of a method for determining the duration of a signal light provided in the first embodiment of the present application. The embodiment of the present application can be applied to situations where the duration of a signal at a target intersection is determined. Typically, it can be applied to situations where the driving behavior of a passing vehicle is identified through images captured by an image collector at the target intersection, and then the duration of a signal light is determined. The method can be executed by a signal light duration determination device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0029] S110. Determine first driving data of a vehicle passing through the target intersection from a first road and second driving data of a vehicle passing through the target intersection from a second road based on an image captured by an image collector disposed at the target intersection; wherein the first road and the second road intersect at the target intersection.
[0030] Among them, the target intersection is the place where two or more roads in the road network intersect. The form of the target intersection is not limited, and it can be a crossroad, a T-shaped intersection, a roundabout, etc. The image collector can be a bayonet camera, an electronic police, etc., which are set on the road for image collection and monitoring of the road. The image collector in this solution is located at the target intersection, and the specific location is not limited. It can be located on the road near the target intersection to collect images of vehicles passing through the target intersection. The first road and the second road intersect at the target intersection. The specific directions of the first road and the second road are not limited, and can be east-west, north-south, southeast-northwest, southwest-northeast, etc. The angle between the first road and the second road is not limited, and can be perpendicular to each other or not. The first road and the second road are any two intersecting roads among the roads intersecting at the target intersection. The first driving data is used to represent the driving behavior of the vehicle passing the target intersection from the first road, and the second driving data is used to represent the driving behavior of the vehicle passing the target intersection from the second road.
[0031] For example, if the vehicle is on the first road before passing the target intersection, the vehicle passing the target intersection is passing the target intersection from the first road, and if the vehicle is on the second road before passing the target intersection, the vehicle passing the target intersection is passing the target intersection from the second road. Figure 2 As shown, a vehicle on the first road passes through the target intersection along the direction of the dotted arrow connected thereto, which is passing through the target intersection from the first road. A vehicle on the second road passes through the target intersection along the direction of the dotted arrow connected thereto, which is passing through the target intersection from the second road.
[0032] In the embodiment of the present application, the image collector can be arranged at Figure 2The image collector can collect images of vehicles passing the target intersection from the first road and images of vehicles passing the target intersection from the second road, and then determine the first driving data of the vehicle passing the target intersection from the first road and the second driving data of the vehicle passing the target intersection from the second road based on the images. This solution only illustrates the case where a vehicle passes the target intersection from two intersecting roads. In fact, the above solution can also be used to determine the vehicle passing the target intersection from the first road. Figure 2 Driving data of other roads passing through the target intersection.
[0033] like Figure 3 As shown, the target intersection can also be a T-shaped intersection. In this case, a vehicle on the first road passes through the target intersection along the direction of the dotted arrow connected to it, which is considered as passing through the target intersection from the first road. A vehicle on the second road passes through the target intersection along the direction of the dotted arrow connected to it, which is considered as passing through the target intersection from the second road. The same is true for the case where the target intersection is in other forms, and examples are not given here one by one. The case where the target intersection is passed through from the intersecting roads respectively can be handled by the above scheme.
[0034] S120. Determine, based on the first driving data and the second driving data, a transition time from a traffic light at a target intersection indicating that a vehicle passes through the target intersection from the first road to an indication that a vehicle passes through the target intersection from the second road.
[0035] For the target intersection, generally, there is no vehicle passing the target intersection from both the first road and the second road at the same time. If the signal light indicates that the vehicle is passing the target intersection from the first road, it will indicate that the vehicle is not allowed to pass the target intersection from the second road. Similarly, if the signal light indicates that the vehicle is passing the target intersection from the second road, it will indicate that the vehicle is not allowed to pass the target intersection from the first road.
[0036] In an embodiment of the present application, the first driving data may be the time when the vehicle passes the target intersection from the first road, and the second driving data may be the time when the vehicle passes the target intersection from the second road. The vehicle does not specifically refer to one vehicle, but may be all vehicles passing the target intersection from the first road or vehicles passing the target intersection from the second road. Based on the first driving data of all vehicles passing the target intersection from the first road, the time when the signal light indicates that the vehicle passes the target intersection from the first road is determined, and based on the second driving data of all vehicles passing the target intersection from the second road, the time when the signal light indicates that the vehicle passes the target intersection from the second road is determined, and then the transition time from the signal light indicating that the vehicle passes the target intersection from the first road, indicating that the vehicle is not allowed to pass the target intersection from the second lane, to indicating that the vehicle passes the target intersection from the second road, indicating that the vehicle is not allowed to pass the target intersection from the first lane is determined.
[0037] In an embodiment of the present application, the first driving data includes a first time when a target vehicle passes through the target intersection from the first road during a period when no vehicle passes through the target intersection from the second road, and the second driving data includes a second time when a target vehicle passes through the target intersection from the second road during a period when no vehicle passes through the target intersection from the first road; the target vehicle includes the first vehicle or the last vehicle;
[0038] Accordingly, determining, based on the first driving data and the second driving data, the transition time from the signal light at the target intersection indicating that the vehicle passes through the target intersection from the first road to the signal light indicating that the vehicle passes through the target intersection from the second road includes:
[0039] If the second time is later than the first time, the time interval from the first time to the second time is used as the transition time from the signal light at the target intersection indicating the vehicle passing the target intersection from the first road to indicating the vehicle passing the target intersection from the second road.
[0040] In one feasible solution, if it is determined based on images collected by an image collector disposed at an intersection that a vehicle passes through a target intersection from a first road, and during this period, no vehicle passes through the target intersection from a second road, then the time when the first vehicle passes through the target intersection from the first road is determined, i.e., the first time. If it is determined based on images subsequently collected by the image collector that a vehicle passes through the target intersection from a second road, and during this period, no vehicle passes through the target intersection from the first road, then the time when the first vehicle passes through the target intersection from the second road is determined, i.e., the second time. The time interval between the first time and the second time is used as the transition time from the signal light at the target intersection indicating that a vehicle passes through the target intersection from the first road to indicating that a vehicle passes through the target intersection from the second road, that is, the transition time from the signal light starting to indicate that a vehicle passes through the target intersection from the first road to the signal light starting to indicate that a vehicle passes through the target intersection from the second road.
[0041] In another feasible solution, if it is determined based on images collected by an image collector disposed at the intersection that there is a vehicle passing through the target intersection from the first road, and during this period, no vehicle passes through the target intersection from the second road, then the time when the last vehicle passes through the target intersection from the first road is determined, i.e., the first time. If it is determined based on images subsequently collected by the image collector that there is a vehicle passing through the target intersection from the second road, and during this period, no vehicle passes through the target intersection from the first road, then the time when the last vehicle passes through the target intersection from the second road is determined, i.e., the second time. The time interval between the first time and the second time is used as the transition time from the signal light at the target intersection indicating that the vehicle passes through the target intersection from the first road to indicating that the vehicle passes through the target intersection from the second road, that is, the transition time from the signal light starting to indicate that the vehicle is not allowed to pass through the target intersection from the first road to starting to indicate that the vehicle is not allowed to pass through the target intersection from the second road.
[0042] In other feasible schemes, in addition to selecting the first vehicle and the last vehicle, the nth vehicle passing the target intersection from the first road and the nth vehicle passing the target intersection from the second road can also be selected, as long as the value of n is consistent, to represent the time period from when the traffic light indicates the vehicle passing the target intersection from the first road to when it indicates the vehicle passing the target intersection from the second road.
[0043] In addition, the scheme in which the second time is later than the first time in the above scheme is only an example. The traffic light may first instruct the vehicle to pass the target intersection from the second road, determine the second time when the vehicle passes the target intersection, and then instruct the vehicle to pass the target intersection from the first road, determine the first time when the vehicle passes the target intersection, and determine the conversion duration of the signal light indication change based on the interval between the second time and the first time.
[0044] S130. Determine the display duration of the traffic light at the target intersection according to the conversion duration.
[0045] In this scheme, based on the first driving data and the second driving data, the conversion time from the time when the traffic light at the target intersection indicates the vehicle to pass the target intersection from the first road to the time when the traffic light indicates the vehicle to pass the target intersection from the second road is determined. The conversion time can reflect the conversion time of the traffic light from one indication signal to another, that is, it reflects the display time of the signal under one indication signal.
[0046] Specifically, since the conversion duration is based on the time from the signal light indicating the vehicle passing the target intersection from the first road to the signal light indicating the vehicle passing the target intersection from the second road, it reflects the change in the signal light's indication color. The display duration of the signal light in one indication color can be determined based on the change in the signal light's indication color. This eliminates the need to obtain the official display duration of the signal light. Only based on the image collector for conventional monitoring set at the target intersection, changes in the vehicle's driving behavior under the indication of the signal light can be identified, and then the display duration of the signal light can be determined. This improves the real-time and accuracy of the determination of the signal light display duration, gets rid of the dependence on official data, and solves the problem of the official lack of signal light data resulting in the inability to obtain the signal light display duration in a timely manner and provide it to users.
[0047] In the embodiment of the present application, the scheme of determining the display duration based on the transition time from the indicator light indicating a vehicle passing the target intersection from the first road to the indicator light indicating a vehicle passing the target intersection from the second road can improve the accuracy of determining the display duration compared to the scheme of determining the display duration based on the duration from the first vehicle passing the target intersection from the first road to the last vehicle passing the target intersection from the first road, and avoids the situation where there are fewer vehicles passing the target intersection from the first road and the duration from the first vehicle to the last vehicle passing the target intersection from the first road is difficult to represent the signal light display duration.
[0048] In an embodiment of the present application, determining the display duration of the traffic light at the target intersection according to the conversion duration includes:
[0049] If the target vehicle is the first vehicle, the conversion duration is used as the green light display duration of the signal light set at the target intersection along the first road direction, and the conversion duration is used as the red light display duration of the signal light set at the target intersection along the second road direction;
[0050] If the target vehicle is the last vehicle, the conversion duration is used as the red light display duration of the traffic light set at the target intersection along the first road direction, and the conversion duration is used as the green light display duration of the traffic light set at the target intersection along the second road direction.
[0051] Exemplarily, if the target vehicle is the first vehicle, that is, the conversion duration is the time from when the indicator light starts to indicate that the first vehicle passes the target intersection from the first road to when it starts to indicate that the first vehicle passes the target intersection from the second road, which is the duration of the indicator light indicating that the vehicle passes the target intersection from the first road, that is, the duration of the green light display of the signal light set along the first road direction at the target intersection is equal to the duration of the red light display of the signal light set along the second road direction at the target intersection. If the target vehicle is the last vehicle, that is, the conversion duration is the time from when the indicator light indicates that the last vehicle is allowed to pass the target intersection from the first road to when it indicates that the last vehicle is allowed to pass the target intersection from the second road, which is the duration of the indicator light indicating that the vehicle passes the target intersection from the second road, that is, the duration of the green light display of the signal light set along the second road direction at the target intersection is equal to the duration of the red light display of the signal light set along the first road direction at the target intersection.
[0052] If the target vehicle is the nth vehicle, the conversion time is shifted forward by the interval between the nth vehicle and the first vehicle as the green light display time of the signal light set along the first road direction at the target intersection, which is equal to the red light display time of the signal light set along the second road direction at the target intersection. Or the conversion time is shifted backward by the interval between the last vehicle and the nth vehicle as the green light display time of the signal light set along the second road direction at the target intersection, which is equal to the red light display time of the signal light set along the first road direction at the target intersection.
[0053] The technical solution of the embodiment of the present application determines the first driving data of a vehicle passing through the target intersection from a first road and the second driving data of a vehicle passing through the target intersection from a second road based on the image collected by the image collector set at the target intersection; wherein the first road and the second road intersect at the target intersection; determines the transition time from the signal light at the target intersection indicating that the vehicle passes through the target intersection from the first road to indicating that the vehicle passes through the target intersection from the second road based on the first driving data and the second driving data; determines the display time of the signal light at the target intersection based on the transition time. This technical solution can intelligently identify vehicles passing through the target intersection based on the image collected by the image collector set at the target intersection, and accurately determine the display time of the signal light in real time, thereby getting rid of the reliance on official data and avoiding the problem that the display time of the signal light cannot be obtained in time due to the lack of official signal light data.
[0054] Embodiment 2
[0055] Figure 4This is a flow chart of a method for determining the duration of a signal light provided in the second embodiment of the present application. The present embodiment is optimized based on the above embodiment. For solutions not described in detail in the present embodiment, please refer to the above embodiment. Figure 4 As shown, the method of the embodiment of the present application specifically includes the following steps:
[0056] S210: Determine a group of image collectors located within a preset range at the target intersection.
[0057] The preset range can be determined according to the actual situation, for example, the range within 30 meters from the center of the target intersection can be used as the preset range. Specifically, it can be determined according to the actual size of the target intersection so that the preset range is equivalent to the range of the target intersection.
[0058] In the embodiment of the present application, all image collectors deployed on the road can be first determined through the monitoring platform, and the identification and location information of each image collector can be recorded, as shown in Table 1.
[0059] Table 1
[0060] Serial number Image collector encoding longitude latitude C00001 2023020815000010 120.112525 30.124587 C00002 2023020815000011 120.112231 30.035965 C00003 2023020815000012 120.102726 30.254852 … … … …
[0061] According to the images collected by each image collector and the position information of the image collector, the image collector group is determined. The image collector group is located at the same target intersection, and the same vehicle passing through the image collector group is indicated by a signal light color, and the interval distance of the image collector group is less than the preset distance. The same vehicle can be identified based on the images collected by the image collector group. For example, if the features such as the license plate, vehicle color, and vehicle type of the vehicle are recognized by the image collected by one image collector in the image collector group, and the features such as the license plate, vehicle color, and vehicle type of the vehicle are the same as the features such as the license plate, vehicle color, and vehicle type of the vehicle recognized by the image collected by another image collector in the image collector group, then the vehicle is determined to be the same vehicle. The vehicle images that appear in the image collector group in sequence can also be matched. If the matching degree is higher than a preset threshold, it is determined to be the same vehicle. The preset threshold can be determined according to the actual situation. Further, the road network data is obtained, and the road network data is collided with the position information of the image collector group to determine the image collector group located within the preset range at each target intersection.
[0062] In the embodiment of the present application, the process of determining the image collector group includes:
[0063] Determine the interval time when the same vehicle appears in the field of view of two image collectors in sequence;
[0064] If the interval time is less than the preset interval time, and the distance interval between the two image collectors is less than the preset distance interval, the two image collectors are determined as an image collector group.
[0065] Identify the images containing vehicles collected by the image collector, and identify the same vehicle. If the same vehicle appears in the field of view of two image collectors in sequence, that is, appears in the images collected by two image collectors in sequence, then determine the time when the same vehicle appears in the field of view of the two image collectors respectively, and determine the time interval. If the interval time is less than the preset interval time, and the distance interval between the two image collectors is less than the preset distance interval, then the two image collectors are determined as an image collector group. Among them, the preset interval time and the preset distance interval can be determined according to the actual situation. For example, the preset interval time can be determined according to the time when a vehicle normally passes through the target intersection, and the preset distance interval can be determined according to the conventional length, width and other dimensions of the target intersection. Exemplarily, as Figure 2 shown, assume that the preset interval time is T and the preset distance interval is D. There is the same vehicle that first appears in the image collected by image collector 1 at time t1, and then appears in the image collected by image collector 2 at time t2, t2 - t1 < T, and the distance interval between image collector 1 and image collector 2 is less than D, then image collector 1 and image collector 2 are used as an image collector group. There is the same vehicle that first appears in the image collected by image collector 3 at time t3, and then appears in the image collected by image collector 4 at time t4, t4 - t3 < T, and the distance interval between image collector 3 and image collector 4 is less than D, then image collector 3 and image collector 4 are used as an image collector group.
[0066] S220. If there is an intersection in the connection line of the image collector group, then determine the driving data of the vehicles passing through the target intersection from one road according to the images collected by the image collector group.
[0067] Among them, if the road is the first road, then the driving data is the first driving data; if the road is the second road, then the driving data is the second driving data.
[0068] Exemplarily, as Figure 5 shown, if there is an intersection between the connection line of image collector 1 and image collector 2 and the connection line of image collector 3 and image collector 4, then it is determined that the road where image collector 1 and image collector 2 are located intersects with the road where image collector 3 and image collector 4 are located. If there is an intersection in the connection line of the image collector group, then determine the driving data of the vehicles passing through the target intersection from one road according to the images collected by the image collector group. Specifically, as Figure 5As shown, based on the images captured by image collector 1 and image collector 2, the second driving data of the vehicle passing the target intersection from the second road is determined, and based on the images captured by image collector 3 and image collector 4, the first driving data of the vehicle passing the target intersection from the second road is determined.
[0069] In an embodiment of the present application, determining the driving data of a vehicle passing through the target intersection from a road according to the images collected by the image collector group includes:
[0070] If it is determined based on the images collected by the image collector group that there are vehicles that appear in sequence in the field of view of the image collector group located on the first road, and no vehicles appear in sequence in the field of view of the image collector group located on the second road, then it is determined that the vehicle passes through the target intersection from the first road;
[0071] Determine the first driving data according to the time when the vehicles appear in sequence in the field of view of the image acquisition device group located on the first road;
[0072] The process of determining that a vehicle passes through the target intersection from the second road includes:
[0073] If it is determined based on the images collected by the image collector group that there are vehicles that appear in sequence in the field of view of the image collector group located on the second road, and no vehicles appear in sequence in the field of view of the image collector group located on the first road, then it is determined that the vehicle passes through the target intersection from the second road;
[0074] The second driving data is determined according to the time when the vehicles appear in sequence in the field of view of the image collector group located on the second road.
[0075] For example, Figure 5 As shown, if it is determined based on the images collected by the image collector 3 and the image collector 4 that the vehicle appears in the image collected by the image collector 3 and the image collected by the image collector 4 in sequence, that is, it appears in the field of view of the image collector 3 and the field of view of the image collector 4 in sequence, for example, it first appears in the field of view of the image collector 3, then in the field of view of the image collector 4, or it first appears in the field of view of the image collector 4, then in the field of view of the image collector 3. During this period, it is determined based on the image collector 1 and the image collector 2 that there is no vehicle appearing in the field of view of the image collector 1 and the image collector 2 in sequence, then it is determined that the vehicle passes the target intersection from the first road, and the first driving data is determined based on the time when the vehicle appears in the image collected by the image collector 3 and the time when it appears in the image collected by the image collector 4. The determination process of the second driving data is similar.
[0076] S230. Determine, based on the first driving data and the second driving data, a transition time from when a traffic light at a target intersection indicates that a vehicle passes through the target intersection from the first road to when a traffic light indicates that a vehicle passes through the target intersection from the second road.
[0077] Specifically, Figure 5 As shown, if the same vehicle is detected to appear in the field of view of image collector 3 and the field of view of image collector 4 in sequence, and during this period, no vehicle appears in the field of view of image collector 1 and image collector 2 in sequence, then it is determined that the signal light indicates that the vehicle passes through the target intersection from the first road, and indicates that the vehicle is not allowed to pass through the second intersection from the second road. In subsequent detections, the same vehicle is detected to appear in the field of view of image collector 1 and the field of view of image collector 2 in sequence, and during this period, no vehicle appears in the field of view of image collector 3 and image collector 4 in sequence, then it is determined that the signal light indicates that the vehicle passes through the target intersection from the second road, and indicates that the vehicle is not allowed to pass through the target intersection from the first road. When the same vehicle is detected again to appear in the field of view of image collector 3 and the field of view of image collector 4 in sequence, and during this period, no vehicle appears in the field of view of image collector 1 and image collector 2 in sequence, the signal light completes a round of rotation display of red and green lights. Determine the conversion time of the signal light indicating that the vehicle passes through the target intersection from the first road to indicating that the vehicle passes through the target intersection from the second road during the red and green light switching display process of the display light.
[0078] S240: Determine the display duration of the traffic light at the target intersection according to the conversion duration.
[0079] An embodiment of the present application provides a method for determining the display duration of a traffic light, which determines an image collector group located within a preset range at the target intersection. If there is an intersection between the lines connecting the image collector groups, the driving data of a vehicle passing through the target intersection from a road is determined based on the images collected by the image collector group, thereby identifying the image collector group at the target intersection, determining the driving data of vehicles passing through the target intersection from intersecting roads based on the image collector group, and then determining the display duration of the traffic light based on the driving data, thereby achieving real-time and accurate determination of the display duration without relying on acquisition from a third party.
[0080] Embodiment 3
[0081] Figure 6 This is a flow chart of a method for determining the duration of a signal light provided in the second embodiment of the present application. The present embodiment is optimized based on the above embodiment. For solutions not described in detail in the present embodiment, please refer to the above embodiment. Figure 6 As shown, the method of the embodiment of the present application specifically includes the following steps:
[0082] S310. Determine first driving data of a vehicle passing through the target intersection from a first road and second driving data of a vehicle passing through the target intersection from a second road based on an image captured by an image collector provided at the target intersection; wherein the first road and the second road intersect at the target intersection.
[0083] S320. Determine, based on the first driving data and the second driving data, the transition time from the traffic light at the target intersection indicating that the vehicle passes through the target intersection from the first road to the traffic light indicating that the vehicle passes through the target intersection from the second road.
[0084] S330. Determine, based on the first driving data and the second driving data, the number of vehicles passing the target intersection from the first road within a time period, or the number of vehicles passing the target intersection from the second road.
[0085] Among them, the time period can be determined according to the actual situation, for example, it can be set to ten minutes or other periods. This scheme is to determine the traffic indication of the signal light according to the first driving data of the vehicles passing the target intersection from the first road and the second driving data of the vehicles passing the target intersection from the second road, and then determine the display time of the signal light. The accuracy of the display time of the signal light may be affected by the number of vehicles. If the number of vehicles is large, there are always vehicles passing during the display time of the signal light indicating traffic, and the accuracy of the display time of the signal light is higher. In the embodiment of the present application, the reliability and accuracy of the display time are determined according to the number of vehicles, and then it is determined whether to adopt the display time. Specifically, according to the first driving data and the second driving data, the number of vehicles passing the target intersection from the first road within the time period, or the number of vehicles passing the target intersection from the second road, is determined, and the reliability of the determined display time is further judged according to the number.
[0086] S340: If the number exceeds a preset number, determining the display duration of the traffic light at the target intersection according to the conversion duration.
[0087] The preset number can be determined according to actual conditions, for example, according to the maximum or average number of historical vehicles passing the target intersection from the first road in the historical records, or according to the maximum or average number of historical vehicles passing the target intersection from the second road in the historical records. If the number exceeds the preset number, it is determined that the number of vehicles passing the target intersection is large, and the display duration is determined more accurately at this time, and the display duration of the traffic light at the target intersection is determined according to the conversion duration. Otherwise, the display duration is not determined based on the conversion duration.
[0088] In an embodiment of the present application, multiple display durations can be determined according to the above scheme, and the average value of the multiple display durations can be used as the final signal light display duration to eliminate errors.
[0089] An embodiment of the present application provides a method for determining the display duration of a signal light. The method determines, based on the first driving data and the second driving data, the number of vehicles passing the target intersection from the first road within a time period, or the number of vehicles passing the target intersection from the second road. If the number exceeds a preset number, the display duration of the signal light at the target intersection is determined based on the conversion duration. The reliability and accuracy of determining the display duration based on the conversion duration is evaluated through the number of vehicles. When the accuracy is determined to be high, the display duration is determined based on the conversion duration, thereby ensuring that the obtained display duration of the signal light is accurate and reliable.
[0090] In an embodiment of the present application, determining the display duration of the traffic light at the target intersection according to the conversion duration includes:
[0091] Determine, within a preset time period, whether the time taken by the vehicle to pass through the target intersection from the first road is greater than a preset time, or whether the time taken by the vehicle to pass through the target intersection from the second road is greater than a preset time according to the first driving data and the second driving data;
[0092] If so, the display duration of the traffic light at the target intersection is determined according to the conversion duration within a preset time period on a preset date.
[0093] The preset duration can be based on the duration that a vehicle normally takes to pass through the target intersection. Exemplarily, if there is a vehicle congestion at the target intersection, the driving data of the vehicle passing through the target intersection is difficult to represent the display of the signal light. For example, during the morning peak period of 7:00-9:00, the noon period of 11:00-13:00, and the evening peak period of 5:00-7:00, there are many vehicles on the road, and there may be congestion at the target intersection. In this solution, within the preset time period, that is, the time period in which the number of vehicles predicted in advance is large and there may be congestion, it is determined based on the first driving data and the second driving data whether the duration taken by the vehicle to pass through the target intersection from the first road is greater than the preset duration, or whether the duration taken by the vehicle to pass through the target intersection from the second road is greater than the preset duration. If so, it is determined that congestion has occurred at the target intersection. If it is determined that congestion has occurred at the target intersection, the display duration of the signal light is not determined based on the currently determined conversion duration, but the display duration of the signal light is determined based on the conversion duration within the preset time period in the preset date. For example, during the morning and evening rush hours on weekdays, if congestion is detected at the target intersection, the display time determined based on the conversion time during the same time period as the morning and evening rush hours on weekends will be used as the signal light display time during the morning and evening rush hours on weekdays to improve the accuracy and reliability of the signal light display time.
[0094] Embodiment 4
[0095] Figure 7 This is a schematic diagram of the structure of a signal light display duration determination device provided in the fourth embodiment of the present application. The device can execute the signal light display duration determination method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. Figure 7 As shown, the device comprises:
[0096] The driving data determination module 410 is used to determine first driving data of a vehicle passing through the target intersection from a first road and second driving data of a vehicle passing through the target intersection from a second road according to an image collected by an image collector provided at the target intersection; wherein the first road and the second road intersect at the target intersection;
[0097] a conversion time determination module 420, configured to determine, based on the first driving data and the second driving data, a conversion time from a signal light at a target intersection indicating that a vehicle passes through the target intersection from the first road to indicating that a vehicle passes through the target intersection from the second road;
[0098] The display duration determining module 430 is used to determine the display duration of the traffic light at the target intersection according to the conversion duration.
[0099] In an embodiment of the present application, the first driving data includes a first time when a target vehicle passes through the target intersection from the first road during a period when no vehicle passes through the target intersection from the second road, and the second driving data includes a second time when a target vehicle passes through the target intersection from the second road during a period when no vehicle passes through the target intersection from the first road; the target vehicle includes the first vehicle or the last vehicle;
[0100] Accordingly, the conversion duration determination module 420 includes:
[0101] A time interval determination unit is used to use the time interval from the first time to the second time as the transition time from the signal light at the target intersection indicating that the vehicle passes the target intersection from the first road to indicating that the vehicle passes the target intersection from the second road, if the second time is later than the first time.
[0102] In the embodiment of the present application, the display duration determination module 430 includes:
[0103] a first determining unit, configured to, if the target vehicle is the first vehicle, use the conversion duration as a green light display duration of a signal light arranged at the target intersection along the first road direction, and use the conversion duration as a red light display duration of a signal light arranged at the target intersection along the second road direction;
[0104] The second determination unit is used to use the conversion duration as the red light display duration of the traffic light set along the first road direction at the target intersection if the target vehicle is the last vehicle, and use the conversion duration as the green light display duration of the traffic light set along the second road direction at the target intersection.
[0105] In the embodiment of the present application, the driving data determination module 410 includes:
[0106] An image collector group determining unit, used to determine an image collector group located within a preset range at the target intersection;
[0107] A data determination unit, configured to determine the driving data of a vehicle passing through the target intersection from a road based on the images collected by the image collector group if there is an intersection between the lines connecting the image collector groups;
[0108] If the road is the first road, the driving data is the first driving data; if the road is the second road, the driving data is the second driving data.
[0109] In the embodiment of the present application, the data determination unit includes:
[0110] A first driving behavior determination subunit is configured to determine that a vehicle passes through the target intersection from the first road if it is determined based on the images collected by the image collector group that there are vehicles that appear sequentially in the field of view of the image collector group located on the first road, and no vehicles appear sequentially in the field of view of the image collector group located on the second road;
[0111] A first driving data determining subunit is used to determine the first driving data according to the time when the vehicles appear in sequence in the field of view of the image collector group located on the first road;
[0112] The data determination unit further includes:
[0113] A second driving behavior determination subunit is configured to determine that a vehicle passes through the target intersection from the second road if it is determined based on the images collected by the image collector group that there are vehicles that appear in sequence within the field of view of the image collector group located on the second road, and no vehicles appear in sequence within the field of view of the image collector group located on the first road;
[0114] The second driving data determining subunit is used to determine the second driving data according to the time when the vehicles appear in sequence in the field of view of the image collector group located on the second road.
[0115] In the embodiment of the present application, the device further includes:
[0116] An interval time determination module is used to determine the interval time when the same vehicle appears in the field of view of two image collectors in sequence;
[0117] The collector group determination module is used to determine the two image collectors as an image collector group if the interval time is less than a preset interval time and the distance interval between the two image collectors is less than a preset distance interval.
[0118] In the embodiment of the present application, the display duration determination module 430 includes:
[0119] a judgment unit, configured to determine, within a preset time period, whether a time taken by the vehicle to pass through the target intersection from the first road is greater than a preset time, or whether a time taken by the vehicle to pass through the target intersection from the second road is greater than a preset time according to the first driving data and the second driving data;
[0120] The first duration determining unit is used to determine the display duration of the traffic light at the target intersection according to the conversion duration within a preset time period on a preset date.
[0121] The display duration determination module 430 includes:
[0122] a quantity determination unit, configured to determine the number of vehicles passing the target intersection from the first road or the number of vehicles passing the target intersection from the second road within a time period according to the first driving data and the second driving data;
[0123] The second duration determining unit is used to determine the display duration of the traffic light at the target intersection according to the conversion duration if the number exceeds a preset number.
[0124] A signal light display duration determination device provided in an embodiment of the present application can execute a signal light display duration determination method provided in any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method.
[0125] Embodiment 5
[0126] Figure 8 A schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0127] like Figure 8 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0128] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0129] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for determining the display duration of a signal light.
[0130] In some embodiments, the signal light display duration determination method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the signal light display duration determination method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the signal light display duration determination method in any other appropriate manner (e.g., by means of firmware).
[0131] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0132] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable signal light display duration determination device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0133] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.
[0134] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0135] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0136] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0137] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the information expected by the technical solution of this application can be achieved, and this document is not limited here.
[0138] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for determining the display duration of a signal light, characterized in that: The method comprises: Determine, based on images acquired by an image collector disposed at a target intersection, first driving data of a vehicle passing through the target intersection from a first road, and second driving data of a vehicle passing through the target intersection from a second road; wherein the first road and the second road intersect at the target intersection; Determine, based on the first driving data and the second driving data, a transition time from a signal light at a target intersection indicating that a vehicle passes through the target intersection from the first road to indicating that a vehicle passes through the target intersection from the second road; The display duration of the traffic light at the target intersection is determined according to the conversion duration.
2. The method according to claim 1, characterized in that: The first driving data includes a first time when a target vehicle passes through the target intersection from the first road during a period when no vehicle passes through the target intersection from the second road, and the second driving data includes a second time when a target vehicle passes through the target intersection from the second road during a period when no vehicle passes through the target intersection from the first road; The target vehicle includes the first vehicle or the last vehicle; Accordingly, determining, based on the first driving data and the second driving data, the transition time from the signal light at the target intersection indicating that the vehicle passes through the target intersection from the first road to the signal light indicating that the vehicle passes through the target intersection from the second road includes: If the second time is later than the first time, the time interval from the first time to the second time is used as the transition time from the signal light at the target intersection indicating the vehicle passing the target intersection from the first road to indicating the vehicle passing the target intersection from the second road.
3. The method according to claim 2, characterized in that Determining the display duration of the traffic light at the target intersection according to the conversion duration includes: If the target vehicle is the first vehicle, the conversion duration is used as the green light display duration of the traffic light set at the target intersection along the first road direction, and the conversion duration is used as the red light display duration of the traffic light set at the target intersection along the second road direction; If the target vehicle is the last vehicle, the conversion duration is used as the red light display duration of the traffic light set at the target intersection along the first road direction, and the conversion duration is used as the green light display duration of the traffic light set at the target intersection along the second road direction.
4. The method according to claim 1, characterized in that: Determining first driving data of a vehicle passing through the target intersection from a first road and second driving data of a vehicle passing through the target intersection from a second road according to an image collected by an image collector arranged at the target intersection, including: Determine an image collector group located within a preset range at the target intersection; If there is an intersection point among the lines connecting the image collector groups, determining the driving data of a vehicle passing through the target intersection from a road according to the images collected by the image collector groups; If the road is the first road, the driving data is the first driving data; if the road is the second road, the driving data is the second driving data.
5. The method according to claim 4, characterized in that Determining the driving data of a vehicle passing through the target intersection from a road according to the images collected by the image collector group includes: If it is determined based on the images collected by the image collector group that there are vehicles that appear in sequence in the field of view of the image collector group located on the first road, and no vehicles appear in sequence in the field of view of the image collector group located on the second road, then it is determined that the vehicle passes through the target intersection from the first road; Determine the first driving data according to the time when the vehicles appear in sequence in the field of view of the image acquisition device group located on the first road; The process of determining that a vehicle passes through the target intersection from the second road includes: If it is determined based on the images collected by the image collector group that there are vehicles that appear in sequence in the field of view of the image collector group located on the second road, and no vehicles appear in sequence in the field of view of the image collector group located on the first road, then it is determined that the vehicle passes through the target intersection from the second road; The second driving data is determined according to the time when the vehicles appear in sequence in the field of view of the image collector group located on the second road.
6. The method according to claim 4, characterized in that The process of determining the image collector group includes: Determine the interval time when the same vehicle appears in the field of view of two image collectors in sequence; If the interval time is less than the preset interval time, and the distance interval between the two image collectors is less than the preset distance interval, the two image collectors are determined as an image collector group.
7. The method according to claim 1, characterized in that Determining the display duration of the traffic light at the target intersection according to the conversion duration includes: Determine, within a preset time period, whether the time taken by the vehicle to pass through the target intersection from the first road is greater than a preset time, or whether the time taken by the vehicle to pass through the target intersection from the second road is greater than a preset time according to the first driving data and the second driving data; If so, the display duration of the traffic light at the target intersection is determined according to the conversion duration within a preset time period on a preset date.
8. The method according to claim 1, characterized in that Determining the display duration of the traffic light at the target intersection according to the conversion duration includes: Determine, based on the first driving data and the second driving data, the number of vehicles passing through the target intersection from the first road or the number of vehicles passing through the target intersection from the second road within a time period; If the number exceeds a preset number, the display duration of the traffic light at the target intersection is determined according to the conversion duration.
9. A device for determining the display duration of a signal light, characterized in that: The device comprises: A driving data determination module, configured to determine first driving data of a vehicle passing through the target intersection from a first road and second driving data of a vehicle passing through the target intersection from a second road according to an image acquired by an image acquisition device provided at the target intersection; wherein the first road and the second road intersect at the target intersection; a conversion time determination module, used to determine, based on the first driving data and the second driving data, a conversion time from a signal light at a target intersection indicating that a vehicle passes through the target intersection from the first road to indicating that a vehicle passes through the target intersection from the second road; The display duration determination module is used to determine the display duration of the traffic light at the target intersection according to the conversion duration.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining the display duration of a signal light according to any one of claims 1 to 8 when executed.
