Davis-oriented data calibration method and apparatus, electronic device, and medium

By generating video tags and matching the video and event data sequences collected by DAVIS, efficient event data calibration is achieved, which solves the problem of low calibration efficiency of event stream data and significantly improves calibration efficiency.

WO2024222188A1PCT designated stage expired Publication Date: 2024-10-31INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/078822
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-27
Filing Date
2024-02-27
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

The event stream data collected by DAVIS has high time resolution, resulting in a large amount of data and low manual calibration efficiency. It is difficult to efficiently calibrate event stream data with existing technology.

Method used

By acquiring the video data sequence and event data sequence collected by DAVIS, video tags are generated, the video data sequence is divided into sub-sequences, and the event data sequence is matched with the tags corresponding to the video sub-sequences to achieve automatic calibration of event data.

Benefits of technology

It improves the calibration efficiency of event data sequences, avoids the difficulty of manually calibrating a large number of event data one by one, and significantly improves the efficiency of the calibration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078822_31102024_PF_FP_ABST
    Figure CN2024078822_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of computers, and provide a DAVIS-oriented data calibration method and apparatus, an electronic device, and a medium. The method comprises: acquiring a video data sequence and an event data sequence that are collected on the basis of a DAVIS, wherein the amount of video frames comprised in the video data sequence is smaller than the amount of event data comprised in the event data sequence; on the basis of the video frames comprised in the video data sequence, generating a plurality of video tags for the video data sequence; on the basis of the plurality of video tags, dividing the video data sequence into a plurality of video sub-sequences, wherein different video sub-sequences correspond to different video tags; and determining, from a plurality of pieces of event data comprised in the event data sequence, event sub-sequences corresponding to the video sub-sequences, and determining the video tags corresponding to the video sub-sequences as event tags of the event sub-sequences so as to obtain a calibrated event data sequence. The present application improves the efficiency of calibrating the event data sequence.
Need to check novelty before this filing date? Find Prior Art

Description

Data calibration method, device, electronic device and medium for DAVIS

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on April 27, 2023, with application number 202310467898.2, and application name “Data calibration method, device, electronic device and medium for DAVIS”, all contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of computer technology, and in particular to a DAVIS-oriented data calibration method, device, electronic device, and medium. Background Art

[0004] In the field of computer technology, a dynamic and active vision sensor (DAVIS) is a visual sensor that can simultaneously capture video image data and event stream data. These two different modalities of data can be applied to multiple scenarios.

[0005] In some scenarios, it is usually necessary to calibrate these two types of data first. However, since DAVIS collects event stream data with a high temporal resolution and the amount of event stream data collected is usually large, it is difficult and inefficient to manually calibrate them one by one. Therefore, how to improve the calibration efficiency of event stream data has become an urgent problem that needs to be solved.

[0006] Summary of the Invention

[0007] The present application provides a DAVIS-oriented data calibration method, device, electronic device, and medium to solve the technical problem of low calibration efficiency of event stream data in the prior art.

[0008] In order to solve the above technical problems, this application is implemented as follows:

[0009] In a first aspect, the present application provides a DAVIS-oriented data calibration method, the method comprising:

[0010] Acquire a video data sequence and an event data sequence acquired based on DAVIS, wherein the number of video frames included in the video data sequence is less than the number of event data included in the event data sequence;

[0011] generating a plurality of video tags for the video data sequence based on each video frame included in the video data sequence;

[0012] Dividing a video data sequence into multiple video subsequences based on multiple video tags, where different video subsequences correspond to different video tags;

[0013] Each event subsequence corresponding to each video subsequence is determined from multiple event data included in the event data sequence, and a video tag corresponding to each video subsequence is determined as an event tag of each event subsequence to obtain a calibrated event data sequence.

[0014] In a second aspect, the present application provides a DAVIS-oriented data calibration device, comprising:

[0015] A sequence acquisition module is used to acquire a video data sequence and an event data sequence based on DAVIS acquisition, wherein the number of video frames included in the video data sequence is less than the number of event data included in the event data sequence;

[0016] a label generation module, configured to generate a plurality of video labels for the video data sequence based on each video frame contained in the video data sequence;

[0017] A division module, configured to divide a video data sequence into a plurality of video subsequences based on a plurality of video tags, wherein different video subsequences correspond to different video tags;

[0018] The determination module is used to determine each event subsequence corresponding to each video subsequence from multiple event data contained in the event data sequence, and determine the video label corresponding to each video subsequence as the event label of each event subsequence to obtain a calibrated event data sequence.

[0019] In a third aspect, the present application provides an electronic device comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the method of the first aspect is implemented when the processor executes the program.

[0020] In a fourth aspect, the present application provides a non-volatile readable storage medium, which, when the instructions in the non-volatile readable storage medium are executed by a processor of an electronic device, enables the electronic device to execute the method of the first aspect above.

[0021] In some embodiments of the present application, by acquiring a video data sequence and an event data sequence based on DAVIS acquisition, the number of video frames contained in the video data sequence is less than the number of event data contained in the event data sequence; based on the video frames contained in the video data sequence, multiple video labels are generated for the video data sequence; based on the multiple video labels, the video data sequence is divided into multiple video subsequences, and different video subsequences correspond to different video labels; from the multiple event data contained in the event data sequence, each event subsequence corresponding to each video subsequence is determined, and the video label corresponding to each video subsequence is determined as the event label of each event subsequence, so as to obtain a calibrated event data sequence. In this way, when calibrating two data sequences of different quantities collected by DAVIS, video labels can be generated for different video frames first to complete the calibration of the video data sequence with a smaller amount of data, and then the event data sequence can be calibrated through the video data sequence that has been calibrated. The event data sequence is divided into event subsequences corresponding to each video subsequence, and the video label corresponding to each video subsequence is determined as the event label of the corresponding event subsequence to complete the calibration of the event data sequence. There is no need to manually calibrate a large amount of event data in turn, which improves the efficiency of calibrating the event data sequence. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate some embodiments of the present application or technical solutions in the prior art, a brief introduction is given below to the drawings required for use in some embodiments or descriptions of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0023] FIG1 is a flowchart of a method for calibrating data for DAVIS provided in some embodiments of the present application;

[0024] FIG2 is a schematic diagram of a scenario provided by some embodiments of the present application;

[0025] FIG3 is a schematic diagram of a calibration process provided in some embodiments of the present application;

[0026] FIG4 is a schematic diagram of another scenario provided by some embodiments of the present application;

[0027] FIG5 is a structural diagram of a DAVIS-oriented data calibration device provided in some embodiments of the present application;

[0028] FIG6 is a structural diagram of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the accompanying drawings of some embodiments of the present application to clearly and completely describe the technical solutions of some embodiments of the present application. Obviously, some of the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on some embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of this application.

[0030] FIG1 is a flowchart of a method for calibrating data for DAVIS provided in some embodiments of the present application. As shown in FIG1 , the method may include:

[0031] Step 101: Acquire a video data sequence and an event data sequence based on DAVIS acquisition, wherein the number of video frames included in the video data sequence is smaller than the number of event data included in the event data sequence.

[0032] Among them, the above-mentioned DAVIS refers to a dynamic active vision sensor. It is different from a dynamic vision sensor (DVS) in that DVS only collects event data, while DAVIS can not only capture event data, but also collect RGB images containing absolute intensity information, that is, video frames. DAVIS can record the events that occur while recording RGB images. It can be understood that since two different types of data, video frame data and event data, can be obtained through the same DAVIS, there is no need to collect data separately through two devices. Therefore, in some embodiments of the present application, when data collection is performed by DAVIS, it starts and ends at the same time. In some embodiments of the present application, there is no problem of clock asynchrony between the video frame data and the event data. Among them, the above-mentioned event data can also be called event stream data, which refers to dynamic changes. The types of event data can be divided into event occurrence and event disappearance. Event occurrence is usually called a positive event, and event disappearance is usually called a negative event. Therefore, by obtaining event data, binary data can be obtained from real scenes.

[0033] FIG2 is a schematic diagram of a scenario provided by some embodiments of the present application. As shown in FIG2 , because DAVIS often has different acquisition frequencies or temporal resolutions for the two types of data, the frequency of acquiring event data is typically much higher than the frequency of acquiring images. As a result, within the same acquisition time t, the number of video frames acquired by DAVIS for the same scene is much smaller than the number of event data (pulse event streams). The temporal resolution refers to the time interval between data acquisitions. For example, DAVIS can achieve a temporal resolution of 1 microsecond for event data, while the temporal resolution for video frames is only 25 milliseconds. In other words, the frequency of acquiring event data is 10^6 FPS (Frames Per Second), while the frequency of acquiring video frames is only 40 FPS.

[0034] The video data sequence refers to a set of video frames collected during the acquisition time, and correspondingly, the event data sequence refers to a set of event data collected during the acquisition time. Specifically, this step enables DAVIS to collect data for the acquisition object, that is, to use DAVIS to record the acquisition object during the acquisition time, and obtain the recorded data, i.e., the video data sequence and event data sequence, through the output interface of DAVIS. The acquisition object can be set according to different actual scenarios, and some embodiments of the present application do not limit this.

[0035] Step 102: Generate multiple video tags for the video data sequence based on the video frames included in the video data sequence.

[0036] Step 103: Divide the video data sequence into multiple video subsequences based on multiple video tags, where different video subsequences correspond to different video tags.

[0037] Among them, the above-mentioned video tags can be understood as the content categories represented by the video frames. It can be understood that the picture content of different video frames may vary, so different video frames with large differences in picture content can correspond to different categories. Specifically, corresponding video tags can be generated for each video frame according to the content of each video frame. Different video frames can correspond to the same video tag, of course, they can also correspond to different video tags, which can be determined specifically according to the content of each video frame.

[0038] Specifically, the above-mentioned video labels can be obtained by using a preset content category recognition model and taking each video frame as the model input, or by using category recognition software or tools. Alternatively, since the video frame data actually refers to a three-channel image similar to RGB (various colors are obtained by changing the three color channels of red (R), green (G), and blue (B) and superimposing them on each other, RGB represents the colors of the three channels of red, green, and blue) collected by a traditional camera, the image data can be calibrated by visual recognition, so each video frame can also be output in sequence, and the video label of each video frame can be obtained by receiving the calibration information input by relevant personnel for each video frame.

[0039] Furthermore, after obtaining the video label of each video frame, some embodiments of the present application can divide the video frames corresponding to the same label into the same video subsequence. It should be noted that the video frames contained in the above-mentioned video data sequence are usually arranged in chronological order according to the time of acquisition, and the picture of the video frame usually changes little within a certain period of time, that is, the video labels of the video frames within this period are often the same, and the picture content of the video frames with a longer acquisition time interval usually changes greatly, and accordingly, the video labels are often different. Therefore, the video frames contained in any video subsequence are often continuous in the video data sequence.

[0040] Step 104: determine each event subsequence corresponding to each video subsequence from the multiple event data included in the event data sequence, and determine the video tag corresponding to each video subsequence as the event tag of each event subsequence to obtain a calibrated event data sequence.

[0041] Among them, because the number of event data in the same acquisition time is far greater than the number of video frames, and event data is a binary data, it is difficult to calibrate it from a visual perspective. However, because the event data sequence and the above-mentioned video data sequence are obtained simultaneously based on DAVIS, the event data and video frames are equivalent to different modal data representations of the same acquisition object. Therefore, in some embodiments of the present application, the event data sequence can be calibrated using the video data sequence that has been calibrated, eliminating the need to manually calibrate a large amount of event data in sequence.

[0042] Specifically, the above-mentioned operation of determining the event subsequence can be determined according to the timestamp of the video frame and the timestamp of the event data. Specifically, when DAVIS collects data, the recorded video frame or event data will carry a timestamp parameter, which can represent the collection time of the data, that is, the occurrence time of the recorded video frame or event data. It can be understood that the categories corresponding to the video frames and event data collected at the same time are also the same. Therefore, some embodiments of the present application can be based on the timestamp range of any video subsequence, and the event data with a timestamp in the timestamp range can be determined as the event subsequence corresponding to the video subsequence, and then the video tag corresponding to the video subsequence can be used as the event tag of the event subsequence. Different event subsequences correspond to different event tags, thereby realizing the calibration of the event data sequence.

[0043] In summary, some embodiments of the present application provide a DAVIS-oriented data calibration method, which obtains a video data sequence and an event data sequence collected based on DAVIS, wherein the number of video frames contained in the video data sequence is less than the number of event data contained in the event data sequence; generates multiple video labels for the video data sequence based on each video frame contained in the video data sequence; divides the video data sequence into multiple video subsequences based on the multiple video labels, and different video subsequences correspond to different video labels; determines each event subsequence corresponding to each video subsequence from the multiple event data contained in the event data sequence, and determines the video label corresponding to each video subsequence as the event label of each event subsequence to obtain a calibrated event data sequence. In this way, when calibrating two data sequences of different quantities collected by DAVIS, video labels can be generated for different video frames first to complete the calibration of the video data sequence with a smaller amount of data, and then the event data sequence can be calibrated through the video data sequence that has been calibrated. The event data sequence is divided into event subsequences corresponding to each video subsequence, and the video label corresponding to each video subsequence is determined as the event label of the corresponding event subsequence to complete the calibration of the event data sequence. There is no need to manually calibrate a large amount of event data in turn, which improves the efficiency of calibrating the event data sequence.

[0044] In some embodiments, the above operation of determining each event subsequence corresponding to each video subsequence from the multiple event data included in the event data sequence may include the following steps:

[0045] Step 201: Determine a target recording point based on event recording points of event data included in an event data sequence.

[0046] The above event data may contain multiple parameters when recorded. For example, an event data may be recorded as s(t j, x j ,y j , p j ), where j refers to the sequence number of the event data in the event data sequence. For example, if the event data sequence contains N event data, the j can be in the interval [1, N]. j Refers to the timestamp of the jth event data, that is, the event recording point. Taking the DAVIS acquisition time as T seconds as an example, the above t j It can be in the interval [0, T]. Its unit precision is consistent with the precision of DAVIS event data acquisition, usually in microseconds (μs). Correspondingly, the above x and y refer to the occurrence location of the event data, that is, the pixel coordinate location where the event occurred. Specifically, in the same scene at the same time, not all locations in the space acquired by DAVIS will have events. The video frame data records the entire space, while the event data only records the location where the event occurred. Therefore, when collecting event data, the location where the event occurred is also recorded. Its value range is related to the parameters of DAVIS itself. Taking the pixel coordinate range of DAVIS as (346*260) as an example, the value of x can be in the interval [1, 346]. Correspondingly, the value of y can be in the interval [1, 260]. Among them, the above y refers to the polarity of the event data. Its value is 0 or 1. 0 represents a negative polarity event, that is, a pulse event triggered by reduced light, and 1 represents a positive polarity event, that is, a pulse event triggered by increased light.

[0047] According to the above description, each event data will carry a timestamp parameter. The above event record point refers to the timestamp parameter, that is, the above t j , so that the number of event recording points in the event data sequence is consistent with the number of event data. Furthermore, each event recording point can actually represent the occurrence time of each event data. When DAVIS collects event data, each event data is arranged in sequence according to the time of occurrence, that is, the event that occurs first is recorded in the front, and the event that occurs later is recorded in the back. On this basis, the operation of determining the target recording point can be randomly selected from all event recording points, or it can be selected according to a preset selection rule. Some embodiments of the present application do not impose any restrictions on this.

[0048] Step 202: For any video subsequence, based on the marked time point and the target recording point of the video subsequence, determine the event segmentation point corresponding to the marked time point.

[0049] Step 203: Based on the event segmentation points corresponding to the marked time points of the video subsequence, the event data corresponding to the event segmentation points in the event data sequence are determined as the event subsequence corresponding to the video subsequence, and the event segmentation points correspond to the recording start point or the recording end point of the event subsequence.

[0050] Among them, the above-mentioned marked time point refers to the timestamp that can characterize the recording time corresponding to the video subsequence, which can be the starting time point or the ending time point of the video subsequence, and of course it can also be the starting time point and the ending time point. Specifically, the above-mentioned starting time point refers to the timestamp of the first video frame in the video subsequence, and accordingly, the above-mentioned ending time point refers to the timestamp of the last video frame in the video subsequence. It can be understood that the above-mentioned marked time point is the interval time point between different video subsequences, and the video frames before and after the above-mentioned marked time point belong to different video tags. Therefore, this application can use the marked time point of any video subsequence as a key point, compare it with the above-mentioned target recording point, and determine the event segmentation point corresponding to the marked time point.

