CN112906791A - Event matching method and device, storage medium and electronic device - Google Patents

Event matching method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112906791A
CN112906791A CN202110192726.XA CN202110192726A CN112906791A CN 112906791 A CN112906791 A CN 112906791A CN 202110192726 A CN202110192726 A CN 202110192726A CN 112906791 A CN112906791 A CN 112906791A
Authority
CN
China
Prior art keywords
picture
parameter information
flash
event
target event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110192726.XA
Other languages
Chinese (zh)
Inventor
泮江江
陈建
赵标伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110192726.XA priority Critical patent/CN112906791A/en
Publication of CN112906791A publication Critical patent/CN112906791A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Library & Information Science (AREA)
  • Databases & Information Systems (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention provides an event matching method, an event matching device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a first picture taken with a flash; determining first parameter information corresponding to the first picture, wherein the first parameter information is used for representing an acquisition time identifier of the first picture; the target event matched with the first parameter information is determined from the target event set, the first picture and the target event are correlated, and the target event and the first picture are accurately matched and correlated according to the first parameter information, so that the technical problem that the target event and the shot picture are difficult to accurately match and correlate in the related technology can be solved, the shooting accuracy of the linked flash lamp is improved, and the accurate matching and correlation of the target event and the shot picture are realized.

Description

Event matching method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to an event matching method, an event matching device, a storage medium and an electronic device.
Background
In the related technology at present, the collection and identification of image information are applied to various application scenes, such as travel, security monitoring and the like, taking traffic violation forensics as an example, and based on the rigor of traffic violation forensics, a group of clear motor vehicle violation characteristic pictures needs to be captured. When the ambient brightness is low, it is required that the traffic camera is used together with a flash. When the intelligent detection algorithm in the camera detects various violation phenomena, a violation event is generated, and the flash lamp is triggered to flash to realize snapshot.
The sequence correlation matching mode is commonly adopted at present. Can be summarized as follows: when the trigger signal is generated, the violation event waits for the flash explosion frame within the overtime threshold range; when a flash frame arrives, an event is associated with the flash frame.
Taking the matching of m groups of violation events generated by a single vehicle in a wrong order and n flashing frames as an example, the condition that the a violation event is related to the b flashing frame generated by triggering can occur between the m groups of violation events generated by the single vehicle in the wrong order and the n flashing frames, and the picture subjected to flashing and light supplementing usually needs to further detect the characteristics in a vehicle window, such as a driver wearing a safety belt, making a call, smoking and the like. Because the matching of the event and the burst flash frame is wrong, the light supplement effect of the vehicle expected to be captured is poor, especially the light supplement effect in the vehicle window influences the detection of the characteristics in the vehicle window.
Aiming at the technical problem that the target event and the shot picture are difficult to be accurately matched and associated in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides an event matching method, an event matching device, a storage medium and an electronic device, which are used for at least solving the technical problem that a target event is difficult to be accurately matched and associated with a shot picture in the related technology.
According to an embodiment of the present invention, there is provided an event matching method including: acquiring a first picture taken with a flash; determining first parameter information corresponding to the first picture, wherein the first parameter information is used for representing an acquisition time identifier of the first picture; and determining a target event matched with the first parameter information from a target event set, and associating the first picture with the target event.
According to another embodiment of the present invention, there is provided an event matching apparatus including: an acquisition module for acquiring a first picture taken with a flash; the determining module is used for determining first parameter information corresponding to the first picture, wherein the first parameter information is used for representing an acquisition time identifier of the first picture; and the processing module is used for determining a target event matched with the first parameter information from a target event set and associating the first picture with the target event.
According to yet another embodiment of the invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program, when executed by a processor, performs the steps in any of the above method embodiments.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps in any of the above method embodiments when executing the computer program.
By the invention, the first picture shot under the condition of using the flash lamp is obtained; determining first parameter information corresponding to the first picture, wherein the first parameter information is used for representing an acquisition time identifier of the first picture; the target event matched with the first parameter information is determined from the target event set, the first picture and the target event are correlated, and the target event and the first picture are accurately matched and correlated according to the first parameter information, so that the technical problem that the target event and the shot picture are difficult to accurately match and correlate in the related technology can be solved, the shooting accuracy of the linked flash lamp is improved, and the accurate matching and correlation of the target event and the shot picture are realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal according to an alternative event matching method of an embodiment of the present invention;
FIG. 2 is a flow chart diagram illustrating an alternative event matching method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative event matching method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative event matching method according to an embodiment of the invention;
FIG. 5 is a schematic diagram of yet another alternative event matching method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of yet another alternative event matching method according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of yet another alternative event matching method according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of yet another alternative event matching method according to an embodiment of the present invention;
fig. 9 is a block diagram of an alternative event matching apparatus according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the method running on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of an event matching method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the event matching method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for matching an event running on a mobile terminal, a computer terminal, or a similar computing device is provided, and fig. 2 is a schematic flow chart of an alternative method for matching an event according to an embodiment of the present invention, as shown in fig. 2, the flow chart includes the following steps:
s202, acquiring a first picture shot under the condition of using a flash lamp;
s204, determining first parameter information corresponding to the first picture, wherein the first parameter information is used for representing the acquisition time identifier of the first picture;
s206, determining a target event matched with the first parameter information from the target event set, and associating the first picture with the target event.
Optionally, in this embodiment, the flash may include one or more, in other words, the number of the first pictures may also include, but is not limited to, one or more, taking the flash for supervising traffic travel as an example, and may include, but is not limited to, being configured to be associated with a camera for capturing a violation event, and specifically, may include, but is not limited to, configuring a corresponding camera and flash for each lane. But not limited to, arranging corresponding cameras and flash lamps at different positions on the same lane.
Optionally, in this embodiment, the identifier of the acquisition time for representing the first picture by the first parameter information may include, but is not limited to, an identifier of the acquisition time generated by an acquisition sequence of the first picture within a predetermined time period.
For example, based on the UniqueData (UD) technology, a unique UD value is generated in a certain time range and used as the acquisition time identifier to accurately match the violation event and the flash frame, so that the problem of matching error or failure is effectively solved.
Optionally, in this embodiment, the target event set may include, but is not limited to, a decision model, for example, taking the field of travel for transportation as an example, a violation event is generated by the violation decision module, and the violation event is added to the corresponding target event set for buffering.
Fig. 3 is a schematic diagram of an alternative event matching method according to an embodiment of the present invention, and as shown in fig. 3, the flow includes, but is not limited to, the following steps:
S302,Start;
s304, determining whether the received picture is a flash frame (corresponding to the first picture), if so, executing step S306, otherwise, executing step S316;
s306, acquiring UD information (corresponding to the aforementioned first parameter information) from the accompanying frame information;
s308, judging whether the target event set has an event to be associated, if so, executing the step S310, otherwise, executing the step S316;
s310, judging whether the UD value of the event is equal to the UD value of the following frame, if so, executing a step S312-1, otherwise, executing a step S312-2;
s312-1, matching successfully, generating an event frame, and executing the step S314;
s312-2, judging whether the event is overtime, if so, executing the step S314, otherwise, executing the step S308;
s314, deleting the event to be associated from the list;
S316,End。
the above is merely an example, and the present embodiment is not limited in any way.
With the present embodiment, since the first picture taken with the flash is acquired; determining first parameter information corresponding to the first picture, wherein the first parameter information is used for representing an acquisition time identifier of the first picture; the target event matched with the first parameter information is determined from the target event set, the first picture and the target event are correlated, and the target event and the first picture are accurately matched and correlated according to the first parameter information, so that the technical problem that the target event and the shot picture are difficult to accurately match and correlate in the related technology can be solved, the shooting accuracy of the linked flash lamp is improved, and the accurate matching and correlation of the target event and the shot picture are realized.
As an optional solution, before acquiring the first picture acquired using the flash, the method further includes: determining a plurality of parameter information generated in advance based on a preset rule, wherein the value of the parameter information is unique within a preset time range; determining the first parameter information from the plurality of parameter information under the condition that the target event is detected to be generated; triggering the flash to flash based on the first parameter information to take the first picture.
Optionally, in this embodiment, the predetermined rule may include, but is not limited to, a digital identifier generated in a time sequence, and may include, but is not limited to, a parameter information generation module configured in advance, so that parameter information generated within a certain time range is unique.
Optionally, in this embodiment, when the target event is detected to be generated, the following steps may be included, but are not limited to:
s1, acquiring a trigger signal for triggering generation of a target event according to an image detection result of the image acquisition device;
s2, responding to the trigger signal, and acquiring target parameter information;
and S3, labeling the target event by using the target parameter information, and adding the target event to the target event set.
The trigger signal may include, but is not limited to, generating a target event when it is detected that a generation condition of the trigger target event is met, and generating the trigger signal to obtain target parameter information and bind the target parameter information with the target event, as determined by the event decision module.
The target parameter information is one of a plurality of parameter information, and may be, but is not limited to, the first parameter information.
Optionally, in this embodiment, triggering the flash to flash based on the first parameter information to take the first picture may include, but is not limited to, triggering a plurality of flashes to flash based on the first parameter information to take a plurality of first pictures.
The above is merely an example, and the present embodiment is not limited in any way.
According to the embodiment, a plurality of pieces of parameter information which are generated in advance based on a preset rule are determined, wherein the value of the parameter information is unique within a preset time range, under the condition that a target event is detected to be generated, first parameter information is determined from the plurality of pieces of parameter information, a flash lamp is triggered to flash based on the first parameter information, and the acquisition and shooting sequence of each first picture can be accurately determined in a mode of shooting the first pictures, so that the technical effect of more accurately associating and matching the target event and the first pictures can be achieved.
As an optional scheme, after determining the first parameter information from the plurality of parameter information, the method further includes: marking the target event by using the first parameter information; determining the target event matched with the first parameter information from the target event set comprises: determining an event marked with the first parameter information based on the parameter information marked on each event included in the target event set, and determining the determined event as a target event matched with the first parameter information.
Optionally, in this embodiment, the tagging of the target event with the first parameter information may include, but is not limited to, sending the target event to a module in which the first parameter information is cached in advance to obtain the first parameter information, and further tagging the target event with the first parameter information.
Optionally, in this embodiment, the determining, based on the parameter information labeled on each event included in the target event set, an event labeled with the first parameter information, and determining that the determined event is the target event matched with the first parameter information may include, but is not limited to, determining the parameter information labeled on each event in the target event set, and then determining, by screening and comparing, the event labeled with the first parameter information, and may also include, but is not limited to, sorting, in advance, the target event set according to the shooting order indicated by the parameter information, so as to speed up the efficiency of determining the target event from the target event set.
Fig. 4 is a schematic diagram of another alternative event matching method according to an embodiment of the present invention, where the target event is a violation event, and the parameter information is a UD value, as shown in fig. 4, the process includes, but is not limited to, the following steps:
S402,Start;
s404, analyzing the violation;
s406, judging whether violation is formed, if so, executing the step S408, otherwise, executing the step S412;
s408, applying for a UD value from the UD value generation module;
s410, identifying the applied UD value to a violation event, and registering the violation event to an event list;
S412,End。
in other words, when the violation decision module judges that a violation badge is generated and needs to be linked to trigger the flash lamp, a UD value is applied from the UD value generation module; identifying the UD value to the violation event and registering the violation event to an event list; and finally, outputting a triggering signal identified by the UD value to the flash lamp control module to link with the flash lamp.
The above is merely an example, and the present embodiment is not limited in any way.
According to the embodiment, the method for determining the event marked with the first parameter information based on the parameter information marked on each event included in the target event set and determining the determined event as the target event matched with the first parameter information is adopted, so that the target event can be marked according to the first parameter information, further, the target event can be determined from the target event set through the first parameter information, and the technical effect of more accurately associating and matching the target event and the first picture can be achieved.
As an alternative, triggering the flash to flash based on the first parameter information to take the first picture includes: generating a first trigger signal based on the first parameter information; triggering the flash lamp to flash based on the first trigger signal to take an initial picture; and binding the first parameter information with the initial picture to obtain the first picture, and caching the first picture in a preset storage space according to the picture acquisition sequence.
Optionally, in this embodiment, the first trigger signal may include, but is not limited to, a signal generated by a module for generating a target event, and the first trigger signal is sent to the flash control module to trigger the flash of the flash lamp after the target event is generated.
Optionally, in this embodiment, the initial picture is a picture that is shot with a flash lamp and to which the first parameter information is not bound, and the first picture is shot with a flash lamp and to which the first parameter information is bound.
Optionally, in this embodiment, the preset storage space may include, but is not limited to, a preset storage space configured in advance for caching the first picture, and may include, but is not limited to, a database or a hard disk associated with the matching module.
According to the embodiment, a first trigger signal is generated based on the first parameter information; triggering the flash lamp to flash based on the first trigger signal to take an initial picture; the first parameter information is bound with the initial picture to obtain the first picture, the first picture is cached in a preset storage space according to the picture acquisition sequence, the first parameter information can be bound with the initial picture for the target event to obtain the first picture, then the target event matched with the first picture can be determined from the target event set through the first parameter information, and the technical effect of more accurately associating and matching the target event with the first picture can be achieved.
As an alternative, triggering the flash to flash based on the first trigger signal to take an initial picture includes: determining shooting parameters indicated by the first trigger signal, wherein the shooting parameters comprise shooting times and shooting intervals; and triggering the flash lamp to flash according to the shooting times and the shooting intervals so as to shoot the initial picture.
Optionally, in this embodiment, the shooting parameters may include, but are not limited to, a shooting number and a shooting interval, and may further include, but is not limited to, a resolution indicating that an initial picture is to be shot, a flash identifier required to be used for shooting, and the like, where the shooting number is used to indicate the number of first pictures required to be shot after a target event is generated, or the number of times a flash is required to be used, and the shooting interval is used to indicate an interval between different shooting occasions when the shooting number is multiple times, specifically, the shooting interval may include, but is not limited to, configuring multiple shots to be shot uniformly at fixed time intervals, and may also include, but is not limited to, configuring corresponding shooting intervals for each shot respectively.
For example, if the first trigger signal indicates that the flash F1 is triggered twice with the frame interval of 2, two first pictures taken with the flash F1 with the frame interval of 2 are obtained.
The above is merely an example, and the present embodiment is not limited in any way.
By the embodiment, shooting parameters indicated by the first trigger signal are determined, wherein the shooting parameters comprise shooting times and shooting intervals; triggering the flash lamp to flash according to the shooting times and the shooting intervals so as to indicate the shooting times, the shooting intervals, the flash lamp used for shooting and the like according to a first trigger signal in a mode of shooting the initial picture, further realizing the purpose of obtaining the initial picture which is more in line with the expectation in the shooting process, and more accurately associating and matching the target event with the first picture.
As an alternative, triggering the flash to flash according to the shooting times and the shooting intervals to take the initial picture includes: in a case where it is determined that the number of times of photographing is a plurality of times and it is determined that there is an initial picture of a target photographed within a power-back period of the flash based on the photographing interval, adjusting the photographing interval to photograph the initial picture of the target within a next light supplement period of the power-back period; and triggering the flash lamp to flash according to the adjusted shooting interval and the shooting times so as to shoot the initial picture, wherein the initial picture comprises the target initial picture.
Fig. 5 is a schematic diagram of another alternative event matching method according to an embodiment of the present invention, where the target event is a violation event, and the parameter information is a UD value, as shown in fig. 5, the process includes, but is not limited to, the following:
respectively at Tn-1,Tn,Tn+2And the linked flash lamps F1 take a snapshot at each moment, and are identified by unique UD values each time. The first UD:1 trigger signal is at TnWhen the moment comes into effect, the neighborhood time TdeltaStarting timing, UD:2 which is the second trigger in the timing range is delayed to Tn+3The current time is formally effective, and the current time and the third triggering UD:3 are combined into the same group, and the sudden flashing is carried out to the same frame YUV: Tn+2The above. And each snapshot flash frame is identified through the corresponding UD value and the flash lamp serial number and is used for indicating the flash frame which corresponds to the triggering times and flash lamps. The UD value and the flash lamp identification on the YUV can be merged into the information of the accompanying frame for the matching and the associating use of the subsequent services.
Wherein the neighborhood time T shown in FIG. 5 abovedeltaNamely the above-mentioned back electricity time period.
The above is merely an example, and the present embodiment is not limited in any way.
As an optional solution, the method further comprises:
acquiring a first event indicating a first time to capture a picture using the flash and a second event indicating a second time to capture a picture using the flash, wherein the target event set comprises the first event and the second event;
acquiring a power-back time period of the flash lamp to obtain neighborhood time of the first time, wherein the neighborhood time is the sum of the first time and the duration of the power-back time period;
and when the second time is within the first neighborhood time, postponing the second time when the second event indicates that the picture is acquired by using the flash lamp to a next supplementary lighting time period after the power-back time period so as to take a second picture, wherein the second picture is a picture with the same parameter information as the second event.
Optionally, in this embodiment, the first event and the second event are both events in the target event set, the neighborhood time of the first time is a sum of a time point of the first time and a power-back time period of the flash lamp, and the next light supplement time period after the power-back time period may include, but is not limited to, a time period that can be used for flash shooting after the power-back of the flash lamp is completed.
Optionally, in this embodiment, taking the intelligent transportation field as an example, the traffic camera is required to clearly capture a group of illegal process pictures when illegal evidence collection is performed. When evidence is obtained, a plurality of pictures are continuously captured and generated as a group of illegal records according to a specific illegal capturing strategy and in different time or different positions. When the ambient brightness is low, in order to obtain a clear evidence-taking picture, the light supplementing device is required to perform linkage light supplementing when the camera makes a decision to take a snapshot.
The characteristic that the linkage of flash lamp triggers has: the probability density of linkage triggering of the flash off lamp in unit time is random and is positively correlated with the density of the traffic flow. This is mainly due to the fact that each set of snap decisions of the camera is independent of each other. Therefore, the proposed solution of the present embodiment mainly proposes a feasible solution strategy for matching the black patch and the dark problem (hereinafter, collectively referred to as "dark frame").
Alternatively, in this embodiment, the above-mentioned return time period of the flash lamp is determined by the return time of the flash lamp, and the return time of different flash lamps are calculated separately and may be the same or different, specifically, may be determined according to parameters of the flash lamp.
Alternatively, in the present embodiment, it is necessary to acquire a minimum response time of the flash and configure the flash control module of the camera. Calculating the neighborhood time from the previous trigger flash lamp; and backward timing the power-back time of a flash lamp; the trigger signals for the same flash within the neighborhood time range are all combined and deferred to trigger at the end of the neighborhood time.
Optionally, in this embodiment, a flash control module in the camera combines snapshot trigger signals for the same flash in a neighborhood time into one signal, and triggers the flash only once to generate one snapshot. The size of the neighborhood time is determined according to the power-back time of the flash lamp, so that the flash lamp is fully powered back and ready when being triggered every time, and the problem of black films or insufficient flash is avoided.
The present embodiment is further explained below with reference to specific examples:
along with the requirements of the traffic security field on extraction of features of people in a snapshot position and a vehicle window are higher and higher, in the video snapshot process, accurate snapshot and image brightening are required to be beneficial to extraction of features in the vehicle window. The proposal provides an accurate matching correlation method based on the UD technology, and the accuracy of the linkage calculation of the light snapshot is ensured.
Fig. 6 is a schematic diagram of another alternative event matching method according to the embodiment of the present invention, as shown in fig. 6, specifically including but not limited to the following modules: a violation decision module 602, a flash control module 604, an acquisition module 606, a matching module 608, and the like.
But not limited to, a "UD value generation module" that generates a unique UD value over a time frame is also included.
The violation decision module 602 applies a UD value from the UD value generation module when the violation decision module judges that the violation badge is generated and needs to be linked to trigger the flash lamp; identifying the UD value to the violation event and registering the violation event to an event list; and finally, outputting a triggering signal identified by the UD value to the flash lamp control module to link with the flash lamp.
And the flash lamp control module 604 is used for controlling the snapshot and the linkage flash lamp, simultaneously carrying out the UD information of the corresponding opportunity points (if the opportunity points correspond to multiple triggers, combining a plurality of UD values into a group) and carrying out cache management according to the time sequence, and after the flash burst frame is generated, the acquisition module takes away the corresponding UD information.
The collecting module 606 collects the flash burst frame, and simultaneously, after the corresponding UD information is taken away from the flash lamp control module, binds the flash burst frame to the flash lamp control module and transfers the flash burst frame to subsequent links in a mode along with the frame information. The acquisition module and the flash lamp control module are required to be closest in time sequence so as to ensure the sequence matching relation and prevent the acquisition module from mistakenly acquiring corresponding UD information when receiving the flash burst frame. Triggering is carried out firstly, image data are generated, and the UD value is taken away.
The matching module 608 is used for acquiring mapped UD information from the frame following information when the flash frame is received, and finding out an event matched with the UD value from the event list; and matching the events to the flash frame, and converting the events into event frames for output so as to be used for subsequent service processing such as further identifying characteristics and codes in the vehicle window.
Fig. 7 is a schematic diagram of another alternative event matching method according to an embodiment of the present invention, and as shown in fig. 7, a trigger matching process based on the UD technology is illustrated. In FIG. 7, there are two triggers in common, the first being the YUV: T video framen-3Frame triggering, wherein the UD value of a trigger signal mark is 1, and the flash lamp F1 is required to be triggered twice in a mode that the frame interval is 2, so that two flash frames are captured together; the burst flash frame correspondingly generated by the first triggering is YUV Tn-1And YUV: Tn+2. The second time of the video frame YUV: Tn-2Frame triggering, wherein the UD value of a trigger signal mark is 2, and the flash lamp F2 is required to be triggered twice in a mode that the frame interval is 1, so that two flash frames are captured together; the burst flash frame correspondingly generated by the second triggering is YUV TnAnd YUV: Tn+2. The second snapshot time point triggered for the first time is the same as the second snapshot time point triggered for the second time, so the flash lamp control module fuses the YUV: T in the same framen+2The frame is formed by simultaneous flashing of F1 and F2, and the UD information in the frame following information of the frame is 1 and 2. According to the logic of UD technology correlation matching, the final matching result is as follows: YUV: Tn-1The carried UD information is 1 and is matched with the event 1 triggered for the first time; YUV: TnThe carried UD information is 2, and is matched with the event 1 triggered for the second time; YUV: Tn+2The carried UD information is 1 and 2, and is matched with the event 2 triggered for the first time and matched with the event 2 triggered for the second time, wherein trigger1 and trigger2 correspond to different trigger signals respectively.
The method reflects the requirement that the UD technology can correctly meet accurate matching, and can solve the matching problem between m groups of violation incidents with single vehicle misordering and n flashing frames; the problem of matching m groups of violation events generated by a plurality of vehicles in a wrong sequence with n flashing frames is solved.
It should be noted that, in practical applications, a lane is generally equipped with a flashlight. When multiple lane scenes are monitored, multiple flashing lights may be triggered by the simultaneous traffic passing in multiple lanes. The present embodiment is designed for flash neighborhood time binning in this case. Fig. 8 is a schematic diagram of an alternative event matching method according to an embodiment of the present invention, and as shown in fig. 8, fig. 8 describes processing logic of this type of situation. T isnThe second trigger at the moment needs to be linked with the flash lamps F1 and F2 at the same time, and F1 is delayed to be triggered again when the adjacent time is over due to the influence of the previous trigger; but F2 still remains at Tn+1The moment comes into effect. Finally, the second trigger is broken down into 2 separate triggers.
According to the embodiment, the accurate matching method of the uniqueData (UD for short) identification technology is used for solving the matching problem of the flash explosion frame and the violation event under the linkage flash explosion snapshot condition, and particularly can completely solve the matching problem of the flash explosion frame and the violation event under the linkage flash explosion snapshot condition of video detection. The precise matching can enable the snapshot position to be more stable and closer to the expectation of triggering, and the image effect is optimal when the event frame is sent to the feature detection in the vehicle window again.
In addition, the embodiment has strong realizability and wide applicability, and is not limited to be realized in a single camera. The method can also be suitable for the situation of master-slave mode linkage snapshot with a plurality of cameras after evolution, namely, the UD value of the linkage signal identification can be transmitted to the slave camera when the master camera is linked with the heavy camera, and the picture carrying the UD value is transmitted back to the master camera for matching after the heavy camera is snapshot.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an event matching device is further provided, and the event matching device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 9 is a block diagram of an alternative event matching apparatus according to an embodiment of the present invention, and as shown in fig. 9, the apparatus includes:
an acquiring module 902, configured to acquire a first picture captured with a flash;
a determining module 904, configured to determine first parameter information corresponding to the first picture, where the first parameter information is used to indicate an acquisition time identifier of the first picture;
a processing module 906, configured to determine a target event matching the first parameter information from a target event set, and associate the first picture with the target event.
As an optional solution, the apparatus is further configured to: determining a plurality of parameter information generated in advance based on a predetermined rule before acquiring a first picture acquired by using a flash lamp, wherein the value of the parameter information is unique within a predetermined time range; determining the first parameter information from the plurality of parameter information under the condition that the target event is detected to be generated; triggering the flash to flash based on the first parameter information to take the first picture.
As an optional solution, the apparatus is further configured to: after the first parameter information is determined from the plurality of parameter information, marking the target event by using the first parameter information; determining the target event matched with the first parameter information from the target event set comprises: determining an event marked with the first parameter information based on the parameter information marked on each event included in the target event set, and determining the determined event as a target event matched with the first parameter information.
As an alternative, the apparatus is configured to trigger the flash to take the first picture based on the first parameter information by: generating a first trigger signal based on the first parameter information; triggering the flash lamp to flash based on the first trigger signal to take an initial picture; and binding the first parameter information with the initial picture to obtain the first picture, and caching the first picture in a preset storage space according to the picture acquisition sequence.
As an alternative, the apparatus is configured to trigger the flash to take an initial picture based on the first trigger signal by: determining shooting parameters indicated by the first trigger signal, wherein the shooting parameters comprise shooting times and shooting intervals; and triggering the flash lamp to flash according to the shooting times and the shooting intervals so as to shoot the initial picture.
As an alternative, the apparatus is configured to trigger the flash to flash according to the shooting times and the shooting intervals to take the initial picture by: in a case where it is determined that the number of times of photographing is a plurality of times and it is determined that there is an initial picture of a target photographed within a power-back period of the flash based on the photographing interval, adjusting the photographing interval to photograph the initial picture of the target within a next light supplement period of the power-back period; and triggering the flash lamp to flash according to the adjusted shooting interval and the shooting times so as to shoot the initial picture, wherein the initial picture comprises the target initial picture.
As an optional solution, the apparatus is further configured to:
acquiring a first event indicating a first time to capture a picture using the flash and a second event indicating a second time to capture a picture using the flash, wherein the target event set comprises the first event and the second event;
acquiring a power-back time period of the flash lamp to obtain neighborhood time of the first time, wherein the neighborhood time is the sum of the first time and the duration of the power-back time period;
and when the second time is within the first neighborhood time, postponing the second time when the second event indicates that the picture is acquired by using the flash lamp to a next supplementary lighting time period after the power-back time period so as to take a second picture, wherein the second picture is a picture with the same parameter information as the second event.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a first picture shot under the condition of using a flash lamp;
s2, determining first parameter information corresponding to the first picture, wherein the first parameter information is used for representing the acquisition time identifier of the first picture;
and S3, determining a target event matched with the first parameter information from the target event set, and associating the first picture with the target event.
The computer readable storage medium is further arranged to store a computer program for performing the steps of:
s1, acquiring a first picture shot under the condition of using a flash lamp;
s2, determining first parameter information corresponding to the first picture, wherein the first parameter information is used for representing the acquisition time identifier of the first picture;
and S3, determining a target event matched with the first parameter information from the target event set, and associating the first picture with the target event.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a first picture shot under the condition of using a flash lamp;
s2, determining first parameter information corresponding to the first picture, wherein the first parameter information is used for representing the acquisition time identifier of the first picture;
and S3, determining a target event matched with the first parameter information from the target event set, and associating the first picture with the target event.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for matching events, comprising:
acquiring a first picture taken with a flash;
determining first parameter information corresponding to the first picture, wherein the first parameter information is used for representing an acquisition time identifier of the first picture;
and determining a target event matched with the first parameter information from a target event set, and associating the first picture with the target event.
2. The method of claim 1, wherein prior to acquiring the first picture taken with a flash, the method further comprises:
determining a plurality of parameter information generated in advance based on a preset rule, wherein the value of the parameter information is unique within a preset time range;
determining the first parameter information from the plurality of parameter information under the condition that the target event is detected to be generated;
triggering the flash to flash based on the first parameter information to take the first picture.
3. The method of claim 2,
after determining the first parameter information from the plurality of parameter information, the method further comprises: marking the target event by using the first parameter information;
determining the target event matched with the first parameter information from the target event set comprises: determining an event marked with the first parameter information based on the parameter information marked on each event included in the target event set, and determining the determined event as a target event matched with the first parameter information.
4. The method of claim 3, wherein triggering the flash to take the first picture based on the first parameter information comprises:
generating a first trigger signal based on the first parameter information;
triggering the flash lamp to flash based on the first trigger signal to take an initial picture;
and binding the first parameter information with the initial picture to obtain the first picture, and caching the first picture in a preset storage space according to the picture acquisition sequence.
5. The method of claim 4, wherein triggering the flash to take an initial picture based on the first trigger signal comprises:
determining shooting parameters indicated by the first trigger signal, wherein the shooting parameters comprise shooting times and shooting intervals;
and triggering the flash lamp to flash according to the shooting times and the shooting intervals so as to shoot the initial picture.
6. The method of claim 5, wherein triggering the flash to flash according to the number of shots and the shot interval to take the initial picture comprises:
in a case where it is determined that the number of times of photographing is a plurality of times and it is determined that there is an initial picture of a target photographed within a power-back period of the flash based on the photographing interval, adjusting the photographing interval to photograph the initial picture of the target within a next light supplement period of the power-back period;
and triggering the flash lamp to flash according to the adjusted shooting interval and the shooting times so as to shoot the initial picture, wherein the initial picture comprises the target initial picture.
7. The method of claim 2, further comprising:
acquiring a first event indicating a first time to capture a picture using the flash and a second event indicating a second time to capture a picture using the flash, wherein the target event set comprises the first event and the second event;
acquiring a power-back time period of the flash lamp to obtain neighborhood time of the first time, wherein the neighborhood time is the sum of the first time and the duration of the power-back time period;
and when the second time is within the first neighborhood time, postponing the second time when the second event indicates that the picture is acquired by using the flash lamp to a next supplementary lighting time period after the power-back time period so as to take a second picture, wherein the second picture is a picture with the same parameter information as the second event.
8. An apparatus for matching events, comprising:
an acquisition module for acquiring a first picture taken with a flash;
the determining module is used for determining first parameter information corresponding to the first picture, wherein the first parameter information is used for representing an acquisition time identifier of the first picture;
and the processing module is used for determining a target event matched with the first parameter information from a target event set and associating the first picture with the target event.
9. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method as claimed in any of claims 1 to 7 are implemented when the computer program is executed by the processor.
CN202110192726.XA 2021-02-20 2021-02-20 Event matching method and device, storage medium and electronic device Pending CN112906791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110192726.XA CN112906791A (en) 2021-02-20 2021-02-20 Event matching method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110192726.XA CN112906791A (en) 2021-02-20 2021-02-20 Event matching method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112906791A true CN112906791A (en) 2021-06-04

Family

ID=76124103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110192726.XA Pending CN112906791A (en) 2021-02-20 2021-02-20 Event matching method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112906791A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114758508A (en) * 2022-04-21 2022-07-15 重庆紫光华山智安科技有限公司 Multi-lane snapshot supplementary lighting control method, system, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114758508A (en) * 2022-04-21 2022-07-15 重庆紫光华山智安科技有限公司 Multi-lane snapshot supplementary lighting control method, system, equipment and medium
CN114758508B (en) * 2022-04-21 2023-09-22 重庆紫光华山智安科技有限公司 Multilane snapshot light supplementing control method, system, equipment and medium

Similar Documents

Publication Publication Date Title
CN101344988B (en) Image acquisition and processing equipment and method, vehicle monitoring and recording system
US11445150B2 (en) Multi-camera collaboration-based image processing method and video surveillance system
CN101373517A (en) Method and system for recognizing license plate
CN101893804A (en) Exposure control method and device
CN108805198A (en) Image processing method, device, computer readable storage medium and electronic equipment
CN111031254B (en) Camera mode switching method and device, computer device and readable storage medium
CN112399075B (en) Control method of light supplement lamp, monitoring equipment, electronic device and storage medium
CN113038084B (en) State identification method, device and system
CN112291477B (en) Multimedia information processing method, device, storage medium and electronic device
CN113177438B (en) Image processing method, device and storage medium
CN112906791A (en) Event matching method and device, storage medium and electronic device
CN112668642A (en) System and method for combining electronic identification and video of motor vehicle
KR101450119B1 (en) Method for controlling light module of camera and apparatus thereof
CN111797713A (en) License plate recognition method and photographing device
CN113657198A (en) Binocular living body face recognition method and device, electronic device and storage medium
CN113129581A (en) Vehicle information transmission system and method, storage medium, and electronic device
CN116057570A (en) Machine learning device and image processing device
CN112148769A (en) Data synchronization method, device, storage medium and electronic device
CN112446377A (en) Data processing method, data processing device and electronic equipment
CN115601738B (en) Parking information acquisition method, device, equipment, storage medium and program product
CN113888865B (en) Electronic device and vehicle information acquisition method
CN114359828A (en) Target behavior recording method, device, storage medium and electronic device
CN106604505A (en) Method and device for acquiring state information of specific lamp in multi-lamp illumination system by means of light flashing
CN109063622B (en) Positioning method and device
CN112887593B (en) Image acquisition method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination