CN110662027B - Storage integrity detection method and device and computer equipment - Google Patents

Storage integrity detection method and device and computer equipment Download PDF

Info

Publication number
CN110662027B
CN110662027B CN201810713354.9A CN201810713354A CN110662027B CN 110662027 B CN110662027 B CN 110662027B CN 201810713354 A CN201810713354 A CN 201810713354A CN 110662027 B CN110662027 B CN 110662027B
Authority
CN
China
Prior art keywords
time period
recording time
video data
video
appointed
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
Application number
CN201810713354.9A
Other languages
Chinese (zh)
Other versions
CN110662027A (en
Inventor
熊芒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201810713354.9A priority Critical patent/CN110662027B/en
Publication of CN110662027A publication Critical patent/CN110662027A/en
Application granted granted Critical
Publication of CN110662027B publication Critical patent/CN110662027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/06Diagnosis, testing or measuring for television systems or their details for recorders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application provides a storage integrity detection method and device and computer equipment. The storage integrity detection method provided by the application comprises the following steps: for each camera shooting device, inquiring a matched recording time period for each appointed planned recording time period of the camera shooting device from the recording time periods of the video data recorded by the camera shooting device at regular time; when at least one appointed scheduled video time period is inquired, determining that video data recorded by the camera equipment is incomplete; and when the matched recording time period exists in each appointed video recording time period, determining that the video data recorded by the camera equipment is complete. According to the storage integrity detection method, the storage integrity detection device and the computer equipment, integrity detection can be performed on video data recorded by each camera equipment stored in the cloud storage system in parallel, and the problems of large workload and low efficiency in manual detection are solved.

Description

Storage integrity detection method and device and computer equipment
Technical Field
The application relates to the technical field of cloud storage, in particular to a storage integrity detection method and device and computer equipment.
Background
In the cloud storage technology, a cloud storage system needs to be configured according to different requirements, and a video recording plan needs to be issued to each camera device, so that each camera device records video data according to a planned video recording time period specified by the video recording plan. Currently, to prevent the problem of configuration information and video schedule loss due to database or operating system damage, automatic backup of the database is required. However, frequent database backup may affect the writing process of the video data, resulting in video data loss. At this time, when video data recorded by the image pickup apparatus is played back, it is found that video data exists for some periods and does not exist for some periods. For the time period when no video data exists, the user does not know whether a corresponding video recording plan does not exist or the video data is lost. Therefore, it is necessary to perform integrity detection on video data recorded by each image pickup device stored in the cloud storage system.
At present, the integrity of video data recorded by each camera device stored in a cloud storage system is often manually detected, the workload is large, and the efficiency is low.
Disclosure of Invention
In view of this, the present application provides a storage integrity detection method, a device, and a computer device, so as to perform integrity detection on video data recorded by each camera device stored in a cloud storage system, thereby avoiding the problems of large workload and low efficiency in manual detection.
A first aspect of the present application provides a storage integrity detection method, including:
for each camera shooting device, inquiring a matched recording time period for each appointed planned recording time period of the camera shooting device from the recording time periods of the video data recorded by the camera shooting device at regular time;
when at least one appointed scheduled video time period is inquired, determining that video data recorded by the camera equipment is incomplete;
and when the matched recording time period exists in each appointed video recording time period, determining that the video data recorded by the camera equipment is complete.
A second aspect of the present application provides a storage integrity detection apparatus, including: a query module and a processing module, wherein,
the query module is used for querying the matched recording time period for each appointed planned recording time period of the camera equipment from the recording time period of the video data recorded by the camera equipment in a timing manner;
the processing module is used for determining that the video data recorded by the camera equipment is incomplete when the query module queries that at least one specified planned video time period does not have a matched recording time period;
the processing module is further configured to determine that video data recorded by the image pickup device is complete when the query module queries that each specified scheduled recording time period has a matching recording time period.
A third aspect of the present application provides a computer storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods provided by the first aspect of the present application.
A fourth aspect of the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the methods provided in the first aspect of the present application when executing the program.
According to the storage integrity detection method, the storage integrity detection device and the computer equipment, for each camera equipment, a matched recording time period is inquired for each appointed plan recording time period of the camera equipment from the recording time period of the video data recorded by the camera equipment at regular time, and then the recording time period which is not matched is not inquired for at least one appointed plan recording time period, the video data recorded by the camera equipment is determined to be incomplete, the matched recording time period is inquired for each appointed plan recording time period, and the video data recorded by the camera equipment is determined to be complete. Therefore, the storage integrity detection method can be used for carrying out integrity detection on the video data recorded by the camera equipment stored in the cloud storage system in parallel, so that the problems of large workload and low efficiency in manual detection are solved.
Drawings
FIG. 1 is a flow chart of a first embodiment of a storage integrity detection method provided herein;
fig. 2 is a flowchart of a second embodiment of a storage integrity detection method provided in the present application;
fig. 3 is a flowchart of a third embodiment of a storage integrity detection method provided in the present application;
fig. 4 is a hardware structure diagram of a computer device where a storage integrity detection device is located according to an exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram of a first storage integrity detection apparatus according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The application provides a storage integrity detection method and device and computer equipment, which are used for carrying out integrity detection on video data recorded by each camera device stored in a cloud storage system, and avoiding the problems of large workload and low efficiency in manual detection.
Fig. 1 is a flowchart of a first embodiment of a storage integrity detection method provided in the present application. Referring to fig. 1, the method provided in this embodiment may include:
s101, for each camera device, inquiring a matched recording time period for each appointed planned recording time period of the camera device from the recording time periods of the video data recorded by the camera device.
Specifically, a scheduled video recording period of the image pickup apparatus is recorded in the image pickup apparatus. In this step, for each image pickup apparatus, each designated scheduled recording time period of the image pickup apparatus may be acquired from the image pickup apparatus. The specified scheduled video recording period is a scheduled video recording period having a start time later than an overwrite end time of video data overwritten when the cloud storage system has last generated a storage overwrite and an end time earlier than a current timing time. It should be noted that, a storage overlay may occur in the cloud storage system (for example, the cloud storage system may perform an overlay according to a set overlay period or an overlay capacity), and when the cloud storage system occurs the storage overlay, deletion of the video data before the overlay termination time may be triggered.
In addition, a recording time period of video data recorded by each image pickup apparatus is recorded in a management server in the cloud storage system. For example, in an embodiment, a recording time period of video data recorded by each image pickup device currently stored by the cloud storage system is recorded in the management server. For another example, in another embodiment, the management server records a recording time period of video data recorded by each image capturing apparatus (the video data recorded by each image capturing apparatus includes video data recorded by each image capturing apparatus currently stored by the cloud storage system and video data recorded by each image capturing apparatus that has been deleted by the cloud storage system when the storage coverage occurs). In the present embodiment, this is not limited. Further, in this step, the recording time period of the video data recorded by each image pickup apparatus may be inquired from the management server. In addition, after inquiring each appointed scheduled video recording time period of the camera equipment and the recording time period of each video data recorded by the camera equipment, inquiring a matched recording time period for each appointed scheduled video recording time period of the camera equipment from the recording time periods of the video data recorded by the camera equipment.
The scheduled video recording period includes a scheduled video recording start time and a scheduled video recording end time. The recording time period includes a recording start time and a recording end time. Further, when the storage mode of the scheduled recording time period is consistent with that of the scheduled recording time period, the recording time period may be compared with the scheduled recording time period, and then when the recording time period is the same as the scheduled recording time period, it is determined that the recording time period matches the scheduled recording time period, and when the recording time period is not the same as the scheduled recording time period, it is determined that the recording time period does not match the scheduled recording time period. In addition, when the storage modes of the scheduled recording time period and the recording time period are not consistent, the storage modes of the scheduled recording time period and the recording time period can be converted into consistent storage modes and then compared.
S102, when at least one appointed scheduled recording time slot is inquired, determining that the video data recorded by the camera equipment is incomplete.
And S103, when the matched recording time periods exist in each appointed scheduled recording time period, determining that the video data recorded by the camera equipment is complete.
For example, in one embodiment, for the image capturing apparatus a, each specified scheduled recording time period queried for the image capturing apparatus a is: from 2018, month 5, 28, 7:00 to 2018, month 5, 28, day 9:00, from 2018, month 5, 28, month 11:00 to 2018, month 5, 28, day 14:00, from 2018, month 5, 28, day 17:30 to 2018, month 5, 28, day 20: 00. Inquiring that the recording time period of the video data recorded by the camera device A is as follows: from 11:00 at 28.20/2018/28.14: 00 at 28.5/2018, from 17:30 at 28.5/2018/28.5/2018, and 20:00 at 28.5/2018. At this time, for the first specified video recording scheduled time period (from 2018, month 5, 28, day 7:00 to 2018, month 5, 28, day 9:00), there is no matching recording time period, and at this time, it is determined that the video data recorded by the image pickup apparatus a is incomplete.
For another example, in another embodiment, for the image capturing apparatus B, each specified scheduled recording time period queried for the image capturing apparatus B is: from 28/5/2018, 7: 00/28/2018, 10: 00/28/5/2018, 17: 30/19: 00/28/5/2018. Inquiring that the recording time period of the video data recorded by the camera B is as follows: from 2018, month 5, 28, month 7:00 to 2018, month 5, 28, day 10:00, from 2018, month 5, 28, day 17:30 to 19: 00. At this time, for each specified planned recording time period, there is a matching recording time period, and at this time, it is determined that the video data recorded by the imaging device B is complete.
A specific example is given below for explaining the technical solution of the present embodiment in detail.
For example, in one embodiment, the video data to be overwritten when the storage overwriting last occurred has an overwriting termination time of 2018, 5, month, 21, 18: 00, the current timing time is 2018, 5 month, 27 month, 8:00, and at this time, for the image pickup apparatus C, 7 planned image recording time periods are recorded in the image pickup apparatus in total, which are respectively: 5/2018, 21/7: 00 to 9:00, 2018, 5 month, 22 day 7:00 to 9:00, 2018, 5 month, 23 day 7:00 to 9:00, 2018, 5 month, 24 days 7:00 to 9:00, 2018, 5 month, 25 day 7:00 to 9:00, 2018, 5 month, 26 day 7:00 to 9:00, 2018, 5 month, 27 day 7:00 to 9: 00. at this time, 5 pieces of specified planned recording time periods are acquired, which are respectively: 5/2018, 22/7: 00-9: 00, 2018, 5 month, 23 day 7:00 to 9:00, 2018, 5 month, 24 days 7:00 to 9:00, 2018, 5 month, 25 day 7:00 to 9:00, 2018, 5 month, 26 day 7:00 to 9: 00. further, for example, there are 4 recording time periods in the management server, where the video data recorded by the image capturing apparatus C currently stored by the cloud storage system is recorded, where the recording time periods are respectively: 5/2018, 22/7: 00-9: 00, 2018, 5 month, 23 day 7:00 to 9:00, 2018, 5 month, 25 day 7:00 to 9:00, 2018, 5 month, 26 day 7:00 to 9:00, at this time, it is determined, by inquiry, that there is no recording period matching the third designated recording schedule period (24/5/2018, 7:00 to 9:00), and at this time, it is determined that the video data recorded by the image pickup apparatus C is incomplete.
In the method provided by this embodiment, for each image capturing apparatus, a matching recording time period is queried for each designated scheduled recording time period of the image capturing apparatus from a recording time period in which the image capturing apparatus records video data at a regular time, and then a matching recording time period does not exist in at least one designated scheduled recording time period after query, it is determined that the video data recorded by the image capturing apparatus is incomplete, and a matching recording time period exists in each designated scheduled recording time period after query, and it is determined that the video data recorded by the image capturing apparatus is complete. Therefore, the storage integrity detection method can be used for carrying out integrity detection on the video data recorded by the camera equipment stored in the cloud storage system in parallel, so that the problems of large workload and low efficiency in manual detection are solved.
Optionally, in a possible implementation manner of the present application, when it is determined that video data recorded by an image capturing apparatus is incomplete, the method further includes:
and outputting a notification message that the video data is incomplete.
Specifically, the notification message may be output by a voice output or a text output, which is not limited in this embodiment.
The method provided by the embodiment outputs the video data incomplete notification message when the video data recorded by the image pickup device is determined to be incomplete. Therefore, maintenance personnel can be reminded to perform troubleshooting in time.
Optionally, in another possible implementation manner of the present application, after step S101, the method may further include:
and storing the query result of each appointed scheduled video time period.
Specifically, the query result of each designated scheduled recording time period includes a recording time period with a match or a recording time period without a match. Further, the query results may be stored locally, or at a remote device. Therefore, the query result can be conveniently checked by the user at any time by storing the query result.
In connection with the above example, for the image capturing apparatus a, for example, the stored query result for each specified scheduled video recording period is as follows: from 28 days 7:00 at 5 months in 2018 to 28 days 9:00 at 5 months in 2018, there is no matching recording time period; there is a matching recording time period from 11:00 at 28.5/2018 to 14:00 at 28.5/2018; there are matching recording periods from 2018, month 5, 28, day 17:30 to 2018, month 5, 28, day 20: 00.
According to the method provided by the embodiment, the query result of each appointed scheduled video time period is stored, so that the user can conveniently check the query result, and the reason for the incomplete video data is determined.
Specifically, in a possible implementation manner of the present application, the method may further include:
generating a detection report corresponding to the camera equipment according to the stored query result of each appointed plan video time period;
presenting the detection report to a user.
For example, in one embodiment, the detection report may be a graphical report, where the horizontal axis of the graphical report is a specified scheduled recording time period and the vertical axis of the graphical report is a query result of the specified scheduled recording time period.
The method provided by the embodiment generates the detection report and presents the detection report to the user. In this way, the user can intuitively know the query result through the detection report.
Fig. 2 is a flowchart of a second embodiment of a storage integrity detection method provided in the present application. Referring to fig. 2, in the method provided in this embodiment, on the basis of the foregoing embodiment, when receiving a notification message indicating that storage coverage occurs, the method may further include:
s201, acquiring the covering termination time of the video data covered by the storage at this time.
S202, searching a target planned video recording time period with the end time being earlier than the coverage end time from each designated planned video recording time period of the image pickup equipment.
And S203, determining that the video data recorded by the camera in the target scheduled recording time period is incomplete.
Specifically, the video data recorded by each video recording device stored in the cloud storage system may be stored and covered according to a set coverage period or coverage capacity. For example, in one embodiment, the coverage period of the image capturing is 7 days, that is, only 7 days of video data can be stored in the storage server at the same time, and the storage coverage is performed every 7 days, for example, at the current time, data from 5 month 21 to 5 month 27 in 2018 are stored in the storage server, so that the video data of 5 month 21 is covered in 5 month 28.
Note that the management server records the overlay termination time at which the video data to be overlaid is stored this time (the video data located before the overlay termination time is overlaid, for example, in the above example, the overlay termination time is 5 months and 22 days, that is, when the storage overlay occurs, the video data 5 months and 22 days before is deleted). In addition, when the storage coverage occurs, the management server sends a notification message to the storage integrity detection device. Further, in this embodiment, when receiving the notification message of occurrence of the storage coverage, the coverage termination time of the video data covered by the storage coverage of this time may be acquired from the management server.
Specifically, when the storage overwriting occurs, the video data before the overwriting termination time is deleted, in this embodiment, when the storage overwriting occurs, by searching for a target scheduled recording time period whose termination time is earlier than the overwriting termination time from each designated scheduled recording time period of the image pickup apparatus, it is known that the video data recorded in the target scheduled recording time period has been deleted corresponding to the target scheduled recording time period, and therefore, at this time, it is determined that the video data recorded by the image pickup apparatus in the target scheduled recording time period is incomplete.
In connection with the third example above, for example, the current time is 2018, 5, 28, 18: 00, at this time, the storage integrity detection device receives the notification message of the occurrence of the storage coverage, and acquires that the coverage termination time of the video data covered by the storage coverage at this time is 18 in 2018, 5 month, 24 day: 00, namely, in the covering process, the ending time is 18 in 5, 24 and 24 in 2018: the video data of 00 is deleted. At this time, from the 5 specified video schedule time periods, three video schedule time periods are found, wherein the ending time of the three video schedule time periods is earlier than the covering ending time, and the three video schedule time periods are respectively as follows: 5/2018, 22/7: 00-9: 00, 2018, 5 month, 23 day 7:00 to 9:00, 2018, 5 month, 24 days 7:00 to 9:00, at this time, since in the storage coverage of this time, the ratio of 24 days 18 in 5 months in 2018: the video data before 00 has been deleted, and therefore, there is no corresponding video data for the three recording schedule periods, at which time it is determined that the video data recorded by the image pickup apparatus C in the three recording schedule periods is incomplete.
In the method provided by this embodiment, when a notification message indicating that storage coverage occurs is received, the end time of coverage of the currently stored video data that is covered is obtained, and then a target scheduled video recording time period, in which the end time is earlier than the end time of the coverage, is searched for from each specified scheduled video recording time period of the image capturing apparatus, so that it is determined that the video data recorded by the image capturing apparatus in the target scheduled video recording time period is incomplete. Therefore, integrity detection can be triggered when storage coverage occurs, so that the time period corresponding to the incomplete video data is determined, and the accuracy of the detection result is ensured.
Fig. 3 is a flowchart of a third embodiment of a storage integrity detection method provided in the present application. Referring to fig. 3, the method provided in this embodiment may include:
s301, for each image pickup device, inquiring a matched recording time period for each appointed planned recording time period of the image pickup device from the recording time periods of the video data recorded by the image pickup device at regular time.
And S302, when at least one appointed scheduled recording time slot is inquired and no matched recording time slot exists, determining that the video data recorded by the camera equipment is incomplete.
And S303, when the matched recording time period exists in each appointed scheduled recording time period, determining that the video data recorded by the camera equipment is complete.
And S304, storing the query result of each appointed planned video recording time period.
Specifically, the specific implementation principle and implementation process of steps S301 to S304 may refer to the description in the foregoing embodiments, and are not described herein again.
S305, when the notification message of the storage coverage is received, acquiring the coverage termination time of the video data covered by the storage coverage at this time.
Specifically, the management server records the overlay termination time of the video data which is currently overlaid by the storage overlay, and in this step, the overlay termination time of the video data which is currently overlaid by the storage overlay can be acquired from the management server.
S306, searching the stored inquiry result of each appointed planned video time period for the inquiry result of the target planned video time period with the ending time earlier than the covering ending time.
With reference to the example in the second embodiment, three target video recording scheduled time periods are found, where the ending time is earlier than the coverage ending time, and the three target video recording scheduled time periods are respectively: 5/2018, 22/7: 00-9: 00, 2018, 5 month, 23 day 7:00 to 9:00, 2018, 5 month, 24 days 7:00 to 9: 00.
and S307, if the query result of the target plan recording time slot is the recording time slot with matching, updating the query result of the target plan recording time slot into the recording time slot without matching.
Further, with reference to the example in the first embodiment, it can be seen that the query results corresponding to the three target planned video recording time periods are respectively: 5/2018, 22/7: 00-9: 00, there is a matching recording time period; year 2018, month 5, day 23, 7:00 to 9:00, there is a matching recording time period; 24/5/2018 7:00 to 9:00, there is no matching recording period. In this step, for the first two target planned recording time periods, when storage coverage occurs, the corresponding video data does not exist, and at this time, the query results of the two target planned recording time periods are updated to the time periods without matching, so as to ensure the accuracy of the query results.
In the method provided in this embodiment, after the query result of each specified scheduled video recording time period is stored, when a notification message indicating that storage coverage occurs is received, the end time of coverage of the currently stored video data is obtained, and then the query result of the target scheduled video recording time period whose end time is earlier than the end time of coverage is searched from the stored query results of each specified scheduled video recording time period, so that the query result of the target scheduled video recording time period is updated to the recording time period for which there is no matching when the query result of the target scheduled video recording time period is a matching recording time period. Therefore, the accuracy of the stored query result of each scheduled video recording time can be ensured.
Corresponding to the embodiment of the storage integrity detection method, the application also provides an embodiment of a storage integrity detection device.
The embodiment of the storage integrity detection device can be applied to computer equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the memory into the memory for running through the processor of the computer device where the software implementation is located as a logical device. From a hardware aspect, as shown in fig. 4, a hardware structure diagram of a computer device in which the storage integrity detection apparatus of the present application is located is shown, except for the memory 410, the processor 420, the memory 430, and the network interface 440 shown in fig. 4, the computer device in which the apparatus is located in the embodiment may also include other hardware according to an actual function of the storage integrity detection apparatus, which is not described again.
Fig. 5 is a schematic structural diagram of a first embodiment of a storage integrity detection apparatus provided in the present application. Referring to fig. 5, the storage integrity detection apparatus provided in this embodiment may include: a query module 510 and a processing module 520, wherein,
the query module 510 is configured to query, for each image capturing apparatus, a matching recording time period for each specified scheduled video time period of the image capturing apparatus from the recording time periods in which the image capturing apparatus records video data at regular time;
the processing module 520 is configured to determine that video data recorded by the image capturing apparatus is incomplete when the query module queries that there is no matching recording time period in at least one specified planned recording time period;
the processing module 520 is further configured to determine that video data recorded by the image capturing apparatus is complete when the query module queries that there is a matching recording time period in each specified scheduled recording time period.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, the processing module 520 is further configured to output a video data incomplete notification message when it is determined that the video data recorded by the image capturing apparatus is incomplete.
Further, the query module 510 is configured to determine that the recording time period matches the specified scheduled recording time period when the recording time period is the same as the specified scheduled recording time period; and when the recording time period is not the same as the appointed scheduled recording time period, determining that the recording time period is not matched with the appointed scheduled recording time period.
Further, the query module 510 is further configured to, when receiving a notification message that storage coverage occurs, obtain a coverage termination time of video data covered by this storage coverage;
the processing module 520 is further configured to search, from each specified scheduled video time period of the image capturing apparatus, a target scheduled video time period whose ending time is earlier than the coverage ending time, and determine that video data recorded by the image capturing apparatus in the target scheduled video time period is incomplete.
Further, the query module 510 is further configured to, after querying a matching recording time period for each specified video-recording time period of the image capturing apparatus in a recording time period for recording video data from the image capturing apparatus, store a query result for each specified video-recording time period.
Further, the query module is further configured to, after storing the query result for each specified scheduled video period, obtain an overlay termination time of the video data that is overlayed by the current storage overlay when receiving a notification message that the storage overlay occurs;
the processing module 520 is further configured to search, from the stored query result of each specified scheduled video time period, a query result of a target scheduled video time period whose ending time is earlier than the coverage ending time, and update the query result of the target scheduled video time period to a non-matching recording time period when the query result of the target scheduled video time period is that there is a matching recording time period.
The present application also provides a computer storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of any of the methods provided by the first aspect of the present application.
In particular, computer storage media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disk or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks.
With continued reference to fig. 4, the present application further provides a computer device, comprising a memory 410, a processor 420 and a computer program stored on the memory 410 and executable on the processor 420, wherein the processor 420 implements the steps of any one of the methods provided in the first aspect of the present application when executing the program.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (9)

1. A storage integrity detection method, the method comprising:
for each camera shooting device, inquiring a matched recording time period for each appointed planned recording time period of the camera shooting device from the recording time periods of the video data recorded by the camera shooting device at regular time;
when at least one appointed scheduled video time period is inquired, determining that video data recorded by the camera equipment is incomplete;
when the matched recording time periods exist in each appointed video time period, determining that the video data recorded by the camera equipment is complete;
when the storage mode of the recording time period is consistent with that of the appointed scheduled recording time, when the recording time period is the same as the appointed scheduled recording time period, determining that the recording time period is matched with the appointed scheduled recording time period; and when the recording time period is not the same as the appointed scheduled recording time period, determining that the recording time period is not matched with the appointed scheduled recording time period.
2. The method according to claim 1, wherein when it is determined that the video data recorded by the image pickup apparatus is incomplete, the method further comprises:
and outputting a notification message that the video data is incomplete.
3. The method of claim 1, wherein when receiving a notification message that a storage override occurred, the method further comprises:
acquiring the covering termination time of the video data which is stored and covered;
searching a target planned video time period with the ending time being earlier than the covering ending time from each appointed planned video time period of the camera equipment;
and determining that the video data recorded by the camera equipment in the target planned video recording time period is incomplete.
4. The method of claim 1, wherein after querying the matching recording period for each designated scheduled recording period for the camera device from the recording periods during which the camera device recorded video data, the method comprises:
and storing the query result of each appointed scheduled video time period.
5. The method of claim 4, wherein after storing the results of the query for each specified scheduled recording time period, the method further comprises:
when a notification message of storage coverage is received, acquiring the coverage termination time of the video data covered by the storage coverage at this time;
searching a query result of a target planned video time period with the ending time earlier than the covering ending time from the stored query results of each specified planned video time period;
and if the query result of the target plan video recording time slot is the recording time slot with matching, updating the query result of the target plan video recording time slot to the recording time slot without matching.
6. A storage integrity detection apparatus, the apparatus comprising: a query module and a processing module, wherein,
the query module is used for querying the matched recording time period for each appointed planned recording time period of the camera equipment from the recording time period of the video data recorded by the camera equipment in a fixed time aiming at each camera equipment;
the processing module is used for determining that the video data recorded by the camera equipment is incomplete when the query module queries that at least one specified planned video time period does not have a matched recording time period;
the processing module is further configured to determine that video data recorded by the camera device is complete when the query module queries that a matching recording time period exists in each specified planned recording time period;
the query module is used for determining that the recording time period is matched with the specified planned recording time period when the storage mode of the recording time period is consistent with the storage mode of the specified planned recording time period and the recording time period is the same as the specified planned recording time period; and when the recording time period is not the same as the appointed scheduled recording time period, determining that the recording time period is not matched with the appointed scheduled recording time period.
7. The apparatus according to claim 6, wherein the processing module is further configured to output a video data incomplete notification message when it is determined that the video data recorded by the image capturing device is incomplete.
8. A computer storage medium having a computer program stored thereon, the program, when being executed by a processor, performing the steps of the method of any one of claims 1 to 5.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1-5 are implemented when the program is executed by the processor.
CN201810713354.9A 2018-06-29 2018-06-29 Storage integrity detection method and device and computer equipment Active CN110662027B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810713354.9A CN110662027B (en) 2018-06-29 2018-06-29 Storage integrity detection method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810713354.9A CN110662027B (en) 2018-06-29 2018-06-29 Storage integrity detection method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN110662027A CN110662027A (en) 2020-01-07
CN110662027B true CN110662027B (en) 2021-05-28

Family

ID=69027785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810713354.9A Active CN110662027B (en) 2018-06-29 2018-06-29 Storage integrity detection method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN110662027B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428481A (en) * 2013-08-29 2013-12-04 天津市天安怡和信息技术有限公司 Method for retrieving complete video record of camera
CN105338027A (en) * 2014-07-30 2016-02-17 杭州海康威视系统技术有限公司 Method, system and device for cloud storage of video data
CN106598973A (en) * 2015-10-14 2017-04-26 杭州海康威视数字技术股份有限公司 Intelligent searching method and system based on cloud storage management
CN108023746A (en) * 2016-11-02 2018-05-11 杭州海康威视数字技术股份有限公司 A kind of video data handling procedure, apparatus and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MX2018007258A (en) * 2015-12-21 2018-11-29 Amazon Tech Inc Sharing video footage from audio/video recorpding and communication devices.

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428481A (en) * 2013-08-29 2013-12-04 天津市天安怡和信息技术有限公司 Method for retrieving complete video record of camera
CN105338027A (en) * 2014-07-30 2016-02-17 杭州海康威视系统技术有限公司 Method, system and device for cloud storage of video data
CN106598973A (en) * 2015-10-14 2017-04-26 杭州海康威视数字技术股份有限公司 Intelligent searching method and system based on cloud storage management
CN108023746A (en) * 2016-11-02 2018-05-11 杭州海康威视数字技术股份有限公司 A kind of video data handling procedure, apparatus and system

Also Published As

Publication number Publication date
CN110662027A (en) 2020-01-07

Similar Documents

Publication Publication Date Title
EP2717564B1 (en) Method, device and system for realizing video retrieval
US8938430B2 (en) Intelligent data archiving
US9183268B2 (en) Partition level backup and restore of a massively parallel processing database
US7805439B2 (en) Method and apparatus for selecting data records from versioned data
US10275617B2 (en) Object tracking using enhanced video surveillance through a distributed network
KR101496179B1 (en) System and method for searching information based on data absence tagging
CN113111129A (en) Data synchronization method, device, equipment and storage medium
CN110673800B (en) Data operation method, device and equipment of file system and readable storage medium
WO2015096427A1 (en) Method and system for locating and searching surveillance video
WO2018014711A1 (en) Method and device for playing video
CN109491834B (en) Data recovery method and device applied to database
CN106446300A (en) Transaction processing method and system based on shared storage pool
US9930375B2 (en) Media asset management
CN110662027B (en) Storage integrity detection method and device and computer equipment
CN110876090B (en) Video abstract playback method and device, electronic equipment and readable storage medium
CN104956334A (en) Sending a request to a management service
CN106998436B (en) Video backup method and device
JP6079266B2 (en) Control device, log storage method, and control program
CN111061423B (en) Data processing method and device and management node
CN110876029B (en) Video abstract playback method and device, electronic equipment and readable storage medium
CN111385511B (en) Video data processing method and device and video recording equipment
CN107844491B (en) Method and equipment for realizing strong consistency read operation in distributed system
CN114979035B (en) Monitoring video storage method and device, electronic equipment and storage medium
US20080008443A1 (en) Data management system and method
CN115297342B (en) Multi-camera video processing method and device, storage medium and computer equipment

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