[0051] The event segmentation point corresponding to the marked time point refers to a target recording point that is consistent with the marked time point, that is, the video frame corresponding to the marked time point is an event recording point of event data recorded at the same moment.

[0052] Furthermore, based on the event segmentation points corresponding to the marked time points of each video subsequence, multiple segmentation points for dividing event subsequences into different categories can be obtained. Different segmentation points correspond to the starting points or ending points of event subsequences of different categories. Therefore, each event segmentation point can be used as the recording starting point or recording ending point of the corresponding event subsequence to obtain the event subsequence corresponding to each video subsequence.

[0053] Specifically, when the marked time point is the starting time point of a video subsequence, the corresponding event segmentation point is the recording start point of the corresponding event subsequence. Correspondingly, when the marked time point is the ending time point of a video subsequence, the corresponding event segmentation point is the recording end point of the corresponding event subsequence. Furthermore, after determining each event segmentation point, the present application can determine the event data corresponding to the event segmentation point according to the duration of each video subsequence.

[0054] In some embodiments of the present application, a target recording point is determined based on the event recording points of the event data contained in the event data sequence; for any video subsequence, an event segmentation point corresponding to the marked time point is determined based on the marked time point of the video subsequence and the target recording point; based on the event segmentation point corresponding to the marked time point of the video subsequence, the event data corresponding to the event segmentation point in the event data sequence is determined as the event subsequence corresponding to the video subsequence, and the event segmentation point corresponds to the recording start point or recording end point of the event subsequence. In this way, the target recording point corresponding to the marked time point of each video subsequence is determined based on the event recording points of each event data and the marked time points of each video subsequence. By using the time points as the basis for comparison, the accuracy of the comparison can be guaranteed, thereby ensuring the accuracy of the calibration of the event data sequence.

[0055] Figure 3 is a schematic diagram of a calibration process provided by some embodiments of the present application. As shown in Figure 3, data is first collected based on the DAVIS device. The specific data may vary depending on the application target. The collected data is divided into two types, one is video frame data, and the other is pulse event stream data, that is, event data. The video frame data contains RGB three-channel images similar to traditional cameras. This type of data can be directly calibrated to obtain video frame labels, that is, video labels. After obtaining the video frame labels, the video data sequence can be divided into subsequences according to the labels to obtain marked time points of different subsequences. The event stream data is calibrated through these marked time points to obtain the labels of the pulse event stream.

[0056] In some embodiments, the above operation of determining the event segmentation point corresponding to the marked time point based on the marked time point and the target recording point of the video subsequence may further include the following steps in some embodiments of the present application:

[0057] Step 301: When the marked time point of the video subsequence is consistent with the target recording point, the target recording point is determined as the event segmentation point corresponding to the marked time point.

[0058] Step 302: When the marked time point of the video subsequence is inconsistent with the target recording point, the target recording point is re-determined from the event recording points based on the size of the marked time point and the target recording point, until there is a target recording point that is consistent with the marked time point of the video subsequence, and the target recording point is determined as the event segmentation point corresponding to the marked time point.

[0059] Step 303: If there is no target recording point that is consistent with the marked time point of the video subsequence, a target recording point whose absolute value of difference with the marked time point is not greater than a preset threshold is determined as the event segmentation point corresponding to the marked time point.

[0060] If the marked time point of a video subsequence matches the target recording point, this indicates that the event data corresponding to the target recording point and the video frame corresponding to the marked time point were recorded at the same time, and therefore, the categories they belong to are also the same. Correspondingly, if they do not match, this indicates that the event data corresponding to the target recording point and the video frame corresponding to the marked time point were recorded at different times, and therefore, the categories they belong to are likely inconsistent. In this case, the target recording point can be redefined.

[0061] Specifically, when re-determining the target recording point, it can be determined based on the size of the target recording point and the marked time point. When the difference between the two is large, it can be determined from the event recording point that is longer in time from the original target recording point. Correspondingly, when the difference between the two is small, it can be determined from the event recording point that is closer to the original target recording point, until the target recording point consistent with the above-mentioned marked time point is found, and the target recording point is determined as the event segmentation point.

[0062] It should be noted that due to the difference in time accuracy between the two types of data collected by DAVIS, the time accuracy of the event data sequence is much greater than that of the video data sequence. This results in two corresponding situations for the two types of data at the same time. One is that when the video frame is recorded, the event data is also recorded at the same time, and the other is that no event occurs at the time when the video frame is recorded. As a result, there is no event recording point in the event data sequence that is consistent with the above-mentioned marked time point, which makes it impossible to determine the event segmentation point.

[0063] Based on the above situation, some embodiments of the present application can pre-set a preset threshold value, which can also be called a scaling factor. When there is no target recording point in the event data sequence that is consistent with the above-mentioned marked time point, the target recording point whose absolute value of the difference with the marked time point is not greater than the preset threshold value can be used as the event segmentation point. Specifically, the above-mentioned preset threshold value can be determined based on the time resolution of the DAVIS event data collected, and the time resolution of the collected event data can be directly determined as the above-mentioned preset threshold value. For example, taking the time resolution of the DAVIS event data collected as 1μs as an example, the above-mentioned preset threshold value can also be set to 1μs. Specifically, since the time resolution of the collected event data is much higher than the time resolution of the collected video frames, the time difference between different video frames is greater than the time resolution of the collected event data. Therefore, the target recording point whose absolute value of the difference with the marked time point is not greater than the preset threshold value is closer to the marked time point, and thus the corresponding category should also be the same. Therefore, the target recording point can be directly used as the event segmentation point.

[0064] In some embodiments of the present application, when the marked time point of the video subsequence is consistent with the target recording point, the target recording point is determined as the event segmentation point corresponding to the marked time point; when the marked time point of the video subsequence is inconsistent with the target recording point, the target recording point is re-determined from the event recording points based on the size of the marked time point and the target recording point, until there is a target recording point that is consistent with the marked time point of the video subsequence, the target recording point is determined as the event segmentation point corresponding to the marked time point; when there is no target recording point that is consistent with the marked time point of the video subsequence, the target recording point whose absolute value of the difference with the marked time point is not greater than a preset threshold is determined as the event segmentation point corresponding to the marked time point. In this way, by comparing the marked time point with the target recording point, the accuracy of the comparison is guaranteed. By setting a preset threshold, the problem of being unable to determine the event segmentation point due to the difference in time resolution between the video frame and the event data can be avoided, thereby ensuring that the event segmentation point corresponding to each marked time point can be determined, and ensuring the smooth completion of the event data sequence calibration.

[0065] In some embodiments, the operation of determining the target recording point based on the event recording point of the event data included in the event data sequence may specifically include:

[0066] Step 401: Determine an intermediate recording point among the event recording points as a target recording point; the intermediate recording point is an event recording point whose recording time is at an intermediate moment among the event recording points.

[0067] The above-mentioned operation of re-determining the target recording point from each event recording point based on the size of the marked time point and the target recording point may specifically include the following steps in some embodiments of the present application:

[0068] Step 402: When the marked time point is greater than the target recording point, a middle recording point among the event recording points greater than the target recording point is re-determined as the target recording point.

[0069] And, in step 403, when the marked time point is smaller than the target recording point, the middle recording point among the event recording points smaller than the target recording point is re-determined as the target recording point.

[0070] Specifically, when the marked time point is greater than the target recording point, it indicates that the video frame corresponding to the marked time point is recorded after the target recording point, so that the target recording point can be re-determined from the event recording point located after the original target recording point. Correspondingly, when the marked time point is less than the target recording point, it indicates that the video frame corresponding to the marked time point is recorded before the target recording point, so that the target recording point can be re-determined from the event recording point located before the original target recording point.

[0071] Specifically, in order to improve the efficiency of determining event segmentation points, some embodiments of the present application use the idea of ​​binary search to determine the event recording point at the middle moment in the event recording points as the target recording point. This can greatly reduce the time required to determine the event segmentation point and reduce the time complexity.

[0072] In some embodiments of the present application, an intermediate recording point among event recording points is determined as a target recording point; an intermediate recording point is an event recording point whose recording time is at an intermediate moment among the event recording points; if the marked time point is greater than the target recording point, the intermediate recording point among the event recording points greater than the target recording point is re-determined as the target recording point; and if the marked time point is less than the target recording point, the intermediate recording point among the event recording points less than the target recording point is re-determined as the target recording point. In this way, by using the concept of binary search, the intermediate recording point is determined as the target recording point, which can greatly reduce the time required to determine the event segmentation point and further improve the efficiency of calibrating the event data sequence.

