Traffic violation evidence obtaining method and equipment
By combining control units, detection units, imaging units and fill light units in traffic violation evidence collection equipment, the problem that traditional speedometers are difficult to capture clear photos under different light conditions is solved, and clear evidence acquisition under various lighting conditions is achieved and reduce equipment costs.
Patent Information
- Application Number
- CN202411344827.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2024-12-31
AI Technical Summary
Traditional speedometers are difficult to capture clear photos of traffic violations under poor lighting conditions, and the equipment structure is complex, which increases cost and maintenance difficulty.
Using traffic violation evidence collection methods and equipment including control unit, detection unit, imaging unit and fill light unit, flashes to the target area when traffic violations are detected, and selects frames with effective fill light from the video as evidence, avoiding Strict requirements for the timing of taking pictures.
It realizes the acquisition of clear images of traffic violation evidence under various lighting conditions, reduces equipment costs and structural complexity, and improves the flexibility and success rate of taking pictures.
Smart Images

Figure CN119229664A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of traffic detection technology, and in particular to a method and device for collecting evidence of traffic violations. Background Art
[0002] In the field of traffic management, speedometers are a common device used to monitor and manage road safety. Traditional speedometers usually include: Figure 1 The speed measuring unit 10, camera 20 and video camera 30 are shown. The speed measuring unit 10 is responsible for detecting the speed of vehicles passing through the target area; when a vehicle is detected to be speeding, the speed measuring unit 10 will send a forensic control signal to the camera 20 to trigger the camera 20 to take a photo, and the video camera 30 will obtain video information of the target area.
[0003] However, in the case of poor light conditions, such as rainy weather or at night, the camera 20 may not be able to capture a sufficiently clear image. To solve this problem, the speedometer is also equipped with a Figure 1 The flash 40 shown. When the camera 20 receives the evidence control signal, it also sends a flash control signal to the flash 40, so that the flash 40 can emit a flash while the camera 20 takes a photo, thereby improving the clarity of the photo. After receiving the evidence control signal, the camera 20 sends a flash control signal to the flash 40, and the flash 40 flashes toward the target area after receiving the flash control signal, thereby filling in the light for the photo taken by the camera 20. In order to capture clear vehicle photos and avoid blurring of photos caused by high-speed movement of the vehicle, the shutter time of the camera 20 and the flash flash time are very short. Therefore, the flash time of the flash 40 and the exposure time of the camera 20 need to be synchronized so that the flash 40 can effectively fill in the light for the picture captured by the camera 20. Therefore, the flash control signal transmission between the camera 20 and the flash 40 needs to reach a very low delay level, which usually requires the use of specially designed cameras to ensure low-latency signal transmission, and such cameras are often large in size and high in cost.
[0004] Since the camera 20 and the video camera 30 need to be provided at the same time to respectively complete the functions of taking pictures and recording videos, the structure of the whole system is complicated, which increases the cost and maintenance difficulty of the equipment. In order to achieve accurate synchronization between the flash 40 and the camera 20, a specially designed camera is usually required. Such cameras are not only large in size, but also expensive, which increases the cost of the whole system. Summary of the invention
[0005] The embodiments of the present application provide a method and device for collecting evidence of traffic violations, which can achieve lower cost and simpler device structure, while ensuring that clear traffic violation evidence images can be effectively obtained under various lighting conditions.
[0006] On the one hand, an embodiment of the present application provides a traffic violation evidence collection method, which is applied to a traffic violation evidence collection device, wherein the traffic violation evidence collection device includes a control unit, a detection unit, an imaging unit, and a fill light unit, wherein the detection unit, the imaging unit, and the fill light unit are respectively connected to the control unit, and the method includes:
[0007] The control unit controls the imaging unit to continuously acquire video of the target area;
[0008] When the detection unit detects that there is a traffic violation in the target area, the control unit performs the following steps:
[0009] A. controlling the fill light unit to flash toward the target area;
[0010] B. Selecting at least one frame of a target image with effective fill light from the video, wherein the target image is used as evidence of the traffic violation.
[0011] In an optional implementation manner of the present application, the time length during which the fill light unit flashes toward the target area is called fill light duration, and the fill light duration at least covers the exposure duration of the imaging unit to obtain a frame of image, wherein the exposure duration refers to the time length required for the imaging unit to obtain a frame of image; the control unit selects at least one frame of target image with effective fill light from the video, including:
[0012] The control unit selects at least one frame of target image with effective fill light from the video according to the fill light duration.
[0013] In an optional implementation manner of the present application, the control unit selects at least one frame of target image with effective fill light from the video according to the fill light duration, including:
[0014] The control unit determines at least one frame of fill light image with effective fill light from the video within the range of the fill light duration, and selects at least one frame of target image from the fill light image.
[0015] In an optional implementation manner of the present application, the selecting at least one frame of target image from the fill light image includes:
[0016] A target image is selected from multiple frames of fill-light images according to the overall average grayscale value of each frame of fill-light image.
[0017] In an optional implementation manner of the present application, the fill light duration t x , the exposure time t1 and the non-exposure time t2 satisfy: t x ≥2t1+t2;
[0018] The non-exposure time length t2 refers to the remaining time length in an exposure cycle t0 excluding the exposure time length t1.
[0019] In an optional implementation manner of the present application, the method further includes:
[0020] When the detection unit detects that there is a traffic violation in the target area, sending a forensic control signal to the control unit;
[0021] When receiving the evidence control signal, the control unit sends a flash control signal to the fill light unit to control the fill light unit to flash toward the target area, and selects at least one frame of target image with effective fill light from the video captured by the imaging unit.
[0022] In an optional implementation manner of the present application, the control unit selects at least one frame of target image with effective fill light from the video, including:
[0023] The control unit selects at least one frame of target image with effective fill light from the video according to the target moment;
[0024] The target time is the time when the control unit receives the evidence control signal or sends the flash control signal.
[0025] In an optional implementation manner of the present application, the control unit selects at least one frame of target image with effective fill light from the video according to the target time, including:
[0026] The control unit determines a preset time period before and after the target moment as a target time period, selects frames with effective fill light from image frames within the target time period in the video, and determines the frames with effective fill light as the target image.
[0027] In an optional implementation manner of the present application, the control unit selects at least one frame of target image with effective fill light from the video according to the target time, including:
[0028] The control unit determines a preset time period before and after the target moment as a target time period, and uses image frames in the target time period in the video as candidate frames;
[0029] The control unit selects a frame with the highest grayscale value from the candidate frames as a frame with effective fill light, and determines the frame with effective fill light as the target image.
[0030] In an optional implementation manner of the present application, the method further includes:
[0031] The control unit determines the length of the target period according to a signal transmission delay between the control unit and the imaging unit, and / or a signal transmission delay between the control unit and the fill light unit.
[0032] In an optional implementation manner of the present application, the control unit selects at least one frame of target image with effective fill light from the video, including:
[0033] The control unit calculates the average grayscale value of the entire image of each frame image in the video, selects the frame with the highest average grayscale value as the frame with effective fill light, and determines the frame with effective fill light as the target image.
[0034] In an optional implementation manner of the present application, the imaging unit includes a lens module, the control unit includes a processor and a memory, and the lens module and the processor are respectively connected to the memory;
[0035] The control unit controls the imaging unit to continuously acquire video of the target area, including:
[0036] The control unit sends a video control signal to the lens module of the imaging unit to control the lens module to continuously acquire a video of a target area according to the video control signal, and sends the video to the memory of the control unit for storage;
[0037] The control unit selects at least one frame of target image with effective fill light from the video, including:
[0038] The processor in the control unit selects at least one frame of target image with effective fill light from the video stored in the memory in response to the evidence control signal.
[0039] In an optional implementation manner of the present application, the fill light duration t x , exposure time t1 and non-exposure time t2, satisfying: t x ≥2t1+t2;
[0040] The exposure time t1 refers to the time length required for the imaging unit to acquire a frame of image;
[0041] The non-exposure time t2 refers to the remaining time length in an exposure cycle t0 excluding the exposure time t1;
[0042] Among them, the fill light duration t x It refers to the length of time that the fill light unit flashes toward the target area.
[0043] On the other hand, an embodiment of the present application provides a traffic violation evidence collection device, the device comprising a control unit, a detection unit, an imaging unit and a fill light unit, the detection unit, the imaging unit and the fill light unit are respectively connected to the control unit, wherein:
[0044] The imaging unit is used to continuously acquire video of the target area;
[0045] The detection unit is used to detect whether there is a traffic violation incident in the target area;
[0046] The fill light unit is used to flash light towards the target area when the detection unit detects that there is a traffic violation in the target area;
[0047] The control unit is used to select at least one frame of target image with effective fill light from the video when the detection unit detects that there is a traffic violation in the target area, and the target image is used as evidence of the traffic violation.
[0048] The embodiment of the present application is applied to a traffic violation evidence collection device, which includes a control unit, a detection unit, an imaging unit and a fill light unit. The detection unit, the imaging unit and the fill light unit are respectively connected to the control unit, and the control unit controls the imaging unit to continuously obtain a video of the target area; when the detection unit detects that there is a traffic violation in the target area, the control unit performs the following steps: A. Control the fill light unit to flash to the target area; B. Select at least one frame of a target image with effective fill light from the video, and the target image is used as evidence of the traffic violation. The embodiment of the present application integrates the control unit, the detection unit, the imaging unit and the fill light unit to avoid the complex configuration of the camera and the video camera in the traditional solution, thereby achieving a lower cost and simpler device structure; when a traffic violation is detected, the intelligent control of the fill light unit ensures that the device can provide sufficient fill light for the target area when continuously shooting the video of the target area, thereby improving the clarity and contrast of the image, so that the device can effectively obtain clear traffic violation evidence images under various lighting conditions. In addition, after a traffic violation is detected, frames with effective fill light are immediately selected from the video as target images, which not only reduces the strict requirements on the timing of taking pictures, but also improves the flexibility and success rate of taking pictures. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] 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 those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 A schematic diagram of the structure of a speed meter provided in an embodiment of the present application.
[0051] Figure 2 A schematic diagram of the structure of the traffic violation evidence collection device provided in an embodiment of the present application.
[0052] Figure 3 A schematic diagram of a first application scenario of the traffic violation evidence collection device provided in an embodiment of the present application.
[0053] Figure 4 A schematic diagram of a second application scenario of the traffic violation evidence collection device provided in an embodiment of the present application.
[0054] Figure 5 A schematic diagram of a third application scenario of the traffic violation evidence collection device provided in an embodiment of the present application.
[0055] Figure 6 A schematic diagram of a fourth application scenario of the traffic violation evidence collection device provided in an embodiment of the present application.
[0056] Figure 7 A flow chart of a method for collecting evidence of traffic violations provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0058] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.
[0059] This application embodiment provides a traffic violation evidence collection device. Figures 2 to 6 , Figure 2 A schematic diagram of the structure of a traffic violation evidence collection device provided in an embodiment of the present application. Figures 3 to 6 Schematic diagram of application scenarios of the traffic violation evidence collection device provided in the embodiment of the present application. The traffic violation evidence collection device 100 may include: a control unit 110, a detection unit 120, an imaging unit 130 and a fill light unit 140, wherein the detection unit 120, the imaging unit 130 and the fill light unit 140 are respectively connected to the control unit 110.
[0060] The control unit 110, as the central processing unit of the device, is responsible for coordinating and managing the operation process of the entire system.
[0061] For example, the control unit 110 may also have intelligent analysis capabilities and can respond quickly based on the feedback from the detection unit 120, such as activating the fill light unit 140 and filtering evidence images from the video at an appropriate time. The control unit 110 may have built-in storage space or be connected to an external storage device to store video data, processed target images, and related traffic violation records. At the same time, it supports uploading evidence information to the cloud or traffic management center in real time or at a scheduled time through the network to facilitate subsequent processing and law enforcement.
[0062] For example, the control unit 110 may also support remote access and configuration, and the administrator may remotely detect the device status through the network, adjust shooting parameters, fill light intensity, etc., to adapt to different environmental conditions and detection requirements.
[0063] The control unit 110 may be an independently arranged component, or may be integrated in the detection unit 120, the imaging unit 130, the fill light unit 140 or other components.
[0064] The control unit 110 is used to control the imaging unit 130 to continuously acquire video of the target area.
[0065] For example, the imaging unit 130 can use a high-resolution camera, such as 4K or 8K resolution, to ensure that vehicle details can be clearly captured even at a long distance. At the same time, high frame rate recording (such as 60fps or higher) can also be supported to reduce motion blur. For example, in order to obtain clear images in low-light environments, the imaging unit 130 can also be configured with night vision and infrared enhancement functions. By automatically switching to infrared mode, the outline and movement trajectory of the vehicle can be captured even in a completely dark environment. For example, the imaging unit 130 can also adopt a wide-angle lens design to cover a wider target area, reduce blind spots, and improve detection efficiency. For example, the imaging unit 130 can also support efficient video coding technology (such as H.265 / HEVC) to significantly reduce the bandwidth required for storage and transmission while maintaining image quality.
[0066] The detection unit 120 is used to detect whether there is any traffic violation in the target area.
[0067] For example, the detection unit 120 can use video analysis technology (such as image recognition, behavior analysis), radar detection, infrared sensing and other technical means, integrate a variety of advanced image processing and machine learning algorithms, and can accurately identify a variety of traffic violations, including but not limited to speeding, running a red light, driving against traffic, illegal lane changes, etc. The detection unit 120 has a strong computing power, can process the video stream transmitted by the imaging unit 130 in real time, and make judgments in a very short time.
[0068] The control unit 110 is configured to execute the following steps when the detection unit 120 detects that a traffic violation event exists in the target area:
[0069] A. controlling the fill light unit 140 to flash toward the target area;
[0070] B. Select at least one frame of a target image with effective fill light from the video footage shot by the imaging unit 130, and use the target image as evidence of the traffic violation.
[0071] The control unit 110 is used to control the fill light unit 140 to flash toward the target area when the detection unit 120 detects that there is a traffic violation in the target area. For example, the fill light unit 140 can be a flash. The fill light unit 140 can be designed with a multi-light emitting diode (LED) light source array. When the detection unit 120 detects that there is a traffic violation in the target area, the control unit 110 sends a flash control signal to the fill light unit 140. The fill light unit 140 can adjust the fill light intensity and angle according to the flash control signal sent by the control unit 110 to ensure sufficient fill light for the target area.
[0072] For example, the fill light unit 140 can work closely with the control unit 110 to automatically adjust the fill light brightness and fill light duration according to the ambient light to avoid overexposure or underexposure problems.
[0073] For example, during non-detection periods or when there is sufficient light, the fill light unit 140 may automatically enter a power-saving mode to reduce energy consumption.
[0074] The control unit 110 is used to select at least one frame of target image with effective fill light from the video captured by the imaging unit 130 when the detection unit 120 detects that there is a traffic violation in the target area. The target image is used as evidence of the traffic violation.
[0075] For example, the specific workflow can be:
[0076] S1: When the traffic violation evidence collection device 100 is turned on, the control unit 110 sends a video recording control signal to the imaging unit 130 .
[0077] S2: After receiving the video recording control signal, the imaging unit 130 continuously records the video of the target area, and the video recording process is continuously performed, and the recorded video is sent to the control unit 110 in real time; the control unit 110 stores the video.
[0078] S3: During the execution of step S2, the detection unit 120 monitors the target area and detects whether there is a traffic violation in the target area. If a traffic violation is detected, such as speeding, running a red light, driving in the wrong direction, illegal lane change, etc., it is determined that there is a traffic violation in the target area, and a forensic control signal is sent to the control unit 110; after receiving the forensic control signal, the control unit 110 immediately performs the following two steps: a. Control the fill light unit 140 to flash at the target area to ensure that the imaging unit 130 can obtain a clear image in a low-light environment; b. Immediately select at least one frame of the target image with effective fill light from the stored video, and the target image is used as evidence of the traffic violation. The target image is output as a static picture.
[0079] The embodiment of the present application uses a single imaging unit 130 to complete the task of recording and capturing static images as evidence of the traffic violation. No additional cameras are required, and no professional cameras are needed to solve the problem of fill light synchronization, which reduces the overall cost of the equipment. The embodiment of the present application uses the fill light unit 140 to fill light the target area where the traffic violation occurs, ensuring that effective fill light can be provided to the imaging unit 130 under any lighting conditions, thereby obtaining a clear traffic violation evidence image. The control unit 110 analyzes each frame in the video to determine which frames have obtained effective fill light, and selects the clearest frame or frames as the evidence image.
[0080] For example, before the detection unit 120 detects that there is a traffic violation in the target area, the current environment information (such as the brightness of the current environment light) can be obtained through the light sensor and / or the environment sensor, and the control unit 110 can control the fill light unit 140 to be in an off state or a working state according to the current environment information. For example, if the current environment information meets the brightness condition (such as the brightness of the current environment light is greater than or equal to the brightness threshold), fill light is not required, and the control unit 110 controls the fill light unit 140 to be in an off state; for example, if the current environment information does not meet the brightness condition (such as the brightness of the current environment light is less than the brightness threshold), fill light is required, and the control unit 110 controls the fill light unit 140 to be in a working state.
[0081] It is understandable that when the detection unit 120 detects that there is a traffic violation in the target area, if the current environmental information meets the requirements, fill light is not required. At this time, the control unit 110 directly selects the target image from the video image according to other rules, such as selecting at least one frame of target image from the video according to the motion trajectory and posture information of the traffic participants in the traffic violation. If the current environmental information does not meet the requirements, fill light is required. At this time, the control unit 110 first controls the fill light unit 140 to fill light, and then immediately (for example, at intervals of not less than 0.1s) selects at least one frame of target image from multiple frames of fill light images with fill light effect. Among them, one or more frames of images corresponding to the range of fill light duration (i.e., the time period covered by the fill light duration) in the stored video are determined as fill light images with fill light effect.
[0082] In some embodiments, the detection unit 120 is used to determine that the detection unit 120 has detected a traffic violation event in the target area when the detection unit 120 detects that at least one traffic participant has performed at least one traffic violation in the target area.
[0083] In the field of traffic, the detection unit 120 can be used to detect various types of traffic violations or abnormal behaviors in addition to speed measurement. These functions can be performed by dedicated sensors, cameras or other types of detection equipment. For example, the detection unit 120 can be applied to at least one of the following detection application scenarios:
[0084] Speeding: The detection unit 120 may include a radar speed measurement unit, a laser speed measurement unit, etc., to measure the speed of vehicles in the target area to determine whether the vehicle is speeding.
[0085] Red light running detection: The detection unit 120 monitors the state of traffic lights to determine whether there are vehicles that violate the instructions of the traffic lights. For example, the detection unit 120 can be implemented based on a camera and image recognition technology, such as using a camera to capture the moment when a vehicle passes through an intersection, combining image recognition technology and traffic light state monitoring to determine whether the vehicle crosses the stop line when the light is red.
[0086] Reverse driving detection: The detection unit 120 detects whether the vehicle is driving in the reverse direction on a road where reverse driving is prohibited. For example, by identifying road markings and analyzing vehicle trajectories, it is determined whether the vehicle is driving in the reverse direction on a one-way road.
[0087] Driving outside the specified lane: The detection unit 120 monitors whether the vehicle is driving illegally when lane change is prohibited or when driving in a specific lane is required. For example, lane line recognition and vehicle position tracking technology are used to monitor whether the vehicle is driving in the specified lane.
[0088] Illegal parking detection: The detection unit 120 detects whether the vehicle is parked in a prohibited parking area. For example, the detection unit 120 can be implemented based on technologies such as a camera or geomagnetic induction. For example, when the geomagnetic sensor detects that the vehicle is parked, the camera takes a photo of the vehicle as evidence, and then automatically compares it with the prohibited parking area database through license plate recognition technology to confirm whether the vehicle violates the rules.
[0089] Occupancy of special lanes: The detection unit 120 detects whether the target vehicle (such as a private car) occupies special lanes such as bus lanes and emergency lanes. For example, lane line markings and traffic sign recognition technology are used to distinguish the lane type of the target area (such as bus lanes, emergency lanes and other special lanes), and then combined with the driving trajectory of the target vehicle and the lane type of the target area, it is determined whether the target vehicle is illegally occupying the lane.
[0090] Violation of prohibition signs: For example, for prohibited driving, restricted driving, etc., the detection unit 120 detects whether the vehicle violates the corresponding traffic signs. For example, the detection unit 120 can be implemented based on a camera and image recognition technology, such as accurately identifying various types of traffic prohibition signs (such as prohibited driving, restricted driving signs) through image recognition technology, and then matching the identified prohibition signs with the vehicle's driving trajectory to determine whether the vehicle violates the regulations.
[0091] Pedestrian and bicycle illegal behavior detection: The detection unit 120 is used to detect whether pedestrians or bicycles violate traffic regulations, such as running a red light, crossing the road without using a crosswalk, etc. For example, a behavior recognition algorithm is used to analyze the movement trajectories and actions of pedestrians and bicycles to determine whether there are illegal behaviors such as running a red light or crossing the road.
[0092] Illegal U-turn or turn: The detection unit 120 detects whether the vehicle makes a U-turn or turn in a place where U-turn or turn is not allowed. For example, by continuously monitoring the vehicle's driving trajectory, it is determined whether the vehicle performs relevant operations in an area where U-turn or turn is prohibited, and combined with the road markings and traffic light status, multi-angle evidence support is provided.
[0093] Driver behavior detection: The detection unit 120 detects whether the driver is driving fatigued or using a mobile phone or other distracting behaviors. For example, the detection unit 120 can be implemented based on facial recognition technology, such as using facial recognition technology to monitor the driver's facial expressions and movements to determine whether there is fatigue driving, using a mobile phone or other distracting behaviors. In the process of data collection and processing, privacy protection regulations are strictly followed to ensure the security of the driver's personal information.
[0094] Large vehicle violation detection: For example, the detection unit 120 detects overloading, overheight, overwidth, etc. of a truck. For example, through image processing and machine learning algorithms, the length, width, and height of the truck are measured to determine whether there are violations such as overloading, overheight, and overwidth. The load condition can also be further verified by combining weighbridge data or vehicle suspension system monitoring.
[0095] Seat belt failure detection: The detection unit 120 is used to detect whether the occupants of the vehicle are using the seat belts correctly. For example, the detection unit 120 can be implemented based on a camera and image recognition technology.
[0096] Noise pollution detection: The detection unit 120 monitors whether the vehicle emits noise exceeding the specified standard. For example, a high-sensitivity microphone is used to collect sound signals during vehicle driving, and sound analysis technology is used to determine whether the noise exceeds the standard. The detection threshold can be automatically adjusted according to the noise standards of different environments (such as cities, rural areas, and highways).
[0097] When the detection unit 120 detects at least one of the above traffic violations, it can be determined that there is a traffic violation in the target area. These violations generally include but are not limited to:
[0098] Speeding: The vehicle speed exceeds the prescribed speed limit;
[0099] Red light running: a vehicle passes through an intersection during a red light;
[0100] Not driving in the lane: The vehicle does not drive in the designated lane;
[0101] Illegal parking: the vehicle is parked in a prohibited parking location;
[0102] Occupying a dedicated lane: Vehicles occupying bus lanes or other dedicated lanes;
[0103] Violation of prohibition signs: Vehicles violate prohibition signs, restricted signs, etc.;
[0104] Pedestrian and bicycle violations: Pedestrians or bicycles violate traffic regulations;
[0105] Illegal U-turn or turn: The vehicle makes a U-turn or turn in a place where U-turn or turn is prohibited.
[0106] In some embodiments, when the detection unit 120 detects that there is a traffic violation in the target area, it sends a forensic control signal to the control unit 110; the control unit 110, when receiving the forensic control signal, can also be used to: send a flash control signal to the fill light unit 140, and control the fill light unit 140 to flash toward the target area according to the flash control signal, and select at least one frame of the target image with effective fill light from the video captured by the imaging unit 130.
[0107] For example, when the detection unit 120 detects that there is a traffic violation in the target area, the control unit 110 can generate a flash control signal corresponding to the traffic violation according to the type and location of the traffic violation. The flash control signal can contain all necessary information required for the fill light unit 140 to perform the fill light operation, such as fill light intensity, fill light duration, fill light angle, etc. The control unit 110 can quickly and accurately send the flash control signal to the fill light unit 140 through an internal bus or wireless communication. After receiving the flash control signal, the fill light unit 140 immediately parses the signal content and starts the corresponding fill light mechanism, such as controlling the LED light source to light up quickly, emitting bright and short fill light to the target area, and providing sufficient light support for the evidence collection operation of the imaging unit 130.
[0108] For example, while sending the flash control signal or later, the control unit 110 performs an operation of selecting one or more frames of images for effective fill light from the stored video at a specific moment (such as the moment when the evidence collection control signal is received) to capture a clear image of the illegal vehicle.
[0109] During the operation of the traffic violation evidence collection device 100 after it is turned on, the imaging unit 130 continuously captures the video of the target area, and sends the captured video to the control unit 110 in real time, and the control unit 110 stores the video. After receiving the evidence collection control signal, the control unit 110 selects one or more frames of images with effective fill light from the video captured by the imaging unit 130 stored in it. These images usually have extremely high clarity and contrast, and can clearly show the detailed features of the illegal vehicle. The control unit 110 can compress, encode and other processes the selected target image, and then output it to a storage device or other terminal device through an internal bus or network. These images, as direct evidence of traffic violations, will be used in subsequent violation processing procedures.
[0110] In the embodiment of the present application, after detecting a traffic violation, the control unit 110 can quickly and accurately coordinate the fill light unit 140 to perform fill light, and coordinate the imaging unit 130 to select one or more frames of images with effective fill light from the continuously acquired video of the target area, ensuring that a clear image of the illegal vehicle is captured under the best lighting conditions. This efficient collaborative working mechanism greatly improves the accuracy and timeliness of traffic violation evidence collection, and provides strong technical support for traffic management departments.
[0111] In some embodiments, the imaging unit 130 includes a lens module, the control unit 110 includes a processor and a memory, and the lens module and the processor are respectively connected to the memory;
[0112] The control unit 110 is used to send a video control signal to the lens module of the imaging unit 130 to control the lens module to continuously obtain a video of the target area according to the video control signal, and send the video to the memory of the control unit 110 for storage;
[0113] The control unit 110 is used to control the processor to select at least one frame of target image with effective fill light from the video stored in the memory in response to the evidence collection control signal.
[0114] Among them, the lens module is used to capture the optical image of the target area. The lens module can contain multiple lens combinations to correct aberrations, adjust focal length and aperture size to ensure that the captured image has clear details and proper exposure. The lens module usually has functions such as autofocus, auto exposure and auto white balance, which can be adjusted in real time by the processor through control signals to adapt to different light and shooting conditions.
[0115] Among them, the processor is used to receive the original image data from the lens module and perform a series of image processing operations, such as denoising, sharpening, color correction, etc., to improve the image quality. According to the processor of the control unit 110, a video control signal is sent to the lens module of the imaging unit 130 to control the lens module to continuously obtain the video of the target area according to the video control signal, and compress the video data in real time and store it in the memory. The compression algorithm is designed to reduce the demand for storage space while maintaining image quality. When receiving the evidence control signal from the detection unit 120, the processor in the control unit 110 will immediately retrieve the stored video data from the memory and select at least one frame of the target image with effective fill light from the video.
[0116] The memory is used to temporarily store the video data captured by the lens module and the image files processed by the processor. It should have sufficient capacity and fast read and write speed to ensure that the data can be recorded continuously and stably without loss. When the processor responds to the forensic control signal and needs to perform a forensic operation, the processor will quickly retrieve and load the relevant video data from the memory and select the target image from the video data.
[0117] For example, the collaborative workflow between the various components in the control unit 110 and the imaging unit 130 is:
[0118] Video recording mode: In normal working state, the control unit 110 sends a video recording control signal to the lens module of the imaging unit 130 through the processor. The lens module is controlled to start continuously capturing the image of the target area according to the video recording control signal, and the video recording data is compressed in real time and stored in the memory of the control unit 110.
[0119] Evidence collection trigger: When the detection unit 120 detects a traffic violation, the detection unit 120 sends an evidence collection control signal to the processor. After receiving the evidence collection control signal, the processor retrieves the stored video data from the memory.
[0120] Image selection: The processor of the control unit 110 selects at least one frame of target image with effective fill light from the video using an image processing algorithm.
[0121] Image output: After selecting the target image, the processor will compress and encode it into a static image format (such as JPEG, PNG, etc.), and then send it to other terminal devices or directly store it in the memory for subsequent use.
[0122] In some embodiments, the length of time that the fill light unit 140 flashes toward the target area is called fill light duration, and the fill light duration at least covers the exposure duration of the imaging unit 130 to obtain a frame of image. When the control unit 110 selects at least one frame of target image with effective fill light from the video, it can be used to:
[0123] According to the fill light duration, at least one frame of target image with effective fill light is selected from the video.
[0124] In some embodiments, when the control unit 110 selects at least one frame of target image with effective fill light from the video according to the fill light duration, it can be used to:
[0125] At least one frame of fill light image with effective fill light is determined from the video within the range of the fill light duration, and at least one frame of target image is selected from the fill light image.
[0126] For example, when the fill light unit 140 fills light, the fill light duration is known. At the same time, the imaging unit 130 continuously captures the video of the target area that has been filled with light, and transmits the video data to the control unit 110 in real time for storage or in other memories connected thereto.
[0127] For example, the control unit 110 generates a flash control signal, which includes fill light intensity, fill light start time and fill light duration. The fill light start time is the moment when the fill light unit 140 receives the flash control signal. Then, the fill light start time and fill light duration are used to determine the range of the fill light duration (i.e., the time period covered by the fill light duration), and the control unit 110 determines at least one frame of fill light image with effective fill light from the stored video within the range of the fill light duration, wherein one or more frames of images corresponding to the range of the fill light duration (i.e., the time period covered by the fill light duration) in the stored video are determined as fill light images with fill light effect; and at least one frame of target image is selected from the fill light image. Since the fill light duration may cover the exposure time of one or more image frames, the control unit 110 needs to evaluate the fill light effect of each frame. If the fill light duration completely covers the exposure time of one or more image frames, these image frames are considered to have effective fill light. The control unit 110 can also use image processing algorithms to evaluate the grayscale value, brightness, contrast and other parameters of each fill-in-light image frame to determine which frames are most suitable as target images for evidence. After evaluating all fill-in-light images, the control unit 110 will select one or more frames with the best fill-in-light effect as target images. These images will be used in the subsequent traffic violation evidence collection process.
[0128] The fill light duration at least covers the exposure duration of the imaging unit 130 to obtain a frame of image.
[0129] like Figure 3 As shown, shooting a video can be understood as continuously acquiring multiple frames of images at a certain time interval. Among them, the exposure period t0 refers to the time length between the moment when one frame of image starts to be exposed and the moment when the next frame of image starts to be exposed when the imaging unit 130 (such as a camera) continuously acquires multiple frames of images at a certain time interval during the video shooting process. The exposure period t0 includes the exposure time t1 of the imaging unit 130 receiving light and performing photoelectric conversion, and the non-exposure time t2 occupied by operations such as data processing, storage and preparation for the next exposure after the exposure. The frame rate is an important parameter of the video, which indicates the number of frames of images acquired by the imaging unit 130 (such as a camera) per second. The reciprocal of the frame rate is the exposure period t0 of the video, and one frame of image needs to be acquired in each exposure period t0. For example, in a video with a frame rate of 30 frames per second, the video can be divided into multiple exposure periods of about 33ms in length in chronological order, and the imaging unit 130 acquires one frame of image in each exposure period.
[0130] The exposure time t1 refers to the time required for the imaging unit 130 to obtain one frame of image when shooting a video. It is the time length for the photosensitive element in the imaging unit 130 to actually receive light and convert it into an electrical signal during the video shooting process. The exposure time t1 is to be less than the exposure period t0 to ensure that a complete frame of image can be obtained in each exposure period t0.
[0131] The non-exposure time t2 refers to the remaining time length in an exposure cycle t0, excluding the exposure time t1. During this time, the imaging unit 130 does not receive light and capture images. In an exposure cycle t0, the sum of the exposure time t1 and the non-exposure time t2 is equal to the length of the entire exposure cycle t0, that is, the exposure cycle t0 = exposure time t1 + non-exposure time t2.
[0132] In order to ensure that the flash of the fill light unit 140 can effectively fill light for a certain frame of image captured by the imaging unit 130, the fill light duration t x The exposure time t1 of the frame image must be completely covered. From another perspective, the exposure time t1 of the frame image must completely fall within the fill light time t x This means that the flash must occur during the image exposure to ensure that the image is filled with enough light.
[0133] In some embodiments, the fill light duration t x , the exposure time t1 and non-exposure time t2 of a frame image satisfy: t x ≥2t1+t2.
[0134] like Figure 3 As shown, since the fill light unit 140 of the embodiment of the present application is not synchronized with the imaging unit 130, the fill light duration t x The time correspondence with the exposure time t1 cannot be determined accurately. x If the fill light duration is too short, invalid fill light may occur, that is, the fill light does not effectively fill light for any frame of the image. Invalid fill light can be divided into the following two situations: (1) Fill light duration t x The fill light is completely within the non-exposure time (i.e., non-exposure time) t2, and the fill light fails to fill light for any frame of the image; (2) the fill light time t x The exposure time t1 of a frame of image only partially overlaps, and the frame of image fails to obtain sufficient fill light, resulting in insufficient brightness of the frame of image.
[0135] Ineffective fill light not only wastes energy, but also results in failure to obtain frames with effective fill light and evidence collection. Therefore, the control unit 110 needs to consider all possible situations when designing the fill light duration to avoid the situation where the fill light occurs completely during the non-exposure duration or only partially overlaps with the exposure duration. In order to avoid invalid fill light, the fill light duration t needs to be extended. x , so that the fill light unit 140 fills light at any time, the fill light duration t x All of them can cover the exposure time t1 of at least one frame of image.
[0136] like Figure 4 As shown, the fill light duration t x is greater than or equal to the shortest time interval between two adjacent frames of images generated by the imaging unit 130. The shortest time interval between two adjacent frames of images generated by the imaging unit 130 can be understood as the time difference between the start exposure moment of the previous frame of image and the end exposure moment of the next frame of image in two adjacent frames of image, that is, the shortest time interval t0'=2×exposure time t1+non-exposure time t2. Specifically, the fill light time t x ≥2×exposure time t1+non-exposure time t2, or it can also be understood as fill light time t x ≥Exposure period t0+exposure duration t1.
[0137] In some embodiments, the fill light duration t x Greater than or equal to twice the exposure period t0.
[0138] For example, exposure time t1 is an adjustable parameter. Under different ambient brightness, the value of exposure time t1 will be different. If the fill light time t1 is calculated by the above formula x , then the fill light duration t x The lower limit of is not a fixed value and needs to be adjusted according to the change of exposure time t1, which makes the calculation inconvenient. During the operation of the device, the video frame rate setting is usually not changed frequently. The video frame rate can be regarded as a fixed value, and the exposure period t0 can be regarded as a fixed value. Therefore, the fill light time t x The fill light duration t can be determined based on a multiple (such as 2 times) of the exposure period t0. x , in order to reduce repeated calculations.
[0139] like Figure 5 As shown, when the fill light duration is t x ≥2×exposure period t0, the fill light unit 140 fills light at any time, and the fill light duration t x can completely cover the exposure time t1 of at least one frame of the image, thereby ensuring that at least one frame of the image is effectively filled with light. xIt can even cover the exposure time t1 of two adjacent frames of images to obtain two frames of images with effective fill light, providing more options for evidence collection.
[0140] In some embodiments, the control unit 110 may also be used to dynamically set the fill light duration according to the motion trajectory of the traffic participant in the traffic violation event and / or the frame rate of the imaging unit 130 .
[0141] For example, the control unit 110 has an intelligent adjustment function, which can dynamically adjust the fill light duration according to the actual movement trajectory (such as speed, direction change) of traffic participants (such as vehicles, pedestrians, etc.) in the traffic violation incident and the frame rate of the imaging unit 130 to ensure the best fill light effect. Even in high-speed or complex and changeable traffic scenes, clear and effective violation evidence images can be captured. Through real-time detection and adjustment, the control unit 110 can optimize the evidence collection process and improve the efficiency and accuracy of evidence collection. For example, in a high-speed moving scene, the fill light duration can be adjusted to match the exposure duration of the imaging unit 130 to obtain a clearer image.
[0142] For example, the control unit 110 can monitor the changes in ambient light in real time and dynamically adjust the fill light duration and intensity to ensure that the imaging unit 130 can obtain high-quality images under different light conditions. For example, in a low-light environment, the image quality can be improved by increasing the fill light duration, so as to better capture the details of the target area.
[0143] For example, the control unit 110 can identify whether the fill light unit 140 has frequent failures, delayed responses, and other problems by analyzing historical data of fill light duration. Such information can help maintain the equipment in a timely manner and avoid the expansion of failures.
[0144] In some embodiments, when the control unit 110 selects at least one frame of target image from the fill-light image, it can be configured to: select the target image from multiple frames of fill-light image according to the overall average grayscale value of each frame of fill-light image.
[0145] For example, the overall average grayscale value of each frame of the fill-light image is calculated, which reflects the overall brightness level of the image. Then, based on the size of these average grayscale values, one or more frames with higher grayscale values are selected from multiple frames of fill-light images as target images. Among them, images with higher grayscale values usually mean that better lighting effects are obtained during the fill-light process, which can more clearly show the details of traffic violations and improve the validity and credibility of evidence. Therefore, by comparing the overall average grayscale values of each frame of the fill-light image, the target image that is most suitable as evidence can be selected.
[0146] In some embodiments, when the control unit 110 selects at least one frame of target image with effective fill light from the video according to the grayscale value of each frame image in the video, it can be used to:
[0147] The average grayscale value of the entire image of each frame image in the video is calculated, and the frame with the highest average grayscale value is selected as the frame with effective fill light, and the frame with effective fill light is determined as the target image.
[0148] Among them, the grayscale value is related to the brightness of the image. The higher the grayscale value, the brighter the image. The frame without effective fill light is darker and has a lower grayscale value. The frame with effective fill light is brighter and has a higher grayscale value. Therefore, the frame with effective fill light can be selected by comparing the grayscale values of each frame image. The frame with the largest grayscale value is the frame with effective fill light. For example, when calculating the grayscale value, the average grayscale value of all pixels in the entire image can be calculated, or pixels in a specific area or position can be selected and their average grayscale value can be calculated.
[0149] For example, the control unit 110 first traverses each frame of the video, calculates the grayscale values of all pixels in each frame, and calculates the average of these grayscale values to obtain the average grayscale value of the frame. This method takes into account all pixels in the image and can fully reflect the brightness of the image.
[0150] For example, as an optional solution, the control unit 110 may also select a specific area in the image (such as the area where the target object is located) to calculate the average gray value. This method can focus more on the target object and reduce the influence of background or other irrelevant factors on the gray value judgment. The target object may be a traffic participant (such as a vehicle, pedestrian, etc.) in a traffic violation event.
[0151] For example, after calculating the average grayscale value of all frames, the control unit 110 compares the average grayscale values of each frame image to find the frame with the highest average grayscale value. This frame is considered to have the best fill light effect because it becomes the brightest under the fill light of the fill light unit 140.
[0152] After comparing the grayscale values, the control unit 110 determines the frame with the highest average grayscale value as the target image, and outputs or saves it for subsequent traffic violation evidence collection.
[0153] If there are multiple candidate frames whose average grayscale values are very close and all at a high level, it indicates that these candidate frames have obtained good brightness under the fill light condition. At this time, the control unit 110 will further analyze the image quality characteristics of these candidate frames, especially the clarity and contrast.
[0154] For example, clarity is an important indicator for measuring the degree of image detail retention, which reflects the sharpness of the image edge. The control unit 110 may use edge detection algorithms or high-frequency component analysis methods to evaluate the clarity of each frame of the image, and tend to select a frame with higher clarity as the target image.
[0155] For example, contrast reflects the degree of difference between the brightest and darkest parts of an image. An image with high contrast can show the outline and details of an object more clearly. The control unit 110 can evaluate the contrast of a candidate frame by analyzing the grayscale histogram of the image or calculating the local contrast, and select a frame with higher contrast as the basis for evidence collection.
[0156] After comprehensively considering factors such as clarity and contrast, the control unit 110 can select one or more frames with the best image quality from the candidate frames as the target image, ensuring the accuracy and reliability of traffic violation evidence collection.
[0157] In some embodiments, when selecting at least one frame of target image with effective fill light from the video, the control unit 110 may be configured to: select at least one frame of target image with effective fill light from the video according to the target moment;
[0158] The target time is the time when the control unit 110 receives the evidence collection control signal or sends the flash control signal.
[0159] In some embodiments, when the control unit 110 selects at least one frame of target image with effective fill light from the video according to the target moment, it can be used to:
[0160] A preset time period before and after the target moment is determined as a target time period, a frame with effective fill light is selected from image frames in the target time period in the video, and the frame with effective fill light is determined as the target image.
[0161] For example, during the operation of the device, the duration of the video captured by the imaging unit 130 may be very long, and thus the video includes many image frames. To obtain effective fill light frames from many image frames is undoubtedly a huge test for the performance of the processor in the control unit 110.
[0162] like Figure 6As shown, in order to reduce the requirements on processor performance and improve processing efficiency, in an embodiment of the present application, after the processor receives the evidence control signal sent by the detection unit 120, it first records the moment when it receives the evidence control signal as the target moment C, and determines a preset time period before and after the target moment as the target time period D, with the target moment C as the center, and then obtains multiple frames of images taken within the target time period D from the memory. The number of frame images contained in this target time period is much less than the total number of frames in the entire video, thereby greatly reducing the range of images that need to be processed. From the multiple frames of images taken within the target time period D, the frame that obtains effective fill light is selected as the target image, and the target image is output as a static picture. As a result, the processor only needs to process a small number of frames, which greatly improves the processing efficiency. As shown Figure 6 As shown, the frames in the target time period D are the nth frame to the n+7th frame, and the frame selected for effective fill light is the n+5th frame.
[0163] The length of the preset time period directly affects the reliability and efficiency of the target image selection. If the length of the preset time period is too short, the effective fill light frame may be outside the preset time period, resulting in the inability to obtain the effective fill light frame, affecting reliability; if the length of the preset time period is too long, the processor needs to process many frames and reduce efficiency. The length of the preset time period is the length of the target time period. When setting the preset time period, the following factors need to be considered:
[0164] Fill light response time of the fill light unit 140: There is a certain delay between the fill light unit 140 receiving the flash control signal and actually filling light. This delay time needs to be included in the preset time period to ensure that the frame covered by the fill light is included in the target time period D.
[0165] System processing capability and resource limitations: A longer preset time period means that more image frames need to be processed, which places higher requirements on the performance of the processor in the control unit 110. Therefore, when setting the preset time period, the overall processing capability and resource limitations of the system need to be considered to avoid system overload.
[0166] In some embodiments, when the control unit 110 selects at least one frame of target image with effective fill light from the video according to the target time C, it can be used to:
[0167] Determine a preset time period before and after the target time C as a target time period D, and use image frames in the target time period D in the video as candidate frames;
[0168] A frame with the highest grayscale value is selected from the candidate frames as a frame with effective fill light, and the frame with effective fill light is determined as the target image.
[0169] For example, when the control unit 110 receives the forensic control signal from the detection unit 120, it will first record this moment as the target moment C. In other embodiments, the moment when the control unit 110 sends a flash control signal can also be used as the target moment C. Subsequently, the control unit 110 will determine a target time period D based on the length of the preset time period, with the target moment C as the center, and expand forward and backward for a period of time. All image frames within the target time period D are regarded as candidate frames because they may be exposed during the fill light period of the fill light unit 140. After determining the candidate frames, the control unit 110 will further screen these frames to remove those frames that obviously do not meet the requirements. This step may include checking the integrity and clarity of the image. In the embodiment of the present application, the focus is mainly on screening based on grayscale values.
[0170] The target image is selected from the candidate frames based on the grayscale value, which is an important indicator for measuring image brightness. The higher the grayscale value, the brighter the image. Under the fill light effect of the fill light unit 140, the frame with effective fill light is often brighter, so its grayscale value is relatively high.
[0171] For example, the control unit 110 calculates the grayscale values of all candidate frames, which usually involves traversing each pixel in the frame, obtaining its grayscale value, and calculating statistics such as the average grayscale value or median grayscale value of the entire frame. Then, the control unit 110 compares the grayscale values of all candidate frames and selects the frame with the highest grayscale value as the target image.
[0172] In some embodiments, the control unit 110 is further used to determine the length of the target time period D according to a signal transmission delay between the control unit 110 and the imaging unit 130 , and / or a signal transmission delay between the control unit 110 and the fill light unit 140 .
[0173] The duration of the target period D may be set according to the delay of signal transmission between the control unit 110 and the imaging unit 130 and between the fill light units 140 to ensure that image frames with effective fill light can be accurately captured.
[0174] For example, when the control unit 110 is connected to the imaging unit 130 and the fill light unit 140 via a wired connection, since the wired connection usually has a lower signal transmission delay, the control unit 110 can shorten the duration of the target time period D accordingly to reduce the number of image frames to be processed, thereby improving processing efficiency and response speed.
[0175] For example, when the control unit 110 is connected to the imaging unit 130 and the fill light unit 140 by wireless means, the signal transmission delay may increase significantly. In order to ensure that the imaging unit 130 can capture frames of effective fill light during the fill light period of the fill light unit 140, the control unit 110 needs to increase the duration of the target time period D, so that even if there is a large delay, it can be ensured that at least one frame of effective fill light is within the target time period D.
[0176] In addition, the time relationship between the target time period D and the target moment C can also be flexibly set according to the signal transmission delay. Usually, the target time period D will be centered on the target moment C and extend forward and backward for a period of time. However, in some cases, if the control unit 110 can accurately obtain the exact delay time between the control unit 110 sending the video control signal to the imaging unit 130 actually starting to take pictures or the fill light unit 140 actually filling light, it can adjust the start and end points of the target time period D according to these delay times to ensure that the target time period D completely covers the time range that may contain valid exposure frames.
[0177] In some embodiments, when the control unit 110 selects at least one frame of target image with effective fill light from the video, it can be used to: select at least one frame of target image with effective fill light from the video based on the motion trajectory and posture information of the traffic participants in the traffic violation event.
[0178] For example, when the control unit 110 selects a target image with effective fill light from the video, it will further use the motion trajectory and posture information of the traffic participants in the traffic violation event. By analyzing the dynamic behavior of these objects, the control unit can more accurately locate those frames that not only obtain effective fill light but also clearly show the traffic violation. This can not only improve the accuracy of evidence collection, but also ensure that the selected image can fully reflect the actual situation of the traffic violation event.
[0179] In some embodiments, when the control unit 110 selects at least one frame of a target image with effective fill light from the video, it can be used to: obtain a brightness histogram of each frame image in the video, select the frame with the highest brightness value in the brightness histogram as the frame with effective fill light, and determine the frame with effective fill light as the target image.
[0180] For example, when the control unit 110 selects a target image with effective fill light from a video, it will use a method of analyzing the brightness histogram. It first calculates the brightness histogram of each frame in the video, which reflects the distribution of different brightness values in the image. Then, the control unit compares the brightness peaks of the brightness histograms of each frame and selects the frame with the highest brightness value as the frame with effective fill light, because the overall brightness of this frame is significantly improved under the effect of fill light. Finally, this frame is determined as the target image for subsequent traffic violation evidence collection.
[0181] The traffic violation evidence collection device 100 provided in the embodiment of the present application is as follows: Figure 2 As shown, it includes a control unit 110, a detection unit 120, an imaging unit 130 and a fill light unit 140, and the detection unit 120, the imaging unit 130 and the fill light unit 140 are respectively connected to the control unit 110. The imaging unit 130 is used to continuously obtain video of the target area; the detection unit 120 is used to detect whether there is a traffic violation event in the target area; the control unit 110 is used to perform the following steps when the detection unit 120 detects that there is a traffic violation event in the target area: A. Control the fill light unit 140 to flash at the target area; B. Select at least one frame of the target image with effective fill light from the video, and the target image is used as evidence of the traffic violation event. The embodiment of the present application integrates the control unit 110, the detection unit 120, the imaging unit 130 and the fill light unit 140, thereby avoiding the complex configuration of the camera and the video camera required at the same time in the traditional solution, thereby achieving a lower cost and simpler device structure; when a traffic violation is detected, the intelligent control of the fill light unit 140 ensures that the device can provide sufficient fill light for the target area while continuously shooting the video of the target area, thereby improving the clarity and contrast of the image, so that the device can effectively obtain clear traffic violation evidence images under various lighting conditions. In addition, after the traffic violation is detected, the frame with effective fill light is immediately selected from the video as the target image, which not only reduces the strict requirements for the timing of taking pictures, but also improves the flexibility and success rate of taking pictures.
[0182] Each unit or module in the above-mentioned traffic violation evidence collection device can be implemented in whole or in part by software, hardware, or a combination thereof. Each unit or module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the corresponding operations of each unit or module.
[0183] The traffic violation evidence collection device 100 may be integrated into a terminal or server that has a storage device and a processor and has computing capabilities, or the traffic violation evidence collection device 100 is the terminal or server.
[0184] See also Figure 7 , Figure 7 A flow chart of a method for collecting evidence of traffic violations provided in an embodiment of the present application. The method can be applied to Figure 2 The traffic violation evidence collection device 100 shown in the figure includes a control unit 110, a detection unit 120, an imaging unit 130 and a fill light unit 140. The detection unit 120, the imaging unit 130 and the fill light unit 140 are respectively connected to the control unit 110. The method may include the following steps 210 to 220:
[0185] In step 210 , the control unit 110 controls the imaging unit 130 to continuously acquire video of the target area.
[0186] Step 220: When the detection unit 120 detects that there is a traffic violation in the target area, the control unit 110 performs the following steps:
[0187] A. controlling the fill light unit 140 to flash toward the target area;
[0188] B. Selecting at least one frame of a target image with effective fill light from the video, wherein the target image is used as evidence of the traffic violation.
[0189] In some embodiments, the method further includes: when the detection unit 120 detects that at least one traffic participant has performed at least one traffic violation in the target area, determining that the detection unit 120 has detected a traffic violation event in the target area.
[0190] In some embodiments, the method also includes: when the detection unit 120 detects that there is a traffic violation in the target area, the control unit 110 sends a flash control signal to the fill light unit 140, and controls the fill light unit 140 to flash toward the target area according to the flash control signal, and selects at least one frame of target image with effective fill light from the video.
[0191] In some embodiments, the imaging unit 130 includes a lens module, the control unit 110 includes a processor and a memory, and the lens module and the processor are respectively connected to the memory;
[0192] The control unit 110 controls the imaging unit 130 to continuously acquire video of the target area, including:
[0193] The control unit 110 sends a video control signal to the lens module of the imaging unit 130 to control the lens module to continuously acquire a video of a target area according to the video control signal, and sends the video to the memory of the control unit 110 for storage;
[0194] The control unit 110 selects at least one frame of target image with effective fill light from the video, including:
[0195] The processor in the control unit 110 selects at least one frame of target image with effective fill light from the video stored in the memory in response to the evidence collection control signal.
[0196] In some embodiments, the time that the fill light unit 140 flashes to the target area is called the fill light duration, and the fill light duration at least covers the exposure time of the imaging unit to obtain a frame of image, and the control unit 110 selects at least one frame of target image with effective fill light from the video, including: the control unit 110 selects at least one frame of target image with effective fill light from the video according to the fill light duration.
[0197] In some embodiments, the control unit 110 selects at least one frame of target image with effective fill light from the video according to the fill light duration, including: the control unit 110 determines at least one frame of fill light image with effective fill light from the video within the range of the fill light duration, and selects at least one frame of target image from the fill light image.
[0198] In some embodiments, the fill light duration t x , the exposure time t1 and non-exposure time t2 of a frame image satisfy: t x ≥2t1+t2.
[0199] In some embodiments, the method further includes: the control unit 110 dynamically sets the fill light duration according to the motion trajectory of the traffic participant object in the traffic violation event and / or the frame rate of the imaging unit.
[0200] In some embodiments, selecting at least one frame of target image from the fill-light image includes: selecting the target image from multiple frames of fill-light image according to an overall average grayscale value of each frame of fill-light image.
[0201] In some embodiments, the control unit 110 selects a target image with at least one frame having effective fill light from the video, including: the control unit 110 calculates the average grayscale value of the entire image of each frame image in the video, selects the frame with the highest average grayscale value as the frame having effective fill light, and determines the frame having effective fill light as the target image.
[0202] In some embodiments, the method further includes: when the detection unit 120 detects that there is a traffic violation in the target area, sending a forensics control signal to the control unit 110;
[0203] When receiving the evidence control signal, the control unit 110 sends a flash control signal to the fill light unit 140 to control the fill light unit 140 to flash toward the target area, and selects at least one frame of target image with effective fill light from the video captured by the imaging unit 130.
[0204] In some embodiments, the control unit 110 selects at least one frame of target image with effective fill light from the video, including: the control unit 110 selects at least one frame of target image with effective fill light from the video according to the target moment C; wherein the target moment C is the moment when the control unit 110 receives the evidence control signal or sends the flash control signal.
[0205] In some embodiments, the control unit 110 selects at least one frame of target image with effective fill light from the video according to the target moment C, including: the control unit 110 determines a preset time period before and after the target moment as a target time period D, selects a frame with effective fill light from the image frames within the target time period D in the video, and determines the frame with effective fill light as the target image.
[0206] In some embodiments, the control unit 110 selects at least one frame of target image with effective fill light from the video according to the target moment, including: the control unit 110 determines a preset time period before and after the target moment as the target time period, and uses the image frames within the target time period in the video as candidate frames; the control unit 110 selects the frame with the highest grayscale value from the candidate frames as the frame with effective fill light, and determines the frame with effective fill light as the target image.
[0207] In some embodiments, the method further includes: the control unit 110 determines the length of the target time period D according to a signal transmission delay between the control unit 110 and the imaging unit 130 , and / or a signal transmission delay between the control unit 110 and the fill light unit 140 .
[0208] In some embodiments, the method further includes: the control unit 110 determines the length of the target time period according to the motion trajectory of the traffic participant in the traffic violation event and / or the frame rate of the imaging unit 130 .
[0209] In some embodiments, the control unit 110 controls the fill light unit 140 to flash toward the target area, including: the control unit 110 controls the fill light unit 140 to flash toward the target area in response to the evidence collection control signal;
[0210] The control unit 110 selects at least one frame of target image with effective fill light from the video, including: the control unit 110 selects at least one frame of target image with effective fill light from the video in response to the evidence collection control signal.
[0211] In some embodiments, the control unit 110 selects at least one frame of target image with effective fill light from the video, including: the control unit 110 selects at least one frame of target image with effective fill light from the video based on the motion trajectory and posture information of the traffic participants in the traffic violation event.
[0212] In some embodiments, the control unit 110 selects at least one frame of a target image with effective fill light from the video, including: the control unit 110 obtains a brightness histogram of each frame image in the video, selects the frame with the highest brightness value in the brightness histogram as the frame with effective fill light, and determines the frame with effective fill light as the target image.
[0213] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the method described above can refer to the specific implementation method in the aforementioned traffic violation evidence collection equipment embodiment, and will not be repeated here.
[0214] All of the above technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described in detail here.
[0215] The traffic violation evidence collection method provided in the embodiment of the present application is applied to a traffic violation evidence collection device 100, which includes a control unit 110, a detection unit 120, an imaging unit 130 and a fill light unit 140. The detection unit 120, the imaging unit 130 and the fill light unit 140 are respectively connected to the control unit 110, and the control unit 110 controls the imaging unit 130 to continuously obtain video of the target area; when the detection unit 120 detects that there is a traffic violation in the target area, the control unit 110 performs the following steps: A. Control the fill light unit 140 to flash toward the target area; B. Select at least one frame of a target image with effective fill light from the video, and the target image is used as evidence of the traffic violation. The embodiment of the present application integrates the control unit 110, the detection unit 120, the imaging unit 130 and the fill light unit 140, thereby avoiding the complex configuration of the camera and the video camera in the traditional solution, thereby achieving a lower cost and simpler device structure; when a traffic violation is detected, the intelligent control of the fill light unit ensures that the device can provide sufficient fill light for the target area while continuously shooting the video of the target area, thereby improving the clarity and contrast of the image, so that the device can effectively obtain clear traffic violation evidence images under various lighting conditions. In addition, after the traffic violation is detected, the frame with effective fill light is immediately selected from the video as the target image, which not only reduces the strict requirements for the timing of taking pictures, but also improves the flexibility and success rate of taking pictures.
[0216] In some embodiments, the present application further provides a computer-readable storage medium for storing a computer program. The computer-readable storage medium can be applied to a computer device, and the computer program enables the computer device to execute the corresponding processes in the above-mentioned methods in the embodiments of the present application, which will not be described here for the sake of brevity.
[0217] In some embodiments, the present application further provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the corresponding processes in the above-mentioned methods in the embodiments of the present application, which will not be described here for the sake of brevity.
[0218] The present application also provides a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the corresponding processes in the above-mentioned methods in the embodiments of the present application, which will not be described here for the sake of brevity.
[0219] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for collecting evidence of traffic violations, characterized in that: Applied to a traffic violation evidence collection device (100), the traffic violation evidence collection device (100) comprising a control unit (110), a detection unit (120), an imaging unit (130) and a fill light unit (140), the detection unit (120), the imaging unit (130) and the fill light unit (140) being connected to the control unit (110) respectively, the method comprising: The control unit (110) controls the imaging unit (130) to continuously acquire video footage of the target area; When the detection unit (120) detects that a traffic violation event exists in the target area, the control unit (110) performs the following steps: A. controlling the fill light unit (140) to flash toward the target area; B. Selecting at least one frame of a target image with effective fill light from the video, wherein the target image is used as evidence of the traffic violation.
2. The method for collecting evidence of traffic violations as claimed in claim 1, characterized in that: The length of time that the fill light unit (140) flashes light to the target area is called fill light duration, and the fill light duration at least covers the exposure duration of the imaging unit (130) to obtain a frame of image, wherein the exposure duration refers to the length of time required for the imaging unit (130) to obtain a frame of image; the control unit (110) selects at least one frame of target image with effective fill light from the video, including: The control unit (110) selects at least one frame of target image with effective fill light from the video according to the fill light duration.
3. The method for collecting evidence of traffic violations as claimed in claim 2, characterized in that: The control unit (110) selects at least one frame of target image with effective fill light from the video according to the fill light duration, including: The control unit (110) determines at least one frame of fill light image with effective fill light from the video within the fill light duration, and selects at least one frame of target image from the fill light image.
4. The method for collecting evidence of traffic violations as claimed in claim 3, characterized in that: The selecting at least one frame of target image from the fill light image comprises: A target image is selected from multiple frames of fill-light images according to the overall average grayscale value of each frame of fill-light image.
5. The method for collecting evidence of traffic violations as described in any one of claims 2 to 4, characterized in that: The fill light duration t x , the exposure time t1 and the non-exposure time t2 satisfy: t x ≥2t1+t2; The non-exposure time length t2 refers to the remaining time length in an exposure cycle t0 excluding the exposure time length t1.
6. The method for collecting evidence of traffic violations as claimed in claim 1, characterized in that: The method further comprises: When the detection unit (120) detects that a traffic violation event exists in the target area, a forensic control signal is sent to the control unit (110); When receiving the evidence collection control signal, the control unit (110) sends a flash control signal to the fill light unit (140) to control the fill light unit (140) to flash toward the target area, and selects at least one frame of target image with effective fill light from the video captured by the imaging unit (130).
7. The method for collecting evidence of traffic violations as claimed in claim 6, characterized in that: The control unit selects at least one frame of target image with effective fill light from the video, including: The control unit (110) selects at least one frame of target image with effective fill light from the video according to the target time; The target time is the time when the control unit (110) receives the evidence collection control signal or sends the flash control signal.
8. The method for collecting evidence of traffic violations as claimed in claim 7, characterized in that: The control unit (110) selects at least one frame of target image with effective fill light from the video according to the target time, including: The control unit (110) determines a preset time period before and after the target moment as a target time period, selects frames with effective fill light from image frames within the target time period in the video, and determines the frames with effective fill light as the target image.
9. The method for collecting evidence of traffic violations as claimed in claim 7, characterized in that: The control unit (110) selects at least one frame of target image with effective fill light from the video according to the target time, including: The control unit (110) determines a preset time period before and after the target moment as a target time period, and uses image frames in the target time period in the video as candidate frames; The control unit (110) selects a frame with the highest grayscale value from the candidate frames as a frame with effective fill light, and determines the frame with effective fill light as the target image.
10. The method for collecting evidence of traffic violations as claimed in claim 8, characterized in that: The method further comprises: The control unit (110) determines the length of the target time period according to a signal transmission delay between the control unit (110) and the imaging unit (130), and / or a signal transmission delay between the control unit (110) and the fill light unit (140).
11. The method for collecting evidence of traffic violations as claimed in claim 1, characterized in that: The control unit (110) selects at least one frame of target image with effective fill light from the video, including: The control unit (110) calculates the average grayscale value of the entire image of each frame image in the video, selects the frame with the highest average grayscale value as a frame with effective fill light, and determines the frame with effective fill light as the target image.
12. The method for collecting evidence of traffic violations according to any one of claims 1-4 and 6-11, characterized in that: The imaging unit (130) comprises a lens module, the control unit (110) comprises a processor and a memory, and the lens module and the processor are respectively connected to the memory; The control unit (110) controls the imaging unit (130) to continuously acquire video of the target area, including: The control unit (110) sends a video recording control signal to the lens module of the imaging unit (130) to control the lens module to continuously acquire a video recording of a target area according to the video recording control signal, and sends the video recording to the memory of the control unit (110) for storage; The control unit (110) selects at least one frame of target image with effective fill light from the video, including: The processor in the control unit (110) selects at least one frame of target image with effective fill light from the video stored in the memory in response to the evidence control signal.
13. The method for collecting evidence of traffic violations according to any one of claims 1, 6 to 11, characterized in that: Fill light duration t x , exposure time t1 and non-exposure time t2, satisfying: t x ≥2t1+t2; The exposure time t1 refers to the length of time required for the imaging unit (130) to acquire a frame of image; The non-exposure time t2 refers to the remaining time length in an exposure cycle t0 excluding the exposure time t1; Among them, the fill light duration t x It refers to the length of time that the fill light unit (140) flashes toward the target area.
14. A traffic violation evidence collection device (100), characterized in that: The device comprises a control unit (110), a detection unit (120), an imaging unit (130) and a fill light unit (140), wherein the detection unit (120), the imaging unit (130) and the fill light unit (140) are respectively connected to the control unit (110), wherein: The control unit (110) is used to control the imaging unit (130) to continuously acquire video footage of the target area; The detection unit (120) is used to detect whether there is a traffic violation incident in the target area; The control unit (110) is configured to execute the following steps when the detection unit (120) detects that a traffic violation event exists in the target area: A. controlling the fill light unit (140) to flash toward the target area; B. Selecting at least one frame of a target image with effective fill light from the video, wherein the target image is used as evidence of the traffic violation.
Citation Information
Cited By
Traffic incident illegal behavior early warning system based on AI and multi-source data fusion
CN120032522A
