CROSS-REFERENCE TO RELATED APPLICATION

This application claims a priority to Chinese Patent Application No. 202010532039.3, filed on Jun. 11, 2020, the contents of which are incorporated herein by reference in their entirety.

TECHNICAL FIELD

Embodiments of the disclosure relates to the field of image processing, and more particular to, a method for processing a video, an apparatus for processing a video, an electronic device, and a computer storage medium.

BACKGROUND

Videos such as news videos generally include a plurality of sub-news in series, and users are often interested in one or more news events instead of all news. Conventional video splitting techniques mainly rely on manual editing to obtain the edited clip, and news item-related text description is pushed with the edited clip after matching with the edited clip. This process is inefficient. There are some conventional technologies that rely on scene features, mute features, or face similarity features before and after for splitting. However, these features need to be carefully designed and have poor adaptability and scalability.

SUMMARY

Embodiments of the disclosure provide a method for processing a video, an apparatus for processing a video, an electronic device, and a computer storage medium.

In a first aspect, embodiments of the disclosure provide a method for processing a video. The method includes: determining a plurality of first identifiers related to a first object based on a plurality of frames including the first object in a target video; determining a plurality of attribute values associated with the plurality of first identifiers based on a knowledge base related to the first object; determining a set of frames from the plurality of frames, in which one or more attribute values associated with one or more first identifiers determined from each one of the set of frames are predetermined values; and splitting the target video into a plurality of video clips based on positions of the set of frames in the plurality of frames.

In a second aspect, embodiments of the disclosure provide an electronic device. The electronic device includes: at least one processor, and a memory communicatively connected to the at least one processor. The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is caused to implement the method according to the first aspect of the disclosure.

In a third aspect, embodiments of the disclosure provide a computer-readable storage medium storing computer instructions. When the instructions are executed, the at least one processor is caused to implement the method according to the first aspect of the disclosure.

It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Additional features of the disclosure will be easily understood by the following description.