[0073] In some embodiments, the marked time points include a start time point and an end time point. The operation of determining the event data corresponding to the event segmentation points in the event data sequence as the event subsequence corresponding to the video subsequence based on the event segmentation points of the marked time points may include the following steps in some embodiments of the present application:

[0074] Step 501: Determine the event segmentation point corresponding to the start time point in the marked time point as the recording start point of the event subsequence corresponding to the marked time point, and determine the event segmentation point corresponding to the end time point in the marked time point as the recording end point of the event subsequence corresponding to the marked time point.

[0075] Step 502: Based on the event recording points of the event data contained in the event data sequence, event data whose event recording points are not greater than the recording end point corresponding to the marked time point and not less than the recording start point corresponding to the marked time point are determined as the event subsequence corresponding to the video subsequence.

[0076] Among them, when the marked time point includes a starting time point and an ending time point, the event segmentation points corresponding to the starting time point and the ending time point can be determined respectively. Accordingly, the event segmentation point corresponding to the starting time point corresponds to the recording start point of the event subsequence, and the event segmentation point corresponding to the ending time point corresponds to the recording end point of the event subsequence. Therefore, from the event data contained in the event data sequence, the event data whose event recording point is between the recording start point and the recording end point can be taken as the event subsequence corresponding to the video subsequence.

[0077] In some embodiments of the present application, the marked time point includes a starting time point and an ending time point; the event segmentation point corresponding to the starting time point in the marked time point is determined as the recording start point of the event subsequence corresponding to the marked time point, and the event segmentation point corresponding to the ending time point in the marked time point is determined as the recording end point of the event subsequence corresponding to the marked time point; based on the event recording points of the event data contained in the event data sequence, the event data whose event recording point is not greater than the recording end point corresponding to the marked time point and not less than the recording start point corresponding to the marked time point is determined as the event subsequence corresponding to the video subsequence. In this way, for any video subsequence, the starting and ending time points of the event subsequence corresponding to the video subsequence can be determined by the starting and ending time points of the video subsequence, thereby improving the accuracy of determining the event subsequence.

[0078] In some embodiments, some embodiments of the present application may further include the following steps:

[0079] Step 601: In the absence of a target recording point whose absolute value of difference with the marked time point is not greater than a preset threshold, the preset threshold is updated according to a preset increment, and the operation of determining the target recording point whose absolute value of difference with the marked time point is not greater than the preset threshold as the event segmentation point corresponding to the marked time point is re-executed.

[0080] Among them, the above-mentioned preset increment can also be called a scaling step. Specifically, since the time resolution of event data is much higher than the time resolution of video frames, there is still a situation where there is no target recording point whose absolute value of the difference with the marked time point is not greater than the preset threshold. In this case, in some embodiments of the present application, a preset increment can be set to update the preset threshold. When the event segmentation point still cannot be determined by the original preset threshold, the preset threshold is increased by the preset increment, which is equivalent to further increasing the judgment condition and using the increased preset threshold to re-determine the event segmentation point.

[0081] Specifically, the above-mentioned preset increment can also be determined based on the time resolution of the event data collected by DAVIS. Of course, it can also be set according to the actual requirements of the calibration accuracy. When the calibration accuracy requirement is high, a smaller preset increment is set. When the calibration accuracy requirement is not high, a larger preset increment is set. Some embodiments of the present application do not limit this.

[0082] In the embodiment of the present application, if there is no target recording point whose absolute difference from the marked time point is not greater than the preset threshold, the preset threshold is updated according to the preset increment, and the operation of determining the target recording point whose absolute difference from the marked time point is not greater than the preset threshold as the event segmentation point corresponding to the marked time point is re-executed. In this way, by setting the preset increment to update the preset threshold, the flexibility of event segmentation point determination is improved.

[0083] In some embodiments, in some embodiments of the present application, marking a time point includes an end time point, and determining the event data corresponding to the event segmentation point in the event data sequence as an event subsequence corresponding to the video subsequence. In some embodiments of the present application, the operation may specifically include the following steps:

[0084] Step 701: Determine the event segmentation point corresponding to the termination time point as the recording end point of the event subsequence corresponding to the marked time point, and determine the event segmentation point corresponding to the previous termination time point as the recording start point of the event subsequence corresponding to the marked time point; the previous termination time point is the marked time point of the previous video subsequence of the video subsequence.

[0085] Step 702: Based on the event recording points of the event data contained in the event data sequence, event data whose event recording points are not greater than the recording end point corresponding to the marked time point and not less than the recording start point corresponding to the marked time point are determined as the event subsequence corresponding to the video subsequence.

[0086] Among them, the above-mentioned marked time points may only include the termination time points. In this case, each video subsequence is equivalent to being obtained by segmenting through each termination time point, that is, the termination time point of the previous video subsequence is equivalent to the starting time point of the next video subsequence. Therefore, in some embodiments of the present application, only the termination time point can be used as the marked time point, and the event segmentation point corresponding to the termination time point can be used as the recording end point of the event subsequence, and the termination time point of the previous video subsequence can be used as the recording start point of the event subsequence.

[0087] Furthermore, from the event data included in the event data sequence, event data whose event recording points are between the recording start point and the recording end point can be taken as the event subsequence corresponding to the video subsequence.

[0088] In some embodiments of the present application, the marked time point includes an end time point; the event segmentation point corresponding to the end time point is determined as the recording end point of the event subsequence corresponding to the marked time point, and the event segmentation point corresponding to the previous end time point is determined as the recording start point of the event subsequence corresponding to the marked time point; the previous end time point is the marked time point of the previous video subsequence of the video subsequence; based on the event recording points of the event data contained in the event data sequence, the event data whose event recording point is not greater than the recording end point corresponding to the marked time point and not less than the recording start point corresponding to the marked time point is determined as the event subsequence corresponding to the video subsequence. In this way, the corresponding event segmentation point can be determined only by the end time point of each video subsequence, without using the start time point and end time point of the video subsequence to determine the corresponding event segmentation point respectively, thereby further improving the calibration efficiency.

[0089] In some embodiments, some embodiments of the present application may further include the following steps:

[0090] Step 801: Determine the event recording point of the first event data in the event data sequence as the recording start point of the first event subsequence.

[0091] Step 802: Determine the event recording point of the last event data in the event data sequence as the recording end point of the last event subsequence.

[0092] Among them, since the temporal resolution of event data is different from that of video frames, the number of event data is much larger than the number of video frames. In this case, DAVIS may have collected several event data before the first video frame was collected and after the last video frame was collected. At this time, if the corresponding event subsequence is determined only by the starting time point and / or ending time point of each video subsequence, some event data may not be calibrated.

[0093] Therefore, based on the aforementioned operations, some embodiments of the present application can directly use the event recording point of the first event data as the recording start point of the first event subsequence, and correspondingly use the event recording point of the last event data as the recording end point of the last event subsequence, to ensure that each event data in the event data sequence can be calibrated.

[0094] In the embodiment of the present application, the event recording point of the first event data in the event data sequence is determined as the recording start point of the first event subsequence, and the event recording point of the last event data in the event data sequence is determined as the recording end point of the last event subsequence. This avoids the problem of some event data not being calibrated due to the different temporal resolutions of the event data and the video frames, ensures that each event data in the event data sequence can be calibrated, and improves the calibration effect.

[0095] In some embodiments, the above-mentioned operation of obtaining the video data sequence and event data sequence acquired based on DAVIS may specifically include:

[0096] Step 901: collect data on the target object through DAVIS to obtain collected data.

[0097] Step 902: Acquire collected data through the output interface of DAVIS to obtain a video data sequence and an event data sequence.

[0098] Some embodiments of the present application can be applied to any computer device, thereby connecting the computer device to the output interface of DAVIS, triggering DAVIS to collect data of a target object through the computer device or other preset controls, and obtaining the collected data through the output interface to obtain the above-mentioned video data sequence and event data sequence. The above-mentioned target object can be a person, an animal, or of course other objects, and can be set according to actual needs. Some embodiments of the present application are not limited to this.

[0099] Specifically, the output interface refers to an interface that outputs data in the .aedat4 format. This interface can be configured based on the actual DAVIS environment, and some embodiments of this application are not limited thereto. Furthermore, the collected data includes video frame sets and event data sets recorded in different ways. The video frame sets can be used as the video data sequence, and the event data sets can be used as the event data sequence.

