CN114329066B - Video data processing method, device, electronic equipment and storage medium - Google Patents
Video data processing method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114329066B CN114329066B CN202111619410.0A CN202111619410A CN114329066B CN 114329066 B CN114329066 B CN 114329066B CN 202111619410 A CN202111619410 A CN 202111619410A CN 114329066 B CN114329066 B CN 114329066B
- Authority
- CN
- China
- Prior art keywords
- time
- video
- planned
- time interval
- actual
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Television Signal Processing For Recording (AREA)
Abstract
The embodiment of the invention discloses a video data processing method, a device, electronic equipment and a storage medium, wherein the video data processing method comprises the following steps: acquiring planning video data and actual video data of target video equipment; sequencing the planned video recording starting time and the planned video recording ending time included in the planned video recording time intervals, the actual video recording starting time and the actual video recording ending time included in the actual video recording time intervals according to a time sequence to obtain a time queue; sequentially taking two adjacent times from the time queue to construct a plurality of candidate time intervals; and determining a video missing time interval of the target video equipment from the plurality of candidate time intervals. In the embodiment of the invention, the video deletion time interval is determined by constructing the time queue containing the planned video time and the actual video time and constructing the candidate time interval according to the time queue, so that the video deletion can be accurately and timely found, and an effective reference is provided for fault repair of the video deletion.
Description
Technical Field
The present invention relates to data processing technologies, and in particular, to a video data processing method, apparatus, electronic device, and storage medium.
Background
The video monitoring has the functions of real-time monitoring and video storage in the security system, and after an event occurs, the video recorded by the camera plays an important role in backtracking the whole event occurrence process.
When the whole event is traced back according to the video, the condition that the video is not present or lost often exists, in order to solve the problem of video loss, a user can configure video recording and video storage plans for each camera according to actual requirements, for example, 24 hours of video recording in the whole day, or set a fixed time range of video recording according to requirements.
However, due to various factors such as network and device performance, for example, the network between the Camera (IP Camera, IPC) and the network hard disk video recording host (Network Video Recorder, NVR) is often disconnected, so that a large amount of video is not recorded; or under abnormal conditions, one camera can generate hundreds of video clips within the planned time, so that the saved actual video has a certain difference from the planned video, and no method for rapidly calculating the missing video data exists at present.
Disclosure of Invention
The embodiment of the invention provides a video data processing method, a device, electronic equipment and a storage medium, wherein a candidate time interval is constructed according to a time queue, so that a video missing time interval is determined, video missing can be accurately and timely found, and an effective reference is provided for fault repair of the video missing.
In a first aspect, an embodiment of the present invention provides a video data processing method, including:
Acquiring planned video data and actual video data of target video equipment, wherein the planned video data comprises a plurality of planned video time intervals, each planned video time interval comprises planned video start time and planned video end time, the actual video data comprises a plurality of actual video time intervals, and each actual video time interval comprises actual video start time and actual video end time;
Sequencing the planned video recording starting time and the planned video recording ending time included in the planned video recording time intervals, and the actual video recording starting time and the actual video recording ending time included in the actual video recording time intervals according to a time sequence to obtain a time queue;
sequentially taking two adjacent times from the time queue to construct a plurality of candidate time intervals;
and determining a video missing time interval of the target video equipment from the plurality of candidate time intervals.
In a second aspect, an embodiment of the present invention provides a video data processing apparatus, including:
The data acquisition module is used for acquiring the planned video data and the actual video data of the target video equipment, wherein the planned video data comprises a plurality of planned video time intervals, each planned video time interval comprises planned video start time and planned video end time, the actual video data comprises a plurality of actual video time intervals, and each actual video time interval comprises actual video start time and actual video end time;
The time queue determining module is used for sequencing the planned video recording starting time and the planned video recording ending time included in the planned video recording time intervals, the actual video recording starting time and the actual video recording ending time included in the actual video recording time intervals according to a time sequence to obtain a time queue;
the time interval construction module is used for sequentially taking two adjacent times from the time queue to construct a plurality of candidate time intervals;
and the video deletion time determining module is used for determining the video deletion time interval of the target video equipment from the plurality of candidate time intervals.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the video data processing method according to any one of the embodiments of the present invention when executing the program.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements a video data processing method according to any one of the embodiments of the present invention.
In the embodiment of the invention, by acquiring the planned video data and the actual video data of the target video equipment, the planned video data comprises a plurality of planned video time intervals, each planned video time interval comprises planned video start time and planned video end time, the actual video data comprises a plurality of actual video time intervals, and each actual video time interval comprises actual video start time and actual video end time; sequencing the planned video recording starting time and the planned video recording ending time included in the planned video recording time intervals, and the actual video recording starting time and the actual video recording ending time included in the actual video recording time intervals according to a time sequence to obtain a time queue; sequentially taking two adjacent times from the time queue to construct a plurality of candidate time intervals; and determining a video missing time interval of the target video equipment from the plurality of candidate time intervals. In the embodiment of the invention, the video deletion time interval is determined by constructing the time queue containing the planned video time and the actual video time and constructing the candidate time interval according to the time queue, so that the video deletion can be accurately and timely found, and an effective reference is provided for fault repair of the video deletion.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a video data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a video data processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a video data processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
It should be understood that the various steps recited in the method embodiments of the present invention may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the invention is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like herein are merely used for distinguishing between different devices, modules, or units and not for limiting the order or interdependence of the functions performed by such devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those skilled in the art will appreciate that "one or more" is intended to be construed as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of such messages or information.
In the following embodiments, optional features and examples are provided in each embodiment at the same time, and the features described in the embodiments may be combined to form multiple alternatives, and each numbered embodiment should not be considered as only one technical solution.
Fig. 1 is a schematic flow chart of a video data processing method according to an embodiment of the present invention, where the method may be performed by a video data processing apparatus according to an embodiment of the present invention, and the apparatus may be implemented in software and/or hardware. In a specific embodiment, the apparatus may be integrated in an electronic device, such as a computer or a server. The following embodiments will be described taking the example of the integration of the apparatus in an electronic device, and referring to fig. 1, the method may specifically include the following steps:
s101, acquiring planning video data and actual video data of target video equipment, wherein the planning video data comprises a plurality of planning video time intervals, each planning video time interval comprises planning video start time and planning video end time, the actual video data comprises a plurality of actual video time intervals, and each actual video time interval comprises actual video start time and actual video end time.
The target video recording device can be understood as a specified video recording device for recording video at a specified position, for example, IPC; the scheduled recording data may include recording time data of the target recording device within the scheduled recording time; the actual video recording data may include video recording time data of the target video recording device within the actual recording time; the planned recording time interval can be understood as a planned recording time range; the actual recording time interval may be understood as an actual recording time range, for example, the planned recording time interval may be 8:00-10:00, i.e. the planned recording start time is 8:00, and the planned recording end time is 10:00; the actual recording time interval may be 9:00-10:00, i.e. the actual recording start time is 9:00, and the actual recording end time is 10:00.
Specifically, the planned video data and the actual video data of the target video device may be obtained through the NVR.
For example, the method includes that the NVR obtains the planned video data and the actual video data of the target video device, and a plurality of planned video time intervals in the planned video data may be respectively: 8:00-10:00, 11:00-13:00, and 14:00-15:00; the scheduled recording start times in the plurality of scheduled recording time intervals are respectively as follows: 8:00, 11:00 and 14:00, and the planned video recording end time is respectively: 10:00, 13:00 and 15:00; the actual video time intervals in the actual video data are respectively as follows: 9:00-10:00, 12:00-13:00, and 14:00-15:00; the actual recording start time in the actual recording time intervals is respectively as follows: 9:00, 12:00 and 14:00, and the actual video recording end time is respectively: 10:00, 13:00 and 15:00.
S102, sequencing the planned video recording start time and the planned video recording end time included in the planned video recording time intervals, the actual video recording start time and the actual video recording end time included in the actual video recording time intervals according to a time sequence, and obtaining a time queue.
The time queue may be understood as a sequential queue of start time and end time of different types (planned and actual) of video time intervals.
Illustratively, continuing the above example, ordering the scheduled recording start time and the scheduled recording end time included in the plurality of scheduled recording time intervals, and the actual recording start time and the actual recording end time included in the plurality of actual recording time intervals according to a time sequence, to obtain a time queue: 8:00, 9:00, 10:00, 11:00, 12:00, 13:00, 14:00, 15:00, and 15:00.
S103, sequentially taking two adjacent times from the time queue to construct a plurality of candidate time intervals.
Specifically, a plurality of time intervals in the time queue may be sequentially determined from the time queue according to a group of adjacent times.
Illustratively, continuing with the above example, sequentially taking two adjacent times from the time queue to construct a plurality of candidate time intervals respectively is: 8:00-9:00, 10:00-10:00, 11:00-12:00, 13:00-13:00, 14:00-14:00, and 15:00-15:00.
S104, determining a video missing time interval of the target video equipment from the plurality of candidate time intervals.
The recording missing time interval may be understood as a time interval in which the target recording device does not record video.
Specifically, a time length limit of the candidate time interval may be set, a candidate time interval satisfying the time length limit is selected from the plurality of candidate time intervals, and the selected candidate time interval is determined as a video missing time interval of the target video recording device.
Illustratively, continuing the above example, assuming that the limit of the time interval length is more than 1 minute, the candidate time intervals remaining after the screening are: 8:00-9:00 and 11:00-12:00, then two candidate time intervals (8:00-9:00 and 11:00-12:00) are determined as video deletion time intervals of the target video recording device.
In the embodiment of the invention, the video deletion time interval is determined by constructing the time queue containing the planned video time and the actual video time and constructing the candidate time interval according to the time queue, so that the video deletion can be accurately and timely found, and an effective reference is provided for fault repair of the video deletion.
In some embodiments, sorting the scheduled recording start time and the scheduled recording end time included in the plurality of scheduled recording time intervals and the actual recording start time and the actual recording end time included in the plurality of actual recording time intervals according to a time sequence, to obtain a time queue, including: converting the planned video recording start time and the planned video recording end time included in the planned video recording time intervals, and the actual video recording start time and the actual video recording end time included in the actual video recording time intervals into time values; and sequencing the time values to obtain a time queue.
The time value is understood as a time stamp, and the time stamp refers to the total number of seconds from the time of greenwich time 1970, 01 month, 01 day, 00 minutes, 00 seconds (Beijing time 1970, 01 month, 01 day, 08 minutes, 00 seconds).
In particular, a particular time may be converted to a corresponding time value by a timestamp conversion tool.
Illustratively, for example, beijing time 2021, 12, 16, 8 minutes, 30 seconds (2021-12-168:42:30), this time may be converted to a reshaped value 1639615350 by a timestamp conversion tool. The time values are sequenced from small to large to obtain a time queue.
In the embodiment of the invention, the planned video recording start time and the planned video recording end time which are included in a plurality of planned video recording time intervals, and the actual video recording start time and the actual video recording end time which are included in a plurality of actual video recording time intervals are converted into time values; the time values are sequenced to obtain a time queue, so that the processing speed of video data can be improved, and the processing efficiency of the video data processing method is improved.
Fig. 2 is another schematic flow chart of the video data processing method according to the embodiment of the present invention. The method of this embodiment further optimizes the steps of sequentially taking two adjacent times from the time queue to construct a plurality of candidate time intervals, where the specific optimization includes the following steps:
s201, each candidate time interval in the plurality of candidate time intervals is provided with a left endpoint and a right endpoint, and candidate time intervals with the same left endpoint and right endpoint are removed from the plurality of candidate time intervals to obtain a suspected time interval.
The left endpoint may be understood as the first time point of each candidate time interval, and the right endpoint may be understood as the last time point of each candidate time interval.
For example, continuing the above example, taking two candidate time intervals of 8:00-9:00 and 10:00-10:00 as examples, the left end point is 8:00 and 10:00, the right end point is 9:00 and 10:00, respectively, it may be determined that the candidate time intervals of the same left end point and right end point are 10:00-10:00, and then 10:00-10:00 may be deleted from the two candidate time intervals; similarly, the candidate time intervals with the same left endpoint and right endpoint are removed from the candidate time intervals, so as to obtain a suspected time interval: 8:00-9:00 and 11:00-12:00.
S202, determining a target time interval from the suspected time interval.
Specifically, a suspected time zone satisfying one of the following conditions among the suspected time zones is determined as a target time zone:
the left end point and the right end point are both from a planned video time interval, and the left end point belongs to a planned video starting time and the right end point belongs to a planned video ending time;
The left end point is from a planned video time interval, the right end point is from an actual video time interval, and the left end point belongs to planned video starting time, and the right end point belongs to actual video starting time;
the left end point is from the actual video time interval, the right end point is from the planned video time interval, and the left end point belongs to the actual video ending time, and the right end point belongs to the planned video ending time;
the left end point and the right end point are both from an actual video recording time interval, and the left end point belongs to an actual video recording end time and the right end point belongs to an actual video recording start time.
In the embodiment of the invention, the speed of determining the target time interval can be improved by meeting the limitation of the target time interval condition, thereby improving the data processing efficiency of the video data mathematical method.
For example, continuing the above example, in the suspected time interval of 8:00-9:00, the left endpoint is 8:00, belonging to the planned video recording start time; the right endpoint is 9:00, belongs to the actual video recording starting time, and by comparing the conditions with one, the suspected time interval of 8:00-9:00 can be determined to meet the conditions that the left endpoint is from the planned video recording time interval, the right endpoint is from the actual video recording time interval, the left endpoint belongs to the planned video recording starting time, and the right endpoint belongs to the actual video recording starting time, and the suspected time interval of 8:00-9:00 is determined to be the target time interval; the suspected time interval 11:00-12:00 can be determined to be the target time interval by the same method for determining the target time interval.
In the embodiment of the invention, each candidate time interval in the plurality of candidate time intervals has the left end point and the right end point, the candidate time interval with the same left end point and the same right end point is removed from the plurality of candidate time intervals to obtain the suspected time interval, and the target time interval is determined from the suspected time interval, so that the data processing efficiency of the candidate time interval of the video data processing method can be improved.
S203, determining the duration of the target time interval.
Specifically, the duration of the target time interval may be determined by calculating the time length between the first time point and the last time point of the target time interval.
For example, the first time point of the target time interval 8:00-9:00 is 8:00, the last time point is 9:00, and the duration of the target time interval 8:00-9:00 is 60 minutes; the first time point of the target time interval 11:00-12:00 is 11:00, and the last time point is 12:00, and the duration of the target time interval 8:00-9:00 is 60 minutes.
Optionally, the time length of the target time interval may be determined by converting the first time point and the last time point of the target time interval into corresponding time values, and then calculating the difference between the time values of the first time point and the last time point of the target time interval.
S204, determining whether the target time interval duration exceeds an interval duration tolerance threshold; if the target time interval duration does not exceed the interval duration tolerance threshold, executing S205; if the target time interval duration exceeds the interval duration tolerance threshold, S206 is executed.
The interval duration tolerance threshold may be understood as a specific time length value, for example 2 seconds.
S205, determining the target time interval as a non-video-recording missing time interval.
Specifically, the target time interval which does not exceed the interval duration tolerance threshold can be determined as a non-video-missing time interval through comparison of the duration of the target time interval and the interval duration tolerance threshold.
S206, determining the target time interval with the duration exceeding the interval duration tolerance threshold as a video missing time interval.
Specifically, the target time interval exceeding the interval duration tolerance threshold can be determined as the video missing time interval by comparing the duration of the target time interval with the interval duration tolerance threshold.
For example, if the duration of the target time interval 8:00-9:00 is 60 minutes and the duration of 60 minutes exceeds the interval duration tolerance threshold for 2 seconds, the target time interval 8:00-9:00 may be determined as a video recording missing time interval; the duration of the target time interval 11:00-12:00 is 60 minutes, and if the duration of 60 minutes exceeds the interval duration tolerance threshold value by 1 minute, the target time interval 11:00-12:00 can be determined as a video recording missing time interval.
In the embodiment of the invention, the target time interval with the time length exceeding the interval time length tolerance threshold is determined as the video missing time interval by determining the time length of the target time interval, so that the limitation of determining conditions is provided for determining the video missing time interval, and the accuracy of determining the video missing time interval can be improved.
S207, determining the video deletion accumulated time based on the time length of the video deletion time interval.
The cumulative duration of video recording deletion can be understood as the cumulative total duration of a plurality of video recording deletion time intervals.
Specifically, the video recording deletion accumulated duration of the video recording deletion time interval can be determined by calculating the time length between the first time point and the last time point of the video recording deletion time interval; the video-recording real accumulated time length of the video-recording missing time intervals can be determined by calculating the time length between the first time point and the last time point of each video-recording missing time interval; accumulating the accumulated time length of each video deletion time interval to determine the video deletion accumulated time length of a plurality of video deletion time intervals.
For example, the cumulative duration of the first video deletion time interval 8:00-9:00 may be determined to be 60 minutes by calculating the time length between the first time point and the last time point of the video deletion time interval 8:00-9:00; the method comprises the steps of determining that the accumulated duration of a second video deletion time interval 11:00-12:00 is 60 minutes by calculating the time length between a first time point and a last time point of the video deletion time interval 11:00-12:00, accumulating the accumulated total duration of two video deletion time intervals, and determining that the accumulated duration of video deletion of two video deletion time intervals (8:00-9:00 and 11:00-12:00) is 120 minutes.
S208, determining whether the accumulated duration of video deletion exceeds an accumulated duration tolerance threshold; if the duration of the target time interval does not exceed the tolerance threshold of the accumulated duration, executing S209; if the target time interval duration exceeds the interval duration tolerance threshold, S210 is executed.
The cumulative length tolerance threshold may be understood as a time length limit of the cumulative length of the video recording missing, for example, 1 minute.
S209, determining the video deletion time interval as a normal video deletion phenomenon.
Specifically, if the duration of the target time interval does not exceed the tolerance threshold of the accumulated duration, it may be determined that the video-missing time interval is a normal video-missing phenomenon.
S210, generating video missing alarm information of the target video equipment.
Specifically, if the duration of the target time interval exceeds the tolerance threshold of the accumulated duration, the video missing alarm information of the target video equipment can be generated.
For example, continuing the above example, if the cumulative duration of the video deletion between the two video deletion time intervals 8:00-9:00 and 11:00-12:00 is 120 minutes, and the cumulative duration tolerance threshold is far exceeded by 1 minute, then the video deletion alarm information of the target video recording device needs to be generated.
In the embodiment of the invention, the accumulated video deletion time length is determined based on the time length of the video deletion time interval; when the cumulative length of the video deletion exceeds the tolerance threshold of the cumulative length, generating the video deletion alarm information of the target video recording equipment, and based on the judgment of whether the cumulative length of the video deletion exceeds the tolerance threshold of the cumulative length, generating the video deletion alarm information of the target video recording equipment, thereby improving the generation speed of the video deletion alarm information of the target video recording equipment, and further improving the data processing efficiency of the video deletion time interval of the video data processing method.
S211, sending video deletion alarm information to the management terminal, wherein the video deletion alarm information comprises at least one of identification information of target video equipment, video deletion accumulated time length and video deletion time interval.
The identification information of the video recording device may be understood as information identifying the video recording device, for example, a name, a number, a serial number, etc. of the video recording device.
Specifically, the identification information of the target video recording device may be obtained through the NVR.
Exemplary, the video deletion alert information is sent to the management terminal, where the video deletion alert information includes at least one of an identification information of the target video device, a cumulative video deletion duration (120 minutes), and a video deletion time interval (8:00-9:00 and 11:00-12:00) acquired through the NVR.
In the embodiment of the invention, the video deletion alarm information is sent to the management terminal, and the video deletion alarm information comprises at least one of the identification information, the video deletion accumulated time length and the video deletion time interval of the target video equipment, so that the user can repair the fault problem caused by video deletion in time and quickly based on the information content in the video deletion alarm information, and the data processing speed of the video data processing method can be improved.
In the embodiment of the invention, through each candidate time interval in the plurality of candidate time intervals having a left endpoint and a right endpoint, candidate time intervals with the same left endpoint and right endpoint are removed from the plurality of candidate time intervals to obtain a suspected time interval, and a target time interval is determined from the suspected time interval; determining the duration of a target time interval, and determining whether the duration of the target time interval exceeds an interval duration tolerance threshold; if the duration of the target time interval does not exceed the interval duration tolerance threshold, determining that the target time interval is a non-video-recording missing time interval; if the duration of the target time interval exceeds the interval duration tolerance threshold, determining the target time interval with the duration exceeding the interval duration tolerance threshold as a video missing time interval; determining a video deletion accumulated duration based on the duration of the video deletion time interval; determining whether the accumulated duration of video recording missing exceeds an accumulated duration tolerance threshold; if the duration of the target time interval does not exceed the tolerance threshold of the accumulated duration, determining that the video deletion time interval is a normal video deletion phenomenon; if the duration of the target time interval exceeds the interval duration tolerance threshold, generating video deletion alarm information of the target video equipment, and sending the video deletion alarm information to the management terminal, wherein the video deletion alarm information comprises at least one of identification information of the target video equipment, video deletion accumulated duration and video deletion time interval. In the embodiment of the invention, the time queue is determined by planning the video time interval, the candidate time interval is constructed according to the time queue, the video missing time interval is further determined, the video missing alarm information of the target video equipment is generated, the video missing alarm information is sent to the management terminal, and a user can accurately and timely find the video missing, so that an effective reference is provided for fault repair of the video missing.
Fig. 3 is a schematic structural diagram of a video data processing apparatus according to an embodiment of the present invention, where the apparatus is adapted to execute the video data processing method according to the embodiment of the present invention. As shown in fig. 3, the apparatus may specifically include:
The data acquisition module 301 is configured to acquire planned video data and actual video data of a target video device, where the planned video data includes a plurality of planned video time intervals, each of the planned video time intervals includes a planned video start time and a planned video end time, the actual video data includes a plurality of actual video time intervals, and each of the actual video time intervals includes an actual video start time and an actual video end time;
The time queue determining module 302 is configured to sort the scheduled video recording start time and the scheduled video recording end time included in the plurality of scheduled video recording time intervals, and the actual video recording start time and the actual video recording end time included in the plurality of actual video recording time intervals according to a time sequence, so as to obtain a time queue;
A time interval construction module 303, configured to sequentially take two adjacent times from the time queue to construct a plurality of candidate time intervals;
The recording missing time determining module 304 is configured to determine a recording missing time interval of the target recording device from the plurality of candidate time intervals.
Optionally, each candidate time interval of the plurality of candidate time intervals has a left endpoint and a right endpoint;
Further, the device further comprises a suspected time interval determining module, configured to:
removing candidate time intervals with the same left endpoint and right endpoint from the candidate time intervals to obtain a suspected time interval;
further, the record missing time determining module 304 is specifically configured to:
Determining a target time interval from the suspected time interval;
and determining the video missing time interval of the target video equipment from the target time interval.
Optionally, the video deletion time determining module 304 determines a target time interval from the suspected time intervals, including:
determining a suspected time interval satisfying one of the following conditions as the target time interval in the suspected time intervals:
the left end point and the right end point are both from a planned video time interval, and the left end point belongs to a planned video starting time and the right end point belongs to a planned video ending time;
The left end point is from a planned video time interval, the right end point is from an actual video time interval, and the left end point belongs to planned video starting time, and the right end point belongs to actual video starting time;
the left end point is from the actual video time interval, the right end point is from the planned video time interval, and the left end point belongs to the actual video ending time, and the right end point belongs to the planned video ending time;
the left end point and the right end point are both from an actual video recording time interval, and the left end point belongs to an actual video recording end time and the right end point belongs to an actual video recording start time.
Optionally, the recording missing time determining module 304 determines the recording missing time interval of the target recording device from the target time interval, including:
Determining the duration of the target time interval;
and determining the target time interval with the duration exceeding the interval duration tolerance threshold as the video deletion time interval.
Optionally, the device further comprises an alarm information generating module, configured to:
Determining the video deletion accumulated time length based on the time length of the video deletion time interval;
And when the video deletion accumulated time length exceeds an accumulated time length tolerance threshold, generating video deletion alarm information of the target video equipment.
Optionally, the device further comprises an alarm module for:
And sending the video deletion alarm information to a management terminal, wherein the video deletion alarm information comprises at least one of identification information of the target video equipment, the video deletion accumulated time length and the video deletion time interval.
Optionally, the data acquisition module 301 is specifically configured to:
Converting the planned video recording start time and the planned video recording end time included in the planned video recording time intervals, and the actual video recording start time and the actual video recording end time included in the actual video recording time intervals into time values;
and sequencing the time values to obtain the time queue.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. The specific working process of the functional module described above may refer to the corresponding process in the foregoing method embodiment, and will not be described herein.
According to the device provided by the embodiment of the invention, the time queue comprising the planned video time and the actual video time is constructed, the candidate time interval is constructed according to the time queue, the video missing time interval is further determined, and the video missing can be accurately and timely found, so that an effective reference is provided for fault repair of the video missing.
The embodiment of the invention also provides electronic equipment, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the video data processing method provided by any embodiment when executing the program.
The embodiment of the invention also provides a computer readable medium, on which a computer program is stored, the program when executed by a processor implementing the video data processing method provided by any of the above embodiments.
Referring now to fig. 4, a schematic diagram of an electronic device 400 suitable for use in implementing embodiments of the present invention is shown. The electronic device in the embodiment of the present invention may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a car-mounted terminal (e.g., car navigation terminal), etc., and a stationary terminal such as a digital TV, a desktop computer, etc. The electronic device shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the invention.
As shown in fig. 4, the electronic device 400 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401, which may perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device 400 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present invention, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the method of the embodiment of the present invention are performed when the computer program is executed by the processing means 401. The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units involved in the embodiments of the present invention may be implemented in software, or may be implemented in hardware. The described modules and/or units may also be provided in a processor, e.g., may be described as: the processor comprises a data acquisition module, a time queue determining module, a time interval constructing module and a video missing time determining module. The names of these modules do not constitute a limitation on the module itself in some cases.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: acquiring planned video data and actual video data of target video equipment, wherein the planned video data comprises a plurality of planned video time intervals, each planned video time interval comprises planned video start time and planned video end time, the actual video data comprises a plurality of actual video time intervals, and each actual video time interval comprises actual video start time and actual video end time; sequencing the planned video recording starting time and the planned video recording ending time included in the planned video recording time intervals, and the actual video recording starting time and the actual video recording ending time included in the actual video recording time intervals according to a time sequence to obtain a time queue; sequentially taking two adjacent times from the time queue to construct a plurality of candidate time intervals; and determining a video missing time interval of the target video equipment from the plurality of candidate time intervals.
According to the technical scheme of the embodiment of the invention, the planned video recording data and the actual video recording data of the target video recording equipment are obtained, wherein the planned video recording data comprises a plurality of planned video recording time intervals, each planned video recording time interval comprises planned video recording start time and planned video recording end time, the actual video recording data comprises a plurality of actual video recording time intervals, and each actual video recording time interval comprises actual video recording start time and actual video recording end time; sequencing the planned video recording starting time and the planned video recording ending time included in the planned video recording time intervals, and the actual video recording starting time and the actual video recording ending time included in the actual video recording time intervals according to a time sequence to obtain a time queue; sequentially taking two adjacent times from the time queue to construct a plurality of candidate time intervals; and determining a video missing time interval of the target video equipment from the plurality of candidate time intervals. In the embodiment of the invention, the video deletion time interval is determined by constructing the time queue containing the planned video time and the actual video time and constructing the candidate time interval according to the time queue, so that the video deletion can be accurately and timely found, and an effective reference is provided for fault repair of the video deletion.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (7)
1. A video data processing method, comprising:
Acquiring planned video data and actual video data of target video equipment, wherein the planned video data comprises a plurality of planned video time intervals, each planned video time interval comprises planned video start time and planned video end time, the actual video data comprises a plurality of actual video time intervals, and each actual video time interval comprises actual video start time and actual video end time;
Sequencing the planned video recording starting time and the planned video recording ending time included in the planned video recording time intervals, and the actual video recording starting time and the actual video recording ending time included in the actual video recording time intervals according to a time sequence to obtain a time queue;
sequentially taking two adjacent times from the time queue to construct a plurality of candidate time intervals;
Determining a video missing time interval of the target video equipment from the plurality of candidate time intervals;
Wherein each candidate time interval in the plurality of candidate time intervals has a left end point and a right end point, and after the constructing a plurality of candidate time intervals by sequentially taking two adjacent times from the time queue, the method further comprises:
Removing candidate time intervals with the same left endpoint and right endpoint from the candidate time intervals to obtain a suspected time interval;
the determining the video missing time interval of the target video device from the plurality of candidate time intervals includes:
Determining a target time interval from the suspected time interval;
Determining the video missing time interval of the target video equipment from the target time interval;
Wherein the determining the target time interval from the suspected time interval includes:
determining a suspected time interval satisfying one of the following conditions as the target time interval in the suspected time intervals:
the left endpoint and the right endpoint are both from the planned video time interval, and the left endpoint belongs to the planned video starting time and the right endpoint belongs to the planned video ending time;
The left endpoint is from the planned video time interval, the right endpoint is from the actual video time interval, the left endpoint belongs to the planned video starting time, and the right endpoint belongs to the actual video starting time;
The left endpoint is from the actual video time interval, the right endpoint is from the planned video time interval, the left endpoint belongs to the actual video ending time, and the right endpoint belongs to the planned video ending time;
the left endpoint and the right endpoint are both from the actual video time interval, and the left endpoint belongs to the actual video ending time and the right endpoint belongs to the actual video starting time;
the step of sorting the scheduled video recording start time and the scheduled video recording end time included in the plurality of scheduled video recording time intervals, the actual video recording start time and the actual video recording end time included in the plurality of actual video recording time intervals according to a time sequence to obtain a time queue, including:
Converting the planned video recording start time and the planned video recording end time included in the planned video recording time intervals, and the actual video recording start time and the actual video recording end time included in the actual video recording time intervals into time values; the time value is a time stamp, and the time stamp refers to the total number of seconds from the time of 00 minutes and 00 seconds of the Greenwich mean time 1970, 01 month and 01 day 00 time;
and sequencing the time values to obtain the time queue.
2. The method of claim 1, wherein said determining the video loss time interval of the target video recording device from the target time interval comprises:
Determining the duration of the target time interval;
and determining the target time interval with the duration exceeding the interval duration tolerance threshold as the video deletion time interval.
3. The method according to claim 2, wherein the method further comprises:
Determining the video deletion accumulated time length based on the time length of the video deletion time interval;
And when the video deletion accumulated time length exceeds an accumulated time length tolerance threshold, generating video deletion alarm information of the target video equipment.
4. A method according to claim 3, characterized in that the method further comprises:
And sending the video deletion alarm information to a management terminal, wherein the video deletion alarm information comprises at least one of identification information of the target video equipment, the video deletion accumulated time length and the video deletion time interval.
5. A video data processing apparatus, comprising:
The data acquisition module is used for acquiring the planned video data and the actual video data of the target video equipment, wherein the planned video data comprises a plurality of planned video time intervals, each planned video time interval comprises planned video start time and planned video end time, the actual video data comprises a plurality of actual video time intervals, and each actual video time interval comprises actual video start time and actual video end time;
The time queue determining module is used for sequencing the planned video recording starting time and the planned video recording ending time included in the planned video recording time intervals, the actual video recording starting time and the actual video recording ending time included in the actual video recording time intervals according to a time sequence to obtain a time queue;
the time interval construction module is used for sequentially taking two adjacent times from the time queue to construct a plurality of candidate time intervals;
the video deletion time determining module is used for determining a video deletion time interval of the target video equipment from the plurality of candidate time intervals;
the suspected time interval determining module is used for removing candidate time intervals with the same left endpoint and right endpoint from the candidate time intervals to obtain suspected time intervals;
The video deletion time determining module is specifically configured to determine a target time interval from the suspected time interval; determining the video missing time interval of the target video equipment from the target time interval;
The video deletion time determining module is specifically configured to determine a target time interval from the suspected time intervals, that is, determine a suspected time interval in the suspected time interval that satisfies one of the following conditions as the target time interval: the left endpoint and the right endpoint are both from the planned video time interval, and the left endpoint belongs to the planned video starting time and the right endpoint belongs to the planned video ending time; the left endpoint is from the planned video time interval, the right endpoint is from the actual video time interval, the left endpoint belongs to the planned video starting time, and the right endpoint belongs to the actual video starting time; the left endpoint is from the actual video time interval, the right endpoint is from the planned video time interval, the left endpoint belongs to the actual video ending time, and the right endpoint belongs to the planned video ending time; the left endpoint and the right endpoint are both from the actual video time interval, and the left endpoint belongs to the actual video ending time and the right endpoint belongs to the actual video starting time;
The data acquisition module is specifically configured to convert a planned video recording start time and a planned video recording end time included in the plurality of planned video recording time intervals, and an actual video recording start time and an actual video recording end time included in the plurality of actual video recording time intervals into time values; the time value is a time stamp, and the time stamp refers to the total number of seconds from the time of 00 minutes and 00 seconds of the Greenwich mean time 1970, 01 month and 01 day 00 time; and sequencing the time values to obtain the time queue.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the video data processing method of any one of claims 1 to 4 when the program is executed by the processor.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the video data processing method as claimed in any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111619410.0A CN114329066B (en) | 2021-12-27 | 2021-12-27 | Video data processing method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111619410.0A CN114329066B (en) | 2021-12-27 | 2021-12-27 | Video data processing method, device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114329066A CN114329066A (en) | 2022-04-12 |
CN114329066B true CN114329066B (en) | 2024-09-17 |
Family
ID=81015584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111619410.0A Active CN114329066B (en) | 2021-12-27 | 2021-12-27 | Video data processing method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114329066B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110798678A (en) * | 2018-08-01 | 2020-02-14 | 广州弘度信息科技有限公司 | Video integrity detection method and device, computer equipment and readable storage medium |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003157596A (en) * | 2001-11-21 | 2003-05-30 | Sony Corp | Program reservation device and program reservation method therefor |
JP2007201652A (en) * | 2006-01-25 | 2007-08-09 | Nec Commun Syst Ltd | Program recording system, mobile terminal with television broadcast reception function, program recording method, and program |
GB2539897A (en) * | 2015-06-29 | 2017-01-04 | Sony Corp | Apparatus, method and computer program |
CN110019932A (en) * | 2017-10-31 | 2019-07-16 | 北京国双科技有限公司 | The method and device of data processing |
CN110662027B (en) * | 2018-06-29 | 2021-05-28 | 杭州海康威视系统技术有限公司 | Storage integrity detection method and device and computer equipment |
CN112752100B (en) * | 2020-12-28 | 2022-08-12 | 杭州海康威视系统技术有限公司 | Method and device for determining video integrity and readable storage medium |
CN112860762B (en) * | 2021-02-05 | 2023-07-28 | 北京百度网讯科技有限公司 | Method and apparatus for detecting overlapping time periods |
CN113065797B (en) * | 2021-04-22 | 2023-08-18 | 平安国际智慧城市科技股份有限公司 | Method, device, terminal equipment and medium for optimizing execution period of multitasking |
CN113642752A (en) * | 2021-08-24 | 2021-11-12 | 长沙理工大学 | A method and device for determining the number of simultaneous operation of urban taxis |
-
2021
- 2021-12-27 CN CN202111619410.0A patent/CN114329066B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110798678A (en) * | 2018-08-01 | 2020-02-14 | 广州弘度信息科技有限公司 | Video integrity detection method and device, computer equipment and readable storage medium |
Non-Patent Citations (1)
Title |
---|
面向最优时间窗口覆盖的查询服务;曹斌;计算机学报;20180119;第41卷(第8期);第1884-1888页 * |
Also Published As
Publication number | Publication date |
---|---|
CN114329066A (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111950988B (en) | Distributed workflow scheduling method and device, storage medium and electronic equipment | |
CN111198859B (en) | Data processing method, device, electronic equipment and computer readable storage medium | |
CN111694673B (en) | Memory processing method, memory processing device, electronic equipment and computer readable storage medium | |
CN111552613A (en) | Thread timeout processing method and device and electronic equipment | |
CN114003473A (en) | Page operation behavior backtracking method and device and electronic equipment | |
CN109542743B (en) | Log checking method and device, electronic equipment and computer readable storage medium | |
CN110955709B (en) | Data processing method and device and electronic equipment | |
CN113127187B (en) | Method and device for cluster expansion and contraction capacity | |
CN116541174A (en) | Storage device capacity processing method, device, equipment and storage medium | |
CN114329066B (en) | Video data processing method, device, electronic equipment and storage medium | |
CN112764959B (en) | Method, device, equipment and storage medium for monitoring application program locking problem | |
CN112615909B (en) | Method for storing data in cascade storage server cluster and related equipment | |
CN111198853B (en) | Data processing method, device, electronic equipment and computer readable storage medium | |
CN117271177B (en) | Root cause positioning method and device based on link data, electronic equipment and storage medium | |
CN117914948A (en) | Service instance scheduling method and device, electronic equipment and storage medium | |
CN112150033A (en) | Express cabinet system management method and device and electronic equipment | |
CN110781066A (en) | User behavior analysis method, device, equipment and storage medium | |
WO2021218626A1 (en) | Data storage method and apparatus, device, and storage medium | |
CN110727558A (en) | Information prompting method and device, storage medium and electronic equipment | |
CN115392682A (en) | Attribute collection method, device, equipment and medium | |
CN112799863B (en) | Method and device for outputting information | |
CN114253755B (en) | Log processing method, device, equipment and storage medium | |
CN112148497A (en) | Disk resource management method and device and electronic equipment | |
CN112488412B (en) | Duration information determination method, device, electronic device and computer storage medium | |
CN111538721A (en) | Account processing method and device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |