CN111125022A - Method, device, equipment and storage medium for determining video coverage weight - Google Patents

Method, device, equipment and storage medium for determining video coverage weight Download PDF

Info

Publication number
CN111125022A
CN111125022A CN201911117278.6A CN201911117278A CN111125022A CN 111125022 A CN111125022 A CN 111125022A CN 201911117278 A CN201911117278 A CN 201911117278A CN 111125022 A CN111125022 A CN 111125022A
Authority
CN
China
Prior art keywords
video
video file
weight
file
files
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911117278.6A
Other languages
Chinese (zh)
Inventor
李凤刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201911117278.6A priority Critical patent/CN111125022A/en
Publication of CN111125022A publication Critical patent/CN111125022A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus

Abstract

The application relates to a method, a device, equipment and a storage medium for determining video coverage weight, wherein the method comprises the following steps: analyzing the video file to obtain the information of the video file, wherein the information of the video file at least comprises: the number of moving objects in the video picture and/or the continuous moving time of each moving object in the video picture; and determining the coverage weight of the video files according to the information of the video files. The method and the device solve the problem that the determination method of the coverage weight of the video files in the related technology cannot reasonably distinguish the value of the video files, and realize the reasonable distinguishing of the value of the video files.

Description

Method, device, equipment and storage medium for determining video coverage weight
Technical Field
The present application relates to the field of video playing, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for determining a video coverage weight.
Background
With the development of Video technology and information technology, various service performances of Network Video Recorder (NVR for short) need to be improved in the fields of Video technology and information technology. One of the core services of NVR is video coverage, which affects whether NVR can operate stably or even efficiently. The video coverage means that when the video recording service is in progress, the disk space is full of the current video recording data, and the video recording data of the future time cannot be written, the video recording data of the future time needs to be written again in the original data area, that is, the data of the original data area is erased.
In a method for determining video coverage weight in related art, the video coverage weight is determined only according to the file start time of a video file, that is, when the file is about to be written to full, coverage judgment is performed according to the morning and evening of the video recording time: the earliest video is covered firstly, the latest video is covered later, and the video file of each video channel directly covers the own earliest video file. The method for determining the coverage weight completely does not consider the value of the video and treats each video file equally.
In the research process, if the video coverage is performed according to the morning and evening of the time, the covered video files are likely to contain valuable video files, and the remained recent videos are likely to contain non-valuable video files, so that the reasonable utilization of the generated video files is not facilitated.
Aiming at the problem that the value of the video files cannot be reasonably distinguished by a method for determining the coverage weight of the video files in the related art, an effective solution is not provided.
Disclosure of Invention
Based on this, the present application provides a method, an apparatus, a device and a computer readable storage medium for determining a video coverage weight, so as to solve the problem in the related art that the video coverage weight cannot be reasonably determined.
In a first aspect, the present application provides a method for determining video coverage weight, where the method includes: analyzing the video file to obtain the information of the video file, wherein the information of the video file at least comprises: the number of moving objects in the video picture and/or the continuous moving time of each moving object in the video picture; and determining the coverage weight of the video files according to the information of the video files.
In a possible implementation manner, the information of the video file further includes at least one of the following: the method comprises the following steps of starting time of a video file, video type of the video file and a monitoring area corresponding to the video file.
In a possible implementation manner, analyzing the video file to obtain information of the video file includes: when the video file is shot, identifying moving targets and the number of the moving targets in the video file in real time; and/or when the video file is shot, identifying the moving objects and the number of the moving objects in the video file in real time, and recording the continuous moving time of each moving object in the video file.
In one possible implementation manner, determining the coverage weight of the video file according to the information of the video file includes: storing the information of the video files into a preset configuration file; and determining the coverage weight of the video files according to the information of the video files stored in the preset configuration file.
In one possible implementation manner, after determining the coverage weight of the video file according to the information of the video file, the method further includes: and storing the coverage weight of the video file into a preset configuration file.
In one possible implementation manner, determining the coverage weight of the video file according to the information of the video file includes: the covering weight of the video file is calculated according to the following formula:
Figure BDA0002274410260000021
where Y is the overlay weight of the video file, N is the number of moving objects of the video file, W1 is the weight of the number of moving objects of the video file, tiW2 is the weight of the moving duration of the moving object in the video file.
In a possible implementation manner, determining the coverage weight of the video file according to the information of the video file further includes:
the covering weight of the video file is calculated according to the following formula:
Figure BDA0002274410260000031
where Y is the overlay weight of the video file, N is the number of moving objects of the video file, W1 is the weight of the number of moving objects of the video file, tiW2 represents the motion duration of the ith moving object in the video fileW3 is the weight of the video type of the video file, tnowIs the current time, t0W4 is the weight of the start time of the video file, and W5 is the weight of the corresponding monitoring area of the video file.
In one possible implementation manner, after determining the coverage weight of the video file according to the information of the video file, the method further includes: and sequencing the video files from small to large according to the covering weight of the video files to obtain a covering sequence, wherein the smaller the covering weight of the video files is, the earlier the covering sequence of the video files is, the larger the covering weight of the video files is, and the later the covering sequence of the video files is.
In a possible implementation manner, the sorting the video files from small to large according to the coverage weights of the video files, and the obtaining of the coverage sequence includes: judging whether the covering weights of a plurality of video files are equal or not; and determining that the order of the covering of the video files with the earlier file start time among the plurality of video files is earlier when the judgment result shows that the covering weights of the plurality of video files are equal.
In one possible implementation manner, after determining the coverage weight of the video file according to the moving object information and the file type of the video file, the method further includes: judging whether the residual capacity of the storage space of the video file is smaller than the preset storage capacity or not; and covering the video files according to the covering sequence under the condition that the judgment result is that the residual capacity of the storage space of the video files is smaller than the preset storage capacity.
In a second aspect, the present application provides an apparatus for determining video recording coverage weight, the apparatus comprising: the analysis module is used for analyzing the video files to obtain the information of the video files, wherein the information of the video files at least comprises: the number of moving objects in the video picture and/or the moving frequency of each moving object in the video picture; and the determining module is used for determining the coverage weight of the video files according to the information of the video files.
In a third aspect, the present application provides a device for determining video coverage weight, where the device includes: the device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for determining the video coverage weight when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program, when executed by a processor, implements the method for determining the video recording coverage weight.
The method for determining the video coverage weight, the device for determining the video coverage weight, the equipment for determining the video coverage weight and the computer readable storage medium provided by the application obtain the information of the video file by analyzing the video file, wherein the information of the video file at least comprises the following steps: the number of moving objects in the video picture and/or the continuous moving time of each moving object in the video picture; the method for determining the coverage weight of the video files according to the information of the video files solves the problem that the determination method of the coverage weight of the video files in the related technology cannot reasonably distinguish the value of the video files, and achieves reasonable distinguishing of the value of the video files.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or technical solutions in related arts, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flow chart of a method for determining video recording overlay weights according to an embodiment of the present application;
FIG. 2 is a flow chart of a video overlay method according to the preferred embodiment of the present application;
FIG. 3 is a block diagram of an apparatus for determining video recording overlay weights according to an embodiment of the present application;
fig. 4 is a schematic hardware configuration diagram of a video recording coverage weight determining device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other examples, which can be obtained by a person skilled in the art without making any inventive step based on the examples in this application, are within the scope of protection of this application.
In this embodiment, a method for determining video coverage weight is provided. Fig. 1 is a flowchart of a method for determining video coverage weights according to an embodiment of the present application, where the flowchart includes the following steps:
step S102, analyzing the video file to obtain the information of the video file, wherein the information of the video file at least comprises: the number of moving objects in the video picture and/or the continuous moving time of each moving object in the video picture;
and step S104, determining the coverage weight of the video files according to the information of the video files.
Through the steps, the video picture in the video file is analyzed, the number of the moving objects in the selected video picture and/or the continuous moving time of each moving object in the video picture are analyzed, and the number of the moving objects in the video picture and/or the continuous moving time of each moving object in the video picture are taken into consideration factors for determining the coverage weight of the video file, so that the value of the video file is determined. The method fully considers the information of the video picture, judges the value of the video file through the moving target in the video picture, is more accurate than the method for judging the value of the video file only according to the video time, the size and the type in the related technology, solves the problem that the method for determining the coverage weight of the video file in the related technology cannot reasonably distinguish the value of the video file, and realizes the reasonable distinguishing of the value of the video file.
In one embodiment, the information of the video file further comprises at least one of: the method comprises the following steps of starting time of a video file, video type of the video file and a monitoring area corresponding to the video file.
Each video file corresponds to a monitoring area, and the monitoring areas have difference in importance degree, for example, in a warehousing system, the monitoring area near a warehouse door may be more important than the monitoring area near a goods yard; or the area of interest to the user is more important than the area of no interest to the user. In order to distinguish the values of the video files in different monitoring areas, in this embodiment, the importance degree of the monitoring area may be further combined with the number of moving objects in the video picture and the duration of movement of each moving object in the video picture to determine the coverage weight.
In this embodiment, the covering weight may also be determined by combining the file start time of the video file with the number of moving objects in the video picture and the continuous moving time of each moving object in the video picture. On one hand, when the covering weight is determined only by the number of moving objects in the video picture and the continuous moving time of each moving object in the video picture, a part of video files may not enter the covering queue due to overlarge covering weight, although new videos are written into the hard disk subsequently, the covering weight of the part of video files is larger than the covering weight of the newly written video files, so that the part of video files are left in the hard disk for a long time, and the value of the part of video files is more than the value of the newly written video files in the past; the file start time of the video file in this embodiment may be used to calculate the remaining time of the video file in the hard disk, and the coverage weight may be determined by combining the remaining time of the video file in the hard disk with the number of moving objects in the video picture and the continuous moving time of each moving object in the video picture, so as to solve the above problem. On the other hand, when the coverage weight values of two or more video files are equal, the video file with the earlier file start time can be preferentially covered according to the start time of the video file.
In this embodiment, the coverage weight may also be determined by the video type of the video file in combination with the number of moving objects in the video picture and the duration of movement of each moving object in the video picture. Each video file corresponds to a video type, and different video types have different degrees of importance difference, for example, in a video monitoring system, a special video may be more important than a normal video, or a video type in which a user is interested is more important than a video type in which the user is not interested. Through the steps, the values of the video files of different video types can be distinguished.
The analysis of the video files may be performed in real time when the video files are shot, or may be performed at an appropriate timing after the video files are stored. In this embodiment, while the video file is being shot, the video file is analyzed in real time by using a computer image visual analysis technique, so as to identify the moving objects and the number of the moving objects in the video file in real time. In addition, in order to obtain the continuous motion time of the moving object, the continuous motion time of each moving object can be recorded after the moving object is identified.
In the computer image visual analysis technique in this embodiment, moving objects, the number of moving objects, and the duration of moving of the moving objects in a video picture are obtained by separating a background and the objects in the video picture scene to further analyze and track the objects appearing in the monitored area scene.
In practical application, an intelligent analysis module may be embedded in a chip of the camera itself or a back-end device connected to the camera, and a video picture in a video file is analyzed by running an algorithm in the intelligent module, where the algorithm may be any image visual analysis algorithm in the related art that can achieve the purpose of this embodiment, such as a target recognition algorithm, an identity recognition algorithm, a trajectory recognition algorithm, and the like. In a preferred embodiment, the analysis of the moving object may also utilize identification techniques to identify and distinguish moving objects in the video. Such as identifying a person using face recognition techniques or identifying a different person; for example, a license plate identification technique and a vehicle type identification technique are used to identify a motor vehicle and a non-motor vehicle.
Optionally, the number of moving objects in the video picture in this embodiment may be the sum of moving objects identified in the entire video file; for example, a moving object is identified in a video frame of the video file; if two other moving objects are identified in another video picture of the same video file, the number of the moving objects in the video file can be considered as the sum of the numbers of the moving objects identified in the two video pictures, that is, 3 moving objects.
Optionally, the number of moving objects in the video picture in this embodiment may also be the sum of different moving objects identified in the whole video file; for example, moving object a and moving object B are identified in a segment of the video picture of the video file; if the moving object B and the moving object C are identified in another video picture of the same video file, the number of the moving objects in the video file can be considered to be 3, that is, the moving objects are the moving object a, the moving object B, and the moving object C, respectively.
Optionally, the number of moving objects in the video picture in this embodiment may also be the number of moving objects in a certain section of the video picture with the largest number of moving objects identified in the whole video file. For example, if 3 moving objects are identified in one video recording picture of the video recording file, and only 1 moving object is identified in the other video recording pictures at most, the number of moving objects in the video recording file may be considered to be 3 moving objects.
In one embodiment, an image vision analysis algorithm, such as an object detection algorithm, is used to identify the type of object in the picture, such as a person, a vehicle, an animal, or the like. In the present embodiment, regardless of the type of the recognized object, only the moving object is recognized and counted, and the still object is not counted. For example, a vintage A takes a child B to walk, a motorcycle C passes by the vintage A, and a still car D is arranged beside the vintage A, wherein 3 moving objects, namely the vintage A, the child B and the motorcycle C, appear in the current video file, and the car D is not treated as the moving object.
In one embodiment, when analyzing the continuous moving time of the moving objects in the case that the number of the moving objects in the identified video picture is the sum of the moving objects identified in the whole video file or the number of the moving objects in a certain video picture with the largest number of the moving objects identified in the whole video file, the continuous moving time of each moving object in the whole video file may be simply accumulated, and the accumulated value is used as the continuous moving time of the moving object for determining the coverage weight.
In one embodiment, when the number of the moving objects in the identified video picture is the sum of the different moving objects identified in the entire video file, the corresponding continuous moving time may be recorded for each of the different moving objects. For example, in the above example, the time from the entering of the motorcycle C to the leaving of the monitoring area is exactly 1 minute, and the motorcycle C may be regarded as having a duration of 1 unit in the video recorded on the storage device, wherein the motorcycle C has a video of 1 minute. The motorcycle C starts to enter the monitoring area after 2 minutes, stops in the monitoring area after running for 3 minutes, and records the motion video of 3 minutes in the video recorded by the storage device, so that the continuous motion time of the motorcycle C can be considered as 4 motion units, wherein the motorcycle C does not move in the time after stopping in the monitoring area, so that the continuous motion time of the motorcycle C is not counted in the time.
In this embodiment, what is analyzed in step S102 is the moving object and the moving object duration in the entire video file from the beginning to the end of the file in the video file.
In one embodiment, determining the overlay weight of the video file based on the information of the video file comprises: storing the information of the video files into a preset configuration file; and determining the coverage weight of the video files according to the information of the video files stored in the preset configuration file.
In practical applications, it may happen that the information of a certain video file needs to be obtained again due to loss of the coverage weight of the video file, miscalculation, change of the calculation rule of the coverage weight, or update of the weight of each video file information, and the coverage weight of the video file is recalculated through the information. In order to solve the problem, in this embodiment, the information of the video files is stored in the preset configuration file, so that when the coverage weight of a certain video file is lost, miscalculated, the calculation rule of the coverage weight is changed, or the weight of each piece of video file information is updated, and the like, the coverage weight of the video file can be updated quickly according to the information of the video files stored in the preset configuration file.
In one embodiment, after determining the overlay weight of the video file according to the information of the video file, the method further comprises: and storing the coverage weight of the video file into a preset configuration file.
Through the steps, on one hand, the covering weight of the video files is stored in the preset configuration file, and when the covering sequence is determined, the covering weight of each video file can be directly obtained from the preset configuration file, so that the calculation amount when the covering sequence is determined is reduced. On the other hand, after the video file is deleted or covered, the covering weight related to the video file in the preset configuration file can be correspondingly deleted, so that the beneficial effect of conveniently managing the video file is achieved.
There are various ways to determine the overlay weight of the video files according to the information of the video files, and in this embodiment, different weights are given to the information of each type of video files, and the overlay weight is determined by a weighted sum method. The method of determining the overlay weight is not limited to this, and the overlay weight of the video file may be determined by a method such as a weighted product.
In the present embodiment, a method of determining the overlay weight of a video file will be described by taking a weighted sum as an example. Suppose that a Network Video Recorder (NVR) prepares to overwrite a Video file to be recorded with a Video file already existing in a disk due to insufficient disk space. Suppose that there are several video files in the current hard disk:
video recording file A: there are 3 moving objects, respectively moving object Oa1,Oa2,Oa3Wherein O isa1Is ta1,Oa2Is ta2,Oa3Is ta3The video type of the video file is a common video, and the start time of the video file is t0a
And B, video recording file B: there are 2 moving objects, respectively moving object Ob1,Ob2In which O isb1Is tb1,Ob2Is tb2The recording type of the video file is intelligent video, and the initial time of the video file is t0b
And C, video recording file C: there are 1 moving object, moving object Oc1Wherein O isc1Is tc1The video type of the video file is a dynamic check video, and the initial time of the video file is t0c
In one embodiment, determining the overlay weight of the video file based on the information of the video file comprises: the covering weight of the video file is calculated according to the following formula:
Figure BDA0002274410260000091
where Y is the overlay weight of the video file, N is the number of moving objects of the video file, W1 is the weight of the number of moving objects of the video file, tiW2 is the weight of the moving duration of the moving object in the video file.
In this embodiment, the coverage weight of the video files is determined according to the number of the moving objects of the video files and the moving duration of the moving objects, so as to achieve the beneficial effect of effectively and reasonably determining the value of the video files, and the coverage weight of the 3 video files can be determined by this way, as follows:
the covering weight of the video file A is as follows:
YA=3×W1+(ta1+ta2+ta3)×W2
the covering weight of the video file B is as follows:
YB=2×W1+(tb1+tb2)×W2
the covering weight of the video file C is as follows:
YC=1×W1+tC1×W2
in one embodiment, determining the overlay weight of the video file according to the information of the video file further comprises: the covering weight of the video file is calculated according to the following formula:
Figure BDA0002274410260000101
where Y is the overlay weight of the video file, N is the number of moving objects of the video file, W1 is the weight of the number of moving objects of the video file, tiThe motion duration of the ith moving object in the video file is W2, the weight of the motion duration of the moving object in the video file is W3, and the weight of the video type of the video file is W3.
In this embodiment, the coverage weight of the video files is determined according to the number of moving objects of the video files, the moving duration of the moving objects, and the video type of the video files, so as to achieve the beneficial effect of further effectively and reasonably determining the value of the video files, and the coverage weight of the 3 video files can be determined in this way, as follows:
the covering weight of the video file A is as follows:
YA=3×W1+(ta1+ta2+ta3)×W2+W3α
the covering weight of the video file B is as follows:
YB=2×W1+(tb1+tb2)×W2+W3β
the covering weight of the video file C is as follows:
YC=1×W1+tc1×W2+W3γ
w3 α is the weight of normal video, W3 β is the weight of smart video, and W3 γ is the weight of motion check video.
In one embodiment, determining the overlay weight of the video file according to the information of the video file further comprises: the covering weight of the video file is calculated according to the following formula:
Figure BDA0002274410260000111
where Y is the overlay weight of the video file, N is the number of moving objects of the video file, W1 is the weight of the number of moving objects of the video file, tiW2 is the moving duration of the ith moving object in the video file, W3 is the weight of the moving duration of the moving object in the video file, t 3 is the weight of the video type of the video filenowIs the current time, t0W4 is the weight of the file start time of a video file.
In this embodiment, the coverage weight of the video files is determined according to the number of moving objects of the video files, the moving duration of the moving objects, the video type of the video files, and the time saved by the video files from the file start time to the current time, so as to solve the problem that part of the video files are left in the hard disk for a long time, and achieve the beneficial effect of further effectively and reasonably determining the value of the video files, by which the coverage weights of the 3 video files can be determined, as follows:
the covering weight of the video file A is as follows:
YA=3×W1+(ta1+ta2+ta3)×W2+W3α-(tnow-t0a)×W4
the covering weight of the video file B is as follows:
YB=2×W1+(tb1+tb2)×W2+W3β-(tnow-t0b)×W4
the covering weight of the video file C is as follows:
YC=1×W1+tc1×W2+W3γ-(tnow-t0c)×W4
w3 α is the weight of normal video, W3 β is the weight of smart video, and W3 γ is the weight of motion check video.
In a preferred embodiment, determining the overlay weight of the video file according to the information of the video file further comprises: the covering weight of the video file is calculated according to the following formula:
Figure BDA0002274410260000112
where Y is the overlay weight of the video file, N is the number of moving objects of the video file, W1 is the weight of the number of moving objects of the video file, tiW2 is the moving duration of the ith moving object in the video file, W3 is the weight of the moving duration of the moving object in the video file, t 3 is the weight of the video type of the video filenowIs the current time, t0W4 is the weight of the start time of the video file, and W5 is the weight of the corresponding monitoring area of the video file.
In the preferred embodiment, the coverage weight of the video files is determined according to the number of moving objects of the video files, the moving duration of the moving objects, the video type of the video files, the file start time of the video files, and the monitoring area corresponding to the video files, so as to further achieve the beneficial effect of effectively and reasonably determining the value of the video files, and the coverage weight of the 3 video files can be determined by this way, as follows:
the covering weight of the video file A is as follows:
YA=3×W1+(ta1+ta2+ta3)×W2+W3α-(tnow-t0a)×W4+W5α
the covering weight of the video file B is as follows:
YB=2×W1+(tb1+tb2)×W2+W3β-(tnow-t0b)×W4+W5β
the covering weight of the video file C is as follows:
YC=1×W1+tc1×W2+W3γ-(tnow-t0c)×W4+W5γ
w3 α is the weight of normal video, W3 β is the weight of smart video, W3 γ is the weight of live video, and W5 α, W5 β, W5 γ are the weights of monitored areas.
In one embodiment, after determining the coverage weight of the video file according to the information of the video file, the method further includes: and sequencing the video files from small to large according to the covering weight of the video files to obtain a covering sequence, wherein the smaller the covering weight of the video files is, the earlier the covering sequence of the video files is, the larger the covering weight of the video files is, and the later the covering sequence of the video files is.
Through the steps, the covering weights of the video file A, the video file B and the video file C can be obtained, then the covering weights of the 3 video files are compared, the 3 video files are sorted from small to large according to the covering weights, the video with the small sorting covering weight is covered firstly, and the video with the large covering weight is covered later.
In one embodiment, the step of sorting the video files from small to large according to the coverage weights of the video files comprises: judging whether the covering weights of a plurality of video files are equal or not; and determining that the order of the covering of the video files with the earlier file start time among the plurality of video files is earlier when the judgment result shows that the covering weights of the plurality of video files are equal.
Through the steps, the covering weights of the video file A, the video file B and the video file C can be obtained, then the covering weights of the 3 video files are compared, the 3 video files are sorted from small to large according to the covering weights, the video with the small sorting covering weight is covered firstly, and the video with the large covering weight is covered later; when the covering weight values of two or more video files are equal, the video files with the early file starting time are preferentially covered.
In one embodiment, after determining the coverage weight of the video file according to the moving object information and the file type of the video file, the method further includes: judging whether the residual capacity of the storage space of the video file is smaller than the preset storage capacity or not; and covering the video files according to the covering sequence under the condition that the judgment result is that the residual capacity of the storage space of the video files is smaller than the preset storage capacity.
Through the steps, when the storage space is insufficient and part of the video files need to be deleted, the video files are sequentially covered according to the covering weight of the video files, so that the beneficial effects that valuable video files are reserved and resources of the storage space are released are achieved.
In a preferred embodiment, as shown in fig. 2, a flowchart of a video overlay method according to a preferred embodiment of the present application is shown, where the flowchart includes the following steps:
step S202, selecting a video, and analyzing video information of the selected video by a video intelligent analysis method, such as the number of moving targets of the video and the continuous movement time of the moving targets;
step S204, setting a coverage weight coefficient, namely setting a corresponding coverage weight coefficient according to the video information of the selected video, such as the weight of the number of the moving targets of the video and the weight of the continuous moving time of the moving targets;
step S206, calculating the coverage weight of the selected video, and determining the coverage weight of the selected video according to the video information obtained by analysis and the set coverage weight coefficient;
s208, sorting according to the coverage weight, and sorting the selected videos according to the corresponding coverage weight;
step S210, covering according to the sequence from small to large, wherein the video with small sequence covering weight value is covered first, and the video with large covering weight value is covered later; when the covering weight values of two or more video files are equal, the video files with the early file starting time are preferentially covered.
Through the steps, the video pictures in the video files are analyzed by using an intelligent analysis technology, the information of the moving target in the selected video pictures is analyzed, the file start time, the file type and the moving target information of the video files are comprehensively considered, the coverage weight of the video files is determined, the problem that the determination method of the coverage weight of the video files in the related technology cannot reasonably distinguish the value of the video files is solved, and the reasonable distinguishing of the value of the video files is realized. When the covering weight values of two or more video files are equal, the video files with the early file starting time are preferentially covered, so that the beneficial effect of determining a reasonable covering sequence is further realized.
In this embodiment, a device for determining video coverage weight is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the terms "module," "sub-module" may implement a combination of software and/or hardware for a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
Fig. 3 is a block diagram of a device for determining video recording coverage weights according to an embodiment of the present application, and as shown in fig. 3, the device includes:
an analysis module 302, configured to analyze the video file to obtain information of the video file, where the information of the video file at least includes: the number of moving objects in the video picture and/or the moving frequency of each moving object in the video picture;
the determining module 304, coupled to the analyzing module 302, is configured to determine the coverage weight of the video file according to the information of the video file.
In one embodiment, the analysis module 302 includes: and the identification submodule is used for identifying the moving objects and the number of the moving objects in the video file in real time when the video file is shot.
In one embodiment, the analysis module 302 includes: the identification submodule is used for identifying moving targets and the number of the moving targets in the video file in real time when the video file is shot; and the recording submodule is used for recording the continuous motion time of each moving object in the video file.
In one embodiment, the determining module 304 includes: the first storage submodule is used for storing the information of the video file into a preset configuration file; and the first determining submodule is used for determining the coverage weight of the video file according to the information of the video file stored in the preset configuration file.
In one embodiment, the determining module 304 includes: and the second storage submodule is used for storing the coverage weight of the video file into a preset configuration file.
In one embodiment, the determining module 304 includes: the first calculating submodule is used for calculating the covering weight of the video file according to the following formula:
Figure BDA0002274410260000151
where Y is the overlay weight of the video file, N is the number of moving objects of the video file, W1 is the weight of the number of moving objects of the video file, tiW2 is the weight of the moving duration of the moving object in the video file.
In one embodiment, the determining module 304 includes: the second calculating submodule is used for calculating the covering weight of the video file according to the following formula:
Figure BDA0002274410260000152
where Y is the overlay weight of the video file, N is the number of moving objects of the video file, W1 is the weight of the number of moving objects of the video file, tiW2 is the moving duration of the ith moving object in the video file, W3 is the weight of the moving duration of the moving object in the video file, t 3 is the weight of the video type of the video filenowIs the current time, t0W4 is the weight of the start time of the video file, and W5 is the weight of the corresponding monitoring area of the video file.
In one embodiment, the apparatus further comprises: and the sequencing module is used for sequencing the video files from small to large according to the coverage weights of the video files to obtain a coverage sequence, wherein the smaller the coverage weight of the video files is, the more the video files are covered in the front, the larger the coverage weight of the video files is, and the more the video files are covered in the back.
In one embodiment, the ranking module comprises: the first judgment submodule is used for judging whether the coverage weights of a plurality of video files are equal or not; and the second determining submodule is used for determining that the covering sequence of the video files with the earlier file starting time is earlier in the plurality of video files under the condition that the judging result is that the covering weights of the plurality of video files are equal.
In one embodiment, the apparatus further comprises: the second judgment module is used for judging whether the residual capacity of the storage space of the video file is smaller than the preset storage capacity or not; and the covering module is used for covering the video files according to the covering sequence under the condition that the judgment result is that the residual capacity of the storage space of the video files is smaller than the preset storage capacity.
In addition, the method for determining the video recording coverage weight according to the embodiment of the present application described in conjunction with fig. 1 may be implemented by a device for determining the video recording coverage weight. Fig. 4 is a schematic hardware structure diagram of a video coverage weight determining device according to an embodiment of the present application.
The video recording overlay weight determination device may include a processor 401 and a memory 402 having stored thereon computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. The memory 402 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid-state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement the method for determining the video recording coverage weight in any of the above embodiments.
In one example, the video recording overlay weight determination device may further include a communication interface 403 and a bus 400. As shown in fig. 4, the processor 401, the memory 402, and the communication interface 403 are connected via the bus 400 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present application.
Bus 400 includes hardware, software, or both that couple the components of the video overlay weight determination device to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 400 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The video coverage weight determination device may execute the method for determining the video coverage weight in the embodiment of the present application based on the acquired information of the video file, so as to implement the method for determining the video coverage weight described in conjunction with fig. 1.
In addition, in combination with the method for determining the video coverage weight in the foregoing embodiment, the embodiment of the present application may provide a computer-readable storage medium to implement the method. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement a method for determining weights for video recording overlay weights as in any of the above embodiments.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A method for determining video coverage weights, the method comprising:
analyzing a video file to obtain information of the video file, wherein the information of the video file at least comprises: the number of moving objects in the video picture and/or the continuous moving time of each moving object in the video picture;
and determining the coverage weight of the video file according to the information of the video file.
2. The method of claim 1, wherein the information of the video file further comprises at least one of: the file starting time of the video file, the video type of the video file and the monitoring area corresponding to the video file.
3. The method of claim 2, wherein analyzing a video file to obtain information for the video file comprises:
identifying the moving targets and the number of the moving targets in the video file in real time when the video file is shot; and/or
When the video file is shot, identifying the moving targets and the number of the moving targets in the video file in real time, and recording the continuous moving time of each moving target in the video file.
4. The method of claim 1, wherein determining the overlay weight for the video file based on the information for the video file comprises:
storing the information of the video file into a preset configuration file;
and determining the coverage weight of the video files according to the information of the video files stored in the preset configuration files.
5. The method of claim 1, wherein after determining the overlay weight for the video file based on the information for the video file, the method further comprises:
and storing the coverage weight of the video file into a preset configuration file.
6. The method of any of claims 1-5, wherein determining the overlay weight for the video file based on the information for the video file comprises:
calculating the coverage weight of the video file according to the following formula:
Figure FDA0002274410250000011
wherein Y is the coverage weight of the video file, N is the number of moving objects of the video file, W1 is the weight of the number of moving objects of the video file, tiW2 is the weight of the moving duration of the moving object in the video file.
7. The method of any of claims 1-5, wherein determining the overlay weight for the video file based on the information for the video file further comprises:
calculating the coverage weight of the video file according to the following formula:
Figure FDA0002274410250000021
wherein Y is the coverage weight of the video file, N is the number of moving objects of the video file, W1 is the weight of the number of moving objects of the video file, tiW2 is the movement duration of the ith moving object in the video file, W3 is the weight of the movement duration of the moving object in the video file, t 3 is the weight of the video type of the video filenowIs the current time, t0W4 is the file start time of the video file, and W5 is the weight of the monitoring area corresponding to the video file.
8. The method of claim 1, wherein after the determining the overlay weight for the video file based on the information for the video file, the method further comprises:
and sequencing the video files from small to large according to the coverage weight of the video files to obtain a coverage sequence, wherein the smaller the coverage weight of the video files is, the more the video files are covered in the front, the more the video files are covered in the weight, and the more the video files are covered in the back.
9. The method of claim 8, wherein the sorting the video files according to their coverage weights from small to large to obtain a coverage order comprises:
judging whether the covering weights of a plurality of video files are equal or not;
and determining that the covering sequence of the video files with the earlier file starting time is earlier when the judging result shows that the covering weights of the video files are equal.
10. The method of claim 8 or 9, wherein after determining the overlay weight for the video file based on the moving object information and the file type of the video file, the method further comprises:
judging whether the residual capacity of the storage space of the video file is smaller than a preset storage capacity or not;
and covering the video files according to the covering sequence under the condition that the judgment result is that the residual capacity of the storage space of the video files is smaller than the preset storage capacity.
11. An apparatus for determining video recording coverage weights, the apparatus comprising:
the analysis module is used for analyzing the video files to obtain the information of the video files, wherein the information of the video files at least comprises the following components: the number of moving objects in the video picture and/or the moving frequency of each moving object in the video picture;
and the determining module is used for determining the coverage weight of the video files according to the information of the video files.
12. A video overlay device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 10 when executing the computer program.
13. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 10.
CN201911117278.6A 2019-11-15 2019-11-15 Method, device, equipment and storage medium for determining video coverage weight Pending CN111125022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911117278.6A CN111125022A (en) 2019-11-15 2019-11-15 Method, device, equipment and storage medium for determining video coverage weight

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911117278.6A CN111125022A (en) 2019-11-15 2019-11-15 Method, device, equipment and storage medium for determining video coverage weight