[0100] In some embodiments of the present application, data is collected from a target object using DAVIS to obtain collected data; the collected data is then accessed through the DAVIS output interface to obtain a video data sequence and an event data sequence. Thus, the video data sequence and the event data sequence collected by DAVIS for the target object can be obtained simultaneously through the DAVIS output interface.

[0101] In some embodiments, the preset threshold is determined based on the time resolution of the DAVIS event data. When the time resolution is in microseconds, the value range of the preset threshold is 2 to 5 microseconds.

[0102] The above-mentioned preset threshold has a certain impact on the calibration efficiency. If it is set too small, the calibration process will take too long. If it is set too large, the calibration will be inaccurate. It should be noted that the time resolution of DAVIS event data is often in the microsecond level. On this basis, the above-mentioned preset threshold can also be set to the microsecond level. The specific setting can vary depending on the configuration of the DAVIS used. After multiple calibration experiments on the microsecond-level DAVIS, the calibration effect is better when the above-mentioned preset threshold is set between 2 and 5 microseconds. Among them, the preset threshold of 3 microseconds has the best effect.

[0103] In some embodiments of the present application, the preset threshold is determined based on the time resolution of the event data collected by DAVIS. In this way, while being able to determine the event segmentation point, it is ensured that the difference between the determined event segmentation point and the marked time point is not too large, thereby ensuring the accuracy of event data calibration.

[0104] In some embodiments, the operation of collecting data on the target object through DAVIS may include the following steps:

[0105] Step 1001: Use DAVIS to collect data representing different types of target objects in sequence.

[0106] The above operation of generating multiple video tags for the video data sequence based on each video frame included in the video data sequence may include the following steps in some embodiments of the present application:

[0107] Step 1002: Based on the types represented by the target objects contained in each video frame in the video data sequence, generate multiple video tags for the video data sequence, where one video tag corresponds to one type.

[0108] The above different types can be set according to actual demand scenarios and target objects. Different types of target objects can be pre-configured and represented. DAVIS is used to collect different types of target objects in sequence to obtain multiple samples, with each sample corresponding to each type of target object. The order in which the different types of target objects are collected can be pre-set, and the types of target objects can be pre-sorted so that the final sample sorting is consistent with the type sorting.

[0109] Furthermore, since the above-mentioned video data sequence is obtained by sequentially collecting different types of target objects, the category of the target object contained in each video frame in the video data sequence can represent the type of the picture content of the video frame. Therefore, some embodiments of the present application can directly use the type of target object as the video label of the corresponding video frame, so that video frames containing target objects of the same type can constitute a video subsequence.

[0110] In some embodiments of the present application, DAVIS sequentially collects data representing different types of target objects. Based on the types of target objects represented by each video frame in the video data sequence, multiple video labels are generated for the video data sequence, with one video label corresponding to each type. In this way, by sequentially collecting data representing different types of target objects, video labels can be directly generated for the video frames based on the types represented by the target objects, thereby improving the efficiency of calibrating the video data sequence.

[0111] In some embodiments, the target object is a human body object representing different postures.

[0112] The different postures described above refer to different human forms, which vary depending on the human subject and can be set according to actual application requirements. Some embodiments of this application do not limit this. For example, taking the human subject as a human limb as an example, the different postures described above may include different human forms such as walking, squatting, and kneeling. Another example is taking the human subject as a human hand as an example, the different postures described above may include different gestures such as clenching a fist, opening an arm, clapping, etc.

[0113] In some embodiments of the present application, the target object is a human object representing different postures. In this way, by collecting human objects in different postures, video data sequences and event data sequences for the human objects can be obtained, and the calibrated video data sequences and event data sequences can be further applied to the scenario of human posture recognition.

[0114] In some embodiments, some embodiments of the present application may further include the following steps:

[0115] Step 1101: In the absence of a target recording point whose absolute value of difference with the marked time point is not greater than the updated preset threshold, the preset increment is updated, and the current preset threshold is updated according to the updated preset increment, and the operation of determining the target recording point whose absolute value of difference with the marked time point is not greater than the preset threshold as the event segmentation point corresponding to the marked time point is re-executed.

[0116] Among them, in the case that there is no target recording point whose absolute value of the difference with the marked time point is not greater than the updated preset threshold, in some embodiments of the present application, the preset increment can be further updated. When the event segmentation point still cannot be determined by the original preset threshold, the preset threshold is further increased by the updated preset increment, which is equivalent to further increasing the judgment condition and using the increased preset threshold to re-determine the event segmentation point.

[0117] Specifically, the above-mentioned operation of updating the preset increment can be set by yourself. For example, a unit increment can be set for the preset increment, and the preset increment can be updated according to the set unit increment. Of course, other methods are also possible, and some embodiments of the present application do not limit this.

[0118] In some embodiments of the present application, if there is no target recording point whose absolute difference from the marked time point is not greater than the updated preset threshold, the preset increment is updated, the current preset threshold is updated according to the updated preset increment, and the operation of re-determining the target recording point whose absolute difference from the marked time point is not greater than the preset threshold as the event segmentation point corresponding to the marked time point is re-executed. In this way, the flexibility of event segmentation point determination is further improved.

[0119] In some embodiments, the above-mentioned operation of generating multiple video tags for the video data sequence based on each video frame included in the video data sequence may include the following steps in some embodiments of the present application:

[0120] Step 1201: Output each video frame in chronological order.

[0121] Step 1202: Receive input information generated by the user for each video frame based on the output video frame, and determine a video tag corresponding to each video frame based on the input information.

[0122] The time sequence refers to the order of the acquisition time of each video frame, which can be determined according to the timestamp size of each video frame. The user refers to the relevant technical personnel.

[0123] Furthermore, the video frames contained in the video data sequence can be output in sequence according to the above-mentioned time order. The user can generate a label for each video frame based on the picture content of the output video frame, and input the generated label through a preset input component, so that the video label of each video frame can be obtained by receiving the user's input information.

[0124] In some embodiments of the present application, each video frame is output sequentially in chronological order; input information generated by the user for each video frame based on the output video frames is received, and a video label corresponding to each video frame is determined based on the input information. In this way, by outputting each video frame sequentially, the video label generated by the user for each video frame can be obtained, and the calibration of each video frame is completed, thereby improving the accuracy of the video data sequence calibration.

[0125] In some embodiments, the above operation of dividing the video data sequence into multiple video subsequences based on multiple video tags may include the following steps in some embodiments of the present application:

[0126] Step 1301: Determine a number of video frames corresponding to the same video tag in a video data sequence as a video subsequence.

[0127] Specifically, the picture contents contained in the video frames corresponding to the same video tag belong to the same category. Therefore, some embodiments of the present application can divide the video frames corresponding to the same video tag into a video subsequence, so that multiple video subsequences can be obtained according to multiple video tags.

[0128] In some embodiments of the present application, by determining a plurality of video frames corresponding to the same video tag in a video data sequence as a video subsequence, multiple video subsequences can be obtained based on multiple video tags, thereby achieving calibration of the video data sequence.

[0129] In some embodiments, some embodiments of the present application may further include the following steps:

[0130] Step 1401: For any video subsequence and event subsequence corresponding to the video subsequence, obtain a video feature vector based on video frames in the video subsequence, and obtain an event feature vector based on event data in the event subsequence.

[0131] Step 1402: Obtain a fusion vector based on the video feature vector and the event feature vector, and input the fusion vector into the posture recognition model to be trained to obtain a posture recognition result of the posture recognition model to be trained.

[0132] Step 1403: Based on the gesture recognition results, the video labels of the video subsequences or the event labels of the event subsequences, the gesture recognition model to be trained is trained to obtain a target recognition model. The target recognition model is used to generate recognition results based on the video data to be recognized and the event data to be recognized.

[0133] The posture recognition model to be trained can be in the field of posture recognition. The model to be trained for posture recognition can be pre-built, or it can be a recognition model whose posture recognition effect does not meet the recognition requirements. The posture recognition model to be trained can be set according to actual needs, and some embodiments of this application do not limit this. The video data to be recognized and the event data to be recognized can be video data or event data collected for different postures, and some embodiments of this application do not limit this.

