CN112711966A - Video file processing method and device and electronic equipment - Google Patents

Video file processing method and device and electronic equipment Download PDF

Info

Publication number
CN112711966A
CN112711966A CN201911018751.5A CN201911018751A CN112711966A CN 112711966 A CN112711966 A CN 112711966A CN 201911018751 A CN201911018751 A CN 201911018751A CN 112711966 A CN112711966 A CN 112711966A
Authority
CN
China
Prior art keywords
video
target
obtaining
video 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.)
Granted
Application number
CN201911018751.5A
Other languages
Chinese (zh)
Other versions
CN112711966B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201911018751.5A priority Critical patent/CN112711966B/en
Publication of CN112711966A publication Critical patent/CN112711966A/en
Application granted granted Critical
Publication of CN112711966B publication Critical patent/CN112711966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources

Abstract

The application provides a video file processing method, a video file processing device and electronic equipment, wherein the video file processing method comprises the following steps: obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object; obtaining a target subject from at least one of the plurality of video files for the same target object; obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object; and obtaining a target video file corresponding to the target subject based on the video segment data corresponding to the target subject. The target video file corresponding to the target main body, which can be obtained by adopting the mode, can solve the problems that the short video obtained by the video processing technology in the prior art is not the short video for a single target main body and is not beneficial to monitoring the same target main body at multiple angles at the same time.

Description

