Traffic warning condition positioning method and electronic equipment
By constructing the capture sequence of the target vehicle and updating the initial position, the problem of inaccurate traffic police positioning is solved, and high-precision traffic police positioning and data analysis are achieved.
Patent Information
- Application Number
- CN202411291468.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-20
AI Technical Summary
When determining the location of traffic police incidents in the prior art, the location information of the reporter is inaccurate, resulting in difficulty in subsequent statistical analysis and accident positioning.
By obtaining a collection of capture information of the capture device, including capture images, device identification, time and pixel positions in the identification box, a capture sequence of the target vehicle is constructed, the vehicle speed is determined according to distance and time conditions, and the initial position is updated to improve positioning accuracy.
High-precision positioning of traffic police locations is achieved, and the accuracy of police data and the reliability of statistical analysis are improved.
Smart Images

Figure CN119169831A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of positioning technology, and in particular to a method and electronic equipment for positioning traffic warning situations. Background Art
[0002] When determining the location of a traffic incident, the reality is that when reporting the incident, the reporter can usually describe the approximate location, but the more precise address of the incident is often difficult to record, which brings inconvenience to subsequent statistical analysis.
[0003] With the development of communications and mobile terminals, in related technologies, when the reporter uses a mobile phone to call the police, the reporter's communication location address can be used as the alarm address. For example, the 5G message card is used to determine the reporter's location information. This method may result in the reporter being far away from the location where the alarm occurred. In addition, when the reporter reports the case, a positioning link can be sent to the reporter, and the reporter can obtain the reporter's location information by clicking on the positioning link. However, if the reporter does not click on the link, the location information of the alarm point is predicted by the sound information and the sound information of historical alarms, and the accuracy of the positioning information obtained in this way is not high.
[0004] Therefore, there is an urgent need for a high-precision method for locating traffic warning situations. Summary of the invention
[0005] In an exemplary embodiment of the present application, a method and electronic device for locating a traffic warning are provided to improve the positioning accuracy of the traffic warning.
[0006] According to a first aspect of an exemplary embodiment, a method for locating a traffic warning situation is provided, comprising:
[0007] Determine at least one capture device associated with the traffic warning situation to be processed; wherein the warning information of the traffic warning situation to be processed includes the initial position, occurrence time and target license plate number of the target vehicle of the traffic warning situation to be processed;
[0008] Acquire a capture information set of at least one capture device; wherein the capture information set includes multiple groups of capture information; each group of capture information includes a capture picture, an identifier of the capture device, a capture time, and a pixel position of an identification frame in the capture picture; an identification frame includes a target vehicle; the pixel position of the target vehicle is the pixel position of the center point of the identification frame;
[0009] Determine the correspondence between the pixel position and the geographic location in the captured image, and use the correspondence to determine the geographic location of the target vehicle in the captured image;
[0010] Constructing a capture sequence of the target vehicle; wherein the capture sequence includes multiple geographical locations of the target vehicle under at least one capture device;
[0011] Among the multiple geographical locations of the target vehicle, determining the speed of the target vehicle at each geographical location according to a set distance condition, a set time condition, and a relationship between each geographical location and a neighboring geographical location;
[0012] The geographical location of the minimum speed is used to update the initial location of the traffic warning situation to be processed, so as to obtain the target location of the traffic warning situation to be processed.
[0013] According to a second aspect of the exemplary implementation, there is provided an electronic device, including a processor and a memory;
[0014] The memory is configured to execute:
[0015] Storing the warning information of the traffic warning situation to be processed, the warning information includes the initial position, occurrence time and target license plate number of the target vehicle of the traffic warning situation to be processed;
[0016] The processor is configured to execute:
[0017] Determine at least one capture device associated with the traffic warning situation to be processed;
[0018] Acquire a capture information set of at least one capture device; wherein the capture information set includes multiple groups of capture information; each group of capture information includes a capture picture, an identifier of the capture device, a capture time, and a pixel position of an identification frame in the capture picture; an identification frame includes a target vehicle; the pixel position of the target vehicle is the pixel position of the center point of the identification frame;
[0019] Determine the correspondence between the pixel position and the geographic location in the captured image, and use the correspondence to determine the geographic location of the target vehicle in the captured image;
[0020] Constructing a capture sequence of the target vehicle; wherein the capture sequence includes multiple geographical locations of the target vehicle under at least one capture device;
[0021] Among the multiple geographical locations of the target vehicle, determining the speed of the target vehicle at each geographical location according to a set distance condition, a set time condition, and a relationship between each geographical location and a neighboring geographical location;
[0022] The geographical location of the minimum speed is used to update the initial location of the traffic warning situation to be processed, so as to obtain the target location of the traffic warning situation to be processed.
[0023] According to a third aspect of an exemplary embodiment, a traffic warning situation positioning device is provided, comprising:
[0024] The data processing unit is used to: determine at least one capture device associated with the traffic warning situation to be processed; wherein the warning information of the traffic warning situation to be processed includes the initial position, occurrence time and target license plate number of the target vehicle of the traffic warning situation to be processed;
[0025] The data transmission unit is used to: obtain a capture information set of at least one capture device; wherein the capture information set includes multiple groups of capture information; each group of capture information includes a capture picture, an identifier of the capture device, a capture time, and a pixel position of an identification frame in the capture picture; an identification frame includes a target vehicle; the pixel position of the target vehicle is the pixel position of the center point of the identification frame;
[0026] The data processing unit is further used to: determine the correspondence between the pixel position and the geographical location in the captured image, and use the correspondence to determine the geographical location of the target vehicle in the captured image;
[0027] A data processing unit is used to: construct a capture sequence of a target vehicle; wherein the capture sequence includes multiple geographical locations of the target vehicle under at least one capture device;
[0028] The data processing unit is further used to: determine the speed of the target vehicle at each geographical location among multiple geographical locations of the target vehicle according to a set distance condition, a set time condition and a relationship between each geographical location and a neighboring geographical location;
[0029] The data processing unit is also used to: update the initial position of the traffic warning situation to be processed by using the geographical location of the minimum speed to obtain the target position of the traffic warning situation to be processed.
[0030] According to a fourth aspect of the exemplary implementation, a computer storage medium is provided, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the method for locating traffic warning situations as described in the first aspect.
[0031] In an embodiment of the present application, after obtaining the initial position, occurrence time and target license plate number of the traffic warning situation to be processed, taking into account the inaccuracy of the initial position, a capture information set of at least one capture device associated with the traffic warning situation to be processed is used. Wherein, each group of capture information in the capture information set includes a capture picture, an identifier of the capture device, a capture time and a pixel position of an identification frame in the capture picture, and one identification frame includes one target vehicle; the pixel position of the target vehicle is the pixel position of the center point of the identification frame. Then, a capture sequence of the target vehicle is constructed, where the capture sequence includes multiple geographical locations of the target vehicle under at least one capture device; among the multiple geographical locations of the target vehicle, the speed of the target vehicle at each geographical location is determined according to the set distance condition, the set time condition and the relationship between each geographical location and the neighboring geographical location; the initial position of the traffic warning situation to be processed is updated using the geographical location where the minimum speed is located to obtain the target position of the traffic warning situation to be processed. The target position of the traffic warning situation to be processed determined in this way is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] 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 paying creative labor.
[0033] Figure 1 A flowchart of a method for locating a traffic warning situation provided by an embodiment of the present application is exemplified;
[0034] Figure 2 A flowchart of a method for determining at least one capture device associated with a traffic warning situation to be processed provided by an embodiment of the present application is exemplarily shown;
[0035] Figure 3 A flowchart of a method for determining a correspondence between a pixel position and a geographic location in a captured image provided by an embodiment of the present application is exemplarily shown;
[0036] Figure 4 A schematic diagram exemplarily shows the installation angle of a capture device provided in an embodiment of the present application;
[0037] Figure 5 A schematic diagram exemplarily shows a capture range of a capture device provided in an embodiment of the present application;
[0038] Figure 6 A flow chart of a method for determining the speed of a target vehicle at each geographical location provided by an embodiment of the present application is exemplarily shown;
[0039] Figure 7 A schematic diagram exemplarily shows a positional relationship of multiple position points provided in an embodiment of the present application;
[0040] Figure 8 A flowchart of a complete method for locating traffic warning situations provided by an embodiment of the present application is exemplified;
[0041] Fig. 9 The following is a schematic diagram showing the structure of a traffic warning location device provided in an embodiment of the present application;
[0042] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is exemplarily shown. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, 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.
[0044] For ease of understanding, the terms involved in the embodiments of the present application are explained below:
[0045] (1) PTZ control information: used to describe the position and angle of security monitoring equipment, indicating the full-scale (left / right / up / down) movement of the PTZ and the zoom control of the lens. Taking the capture device as an example, the PTZ control information includes Pan information, Tilt information, and Zoom information. Pan information indicates horizontal movement, that is, the rotation of the capture device; Tilt information indicates vertical movement, that is, the pitch of the capture device lens; Zoom information indicates zoom, that is, adjusting the focal length of the capture device.
[0046] With the improvement of living standards, there are more and more private cars, more people like to travel by car, and more and more traffic accidents. Whether it is to conduct statistical analysis on road traffic accidents that have occurred, determine the sections where road traffic accidents occur more frequently, set up warning signs to remind drivers to pay attention to driving safety, or for road traffic accidents that have occurred, it is very important to determine the exact location of the accident. However, when analyzing the police data, it was found that when recording police incidents, the record of the police address was not accurate enough, which brought inconvenience to further statistical analysis. Therefore, it is very meaningful to improve the accuracy of the police address.
[0047] Considering that the positioning of traffic warnings obtained by the positioning method of traffic warnings in the related art is inaccurate and cannot process historical data. The embodiment of the present application provides a method for positioning traffic warnings, in which the method is based on the address keywords, time, and license plate number information in the recorded warning data, combined with the image captured by the capture device near the warning address for analysis, so that the location of the traffic warning is more accurate.
[0048] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the embodiment of the present application.
[0049] refer to Figure 1 A flow chart of a method for locating a traffic warning situation is shown to illustrate the technical solution provided in an embodiment of the present application.
[0050] S101: Determine at least one capture device associated with the traffic warning situation to be processed.
[0051] S102: Acquire a capture information set of at least one capture device.
[0052] S103: Determine the correspondence between the pixel position and the geographical location in the captured image, and use the correspondence to determine the geographical location of the target vehicle in the captured image.
[0053] S104: Constructing a capture sequence of the target vehicle.
[0054] S105: Among the multiple geographical locations of the target vehicle, determine the speed of the target vehicle at each geographical location according to a set distance condition, a set time condition, and a relationship between each geographical location and a neighboring geographical location.
[0055] S106: Using the geographical location of the minimum speed to update the initial location of the traffic warning situation to be processed, to obtain the target location of the traffic warning situation to be processed.
[0056] In an embodiment of the present application, after obtaining the initial position, occurrence time and target license plate number of the traffic warning situation to be processed, taking into account the inaccuracy of the initial position, a capture information set of at least one capture device associated with the traffic warning situation to be processed is used. Wherein, each group of capture information in the capture information set includes a capture picture, an identifier of the capture device, a capture time and a pixel position of an identification frame in the capture picture, and one identification frame includes one target vehicle; the pixel position of the target vehicle is the pixel position of the center point of the identification frame. Then, a capture sequence of the target vehicle is constructed, where the capture sequence includes multiple geographical locations of the target vehicle under at least one capture device; among the multiple geographical locations of the target vehicle, the speed of the target vehicle at each geographical location is determined according to the set distance condition, the set time condition and the relationship between each geographical location and the neighboring geographical location; the initial position of the traffic warning situation to be processed is updated using the geographical location where the minimum speed is located to obtain the target position of the traffic warning situation to be processed. The target position of the traffic warning situation to be processed determined in this way is more accurate.
[0057] In S101, when a pending traffic alert is generated, the alert information of the pending traffic alert can be obtained first. The alert information includes the initial position of the pending traffic alert, the occurrence time and the target license plate number of the target vehicle.
[0058] Then, at least one capture device associated with the pending alarm situation can be determined. Figure 2 To implement, Figure 2 A flowchart of a method for determining at least one capture device associated with a traffic warning situation to be processed provided in an embodiment of the present application, Figure 2 At least the following steps are included:
[0059] S101-1: Determine the initial location of the traffic warning situation to be processed.
[0060] The initial location may be determined based on the address keyword provided by the reporter. Specifically, the address keyword may be geocoded to obtain approximate longitude and latitude information, which is the initial location.
[0061] S101 - 2: Match the initial position with the visual range information of at least one original capture device in the set area, and determine at least one capture device associated with the traffic warning situation to be processed.
[0062] Among them, each original capture device corresponds to a visual domain information, and the visual domain information can represent the capture area or range of the corresponding original capture device. Therefore, a set area can be first delineated according to the initial position, such as a circular area consisting of 100 meters around the initial position. The initial position is matched with the visual domain information of at least one original capture device in the set area, and the Geographic Information System (GIS) overlay analysis algorithm is applied to determine at least one capture device associated with the traffic warning situation to be processed. These capture devices are capture devices near the traffic warning situation to be processed that may capture the warning situation.
[0063] In S102, if multiple groups of snapshot information of at least one snapshot device associated with the determined traffic warning situation to be processed (for example, snapshot information within five minutes before and after the occurrence time) constitute a snapshot information set. Each group of snapshot information includes a snapshot image, an identifier of the snapshot device, the snapshot time, and the pixel position of the recognition frame in the snapshot image; a recognition frame includes a target vehicle; the pixel position of the target vehicle is the pixel position of the center point of the recognition frame. The recognition frame is a structured recognition frame. The geometric center of the recognition frame can be used as the center point of the recognition frame.
[0064] In S103, in the above process, after determining the pixel position of the target vehicle in the captured image, it is also necessary to determine the geographical location of the target vehicle in the captured image. Therefore, the correspondence between the pixel position and the geographical location in the captured image can be determined first, and the geographical location of the target vehicle in the captured image can be determined by applying the correspondence.
[0065] Optional, Figure 3 A flowchart of a method for determining a correspondence between a pixel position and a geographic location in a captured image provided by an embodiment of the present application, Figure 3 At least the following steps are included:
[0066] S103 - 1 : For each capture device, obtain the position information and angle information of the capture device.
[0067] The angle information of the capture device includes the pitch angle γ, the vertical field angle α and the horizontal field angle β, and the angle information can be determined according to the pan / tilt control information of the capture device. The position information (x, y, h) of the capture device can be determined according to the installation point of the capture device.
[0068] S103-2: Apply the position information and the angle information to calculate the geographical location and the first distance of the first location point.
[0069] Figure 4 A schematic diagram of the installation angle of a capture device provided in an embodiment of the present application, Figure 5A schematic diagram of the capture range of a capture device provided in an embodiment of the present application.
[0070] See also Figure 4 and Figure 5 It can be seen that O is the capture device, position point A and position point B are two boundary points on the captured ground range, position point A' and position point B' are two boundary points on the range corresponding to the captured image (that is, the intersection of the capture range of the capture device mapped to the captured image boundary). Among them, the first distance is the distance between the second position point A' and the third position point B', and the first position point C is the midpoint of the second position point A' and the third position point B'.
[0071] Exemplarily, the trigonometric function relationship can be applied to the geographic location (x, y, h) and angle information (pitch angle γ, vertical field angle α and horizontal field angle β) of point O of the capture device to calculate the distance between the geographic location of point C and A'B'.
[0072] S103 - 3 : Determine the correspondence between the pixel position in the captured image and the geographical location according to the relationship between the pixel size of the captured image in the set direction and the first distance.
[0073] The set direction is the direction indicated by the first distance, such as the direction from A' to B' or the direction from B' to A'. In this example, the pixel size of the captured image in the set direction is, for example, 125piex, and the first distance is, for example, 50m, then the corresponding relationship between the pixel position in the captured image and the geographical location is determined to be 2.5piex / m. Using this relationship, the geographical location of any point in the captured image can be determined, and then the geographical location of the target vehicle can be determined.
[0074] For any capture device, since the pixel position of the target vehicle in the captured image is determined in step S102, the geographical location of the target vehicle in the captured image can be determined based on the pixel position and the corresponding relationship. In actual application, each capture device is different, and its corresponding relationship may also be different. Therefore, the geographical location of the target vehicle in each captured image can be determined.
[0075] In S104, after obtaining the geographical location of the target vehicle in each captured image, a capture sequence of the target vehicle can be constructed based on the geographical location of the target vehicle in each captured image. If there are multiple target vehicles, each target vehicle corresponds to a capture sequence, and the capture sequence stores a collection of the geographical locations of the corresponding target vehicles in the captured images in each capture device.
[0076] In S105, among the multiple geographical locations of the target vehicle, the speed of the target vehicle at each geographical location is determined according to the set distance condition, the set time condition and the relationship between each geographical location and the neighboring geographical locations. This process can be performed by Figure 6 A flow chart of a method for determining the speed of a target vehicle at each geographical location is shown, Figure 6 At least the following steps are included:
[0077] S105 - 1 : For each geographical location of the target vehicle, determine a first geographical location and a second geographical location from among a plurality of geographical locations.
[0078] Optionally, take a geographical location as an example, the capture time of the geographical location is t k , t k The fifth minute before is recorded as t0, t k The fifth minute after that is recorded as t N .
[0079] Therefore, it can be k Among the multiple geographical locations within the previous 5 minutes, the geographical location whose distance to the geographical location meets the set distance condition is determined as the first geographical location, and the corresponding capture time is t m At t k Among multiple geographical locations within the next 5 minutes, the geographical location whose distance from the geographical location meets the set distance condition is determined as the second geographical location, and the corresponding capture time is t n .
[0080] S105-2: If the distance between the first geographical location and the geographical location satisfies the set distance condition, and the distance between the second geographical location and the geographical location satisfies the set distance condition, and the difference between the capture times of the first geographical location and the second geographical location satisfies the set time condition, then the speed of the target vehicle at the geographical location can be determined based on the distance between the first geographical location and the second geographical location, and the capture times of the first geographical location and the second geographical location.
[0081] For example, the current geographic location is called an anchor point, and all points whose sum of distances around the anchor point is less than the distance threshold EPS (for example, 50) are found as the neighboring points of the current anchor point. When the time difference is greater than the time threshold MinTime, the anchor point is taken as the suspected accident occurrence point. The method of screening the neighboring points is as follows:
[0082]
[0083] The mth position point is the first point in the neighborhood of the anchor point, and the nth position point is the last point in the neighborhood of the anchor point. p is any position point in the neighborhood, dist(p i, p i+1 ) means p i With p i+1 The distance between.
[0084] Therefore, if |t n -t m |≥MinTime, then we can calculate the sum of the distances from the mth position point to the nth position point and divide it by t n With t m The time interval between is used as the speed of the current anchor point, such as Figure 7 As shown, it is a schematic diagram of the positional relationship of multiple position points provided in an embodiment of the present application. Among them, the neighborhood points of anchor point K are B1 (mth position point), C1, D1, E1 (nth position point), and the distance from B1 to E1 is calculated and divided by time to obtain the speed of anchor point K.
[0085] The above formula takes into account the possibility of short stops due to capture recognition errors and traffic congestion.
[0086] In S106, after obtaining the speeds corresponding to the respective geographical locations, the geographical location where the minimum speed is located can be used to update the initial location of the traffic warning situation to be processed, so as to obtain the target location of the traffic warning situation to be processed.
[0087] The updating may refer to determining to replace the initial position of the traffic warning situation to be processed with the geographical location at the minimum speed as the target position of the traffic warning situation. In addition, a captured picture may be attached as the on-site image to complete the automatic real-time processing process of accurately locating the traffic warning situation.
[0088] The above embodiment is described by taking one target vehicle as an example. In actual application, multiple target vehicles may be included. In this case, the center point of the geographical location at the minimum speed of each target vehicle is used as the target location of the traffic warning.
[0089] In order to make the technical solution of this application more perfect, Figure 8 A complete flow chart of a method for locating traffic warning situations is provided for the embodiment of the present application. Figure 8 At least the following steps are included:
[0090] S801: Obtain the address keyword of the traffic warning situation to be processed.
[0091] S802: The address keyword and the geographic code are used to obtain the latitude and longitude information of the traffic warning situation to be processed as the initial position.
[0092] S803: Match the initial position with the visual range information of at least one original capture device in the set area to determine at least one capture device associated with the traffic warning situation to be processed.
[0093] S804: Obtain a capture information set of at least one capture device.
[0094] S805: For each capture device, obtain the position information and angle information of the capture device; wherein the angle information includes a pitch angle, a vertical field of view angle, and a horizontal field of view angle.
[0095] S806: Apply the position information and the angle information to calculate the geographic location and the first distance of the first location point.
[0096] S807: Determine a correspondence between a pixel position in the captured image and a geographic location according to a relationship between a pixel size of the captured image in a set direction and a first distance.
[0097] S808: Apply the corresponding relationship to determine the geographic location of the target vehicle in the captured image.
[0098] S809: Construct a capture sequence of the target vehicle.
[0099] S810: For each geographical location of the target vehicle, determine a first geographical location and a second geographical location from among multiple geographical locations.
[0100] S811: If the distance between the first geographic location and the geographic location meets the set distance condition, and the distance between the second geographic location and the geographic location meets the set distance condition, and the difference between the capture times of the first geographic location and the second geographic location meets the set time condition, then the speed of the target vehicle at the geographic location can be determined based on the distance between the first geographic location and the second geographic location, and the capture times of the first geographic location and the second geographic location.
[0101] S812: Determine to replace the initial position of the traffic warning situation to be processed with the geographical location at the minimum speed as the target position of the traffic warning situation.
[0102] In this embodiment, the implementation method of each step can refer to the above-mentioned embodiment and will not be repeated here.
[0103] In an embodiment of the present application, keyword information is extracted from the address of a traffic alert, the keyword is converted into a geocode, and the capture devices near the address keyword are found. Then, according to the time when the alert occurred, the capture images captured by these capture devices within a time period of 5 minutes before and 5 minutes after the alert (for example) are retrieved for analysis. After feature recognition is performed on the captured images, the license plate number and the pixel position in the image are extracted, the pixel position is converted into a geographic location, the capture sequence is analyzed, the location of the accident is found, and a more accurate address of the accident is obtained.
[0104] like Fig. 9As shown, based on the same inventive concept, an embodiment of the present application provides a traffic warning situation positioning device, including a data processing unit 91 and a data transmission unit 92.
[0105] The data processing unit 91 is used to: determine at least one capture device associated with the traffic warning situation to be processed; wherein the warning information of the traffic warning situation to be processed includes the initial position, occurrence time and target license plate number of the target vehicle of the traffic warning situation to be processed;
[0106] The data transmission unit 92 is used to: obtain a capture information set of at least one capture device; wherein the capture information set includes multiple groups of capture information; each group of capture information includes a capture picture, an identifier of the capture device, a capture time, and a pixel position of an identification frame in the capture picture; an identification frame includes a target vehicle; and the pixel position of the target vehicle is the pixel position of the center point of the identification frame;
[0107] The data processing unit 91 is further used to: determine the correspondence between the pixel position and the geographical location in the captured image, and use the correspondence to determine the geographical location of the target vehicle in the captured image;
[0108] The data processing unit 91 is used to: construct a capture sequence of the target vehicle; wherein the capture sequence includes multiple geographical locations of the target vehicle under at least one capture device;
[0109] The data processing unit 91 is further used to: determine the speed of the target vehicle at each geographical location among multiple geographical locations of the target vehicle according to a set distance condition, a set time condition and a relationship between each geographical location and a neighboring geographical location;
[0110] The data processing unit 91 is further used to: update the initial position of the traffic warning situation to be processed by using the geographical location where the minimum speed is located, so as to obtain the target position of the traffic warning situation to be processed.
[0111] In an optional implementation, the data processing unit 91 is specifically configured to:
[0112] For each capture device, obtain the position information and angle information of the capture device; wherein the angle information includes the pitch angle, the vertical field angle and the horizontal field angle;
[0113] Apply the position information and the angle information to calculate the geographic location and the first distance of the first position point; wherein the first distance is the distance between the second position point and the third position point, the first position point is the midpoint between the second position point and the third position point, and the second position point and the third position point are respectively the intersection points where the capture range of the capture device is mapped to the boundary of the captured image;
[0114] The corresponding relationship between the pixel position in the captured image and the geographical location is determined according to the relationship between the pixel size of the captured image in the set direction and the first distance; wherein the set direction is the direction indicated by the first distance.
[0115] In an optional implementation, the data processing unit 91 is specifically configured to:
[0116] For each geographical location of the target vehicle, a first geographical location and a second geographical location are determined from among the multiple geographical locations; wherein the capture time of the first geographical location is less than the capture time of the geographical location, and the distance between the first geographical location and the geographical location satisfies a set distance condition; the capture time of the second geographical location is greater than the capture time of the geographical location, and the distance between the second geographical location and the geographical location satisfies the set distance condition;
[0117] If the distance between the first geographic location and the geographic location meets the set distance condition, and the distance between the second geographic location and the geographic location meets the set distance condition, and the difference between the capture times of the first geographic location and the second geographic location meets the set time condition, then the speed of the geographic location can be determined based on the distance between the first geographic location and the second geographic location, and the capture times of the first geographic location and the second geographic location.
[0118] In an optional implementation, the data processing unit 91 is specifically configured to:
[0119] It is determined that the geographical location at the minimum speed replaces the initial location of the traffic warning situation to be processed as the target location of the traffic warning situation.
[0120] In an optional implementation, the data processing unit 91 is further configured to:
[0121] If there are multiple target vehicles, the center point of the geographical location at the minimum speed of each target vehicle is used as the target location of the traffic warning situation.
[0122] In an optional implementation, the data processing unit 91 is specifically configured to:
[0123] Determine the initial location of the traffic warning situation to be handled;
[0124] The initial position is matched with the visual range information of at least one original capture device in a set area to determine at least one capture device associated with the traffic warning situation to be processed.
[0125] In an optional implementation, the data processing unit 91 is further configured to:
[0126] Get the address keyword of the traffic warning situation to be processed;
[0127] The address keywords and geocoding are used to obtain the latitude and longitude information of the traffic warning situation to be processed as the initial location.
[0128] Since the device is the device in the method in the embodiment of the present application, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0129] like Fig.10 As shown, based on the same inventive concept, an embodiment of the present application provides an electronic device, including a processor 101 and a memory 102 .
[0130] The memory 102 is configured to execute:
[0131] Storing the warning information of the traffic warning situation to be processed, the warning information includes the initial position, occurrence time and target license plate number of the target vehicle of the traffic warning situation to be processed;
[0132] The processor 101 is configured to execute:
[0133] Determine at least one capture device associated with the traffic warning situation to be processed;
[0134] Acquire a capture information set of at least one capture device; wherein the capture information set includes multiple groups of capture information; each group of capture information includes a capture picture, an identifier of the capture device, a capture time, and a pixel position of an identification frame in the capture picture; an identification frame includes a target vehicle; the pixel position of the target vehicle is the pixel position of the center point of the identification frame;
[0135] Determine the correspondence between the pixel position and the geographic location in the captured image, and use the correspondence to determine the geographic location of the target vehicle in the captured image;
[0136] Constructing a capture sequence of the target vehicle; wherein the capture sequence includes multiple geographical locations of the target vehicle under at least one capture device;
[0137] Among the multiple geographical locations of the target vehicle, determining the speed of the target vehicle at each geographical location according to a set distance condition, a set time condition, and a relationship between each geographical location and a neighboring geographical location;
[0138] The initial position of the traffic warning situation to be processed is updated by using the geographical location of the minimum speed to obtain the target position of the traffic warning situation to be processed:
[0139] In an optional implementation, the processor 101 is specifically configured to execute:
[0140] For each capture device, obtain the position information and angle information of the capture device; wherein the angle information includes the pitch angle, the vertical field angle and the horizontal field angle;
[0141] Apply the position information and the angle information to calculate the geographic location and the first distance of the first position point; wherein the first distance is the distance between the second position point and the third position point, the first position point is the midpoint between the second position point and the third position point, and the second position point and the third position point are respectively the intersection points where the capture range of the capture device is mapped to the boundary of the captured image;
[0142] The corresponding relationship between the pixel position in the captured image and the geographical location is determined according to the relationship between the pixel size of the captured image in the set direction and the first distance; wherein the set direction is the direction indicated by the first distance.
[0143] In an optional implementation, the processor 101 is specifically configured to execute:
[0144] For each geographical location of the target vehicle, a first geographical location and a second geographical location are determined from among the multiple geographical locations; wherein the capture time of the first geographical location is less than the capture time of the geographical location, and the distance between the first geographical location and the geographical location satisfies a set distance condition; the capture time of the second geographical location is greater than the capture time of the geographical location, and the distance between the second geographical location and the geographical location satisfies the set distance condition;
[0145] If the distance between the first geographic location and the geographic location meets the set distance condition, and the distance between the second geographic location and the geographic location meets the set distance condition, and the difference between the capture time of the first geographic location and the second geographic location meets the set time condition, then the speed of the geographic location can be determined according to the distance between the first geographic location and the second geographic location, and the capture time of the first geographic location and the second geographic location.
[0146] In an optional implementation manner, the processor 101 is specifically configured to:
[0147] It is determined that the geographical location at the minimum speed replaces the initial location of the traffic warning situation to be processed as the target location of the traffic warning situation.
[0148] In an optional implementation, the processor 101 is further configured to:
[0149] If there are multiple target vehicles, the center point of the geographical location at the minimum speed of each target vehicle is used as the target location of the traffic warning situation.
[0150] In an optional implementation manner, the processor 101 is specifically configured to:
[0151] Determine the initial location of the traffic warning situation to be handled;
[0152] The initial position is matched with the visual range information of at least one original capture device in a set area to determine at least one capture device associated with the traffic warning situation to be processed.
[0153] In an optional implementation, the processor 101 is further configured to:
[0154] Get the address keyword of the traffic warning situation to be processed;
[0155] The address keywords and geocoding are used to obtain the latitude and longitude information of the traffic warning situation to be processed as the initial location.
[0156] The embodiment of the present application also provides a computer storage medium, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the steps of the above-mentioned traffic warning situation positioning method.
[0157] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0158] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0159] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0160] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0161] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for locating traffic warning situations, characterized in that: include: Determine at least one capture device associated with the traffic warning situation to be processed; wherein the warning information of the traffic warning situation to be processed includes the initial position, occurrence time and target license plate number of the target vehicle of the traffic warning situation to be processed; Acquire a capture information set of the at least one capture device; wherein the capture information set includes multiple groups of capture information; each group of capture information includes a capture picture, an identifier of the capture device, a capture time, and a pixel position of an identification frame in the capture picture; an identification frame includes a target vehicle; the pixel position of the target vehicle is the pixel position of the center point of the identification frame; Determine the correspondence between the pixel position and the geographical location in the captured image, and use the correspondence to determine the geographical location of the target vehicle in the captured image; Constructing a capture sequence of the target vehicle; wherein the capture sequence includes multiple geographical locations of the target vehicle under the at least one capture device; Among the multiple geographical locations of the target vehicle, determining the speed of the target vehicle at each geographical location according to a set distance condition, a set time condition, and a relationship between each geographical location and a neighboring geographical location; The geographical location where the minimum speed is located is used to update the initial location of the traffic warning situation to be processed, so as to obtain the target location of the traffic warning situation to be processed.
2. The method according to claim 1, characterized in that Determining the correspondence between the pixel position in the captured image and the geographic location includes: For each capture device, obtain the position information and angle information of the capture device; wherein the angle information includes a pitch angle, a vertical field of view angle, and a horizontal field of view angle; Applying the position information and the angle information, calculating the geographic location and the first distance of the first position point; wherein the first distance is the distance between the second position point and the third position point, the first position point is the midpoint between the second position point and the third position point, and the second position point and the third position point are respectively the intersection points where the capture range of the capture device is mapped to the boundary of the captured image; The correspondence between the pixel position in the captured image and the geographic location is determined based on the relationship between the pixel size of the captured image in a set direction and the first distance; wherein the set direction is the direction indicated by the first distance.
3. The method according to claim 1, characterized in that Determining the speed of the target vehicle at each of the plurality of geographical locations of the target vehicle according to a set distance condition, a set time condition, and a relationship between each geographical location and a neighboring geographical location includes: For each geographical location of the target vehicle, a first geographical location and a second geographical location are determined from the multiple geographical locations; wherein the capture time of the first geographical location is less than the capture time of the geographical location, and the distance between the first geographical location and the geographical location satisfies the set distance condition; the capture time of the second geographical location is greater than the capture time of the geographical location, and the distance between the second geographical location and the geographical location satisfies the set distance condition; If the distance between the first geographical location and the first geographical location satisfies the set distance condition, and the distance between the second geographical location and the first geographical location satisfies the set distance condition, and the difference between the capture times of the first geographical location and the second geographical location satisfies the set time condition, the speed of the target vehicle at the geographical location can be determined based on the distance between the first geographical location and the second geographical location, and the capture times of the first geographical location and the second geographical location.
4. The method according to claim 1, characterized in that: The method of updating the initial position of the traffic warning situation to be processed by using the geographical location where the minimum speed is located to obtain the target position of the traffic warning situation includes: It is determined that the geographical location at the minimum speed replaces the initial location of the traffic warning situation to be processed as the target location of the traffic warning situation.
5. The method according to claim 4, characterized in that The method further comprises: If there are multiple target vehicles, the center point of the geographical location at the minimum speed of each target vehicle is used as the target location of the traffic warning situation.
6. The method according to claim 1, characterized in that The step of determining at least one capture device associated with the traffic warning situation to be processed includes: Determine the initial location of the traffic warning situation to be handled; The initial position is matched with the visual range information of at least one original capture device in a set area to determine at least one capture device associated with the traffic warning situation to be processed.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Get the address keyword of the traffic warning situation to be processed; The address keyword and the geographic code are used to obtain the latitude and longitude information of the traffic warning situation to be processed as the initial position.
8. An electronic device, characterized in that: including a processor and a memory; The memory is configured to execute: Storing the warning information of the traffic warning situation to be processed, the warning information includes the initial position, occurrence time and target license plate number of the target vehicle of the traffic warning situation to be processed; The processor is configured to perform: Determine at least one capture device associated with the traffic warning situation to be processed; Acquire a capture information set of the at least one capture device; wherein the capture information set includes multiple groups of capture information; each group of capture information includes a capture picture, an identifier of the capture device, a capture time, and a pixel position of an identification frame in the capture picture; an identification frame includes a target vehicle; the pixel position of the target vehicle is the pixel position of the center point of the identification frame; Determine the correspondence between the pixel position and the geographical location in the captured image, and use the correspondence to determine the geographical location of the target vehicle in the captured image; Constructing a capture sequence of the target vehicle; wherein the capture sequence includes multiple geographical locations of the target vehicle under the at least one capture device; Among the multiple geographical locations of the target vehicle, determining the speed of the target vehicle at each geographical location according to a set distance condition, a set time condition, and a relationship between each geographical location and a neighboring geographical location; The geographical location where the minimum speed is located is used to update the initial location of the traffic warning situation to be processed, so as to obtain the target location of the traffic warning situation to be processed.
9. The electronic device according to claim 8, characterized in that: The processor is specifically configured to execute: For each capture device, obtain the position information and angle information of the capture device; wherein the angle information includes a pitch angle, a vertical field of view angle, and a horizontal field of view angle; Applying the position information and the angle information, calculating the geographic location and the first distance of the first position point; wherein the first distance is the distance between the second position point and the third position point, the first position point is the midpoint between the second position point and the third position point, and the second position point and the third position point are respectively the intersection points where the capture range of the capture device is mapped to the boundary of the captured image; The correspondence between the pixel position in the captured image and the geographic location is determined based on the relationship between the pixel size of the captured image in a set direction and the first distance; wherein the set direction is the direction indicated by the first distance.
10. The electronic device according to claim 8, characterized in that: The processor is specifically configured to execute: For each geographical location of the target vehicle, a first geographical location and a second geographical location are determined from the multiple geographical locations; wherein the capture time of the first geographical location is less than the capture time of the geographical location, and the distance between the first geographical location and the geographical location satisfies the set distance condition; the capture time of the second geographical location is greater than the capture time of the geographical location, and the distance between the second geographical location and the geographical location satisfies the set distance condition; If the distance between the first geographic location and the first geographic location satisfies the set distance condition, and the distance between the second geographic location and the first geographic location satisfies the set distance condition, and the difference in the capture time of the first geographic location and the second geographic location satisfies the set time condition, the speed of the geographic location can be determined based on the distance between the first geographic location and the second geographic location, and the capture time of the first geographic location and the second geographic location.