[0134] Specifically, after obtaining the calibrated video subsequence and event subsequence, any video subsequence and the event subsequence corresponding to the video subsequence can be used as multimodal input data. The video frame data can be encoded into a video feature vector, and the event data can be encoded into an event feature vector. The two vectors are fused and input into the posture recognition model to be trained. By obtaining the output result of the posture recognition model to be trained, the posture recognition result of the fused vector by the model to be trained is obtained. Among them, the above-mentioned video feature vector can be obtained by forward reasoning the video frames in the video subsequence through a video feature extraction network (for example, a 3D convolutional network, 3D ConvNets, C3D network), and the above-mentioned event feature vector can be obtained by feature extraction of the event data in the event subsequence through a pulse neural network. The above-mentioned fusion operation can be obtained by splicing the two vectors and then processing them through two layers of fully connected layers.

[0135] In some embodiments, when the above-mentioned posture recognition model to be trained includes vectorization processing and fusion processing of the original data, the video frame data and event data can also be directly input into the model. Some embodiments of the present application only show one of the situations, and the specific settings can be made according to actual needs.

[0136] Furthermore, the above-mentioned posture recognition results are used to characterize the types recognized by the posture recognition model to be trained as video subsequences and event subsequences. Some embodiments of the present application can train the posture recognition model to be trained based on the above-mentioned posture recognition results and the differences between the video labels of the video subsequences or the event labels of the event subsequences to obtain a target recognition model that meets the recognition requirements, so that the target recognition model can be applied to actual posture recognition scenarios.

[0137] It should be noted that since the target recognition model is trained based on two different modalities of data, video frame data and event data, and multimodal data can enhance the effectiveness of data through fusion, thereby improving the effectiveness of model training, a target recognition model with higher posture recognition accuracy can be obtained.

[0138] In some embodiments of the present application, for any video subsequence and any event subsequence corresponding to the video subsequence, a video feature vector is obtained based on the video frames in the video subsequence, and an event feature vector is obtained based on the event data in the event subsequence; a fusion vector is obtained based on the video feature vector and the event feature vector, and the fusion vector is input into a posture recognition model to be trained to obtain a posture recognition result for the posture recognition model to be trained; and the posture recognition model to be trained is trained based on the posture recognition result and the video label of the video subsequence or the event label of the event subsequence to obtain a target recognition model, which is used to generate a recognition result based on the video data to be recognized and the event data to be recognized. In this way, the video feature vector and the event feature vector are obtained based on the video subsequence and the event subsequence, and the two vectors are fused so that the posture recognition model to be trained obtains a posture recognition result based on the fusion vector. The posture recognition model to be trained is then trained based on the posture recognition result and the video label or event label. By processing the posture recognition model using multimodal data, the validity of the data can be enhanced, thereby improving the validity of model training and obtaining a target recognition model with high posture recognition accuracy.

[0139] In some embodiments, the operation of training the posture recognition model to be trained based on the posture recognition results, the video labels of the video subsequence, or the event labels of the event subsequence may include the following steps in some embodiments of the present application:

[0140] Step 1501: Based on the difference between the gesture recognition result and the video label or event label, the training parameters of the gesture recognition model to be trained are adjusted, and the training is continued based on the adjusted gesture recognition model to be trained until the training stop condition is met. The gesture recognition model to be trained at the end of the training is determined as the target recognition model.

[0141] Specifically, the above-mentioned adjustment of the training parameters can be performed based on the difference between the posture recognition result and the video label or event label. Based on the difference, the model parameters of the posture recognition model to be trained are adjusted and training is continued until the above-mentioned training stop condition is reached. The above-mentioned difference refers to the difference between the posture recognition result and the video label, or the difference between the posture recognition result and the event label. Specifically, the similarity between the posture recognition result and the video label (event label) can be obtained by using a cosine similarity algorithm or other similarity algorithm, and then the above-mentioned difference is obtained by the similarity. It can be understood that similarity and difference are two opposite characterization parameters. Therefore, the difference can be obtained by subtracting the similarity from 1.

[0142] Among them, the above-mentioned training stop condition can be that the training time reaches a preset time, or the number of model parameter adjustments reaches a preset number of times, or the preset loss function value reaches a threshold, etc. The embodiment of the present disclosure does not limit this. When the training stop condition is reached, it is determined that the training of the posture recognition model to be trained is completed.

[0143] In some embodiments of the present application, the training parameters of the posture recognition model to be trained are adjusted based on the difference between the posture recognition results and the video labels or event labels, and training is continued based on the adjusted posture recognition model to be trained until a training stop condition is met. The posture recognition model to be trained at the end of training is then determined as the target recognition model. In this way, by adjusting the training parameters of the posture recognition model to be trained based on the posture recognition results, video labels, or event labels, the training of the posture recognition model to be trained can be completed, and a target recognition model that meets the requirements can be obtained.

[0144] Figure 4 is another scenario diagram provided by some embodiments of the present application. Taking the time resolution of DAVIS in collecting event data as 1 microsecond as an example, the event data collected in 66 seconds may reach one million, or more. Figure 4 is a visualization of event data containing more than one million. As shown in Figure 4, it is obviously difficult to calibrate millions of event data and the efficiency is extremely low.

[0145] Some embodiments of the present application can complete the calibration of the event data sequence by completing the calibration of the video data sequence corresponding to M video tags, the scaling factor α and the scaling step size β. Specifically, since the time when the first frame of the video frame is captured is different from the time when the first pulse is emitted (corresponding to the occurrence of the event), the beginning and the end are determined first, that is, the time when the first pulse is emitted and the time when the last pulse is emitted are the beginning and the end of the corresponding video frame annotation data, so that M video tags can correspond to M-1 timestamps t g , that is, the interval timestamps between different video subsequences, according to the timestamps M-1 corresponding to the M categories, start to sort s(t j , x j ,y j , p j ) j Perform binary search on the ordered sequence composed of g =t j ), then record the t j The corresponding t g as event split point, otherwise start the search for the scaling factor.

[0146] After adding the scaling factor, the original judgment condition changes from t g =t j Relax to g -t j |<α, where |x| represents the absolute value of x. If the scaling factor is added and still no hit is found, the scaling factor is updated to α=α+β and the search is continued until M-1 search results are returned. g -t j |<α.

[0147] Furthermore, by combining the returned M-1 event segmentation points with the previously determined start and end timestamps, the event data sequence can be segmented into M segments according to the event segmentation points, thereby completing the calibration of the event data sequence.

[0148] FIG5 is a structural diagram of a DAVIS-oriented data calibration device provided in some embodiments of the present application. The device 200 may include:

[0149] A sequence acquisition module 2001 is configured to acquire a video data sequence and an event data sequence acquired based on DAVIS, wherein the number of video frames included in the video data sequence is smaller than the number of event data included in the event data sequence;

[0150] a label generation module 2002 for generating a plurality of video labels for a video data sequence based on each video frame included in the video data sequence;

[0151] A division module 2003 is configured to divide the video data sequence into multiple video subsequences based on multiple video tags, where different video subsequences correspond to different video tags;

[0152] The determination module 2004 is used to determine each event subsequence corresponding to each video subsequence from the multiple event data contained in the event data sequence, and determine the video tag corresponding to each video subsequence as the event tag of each event subsequence to obtain a calibrated event data sequence.

[0153] In some embodiments, the determination module 2004 includes:

[0154] A first determining submodule is configured to determine a target recording point based on event recording points of event data included in the event data sequence;

[0155] A second determination submodule is configured to determine, for any video subsequence, based on the marked time point and the target recording point of the video subsequence, an event segmentation point corresponding to the marked time point;

[0156] The third determination submodule is used to determine the event data corresponding to the event segmentation point in the event data sequence as the event subsequence corresponding to the video subsequence based on the event segmentation point corresponding to the marked time point of the video subsequence, and the event segmentation point corresponds to the recording start point or recording end point of the event subsequence.

[0157] In some embodiments, the second determining submodule is specifically configured to:

[0158] When the marked time point of the video subsequence is consistent with the target recording point, the target recording point is determined as the event segmentation point corresponding to the marked time point;

[0159] In the case where the marked time point of the video subsequence is inconsistent with the target recording point, the target recording point is re-determined from the event recording points based on the size of the marked time point and the target recording point until a target recording point that is consistent with the marked time point of the video subsequence exists, and the target recording point is determined as the event segmentation point corresponding to the marked time point;

[0160] In the case that there is no target recording point that is consistent with the marked time point of the video subsequence, a target recording point whose absolute value of difference with the marked time point is not greater than a preset threshold is determined as the event segmentation point corresponding to the marked time point.