Video file processing method and device and electronic equipment
Technical Field
The present application relates to the field of digital processing, and in particular, to a method and an apparatus for processing a video file, and an electronic device.
Background
With the continuous development of digital technology, real-time monitoring is more and more widely applied in daily life. The resulting video recording content is increasing. As is known, video recording content is mainly used for people to inquire useful information about the monitored environment. For example, in home intelligent monitoring, video segment information of a target subject or object of interest in a monitoring video can be searched from video recording content. Or in the public environment monitoring, the video segment information of the interested target body or object is found from the video recording content monitored in real time, so as to track the motion track information of the interested target body or object. However, both of the above situations require finding a video segment in which a target subject or object of interest appears in a large amount of video recording content.
In the prior art, a video segment of a target subject or object of interest is acquired mainly in the form of concentrating a long video into a short video. Specifically, a video segment corresponding to a target subject of interest or an object of interest appearing in a long video may be cut. Since there may be more than one video segment corresponding to the object of interest or the object of interest in the long video, when there is more than one video segment corresponding to the object of interest or the object of interest, it is necessary to search for each video segment. It is obvious that the search process causes inconvenience to the user. Although in some technologies, the video segments corresponding to the object of interest or the object of interest are spliced to obtain a corresponding short video, the short video is simply spliced to different video segments, where the spliced video segment also contains multiple object objects and is not a short video for a single object. In addition, the existing long videos are all based on a single camera device, and therefore, the monitoring of the same target subject from multiple angles at the same time is not facilitated.
Disclosure of Invention
The application provides a video file processing method, which aims to solve the problems that short videos obtained by the existing video processing technology are not short videos for a single target main body and are not beneficial to monitoring the same target main body at multiple angles at the same time. The application also provides a processing device of the video file, and electronic equipment and a computer medium corresponding to the processing device. The application also provides two video file processing methods and devices.
The application provides a video file processing method, which comprises the following steps:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
obtaining a target subject from at least one of the plurality of video files for the same target object;
obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
and obtaining a target video file corresponding to the target subject based on the video segment data corresponding to the target subject.
Optionally, the obtaining multiple video files provided by multiple video data obtaining devices for the same target object includes:
sending a request for obtaining a plurality of video files for the same target object to each of the plurality of video data obtaining devices;
and receiving the video file which is sent by each device in the plurality of video data acquisition devices and aims at the same target object, and determining the video file which is sent by each device and aims at the same target object as a plurality of video files.
Optionally, the obtaining multiple video files provided by multiple video data obtaining devices for the same target object includes:
obtaining a plurality of video files provided by a plurality of video data acquisition devices;
classifying the video files according to target objects to obtain the corresponding relation between the target objects and the video files;
and obtaining a plurality of video files aiming at the same target object from the plurality of video files according to the characteristics of the target object and the corresponding relation between the target object and the plurality of video files.
Optionally, the classifying the plurality of video files according to the target object to obtain the corresponding relationship between the target object and the plurality of video files includes:
respectively obtaining different target objects appearing in the plurality of video files;
acquiring video clip data of the specified target object in the plurality of video files according to the characteristics of each target object;
recombining the video segment data according to the target objects, and respectively obtaining combined video segment data corresponding to each target object;
and determining the corresponding relation between the target object and the combined video clip data corresponding to the target object as the corresponding relation between the target object and the plurality of video files.
Optionally, the obtaining a target subject from at least one of the plurality of video files for the same target object includes:
obtaining the target object from at least one video file in the plurality of video files for the same target object;
obtaining all target subjects in the target object;
arbitrarily selecting one target subject from the all target subjects as the target subject.
Optionally, the obtaining, from at least two of the plurality of video files for the same target object, video segment data corresponding to the target subject includes:
searching a video file containing the target subject from at least two video files in the plurality of video files aiming at the same target object according to the target feature of the target subject;
determining time information of the target subject appearing in the video file containing the target subject;
and acquiring video segment data corresponding to the target subject according to the time information.
Optionally, the searching, according to the target feature of the target subject, a video file containing the target subject from at least two video files of the plurality of video files for the same target object includes:
obtaining a target feature screening threshold of the target subject;
searching for a video file meeting the target feature screening threshold value from at least two video files in the plurality of video files for the same target object; and determining the video file meeting the target feature screening threshold value as a video file containing the target subject.
Optionally, the obtaining a target video file corresponding to the target subject based on the video clip data corresponding to the target subject includes:
respectively obtaining time information of video segment data corresponding to the target subject;
splicing the video segment data according to the time information of the video segment data and the time sequence to obtain a spliced video file; and determining the spliced video file as a target video file corresponding to the target main body.
Optionally, the obtaining a target video file corresponding to the target subject based on the video clip data corresponding to the target subject includes:
respectively obtaining video frames of video clip data corresponding to the target subject;
obtaining time information of the video frame;
splicing the video frames according to the time information of the video frames according to the time sequence to obtain a spliced video file; and determining the spliced video file as a target video file corresponding to the target main body.
Correspondingly, the application provides a video file processing device, which comprises:
the video file acquisition unit is used for acquiring a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
a target subject obtaining unit, configured to obtain a target subject from at least one video file of the multiple video files for the same target object;
a video clip data acquisition unit configured to acquire video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
a target video file obtaining unit configured to obtain a target video file corresponding to the target subject based on the video clip data corresponding to the target subject.
The application also provides a video file processing method, which comprises the following steps:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
and performing video concentration processing on the plurality of video files to obtain at least one target concentrated video file, wherein the target concentrated video file comprises video fragment data of at least two video files in the plurality of video files.
Optionally, the obtaining multiple video files provided by multiple video data obtaining devices for the same target object includes:
sending a request for obtaining a plurality of video files for the same target object to each of the plurality of video data obtaining devices;
and receiving the video file which is sent by each device in the plurality of video data acquisition devices and aims at the same target object, and determining the video file which is sent by each device and aims at the same target object as a plurality of video files.
Optionally, the obtaining multiple video files provided by multiple video data obtaining devices for the same target object includes:
obtaining a plurality of video files provided by a plurality of video data acquisition devices;
classifying the video files according to target objects to obtain the corresponding relation between the target objects and the video files;
and obtaining a plurality of video files aiming at the same target object from the plurality of video files according to the characteristics of the target object and the corresponding relation between the target object and the plurality of video files.
Optionally, the classifying the plurality of video files according to the target object to obtain the corresponding relationship between the target object and the plurality of video files includes:
respectively obtaining different target objects appearing in the plurality of video files;
acquiring video clip data of the specified target object in the plurality of video files according to the characteristics of each target object;
recombining the video segment data according to the target objects, and respectively obtaining combined video segment data corresponding to each target object;
and determining the corresponding relation between the target object and the combined video clip data corresponding to the target object as the corresponding relation between the target object and the plurality of video files.
Optionally, the performing video concentration processing on the plurality of video files to obtain at least one target concentrated video file includes:
respectively obtaining time information of the plurality of video files;
splicing the plurality of video files according to the time information of the plurality of video files according to the time sequence to obtain spliced video files; and determining the spliced video file as a target concentrated video file.
Optionally, the method further includes:
obtaining a target subject from at least one of the plurality of video files for the same target object;
obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
the performing video compression processing on the plurality of video files to obtain at least one target compressed video file includes:
obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject; and determining the concentrated video file corresponding to the target subject as a target concentrated video file.
Correspondingly, the present application also provides a processing apparatus for video files, including:
the video file acquisition unit is used for acquiring a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
and the target concentrated video file acquisition unit is used for performing video concentration processing on the plurality of video files to obtain at least one target concentrated video file, wherein the target concentrated video file comprises video clip data of at least two video files in the plurality of video files.
The application also provides a video file processing method, which comprises the following steps:
obtaining an original video file;
obtaining a target subject from the original video file;
obtaining video segment data corresponding to the target subject from the original video file;
obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject.
Optionally, the obtaining the original video file includes: and obtaining a plurality of video files aiming at the same target object and provided by a plurality of video data obtaining devices, and determining the plurality of video files aiming at the same target object as the original video files.
Optionally, the obtaining a target subject from the original video file includes:
obtaining the target object from at least one video file in the plurality of video files for the same target object;
obtaining all target subjects in the target object;
arbitrarily selecting one target subject from the all target subjects as the target subject.
Optionally, the obtaining video segment data corresponding to the target subject from the original video file includes:
according to the target characteristics of the target subject, searching a video file containing the target subject from at least two video files in the original video files;
determining time information of the target subject appearing in the video file containing the target subject;
and acquiring video segment data corresponding to the target subject according to the time information.
Optionally, the searching, according to the target feature of the target subject, a video file containing the target subject from at least two video files in the original video file includes:
obtaining a target feature screening threshold of the target subject;
searching video files meeting the target feature screening threshold value from at least two video files in the original video files; and determining the video file meeting the target feature screening threshold value as a video file containing the target subject.
Optionally, the obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject includes:
respectively obtaining time information of video segment data corresponding to the target subject;
splicing the video segment data according to the time information of the video segment data and the time sequence to obtain a spliced video file; and determining the spliced video file as a concentrated video file corresponding to the target subject.
Optionally, the obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject includes:
respectively obtaining video frames of video clip data corresponding to the target subject;
obtaining time information of the video frame;
splicing the video frames according to the time information of the video frames according to the time sequence to obtain a spliced video file; and determining the spliced video file as a concentrated video file corresponding to the target subject.
Correspondingly, the present application also provides a processing apparatus for video files, including:
an original video file obtaining unit for obtaining an original video file;
a target subject obtaining unit for obtaining a target subject from the original video file;
a video clip data acquisition unit configured to acquire video clip data corresponding to the target subject from the original video file;
a concentrated video file obtaining unit configured to obtain a concentrated video file corresponding to the target subject based on the video clip data corresponding to the target subject.
The application provides an electronic device, including:
a processor;
the memory is used for storing the program of the video file processing method and executing the following steps:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
obtaining a target subject from at least one of the plurality of video files for the same target object;
obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
and obtaining a target video file corresponding to the target subject based on the video segment data corresponding to the target subject.
The present application provides a computer storage medium storing a program of a method for processing a video file, the program being executed by a processor to perform the steps of:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
obtaining a target subject from at least one of the plurality of video files for the same target object;
obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
and obtaining a target video file corresponding to the target subject based on the video segment data corresponding to the target subject.
Compared with the prior art, the method has the following advantages:
the application provides a video file processing method, which comprises the following steps: obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object; obtaining a target subject from at least one of the plurality of video files for the same target object; obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object; and obtaining a target video file corresponding to the target subject based on the video segment data corresponding to the target subject. According to the method and the device, the plurality of video files which are provided by the plurality of video data acquisition devices and aim at the same target object are acquired firstly, the video clip data corresponding to the target main body are acquired from at least two video files in the plurality of video files, and finally the target video file corresponding to the target main body is acquired based on the video clip data. The target video file corresponding to the target main body obtained by the method can solve the problems that the short video obtained by the video processing technology in the prior art is not the short video for a single target main body and is not beneficial to monitoring the same target main body at multiple angles at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1-a is a schematic diagram of an embodiment of an application scenario provided in the present application.
Fig. 1 is a flowchart of a method for processing a video file according to a first embodiment of the present application.
Fig. 2 is a schematic diagram of a video file processing apparatus according to a second embodiment of the present application.
Fig. 3 is a flowchart of a method for processing a video file according to a third embodiment of the present application.
Fig. 4 is a schematic view of a video file processing apparatus according to a fourth embodiment of the present application.
Fig. 5 is a flowchart of a method for processing a video file according to a fifth embodiment of the present application.
Fig. 6 is a schematic view of a video file processing apparatus according to a sixth embodiment of the present application.
Fig. 7 is a schematic view of an electronic device for processing a video file according to a seventh embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The application provides a method and a device for processing three video files, electronic equipment and a computer storage medium.
Some embodiments provided by the application can be applied to interactive scenes among a client, a server and a plurality of camera devices. As shown in fig. 1-a, which is a schematic diagram of an embodiment of an application scenario provided in the present application. The multiple camera devices simultaneously collect real-time information of the same target object, wherein the collected information at least comprises video data information and audio data information. In this scenario, the target object may be identified as being in a zoo of a certain zoo, and the plurality of imaging devices may be installed at different positions of the zoo, for example, three imaging devices may be installed at three positions of a elephant house. Because the three cameras are installed at different positions, the areas of the three cameras are not completely the same. The camera device can collect video and audio data of the elephant in the area of the elephant hall. It should be noted that although the three imaging devices have different imaging area ranges, there may be a case where a common imaging area is used to capture the same thumbnail image from different angles at the same time. In the scene of the embodiment, the long videos shot and collected by the three camera devices are sent to the server, and the server respectively identifies target subjects in the three long videos. The target subject can be referred to as a elephant 1, or a elephant 2, or any elephant in a elephant hall; but may of course also be tools or other target bodies for holding food in a elephant hall. After the target subject is identified, video clips containing the target subject are respectively obtained from at least two videos in the three long videos. After the video clips containing the target main body are obtained, the video clips are recombined according to a certain rule, and therefore a target video file containing the target main body is obtained. The target video file may be one short video of a combination of all video segments of the figurine 1 taken by the three cameras. Or it may be a condensed video of a combination of all video segments of the figurine 1 taken by three cameras. For example, in this scene, if the target subject obtained from the three long videos is elephant 1, all video clips containing elephant 1 in the three long videos may be cut out, so as to obtain all video clips containing elephant 1. And then, confirming time information of the highlight time of the elephant 1 in all the video clips containing the elephant 1 according to a preset screening condition, and further intercepting the video clips containing the highlight time of the elephant 1 according to the time information. And finally, splicing all video segments containing the highlights of the elephant 1 at the highlight moment to obtain a short video containing the highlights of the elephant 1 at the highlight moment. Further, the server can also push a short video containing the figurine 1 highlight to the client. In the same way, the target video files of all the elephants in the elephant hall can be obtained in sequence and sent to the breeder or the manager. It should be noted that the application scenario is only one embodiment of the application scenario, and this embodiment of the application scenario is provided to facilitate understanding of the processing method of the video file of the present application, and is not used to limit the processing method of the video file of the present application.
The present application provides a method for processing a video file, which is described in the following embodiments.
Fig. 1 is a flowchart illustrating an embodiment of a method for processing a video file according to a first embodiment of the present application. The method comprises the following steps.
Step S101: and obtaining a plurality of video files aiming at the same target object and provided by a plurality of video data acquisition devices.
When a video file is processed using the video file processing method of the present embodiment, first, a plurality of video files for the same target object provided by a plurality of video data acquisition devices are obtained. In the present embodiment, the plurality of video data acquisition means may refer to a plurality of image pickup apparatuses. The same target object may refer to the same imaging environment. There are various ways to obtain a plurality of video files for the same target object provided by a plurality of video data obtaining devices, and one obtaining way is described below.
First, a request to obtain a plurality of video files for the same target object is issued to each of the plurality of video data acquisition devices. It has been pointed out in the above scenario that multiple video data acquisition devices may refer to multiple camera devices, and the same target object may refer to the environment of a certain museum. Therefore, in the present embodiment, it may be that a request to obtain a plurality of video files for the elephant hall is issued to each of the three image pickup apparatuses that take the elephant hall. Here, two of the three cameras may be installed at two corners of the rear side of the museum, and the other one may be installed right in front of the museum. The mounting positions of the three cameras form a triangular shape as shown in fig. 1-a. Because each camera device is collecting the environment video data information of the elephant hall, a collecting blind area possibly exists, and the plurality of camera devices can be adopted to well avoid the collecting blind area of the elephant hall. Meanwhile, when a plurality of camera devices take a picture, a camera shooting cross area exists, so that video data information of the target body in the small museum can be well collected from a plurality of angles. For example, the video data information of all the elephants of the elephant hall can be acquired from three angles by using three camera devices, so that multi-angle videos of all the elephants can be obtained.
After a request for obtaining a plurality of video files for the same target object is sent to each of the plurality of video data acquisition devices, the video files for the same target object sent by each of the plurality of video data acquisition devices are received, and the video files for the same target object sent by each of the devices are determined to be a plurality of video files.
After a request for obtaining a plurality of video files for the museum is sent to each of the plurality of cameras, each of the plurality of cameras calls up a video file for the museum according to the request. After each camera device respectively calls the video files for the elephant hall, all the called video files for the elephant hall are collected and sent to a server side for subsequent processing.
As another way of obtaining a plurality of video files for the same target object provided by a plurality of video data obtaining apparatuses, the following way may be adopted.
First, a plurality of video files provided by a plurality of video data acquisition devices are obtained. When the imaging device captures an image of the surrounding environment in an open space, the imaging device may capture different target objects at different times. For example, the camera may also be used to photograph a elephant house prior to photographing the elephant house environment. Correspondingly, the camera device only needs to be moved to the elephant hall.
And then classifying the video files according to the target object to obtain the corresponding relation between the target object and the video files. When an image pickup device shoots different target objects at different times, if a plurality of video files aiming at the same target object are required to be obtained, firstly, the characteristics of the target object need to be obtained, and then, a plurality of video files aiming at the same target object are obtained from the plurality of video files according to the characteristics of the target object and the corresponding relation between the target object and the plurality of video files. For example, when a plurality of movable image pickup apparatuses simultaneously capture information of the surrounding environment, the correspondence between each target object and a plurality of video files is established in advance, and then a plurality of video files for the same target object can be obtained from the plurality of video files according to the characteristics of the target object and the correspondence between the target object and the plurality of video files. It should be noted that, in the present embodiment, one video file is generally captured by one image capturing device.
Specifically, the above-mentioned classifying the plurality of video files according to the target object to obtain the corresponding relationship between the target object and the plurality of video files may be performed in the following manner.
First, different target objects appearing in the plurality of video files are obtained, respectively. For example, some three moving image pickup apparatuses take an image of the environment of the museum a for a certain period of time and an image of the environment of the museum B for another period of time. If it is desired to obtain a long video environment in which three image pickup apparatuses take a small image of the museum a, the features of the museum a are first acquired. And acquiring the characteristics of the elephant hall A needs to acquire all target objects appearing in the long video in advance and search the characteristics of the elephant hall A in all the target objects.
And then, acquiring video clip data of the specified target object in the plurality of video files according to the characteristic of each target object. After the characteristics of the target object are obtained, video clip data of the target object are searched for in a plurality of video files. After all the video segment data containing the target object are acquired, the video segment data containing the target object captured by the same image capturing apparatus are recombined, thereby obtaining combined video segment data. And recombining the video segment data of all the appeared target objects according to the mode to respectively obtain the combined video segment data corresponding to each target object. Finally, the correspondence of the target object and the combined video clip data corresponding to the target object is determined as the correspondence of the target object and the plurality of video files.
Step S102: the target subject is obtained from at least one of a plurality of video files for the same target object.
After obtaining a plurality of video files of the same target object in step S101, a target subject is obtained from at least one of the plurality of video files for the same target object.
As one of the ways to obtain the target subject from at least one of the plurality of video files for the same target object. Firstly, the target object is obtained from at least one video file in the plurality of video files for the same target object. Thereafter, all target subjects in the target object are obtained. And finally, arbitrarily selecting one target subject from all the target subjects as the target subject.
Taking the example of shooting the scene of the elephant house a as an example, assuming that three cameras are placed in the elephant house a, there are three long video files for the elephant house a. If the target subjects in the three long video files are to be obtained, the characteristics of the elephant hall A can be extracted first, because all the target subjects in the elephant hall A are part of the characteristics of the elephant hall A. After the characteristics of the elephant hall A are obtained, all target subjects of the elephant hall A are obtained, such as all elephants of the elephant hall A, diet tools of the elephant hall A and the like. After all target subjects of the elephant hall a are obtained, one target subject can be selected from all target subjects as a research object, that is, finally, one target subject is arbitrarily selected from all target subjects as the target subject. For example, the elephant 1 may be selected as the target subject, and the elephant 2 of the elephant hall a may be selected as the target subject. And after the target subject is selected, screening video segment data corresponding to the current target subject according to the target subject. And after the screening is finished, continuously selecting the next target main body, and screening the video fragment data corresponding to the next target main body according to the next target main body. In this way, corresponding video segment data for all target subjects under study are screened out.
Step S103: video clip data corresponding to a target subject is obtained from at least two video files among a plurality of video files for the same target object.
Since the present embodiment is based on the fact that the same target object is simultaneously captured by a plurality of image capturing apparatuses, video clip data corresponding to the target object is obtained, and therefore, video clip data corresponding to the target object is obtained from at least two video files among a plurality of video files for the same target object. As a preferred embodiment of the present application, video clip data corresponding to a target subject is obtained from all of a plurality of video files for the same target object.
After the target subject is selected, video clip data corresponding to the target subject is obtained based on at least two video files from among a plurality of video files for the same target object. For example, the elephant 1 of the elephant hall a is selected as the target subject, and video clip data corresponding to the elephant 1 is obtained from at least two video files among the plurality of video files for the elephant hall a.
Specifically, the obtaining of the video segment data corresponding to the target subject from at least two video files of the plurality of video files for the same target object may be performed as described below.
Firstly, according to the target characteristics of the target subject, searching the video files containing the target subject from at least two video files in the plurality of video files aiming at the same target object. Taking the example of searching for the video file containing the elephant 1 in the plurality of video files for shooting the elephant hall A, all the video files containing the elephant 1 in the three video files can be searched according to the target characteristics of the elephant 1. When searching for a video file containing the elephant 1, a face recognition technology can be used for searching for a video file containing the front face of the elephant 1 in the three video files according to the facial features of the elephant 1. The video files containing the elephant 1 in the three video files can be searched according to other characteristics of the elephant 1, such as weight identification related identification technology. In a similar manner, video files containing other relevant parts of the elephant 1 may also be found. Of course, other related identification techniques not mentioned in this embodiment may be used to identify and search all video files containing the elephant 1 in the three video files, and these modifications are within the scope of the present application. Of course, according to the target feature of the target subject, at least two video files containing the target subject are searched from at least two video files of the plurality of video files for the same target object. Here, it should be noted that the videos of all time periods in which the elephant 1 appears are not at least from two video files, but the videos of at least one time period in which the elephant 1 appears are required to be at least from two video files. Likewise, other target objects are also applicable to this case.
Then, the time information of the target subject appearing in the video file containing the target subject is determined. After the video file containing the target subject is searched from at least two video files in the plurality of video files for the same target object, the time information of the target subject appearing in the video file containing the target subject is determined from the video file containing the target subject. The time information acquired in this step is specifically used for the subsequent step of intercepting video clip data containing the target subject from the long video.
And finally, according to the time information, obtaining video segment data corresponding to the target subject.
And after acquiring the time information of the target subject in the video file containing the target subject, acquiring the video segment data corresponding to the target subject according to the time information. Specifically, according to the time information, video segment data corresponding to the time information is intercepted from the video file containing the target subject, and the intercepted video segment data is used as the video segment data corresponding to the target subject.
As to search for a video file containing the target subject from at least two video files of the plurality of video files for the same target object according to the target feature of the target subject, the following manner may be adopted.
First, a target feature screening threshold of the target subject is obtained. In the screening of the video file containing the elephant 1, the video of the highlight moment of the elephant 1 is acquired for convenience. The target feature filtering threshold of the elephant 1 can be preset, for example, the motion feature of the elephant 1 scroll nose can be used as a filtering threshold condition, and only the video with the motion of the elephant 1 scroll nose is selected from the three video files, so that other video clips irrelevant to the motion of the scroll nose are filtered.
Then, searching a video file which accords with the target characteristic screening threshold value from at least two video files in the plurality of video files aiming at the same target object; and determining the video file meeting the target feature screening threshold value as a video file containing the target subject. Specifically, after a target feature screening threshold of a target subject is obtained, according to a target feature screening threshold condition, video files meeting the target feature screening threshold are searched from at least two video files of a plurality of video files for the same target object.
Step S104: based on the video clip data corresponding to the target subject, a target video file corresponding to the target subject is obtained.
After video clip data corresponding to the target subject is acquired, a target video file corresponding to the target subject is acquired based on all the video clip data corresponding to the target subject. Further, the target video file corresponding to the target subject may be a combination of video clips containing the highlight of the target subject or a condensed video containing the highlight of the target subject. For example, after obtaining a plurality of video segment data corresponding to the elephant 1, all the video segment data containing the elephant 1 may be spliced according to the corresponding chronological order, and the spliced video may be used as the video segment data corresponding to the elephant 1. Alternatively, the obtained video clip data corresponding to the elephant 1 may be filtered to obtain a video clip combination including the highlight (for example, the scroll nose) of the elephant 1, and the obtained video clip combination including the highlight of the elephant 1 may be used as the target video file. For example, in a zoo setting, all video segments as small as 1 may be captured during a day, but some video segments may be filtered out after some filtering conditions are set. Therefore, the obtained filtered video clips may be video clips corresponding to the highlight time of the elephant 1 (video clips of the nose rolling motion of the elephant 1) in the day, and after a plurality of video clips of the highlight time of the elephant 1 are obtained, the obtained plurality of video clips are combined to obtain a video clip combination containing the highlight time of the elephant 1, namely, a target video file of the highlight time of the elephant 1. The screening may also be as follows: if in the three videos, each video acquires the small image 1 at the same time, but one video shooting angle is not clear or the picture is not clear, the corresponding video segment can be removed.
As one of ways to obtain a target video file corresponding to the target subject based on video clip data corresponding to the target subject. First, time information of video clip data corresponding to the target subjects is obtained, respectively. Since the acquired video clip corresponding to the target subject may be a plurality of pieces, it is necessary to acquire time information of video clip data corresponding to the target subject, respectively. For example, in three videos, in each of the videos, the video segment in which the elephant 1 appears is multiple segments and discontinuous, and at this time, time information of multiple segments of video segment data needs to be acquired to provide a time basis for subsequently splicing the video segments.
Then, according to the time information of the video segment data, splicing the video segment data according to the time sequence to obtain a spliced video file; and determining the spliced video file as a target video file corresponding to the target main body. Specifically, if the video segment data of the elephant 1 is multiple segments and discontinuous, the segments need to be spliced to obtain the target video file corresponding to the elephant 1. The splicing of the video segment data is generally to sort the video segment data according to the time information and then splice the sorted video segment data to form a video. If multiple pieces of video segment data appear at the same time, the video segment data at the same time can be randomly spliced, and then the video segment data at the next time is spliced.
As another way of obtaining a target video file corresponding to the target subject based on video clip data corresponding to the target subject. First, video frames of video clip data corresponding to the target subjects are obtained, respectively. The method is different from the first method for acquiring a target video file corresponding to a target subject in that: the video segment data is divided into video frames and in this manner, the video frames can be analogized to the video segment data.
Thereafter, temporal information of the video frame is obtained. Finally, splicing the video frames according to the time sequence of the video frames according to the time information of the video frames to obtain a spliced video file; and determining the spliced video file as a target video file corresponding to the target main body.
In this embodiment, all the obtained video files containing the elephant 1 are used as short video files of the elephant 1, and can be used as video files of the elephant 1 in a certain day or a certain period of time, and sent to a feeder or a manager of the elephant 1, so that the feeder or the manager can know the growth process of the elephant 1 in the certain day or the certain period of time. Meanwhile, the video clips of the elephant 1 needing to be fed can be screened out by setting screening conditions, for example, when the elephant 1 sends out a hunger action signal or sends out hunger sound, the video clips at the moments are concentrated to obtain a concentrated and shortened video, and a feeder or a manager can know the rule of the elephant 1 needing to be fed according to the short video so as to feed in time. For another example, according to the acquired short video file of the elephant 1, the abnormal sound emitted by the elephant 1 is analyzed, the video segment corresponding to the abnormal sound is screened out and concentrated to obtain a concentrated and shortened video, so that a feeder or a manager can observe whether the elephant is ill or not, and can timely give treatment according to the short video. In addition, when a feeder or a manager throws the elephant 1, the expression of the elephant 1 can be captured according to the video clip containing the elephant 1 so as to obtain which foods are interested by the elephant 1. Of course, the above application is illustrated only with the elephant 1, which is equally applicable for other target subjects. The embodiment can be applied to zoo scenes and other observation scenes.
In the embodiment, a plurality of video files provided by a plurality of video data obtaining devices and aiming at the same target object are obtained first, video clip data corresponding to a target subject are obtained from at least two video files in the plurality of video files, and finally the target video file corresponding to the target subject is obtained based on the video clip data. The target video file corresponding to the target main body, which can be obtained by adopting the mode, can solve the problems that the short video obtained by the video processing technology in the prior art is not the short video for a single target main body and is not beneficial to monitoring the same target main body at multiple angles at the same time.
In the first embodiment described above, a method for processing a video file is provided, and correspondingly, the present application also provides a device for processing a video file. Fig. 2 is a schematic diagram of a video file processing apparatus according to a second embodiment of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
The embodiment provides a video file processing device, which comprises:
a video file obtaining unit 201, configured to obtain a plurality of video files provided by a plurality of video data obtaining apparatuses and for a same target object;
a target subject obtaining unit 202, configured to obtain a target subject from at least one video file of the multiple video files for the same target object;
a video segment data obtaining unit 203, configured to obtain video segment data corresponding to the target subject from at least two video files of the multiple video files for the same target object;
a target video file obtaining unit 204, configured to obtain a target video file corresponding to the target subject based on the video clip data corresponding to the target subject.
Optionally, the video file obtaining unit is specifically configured to:
sending a request for obtaining a plurality of video files for the same target object to each of the plurality of video data obtaining devices;
and receiving the video file which is sent by each device in the plurality of video data acquisition devices and aims at the same target object, and determining the video file which is sent by each device and aims at the same target object as a plurality of video files.
Optionally, the video file obtaining unit is specifically configured to:
obtaining a plurality of video files provided by a plurality of video data acquisition devices;
classifying the video files according to target objects to obtain the corresponding relation between the target objects and the video files;
and obtaining a plurality of video files aiming at the same target object from the plurality of video files according to the characteristics of the target object and the corresponding relation between the target object and the plurality of video files.
Optionally, the video file obtaining unit is specifically configured to:
respectively obtaining different target objects appearing in the plurality of video files;
acquiring video clip data of the specified target object in the plurality of video files according to the characteristics of each target object;
recombining the video segment data according to the target objects, and respectively obtaining combined video segment data corresponding to each target object;
and determining the corresponding relation between the target object and the combined video clip data corresponding to the target object as the corresponding relation between the target object and the plurality of video files.
Optionally, the target subject obtaining unit is specifically configured to:
obtaining the target object from at least one video file in the plurality of video files for the same target object;
obtaining all target subjects in the target object;
arbitrarily selecting one target subject from the all target subjects as the target subject.
Optionally, the video clip data acquiring unit is specifically configured to:
searching a video file containing the target subject from at least two video files in the plurality of video files aiming at the same target object according to the target feature of the target subject;
determining time information of the target subject appearing in the video file containing the target subject;
and acquiring video segment data corresponding to the target subject according to the time information.
Optionally, the video clip data acquiring unit is specifically configured to:
obtaining a target feature screening threshold of the target subject;
searching for a video file meeting the target feature screening threshold value from at least two video files in the plurality of video files for the same target object; and determining the video file meeting the target feature screening threshold value as a video file containing the target subject.
Optionally, the target video file obtaining unit is specifically configured to:
respectively obtaining time information of video segment data corresponding to the target subject;
splicing the video segment data according to the time information of the video segment data and the time sequence to obtain a spliced video file; and determining the spliced video file as a target video file corresponding to the target main body.
Optionally, the target video file obtaining unit is specifically configured to:
respectively obtaining video frames of video clip data corresponding to the target subject;
obtaining time information of the video frame;
splicing the video frames according to the time information of the video frames according to the time sequence to obtain a spliced video file; and determining the spliced video file as a target video file corresponding to the target main body.
In the first embodiment described above, a method of processing a video file is provided. The application also provides another video file processing method. Fig. 3 is a flowchart illustrating a method for processing a video file according to a third embodiment of the present application. Since the specific implementation manner of the method in this embodiment is substantially similar to that of the method in the first embodiment, the description is relatively simple, and for the relevant points, reference may be made to part of the description of the first embodiment.
The present application provides a method for processing a video file, which is described in the following embodiments.
Fig. 3 is a flowchart illustrating an embodiment of a method for processing a video file according to a third embodiment of the present application. The method comprises the following steps.
Step S301: and obtaining a plurality of video files aiming at the same target object and provided by a plurality of video data acquisition devices.
As one of the ways of obtaining a plurality of video files for the same target object provided by a plurality of video data obtaining apparatuses, the following ways may be mentioned.
First, a request to obtain a plurality of video files for the same target object is issued to each of the plurality of video data acquisition devices.
And then, receiving the video file which is sent by each device of the plurality of video data acquisition devices and aims at the same target object, and determining the video file which is sent by each device and aims at the same target object as a plurality of video files.
As another way of obtaining a plurality of video files for the same target object provided by a plurality of video data obtaining apparatuses, the following manner may be also adopted.
First, a plurality of video files provided by a plurality of video data acquisition devices are obtained.
And then classifying the video files according to the target object to obtain the corresponding relation between the target object and the video files.
And finally, obtaining a plurality of video files aiming at the same target object from the plurality of video files according to the characteristics of the target object and the corresponding relation between the target object and the plurality of video files.
The classifying the plurality of video files according to the target object to obtain the corresponding relationship between the target object and the plurality of video files includes: different target objects appearing in the plurality of video files are obtained respectively. Acquiring video clip data of the specified target object in the plurality of video files according to the characteristics of each target object; and recombining the video segment data according to the target objects to respectively obtain combined video segment data corresponding to each target object. And determining the corresponding relation between the target object and the combined video clip data corresponding to the target object as the corresponding relation between the target object and the plurality of video files.
Step S302: and performing video concentration processing on the plurality of video files to obtain at least one target concentrated video file, wherein the target concentrated video file comprises video fragment data of at least two video files in the plurality of video files.
As a way of performing video enrichment processing on the plurality of video files to obtain at least one target enriched video file, the following may be performed: first, time information of the plurality of video files is obtained, respectively. Then, according to the time information of the plurality of video files, splicing the plurality of video files according to the time sequence to obtain spliced video files; and determining the spliced video file as a target concentrated video file.
Further, in this embodiment, the manner of performing video enrichment processing on the plurality of video files to obtain at least one target enriched video file may be: firstly, a target subject is obtained from at least one video file of the plurality of video files for the same target object. And then, obtaining video segment data corresponding to the target subject from at least two video files in the plurality of video files aiming at the same target object. Finally, based on the video segment data corresponding to the target subject, obtaining a condensed video file corresponding to the target subject; and determining the concentrated video file corresponding to the target subject as a target concentrated video file.
In the third embodiment, a method for processing a video file is provided, and correspondingly, a device for processing a video file is also provided. Fig. 4 is a schematic diagram of a video file processing apparatus according to a fourth embodiment of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
Correspondingly, the present embodiment further provides a processing apparatus for a video file, including:
a video file obtaining unit 401, configured to obtain multiple video files for a same target object, where the multiple video files are provided by multiple video data obtaining devices;
a target concentrated video file obtaining unit 402, configured to perform video concentration processing on the multiple video files to obtain at least one target concentrated video file, where the target concentrated video file includes video clip data of at least two video files in the multiple video files.
Optionally, the video file obtaining unit is specifically configured to:
sending a request for obtaining a plurality of video files for the same target object to each of the plurality of video data obtaining devices;
and receiving the video file which is sent by each device in the plurality of video data acquisition devices and aims at the same target object, and determining the video file which is sent by each device and aims at the same target object as a plurality of video files.
Optionally, the video file obtaining unit is specifically configured to:
obtaining a plurality of video files provided by a plurality of video data acquisition devices;
classifying the video files according to target objects to obtain the corresponding relation between the target objects and the video files;
and obtaining a plurality of video files aiming at the same target object from the plurality of video files according to the characteristics of the target object and the corresponding relation between the target object and the plurality of video files.
Optionally, the video file obtaining unit is specifically configured to:
respectively obtaining different target objects appearing in the plurality of video files;
acquiring video clip data of the specified target object in the plurality of video files according to the characteristics of each target object;
recombining the video segment data according to the target objects, and respectively obtaining combined video segment data corresponding to each target object;
and determining the corresponding relation between the target object and the combined video clip data corresponding to the target object as the corresponding relation between the target object and the plurality of video files.
Optionally, the target condensed video file obtaining unit is specifically configured to:
respectively obtaining time information of the plurality of video files;
splicing the plurality of video files according to the time information of the plurality of video files according to the time sequence to obtain spliced video files; and determining the spliced video file as a target concentrated video file.
Optionally, the apparatus further comprises a video segment data obtaining unit;
the video segment data acquisition unit is specifically configured to:
obtaining a target subject from at least one of the plurality of video files for the same target object;
obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
the target condensed video file obtaining unit is specifically configured to:
obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject; and determining the concentrated video file corresponding to the target subject as a target concentrated video file.
In the first embodiment described above, a method of processing a video file is provided. The application also provides another video file processing method. Fig. 5 is a flowchart illustrating a method for processing a video file according to a fifth embodiment of the present application. Since the specific implementation manner of the method in this embodiment is substantially similar to that of the method in the first embodiment, the description is relatively simple, and for the relevant points, reference may be made to part of the description of the first embodiment.
The present application provides a method for processing a video file, which is described in the following embodiments.
Fig. 5 is a flowchart illustrating an embodiment of a method for processing a video file according to a fifth embodiment of the present application. The method comprises the following steps.
Step S501: an original video file is obtained.
There are various ways of obtaining the original video file, and as one of them, the following can be described. And obtaining a plurality of video files aiming at the same target object and provided by a plurality of video data obtaining devices, and determining the plurality of video files aiming at the same target object as the original video files.
Step S502: the target subject is obtained from the original video file.
After obtaining the original video file, obtaining the target subject from the original video file, wherein the process may include: firstly, the target object is obtained from at least one video file in the plurality of video files for the same target object. Thereafter, all target subjects in the target object are obtained. Finally, one target subject is arbitrarily selected from the all target subjects as the target subject.
Step S503: video clip data corresponding to a target subject is obtained from an original video file.
As one of the ways to obtain video clip data corresponding to the target subject from the original video file, first: and searching a video file containing the target subject from at least two video files in the original video files according to the target feature of the target subject. Then, the time information of the target subject appearing in the video file containing the target subject is determined. And finally, according to the time information, obtaining video segment data corresponding to the target subject.
Wherein, according to the target feature of the target subject, searching the video file containing the target subject from at least two video files in the original video file comprises: obtaining a target feature screening threshold of the target subject; searching video files meeting the target feature screening threshold value from at least two video files in the original video files; and determining the video file meeting the target feature screening threshold value as a video file containing the target subject.
Step S504: based on the video clip data corresponding to the target subject, a condensed video file corresponding to the target subject is obtained.
As one way of obtaining a condensed video file corresponding to the target subject based on video clip data corresponding to the target subject, first, time information of video clip data corresponding to the target subject is obtained, respectively. Then, according to the time information of the video segment data, splicing the video segment data according to the time sequence to obtain a spliced video file; and determining the spliced video file as a concentrated video file corresponding to the target subject.
As another way of obtaining a condensed video file corresponding to the target subject based on video clip data corresponding to the target subject, first, video frames of the video clip data corresponding to the target subject are respectively obtained. Thereafter, temporal information of the video frame is obtained. Finally, splicing the video frames according to the time sequence of the video frames according to the time information of the video frames to obtain a spliced video file; and determining the spliced video file as a concentrated video file corresponding to the target subject.
In the fifth embodiment, a method for processing a video file is provided, and correspondingly, a device for processing a video file is also provided. Fig. 6 is a schematic diagram of a video file processing apparatus according to a sixth embodiment of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
Correspondingly, the present embodiment further provides a processing apparatus for a video file, including:
an original video file obtaining unit 601 configured to obtain an original video file;
a target subject obtaining unit 602, configured to obtain a target subject from the original video file;
a clip data acquisition unit 603 configured to acquire clip data corresponding to the target subject from the original video file;
a concentrated video file obtaining unit 604, configured to obtain a concentrated video file corresponding to the target subject based on the video clip data corresponding to the target subject.
Optionally, the original video file obtaining unit is specifically configured to:
and obtaining a plurality of video files aiming at the same target object and provided by a plurality of video data obtaining devices, and determining the plurality of video files aiming at the same target object as the original video files.
Optionally, the target subject obtaining unit is specifically configured to:
obtaining the target object from at least one video file in the plurality of video files for the same target object;
obtaining all target subjects in the target object;
arbitrarily selecting one target subject from the all target subjects as the target subject.
Optionally, the video clip data acquiring unit is specifically configured to:
according to the target characteristics of the target subject, searching a video file containing the target subject from at least two video files in the original video files;
determining time information of the target subject appearing in the video file containing the target subject;
and acquiring video segment data corresponding to the target subject according to the time information.
Optionally, the video clip data acquiring unit is specifically configured to:
obtaining a target feature screening threshold of the target subject;
searching video files meeting the target feature screening threshold value from at least two video files in the original video files; and determining the video file meeting the target feature screening threshold value as a video file containing the target subject.
Optionally, the condensed video file obtaining unit is specifically configured to:
respectively obtaining time information of video segment data corresponding to the target subject;
splicing the video segment data according to the time information of the video segment data and the time sequence to obtain a spliced video file; and determining the spliced video file as a concentrated video file corresponding to the target subject.
Optionally, the condensed video file obtaining unit is specifically configured to:
respectively obtaining video frames of video clip data corresponding to the target subject;
obtaining time information of the video frame;
splicing the video frames according to the time information of the video frames according to the time sequence to obtain a spliced video file; and determining the spliced video file as a concentrated video file corresponding to the target subject.
A first embodiment of the present application provides a method for processing a video file, and a seventh embodiment of the present application provides an electronic device corresponding to the method.
As shown in fig. 7, it shows a schematic diagram of an electronic device for processing a video file provided by the present embodiment.
The present embodiment provides an electronic device, including:
a processor 701;
the memory 702 is used for storing the program of the video file processing method and executing the following steps:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
obtaining a target subject from at least one of the plurality of video files for the same target object;
obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject.
A first embodiment of the present application provides a method for processing a video file, and an eighth embodiment of the present application provides a computer storage medium corresponding to the method.
The present embodiment provides a computer storage medium storing a program of a processing method of a video file, the program being executed by a processor to perform the steps of:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
obtaining a target subject from at least one of the plurality of video files for the same target object;
obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject.
The third embodiment of the present application provides a method for processing a video file, and the ninth embodiment of the present application provides an electronic device corresponding to the method. Since the ninth embodiment is the same as the seventh embodiment in illustration, please continue to refer to fig. 7, which shows a schematic diagram of an electronic device for processing a video file according to the ninth embodiment of the present application.
The present embodiment provides an electronic device, including:
a processor;
the memory is used for storing the program of the video file processing method and executing the following steps:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
and performing video concentration processing on the plurality of video files to obtain at least one target concentrated video file, wherein the target concentrated video file comprises video fragment data of at least two video files in the plurality of video files.
A third embodiment of the present application provides a method for processing a video file, and a tenth embodiment of the present application provides a computer storage medium corresponding to the method.
The present embodiment provides a computer storage medium storing a program of a processing method of a video file, the program being executed by a processor to perform the steps of:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
and performing video concentration processing on the plurality of video files to obtain at least one target concentrated video file, wherein the target concentrated video file comprises video fragment data of at least two video files in the plurality of video files.
The fifth embodiment of the present application provides a method for processing a video file, and the eleventh embodiment of the present application provides an electronic device corresponding to the method. Since the eleventh embodiment is the same as the seventh embodiment in illustration, please continue to refer to fig. 7, which shows a schematic diagram of an electronic device for processing a video file according to the eleventh embodiment of the present application.
The application provides an electronic device, including:
a processor;
the memory is used for storing the program of the video file processing method and executing the following steps:
obtaining an original video file;
obtaining a target subject from the original video file;
obtaining video segment data corresponding to the target subject from the original video file;
obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject.
A fifth embodiment of the present application provides a method for processing a video file, and a twelfth embodiment of the present application provides a computer storage medium corresponding to the method.
The present embodiment provides a computer storage medium storing a program of a processing method of a video file, the program being executed by a processor to perform the steps of:
obtaining an original video file;
obtaining a target subject from the original video file;
obtaining video segment data corresponding to the target subject from the original video file;
obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
1. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer-readable medium does not include non-transitory computer-readable storage media (non-transitory computer readable storage media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (27)

1. A method for processing a video file, comprising:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
obtaining a target subject from at least one of the plurality of video files for the same target object;
obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
and obtaining a target video file corresponding to the target subject based on the video segment data corresponding to the target subject.
2. The method according to claim 1, wherein the obtaining a plurality of video files provided by a plurality of video data acquisition devices for a same target object comprises:
sending a request for obtaining a plurality of video files for the same target object to each of the plurality of video data obtaining devices;
and receiving the video file which is sent by each device in the plurality of video data acquisition devices and aims at the same target object, and determining the video file which is sent by each device and aims at the same target object as a plurality of video files.
3. The method according to claim 1, wherein the obtaining a plurality of video files provided by a plurality of video data acquisition devices for a same target object comprises:
obtaining a plurality of video files provided by a plurality of video data acquisition devices;
classifying the video files according to target objects to obtain the corresponding relation between the target objects and the video files;
and obtaining a plurality of video files aiming at the same target object from the plurality of video files according to the characteristics of the target object and the corresponding relation between the target object and the plurality of video files.
4. The method according to claim 3, wherein the classifying the plurality of video files according to the target object to obtain the corresponding relationship between the target object and the plurality of video files comprises:
respectively obtaining different target objects appearing in the plurality of video files;
acquiring video clip data of the specified target object in the plurality of video files according to the characteristics of each target object;
recombining the video segment data according to the target objects, and respectively obtaining combined video segment data corresponding to each target object;
and determining the corresponding relation between the target object and the combined video clip data corresponding to the target object as the corresponding relation between the target object and the plurality of video files.
5. The method according to claim 1, wherein obtaining the target subject from at least one of the plurality of video files for the same target object comprises:
obtaining the target object from at least one video file in the plurality of video files for the same target object;
obtaining all target subjects in the target object;
arbitrarily selecting one target subject from the all target subjects as the target subject.
6. The method according to claim 1, wherein the obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object comprises:
searching a video file containing the target subject from at least two video files in the plurality of video files aiming at the same target object according to the target feature of the target subject;
determining time information of the target subject appearing in the video file containing the target subject;
and acquiring video segment data corresponding to the target subject according to the time information.
7. The method according to claim 6, wherein the searching for the video file containing the target subject from at least two video files of the plurality of video files for the same target object according to the target feature of the target subject comprises:
obtaining a target feature screening threshold of the target subject;
searching for a video file meeting the target feature screening threshold value from at least two video files in the plurality of video files for the same target object; and determining the video file meeting the target feature screening threshold value as a video file containing the target subject.
8. The method of claim 1, wherein obtaining a target video file corresponding to the target subject based on the video clip data corresponding to the target subject comprises:
respectively obtaining time information of video segment data corresponding to the target subject;
splicing the video segment data according to the time information of the video segment data and the time sequence to obtain a spliced video file; and determining the spliced video file as a target video file corresponding to the target main body.
9. The method of claim 1, wherein obtaining a target video file corresponding to the target subject based on the video clip data corresponding to the target subject comprises:
respectively obtaining video frames of video clip data corresponding to the target subject;
obtaining time information of the video frame;
splicing the video frames according to the time information of the video frames according to the time sequence to obtain a spliced video file; and determining the spliced video file as a target video file corresponding to the target main body.
10. A video file processing apparatus, comprising:
the video file acquisition unit is used for acquiring a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
a target subject obtaining unit, configured to obtain a target subject from at least one video file of the multiple video files for the same target object;
a video clip data acquisition unit configured to acquire video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
a target video file obtaining unit configured to obtain a target video file corresponding to the target subject based on the video clip data corresponding to the target subject.
11. A method for processing a video file, comprising:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
and performing video concentration processing on the plurality of video files to obtain at least one target concentrated video file, wherein the target concentrated video file comprises video fragment data of at least two video files in the plurality of video files.
12. The method according to claim 11, wherein the obtaining a plurality of video files provided by a plurality of video data acquisition devices for a same target object comprises:
sending a request for obtaining a plurality of video files for the same target object to each of the plurality of video data obtaining devices;
and receiving the video file which is sent by each device in the plurality of video data acquisition devices and aims at the same target object, and determining the video file which is sent by each device and aims at the same target object as a plurality of video files.
13. The method according to claim 11, wherein the obtaining a plurality of video files provided by a plurality of video data acquisition devices for a same target object comprises:
obtaining a plurality of video files provided by a plurality of video data acquisition devices;
classifying the video files according to target objects to obtain the corresponding relation between the target objects and the video files;
and obtaining a plurality of video files aiming at the same target object from the plurality of video files according to the characteristics of the target object and the corresponding relation between the target object and the plurality of video files.
14. The method according to claim 13, wherein the classifying the plurality of video files according to the target object to obtain the corresponding relationship between the target object and the plurality of video files comprises:
respectively obtaining different target objects appearing in the plurality of video files;
acquiring video clip data of the specified target object in the plurality of video files according to the characteristics of each target object;
recombining the video segment data according to the target objects, and respectively obtaining combined video segment data corresponding to each target object;
and determining the corresponding relation between the target object and the combined video clip data corresponding to the target object as the corresponding relation between the target object and the plurality of video files.
15. The method according to claim 11, wherein said performing video enrichment on said plurality of video files to obtain at least one target enriched video file comprises:
respectively obtaining time information of the plurality of video files;
splicing the plurality of video files according to the time information of the plurality of video files according to the time sequence to obtain spliced video files; and determining the spliced video file as a target concentrated video file.
16. The method of claim 11, further comprising:
obtaining a target subject from at least one of the plurality of video files for the same target object;
obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
the performing video compression processing on the plurality of video files to obtain at least one target compressed video file includes:
obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject; and determining the concentrated video file corresponding to the target subject as a target concentrated video file.
17. A video file processing apparatus, comprising:
the video file acquisition unit is used for acquiring a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
and the target concentrated video file acquisition unit is used for performing video concentration processing on the plurality of video files to obtain at least one target concentrated video file, wherein the target concentrated video file comprises video clip data of at least two video files in the plurality of video files.
18. A method for processing a video file, comprising:
obtaining an original video file;
obtaining a target subject from the original video file;
obtaining video segment data corresponding to the target subject from the original video file;
obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject.
19. The method of claim 18, wherein obtaining the original video file comprises: and obtaining a plurality of video files aiming at the same target object and provided by a plurality of video data obtaining devices, and determining the plurality of video files aiming at the same target object as the original video files.
20. The method of claim 19, wherein obtaining the target subject from the original video file comprises:
obtaining the target object from at least one video file in the plurality of video files for the same target object;
obtaining all target subjects in the target object;
arbitrarily selecting one target subject from the all target subjects as the target subject.
21. The method of claim 18, wherein obtaining video clip data corresponding to the target subject from the original video file comprises:
according to the target characteristics of the target subject, searching a video file containing the target subject from at least two video files in the original video files;
determining time information of the target subject appearing in the video file containing the target subject;
and acquiring video segment data corresponding to the target subject according to the time information.
22. The method of claim 21, wherein searching for the video file containing the target subject from at least two of the original video files according to the target feature of the target subject comprises:
obtaining a target feature screening threshold of the target subject;
searching video files meeting the target feature screening threshold value from at least two video files in the original video files; and determining the video file meeting the target feature screening threshold value as a video file containing the target subject.
23. The method of claim 18, wherein obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject comprises:
respectively obtaining time information of video segment data corresponding to the target subject;
splicing the video segment data according to the time information of the video segment data and the time sequence to obtain a spliced video file; and determining the spliced video file as a concentrated video file corresponding to the target subject.
24. The method of claim 18, wherein obtaining a condensed video file corresponding to the target subject based on the video clip data corresponding to the target subject comprises:
respectively obtaining video frames of video clip data corresponding to the target subject;
obtaining time information of the video frame;
splicing the video frames according to the time information of the video frames according to the time sequence to obtain a spliced video file; and determining the spliced video file as a concentrated video file corresponding to the target subject.
25. A video file processing apparatus, comprising:
an original video file obtaining unit for obtaining an original video file;
a target subject obtaining unit for obtaining a target subject from the original video file;
a video clip data acquisition unit configured to acquire video clip data corresponding to the target subject from the original video file;
a concentrated video file obtaining unit configured to obtain a concentrated video file corresponding to the target subject based on the video clip data corresponding to the target subject.
26. An electronic device, comprising:
a processor;
the memory is used for storing the program of the video file processing method and executing the following steps:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
obtaining a target subject from at least one of the plurality of video files for the same target object;
obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
and obtaining a target video file corresponding to the target subject based on the video segment data corresponding to the target subject.
27. A computer storage medium storing a program of a method for processing a video file, the program being executed by a processor to perform the steps of:
obtaining a plurality of video files which are provided by a plurality of video data acquisition devices and aim at the same target object;
obtaining a target subject from at least one of the plurality of video files for the same target object;
obtaining video clip data corresponding to the target subject from at least two of the plurality of video files for the same target object;
and obtaining a target video file corresponding to the target subject based on the video segment data corresponding to the target subject.
CN201911018751.5A 2019-10-24 2019-10-24 Video file processing method and device and electronic equipment Active CN112711966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911018751.5A CN112711966B (en) 2019-10-24 2019-10-24 Video file processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911018751.5A CN112711966B (en) 2019-10-24 2019-10-24 Video file processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112711966A true CN112711966A (en) 2021-04-27
CN112711966B CN112711966B (en) 2024-03-01

Family

ID=75540265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911018751.5A Active CN112711966B (en) 2019-10-24 2019-10-24 Video file processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112711966B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013075295A1 (en) * 2011-11-23 2013-05-30 浙江晨鹰科技有限公司 Clothing identification method and system for low-resolution video
CN104182959A (en) * 2013-05-22 2014-12-03 浙江大华技术股份有限公司 Target searching method and target searching device
CN104581437A (en) * 2014-12-26 2015-04-29 中通服公众信息产业股份有限公司 Video abstract generation and video backtracking method and system
CN105306880A (en) * 2015-03-17 2016-02-03 四川浩特通信有限公司 Video concentration method
CN108769598A (en) * 2018-06-08 2018-11-06 复旦大学 Across the camera video method for concentration identified again based on pedestrian
CN109525901A (en) * 2018-11-27 2019-03-26 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and computer-readable medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013075295A1 (en) * 2011-11-23 2013-05-30 浙江晨鹰科技有限公司 Clothing identification method and system for low-resolution video
CN104182959A (en) * 2013-05-22 2014-12-03 浙江大华技术股份有限公司 Target searching method and target searching device
CN104581437A (en) * 2014-12-26 2015-04-29 中通服公众信息产业股份有限公司 Video abstract generation and video backtracking method and system
CN105306880A (en) * 2015-03-17 2016-02-03 四川浩特通信有限公司 Video concentration method
CN108769598A (en) * 2018-06-08 2018-11-06 复旦大学 Across the camera video method for concentration identified again based on pedestrian
CN109525901A (en) * 2018-11-27 2019-03-26 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and computer-readable medium

Also Published As

Publication number Publication date
CN112711966B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
US8676027B2 (en) Method for event initiated video capturing and a video camera for capture event initiated video
KR102146042B1 (en) Method and system for playing back recorded video
US10104345B2 (en) Data-enhanced video viewing system and methods for computer vision processing
KR20110132884A (en) Apparatus for intelligent video information retrieval supporting multi channel video indexing and retrieval, and method thereof
JP2012088787A (en) Image processing device, image processing method
US10623712B2 (en) Techniques to extract ENF signals from video image sequences exploiting the rolling shutter mechanism; and a new video synchronization approach by matching the ENF signals extracted from soundtracks and image sequences
KR101821989B1 (en) Method of providing detection of moving objects in the CCTV video data by reconstructive video processing
US20200296332A1 (en) System and method of video capture and search optimization
CN109800329B (en) Monitoring method and device
US10897658B1 (en) Techniques for annotating media content
CN105430247A (en) Method and device for taking photograph by using image pickup device
CN112866817B (en) Video playback method, device, electronic device and storage medium
US9864900B2 (en) Entropy-reducing low pass filter for face-detection
CN110351579B (en) Intelligent video editing method
EP3977751A1 (en) System and method of synchronizing video and audio clips with audio data
CN110896497A (en) Image processing method, video playing method and device
JP2008016896A (en) Monitoring apparatus and monitoring method
TW201601541A (en) Network camera data managing system and managing method thereof
CN112711966B (en) Video file processing method and device and electronic equipment
CN110457998B (en) Image data association method and apparatus, data processing apparatus, and medium
US20160295064A1 (en) Photo cluster detection and compression
CN106203244B (en) A kind of determination method and device of lens type
CN110321857B (en) Accurate passenger group analysis method based on edge calculation technology
CN113252678A (en) Appearance quality inspection method and equipment for mobile terminal
CN111601108A (en) Monitoring video processing method and device and video monitoring terminal

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