Method and device for obtaining violation information of non-motor vehicles
By obtaining the overlapping area calibration relationship between the global video frame and the detailed video frame, and correlating the position information of non-motor vehicles, the problem of poor accuracy of violation information in the existing technology is solved, and the accuracy of obtaining non-motor vehicle violation information is improved.
Patent Information
- Application Number
- CN202011166104.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-10-27
AI Technical Summary
In the existing technology, non-motor vehicle violation tracking is prone to errors due to repeated vehicle characteristics, resulting in poor accuracy of violation information.
By obtaining the overlapping non-motor vehicle collection area between the global video frame and the detailed video frame, the calibration relationship is used to determine the location information of the illegal vehicle, and the illegal vehicle in the global video frame is associated with the illegal vehicle in the detailed video frame to obtain the illegal information , avoiding errors caused by vehicle feature tracking.
It improves the accuracy of obtaining non-motor vehicle violation information, reduces vehicle tracking errors, and enhances the accuracy of violation information.
Smart Images

Figure CN112270258B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent security monitoring technology, and in particular to a method and device for obtaining violation information of non-motor vehicles. Background Art
[0002] As the number of non-motor vehicles increases, the number of violations by non-motor vehicles also increases. In the prior art, the first camera can obtain a global video frame in the monitoring area, and after obtaining the violation of the illegal vehicle through the global video frame, control the second camera to track the illegal vehicle to obtain the violation information of the illegal vehicle. In the process of the first camera controlling the second camera to track, it may track according to the vehicle characteristics (such as vehicle color, vehicle model, etc.) of the detected illegal vehicle. In this way, if there are multiple vehicles with the same vehicle characteristics in the monitoring area at the same time, there may be a problem of vehicle tracking errors, resulting in poor accuracy of the violation information. Summary of the invention
[0003] The embodiments of the present application provide a method and device for obtaining violation information of non-motor vehicles, which can improve the accuracy of obtaining violation information of non-motor vehicles.
[0004] In a first aspect, the present application provides a method for obtaining violation information of non-motor vehicles, comprising: obtaining a global video frame and a detail video frame; wherein, there is an overlapping non-motor vehicle acquisition area between the global video frame and the detail video frame; when it is determined that there is a violation non-motor vehicle in the first video frame, according to the calibration relationship between the global video frame and the detail video frame regarding the overlapping non-motor vehicle acquisition area, the position information of the violation non-motor vehicle in the second video frame is determined; the first video frame includes the global video frame or the detail video frame, the second video frame includes the global video frame or the detail video frame, and the first video frame is different from the second video frame; according to the position information, the violation non-motor vehicle in the global video frame is associated with the violation non-motor vehicle in the detail video frame to obtain the violation information of the violation non-motor vehicle.
[0005] Optionally, the method is applied to a camera, the camera includes a first camera and a second camera, and the field of view of the first camera is greater than the field of view of the second camera;
[0006] The acquiring of the global video frame and the detail video frame includes: acquiring the global video frame through the first camera, and acquiring the detail video frame through the second camera.
[0007] Optionally, the first video frame includes the global video frame, the second video frame includes the detail video frame, and the determining that there is a non-motor vehicle violating the rules in the first video frame includes: marking a stop line and a right turn line on the global video frame; if the first signal light is in a green light state when the global video frame is collected, and the first non-motor vehicle in the global video frame crosses the stop line, and the first non-motor vehicle is not detected to have crossed the right turn line according to the first global video frame sequence, and the first non-motor vehicle is detected to have no change in position information according to the first global video frame sequence, then it is determined that the first non-motor vehicle has violated the rules by parking across the line, and the first non-motor vehicle is the non-motor vehicle violating the rules; wherein the first global video frame sequence includes multiple global video frames within a preset time period after the global video frame;
[0008] The method of associating the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame based on the position information to obtain the violation information of the illegal non-motor vehicle includes: obtaining the identity information corresponding to the illegal non-motor vehicle from the detail video frame based on the position information; associating the illegal non-motor vehicle in the global video frame with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0009] Optionally, the first video frame includes the detail video frame, the second video frame includes the global video frame, and the determining that there is a non-motor vehicle violating the regulations in the first video frame includes: marking the detail video frame with a red light running area; if the state of the second signal light is a red light state when the detail video frame is collected, and a second non-motor vehicle is detected in the red light running area, then determining that the second non-motor vehicle has a red light running violation, and the second non-motor vehicle is the non-motor vehicle violating the regulations;
[0010] The method of associating the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame based on the position information to obtain the violation information of the illegal non-motor vehicle includes: obtaining the identity information corresponding to the illegal non-motor vehicle from the detail video frame; obtaining the illegal non-motor vehicle in the global video frame based on the position information, and associating the illegal non-motor vehicle in the global video frame with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0011] Optionally, the first video frame includes the global video frame, the second video frame includes the detail video frame, and the determining that there is a non-motor vehicle violating the regulations in the first video frame includes: marking a plurality of reverse critical lines and a crossing direction of the plurality of reverse critical lines on the global video frame; if a third non-motor vehicle in the global video frame moves toward the crossing direction and crosses the last reverse critical line among the plurality of reverse critical lines, it is determined that the third non-motor vehicle has a reverse violation behavior, and the third non-motor vehicle is the non-motor vehicle violating the regulations;
[0012] The method of associating the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame based on the position information to obtain the violation information of the illegal non-motor vehicle includes: obtaining the identity information corresponding to the illegal non-motor vehicle from the detail video frame based on the position information; associating the illegal non-motor vehicle in the global video frame with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0013] Optionally, the first video frame includes the detail video frame, the second video frame includes the global video frame, and the determining that there is a non-motor vehicle violating the regulations in the first video frame includes: performing face detection on a fourth non-motor vehicle in the detail video frame; if the number of adult faces detected on the fourth non-motor vehicle is greater than or equal to 2, determining that the fourth non-motor vehicle has an overloading violation, and the fourth non-motor vehicle is the non-motor vehicle violating the regulations;
[0014] The method of associating the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame based on the position information to obtain the violation information of the illegal non-motor vehicle includes: obtaining the identity information corresponding to the illegal non-motor vehicle from the detail video frame; obtaining the illegal non-motor vehicle in the global video frame based on the position information, and associating the illegal non-motor vehicle in the global video frame with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0015] Optionally, the violation information also includes at least one of the following: a non-motor vehicle image corresponding to the illegal non-motor vehicle in the detail video frame, a facial image of the user carrying the illegal non-motor vehicle, position calibration information of the illegal non-motor vehicle in the global video frame, and the violation type of the illegal non-motor vehicle.
[0016] In the process of detecting the violation behavior of non-motor vehicles by combining the global video frame and the detail video frame, the present invention pre-calibrates the overlapping non-motor vehicle collection areas in the two video frames, taking into account the presence of overlapping non-motor vehicle collection areas in the two video frames. In this way, the same illegal non-motor vehicle in the two video frames can be obtained through the calibration relationship, avoiding the problem of vehicle tracking errors caused by tracking through vehicle features in the prior art.
[0017] In a second aspect, the present application provides a device for obtaining violation information of a non-motor vehicle, comprising:
[0018] An acquisition module, used for acquiring a global video frame and a detail video frame; wherein there is an overlapping non-motor vehicle acquisition area between the global video frame and the detail video frame;
[0019] A determination module, configured to determine, when it is determined that there is an illegal non-motor vehicle in the first video frame, the position information of the illegal non-motor vehicle in the second video frame according to the calibration relationship between the global video frame and the detail video frame regarding the overlapping non-motor vehicle acquisition area; the first video frame includes the global video frame or the detail video frame, the second video frame includes the global video frame or the detail video frame, and the first video frame is different from the second video frame;
[0020] The association module is used to associate the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame according to the position information to obtain the violation information of the illegal non-motor vehicle.
[0021] In a third aspect, the present application provides a device for obtaining violation information of a non-motor vehicle, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in the first aspect or any optional method of the first aspect is implemented.
[0022] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect or any optional method of the first aspect is implemented.
[0023] In the fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a non-motor vehicle violation information acquisition device, the non-motor vehicle violation information acquisition device executes the steps of the method described in the first aspect or any optional method of the first aspect.
[0024] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0026] Figure 1 It is a flowchart of a method for obtaining violation information of a non-motor vehicle provided in an embodiment of the present application;
[0027] Figure 2 is a schematic diagram comparing the viewing angles provided in the embodiments of the present application;
[0028] Figure 3 This is a schematic diagram of a non-motor vehicle crossing the line parking provided by an embodiment of the present application;
[0029] Figure 4 This is a schematic diagram of a non-motor vehicle running a red light provided by an embodiment of the present application;
[0030] Figure 5 This is a schematic diagram of a non-motor vehicle traveling in reverse provided by an embodiment of the present application;
[0031] Figure 6 It is a structural schematic diagram of a non-motor vehicle violation information acquisition device provided in an embodiment of the present application;
[0032] Figure 7 It is a structural schematic diagram of a non-motor vehicle violation information acquisition device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0034] It should be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. In addition, in the description of the specification of this application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0035] It should also be understood that references to "one embodiment" or "some embodiments" etc. described in the specification of the present application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in the specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0036] The following is an illustrative description of the method for obtaining violation information of non-motor vehicles provided in the present application through specific embodiments.
[0037] See also Figure 1 , Figure 1 It is a schematic flow chart of a method for obtaining violation information of non-motor vehicles provided by the present application. In this embodiment, the execution subject of the method for obtaining violation information of non-motor vehicles can be a device for obtaining violation information of non-motor vehicles, which is an intelligent device with a camera. The camera can be set on the outer surface of the device or can be set independently from the device. The camera can communicate with the processor in the device. Of course, the execution subject can also be a camera with data processing capabilities, etc. For ease of understanding, the following embodiments are explained by taking the execution subject including a camera as an example.
[0038] like Figure 1 As shown, the method for obtaining violation information of non-motor vehicles may include:
[0039] S101, acquiring a global video frame and a detail video frame; wherein there is an overlapping non-motor vehicle acquisition area between the global video frame and the detail video frame.
[0040] In an embodiment of the present application, the camera may be a binocular camera, that is, the camera includes a first camera and a second camera, and the field of view of the first camera is greater than that of the second camera. The first camera uses a short-focus global channel, and the second camera uses a long-focus detail channel, so the first camera can monitor the global traffic conditions, and the second camera can monitor the details of the traffic conditions. In this way, the binocular camera achieves better time synchronization between the global video frame and the detail video frame, that is, the global video frame and the detail video frame can be collected at the same collection time, avoiding the problem of poor time synchronization caused by collecting corresponding images by two cameras in the prior art.
[0041] It is understandable that the cameras may be deployed around sections of road where non-motor vehicle accidents frequently occur, or around non-motor vehicle lanes, and so on.
[0042] It should also be understood that, considering the large scenarios involved in driving against traffic, running red lights, and parking across the line, the field of view angle of the first camera is adjusted to be relatively large, resulting in the inability to identify the identity information of the illegal non-motor vehicle (such as license plate number, and / or, the facial image of the non-motor vehicle user) in the global video frame captured by the first camera. Therefore, it is necessary to further collect detailed video frames through the second camera to identify the identity of the illegal non-motor vehicle.
[0043] Since the present application needs to obtain the violation information of the illegal non-motor vehicle for the global video frame and the detail video frame at the same time, the global video frame and the detail video frame in the present application are respectively marked with the acquisition time (commonly known as the timestamp). In this way, in this step, the camera can obtain the global video frame and the detail video frame at the same acquisition time.
[0044] In summary, acquiring the global video frame and the detail video frame may include: acquiring the global video frame through the first camera, and acquiring the detail video frame through the second camera.
[0045] It should also be understood that, considering that the present application requires associating illegal non-motor vehicles with global video frames and detail video frames, there are overlapping non-motor vehicle acquisition areas between the first camera and the second camera.
[0046] Optionally, the overlapping non-motor vehicle collection area between the first camera and the second camera can be understood as: if the collection area covered by the first camera and the collection area covered by the second camera exist in the same geographic space area, then the geographic space area can be used as the overlapping non-motor vehicle collection area.
[0047] For example, Figure 2 A schematic diagram showing a comparison of different field of view angles. Figure 2The camera in the example is installed at a fixed position near the non-motor vehicle lane. Figure 2 As shown, the field of view angle of the first camera is β1, and the field of view angle of the second camera is β2. Therefore, the acquisition area covered by the first camera includes the area formed by the field of view angle β1, the acquisition area covered by the second camera includes the area formed by the field of view angle β2, and the non-motor vehicle acquisition area overlapped by the first camera and the second camera includes the area formed by the field of view angle β2. The above examples are only illustrative, and this application does not impose any special restrictions on this.
[0048] S102, when it is determined that there is an illegal non-motor vehicle in the first video frame, determine the position information of the illegal non-motor vehicle in the second video frame according to the calibration relationship between the global video frame and the detail video frame regarding the overlapping non-motor vehicle acquisition area; the first video frame includes the global video frame or the detail video frame, the second video frame includes the global video frame or the detail video frame, and the first video frame is different from the second video frame.
[0049] It can be understood that the calibration relationship between the global video frame and the detail video frame regarding the overlapping non-motor vehicle acquisition area can be understood as: when all the acquisition areas covered by the detail video frame belong to the acquisition areas covered by the global video frame, the overlapping non-motor vehicle acquisition areas between the first camera and the second camera can include: all the acquisition areas covered by the second camera. In this way, the overlapping non-motor vehicle acquisition areas are marked in the global video frame, and the coordinate transformation relationship of the pixels between the non-motor vehicle acquisition area in the global video frame and the detail video frame is constructed. For example, a certain pixel in the non-motor vehicle acquisition area in the global video frame and several pixels in the detail video frame represent the same geographic spatial position, so a certain pixel in the non-motor vehicle acquisition area in the global video frame can be constructed with a coordinate transformation relationship with several pixels in the detail video frame.
[0050] It should also be understood that, when the partial acquisition area covered by the detail video frame belongs to the acquisition area covered by the global video frame, the non-motor vehicle acquisition area overlapped between the first camera and the second camera may include: the partial acquisition area covered by the second camera. In this way, the overlapping non-motor vehicle acquisition area is marked in the global video frame, and the coordinate conversion relationship of the pixels between the non-motor vehicle acquisition area in the global video frame and the partial acquisition area in the detail video frame is constructed.
[0051] In the embodiments of the present application, exemplary descriptions are mainly given for illegal behaviors such as driving in the wrong direction, running a red light, parking beyond the line, and overloading.
[0052] (1) For parking scenarios beyond the line
[0053] In the cross-line parking scenario, when the first signal light near the zebra crossing is green, it is considered that a non-motor vehicle crossing the stop line to turn right is not a violation. This application can take this into account to improve the detection accuracy of cross-line parking.
[0054] Figure 3 FIG. 1 shows a schematic diagram of a global video frame in a parking scene that is beyond the line. Figure 3 As shown, it is necessary to track the driving conditions of the non-motor vehicle lane 1 going straight and the non-motor vehicle lane 2 after turning right at the same time, and the signal light involved in this scene is the first signal light near the zebra crossing, not the signal light at the intersection. In this way, it is possible to detect whether the non-motor vehicle has stopped across the line through the global video frame.
[0055] In summary, in the cross-line parking scene, the first video frame includes a global video frame, and the second video frame includes a detail video frame. At this time, determining that there is a non-motor vehicle violating the regulations in the first video frame may include: marking the stop line and the right turn line on the global video frame; if the state of the first signal light is green when the global video frame is collected, the first non-motor vehicle in the global video frame crosses the stop line, and the first non-motor vehicle is not detected to have crossed the right turn line according to the first global video frame sequence, and the first non-motor vehicle is detected to have no change in its position information according to the first global video frame sequence, then it is determined that the first non-motor vehicle has violated the regulations by crossing the line, and the first non-motor vehicle is the non-motor vehicle violating the regulations; wherein the first global video frame sequence includes multiple global video frames within a preset time period after the global video frame.
[0056] like Figure 3 As shown, the stop line is represented by L1, the right turn line is represented by L2, and the state of the first signal light D is green (that is, it means that straight driving is not allowed at present). It can be understood that if Figure 3 As shown, the first non-motor vehicle crossing the stop line can be understood as: if the first non-motor vehicle is on the upper side of the stop line L1, it is determined that the first non-motor vehicle crosses the stop line; the first non-motor vehicle crossing the right turn line can be understood as: if the first non-motor vehicle is on the right side of the right turn line L2, it is determined that the first non-motor vehicle crosses the right turn line. Detecting that the position information of the first non-motor vehicle does not change according to the first global video frame sequence includes: the position information of the first non-motor vehicle in the continuous specified frames included in the first global video frame sequence is unchanged, and the continuous specified frames can be at least two continuous frames.
[0057] like Figure 3As shown, in this global video frame, the first non-motor vehicle has crossed the stop line L1. If in the first global video frame sequence collected within a preset time period, there is no first non-motor vehicle crossing the right turn line L2, and the position information of the first non-motor vehicle in the first global video frame sequence has not changed (that is, the first non-motor vehicle has stopped). In this way, it is determined Figure 3 The first non-motor vehicle in the vehicle has violated the parking rules by crossing the line, and the first non-motor vehicle is the illegal non-motor vehicle.
[0058] Optionally, the state of the first signal light can be determined by a color feature of the first signal light in the global video frame, wherein when the color feature of the first signal light is red, the state of the first signal light is determined to be a red light state; and when the color feature of the first signal light is green, the state of the first signal light is determined to be a green light state.
[0059] Optionally, the present application takes into account that the first signal light in the global video frame may be affected by various factors such as light reflection, rain, or snow, resulting in the inability to accurately identify the corresponding color. Based on this, the present application can also detect the state of the first signal light through a signal light detector, which can be installed on the first signal light, and the signal light detector synchronizes the state of the first signal light to the camera. In this way, the camera can establish a mapping relationship between the global video frame and the state of the first signal light. The above embodiments are only exemplary descriptions, and the present application does not impose any special restrictions on this.
[0060] (2) For red light running scenarios
[0061] In the red light running scenario, since the global video frame needs to include the second signal light at the intersection, the global video frame covers a larger area, which makes the non-motor vehicle in the global video frame smaller, so it may not be possible to detect the red light running behavior. In this case, the application needs to detect the red light running behavior of the illegal non-motor vehicle from the detail video frame.
[0062] In summary, in the cross-line parking scenario, the first video frame includes a detail video frame, and the second video frame includes a global video frame. At this time, determining that there is a non-motor vehicle violating the regulations in the first video frame may include: marking the red light running area on the detail video frame; if the state of the second signal light is a red light state when the detail video frame is collected, and a second non-motor vehicle is detected in the red light running area, then determining that the second non-motor vehicle has violated the regulations by running a red light, and the second non-motor vehicle is a non-motor vehicle violating the regulations.
[0063] Optionally, in order to distinguish between red light running violations and cross-line parking violations, the present application may set the red light running area at a certain distance from the stop line. The present application does not specifically limit the specific location of the red light running area.
[0064] It should also be understood that the second signal light mentioned above is a signal light at an intersection, and the state of the second signal light can be obtained by the signal light detector mentioned above, and the specific contents will not be repeated.
[0065] Figure 4 FIG. 4 shows a schematic diagram of a detailed video frame in a red light running scene. Figure 4 As shown, a red light running area S is marked in the detail video frame, and the second non-motor vehicle is in the red light running area S, so as to further determine whether the state of the second signal light is a red light state. If it is a red light state, it can be determined that the second non-motor vehicle has violated the red light rule and the second non-motor vehicle is an illegal non-motor vehicle.
[0066] (3) For retrograde scenarios
[0067] In the reverse traffic scene, considering that non-motor vehicles may reverse to avoid other non-motor vehicles, the reverse traffic may be mistakenly regarded as reverse traffic. Based on this problem, this application needs to detect that the non-motor vehicle has reverse traffic for a certain distance. Since the second camera may not be able to capture the entire distance, this application needs to detect the reverse traffic of the illegal non-motor vehicle from the global video frame.
[0068] In summary, in the wrong-travel scenario, the first video frame includes a global video frame, and the second video frame includes a detail video frame. At this time, determining that there is a non-motor vehicle violating the regulations in the first video frame may include: marking a plurality of wrong-travel critical lines and the crossing direction of the plurality of wrong-travel critical lines on the global video frame; if the third non-motor vehicle in the global video frame crosses the last wrong-travel critical line among the plurality of wrong-travel critical lines in the crossing direction, then determining that the third non-motor vehicle has a wrong-travel violation, and the third non-motor vehicle is a non-motor vehicle violating the regulations.
[0069] Optionally, the present application can also obtain a second global video frame sequence, and when it is detected according to the second global video frame sequence that the third non-motor vehicle is heading in the direction of crossing the line and crossing at least one of the multiple reverse critical lines, and the third non-motor vehicle in the global video frame is heading in the direction of crossing the line and crossing the last reverse critical line of the multiple reverse critical lines, it is determined that the third non-motor vehicle has a reverse violation behavior, and the third non-motor vehicle is a non-motor vehicle that violates the regulations. The second global video frame sequence is a multi-frame global video frame within a preset time period before the global video frame. For example, the second global video frame sequence can be a multi-frame global video frame collected within 2 seconds before the global video frame.
[0070] It is understandable that the last retrograde critical line and at least one retrograde critical line may constitute multiple retrograde critical lines. The at least one retrograde critical line may be a retrograde critical line other than the last retrograde critical line among the multiple retrograde critical lines; or the at least one retrograde critical line may be any retrograde critical line among the multiple retrograde critical lines and the subsequent retrograde critical line.
[0071] It should also be understood that the third non-motor vehicle in the global video frame moves in the direction of crossing the line and crosses the last reverse critical line among multiple reverse critical lines, which may include: obtaining the previous global video frame of the global video frame, and obtaining the previous position information of the third non-motor vehicle in the previous global video frame; in this way, the current position information of the third non-motor vehicle in the global video frame is obtained; if the previous position information is located on one side of the last reverse critical line, or is above the last reverse critical line, and the current position information is located on the other side of the last reverse critical line, it can be determined that the third non-motor vehicle has crossed the last reverse critical line.
[0072] It should be understood that the camera can obtain the third non-motor vehicle in the previous global video frame by tracking the third non-motor vehicle; or the camera can obtain the identity information of the third non-motor vehicle according to the detail video frame corresponding to the global video frame, and obtain the third non-motor vehicle in the previous global video frame according to the identity information of the third non-motor vehicle. The above examples are only exemplary, and this application does not impose any special restrictions on this.
[0073] Further, optionally, with the crossing direction as the positive direction of the X axis and the last retrograde critical line as the Y axis, the first distance between the current position information and the Y axis is obtained, and the second distance between the previous position information and the Y axis is obtained. If the difference between the first distance and the second distance is a positive number, it can be determined that the third non-motor vehicle is moving in the crossing direction and crossing the last retrograde critical line; if the difference between the first distance and the second distance is a negative number, it can be determined that the third non-motor vehicle is moving away from the crossing direction and crossing the last retrograde critical line. Alternatively, if the first distance is greater than the second distance, it can be determined that the third non-motor vehicle is moving in the crossing direction and crossing the last retrograde critical line; if the first distance is less than the second distance, it can be determined that the third non-motor vehicle is moving away from the crossing direction and crossing the last retrograde critical line.
[0074] Optionally, if the global video frame can identify the front part or the rear part of the third non-motor vehicle, then when the front part of the third motor vehicle in the global video frame is oriented in the crossing direction, or the rear part is oriented away from the crossing direction, it is determined that the third non-motor vehicle is oriented in the crossing direction and crosses the last reverse critical line.
[0075] like Figure 5As shown, multiple reverse critical lines including reverse critical line N1, reverse critical line N2 and reverse critical line N3 are used as examples for explanation. Among them, reverse critical line N3 is the last reverse critical line, the third non-motor vehicle in the dotted line frame is used to represent the third non-motor vehicle in the previous global video frame, and the third non-motor vehicle in the solid line frame is used to represent the third non-motor vehicle in the current global video frame. Figure 5 It can be seen that the third non-motor vehicle crossed the reverse critical line N3 in the direction of crossing the line. Therefore, it can be determined that the third non-motor vehicle has violated the reverse traffic rules.
[0076] In an optional embodiment, the camera needs to detect that the third non-motor vehicle is moving in the direction of crossing the line and crossing the wrong-travel critical line N1, the wrong-travel critical line N2 and the wrong-travel critical line N3, and determine that the third non-motor vehicle has violated the wrong-travel violation.
[0077] (4) For overload scenarios
[0078] In the overload scenario, considering that non-motor vehicles can carry minors, the prior art only determines whether the vehicle is overloaded by detecting the number of people on the non-motor vehicle, which results in a poor detection accuracy.
[0079] The face detection on the non-motor vehicle in this application belongs to the detail feature, so in the overload scene, the first video frame includes the detail video frame, and the second video frame includes the global video frame. At this time, determining that there is a non-motor vehicle violating the regulations in the first video frame may include: performing face detection on the fourth non-motor vehicle in the detail video frame; if the number of adult faces detected on the fourth non-motor vehicle is greater than or equal to 2, then determining that the fourth non-motor vehicle has an overload violation and the fourth non-motor vehicle is a non-motor vehicle violating the regulations.
[0080] It is understandable that in the relevant regulations of non-motor vehicles, non-motor vehicles can carry minors, so it is not a violation for a non-motor vehicle to carry an adult and a minor. Based on this, in the embodiment of the present application, it is necessary to detect the type of face while detecting the number of people, that is, to determine whether the face is an adult face or a non-adult face.
[0081] Furthermore, the face type of the input face can be detected by a pre-trained face recognition model. It is necessary to collect adult face image samples and non-adult face image samples in advance, and perform model training on the adult face image samples and non-adult face image samples to obtain a face recognition model. Exemplarily, the face recognition model can be a convolutional neural network (CNN) model, a support vector machine (SVM) model, or a model obtained by a deep learning algorithm, etc.
[0082] In some embodiments of the present application, it is also considered that non-motor vehicles have installed umbrellas, and the passengers do not wear helmets and other violations. For such violations, the first video frame includes a detail video frame, and the second video frame includes a global video frame. In this way, determining that there is an illegal non-motor vehicle in the first video frame may include: the camera can extract attributes of the non-motor vehicle according to the detail video frame to obtain attribute information of the non-motor vehicle. Among them, the attribute information may include: whether the passengers on the non-motor vehicle wear helmets, and whether umbrellas are installed on the non-motor vehicle. It can be seen from this that the camera can determine that the non-motor vehicle has installed umbrellas, and the passengers do not wear helmets and other violations based on the attribute information of the non-motor vehicle.
[0083] In other embodiments of the present application, the camera can also perform category recognition on the non-motor vehicle based on the detail video frame to obtain the type of the non-motor vehicle. The type of the non-motor vehicle may include bicycles and non-bicycles. Since the present application does not detect violations for bicycles, the camera executes S102 when detecting that the non-motor vehicle is a non-bicycle.
[0084] It is understandable that the attribute extraction and category recognition described above can be obtained through the attribute recognition model. Furthermore, the present application can collect non-motor vehicle image samples, wherein the non-motor vehicle image samples may include: image samples of non-motor vehicle passengers wearing helmets, image samples of non-motor vehicle passengers not wearing helmets, image samples of non-motor vehicle passengers with umbrellas installed, image samples of non-motor vehicle passengers without umbrellas installed, image samples of bicycles, and image samples of non-bicycles, etc. In this way, the preset deep learning network is trained and optimized through non-motor vehicle image samples to obtain an attribute recognition model.
[0085] Optionally, the attribute recognition model obtained by training may not be able to adapt to attribute extraction and category recognition. Therefore, the present application can also train an attribute recognition model for identifying whether the non-motor vehicle is carrying a helmet based on image samples of the non-motor vehicle carrying a helmet and image samples of the non-motor vehicle carrying a helmet; train an attribute recognition model for identifying whether the non-motor vehicle is equipped with an umbrella based on image samples of the non-motor vehicle equipped with an umbrella and image samples of the non-motor vehicle without an umbrella; and train an attribute recognition model for identifying whether the non-motor vehicle is a bicycle based on image samples of bicycles and image samples of non-bicycles. In this way, the detection accuracy is improved to a certain extent.
[0086] In summary, the present application takes into account that the global video frame covers a larger acquisition area, and the illegal non-motor vehicles in the global video frame are smaller; while the detailed video frame covers a smaller acquisition area, and the illegal non-motor vehicles in the detailed video frame are larger. In this way, the present application can detect illegal behaviors of non-motor vehicles by combining the global video frame and the detailed video frame.
[0087] S103, according to the position information, associating the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame to obtain the violation information of the illegal non-motor vehicle.
[0088] In some embodiments of the present application, the violation information may also include at least one of the following: a non-motor vehicle image corresponding to the illegal non-motor vehicle in the detail video frame, a facial image of the user carrying the illegal non-motor vehicle, position calibration information of the illegal non-motor vehicle in the global video frame, and the violation type of the illegal non-motor vehicle.
[0089] The following describes each scenario in S102:
[0090] (1) For parking scenarios beyond the line
[0091] The embodiment of the present application can obtain the identity information corresponding to the illegal non-motor vehicle from the detail video frame according to the location information; associate the illegal non-motor vehicle in the global video frame with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0092] The identity information may include a license plate identification and / or a facial image of the user on the illegal non-motor vehicle.
[0093] It can be understood that the present application can find the illegal non-motor vehicle in the detail video frame based on the location information; then extract the facial features of the carrier user on the illegal non-motor vehicle. If the facial feature extraction is successful, the facial image of the carrier user can be obtained; if the facial feature extraction fails, the license plate on the illegal non-motor vehicle can be identified to obtain the license plate identification.
[0094] Optionally, in order to ensure better information integrity, the present application can further identify the license plate on the illegal non-motor vehicle and obtain the license plate logo when the facial feature extraction is successful.
[0095] In some embodiments of the present application, the present application may display the identity mark within the preset position range of the illegal non-motor vehicle in the global video frame; or, the illegal non-motor vehicle may be circled in the global video frame and displayed at the preset position around the global video frame. The above examples are only for illustration and the present application does not limit this.
[0096] (2) For red light running scenarios
[0097] The embodiment of the present application can obtain the identity information corresponding to the illegal non-motor vehicle from the detail video frame; and obtain the illegal non-motor vehicle in the global video frame based on the position information, and associate the illegal non-motor vehicle in the global video frame with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0098] The specific content of the identity information and the association process can be referred to in the off-line parking scenario, which will not be repeated here.
[0099] (3) For retrograde scenarios
[0100] The embodiment of the present application can obtain the identity information corresponding to the illegal non-motor vehicle from the detail video frame according to the location information; and associate the illegal non-motor vehicle in the global video frame with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0101] The specific content of the identity information and the association process can be referred to in the off-line parking scenario, which will not be repeated here.
[0102] (4) For overload scenarios
[0103] The embodiment of the present application can obtain the identity information corresponding to the illegal non-motor vehicle from the detail video frame; and, based on the position information, obtain the illegal non-motor vehicle in the global video frame, and associate the illegal non-motor vehicle in the global video frame with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0104] The specific content of the identity information and the association process can be referred to in the off-line parking scenario, which will not be repeated here.
[0105] In response to violations such as non-motor vehicles being equipped with umbrellas and passengers on non-motor vehicles not wearing helmets, in some embodiments of the present application, the present application can obtain the identity information corresponding to the illegal non-motor vehicles from the detail video frame; and associate the identity information with the illegal non-motor vehicles in the detail video frame.
[0106] Optionally, the present application can also obtain the identity information corresponding to the illegal non-motor vehicle from the detail video frame; and obtain the illegal non-motor vehicle in the global video frame based on the location information, and associate the illegal non-motor vehicle in the global video frame with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0107] In some optional embodiments of the present application, the camera can send violation information of the illegal non-motor vehicle to the processing platform, so that the staff in the processing platform can identify the violators and handle the violation business based on the violation information.
[0108] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0109] By adopting the method described in the embodiment of the present application, in the process of combining the global video frame and the detail video frame to detect the violation of non-motor vehicles, the present application takes into account the overlapping non-motor vehicle acquisition areas in the two video frames, so the present application pre-calibrates the overlapping non-motor vehicle acquisition areas in the two video frames. In this way, the same illegal non-motor vehicle in the two video frames can be obtained through the calibration relationship, avoiding the problem of vehicle tracking errors caused by tracking through vehicle features in the prior art.
[0110] Based on the method for obtaining violation information of non-motor vehicles provided in the above embodiment, the embodiment of the present invention further provides an embodiment of a device for implementing the above method embodiment.
[0111] See also Figure 6 , Figure 6 Schematic diagram of a device for obtaining violation information of a non-motor vehicle provided in an embodiment of the present application. The modules included are used to execute Figure 1 For details, please refer to the steps in the corresponding embodiment. Figure 1 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 6 The non-motor vehicle violation information acquisition device 6 includes:
[0112] An acquisition module 61 is used to acquire a global video frame and a detail video frame; wherein there is an overlapping non-motor vehicle acquisition area between the global video frame and the detail video frame;
[0113] The determination module 62 is used to determine the position information of the illegal non-motor vehicle in the second video frame according to the calibration relationship between the global video frame and the detail video frame about the overlapping non-motor vehicle acquisition area when it is determined that there is an illegal non-motor vehicle in the first video frame; the first video frame includes the global video frame or the detail video frame, the second video frame includes the global video frame or the detail video frame, and the first video frame is different from the second video frame;
[0114] The association module 63 is used to associate the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame according to the position information to obtain the violation information of the illegal non-motor vehicle.
[0115] Optionally, the method is applied to a camera, the camera includes a first camera and a second camera, and the field of view of the first camera is greater than the field of view of the second camera;
[0116] The obtaining of the global video frame and the detail video frame includes:
[0117] The global video frame is acquired through the first camera, and the detail video frame is acquired through the second camera.
[0118] Optionally, the first video frame includes the global video frame, and the second video frame includes the detail video frame.
[0119] The determination module 62 is further used to mark the stop line and the right turn line on the global video frame; if the state of the first signal light is green when the global video frame is collected, the first non-motor vehicle in the global video frame crosses the stop line, and the first non-motor vehicle is not detected to have crossed the right turn line according to the first global video frame sequence, and the first non-motor vehicle is detected to have no change in the position information according to the first global video frame sequence, then it is determined that the first non-motor vehicle has a violation of parking across the line, and the first non-motor vehicle is the violation non-motor vehicle; wherein the first global video frame sequence includes multiple global video frames within a preset time period after the global video frame;
[0120] The association module 63 is further used to obtain the identity information corresponding to the illegal non-motor vehicle from the detail video frame according to the position information; associate the illegal non-motor vehicle in the global video frame with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0121] Optionally, the first video frame includes the detail video frame, the second video frame includes the global video frame, and the determination module 62 is further used to mark the red light running area on the detail video frame; if the state of the second signal light is a red light state when the detail video frame is collected, and a second non-motor vehicle is detected in the red light running area, it is determined that the second non-motor vehicle has a red light running violation, and the second non-motor vehicle is the illegal non-motor vehicle;
[0122] The association module 63 is further used to obtain the identity information corresponding to the illegal non-motor vehicle from the detailed video frame; according to the position information, the illegal non-motor vehicle in the global video frame is obtained, and the illegal non-motor vehicle in the global video frame is associated with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0123] Optionally, the first video frame includes the global video frame, the second video frame includes the detail video frame, and the determination module 62 is further configured to mark the global video frame with a plurality of wrong-traffic critical lines and the crossing directions of the plurality of wrong-traffic critical lines; if the third non-motor vehicle in the global video frame moves toward the crossing direction and crosses the last wrong-traffic critical line among the plurality of wrong-traffic critical lines, it is determined that the third non-motor vehicle has a wrong-traffic violation, and the third non-motor vehicle is the illegal non-motor vehicle;
[0124] The association module 63 is further used to obtain the identity information corresponding to the illegal non-motor vehicle from the detail video frame according to the position information; associate the illegal non-motor vehicle in the global video frame with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0125] Optionally, the first video frame includes the detail video frame, the second video frame includes the global video frame, and the determination module 62 is further configured to perform face detection on the fourth non-motor vehicle in the detail video frame; if the number of adult faces detected on the fourth non-motor vehicle is greater than or equal to 2, it is determined that the fourth non-motor vehicle has an overloading violation, and the fourth non-motor vehicle is the illegal non-motor vehicle;
[0126] The association module 63 is further used to obtain the identity information corresponding to the illegal non-motor vehicle from the detailed video frame; according to the position information, the illegal non-motor vehicle in the global video frame is obtained, and the illegal non-motor vehicle in the global video frame is associated with the identity information to obtain the violation information of the illegal non-motor vehicle.
[0127] Optionally, the violation information also includes at least one of the following: a non-motor vehicle image corresponding to the illegal non-motor vehicle in the detail video frame, a facial image of the user carrying the illegal non-motor vehicle, position calibration information of the illegal non-motor vehicle in the global video frame, and the violation type of the illegal non-motor vehicle.
[0128] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0129] Figure 7 Schematic diagram of a device for acquiring violation information of a non-motor vehicle provided in an embodiment of the present application. Figure 7As shown, the non-motor vehicle violation information acquisition device 7 of this embodiment includes: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70, such as a non-motor vehicle violation information acquisition program. When the processor 70 executes the computer program 72, the steps in the above-mentioned non-motor vehicle violation information acquisition method embodiments are implemented, such as Figure 1 Alternatively, when the processor 70 executes the computer program 72, the functions of each module / unit in the above-mentioned device embodiments are realized, for example, Figure 6 The functions of the acquisition module 61, the determination module 62 and the association module 63 are shown.
[0130] Exemplarily, the computer program 72 may be divided into one or more modules / units, which are stored in the memory 71 and executed by the processor 70 to complete the present application. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 72 in the non-motor vehicle violation information acquisition device 7. For example, the computer program 72 may be divided into an acquisition module and a detection module. For specific functions of each module, please refer to Figure 1 The relevant descriptions in the corresponding embodiments are not repeated here.
[0131] The non-motor vehicle violation information acquisition device may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will appreciate that Figure 7 It is only an example of the non-motor vehicle violation information acquisition device 7 and does not constitute a limitation of the non-motor vehicle violation information acquisition device 7. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the non-motor vehicle violation information acquisition device may also include input and output devices, network access devices, buses, etc.
[0132] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0133] The memory 71 may be an internal storage unit of the non-motor vehicle violation information acquisition device 7, such as a hard disk or memory of the non-motor vehicle violation information acquisition device 7. The memory 71 may also be an external storage device of the non-motor vehicle violation information acquisition device 7, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the non-motor vehicle violation information acquisition device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the non-motor vehicle violation information acquisition device 7. The memory 71 is used to store the computer program and other programs and data required by the non-motor vehicle violation information acquisition device. The memory 71 may also be used to temporarily store data that has been output or is to be output.
[0134] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned method for obtaining violation information of non-motor vehicles can be implemented.
[0135] An embodiment of the present application provides a computer program product. When the computer program product runs on a non-motor vehicle violation information acquisition device, the non-motor vehicle violation information acquisition device can implement the above-mentioned non-motor vehicle violation information acquisition method when executed.
[0136] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0137] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0138] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0139] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for obtaining violation information of non-motor vehicles, characterized in that: The method comprises: Acquire a global video frame and a detail video frame simultaneously; wherein there is an overlapping non-motor vehicle acquisition area between the global video frame and the detail video frame; When it is determined that there is an illegal non-motor vehicle in the first video frame, determining the position information of the illegal non-motor vehicle in the second video frame according to the calibration relationship between the global video frame and the detail video frame regarding the overlapping non-motor vehicle acquisition area; the first video frame is different from the second video frame; According to the position information, the illegal non-motor vehicle in the global video frame is associated with the illegal non-motor vehicle in the detail video frame to obtain the illegal information of the illegal non-motor vehicle; The method is applied to a camera, the camera comprising a first camera and a second camera, the field of view of the first camera being greater than the field of view of the second camera; The obtaining of the global video frame and the detail video frame includes: Acquire the global video frame through the first camera, and acquire the detail video frame through the second camera; Wherein, the overlapping non-motor vehicle acquisition area includes the entire acquisition area covered by the second camera; If the first video frame includes the detail video frame and the second video frame includes the global video frame, The step of determining whether there is an illegal non-motor vehicle in the first video frame includes: Marking a red light running area on the detail video frame; If the state of the second signal light is a red light state when the detail video frame is collected, and a second non-motor vehicle is detected in the red light running area, it is determined that the second non-motor vehicle has violated the red light violation, and the second non-motor vehicle is the violating non-motor vehicle; The step of associating the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame according to the position information to obtain the illegal non-motor vehicle information includes: Acquire the identity information corresponding to the illegal non-motor vehicle from the detail video frame; According to the position information, the illegal non-motor vehicle in the global video frame is obtained, and the illegal non-motor vehicle in the global video frame is associated with the identity information to obtain the violation information of the illegal non-motor vehicle.
2. The method according to claim 1, characterized in that If the first video frame includes the global video frame and the second video frame includes the detail video frame, The step of determining whether there is an illegal non-motor vehicle in the first video frame includes: Marking a stop line and a right turn line on the global video frame; If, when the global video frame is collected, the state of the first signal light is green, the first non-motor vehicle in the global video frame crosses the stop line, and the first non-motor vehicle is not detected to have crossed the right turn line according to the first global video frame sequence, and the first non-motor vehicle is detected to have no change in position information according to the first global video frame sequence, then it is determined that the first non-motor vehicle has violated the parking rules by crossing the line, and the first non-motor vehicle is the illegal non-motor vehicle; wherein, the first global video frame sequence includes multiple global video frames within a preset time period after the global video frame; The step of associating the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame according to the position information to obtain the illegal non-motor vehicle information includes: According to the position information, obtaining identity information corresponding to the illegal non-motor vehicle from the detail video frame; The illegal non-motor vehicle in the global video frame is associated with the identity information to obtain the illegal information of the illegal non-motor vehicle.
3. The method according to claim 1, characterized in that If the first video frame includes the global video frame and the second video frame includes the detail video frame, The step of determining whether there is an illegal non-motor vehicle in the first video frame includes: marking a plurality of retrograde critical lines and crossing directions of the plurality of retrograde critical lines on the global video frame; If the third non-motor vehicle in the global video frame moves toward the crossing direction and crosses the last reverse critical line among the multiple reverse critical lines, it is determined that the third non-motor vehicle has violated the reverse traffic rules and the third non-motor vehicle is the violating non-motor vehicle; The step of associating the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame according to the position information to obtain the illegal non-motor vehicle information includes: According to the position information, obtaining identity information corresponding to the illegal non-motor vehicle from the detail video frame; The illegal non-motor vehicle in the global video frame is associated with the identity information to obtain the illegal information of the illegal non-motor vehicle.
4. The method according to claim 1, characterized in that If the first video frame includes the detail video frame and the second video frame includes the global video frame, The step of determining whether there is an illegal non-motor vehicle in the first video frame includes: performing face detection on a fourth non-motor vehicle in the detail video frame; If the number of adult faces detected on the fourth non-motor vehicle is greater than or equal to 2, it is determined that the fourth non-motor vehicle has an overloading violation, and the fourth non-motor vehicle is the illegal non-motor vehicle; The step of associating the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame according to the position information to obtain the illegal non-motor vehicle information includes: Acquire the identity information corresponding to the illegal non-motor vehicle from the detail video frame; According to the position information, the illegal non-motor vehicle in the global video frame is obtained, and the illegal non-motor vehicle in the global video frame is associated with the identity information to obtain the violation information of the illegal non-motor vehicle.
5. The method according to claim 1, characterized in that The violation information also includes at least one of the following: a non-motor vehicle image corresponding to the illegal non-motor vehicle in the detail video frame, a facial image of a user on the illegal non-motor vehicle, position calibration information of the illegal non-motor vehicle in the global video frame, and a violation type of the illegal non-motor vehicle.
6. A device for obtaining violation information of non-motor vehicles, characterized in that: include: An acquisition module, used for simultaneously acquiring a global video frame and a detail video frame; wherein there is an overlapping non-motor vehicle acquisition area between the global video frame and the detail video frame; A determination module, configured to determine, when it is determined that there is an illegal non-motor vehicle in the first video frame, position information of the illegal non-motor vehicle in the second video frame according to a calibration relationship between the global video frame and the detail video frame regarding the overlapping non-motor vehicle acquisition area; the first video frame is different from the second video frame; An association module, configured to associate the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame according to the position information, to obtain the illegal information of the illegal non-motor vehicle; The device is applied to a camera, the camera comprises a first camera and a second camera, the field of view angle of the first camera is greater than the field of view angle of the second camera; The obtaining of the global video frame and the detail video frame includes: Acquire the global video frame through the first camera, and acquire the detail video frame through the second camera; Wherein, the overlapping non-motor vehicle acquisition area includes the entire acquisition area covered by the second camera; The first video frame includes the detail video frame, and the second video frame includes the global video frame. The determining whether there is an illegal non-motor vehicle in the first video frame includes: Marking a red light running area on the detail video frame; If the state of the second signal light is a red light state when the detail video frame is collected, and a second non-motor vehicle is detected in the red light running area, it is determined that the second non-motor vehicle has violated the red light violation, and the second non-motor vehicle is the violating non-motor vehicle; The step of associating the illegal non-motor vehicle in the global video frame with the illegal non-motor vehicle in the detail video frame according to the position information to obtain the illegal non-motor vehicle information includes: Acquire the identity information corresponding to the illegal non-motor vehicle from the detail video frame; According to the position information, the illegal non-motor vehicle in the global video frame is obtained, and the illegal non-motor vehicle in the global video frame is associated with the identity information to obtain the violation information of the illegal non-motor vehicle.
7. A device for obtaining violation information of a non-motor vehicle, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Illegal vehicle snapshot warning method and device
CN110782677A
System and method for street-parking-vehicle identification through license plate capturing
US20130266190A1
Single camera video-based speed enforcement system with a secondary auxiliary RGB traffic camera
US20140267733A1
Method for identifying video involving violation at intersection based on coordinated relay of video cameras
WO2020000251A1