Publications (1)

Publication Number Publication Date
CN111125022A true CN111125022A (en) 2020-05-08

Family

ID=70495611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911117278.6A Pending CN111125022A (en) 2019-11-15 2019-11-15 Method, device, equipment and storage medium for determining video coverage weight

Country Status (1)

Country Link
CN (1) CN111125022A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461151A (en) * 2022-04-11 2022-05-10 武汉中科通达高新技术股份有限公司 Video storage method, computer equipment and storage medium of national standard camera

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002305706A (en) * 2001-04-06 2002-10-18 Funai Electric Co Ltd Video recording and reproducing device
CN1614688A (en) * 2004-07-05 2005-05-11 上海交通大学 Monitoring data file processing method and hard disk inspecting method based on hard disk
CN1751508A (en) * 2003-10-20 2006-03-22 松下电器产业株式会社 Multimedia data recording apparatus, monitor system, and multimedia data recording method
JP2010021972A (en) * 2008-07-14 2010-01-28 Panasonic Corp Video recording apparatus
CN103024329A (en) * 2013-01-04 2013-04-03 四川长虹电子系统有限公司 Method for storing and managing surveillance videos
CN103402067A (en) * 2013-08-02 2013-11-20 山东神戎电子股份有限公司 File value rating-based video coverage method
US20140074857A1 (en) * 2012-09-07 2014-03-13 International Business Machines Corporation Weighted ranking of video data
WO2015131700A1 (en) * 2014-10-15 2015-09-11 中兴通讯股份有限公司 File storage method and device
US20150363635A1 (en) * 2014-06-12 2015-12-17 Microsoft Corporation Rule-Based Video Importance Analysis
EP2985994A1 (en) * 2014-08-15 2016-02-17 Xiaomi Inc. Method and apparatus for backing up video and medium
CN106060442A (en) * 2016-05-20 2016-10-26 浙江宇视科技有限公司 Video storage method, device and system
US20170078767A1 (en) * 2015-09-14 2017-03-16 Logitech Europe S.A. Video searching for filtered and tagged motion
US20170076571A1 (en) * 2015-09-14 2017-03-16 Logitech Europe S.A. Temporal video streaming and summaries
CN106961569A (en) * 2017-03-21 2017-07-18 深圳英飞拓科技股份有限公司 One kind video recording covering method, device and network hard disk video recorder
CN106993148A (en) * 2017-03-21 2017-07-28 深圳英飞拓科技股份有限公司 One kind video recording covering method, device and network hard disk video recorder
EP3386207A1 (en) * 2017-04-05 2018-10-10 Clik S.A. Method of operating a data processing system for providing an interactive video content
CN109284419A (en) * 2018-10-09 2019-01-29 安克创新科技股份有限公司 Method, apparatus and monitoring system applied to garbled data

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002305706A (en) * 2001-04-06 2002-10-18 Funai Electric Co Ltd Video recording and reproducing device
CN1751508A (en) * 2003-10-20 2006-03-22 松下电器产业株式会社 Multimedia data recording apparatus, monitor system, and multimedia data recording method
CN1614688A (en) * 2004-07-05 2005-05-11 上海交通大学 Monitoring data file processing method and hard disk inspecting method based on hard disk
JP2010021972A (en) * 2008-07-14 2010-01-28 Panasonic Corp Video recording apparatus
US20140074857A1 (en) * 2012-09-07 2014-03-13 International Business Machines Corporation Weighted ranking of video data
CN103024329A (en) * 2013-01-04 2013-04-03 四川长虹电子系统有限公司 Method for storing and managing surveillance videos
CN103402067A (en) * 2013-08-02 2013-11-20 山东神戎电子股份有限公司 File value rating-based video coverage method
US20150363635A1 (en) * 2014-06-12 2015-12-17 Microsoft Corporation Rule-Based Video Importance Analysis
CN106462744A (en) * 2014-06-12 2017-02-22 微软技术许可有限责任公司 Rule-based video importance analysis
EP2985994A1 (en) * 2014-08-15 2016-02-17 Xiaomi Inc. Method and apparatus for backing up video and medium
WO2015131700A1 (en) * 2014-10-15 2015-09-11 中兴通讯股份有限公司 File storage method and device
US20170078767A1 (en) * 2015-09-14 2017-03-16 Logitech Europe S.A. Video searching for filtered and tagged motion
US20170076571A1 (en) * 2015-09-14 2017-03-16 Logitech Europe S.A. Temporal video streaming and summaries
CN106060442A (en) * 2016-05-20 2016-10-26 浙江宇视科技有限公司 Video storage method, device and system
CN106961569A (en) * 2017-03-21 2017-07-18 深圳英飞拓科技股份有限公司 One kind video recording covering method, device and network hard disk video recorder
CN106993148A (en) * 2017-03-21 2017-07-28 深圳英飞拓科技股份有限公司 One kind video recording covering method, device and network hard disk video recorder
EP3386207A1 (en) * 2017-04-05 2018-10-10 Clik S.A. Method of operating a data processing system for providing an interactive video content
CN109284419A (en) * 2018-10-09 2019-01-29 安克创新科技股份有限公司 Method, apparatus and monitoring system applied to garbled data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461151A (en) * 2022-04-11 2022-05-10 武汉中科通达高新技术股份有限公司 Video storage method, computer equipment and storage medium of national standard camera

