Snapshot record generation method, device, electronic device, storage medium and system
By using a combination of a forward camera and a back-facing camera in the non-motor vehicle red light capture system, and combining the capture time and area information, a complete capture record is generated, which solves the problem of unclear non-motor vehicle red light records in the existing technology. Improved behavior recognition accuracy and data support.
Patent Information
- Application Number
- CN202410853471.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-27
AI Technical Summary
The existing capture system for non-motorized vehicles running red lights has unclear capture records due to small or blocked targets, making it difficult to effectively identify non-motorized vehicles running red lights.
Using a combination solution of forward-facing cameras and back-facing cameras, by dividing the corresponding actual physical positions in the same capture scene, the captured images of the back-facing cameras and forward-facing cameras are obtained, and a complete capture record is generated by combining the capture time and area information.
It improves the completeness of the capture record, provides more effective data support for the processing of target behaviors, and ensures the accurate identification of non-motor vehicles running red lights.
Smart Images

Figure CN118413751B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent transportation, and in particular to a method, device, electronic device, storage medium and system for generating snapshot records. Background Art
[0002] In recent years, non-motor vehicles, especially electric bicycles, have become the preferred means of transportation for more and more people in work and life due to their economy and lightness.
[0003] The existing non-motor vehicle red light running capture system is only capable of processing single cameras, and can only capture three photos of the non-motor vehicle running a red light from the back. Although it can record the driving of the non-motor vehicle, the capture records are easily unclear because the non-motor vehicle is small, or there is obstruction due to the installation of umbrella sheds, or the license plate is severely damaged. Summary of the invention
[0004] In view of this, the present application provides a method, device, electronic device, storage medium and system for generating snapshot records.
[0005] Specifically, the present application is implemented through the following technical solutions:
[0006] According to a first aspect of an embodiment of the present application, a method for generating a snapshot record is provided, which is applied to a target behavior snapshot system. In the same snapshot scene, the actual physical position corresponding to the first designated snapshot position of the forward camera and the second designated snapshot position of the rear camera is consistent. The method includes:
[0007] For any snapshot scene, when it is determined that the designated object has the target behavior according to the snapshot image of the back-facing camera, a second snapshot image of the designated object at a second designated snapshot position by the back-facing camera is obtained;
[0008] According to the capture time and the area where the captured object is located in the captured image, a first captured image of the forward camera for the designated object is determined from the first captured image of the forward camera at the first designated captured position; wherein the first designated captured position of the forward camera is divided into a plurality of first areas, and the second designated captured position of the backward camera is divided into a plurality of second areas, and the first areas correspond to the second areas one by one;
[0009] A snapshot record for the designated object is generated based on the snapshot image of the designated object taken by the back-facing camera and the first snapshot image of the designated object taken by the front-facing camera.
[0010] According to a second aspect of an embodiment of the present application, a snapshot record generation device is provided, which is deployed in a target behavior snapshot system. In the same snapshot scene, the actual physical position corresponding to the first designated snapshot position of the forward camera and the second designated snapshot position of the rear camera is consistent. The device includes:
[0011] An acquisition unit is used for acquiring, for any snapshot scene, a second snapshot image of the designated object at a second designated snapshot position by the back-facing camera when it is determined that the designated object has a target behavior according to the snapshot image of the back-facing camera;
[0012] A determination unit is used to determine, based on the capture time and the area where the captured object is located in the captured image, a first captured image of the forward camera for the designated object from the first captured image of the forward camera at the first designated captured position; wherein the first designated captured position of the forward camera is divided into a plurality of first areas, and the second designated captured position of the rear camera is divided into a plurality of second areas, and the first areas correspond to the second areas one by one;
[0013] The generating unit is used to generate a snapshot record for the designated object according to the snapshot image of the designated object captured by the back-facing camera and the first snapshot image of the designated object captured by the front-facing camera.
[0014] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is used to execute the machine-executable instructions to implement the method provided in the first aspect.
[0015] According to a fourth aspect of an embodiment of the present application, a machine-readable storage medium is provided, wherein the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by a processor, the method provided in the first aspect is implemented.
[0016] According to a fifth aspect of an embodiment of the present application, a capture system is provided, comprising a front camera and a rear camera, wherein when the front camera and the rear camera are calibrated, an overlapping area exists between the capture field of view of the front camera and the capture field of view of the rear camera;
[0017] The first designated position in the capture field of view of the forward camera is divided into a plurality of first predetermined areas according to a preset area division strategy, and the plurality of first predetermined areas are numbered according to a first area numbering strategy;
[0018] The second designated position in the capture field of view of the back-facing camera is divided into a plurality of second predetermined areas according to the preset area division strategy, and the plurality of second predetermined areas are numbered according to the second area numbering strategy; the second designated position and the first designated position correspond to the same position in the actual capture scene;
[0019] When the moving target passes through the first designated position, the forward camera captures the moving target to obtain a forward captured image; the forward captured image is used to extract features of the moving target to obtain corresponding first target features, and is used to identify the first predetermined area where the moving target is located to obtain a corresponding first area number;
[0020] When the moving target passes through the second designated position, the back-facing camera captures the moving target to obtain a back-facing captured image; the back-facing captured image is used to extract features of the moving target to obtain corresponding second target features, and is used to identify the second specific area where the moving target is located to obtain a corresponding second area number;
[0021] Among them, the forward captured images and the rear captured images with consistent capture time, matching corresponding first target features and corresponding second target features, and matching corresponding first area numbers and corresponding second area numbers are used to construct an atlas of forward captured images and rear captured images of the same moving target.
[0022] The technical solution provided by this application can at least bring the following beneficial effects:
[0023] In the target behavior capture system, in the same capture scene, the actual physical position corresponding to the first designated capture position of the forward camera and the second designated capture position of the backward camera is consistent. Based on the target behavior capture system, for any capture scene, when it is determined that the designated object has the target behavior based on the capture image of the backward camera, the second capture image of the designated object at the second designated capture position of the backward camera is obtained, and based on the capture time and the area where the captured object is located in the capture image, the first capture image of the designated object by the forward camera at the first designated capture position is determined, and then, based on the capture image of the designated object by the backward camera and the first capture image of the designated object by the forward camera, a capture record for the designated object is generated. Since the capture record includes the capture image of the designated object by the backward camera and the capture image of the designated object by the forward camera, the completeness of the capture record is improved, and more effective data support is provided for the processing of the target behavior. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a flowchart of a method for generating a snapshot record shown in an exemplary embodiment of the present application;
[0025] Figure 2 It is a schematic diagram of the architecture of a non-motor vehicle red light running capture system shown in an exemplary embodiment of the present application;
[0026] Figure 3is a schematic diagram of setting up a forward-facing camera and a rear-facing camera shown in an exemplary embodiment of the present application;
[0027] Figure 4 It is a structural schematic diagram of a snapshot record generating device shown in an exemplary embodiment of the present application;
[0028] Figure 5 It is a schematic diagram of the hardware structure of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0029] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0030] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0031] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application and to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.
[0032] It should be noted that the serial numbers of the steps in the embodiments of the present application do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0033] See also Figure 1 , is a flow chart of a method for generating a snapshot record provided in an embodiment of the present application, wherein the method can be applied to a target behavior snapshot system, such as a red light running snapshot system, in which, in the same snapshot scene, the actual physical position corresponding to the first designated snapshot position of the forward camera and the second designated snapshot position of the rear camera is consistent, such as Figure 1 As shown, the method for generating a snapshot record may include the following steps:
[0034] Step S100: for any snapshot scene, when it is determined that a designated object has a target behavior based on the snapshot image of the back-facing camera, a second snapshot image of the designated object at a second designated snapshot position is obtained by the back-facing camera.
[0035] In the embodiment of the present application, in order to improve the completeness of the captured records, in the scenario of capturing the target behavior, a back-facing camera and a front-facing camera can be set separately.
[0036] For example, the direction facing away from the camera may be consistent with the normal moving direction of the captured object, and may be used to capture the captured object and monitor the target behavior;
[0037] The orientation of the forward-facing camera may be opposite to that of the rear-facing camera, and may be used to capture the front view of a person associated with the target behavior, such as a face.
[0038] In order to more accurately determine the captured images of the back-facing camera and the front-facing camera for the same captured object, for the same captured scene, when setting up the front-facing camera and the back-facing camera, the actual physical positions corresponding to a captured position of the front-facing camera (when the captured object passes through this captured position, it will trigger the front-facing camera to capture the captured object, referred to as the first designated captured position in this article) and a captured position of the back-facing camera (when the captured object passes through this captured position, it will trigger the back-facing camera to capture the captured object, referred to as the second designated captured position in this article) can be made consistent.
[0039] It should be noted that the consistency between the actual physical positions corresponding to the first designated capture position and the second designated capture position may include that the actual physical position corresponding to the first designated capture position is the same as the actual physical position corresponding to the second designated capture position, or that there is a tolerable position error between the actual physical position corresponding to the first designated capture position and the actual physical position corresponding to the second designated capture position.
[0040] Exemplarily, the above-mentioned capture position (such as the first designated capture position or the second designated capture position, etc.) may be a position set in the camera screen that triggers the camera to capture.
[0041] In the embodiment of the present application, for any snapshot scene, it can be determined whether the target behavior occurs based on the snapshot image facing away from the camera.
[0042] When it is determined that any object (referred to as a designated object) has a target behavior based on the captured image of the back-facing camera, a captured image of the designated object captured by the back-facing camera at a second designated position (referred to as a second captured image) may be obtained.
[0043] Exemplarily, the second captured image may be one of the captured images used to determine whether a designated object has a target behavior.
[0044] For example, taking the target behavior as running a red light and the captured object as a non-motor vehicle, for a non-motor vehicle running a red light, the back-facing camera usually needs to capture the designated object at three different capturing positions respectively, and when the current traffic light in the direction of the designated object is in a red light state, it is determined that the non-motor vehicle has run a red light. The above-mentioned second designated capturing position may be one of the three different capturing positions, and the above-mentioned second captured image may be a captured image obtained by the back-facing camera capturing the designated object at the capturing position.
[0045] Step S110, based on the capture time and the area where the captured object is located in the captured image, determine the first captured image of the forward camera for the designated object from the first captured image of the forward camera at the first designated capture position; wherein the first designated capture position of the forward camera is divided into multiple first areas, and the second designated capture position of the rear camera is divided into multiple second areas, and the first areas correspond to the second areas one by one.
[0046] In the embodiment of the present application, considering that in the same capture scene, the actual physical positions corresponding to the first designated capture position of the front-facing camera and the second designated capture position of the rear-facing camera are consistent, therefore, for the same object, when the object appears in the second designated capture position of the rear-facing camera, it will also appear in the first designated capture position of the front-facing camera, and at this time, the area where the object is located in the picture of the rear-facing camera corresponds to the same physical area as the area where the object is located in the front-facing camera.
[0047] Therefore, for the same captured object, the capturing time of the second captured image of the object taken by the back-facing camera should be consistent with the capturing time of the third captured image of the object taken by the front-facing camera, and the area where the captured object is located in the second captured image taken by the back-facing camera should correspond to the area where the captured object is located in the first captured image taken by the front-facing camera.
[0048] It should be noted that the consistency of the capture time may include the same capture time, or there is a tolerable time error between the capture times (the processing time of different cameras may be different).
[0049] Accordingly, the first captured image of the forward camera for the designated object can be determined from the first captured image of the forward camera at the first designated captured position according to the capturing time and the area where the captured object is located in the captured image.
[0050] Exemplarily, the specific implementation of the area division of the first designated capture position of the forward-facing camera and the area division of the second designated capture position of the rear-facing camera can be explained in conjunction with specific examples below, and the embodiments of the present application will not go into details.
[0051] Step S120: Generate a snapshot record for the designated object based on the snapshot image of the designated object captured by the back-facing camera and the first snapshot image of the designated object captured by the front-facing camera.
[0052] In an embodiment of the present application, when the first snapshot image of the designated object by the forward-facing camera is determined in the above manner, a snapshot record of the designated object can be generated based on the snapshot image of the designated object by the rear-facing camera and the first snapshot image of the designated object by the forward-facing camera.
[0053] Exemplarily, the image captured by the back-facing camera of the designated object may include but is not limited to a second image captured by the back-facing camera of the designated object.
[0054] For example, taking the capture of red light running as an example, the captured image of the designated object by the back-facing camera may include a second captured image of the designated object by the back-facing camera, and at least one other captured image of the designated object (the captured object is in different positions in different captured images).
[0055] It can be seen that in Figure 1 In the method flow shown, in the target behavior capture system, in the same capture scene, the actual physical position corresponding to the first designated capture position of the forward camera and the second designated capture position of the backward camera is consistent. Based on the target behavior capture system, for any capture scene, when it is determined that the designated object has the target behavior based on the capture image of the backward camera, the second capture image of the designated object at the second designated capture position of the backward camera is obtained, and based on the capture time and the area where the captured object is located in the capture image, the first capture image of the designated object by the forward camera at the first designated capture position is determined, and then, based on the capture image of the designated object by the backward camera and the first capture image of the designated object by the forward camera, a capture record for the designated object is generated. Since the capture record includes the capture image of the designated object by the backward camera and the capture image of the designated object by the forward camera, the completeness of the capture record is improved, and more effective data support is provided for the processing of the target behavior.
[0056] In some embodiments, the above-mentioned determining, based on the capture time and the area where the captured object is located in the captured image, from the first captured image of the forward camera at the first designated capture position, the first captured image of the forward camera for the designated object may include:
[0057] Determine, according to the capture time of the second captured image, a target first captured image whose capture time differs from the capture time of the second captured image within a preset time threshold;
[0058] For any first captured image of a target, determining a first area where a captured object is located in the first captured image of the target;
[0059] When the second area where the designated object is located in the second captured image matches the first area where the captured object is located in the target first captured image, the target first captured image is determined to be the first captured image of the designated object by the forward camera.
[0060] Exemplarily, it is considered that the capture time of the first captured image and the second captured image of the same captured object is usually similar.
[0061] Therefore, when determining that a specified object has target behavior based on a captured image facing away from the camera, a first captured image (which can be called the target first captured image) whose capture time is within a preset time threshold (which can be set according to the actual scenario, such as 1s) of the capture time of the second captured image can be determined.
[0062] In addition, considering that for the first captured image and the second captured image of the same captured object, the area where the captured object is located in the first captured image and the area where the captured object is located in the second captured image should match (correspond to the same actual physical area).
[0063] Therefore, for any first captured image of a target, the first area where the captured object is located in the first captured image of the target can be determined, and it can be determined whether the second area where the specified object is located in the second captured image matches the first area where the captured object is located in the first captured image of the target.
[0064] When the second area where the designated object is located in the second captured image matches the first area where the captured object is located in the target first captured image, it can be determined that the target first captured image is the first captured image of the designated object by the forward camera.
[0065] Exemplarily, when the second area where the designated object is located in the second captured image does not match the first area where the designated object is located in the first captured image of the target, the first captured images of other targets can continue to be judged until all the first captured images are judged. If the first captured image of the designated object taken by the forward camera is still not determined, exception handling can be performed according to a preset strategy, such as generating an exception record for processing by relevant personnel.
[0066] In some embodiments, the above-mentioned determining, based on the capture time and the area where the captured object is located in the captured image, from the first captured image of the forward camera at the first designated capture position, the first captured image of the forward camera for the designated object may include:
[0067] According to the capture time, the area where the captured object is located in the captured image, and the specified features of the captured object, a first captured image of the forward camera for the specified object is determined from the first captured image of the forward camera at the first specified capture position.
[0068] Exemplarily, in order to more accurately determine the first captured image and the second captured image for the same captured object, matching of designated features of the captured object may be introduced during the process of performing the captured image query.
[0069] Exemplarily, the specified features of the captured object may include appearance features of the captured object, which may be obtained by performing feature extraction on the captured image.
[0070] Taking the captured object as a non-motor vehicle (such as an electric vehicle) as an example, the specified features of the captured object may include but are not limited to one or more features such as whether there are passengers on board, whether an umbrella canopy is installed, whether the driver wears a helmet, and the color of the driver's clothes.
[0071] Accordingly, the first captured image of the forward camera for the designated object can be determined from the first captured image of the forward camera at the first designated capturing position based on the capturing time, the area where the captured object is located in the captured image, and the designated features of the captured object.
[0072] In an example, determining the first captured image of the forward camera for the specified object from the first captured image of the forward camera at the first specified capturing position based on the capturing time, the area where the captured object is located in the captured image, and the specified features of the captured object may include:
[0073] Determine, according to the capture time of the second captured image, a target first captured image whose capture time differs from the capture time of the second captured image within a preset time threshold;
[0074] For any first captured image of a target, determining a first area where a captured object in the first captured image of the target is located, and a specified feature of the captured object in the first captured image of the target;
[0075] When the second area where the designated object is located in the second captured image matches the first area where the designated object is located in the first captured image of the target, and the designated features of the captured object in the first captured image of the target are consistent with the designated features of the designated object, the first captured image of the target is the first captured image of the designated object by the forward-facing camera.
[0076] Exemplarily, it is considered that the capture time of the first captured image and the second captured image of the same captured object is usually similar.
[0077] Therefore, when determining that a specified object has target behavior based on a captured image facing away from the camera, a first captured image (which may be referred to as the target first captured image) whose capture time is within a preset time threshold compared to the capture time of the second captured image can be determined based on the capture time of the second captured image.
[0078] In addition, considering that for the first snapshot image and the second snapshot image of the same captured object, the area where the captured object is located in the first snapshot image and the area where the captured object is located in the second snapshot image should match (corresponding to the same actual physical area), and the specified features of the captured object in the first snapshot image should also be consistent with the specified features in the second snapshot image.
[0079] Therefore, for any first snapshot image of a target, it is possible to determine the first area where the captured object is located in the first snapshot image of the target, as well as the specified features of the captured object in the first snapshot image of the target, and to determine whether the second area where the specified object is located in the second snapshot image matches the first area where the captured object is located in the first snapshot image of the target, and whether the specified features of the captured object in the first snapshot image of the target are consistent with the specified features of the specified object.
[0080] Exemplarily, the designated feature of the designated object may be determined by performing feature recognition on a second captured image of the designated object with the back-facing camera.
[0081] Exemplarily, when the second area where the designated object is located in the second captured image matches the first area where the designated object is located in the first captured image of the target, and the designated features of the captured object in the first captured image of the target are consistent with the designated features of the designated object, the first captured image of the target is the first captured image of the designated object taken by the forward-facing camera.
[0082] It should be noted that, when the first captured image of the designated object by the forward camera is not determined in the above manner, an exception may be handled according to a preset strategy, such as generating an exception record for processing by relevant personnel.
[0083] In another example, determining the first captured image of the forward camera for the specified object from the first captured image at the first specified capturing position by the forward camera based on the capturing time, the area where the captured object is located in the captured image, and the specified features of the captured object may include:
[0084] Determine, according to the capture time of the second captured image, a target first captured image whose capture time differs from the capture time of the second captured image within a preset time threshold;
[0085] For any first captured image of a target, determining a first area where a captured object is located in the first captured image of the target;
[0086] In the case where a first region where a captured object is located in a plurality of target first captured images matches a second region where a designated object is located in the second captured image, determining designated features of the captured object in the plurality of target first captured images;
[0087] Among the plurality of first captured target images, the first captured target image whose designated feature of the captured object is consistent with the designated feature of the designated object is determined as the first captured target image of the designated object by the forward camera.
[0088] Exemplarily, in order to more accurately determine the first captured image and the second captured image of the same captured object, the query efficiency of the first captured image is improved.
[0089] In the case where a target first snapshot image whose snapshot time differs from that of the second snapshot image by a preset time threshold is determined based on the snapshot time of the second snapshot image of the designated object, for any target first snapshot image, the first area where the captured object is located in the target first snapshot image can be determined, and it can be determined whether the first area where the captured object is located in the target first snapshot image matches the second area where the designated object is located in the second snapshot image, and the target first snapshot image whose first area where the captured object is located matches the second area where the designated object is located in the second snapshot image is determined.
[0090] When there is a match between the first area where the captured object is located in multiple target first snapshot images and the second area where the designated object is located in the second snapshot image, the designated features of the captured object in the multiple target first snapshot images can be further determined, and through feature matching, the target first snapshot image in which the designated features of the captured object in the multiple target first snapshot images are consistent with the designated features of the designated object can be determined as the first snapshot image of the designated object by the forward camera.
[0091] Exemplarily, when there is a target first captured image in which the first area where the captured object is located matches the second area where the designated object is located in the second captured image, the target first captured image can be determined as the first captured image of the designated object by the forward camera; or, the target first captured image can be further matched with designated features of the captured object to determine whether the target first captured image is the first captured image of the designated object by the forward camera.
[0092] It should be noted that, in the case that the target first captured image in which the first area where the captured object is located matches the second area where the specified object is located in the second captured image is not found, or, in the case that the target first captured image in which the first area where the captured object is located matches the second area where the specified object is located in the second captured image, but in each target first captured image, the specified features of the captured object are inconsistent with the specified features of the specified object, exception handling can be performed according to the preset strategy, such as generating an exception record for processing by relevant personnel.
[0093] In some embodiments, the front-facing camera and the back-facing camera are calibrated by:
[0094] Adjusting the angle of the forward camera so that the first designated capture position of the forward camera is consistent with the position of the preset calibration object set in the capture scene; and
[0095] The angle of the back-facing camera is adjusted so that the second designated capture position of the back-facing camera is consistent with the position of the preset calibration object set in the capture scene.
[0096] For example, in order to make the actual physical positions corresponding to the first designated capture position of the front camera and the second designated capture position of the rear camera consistent in the same capture scene, the front camera and the rear camera in the same capture scene need to be calibrated.
[0097] Exemplarily, a preset calibration object (such as a road cone) may be set at a designated position of a common capture area facing the camera and the camera facing away from the camera in the capture scene.
[0098] Exemplarily, the number of preset calibration objects may include at least two, and the at least two calibration objects may be on a straight line.
[0099] Exemplarily, the angle of the forward camera may be adjusted so that the first designated capture position of the forward camera is consistent with the position of a preset calibration object set in the capture scene; and,
[0100] The angle of the back-facing camera is adjusted so that the second designated capture position of the back-facing camera is consistent with the position of the preset calibration object set in the capture scene.
[0101] For example, the angle of the front camera or the rear camera can be adjusted by a gimbal.
[0102] It should be noted that, when the angle of the front-facing camera or the rear-facing camera cannot be adjusted automatically, the angle of the front-facing camera or the rear-facing camera can also be adjusted manually.
[0103] In some embodiments, the target behavior may include but is not limited to running a red light, not wearing a helmet, installing a carport, or non-motor vehicle carrying passengers, and the captured object may include non-motor vehicles;
[0104] The generating of the snapshot record for the designated object based on the snapshot image of the designated object by the back-facing camera and the first snapshot image of the designated object by the front-facing camera may include:
[0105] A capture record for the designated object is generated based on the captured images of the designated object by the back-facing camera at multiple different capture positions, the first captured image of the designated object by the front-facing camera, the close-up image of the license plate of the captured object, and the face image of the driver of the captured object.
[0106] In order to enable those skilled in the art to better understand the technical solutions provided in the embodiments of the present application, the technical solutions provided in the embodiments of the present application are described below with reference to specific examples.
[0107] In this embodiment, a non-motor vehicle red light running capture system is taken as an example for description, that is, the above target behavior is red light running behavior, and the above capture object is a non-motor vehicle (taking an electric vehicle as an example).
[0108] See also Figure 2 , is a schematic diagram of the architecture of a non-motor vehicle red light running capture system provided in an embodiment of the present application, such as Figure 2 As shown, the non-motor vehicle red light running capture system can include a rear-facing license plate capture machine (i.e. the above-mentioned rear-facing camera) for electric vehicle license plate recognition, and a front-facing human body capture machine (i.e. the above-mentioned front-facing camera) for capturing the front of the human body, such as the face (also known as face image acquisition).
[0109] The back camera is at 3 different positions (such as Figure 2 The electric vehicle is captured at the first capture position to the third capture position of the red light running shown in the figure, and combined with the status of the traffic light, it is determined whether the electric vehicle has run a red light.
[0110] When the electric vehicle passes through the forward bayonet and triggers the capture position, the forward camera captures the front of the human body, such as the face, on the electric vehicle.
[0111] In this embodiment, when the front and back cameras are set up facing each other, the zebra crossing at the intersection opposite the back camera can be taken as the common capture position of the front and back cameras, and at least two calibration points (taking 2 as an example) are set at the common capture position, and calibration objects (taking road cones as an example) are placed.
[0112] In the field of view of the forward camera, the snapshot trigger line (i.e., the forward bayonet trigger snapshot position is the first designated snapshot position mentioned above) is collinear with the two points calibrated by the road cone; the third snapshot position line of the red light running of the rear camera (i.e., the third snapshot position of the rear camera is the second designated position mentioned above) is collinear with the two points calibrated by the road cone, thereby ensuring that the snapshot positions of the front and rear cameras are mapped to the same position on the ground. The schematic diagram of its installation can be shown as follows: Figure 3 shown.
[0113] In this embodiment, the back-facing camera is used to capture the behavior of a non-motor vehicle running a red light, and the horizontal coordinates of the left and right ends of the third snapshot position of the red light running are taken out. According to the equal division rule, this area is divided into 4 areas (i.e., taking the second designated snapshot position as divided into 4 areas as an example); when the non-motor vehicle passes the third snapshot position, the area number (which can be called the first area number) passed by the non-motor vehicle is obtained based on the horizontal coordinate of the center point of the non-motor vehicle detection frame through the matching logic within the program.
[0114] In addition, the vehicle characteristics of the non-motor vehicle (i.e., the above-mentioned specified characteristics), such as whether the driver wears a helmet, whether there are passengers, whether an umbrella shed is installed, and other characteristic states, can be extracted and uploaded to the back-end platform together with the first area number.
[0115] When a non-motor vehicle that runs a red light passes through the trigger capture position of the forward facial camera, the forward camera captures the non-motor vehicle. Based on the horizontal coordinate of the center point of the non-motor vehicle detection frame and the matching logic within the program, the area number (which can be called the second area number) that the non-motor vehicle passed through can be obtained.
[0116] It should be noted that for the bayonet trigger snapshot position of the forward camera, this area can also be divided into 4 areas according to the horizontal coordinates of the left and right ends of the bayonet trigger snapshot position according to the equal division rule (that is, taking the first designated snapshot position as divided into 4 areas as an example).
[0117] Due to the different orientations of the front and back cameras, under the same area number setting rules, in the areas obtained by area division according to the above method, the area number corresponding to the front camera and the area number corresponding to the back camera of the same area will be inconsistent.
[0118] like Figure 2 As shown, the area numbers 1 to 4 of the bayonet-triggered snapshot position of the forward-facing camera correspond to the area numbers 4 to 1 in the rear-facing camera, respectively.
[0119] Therefore, when matching the captured image of the back-facing camera with the captured image of the front-facing camera, it is necessary to perform area number conversion.
[0120] For example, when the second area number is 4, the corresponding first area number should be 1.
[0121] In addition, the vehicle characteristics of the non-motor vehicle at hand, such as whether the driver is wearing a helmet, whether there are passengers, whether an umbrella shed is installed, etc., can be extracted based on the snapshot image of the forward camera, and uploaded to the back-end platform together with the second area number.
[0122] For example, for the captured image of the forward camera and the captured image of the rear-facing camera at the third capturing position, the back-end platform can match them according to the capturing time, area number and designated features of the non-motor vehicle, determine the forward captured image (i.e. the first captured image mentioned above) and the rear-facing captured image (in this example, it can include 3 captured images at different capturing positions) for the same non-motor vehicle, and generate a capture record.
[0123] For example, a 6-in-1 picture can be generated (which may include three rear-facing snapshot images taken by the rear-facing camera (corresponding to three different snapshot positions of the rear-facing camera), a front-facing snapshot image taken by the front-facing camera (also called a front panoramic image), a license plate close-up image, and a driver's face image) to form a complete record of red light running behavior.
[0124] The method provided by the present application is described above. The device provided by the present application is described below:
[0125] See also Figure 4 , is a schematic diagram of the structure of a snapshot record generation device provided in an embodiment of the present application, wherein the snapshot record generation device can be deployed in the target behavior snapshot system described in the above embodiment, such as Figure 4 As shown, the snapshot record generating device may include:
[0126] An acquisition unit 410 is configured to acquire, for any capture scene, a second capture image of the specified object at a second specified capture position by the back-facing camera when it is determined that the specified object has a target behavior according to the capture image of the back-facing camera;
[0127] The determining unit 420 is used to determine, based on the capture time and the area where the captured object is located in the captured image, a first captured image of the forward camera for the specified object from the first captured image of the forward camera at the first specified capture position; wherein the first specified capture position of the forward camera is divided into a plurality of first areas, and the second specified capture position of the rear camera is divided into a plurality of second areas, and the first areas correspond to the second areas one by one;
[0128] The generating unit 430 is configured to generate a snapshot record for the designated object according to the snapshot image of the designated object captured by the back-facing camera and the first snapshot image of the designated object captured by the front-facing camera.
[0129] In some embodiments, the determining unit 420 determines the first captured image of the forward camera for the specified object from the first captured image of the forward camera at the first specified captured position according to the captured time and the area where the captured object is located in the captured image, including:
[0130] Determine, according to the capture time of the second captured image, a target first captured image whose capture time differs from the capture time of the second captured image within a preset time threshold;
[0131] For any first captured image of a target, determining a first area where a captured object is located in the first captured image of the target;
[0132] When the second area where the designated object is located in the second captured image matches the first area where the captured object is located in the target first captured image, the target first captured image is determined to be the first captured image of the designated object by the forward camera.
[0133] In some embodiments, the determining unit 420 determines the first captured image of the forward camera for the specified object from the first captured image of the forward camera at the first specified captured position according to the captured time and the area where the captured object is located in the captured image, including:
[0134] According to the capture time, the area where the captured object is located in the captured image, and the specified features of the captured object, the first captured image of the forward camera for the specified object is determined from the first captured image of the forward camera at the first specified capture position.
[0135] In some embodiments, the determining unit 420 determines the first captured image of the forward camera for the specified object from the first captured image of the forward camera at the first specified capturing position according to the capturing time, the area where the captured object is located in the captured image, and the specified features of the captured object, including:
[0136] Determine, according to the capture time of the second captured image, a target first captured image whose capture time differs from the capture time of the second captured image within a preset time threshold;
[0137] For any first captured image of a target, determining a first area where a captured object in the first captured image of the target is located, and a specified feature of the captured object in the first captured image of the target;
[0138] When the second area where the designated object is located in the second captured image matches the first area where the designated object is located in the first captured image of the target, and the designated features of the captured object in the first captured image of the target are consistent with the designated features of the designated object, the first captured image of the target is the first captured image of the designated object by the forward-facing camera.
[0139] In some embodiments, the determining unit 420 determines the first captured image of the forward camera for the specified object from the first captured image of the forward camera at the first specified capturing position according to the capturing time, the area where the captured object is located in the captured image, and the specified features of the captured object, including:
[0140] Determine, according to the capture time of the second captured image, a target first captured image whose capture time differs from the capture time of the second captured image within a preset time threshold;
[0141] For any first captured image of a target, determining a first area where a captured object is located in the first captured image of the target;
[0142] In the case where a first region where a captured object is located in a plurality of target first captured images matches a second region where the designated object is located in the second captured image, determining designated features of the captured object in the plurality of target first captured images;
[0143] Among the plurality of first captured target images, the first captured target image whose designated feature of the captured object is consistent with the designated feature of the designated object is determined as the first captured image of the designated object by the forward camera.
[0144] In some embodiments, the front-facing camera and the rear-facing camera are calibrated in the following manner:
[0145] Adjusting the angle of the forward camera so that the first designated capture position of the forward camera is consistent with the position of the preset calibration object set in the capture scene; and
[0146] The angle of the back-facing camera is adjusted so that the second designated capture position of the back-facing camera is consistent with the position of the preset calibration object set in the capture scene.
[0147] In some embodiments, the target behavior includes running a red light, not wearing a helmet, installing a carport, or carrying a passenger on a non-motor vehicle, and the captured object includes a non-motor vehicle;
[0148] The generating unit generates a snapshot record for the designated object according to the snapshot image of the designated object captured by the back-facing camera and the first snapshot image of the designated object captured by the front-facing camera, including:
[0149] A capture record for the designated object is generated based on the captured images of the designated object captured by the back-facing camera at multiple different capture positions, the first capture image of the designated object captured by the front-facing camera, the close-up image of the license plate of the designated object, and the face image of the driver of the designated object.
[0150] See also Figure 5 , is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 501 and a memory 502 storing machine executable instructions. The processor 501 and the memory 502 may communicate via a system bus 503. In addition, by reading and executing the machine executable instructions corresponding to the capture record generation control logic in the memory 502, the processor 501 may execute the capture record generation method described above.
[0151] The memory 502 mentioned herein may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (RadomAccess Memory, random access memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.
[0152] In some embodiments, a machine-readable storage medium is also provided. Figure 5 The memory 502 in the machine readable storage medium stores machine executable instructions, and when the machine executable instructions are executed by the processor, the method for generating snapshot records described above is implemented. For example, the machine readable storage medium can be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0153] The embodiment of the present application further provides a capture system, comprising a front camera and a rear camera, wherein when the front camera and the rear camera are calibrated, there is an overlapping area between the capture field of view of the front camera and the capture field of view of the rear camera;
[0154] The first designated position in the capture field of view of the forward camera is divided into a plurality of first predetermined areas according to a preset area division strategy, and the plurality of first predetermined areas are numbered according to a first area numbering strategy; the first designated position is in the overlapping area;
[0155] The second designated position in the capture field of view of the back-facing camera is divided into a plurality of second predetermined areas according to the preset area division strategy, and the plurality of second predetermined areas are numbered according to the second area numbering strategy; the second designated position and the first designated position correspond to the same position in the actual capture scene;
[0156] When the moving target passes through the first designated position, the forward camera captures the moving target to obtain a forward captured image; the forward captured image is used to extract features of the moving target to obtain corresponding first target features, and is used to identify the first predetermined area where the moving target is located to obtain a corresponding first area number;
[0157] When the moving target passes through the second designated position, the back-facing camera captures the moving target to obtain a back-facing captured image; the back-facing captured image is used to extract features of the moving target to obtain corresponding second target features, and is used to identify the second specific area where the moving target is located to obtain a corresponding second area number;
[0158] Among them, the forward captured images and the rear captured images with consistent capture time, matching corresponding first target features and corresponding second target features, and matching corresponding first area numbers and corresponding second area numbers are used to construct an atlas of forward captured images and rear captured images of the same moving target.
[0159] Exemplarily, in order to more accurately determine the forward captured image and the backward captured image of the same moving target, after the calibration of the forward camera and the backward camera is completed, there is an overlapping area between the capture field of view of the forward camera and the capture field of view of the backward camera.
[0160] For the specified position in the overlapping area, the specified position (which may be referred to as the first specified position) may be divided into regions in the capture field of view of the forward camera, and the specified position (which may be referred to as the second specified position) may be divided into regions in the capture field of view of the rear camera.
[0161] Exemplarily, a division strategy for dividing the first designated location into regions is the same as a division strategy for dividing the second designated location into regions.
[0162] For example, the first designated position (or the second designated position) may be divided into a plurality of first predetermined areas (or second predetermined areas) of equal size along a direction perpendicular to the lane.
[0163] Exemplarily, the first area numbering strategy and the second area numbering strategy may be the same or different.
[0164] For example, the first area numbering strategy and the second area numbering strategy may both be based on the camera orientation and numbered in order from left to right.
[0165] In this case, the first predetermined region with the smallest number and the second predetermined region with the largest number correspond to the same region.
[0166] For another example, the first area numbering strategy may be based on the camera orientation (front camera orientation), and numbering may be performed from left to right; the second area numbering strategy may be based on the camera orientation (back camera orientation), and numbering may be performed from right to left.
[0167] In this case, the first predetermined area and the second predetermined area having the same number correspond to the same area.
[0168] Based on the above-mentioned area division and numbering, the front image and the back image can be matched based on the capture time of the front image, the corresponding target feature (which can be called the first target feature, obtained by extracting features from the front image), and the corresponding area number (which can be called the first area number, determined by identifying the first predetermined area where the moving target is located in the front image), as well as the capture time of the back image, the corresponding target feature (which can be called the second target feature, obtained by extracting features from the back image), and the corresponding area number (which can be called the second area number, determined by identifying the second predetermined area where the moving target is located in the back image).
[0169] Among them, the forward captured image and the rear captured image whose capture time is consistent, the corresponding first target feature matches the corresponding second target feature, and the corresponding first area number matches the corresponding second area number are the successfully matched forward images and rear images.
[0170] Exemplarily, the consistent capture time may include the capture time being the same or having a tolerable error.
[0171] Exemplarily, the matching of the first area number and the second area number means that the first predetermined area corresponding to the first area number and the second predetermined area corresponding to the second area number correspond to the same area in the actual captured scene.
[0172] Exemplarily, the specific implementation of constructing a set of front images and back images of a moving target based on the front-facing snapshot images of the front-facing camera and the back-facing snapshot images of the back-facing camera can be found in the relevant description of the generation of snapshot records in the above method flow, and the embodiments of the present application will not be elaborated here.
[0173] In some embodiments, the moving target is a non-motor vehicle.
[0174] When it is determined that the moving target has a first target behavior according to the forward-snapshot image, searching for a rear-facing image for constructing the same atlas as the forward-snapshot image according to the capture time of the forward-snapshot image, the corresponding first target feature, and the corresponding first region number;
[0175] The first target behavior includes: non-motor vehicle carrying passengers, not wearing helmets, or installing carports;
[0176] or,
[0177] In the case where it is determined that the moving target has a second target behavior according to the back-facing captured image, searching for a front-facing image used to construct the same atlas as the back-facing captured image according to the capture time of the back-facing captured image, the corresponding second target feature, and the corresponding second region number;
[0178] Among them, the second target behavior includes: non-motor vehicle carrying passengers, not wearing helmets, installing carports or running red lights.
[0179] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0180] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for generating a snapshot record, characterized in that: Applied to a target behavior capture system, in the same capture scene, the actual physical positions corresponding to the first designated capture position of the forward camera and the second designated capture position of the rear camera are consistent, and the method includes: For any snapshot scene, when it is determined that the designated object has the target behavior according to the snapshot image of the back-facing camera, a second snapshot image of the designated object at a second designated snapshot position by the back-facing camera is obtained; According to the capture time and the area where the captured object is located in the captured image, a first captured image of the forward camera for the designated object is determined from the first captured image of the forward camera at the first designated captured position; wherein the first designated captured position of the forward camera is divided into a plurality of first areas, and the second designated captured position of the backward camera is divided into a plurality of second areas, and the first areas correspond to the second areas one by one; Generate a snapshot record for the designated object based on the snapshot image of the designated object captured by the back-facing camera and the first snapshot image of the designated object captured by the front-facing camera; The method of determining the first captured image of the forward camera for the designated object from the first captured image of the forward camera at the first designated captured position based on the captured time and the area where the captured object is located in the captured image includes: Determine, based on the capture time, the area where the captured object is located in the captured image, and the specified features of the captured object, from the first captured image of the forward camera at the first specified capture position, a first captured image of the forward camera for the specified object; The difference between the capture time of the second captured image of the designated object by the back-facing camera and the capture time of the first captured image of the designated object by the front-facing camera is within a preset time threshold; A second area where the designated object is located in the second snapshot image of the designated object by the back-facing camera matches a first area where the designated object is located in the first snapshot image of the designated object by the front-facing camera; The designated feature of the designated object in the second captured image of the designated object by the back-facing camera is consistent with the designated feature of the designated object in the first captured image of the designated object by the front-facing camera.
2. The method according to claim 1, characterized in that The method of determining, based on the capture time, the area where the captured object is located in the captured image, and the specified features of the captured object, from the first captured image of the forward camera at the first specified capture position, the first captured image of the forward camera for the specified object comprises: Determine, according to the capture time of the second captured image, a target first captured image whose capture time differs from the capture time of the second captured image within a preset time threshold; For any first captured image of a target, determining a first area where a captured object in the first captured image of the target is located, and a specified feature of the captured object in the first captured image of the target; When the second area where the designated object is located in the second captured image matches the first area where the designated object is located in the first captured image of the target, and the designated features of the captured object in the first captured image of the target are consistent with the designated features of the designated object, the first captured image of the target is the first captured image of the designated object by the forward-facing camera.
3. The method according to claim 1, characterized in that The method of determining, based on the capture time, the area where the captured object is located in the captured image, and the specified features of the captured object, from the first captured image of the forward camera at the first specified capture position, the first captured image of the forward camera for the specified object comprises: Determine, according to the capture time of the second captured image, a target first captured image whose capture time differs from the capture time of the second captured image within a preset time threshold; For any first captured image of a target, determining a first area where a captured object is located in the first captured image of the target; In the case where a first region where a captured object is located in a plurality of target first captured images matches a second region where the designated object is located in the second captured image, determining designated features of the captured object in the plurality of target first captured images; Among the plurality of first captured target images, the first captured target image whose designated feature of the captured object is consistent with the designated feature of the designated object is determined as the first captured image of the designated object by the forward camera.
4. The method according to any one of claims 1 to 3, characterized in that: The forward-facing camera and the rear-facing camera are calibrated in the following manner: Adjusting the angle of the forward camera so that the first designated capture position of the forward camera is consistent with the position of the preset calibration object set in the capture scene; and The angle of the back-facing camera is adjusted so that the second designated capture position of the back-facing camera is consistent with the position of the preset calibration object set in the capture scene.
5. The method according to any one of claims 1 to 3, characterized in that: The target behaviors include running a red light, not wearing a helmet, installing a carport, or carrying a passenger on a non-motor vehicle, and the captured objects include non-motor vehicles; The step of generating a snapshot record for the designated object based on the snapshot image of the designated object captured by the back-facing camera and the first snapshot image of the designated object captured by the front-facing camera comprises: A capture record for the designated object is generated based on the captured images of the designated object captured by the back-facing camera at multiple different capture positions, the first capture image of the designated object captured by the front-facing camera, the close-up image of the license plate of the designated object, and the face image of the driver of the designated object.
6. A snapshot record generation device, characterized in that: Deployed in the target behavior capture system, in the same capture scene, the actual physical position corresponding to the first designated capture position of the forward camera and the second designated capture position of the rear camera is consistent, and the device includes: An acquisition unit is used for acquiring, for any snapshot scene, a second snapshot image of the designated object at a second designated snapshot position by the back-facing camera when it is determined that the designated object has a target behavior according to the snapshot image of the back-facing camera; A determination unit is used to determine, based on the capture time and the area where the captured object is located in the captured image, a first captured image of the forward camera for the designated object from the first captured image of the forward camera at the first designated captured position; wherein the first designated captured position of the forward camera is divided into a plurality of first areas, and the second designated captured position of the rear camera is divided into a plurality of second areas, and the first areas correspond to the second areas one by one; A generating unit, configured to generate a snapshot record for the designated object based on the snapshot image of the designated object captured by the back-facing camera and the first snapshot image of the designated object captured by the front-facing camera; The determining unit determines the first captured image of the forward camera for the designated object from the first captured image of the forward camera at the first designated captured position according to the captured time and the area where the captured object is located in the captured image, including: Determine, based on the capture time, the area where the captured object is located in the captured image, and the specified features of the captured object, from the first captured image of the forward camera at the first specified capture position, a first captured image of the forward camera for the specified object; The difference between the capture time of the second captured image of the designated object by the back-facing camera and the capture time of the first captured image of the designated object by the front-facing camera is within a preset time threshold; A second area where the designated object is located in the second snapshot image of the designated object by the back-facing camera matches a first area where the designated object is located in the first snapshot image of the designated object by the front-facing camera; The designated feature of the designated object in the second captured image of the designated object by the back-facing camera is consistent with the designated feature of the designated object in the first captured image of the designated object by the front-facing camera.
7. The device according to claim 6, characterized in that The determining unit determines, based on the capture time, the area where the captured object is located in the captured image, and the specified features of the captured object, a first captured image of the forward camera for the specified object from the first captured image at the first specified capture position by the forward camera, including: Determine, according to the capture time of the second captured image, a target first captured image whose capture time differs from the capture time of the second captured image within a preset time threshold; For any first captured image of a target, determining a first area where a captured object in the first captured image of the target is located, and a specified feature of the captured object in the first captured image of the target; When the second area where the designated object is located in the second captured image matches the first area where the captured object is located in the first captured image of the target, and the designated feature of the captured object in the first captured image of the target is consistent with the designated feature of the designated object, the first captured image of the target is the first captured image of the designated object by the forward camera; The determining unit determines the first captured image of the forward camera for the specified object from the first captured image of the forward camera at the first specified capturing position according to the capturing time, the area where the captured object is located in the captured image, and the specified features of the captured object, including: Determine, according to the capture time of the second captured image, a target first captured image whose capture time differs from the capture time of the second captured image within a preset time threshold; For any first captured image of a target, determining a first area where a captured object is located in the first captured image of the target; In the case where a first region where a captured object is located in a plurality of target first captured images matches a second region where the designated object is located in the second captured image, determining designated features of the captured object in the plurality of target first captured images; Determine, among the plurality of first captured target images, a first captured target image whose specified feature of the captured object is consistent with the specified feature of the specified object as a first captured target image of the specified object by the forward camera; and / or, The forward-facing camera and the rear-facing camera are calibrated in the following manner: Adjusting the angle of the forward camera so that the first designated capture position of the forward camera is consistent with the position of the preset calibration object set in the capture scene; and Adjusting the angle of the back-facing camera so that the second designated capture position of the back-facing camera is consistent with the position of the preset calibration object set in the capture scene; and / or, The target behaviors include running a red light, not wearing a helmet, installing a carport, or carrying a passenger on a non-motor vehicle, and the captured objects include non-motor vehicles; The generating unit generates a snapshot record for the designated object according to the snapshot image of the designated object captured by the back-facing camera and the first snapshot image of the designated object captured by the front-facing camera, including: A capture record for the designated object is generated based on the captured images of the designated object captured by the back-facing camera at multiple different capture positions, the first capture image of the designated object captured by the front-facing camera, the close-up image of the license plate of the designated object, and the face image of the driver of the designated object.
8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor is used to execute the machine executable instructions to implement the method according to any one of claims 1 to 5.
9. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by a processor, the method described in any one of claims 1 to 5 is implemented.
10. A snapshot system, characterized in that: It includes a front camera and a rear camera, and when the front camera and the rear camera are calibrated, there is an overlapping area between the capture field of view of the front camera and the capture field of view of the rear camera; The first designated position in the capture field of view of the forward camera is divided into a plurality of first predetermined areas according to a preset area division strategy, and the plurality of first predetermined areas are numbered according to a first area numbering strategy; The first designated position is in the overlapping area; The second designated position in the capturing field of view of the back-facing camera is divided into a plurality of second predetermined areas according to the preset area division strategy, and the plurality of second predetermined areas are numbered according to the second area numbering strategy; The second designated position and the first designated position correspond to the same position in the actual captured scene; When the moving target passes through the first designated position, the forward camera captures the moving target to obtain a forward captured image; the forward captured image is used to extract features of the moving target to obtain corresponding first target features, and is used to identify the first predetermined area where the moving target is located to obtain a corresponding first area number; When the moving target passes through the second designated position, the back-facing camera captures the moving target to obtain a back-facing captured image; The back-facing captured image is used to extract features of the moving target to obtain corresponding second target features, and is used to identify the second specific area where the moving target is located to obtain a corresponding second area number; Among them, the forward captured images and the rear captured images with consistent capture time, matching corresponding first target features and corresponding second target features, and matching corresponding first area numbers and corresponding second area numbers are used to construct an atlas of forward captured images and rear captured images of the same moving target.
11. The system according to claim 10, characterized in that The moving target is a non-motor vehicle; When it is determined that the moving target has a first target behavior according to the forward-snapshot image, searching for a rear-facing image for constructing the same atlas as the forward-snapshot image according to the capture time of the forward-snapshot image, the corresponding first target feature, and the corresponding first region number; The first target behavior includes: non-motor vehicle carrying passengers, not wearing helmets, or installing carports; or, In the case where it is determined that the moving target has a second target behavior according to the back-facing captured image, searching for a front-facing image used to construct the same atlas as the back-facing captured image according to the capture time of the back-facing captured image, the corresponding second target feature, and the corresponding second region number; Among them, the second target behavior includes: non-motor vehicle carrying passengers, not wearing helmets, installing carports or running red lights.
Citation Information
Patent Citations
Traffic roads image multi-way grasp shoot method and electronic policeman system
CN101178854A
System and method for snapshotting behavior of running red light
CN103886759A
Camera linkage snapshot method and device and computer storage medium
CN110738150A
Traffic violation snapshot method and device
CN110766949A
Vehicle snapshot method and system
CN111081031A