[0161] In some embodiments, the first determining submodule is specifically configured to: determine an intermediate recording point among the event recording points as a target recording point; the intermediate recording point is an event recording point whose recording time is at an intermediate moment among the event recording points;

[0162] The second determination submodule is further configured to:

[0163] In the case where the marked time point is greater than the target recording point, the middle recording point among the event recording points greater than the target recording point is re-determined as the target recording point;

[0164] Furthermore, in a case where the marking time point is smaller than the target recording point, an intermediate recording point among the event recording points smaller than the target recording point is re-determined as the target recording point.

[0165] In some embodiments, the marked time point includes a start time point and an end time point; the fourth determination submodule is specifically configured to:

[0166] Determine the event segmentation point corresponding to the start time point in the marked time point as the recording start point of the event subsequence corresponding to the marked time point, and determine the event segmentation point corresponding to the end time point in the marked time point as the recording end point of the event subsequence corresponding to the marked time point;

[0167] Based on the event recording points of the event data contained in the event data sequence, the event data whose event recording points are not greater than the recording end point corresponding to the marked time point and not less than the recording start point corresponding to the marked time point is determined as the event subsequence corresponding to the video subsequence.

[0168] In some embodiments, the apparatus 200 further includes:

[0169] The threshold update module is used to update the preset threshold according to the preset increment when there is no target recording point whose absolute value of difference with the marked time point is not greater than the preset threshold, and re-execute the operation of determining the target recording point whose absolute value of difference with the marked time point is not greater than the preset threshold as the event segmentation point corresponding to the marked time point.

[0170] In some embodiments, the marked time point includes a termination time point; the fourth determination submodule is specifically configured to:

[0171] Determine the event segmentation point corresponding to the end time point as the recording end point of the event subsequence corresponding to the marked time point, and determine the event segmentation point corresponding to the previous end time point as the recording start point of the event subsequence corresponding to the marked time point; the previous end time point is the marked time point of the previous video subsequence of the video subsequence;

[0172] Based on the event recording points of the event data contained in the event data sequence, the event data whose event recording points are not greater than the recording end point corresponding to the marked time point and not less than the recording start point corresponding to the marked time point is determined as the event subsequence corresponding to the video subsequence.

[0173] In some embodiments, the apparatus 200 further includes:

[0174] a start determination module, configured to determine an event recording point of the first event data in the event data sequence as a recording start point of the first event subsequence;

[0175] The end determination module is used to determine the event recording point of the last event data in the event data sequence as the recording end point of the last event subsequence.

[0176] In some embodiments, the sequence acquisition module 2001 includes:

[0177] The acquisition submodule is used to collect data from the target object through DAVIS to obtain the collected data;

[0178] The acquisition submodule is used to acquire the collected data through the output interface of DAVIS to obtain the video data sequence and the event data sequence.

[0179] In some embodiments, the preset threshold is determined based on the time resolution of the DAVIS event data. When the time resolution is in the microsecond level, the preset threshold has a value range of 2 to 5 microseconds.

[0180] In some embodiments, the acquisition submodule is specifically configured to: sequentially acquire data representing different types of target objects using DAVIS;

[0181] The label generation module 2002 is specifically configured to generate a plurality of video labels for the video data sequence based on the types represented by the target objects contained in each video frame in the video data sequence, where one video label corresponds to one type.

[0182] In some embodiments, the target object is a human body object representing different postures.

[0183] In some embodiments, the apparatus 200 further includes:

[0184] The incremental update module is used to update the preset increment when there is no target recording point whose absolute value of difference with the marked time point is not greater than the updated preset threshold, update the current preset threshold according to the updated preset increment, and re-execute the operation of determining the target recording point whose absolute value of difference with the marked time point is not greater than the preset threshold as the event segmentation point corresponding to the marked time point.

[0185] In some embodiments, the tag generation module 2002 includes:

[0186] The output submodule is used to output each video frame in chronological order;

[0187] The receiving submodule is configured to receive input information generated by a user for each video frame based on the output video frame, so as to determine a video tag corresponding to each video frame based on the input information.

[0188] In some embodiments, the division module 2003 is specifically configured to: determine a number of video frames corresponding to the same video tag in the video data sequence as a video subsequence.

[0189] In some embodiments, the apparatus 200 further includes:

[0190] A vector acquisition module is used to acquire, for any video subsequence and event subsequence corresponding to the video subsequence, a video feature vector based on the video frames in the video subsequence, and an event feature vector based on the event data in the event subsequence;

[0191] An input module is used to obtain a fusion vector based on the video feature vector and the event feature vector, and input the fusion vector into the posture recognition model to be trained to obtain a posture recognition result of the posture recognition model to be trained;

[0192] The training module is used to train the posture recognition model to be trained based on the posture recognition results, the video labels of the video subsequence or the event labels of the event subsequence to obtain the target recognition model. The target recognition model is used to generate recognition results based on the video data to be recognized and the event data to be recognized.

[0193] In some embodiments, the training module is specifically used to: adjust the training parameters of the posture recognition model to be trained based on the difference between the posture recognition results and the video labels or event labels, and continue training based on the adjusted posture recognition model to be trained until the training stop condition is reached, and determine the posture recognition model to be trained at the end of training as the target recognition model.

[0194] In summary, some embodiments of the present application provide a DAVIS-oriented data calibration device, which obtains a video data sequence and an event data sequence collected based on DAVIS, wherein the number of video frames contained in the video data sequence is less than the number of event data contained in the event data sequence; generates multiple video labels for the video data sequence based on each video frame contained in the video data sequence; divides the video data sequence into multiple video subsequences based on the multiple video labels, and different video subsequences correspond to different video labels; determines each event subsequence corresponding to each video subsequence from the multiple event data contained in the event data sequence, and determines the video label corresponding to each video subsequence as the event label of each event subsequence to obtain a calibrated event data sequence. In this way, when calibrating two data sequences of different quantities collected by DAVIS, video labels can be generated for different video frames first to complete the calibration of the video data sequence with a smaller amount of data, and then the event data sequence can be calibrated through the video data sequence that has been calibrated. The event data sequence is divided into event subsequences corresponding to each video subsequence, and the video label corresponding to each video subsequence is determined as the event label of the corresponding event subsequence to complete the calibration of the event data sequence. There is no need to manually calibrate a large amount of event data in turn, which improves the efficiency of calibrating the event data sequence.

[0195] The present application also provides an electronic device, see Figure 6, including: a processor 3001, a memory 3002, and a computer program 30021 stored in the memory and executable on the processor, and the processor implements the methods of some of the aforementioned embodiments when executing the program.

[0196] The present application also provides a non-volatile readable storage medium. When instructions in the non-volatile readable storage medium are executed by a processor of an electronic device, the electronic device can execute the methods of some of the aforementioned embodiments.

[0197] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0198] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems may also be used together with the teachings herein. Based on the above description, it is apparent that the structure required for constructing such systems is suitable. In addition, the present application is not directed to any specific programming language. It should be understood that various programming languages ​​may be utilized to implement the present application described herein, and the description of the specific languages ​​above is provided for the purpose of disclosing the preferred embodiment of the present application.

[0199] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.

[0200] Similarly, it should be understood that in order to streamline the present application and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting an intention that the claimed application requires more features than are expressly recited in each claim. Rather, as reflected in the claims below, inventive aspects lie in fewer than all the features of the individual embodiments disclosed above. Accordingly, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim itself serving as a separate embodiment of the present application.

[0201] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition may be divided into multiple submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed herein may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0202] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components in the sorting device according to the present application. The application can also be implemented as a device or apparatus program for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a non-volatile readable storage medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0203] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.

[0204] It should be noted that some of the above embodiments illustrate rather than limit the present application, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbols placed between brackets should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present application may be implemented by means of hardware comprising several different elements and by means of appropriately programmed computers. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0205] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0206] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application should be included in the scope of protection of the present application.

[0207] The above are only specific embodiments of the present application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A data calibration method for DAVIS, characterized in that: The method comprises: Acquire a video data sequence and an event data sequence acquired based on DAVIS, wherein the number of video frames included in the video data sequence is less than the number of event data included in the event data sequence; generating a plurality of video tags for the video data sequence based on each video frame included in the video data sequence; Dividing the video data sequence into a plurality of video subsequences based on the plurality of video tags, wherein different video subsequences correspond to different video tags; Each event subsequence corresponding to each video subsequence is determined from a plurality of event data included in the event data sequence, and a video tag corresponding to each video subsequence is determined as an event tag of each event subsequence to obtain a calibrated event data sequence.