Similar Documents

Publication Publication Date Title
CN109166261A (en) Image processing method, device, equipment and storage medium based on image recognition
CN108091140B (en) Method and device for determining fake-licensed vehicle
US8830330B2 (en) Analysis of video footage
CN111160243A (en) Passenger flow volume statistical method and related product
CN107436941A (en) Vehicle movement trajectory analysis method and vehicle movement track analyzing device
US10373015B2 (en) System and method of detecting moving objects
CN110705476A (en) Data analysis method and device, electronic equipment and computer storage medium
CN111898485A (en) Parking space vehicle detection processing method and device
CN109800675A (en) A kind of method and device of the identification image of determining face object
CN113780248B (en) Multi-view-angle identification commodity intelligent order generation method and device and intelligent vending machine
CN111325057B (en) Queuing queue detection method and device
CN111125022A (en) Method, device, equipment and storage medium for determining video coverage weight
CN109783663B (en) Archiving method and device
WO2016019196A1 (en) Video-segment identification systems and methods
CN113592785A (en) Target flow statistical method and device
CN106791648B (en) Monitoring video analysis method and device
CN108024148A (en) The multimedia file recognition methods of Behavior-based control feature, processing method and processing device
CN112752067A (en) Target tracking method and device, electronic equipment and storage medium
CN111914591A (en) Duration determination method and device
KR102308303B1 (en) Apparatus and method for filtering harmful video file
CN113158953B (en) Personnel searching method, device, equipment and medium
CN111010599B (en) Method and device for processing multi-scene video stream and computer equipment
CN112560765A (en) Pedestrian flow statistical method, system, equipment and storage medium based on pedestrian re-identification
CN109960995B (en) Motion data determination system, method and device
US8284319B2 (en) Device and method for processing images to determine a signature of a film

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