2. The method according to claim 1, characterized in that: The determining each event subsequence corresponding to each video subsequence from a plurality of event data included in the event data sequence comprises: Determining a target recording point based on the event recording points of the event data included in the event data sequence; For any of the video subsequences, based on the marked time point of the video subsequence and the target recording point, determining the event segmentation point corresponding to the marked time point; Based on the event segmentation point corresponding to the marked time point of the video subsequence, the event data corresponding to the event segmentation point in the event data sequence is determined as the event subsequence corresponding to the video subsequence, and the event segmentation point corresponds to the recording start point or the recording end point of the event subsequence.

3. The method according to claim 2, characterized in that: The determining, based on the marked time point of the video subsequence and the target recording point, the event segmentation point corresponding to the marked time point includes: When the marked time point of the video subsequence is consistent with the target recording point, determining the target recording point as the event segmentation point corresponding to the marked time point; In the case where the marked time point of the video subsequence is inconsistent with the target recording point, the target recording point is re-determined from the event recording points based on the size of the marked time point and the target recording point, until there is a target recording point that is consistent with the marked time point of the video subsequence, and the target recording point is determined as the event segmentation point corresponding to the marked time point; In the case that there is no target recording point that is consistent with the marked time point of the video subsequence, a target recording point whose absolute value of difference with the marked time point is not greater than a preset threshold is determined as the event segmentation point corresponding to the marked time point.

4. The method according to claim 3, characterized in that: The determining of the target recording point based on the event recording points of the event data contained in the event data sequence includes: determining the middle recording point among the event recording points as the target recording point; the middle recording point is the event recording point whose recording time is at the middle moment among the event recording points; The re-determining the target recording point from the event recording point based on the size of the marked time point and the target recording point includes: In the case where the marked time point is greater than the target recording point, re-determining the middle recording point among the event recording points greater than the target recording point as the target recording point; And, in the case where the marked time point is smaller than the target recording point, an intermediate recording point among the event recording points smaller than the target recording point is re-determined as the target recording point.

5. The method according to claim 2, characterized in that: The marked time points include a start time point and an end time point; the event segmentation points corresponding to the marked time points of the video subsequence are determined based on the event data sequence corresponding to the event segmentation points as the event subsequence corresponding to the video subsequence, including: Determine the event segmentation point corresponding to the start time point in the marked time point as the recording start point of the event subsequence corresponding to the marked time point, and determine the event segmentation point corresponding to the end time point in the marked time point as the recording end point of the event subsequence corresponding to the marked time point; Based on the event recording points of the event data contained in the event data sequence, the event data whose event recording points are not greater than the recording end point corresponding to the marked time point and not less than the recording start point corresponding to the marked time point are determined as the event subsequence corresponding to the video subsequence.

6. The method according to claim 3, characterized in that: The method further comprises: In the absence of a target recording point whose absolute value of difference with the marked time point is not greater than the preset threshold, the preset threshold is updated according to the preset increment, and the operation of determining the target recording point whose absolute value of difference with the marked time point is not greater than the preset threshold as the event segmentation point corresponding to the marked time point is re-executed.

7. The method according to claim 2, characterized in that: The marking time point includes a termination time point; and determining the event data corresponding to the event segmentation point in the event data sequence as the event subsequence corresponding to the video subsequence includes: Determine the event segmentation point corresponding to the termination time point as the recording end point of the event subsequence corresponding to the marked time point, and determine the event segmentation point corresponding to the previous termination time point as the recording start point of the event subsequence corresponding to the marked time point; the previous termination time point is the marked time point of the previous video subsequence of the video subsequence; Based on the event recording points of the event data contained in the event data sequence, the event data whose event recording points are not greater than the recording end point corresponding to the marked time point and not less than the recording start point corresponding to the marked time point are determined as the event subsequence corresponding to the video subsequence.

8. The method according to claim 5 or 7, characterized in that: The method further comprises: Determine the event recording point of the first event data in the event data sequence as the recording start point of the first event subsequence; The event recording point of the last event data in the event data sequence is determined as the recording end point of the last event subsequence.

9. The method according to claim 1, characterized in that: The step of acquiring a video data sequence and an event data sequence based on DAVIS acquisition includes: Collecting data on the target object through the DAVIS to obtain collected data; The collected data is acquired through the output interface of the DAVIS to obtain the video data sequence and the event data sequence.

10. The method according to claim 3, characterized in that: The preset threshold is determined based on the time resolution of the DAVIS acquisition event data. When the time resolution is in the microsecond level, the value range of the preset threshold is 2 to 5 microseconds.

11. The method according to claim 9, characterized in that: The collecting data on the target object by using the DAVIS includes: collecting data on target objects representing different types in sequence by using the DAVIS; The step of generating a plurality of video tags for the video data sequence based on each video frame included in the video data sequence comprises: Based on the types represented by the target objects contained in the video frames in the video data sequence, the multiple video tags are generated for the video data sequence, and one video tag corresponds to one type.

12. The method according to claim 9, characterized in that: The target object is a human body object representing different postures.

13. The method according to claim 6, characterized in that: The method further comprises: In the absence of a target recording point whose absolute value of difference with the marked time point is not greater than the updated preset threshold, the preset increment is updated, and the current preset threshold is updated according to the updated preset increment, and the operation of determining the target recording point whose absolute value of difference with the marked time point is not greater than the preset threshold as the event segmentation point corresponding to the marked time point is re-executed.

14. The method according to claim 1, characterized in that: The step of generating a plurality of video tags for the video data sequence based on each video frame included in the video data sequence comprises: Outputting the video frames in sequence according to the time sequence; Input information generated by a user for each of the video frames based on the output video frames is received, so as to determine a video tag corresponding to each of the video frames based on the input information.

15. The method according to claim 14, characterized in that The step of dividing the video data sequence into a plurality of video subsequences based on the plurality of video tags comprises: A plurality of the video frames corresponding to the same video tag in the video data sequence are determined as one of the video subsequences.

16. The method according to claim 12, characterized in that: The method further comprises: For any of the video subsequences and the event subsequences corresponding to the video subsequences, obtaining a video feature vector based on the video frames in the video subsequences, and obtaining an event feature vector based on the event data in the event subsequences; Obtaining a fusion vector based on the video feature vector and the event feature vector, and inputting the fusion vector into a posture recognition model to be trained to obtain a posture recognition result of the posture recognition model to be trained; Based on the posture recognition result, the video label of the video subsequence or the event label of the event subsequence, the posture recognition model to be trained is trained to obtain a target recognition model, and the target recognition model is used to generate a recognition result based on the video data to be recognized and the event data to be recognized.

17. The method according to claim 16, characterized in that: The training of the posture recognition model to be trained based on the posture recognition result, the video label of the video subsequence or the event label of the event subsequence includes: Based on the difference between the posture recognition result and the video label or the event label, the training parameters of the posture recognition model to be trained are adjusted, and training is continued based on the adjusted posture recognition model to be trained until the training stop condition is reached, and the posture recognition model to be trained at the end of the training is determined as the target recognition model.

18. A data calibration device for DAVIS, characterized in that: The device comprises: A sequence acquisition module, used for acquiring a video data sequence and an event data sequence acquired based on DAVIS, wherein the number of video frames included in the video data sequence is less than the number of event data included in the event data sequence; A label generation module, used for generating a plurality of video labels for the video data sequence based on each video frame included in the video data sequence; A division module, configured to divide the video data sequence into a plurality of video subsequences based on the plurality of video tags, wherein different video subsequences correspond to different video tags; A determination module is used to determine each event subsequence corresponding to each video subsequence from multiple event data contained in the event data sequence, and determine the video tag corresponding to each video subsequence as the event tag of each event subsequence to obtain a calibrated event data sequence.

19. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 17 is implemented.

20. A non-volatile readable storage medium, characterized in that: When the instructions in the non-volatile readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any one of the methods of claims 1-17.

Citation Information

Patent Citations

  • Video generation method and device based on artificial intelligence, computer device and medium

    CN113395542A

  • Video storage method and device based on key event identification, equipment and medium

    CN114139015A

  • DAVIS-oriented data calibration method and device, electronic equipment and medium

    CN116189065A

  • System and Method for Visual Event Description and Event Analysis

    US20170103264A1