[go: up one dir, main page]

CN116193049A - Video processing method, device, computer equipment and storage medium - Google Patents

Video processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116193049A
CN116193049A CN202211727999.0A CN202211727999A CN116193049A CN 116193049 A CN116193049 A CN 116193049A CN 202211727999 A CN202211727999 A CN 202211727999A CN 116193049 A CN116193049 A CN 116193049A
Authority
CN
China
Prior art keywords
video
segment
frame
key
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211727999.0A
Other languages
Chinese (zh)
Inventor
张伟俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Insta360 Innovation Technology Co Ltd
Original Assignee
Insta360 Innovation Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Insta360 Innovation Technology Co Ltd filed Critical Insta360 Innovation Technology Co Ltd
Priority to CN202211727999.0A priority Critical patent/CN116193049A/en
Publication of CN116193049A publication Critical patent/CN116193049A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0127Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level by changing the field or frame frequency of the incoming video signal, e.g. frame rate converter

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)
  • Studio Circuits (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本申请涉及一种视频处理方法、装置、计算机设备、存储介质和计算机程序产品。该方法获取包含目标对象的视频;检测所述目标对象触发关键事件,以自动识别目标对象的精彩瞬间,并根据所述关键事件确定视频中的关键片段,并从所述视频中确定所述关键片段的相关片段;可对所述关键片段进行帧率调整,得到目标帧率的慢动作视频片段;而相关片段可以不进行处理,也可以进行帧率的适应性处理,进而使所述相关片段和慢动作视频片段合成目标视频。通过这种方式合成视频后,目标视频的各片段均有其各自的节奏,中心突出节奏鲜明。

Figure 202211727999

The present application relates to a video processing method, device, computer equipment, storage medium and computer program product. The method acquires a video containing a target object; detects that the target object triggers a key event to automatically identify the wonderful moment of the target object, and determines the key segment in the video according to the key event, and determines the key from the video The related segment of the segment; the frame rate of the key segment can be adjusted to obtain the slow-motion video segment of the target frame rate; and the related segment can not be processed, and the adaptive processing of the frame rate can also be carried out, so that the related segment Synthesize the target video with the slow motion video clip. After the video is synthesized in this way, each segment of the target video has its own rhythm, and the center highlights the rhythm.

Figure 202211727999

Description

视频处理方法、装置、计算机设备和存储介质Video processing method, device, computer equipment and storage medium

技术领域technical field

本申请涉及图像处理技术领域,特别是涉及一种视频处理方法、装置、计算机设备、存储介质和计算机程序产品。The present application relates to the technical field of image processing, in particular to a video processing method, device, computer equipment, storage medium and computer program product.

背景技术Background technique

慢动作拍摄是一种新颖的拍摄方式,目前拍摄慢动作视频都是人使用电子设备手动获取目标对象的精彩瞬间。Slow-motion shooting is a novel shooting method. At present, slow-motion videos are shot by people using electronic devices to manually capture the wonderful moments of the target object.

慢动作视频的制作方法通常有两种:一种是使用固定的高帧率进行视频拍摄,在保存视频的时候,降低整个视频的帧率,形成慢动作特效,比如使用120fps进行拍摄,将视频保存为15fps,则获得8倍慢动作的视频;另一种是使用视频插帧算法来合成更高帧率的视频,得到慢动作特效。然而,采用传统的慢动作视频制作方法制作处理的视频,会出现整个视频均是慢动作视频,导致视频的节奏过于单一。There are usually two ways to make slow-motion video: one is to use a fixed high frame rate for video shooting, and when saving the video, reduce the frame rate of the entire video to form slow-motion special effects, such as shooting at 120fps, the video will be If you save it at 15fps, you will get an 8x slow-motion video; the other is to use a video frame interpolation algorithm to synthesize a video with a higher frame rate to get slow-motion special effects. However, if the traditional slow-motion video production method is used to produce and process the video, the entire video will appear as a slow-motion video, resulting in a too single rhythm of the video.

发明内容Contents of the invention

基于此,有必要针对上述技术问题,提供一种视频处理方法、装置、计算机设备、计算机可读存储介质和计算机程序产品,能够识别并降低关键片段的播放速度,以突出关键事件发生的片段,增加慢动作视频的精彩程度。Based on this, it is necessary to provide a video processing method, device, computer equipment, computer readable storage medium and computer program product for the above technical problems, which can identify and reduce the playback speed of key segments, so as to highlight the segments where key events occur, Add excitement to slow motion videos.

第一方面,本申请提供了一种视频处理方法。所述方法包括:In a first aspect, the present application provides a video processing method. The methods include:

获取包含目标对象的视频;Obtain a video containing the target object;

检测所述目标对象触发关键事件;Detecting that the target object triggers a key event;

根据所述关键事件确定视频中的关键片段,并从所述视频中确定所述关键片段外的相关片段;determining a key segment in the video according to the key event, and determining related segments outside the key segment from the video;

对所述关键片段进行帧率调整,得到目标帧率的慢动作视频片段;Adjusting the frame rate of the key segment to obtain a slow-motion video segment of the target frame rate;

基于所述相关片段和所述慢动作视频片段合成目标视频。A target video is synthesized based on the relevant segments and the slow-motion video segments.

在其中一个实施例中,所述基于所述相关片段和所述慢动作视频片段合成目标视频,包括:In one of the embodiments, the synthesizing the target video based on the related segment and the slow-motion video segment includes:

对所述相关片段进行抽帧处理,得到视频帧序列;performing frame extraction processing on the relevant segment to obtain a sequence of video frames;

合成所述视频帧序列,得到所述目标帧率的视频片段;Synthesizing the sequence of video frames to obtain a video segment of the target frame rate;

对所述目标帧率的视频片段和所述慢动作视频片段进行视频合成,得到目标视频。and performing video synthesis on the video segment of the target frame rate and the slow-motion video segment to obtain a target video.

在其中一个实施例中,所述相关片段包括第一相关片段和第二相关片段;In one of the embodiments, the related segments include a first related segment and a second related segment;

所述对所述相关片段进行抽帧处理,得到视频帧序列,包括:The frame extraction processing of the relevant segments is performed to obtain a sequence of video frames, including:

对所述第一相关片段和所述第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列;performing frame extraction processing on the first related segment and the second related segment to obtain a first video frame sequence and a second video frame sequence;

所述合成所述视频帧序列,得到所述目标帧率的视频片段,包括:The synthesizing the sequence of video frames to obtain the video clips of the target frame rate includes:

分别合成所述第一视频帧序列和所述第二视频帧序列,得到目标帧率的第一视频片段和第二视频片段;Synthesizing the first video frame sequence and the second video frame sequence respectively to obtain the first video segment and the second video segment of the target frame rate;

所述对所述合成视频片段和所述慢动作视频片段进行视频合成,包括:The video synthesis of the synthesized video clip and the slow motion video clip includes:

对所述第一视频片段、所述慢动作视频片段和所述第二视频片段进行视频合成。performing video synthesis on the first video clip, the slow motion video clip and the second video clip.

在其中一个实施例中,所述对所述第一相关片段和所述第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列,包括:In one of the embodiments, the frame extraction processing of the first related segment and the second related segment to obtain a first video frame sequence and a second video frame sequence includes:

按照第一抽帧频率,对所述第一相关片段和所述第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列;或者,performing frame extraction processing on the first related segment and the second related segment according to the first frame sampling frequency to obtain a first video frame sequence and a second video frame sequence; or,

按照第二抽帧频率,对所述第一相关片段和所述第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列;performing frame extraction processing on the first relevant segment and the second relevant segment according to a second frame extraction frequency to obtain a first video frame sequence and a second video frame sequence;

其中,所述第一抽帧频率大于所述第二抽帧频率,且所述第一抽帧频率是基于所述关键片段的帧率与所述目标帧率之间的比值确定。Wherein, the first frame drawing frequency is greater than the second frame drawing frequency, and the first frame drawing frequency is determined based on a ratio between the frame rate of the key segment and the target frame rate.

在其中一个实施例中,所述对所述第一相关片段和所述第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列,包括:In one of the embodiments, the frame extraction processing of the first related segment and the second related segment to obtain a first video frame sequence and a second video frame sequence includes:

按照第一抽帧频率对所述第一相关片段进行抽帧处理,得到第一视频帧序列;performing frame extraction processing on the first relevant segment according to a first frame extraction frequency to obtain a first video frame sequence;

按照第二抽帧频率对所述第二相关片段进行抽帧处理,得到第二视频帧序列;performing frame extraction processing on the second relevant segment according to a second frame extraction frequency to obtain a second video frame sequence;

其中,所述第一抽帧频率大于所述第二抽帧频率,且所述第一抽帧频率是基于所述关键片段的帧率与所述目标帧率之间的比值确定。Wherein, the first frame drawing frequency is greater than the second frame drawing frequency, and the first frame drawing frequency is determined based on a ratio between the frame rate of the key segment and the target frame rate.

在其中一个实施例中,所述对所述第一相关片段和所述第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列,包括:In one of the embodiments, the frame extraction processing of the first related segment and the second related segment to obtain a first video frame sequence and a second video frame sequence includes:

按照第一抽帧频率对所述第一相关片段进行抽帧处理,得到第一视频帧序列;performing frame extraction processing on the first relevant segment according to a first frame extraction frequency to obtain a first video frame sequence;

按照抽帧频率序列中的各抽帧频率,依序对所述第二相关片段中的子片段进行抽帧处理,且抽帧过程中每个抽帧频率抽取不同的子片段,得到第二视频帧序列;According to each frame-drawing frequency in the frame-drawing frequency sequence, the sub-segments in the second relevant segment are sequentially subjected to frame-drawing processing, and different sub-segments are extracted for each frame-drawing frequency during the frame-drawing process to obtain a second video frame sequence;

其中,所述抽帧频率序列中的各抽帧频率是递增或递减的。Wherein, each frame drawing frequency in the frame drawing frequency sequence is increasing or decreasing.

在其中一个实施例中,对所述关键片段进行帧率调整,得到目标帧率的慢动作视频片段,包括:In one of the embodiments, the frame rate of the key segment is adjusted to obtain a slow-motion video segment of the target frame rate, including:

确定目标帧率,所述目标帧率低于所述关键片段的帧率;determining a target frame rate, the target frame rate being lower than the frame rate of the key segment;

将所述关键片段的帧率转换为所述目标帧率,得到慢动作视频片段。converting the frame rate of the key segment to the target frame rate to obtain a slow-motion video segment.

在其中一个实施例中,所述根据所述关键事件确定视频中的关键片段,并从所述视频中确定所述关键片段外的相关片段,包括:In one of the embodiments, the determining the key segment in the video according to the key event, and determining the related segments other than the key segment from the video include:

确定所述关键事件在所述视频存在的关键时间段;Determining the critical time period during which the key event exists in the video;

根据所述关键时间段筛选所述视频中的关键片段;Screening key segments in the video according to the key time period;

在所述关键时间段的前一预设时间段、所述关键时间的后一预设时间段以及各所述关键时间段之间的间隔时间段中,确定至少一个相关时间段;determining at least one relevant time period in the preceding preset time period of the critical time period, the subsequent preset time period of the critical time period, and the interval time period between each of the critical time periods;

根据所述相关时间段查找所述视频中的相关片段。Find relevant segments in the video according to the relevant time period.

在其中一个实施例中,所述检测所述目标对象触发关键事件,包括:In one of the embodiments, the detecting the target object to trigger a key event includes:

获取所述视频的场景信息;Obtain scene information of the video;

按照所述场景信息,检测所述目标对象的动作;Detecting the action of the target object according to the scene information;

若确定所述目标对象的动作属于所述场景信息的预设动作,则确定所述目标对象触发所述预设动作的关键事件。If it is determined that the action of the target object belongs to the preset action of the scene information, then determine the key event that the target object triggers the preset action.

在其中一个实施例中,所述按照所述场景信息,检测目标对象的动作,包括:In one of the embodiments, the detection of the action of the target object according to the scene information includes:

若所述场景信息表征篮球场景,则确定所述场景信息的预设动作为投篮动作;If the scene information represents a basketball scene, then determine that the preset action of the scene information is a shooting action;

按照所述篮球场景信息对应的人体姿态,从所述视频提取所述目标对象的姿态关键点;According to the human body posture corresponding to the basketball scene information, extracting the posture key points of the target object from the video;

根据所述姿态关键点识别所述目标对象的动作是否属于投篮动作;identifying whether the action of the target object belongs to a shooting action according to the key points of the posture;

所述确定所述目标对象的动作属于所述场景信息的预设动作,包括:The action of determining the target object belongs to the preset action of the scene information, including:

确定所述目标对象的动作属于所述投篮动作。The action of determining the target object belongs to the shooting action.

在其中一个实施例中,所述检测所述目标对象触发关键事件,包括:In one of the embodiments, the detecting the target object to trigger a key event includes:

确定所述视频的视频画面;determining a video frame of the video;

在所述视频画面中,检测所述目标对象的面积参数;所述面积参数包括在所述视频画面中的目标对象面积,或者所述目标对象面积与所述视频画面的面积之间的比值;In the video picture, detect the area parameter of the target object; the area parameter includes the area of the target object in the video picture, or the ratio between the area of the target object and the area of the video picture;

当所述面积参数大于预设面积参数阈值时,确定所述目标对象触发关键事件。When the area parameter is greater than a preset area parameter threshold, it is determined that the target object triggers a key event.

第二方面,本申请还提供了一种视频处理装置,所述装置包括:In a second aspect, the present application also provides a video processing device, the device comprising:

视频获取模块,用于获取包含目标对象的视频;The video acquisition module is used to acquire the video containing the target object;

事件检测模块,用于检测所述目标对象触发关键事件;An event detection module, configured to detect that the target object triggers a key event;

片段提取模块,用于根据所述关键事件确定视频中的关键片段,并从所述视频中确定所述关键片段外的相关片段;Segment extraction module, for determining the key segment in the video according to the key event, and determining the relevant segments outside the key segment from the video;

关键片段调速模块,用于对所述关键片段进行帧率调整,得到目标帧率的慢动作视频片段;A key segment speed regulation module, used to adjust the frame rate of the key segment to obtain a slow-motion video segment of the target frame rate;

视频合成模块,用于基于所述相关片段和所述慢动作视频片段合成目标视频。A video synthesis module, configured to synthesize a target video based on the relevant segments and the slow-motion video segments.

第三方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述任意实施例中视频处理的步骤。In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of video processing in any of the above embodiments when executing the computer program.

第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意实施例中视频处理的步骤。In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the steps of video processing in any of the above-mentioned embodiments are implemented.

第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,In a fifth aspect, the present application also provides a computer program product. said computer program product,

包括计算机程序,该计算机程序被处理器执行时实现上述任意实施例中视频处5理的步骤。It includes a computer program, and when the computer program is executed by a processor, the steps of video processing in any of the above-mentioned embodiments are realized.

上述视频处理方法、装置、计算机设备、存储介质和计算机程序产品,获取包含目标对象的视频;检测所述目标对象触发关键事件,以自动识别目标对象的精彩瞬间,并根据所述关键事件确定视频中的关键片段,并从所述视频中The above-mentioned video processing method, device, computer equipment, storage medium and computer program product acquire a video containing a target object; detect that the target object triggers a key event to automatically identify the wonderful moment of the target object, and determine the video according to the key event key clips in the , and from said video

确定所述关键片段外的相关片段;可对关键片段进行帧率调整,得到目标帧率0的慢动作视频片段;而相关片段可以不进行处理,也可以进行帧率的适应性处理,进而使所述相关片段和慢动作视频片段合成目标视频。通过这种方式合成的目标视频的各片段均有其各自的节奏,中心突出节奏鲜明。Determine the relevant segments outside the key segment; the frame rate can be adjusted to the key segment to obtain a slow-motion video segment with a target frame rate of 0; and the relevant segment can not be processed, and the frame rate can also be adaptively processed, so that The relevant segments and the slow-motion video segments are combined into a target video. Each segment of the target video synthesized in this way has its own rhythm, and the center highlights the rhythm clearly.

附图说明Description of drawings

图1为一个实施例中视频处理方法的应用环境图;Fig. 1 is an application environment diagram of a video processing method in an embodiment;

图2为一个实施例中视频处理方法的流程示意图;Fig. 2 is a schematic flow chart of a video processing method in an embodiment;

图3为一个实施例中相关片段抽帧的流程示意图;Fig. 3 is a schematic flow chart of relevant segment frame extraction in an embodiment;

图4为一个实施例中视频处理装置的结构框图;Fig. 4 is a structural block diagram of a video processing device in an embodiment;

图5为一个实施例中计算机设备的内部结构图。Figure 5 is an internal block diagram of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

5本申请实施例提供的视频处理方法,可以应用于如图1所示的应用环境中。5. The video processing method provided in the embodiment of the present application may be applied to the application environment shown in FIG. 1 .

其中,终端102通过网络与服务器104进行通信。数据存储系统可以存储服务器104需要处理的数据。数据存储系统可以集成在服务器104上,也可以放在云上或其他网络服务器上。Wherein, the terminal 102 communicates with the server 104 through the network. The data storage system can store data that needs to be processed by the server 104 . The data storage system can be integrated on the server 104, or placed on the cloud or other network servers.

其中,终端102可以是各种拍摄设备,具体的拍摄设备包括但不限于是各种摄像机、全景相机、运动相机、个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能电视、智能车载设备等。便携式可穿戴设备可为智能手表、头戴设备等。服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。本方案可以基于终端102实现,也可以基于服务器104实现,还可以是通过终端102与服务器104的交互而实现。Among them, the terminal 102 can be various shooting devices, and specific shooting devices include but are not limited to various cameras, panoramic cameras, sports cameras, personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices , IoT devices can be smart TVs, smart car devices, etc. Portable wearable devices can be smart watches, headsets, and the like. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers. This solution can be implemented based on the terminal 102 , can also be implemented based on the server 104 , and can also be implemented through the interaction between the terminal 102 and the server 104 .

在一个实施例中,如图2所示,提供了一种视频处理方法,以该方法应用于图1中的服务器104为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a video processing method is provided, and the method is applied to the server 104 in FIG. 1 as an example for illustration, including the following steps:

步骤202,获取包含目标对象的视频。Step 202, acquire the video containing the target object.

目标对象是视频中的显著对象;目标对象可以是现实中存在的人物,该对象可以是虚拟人物,该对象也可以是某个物体或动物;典型的目标对象包括但不限于人、人头、人脸、猫、狗、车辆。而包含目标对象的视频可选择高帧率的视频,且是使用带云台或其他能够对图像采集参数进行调整的终端。示例性地,高帧率可为120fps或240fps,或其他大于普通视频中常用的24fps或30fps。The target object is a prominent object in the video; the target object can be a person that exists in reality, the object can be a virtual character, or an object or an animal; typical target objects include but are not limited to people, human heads, human Faces, cats, dogs, vehicles. For the video containing the target object, you can choose a high frame rate video, and use a terminal with a pan/tilt or other parameters that can adjust image acquisition parameters. Exemplarily, the high frame rate may be 120fps or 240fps, or other higher than 24fps or 30fps commonly used in ordinary video.

获取包含目标对象的视频这一过程,可采用目标检测算法;目标检测算法可以是常见的检测方法,常见的检测方法可以是一种或多种基于手工特征的检测方法,基于手工特征的检测方法包括模板匹配法、关键点匹配法、关键特征法;常见的检测方法也可以是一种或多种基于卷积神经网络技术的检测方法,卷积神经网络技术可以采用YOLO(You OnlyLook Once,你只看一次)、SSD(Single Shot MultiBox,单发多框)、R-CNN(Region-basedConvolutional Neural Networks,基于区域的卷积神经网络)或Mask R-CNN(MaskRegion-based Convolutional Neural Networks,带掩膜的基于区域的卷积神经网络)中的一种或多种模型。示例性地,YOLO模型可以是YOLOv1-YOLOv5、YOLOR、YOLOX等版本的一种或多种模型。The process of obtaining a video containing the target object can use a target detection algorithm; the target detection algorithm can be a common detection method, and the common detection method can be one or more detection methods based on manual features, and the detection method based on manual features Including template matching method, key point matching method, and key feature method; common detection methods can also be one or more detection methods based on convolutional neural network technology, and convolutional neural network technology can use YOLO (You Only Look Once, You Only look once), SSD (Single Shot MultiBox, single-shot multi-box), R-CNN (Region-based Convolutional Neural Networks, region-based convolutional neural network) or Mask R-CNN (MaskRegion-based Convolutional Neural Networks, with mask One or more models in a region-based convolutional neural network for membranes. Exemplarily, the YOLO model may be one or more models of YOLOv1-YOLOv5, YOLOR, YOLOX and other versions.

可选地,当接收到目标对象的拍摄指令时,识别视频画面中的各对象,确定各对象的感兴趣区域参考点(如矩形框中心点)与视频画面参考点(如视频画面中心点)的距离,将距离最小的感兴趣区域参考点确定为目标对象。当接收到目标对象的拍摄指令时,识别并显示视频画面中的各对象显示,以在基于用户的选择指令后确定目标对象。显示视频画面的屏幕可以是电子设备(手机、相机)自带的屏幕,也可以是显示PC客户端的电脑屏幕。示例性地,用户发起Optionally, when the shooting instruction of the target object is received, each object in the video picture is identified, and the reference point of the region of interest (such as the center point of the rectangular frame) and the video picture reference point (such as the center point of the video picture) of each object are determined. The distance between , and the reference point of the region of interest with the smallest distance is determined as the target object. When the shooting instruction of the target object is received, each object display in the video frame is recognized and displayed, so as to determine the target object based on the user's selection instruction. The screen displaying the video image may be a built-in screen of an electronic device (mobile phone, camera), or a computer screen displaying a PC client. Exemplarily, a user initiates

物体跟踪可以从PC客户端(使用鼠标、键盘操作)发起,直接操作电子设备(按5钮、触屏)发起;当目标对象包括人类、人头与人脸中的至少一种对象时,可Object tracking can be initiated from the PC client (use mouse, keyboard operation), and directly operate electronic equipment (press button 5, touch screen); when the target object includes at least one of human beings, human heads and human faces, it can be

以由目标对象在摄像头前面使用的预设手势或人体姿势确定。此外,物体跟踪也可以由预设的具体事件自动发起:比如,开机10秒内自动发起;比如,当物体进入画面中指定的区域(比如画面中心NxN像素大小的区域)时自动发起。Determined by preset gestures or body poses used by the subject in front of the camera. In addition, object tracking can also be automatically initiated by preset specific events: for example, automatically initiated within 10 seconds after powering on; for example, automatically initiated when an object enters a specified area in the screen (such as an area with the size of NxN pixels in the center of the screen).

当包含对象的视频是进行采集的图像时,为了针对某目标对象的位置变化0实时进行图像采集,而这一图像采集过程,可以称为对象跟踪或者人物跟踪。When the video containing the object is an image to be collected, the image is collected in real time for the position change of a certain target object. This image collection process may be called object tracking or person tracking.

在进行对象跟踪时,将任意帧图像作为第一视频画面,并使用预设的目标跟踪算法进行目标跟踪,得到第一视频画面的目标矩形框。可以是判别式相关滤波器(Discriminative Correlation Filter,DCF)以及其他相关滤波类的跟踪器,可When performing object tracking, an arbitrary frame image is used as a first video frame, and a preset target tracking algorithm is used to perform target tracking to obtain a target rectangular frame of the first video frame. It can be a discriminative correlation filter (Discriminative Correlation Filter, DCF) and other related filter class trackers, which can be

以是孪生区域推荐网络(Siamese Region Proposal Network,SiamRPN)以及其5他基于CNN技术的跟踪器,也可以是其他跟踪器。Siamese Region Proposal Network (SiamRPN) and other trackers based on CNN technology can also be other trackers.

在一个实施例中,在采集视频的过程中,按照目标对象在视频中的位置变化调整视频画面的采集参数,根据采集参数控制目标对象位于视频画面的预设位置。由此,视频包括多个视频画面,视频画面是按照目标对象位置变化而确In one embodiment, during the video capture process, the capture parameters of the video frame are adjusted according to the position change of the target object in the video, and the target object is controlled to be located at a preset position of the video frame according to the capture parameters. Thus, the video includes a plurality of video frames, and the video frames are determined according to changes in the position of the target object.

定的,且目标对象位于视频画面的预设位置,以随着目标对象的运动而改变视0频画面的图像采集参数。and the target object is located at a preset position of the video frame, so as to change the image acquisition parameters of the video frame along with the movement of the target object.

在一个可行地实施例中,检测目标对象触发关键事件之前,该方法包括:In a feasible embodiment, before detecting that a target object triggers a key event, the method includes:

在该视频的第一视频画面中,检测显著区域与显著区域对应的关联区域;计算显著区域与关联区域的差异;按照差异确定目标构图信息;根据目标构图信息,In the first video frame of the video, detect the salient area and the associated area corresponding to the salient area; calculate the difference between the salient area and the associated area; determine the target composition information according to the difference; according to the target composition information,

更新第一视频画面的图像采集参数;按照更新后的图像采集参数进行图像采集,得到第二视频画面;检测第二视频画面中的目标对象。Updating the image acquisition parameters of the first video frame; performing image acquisition according to the updated image acquisition parameters to obtain the second video frame; detecting the target object in the second video frame.

其中,显著区域是指按照某种显著特征在第一视频画面确定的图像区域,关联区域是根据显著区域与关联区域之间的某种关系进行关联所确定的区域。Wherein, a salient area refers to an image area determined in the first video frame according to a certain salient feature, and an associated area is an area determined by association according to a certain relationship between the salient area and the associated area.

显著区域与关联区域的差异,显著区域与关联区域的差异可以是高度、宽度、面积差异值或其他差异值,差异值包括比值或差值,显著区域与关联区域的差异用于确定构图模式对应的目标构图信息,以目标构图信息确定显著区域和关联区域的分布信息,进而通过图像采集参数对第一视频画面进行调整。以用于跟踪目标对象的构图模式进行举例说明,根据目标构图信息更新的图像采集参数移动云台,可使得目标对象处于画面中心或画面中心附近,也可使得目标对象处于画面中心偏上的位置,以便于随人头、人脸的位置变化而改变构图。The difference between the salient area and the associated area, the difference between the salient area and the associated area can be height, width, area difference value or other difference value, the difference value includes the ratio or difference, the difference between the salient area and the associated area is used to determine the corresponding pattern of the composition The target composition information of the target composition information is used to determine the distribution information of the salient area and the associated area, and then the first video frame is adjusted through the image acquisition parameters. Taking the composition mode used to track the target object as an example, moving the gimbal according to the updated image acquisition parameters of the target composition information can make the target object in the center of the screen or near the center of the screen, and can also make the target object in a position above the center of the screen , so as to change the composition with the position of the head and face.

当无需控制目标对象位于视频画面的预设位置时,可进行物体跟踪的结束操作。其中,可以在用户界面上实时显示目标外接矩形框,同时在右上角附带一个X(关闭)图标,用户点击X图标时结束追踪;可由用户点击画面中除目标外的区域时,结束追踪;也可由用户点击某个预设的按键时,结束追踪。When there is no need to control the target object at the preset position of the video screen, the end operation of object tracking can be performed. Among them, the target circumscribed rectangular frame can be displayed in real time on the user interface, and an X (close) icon is attached to the upper right corner at the same time. When the user clicks the X icon, the tracking ends; when the user clicks an area other than the target in the screen, the tracking ends; The tracking can be ended when the user clicks a preset button.

步骤204,检测目标对象触发关键事件。Step 204, detecting that the target object triggers a key event.

关键事件是在目标对象的某动作、位置、姿势。表情、面积或其他信息符合关键事件条件时,会触发的事件。关键事件可根据具体的场景进行定义。A key event is a certain action, position, or posture of the target object. An event that will be triggered when the expression, area or other information meets the key event conditions. Key events can be defined according to specific scenarios.

在一个可能地实施例中,检测目标对象触发关键事件,包括:获取视频的场景信息;按照场景信息,检测目标对象的动作;若确定目标对象的动作属于场景信息的预设动作,则确定目标对象触发预设动作的关键事件。In a possible embodiment, detecting a target object to trigger a key event includes: obtaining scene information of the video; detecting the action of the target object according to the scene information; A key event for an object to trigger a preset action.

场景信息表征目标对象所在的场景,而每个场景均有其各自对应的预设动作,以提高关键事件识别的准确度。场景信息可以是运动场景或教学场景等场景,还可以是这些粗粒度场景进一步细分所得到的细化后场景,细化后场景的关键事件识别的准确度能够进一步地提升。The scene information represents the scene where the target object is located, and each scene has its own corresponding preset action to improve the accuracy of key event recognition. The scene information can be scenes such as sports scenes or teaching scenes, or it can be a refined scene obtained by further subdividing these coarse-grained scenes, and the accuracy of key event recognition of the refined scene can be further improved.

以运动场景为例,其细化后场景的预设动作包括但不限于:舞蹈场景中的甩头、回头、身体抖动(body wave)等预设动作,滑雪滑板场景中的腾空等预设动作,篮球场景的投篮、上篮、扣篮等预设动作。其中,视频模型具体指以多帧视频作为输入的深度学习模型,如扩展三维时空域网络(Expand 3D,X3D)、快慢网络(Slowfast)等模型。Taking the sports scene as an example, the preset actions of the refined scene include but are not limited to: head shaking, turning back, body wave and other preset actions in the dance scene, and preset actions such as vacating in the skiing and skateboarding scene , Preset actions such as shooting, layup, dunk and so on in the basketball scene. Among them, the video model specifically refers to a deep learning model that takes multi-frame video as input, such as expanded three-dimensional space-time domain network (Expand 3D, X3D), fast and slow network (Slowfast) and other models.

在一个示例性地实施例中,按照场景信息,在视频检测目标对象的动作,包括:当视频场景为篮球场景时,基于视频画面帧序列识别目标对象的动作。In an exemplary embodiment, detecting the action of the target object in the video according to the scene information includes: when the video scene is a basketball scene, identifying the action of the target object based on a video frame sequence.

相对应的,确定目标对象的动作对应于场景信息的预设动作,包括:确定目标对象的动作为单脚悬空、双脚悬空或双脚均未悬空中的任意一种跳跃动作。Correspondingly, the action of determining the target object corresponds to the preset action of the scene information, including: the action of determining the target object is any jumping action of one foot in the air, both feet in the air, or both feet in the air.

在一个可能地实施例中,按照场景信息,检测目标对象的动作,包括:若场景信息表征篮球场景,则确定场景信息的预设动作为投篮动作;按照篮球场景对应的人体姿态,从视频提取目标对象的姿态关键点;根据姿态关键点识别目标对象的动作是否属于投篮动作。In a possible embodiment, detecting the action of the target object according to the scene information includes: if the scene information represents a basketball scene, then determining that the preset action of the scene information is a shooting action; according to the human body posture corresponding to the basketball scene, extracting The posture key points of the target object; according to the posture key points, it is recognized whether the action of the target object belongs to the shooting action.

相对应的,确定目标对象的动作属于场景信息的预设动作,包括:确定目标对象的动作属于投篮动作。Correspondingly, the action of determining the target object belongs to the preset action of the scene information, including: the action of determining the target object belongs to the shooting action.

可选地,姿态关键点可以是姿态提取模板,该姿态提取模板包括单不限于人体各部位的形状边缘点、肌肉变化点、骨骼关键点等任意类型的姿态关键点。可通过多种类型的姿态关键点规划用户动作,以提高识别的准确度。Optionally, the pose key points may be pose extraction templates, which include but are not limited to any type of pose key points such as shape edge points, muscle change points, and bone key points of various parts of the human body. User actions can be planned through various types of gesture key points to improve the accuracy of recognition.

由此,在篮球场景中,应用基于深度学习的人体姿态估计目标对象的人体关键点,通过相对较低的数据量估计人体姿态,以使检测关键事件与视频提取的并行条件降低,从而将步骤S204与其他步骤同步执行;再根据人体关键点识别投篮动作,以将篮球场景中的高光时刻作为慢动作视频片段。Therefore, in the basketball scene, the human body key points of the target object are estimated by applying the human body pose based on deep learning, and the human body pose is estimated through a relatively low amount of data, so that the parallel conditions of detecting key events and video extraction are reduced, so that the steps S204 is executed synchronously with other steps; and then the shooting action is recognized according to the key points of the human body, so as to use the highlight moment in the basketball scene as a slow-motion video clip.

在一个可能地实施例中,检测目标对象触发关键事件,包括:基于CNN或其他分类网络,检测目标对象的表情;当确定目标对象的表情属于预设表情集合时,根据预设表情集合的表情存在时间段确定目标对象触发关键事件。In a possible embodiment, detecting the target object to trigger a key event includes: detecting the expression of the target object based on CNN or other classification networks; when it is determined that the expression of the target object belongs to the preset expression set, according to the expression of the preset expression set There is a time period to determine the target object triggering the key event.

在一个可能地实施例中,检测目标对象触发关键事件,包括:确定视频的视频画面;在视频画面中,检测目标对象的面积参数;面积参数包括在视频画面中的目标对象面积,或者目标对象面积与视频画面的面积之间的比值;当面积参数大于预设面积参数阈值时,确定目标对象触发关键事件。In a possible embodiment, detecting a target object to trigger a key event includes: determining a video frame of a video; in the video frame, detecting an area parameter of the target object; the area parameter includes the area of the target object in the video frame, or the target object The ratio between the area and the area of the video frame; when the area parameter is greater than the preset area parameter threshold, it is determined that the target object triggers a key event.

若面积参数是视频画面中目标对象面积,目标对象面积是目标对象在视频画面中的面积,则预设面积参数阈值也是面积的阈值;若面积参数是目标对象面积与视频画面之间的面积比值,则预设面积参数阈值也是该面积比值的阈值。If the area parameter is the area of the target object in the video screen, and the area of the target object is the area of the target object in the video screen, then the preset area parameter threshold is also the threshold of the area; if the area parameter is the area ratio between the target object area and the video screen , then the preset area parameter threshold is also the threshold of the area ratio.

由此,基于面积参数确定目标对象与终端之间的距离,并基于预设面积参数阈值判断该距离是否表征目标对象距离终端足够近,并确定此时的视频片段为关键片段。Thus, the distance between the target object and the terminal is determined based on the area parameter, and whether the distance indicates that the target object is close enough to the terminal is determined based on the preset area parameter threshold, and the video segment at this time is determined as a key segment.

在一个可能地实施例中,检测目标对象触发关键事件,包括:在预览视频的用户界面提供操作选项,以接收用户指令,并根据接收到的用户指令确定关键事件触点。In a possible embodiment, detecting that a target object triggers a key event includes: providing an operation option on a user interface of the preview video to receive a user instruction, and determining a key event touch point according to the received user instruction.

步骤206,根据关键事件确定视频中的关键片段,并从视频中确定关键片段外的相关片段。Step 206, determine the key segment in the video according to the key event, and determine the relevant segments other than the key segment from the video.

关键片段与其相关片段均属于原视频中的视频片段。关键片段是以关键事件确定关键片段标识,再基于关键片段标识映射所得到的视频片段;可关键片段确定相关片段标识,再基于相关片段标识进行映射,得到关键片段的相关片段。当某关键片段的播放速度产生变化时,该关键片段的相关片段会进行适应性调整,以使目标视频的流畅程度或其他视频评价数据的波动较小,保障视频质量。Both the key clip and its related clips belong to the video clips in the original video. The key segment is a video segment obtained by determining the key segment ID by the key event, and then mapping based on the key segment ID; the key segment can determine the related segment ID, and then map based on the related segment ID, to obtain the related segment of the key segment. When the playback speed of a key segment changes, the related segments of the key segment will be adaptively adjusted, so that the smoothness of the target video or other video evaluation data fluctuate less, ensuring video quality.

其中,关键事件存在的时间段与关键片段标识存在对应关系,可基于关键事件存在的时间段映射出关键片段标识,也可直接将关键事件存在的时间段作为关键片段标识。There is a corresponding relationship between the time period in which the key event exists and the key fragment identifier, and the key fragment identifier can be mapped based on the time period in which the key event exists, or the time period in which the key event exists can be directly used as the key fragment identifier.

关键片段的相关片段标识与关键片段标识在关联关系;而关键片段的相关片段标识也可以是ID或者时间戳。相关片段标识可以是关键片段前后时间段,以将在关键片段前后时间段的视频片段确定为相关片段。The related segment ID of the key segment is associated with the key segment ID; and the related segment ID of the key segment can also be an ID or a timestamp. The relevant segment identifier may be a time period before and after the key segment, so as to determine a video segment in a time period before and after the key segment as a relevant segment.

在一个实施例中,根据关键事件确定视频中的关键片段,并从视频中确定关键片段外的相关片段,包括:确定关键事件在视频存在的关键时间段;根据关键时间段筛选视频中的关键片段;在关键时间段的前一预设时间段、关键时间的后一预设时间段以及各关键时间段之间的间隔时间段中,确定至少一个相关时间段;根据相关时间段查找视频中的相关片段。In one embodiment, determining the key segment in the video according to the key event, and determining the relevant segment outside the key segment from the video, includes: determining the key time period in which the key event exists in the video; screening the key segment in the video according to the key time segment Segment; in the previous preset time period of the key time period, the next preset time period of the key time period, and the interval time period between each key time period, determine at least one relevant time period; search for the video according to the relevant time period related fragments.

关键时间段是关键片段标识,且可通过视频帧的时间戳标识关键片段。而关键时间段的前一预设时间段、关键时间的后一预设时间段以及各关键时间段之间的间隔时间段,均可作为关联关系中的输入数据,以关联关系中的输入数据确定相关时间段,进而根据相关时间段计算得到关键片段的相关片段。可选地,可将相关时间段中的时间戳作为相关片段中的各视频帧的标识,也可基于相关时间段中的时间戳映射所得的结果确定相关片段中的各视频帧的标识。The key time period is a key segment identification, and the key segment can be identified by the time stamp of the video frame. The previous preset time period of the key time period, the subsequent preset time period of the key time period, and the interval time period between each key time period can be used as the input data in the association relationship, and the input data in the association relationship The relevant time period is determined, and then the relevant part of the key part is calculated according to the relevant time period. Optionally, the time stamp in the relevant time period may be used as the identifier of each video frame in the relevant segment, or the identifier of each video frame in the relevant segment may be determined based on the result obtained from the time stamp mapping in the relevant time period.

步骤208,对所述关键片段进行帧率调整,得到目标帧率的慢动作视频片段。Step 208, adjusting the frame rate of the key segment to obtain a slow-motion video segment with a target frame rate.

在一个实施例中,对所述关键片段进行帧率调整,得到目标帧率的慢动作视频片段,包括:确定目标帧率,所述目标帧率低于所述关键片段的帧率;将所述关键片段的帧率转换为所述目标帧率,得到慢动作视频片段。In one embodiment, adjusting the frame rate of the key segment to obtain the slow-motion video segment of the target frame rate includes: determining the target frame rate, the target frame rate being lower than the frame rate of the key segment; The frame rate of the key segment is converted to the target frame rate to obtain a slow motion video segment.

在一个可选地实施例中,将所述关键片段的帧率转换为所述目标帧率,得到慢动作视频片段,包括:获取关键片段中的图像,并按照目标帧率合成关键片段中的图像,得到慢动作视频片段。In an optional embodiment, converting the frame rate of the key segment into the target frame rate to obtain the slow-motion video segment includes: acquiring images in the key segment, and synthesizing images in the key segment according to the target frame rate image to get a slow motion video clip.

目标帧率低于所述关键片段的帧率,因而关键片段每秒钟的图像帧数远大于慢动作视频片段每秒钟需求的图像帧数,使得关键片段中的图像形成慢动作视频片段,实现慢动作特效。示例性地,关键片段的帧率是240FPS,而慢动作视频帧率是30FPS,以将关键片段的速度降低到原视频播放速度的八分之一左右。The target frame rate is lower than the frame rate of the key segment, so the number of image frames per second of the key segment is much greater than the number of image frames per second required by the slow-motion video segment, so that the images in the key segment form a slow-motion video segment, Realize slow motion special effects. Exemplarily, the frame rate of the key segment is 240FPS, and the frame rate of the slow-motion video is 30FPS, so as to reduce the speed of the key segment to about one-eighth of the playback speed of the original video.

由于关键片段中的图像是帧数固定的,且关键片段每秒钟的图像帧数远大于慢动作视频片段每秒钟需求的图像帧数,因而慢动作视频片段的时长超过关键片段的时长,以形成慢动作视频片段,从而清晰地展示出目标对象在关键片段的动作,进而与其相关片段形成鲜明的对比,提高节奏感。Since the number of frames of the image in the key segment is fixed, and the number of image frames per second of the key segment is much greater than the number of image frames per second required by the slow-motion video segment, the duration of the slow-motion video segment exceeds the duration of the key segment. To form slow-motion video clips, so as to clearly show the movement of the target object in key clips, and then form a sharp contrast with related clips to improve the sense of rhythm.

在一个实施例中,将所述关键片段的帧率转换为所述目标帧率,得到慢动作视频片段,包括:确定第一目标帧率的第一慢动作视频片段;基于第一慢动作视频片段中相邻视频画面的中间时刻,确定相邻视频画面的运动数据;从关键片段的运动数据的多个事件图像筛选相邻视频画面中间时刻的对应事件图像;根据相邻视频画面和其对应事件图像,得到对应事件图像中间时刻的相对运动状态;根据该相对运动状态,对该对应事件图像进行中间帧的视频插帧处理,得到第二慢动作视频片段,第二慢动作视频片段具有较高帧率;其中,第二慢动作视频片段的帧率大于第一慢动作视频片段。由此,可以再次提高第一慢动作视频片段的帧率,得到第二慢动作视频片段,以增加目标视频流畅程度。In one embodiment, converting the frame rate of the key segment into the target frame rate to obtain the slow-motion video segment includes: determining the first slow-motion video segment of the first target frame rate; Determine the motion data of the adjacent video frame at the middle moment of the adjacent video frame in the segment; filter the corresponding event image at the intermediate moment of the adjacent video frame from multiple event images of the motion data of the key segment; according to the adjacent video frame and its corresponding event image to obtain the relative motion state at the middle moment of the corresponding event image; according to the relative motion state, the video frame interpolation processing of the intermediate frame is performed on the corresponding event image to obtain the second slow-motion video segment, and the second slow-motion video segment has a relatively High frame rate; wherein, the frame rate of the second slow-motion video segment is greater than that of the first slow-motion video segment. Thus, the frame rate of the first slow-motion video clip can be increased again to obtain the second slow-motion video clip, so as to increase the smoothness of the target video.

步骤210,基于所述相关片段和所述慢动作视频片段合成目标视频。Step 210, synthesizing a target video based on the related segment and the slow-motion video segment.

在一个可选地实施例中,基于相关片段和慢动作视频片段合成目标视频,包括:对所述相关片段进行抽帧处理,得到视频帧序列;合成所述视频帧序列,得到所述目标帧率的视频片段;对所述目标帧率的视频片段和所述慢动作视频片段进行视频合成,得到目标视频。In an optional embodiment, synthesizing the target video based on related segments and slow-motion video segments includes: performing frame extraction processing on the related segments to obtain a sequence of video frames; synthesizing the sequence of video frames to obtain the target frame video clips at the target frame rate; performing video synthesis on the video clips at the target frame rate and the slow-motion video clips to obtain the target video.

对相关片段进行抽帧处理的过程,其可以基于抽帧频率选择视频帧,可以按照抽帧间隔筛选视频帧,也可以是通过其他元素,只要该元素能够从相关片段提取出视频帧序列。视频帧序列是相关片段提取的有序的多个视频帧。各视频帧的顺序可以是时间顺序,也可以是由用户或其他程序自定义的顺序。The frame extraction process for related segments can select video frames based on the frame extraction frequency, filter video frames according to the frame extraction interval, or use other elements, as long as the element can extract video frame sequences from related segments. A sequence of video frames is an ordered sequence of video frames extracted from related segments. The sequence of each video frame may be a time sequence, or a sequence defined by a user or other programs.

在一个应用场景中,抽帧频率用于保持目标帧率的视频片段与相关片段的播放速度不变。当关键片段的帧率与目标帧率之间的比值为8时,某抽帧频率是0.125,即按照时间戳或其他排序元素,在相关片段中的每8帧图像依序抽取一帧图像作为视频帧序列中的图像,以此类推,直至得到视频帧序列。当关键片段的帧率与目标帧率之间的比值为10时,某抽帧频率是0.1,即按照时间戳或其他排序元素,在相关片段中的每10帧图像依序抽取一帧图像,以此类推,直至得到视频帧序列。In one application scenario, the frame rate is used to keep the playback speed of the target frame rate video segment and related segments unchanged. When the ratio between the frame rate of the key segment and the target frame rate is 8, a certain frame extraction frequency is 0.125, that is, according to the timestamp or other sorting elements, one frame of image is sequentially extracted from every 8 frames of images in the relevant segment as Images in the sequence of video frames, and so on until a sequence of video frames is obtained. When the ratio between the frame rate of the key segment and the target frame rate is 10, a certain frame extraction frequency is 0.1, that is, according to the timestamp or other sorting elements, every 10 frames of images in the relevant segment are sequentially extracted. By analogy, until a sequence of video frames is obtained.

抽帧间隔作为抽帧频率的等同替换,当关键片段的帧率与目标帧率之间的比值为8,则以相关片段中的每7帧图像为抽帧间隔,按照抽帧间隔选择第8帧图像作为视频帧序列中的图像,以此类推。The frame extraction interval is used as an equivalent replacement for the frame extraction frequency. When the ratio between the frame rate of the key segment and the target frame rate is 8, then every 7 frames of images in the relevant segment are used as the frame extraction interval, and the 8th frame is selected according to the frame extraction interval. Frame images as images in a sequence of video frames, and so on.

在一个实施例中,对所述相关片段进行抽帧处理,得到视频帧序列,包括:当存在一个相关片段时,从这个相关片段抽取视频帧序列。In one embodiment, performing frame extraction processing on the related segment to obtain a video frame sequence includes: when there is a related segment, extracting a video frame sequence from the related segment.

相对应的,合成所述视频帧序列,得到所述目标帧率的视频片段,包括:将这个相关片段抽取的视频帧序列依序组合,得到目标帧率的视频片段。Correspondingly, synthesizing the sequence of video frames to obtain the video segment at the target frame rate includes: sequentially combining the sequence of video frames extracted from the related segments to obtain the video segment at the target frame rate.

在一个实施例中,对所述相关片段进行抽帧处理,得到视频帧序列,包括:当存在两个相关片段时,从各个相关片段抽取各个相关片段的视频帧序列。In one embodiment, performing frame extraction processing on the related segments to obtain a video frame sequence includes: when there are two related segments, extracting a video frame sequence of each related segment from each related segment.

相对应的,合成所述视频帧序列,得到所述目标帧率的视频片段,包括:将同一相关片段抽取的视频帧序列依序组合,得到这两个相关片段在目标帧率的视频片段。Correspondingly, synthesizing the sequence of video frames to obtain a video segment at the target frame rate includes: sequentially combining the sequence of video frames extracted from the same related segment to obtain a video segment at the target frame rate of the two related segments.

在一个实施例中,对所述目标帧率的视频片段和所述慢动作视频片段进行视频合成,包括:若存在一个目标帧率的视频片段,则将这个目标帧率的视频片段与慢动作视频片段拼接;若存在两个目标帧率的视频片段,则分别将这两个目标帧率的视频片段与慢动作视频片段进行拼接。In one embodiment, performing video synthesis on the video clip of the target frame rate and the slow motion video clip includes: if there is a video clip of the target frame rate, combining the video clip of the target frame rate with the slow motion Video clip stitching; if there are two video clips with a target frame rate, the two video clips with a target frame rate are spliced with the slow-motion video clip.

由此,通过抽帧的方式使得相关片段转化为目标帧率的视频片段,而目标帧率的视频片段与目标帧率的慢动作视频具有相匹配的帧率,能够保障二者衔接过程的流畅度较佳。Therefore, by means of frame extraction, the relevant clips are converted into video clips with a target frame rate, and the video clips with a target frame rate and the slow-motion video with a target frame rate have a matching frame rate, which can ensure the smooth connection process between the two better.

在一个地实施例中,相关片段包括第一相关片段和第二相关片段;In one embodiment, the related segment includes a first related segment and a second related segment;

所述对所述相关片段进行抽帧处理,得到视频帧序列,包括:对所述第一相关片段和所述第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列;其中,第一视频帧序列和第二视频帧序列的抽帧处理可以是相同或不同的,以使第一视频帧序列和第二视频帧序列可以具有各自的特点。示例性地,若第一视频帧序列是按照第一抽帧频率或第一抽帧间隔抽帧处理所得到的,则第二相关片段可以是按照第二抽帧频率或第二抽帧间隔抽帧处理所得到的,且第二相关片段也可以是通过映射所得到的。The performing frame extraction processing on the relevant segment to obtain a video frame sequence includes: performing frame extraction processing on the first relevant segment and the second relevant segment to obtain a first video frame sequence and a second video frame sequence ; Wherein, the frame extraction processing of the first video frame sequence and the second video frame sequence may be the same or different, so that the first video frame sequence and the second video frame sequence may have their own characteristics. Exemplarily, if the first video frame sequence is obtained by frame extraction according to the first frame extraction frequency or the first frame extraction interval, the second related segment may be extracted according to the second frame extraction frequency or the second frame extraction interval obtained by frame processing, and the second related segment may also be obtained by mapping.

所述合成所述视频帧序列,得到所述目标帧率的视频片段,包括:分别合成所述第一视频帧序列和所述第二视频帧序列,得到目标帧率的第一视频片段和第二视频片段;其中,第一视频帧序列和第二视频帧序列的排序方式可以是相同或不同的,且第一视频帧序列和第二视频帧序列的合成方式可以是相同或不同的,以使目标帧率的第一视频片段和第二视频片段可以具有各自的优势。The synthesizing the video frame sequence to obtain the video segment at the target frame rate includes: synthesizing the first video frame sequence and the second video frame sequence respectively to obtain the first video segment and the second video segment at the target frame rate Two video clips; wherein, the sorting manners of the first video frame sequence and the second video frame sequence can be the same or different, and the synthesis methods of the first video frame sequence and the second video frame sequence can be the same or different, to The first video segment and the second video segment of the target frame rate may have respective advantages.

在一个可选地实施例中,若第一视频片段是按照时间戳顺序依次合成其中的各视频帧所得,则第二视频片段可以是按照时间戳顺序依次合成第一视频帧序列中的各视频帧所得,且第二视频片段可以是按照时间戳逆序依次合成第二视频帧序列中的各视频帧所得。若第一视频片段是通过第一视频片段中的各视频帧进行拼接所得到的,则第二视频片段可以是对第二视频片段中的各视频帧进行拼接所得到的,且第二视频片段也可以是对第二视频片段中的各视频帧按照各视频帧中的位置匹配结果进行叠加所得到的。In an optional embodiment, if the first video segment is obtained by sequentially synthesizing the video frames in the sequence according to the time stamp, the second video segment may be obtained by synthesizing the video frames in the first video frame sequence in sequence according to the time stamp frame, and the second video segment may be obtained by sequentially synthesizing each video frame in the second video frame sequence according to the reverse order of the time stamp. If the first video clip is obtained by splicing each video frame in the first video clip, then the second video clip can be obtained by splicing each video frame in the second video clip, and the second video clip It may also be obtained by superimposing each video frame in the second video segment according to the position matching results in each video frame.

所述对所述合成视频片段和所述慢动作视频片段进行视频合成,包括:对所述第一视频片段、所述慢动作视频片段和所述第二视频片段进行视频合成。其中,第一视频片段、所述慢动作视频片段的合成处理,以及慢动作视频片段和所述第二视频片段的合成处理,可以是相同或不同的手段,以使目标视频的各片段分别具有各自的优势。The performing video synthesis on the synthesized video segment and the slow motion video segment includes: performing video synthesis on the first video segment, the slow motion video segment and the second video segment. Wherein, the composite processing of the first video clip, the slow motion video clip, and the composite processing of the slow motion video clip and the second video clip can be the same or different means, so that each clip of the target video has respective advantages.

先将相关片段的粒度细化为第一相关片段和第二相关片段,再从第一相关片段抽取第一视频帧序列,从第二相关片段抽取第二视频帧序列;继而基于第一视频帧序列合成目标帧率的第一视频片段;进而对所述第一视频片段、所述慢动作视频片段和所述第二视频片段进行视频合成。由此,可进一步满足产品经理的需求,对目标视频的各部分细节分别进行优化。Firstly, the granularity of the related segments is refined into the first related segment and the second related segment, then the first video frame sequence is extracted from the first related segment, and the second video frame sequence is extracted from the second related segment; then based on the first video frame Sequentially compositing a first video clip at a target frame rate; and then performing video compositing on the first video clip, the slow-motion video clip, and the second video clip. In this way, the needs of product managers can be further satisfied, and the details of each part of the target video can be optimized separately.

上述视频处理方法中,首先,拍摄时使用了追踪目标对象,以控制目标对象在画面中处于中心附近,实现对象跟踪,主体突出;其次,进行了关键片段的识别,对关键片段和相关片段使用不同的倍速,关键事件突出,并以此提升节奏感,使节奏快慢张弛有度,有很强的视觉震撼力,精彩程度远优于现有方法。In the above video processing method, firstly, the target object is tracked during shooting, so as to control the target object to be near the center of the picture, realize object tracking, and make the main body stand out; secondly, the key segment is identified, and the key segment and related segments are used With different double speeds, the key events are highlighted, and the sense of rhythm is improved, so that the rhythm is fast and slow, and it has a strong visual shock, and the degree of excitement is far superior to the existing methods.

在一个实施例中,相关片段包括第一相关片段和第二相关片段;基于相关片段和慢动作视频片段合成目标视频,包括:In one embodiment, the related segments include a first related segment and a second related segment; the target video is synthesized based on the related segment and the slow-motion video segment, including:

步骤302,对第一相关片段和第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列。Step 302: Perform frame extraction processing on the first related segment and the second related segment to obtain a first video frame sequence and a second video frame sequence.

在一个可能地实施例中,对第一相关片段和第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列,包括:按照第一抽帧频率,对第一相关片段和第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列;或者,按照第二抽帧频率,对第一相关片段和第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列;其中,第一抽帧频率大于第二抽帧频率,且第一抽帧频率是基于关键片段的帧率与目标帧率之间的比值确定。In a possible embodiment, the frame extraction processing is performed on the first related segment and the second related segment to obtain the first video frame sequence and the second video frame sequence, including: according to the first frame extraction frequency, the first related segment Perform frame extraction processing with the second related segment to obtain the first video frame sequence and the second video frame sequence; or, according to the second frame extraction frequency, perform frame extraction processing on the first related segment and the second related segment to obtain the first video frame sequence A video frame sequence and a second video frame sequence; wherein, the first frame extraction frequency is greater than the second frame extraction frequency, and the first frame extraction frequency is determined based on the ratio between the frame rate of the key segment and the target frame rate.

第一抽帧频率基于关键片段的帧率与目标帧率之间的比值确定,因而按照第一抽帧频率得到的视频帧序列可以便捷地合成视频片段,可与原视频的播放速度相同,以使第一视频片段和第二视频片段均是普通原速视频片段;而由于第一抽帧频率大于第二抽帧频率,按照二抽帧频率得到的视频帧序列可以便捷地合成原速的视频片段,可大于原视频的播放速度,以使第一视频片段和第二视频片段均是预设倍数的加速视频片段。The first frame rate is determined based on the ratio between the frame rate of the key segment and the target frame rate. Therefore, the video frame sequence obtained according to the first frame rate can be easily synthesized into a video segment, which can be played at the same speed as the original video. Make the first video clip and the second video clip both ordinary original speed video clips; and because the first frame extraction frequency is greater than the second frame extraction frequency, the video frame sequence obtained according to the second extraction frame frequency can easily synthesize the original speed video The segments can be played at a speed greater than the original video, so that both the first video segment and the second video segment are accelerated video segments with a preset multiple.

用于确定关键片段的帧率与目标帧率之间的比值,当关键片段和相关片段的帧率相同时,可直接将视频的帧率与目标帧率之间的比值作为预设帧率比值。可将预设帧率比值直接作为原速抽帧频率,也可以对预设帧率比值映射或匹配等处理而得到原速抽帧频率。It is used to determine the ratio between the frame rate of the key segment and the target frame rate. When the frame rate of the key segment and the related segment are the same, the ratio between the frame rate of the video and the target frame rate can be directly used as the preset frame rate ratio . The preset frame rate ratio can be directly used as the original frame rate, or the preset frame rate ratio can be mapped or matched to obtain the original frame rate.

由此,基于关键片段的帧率与目标帧率之间的比值确定第一抽帧频率,按照第一抽帧频率与第二抽帧频率中的一种抽帧频率进行抽帧,以便有更好地控制第一视频帧序列和第二视频帧序列中的视频帧数量,进而使得第一相关视频与第二相关视频同时转换为普通原速视频片段,或者,使得第一相关视频与第二相关视频同时转换为预设倍数的加速视频片段,以使目标视频中主体突出、关键事件突出、节奏快慢张弛有度,有很强的视觉震撼力。由此,可形成“原速-慢速-原速”或者“加速-慢速-加速”的目标视频。Thus, the first frame rate is determined based on the ratio between the frame rate of the key segment and the target frame rate, and the frame is drawn according to one of the first frame rate and the second frame rate, so that there is more Well control the number of video frames in the first video frame sequence and the second video frame sequence, so that the first related video and the second related video are simultaneously converted into common original speed video clips, or the first related video and the second related video Relevant videos are simultaneously converted into accelerated video clips with preset multiples, so that the subject of the target video is highlighted, the key events are highlighted, the rhythm is fast and slow, and it has a strong visual shock. Thus, a target video of "original speed-slow speed-original speed" or "acceleration-slow speed-acceleration" can be formed.

在一个可能地实施例中,对第一相关片段和第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列,包括:按照第一抽帧频率对第一相关片段进行抽帧处理,得到第一视频帧序列;按照第二抽帧频率对第二相关片段进行抽帧处理,得到第二视频帧序列;其中,第一抽帧频率大于第二抽帧频率,且第一抽帧频率是基于关键片段的帧率与目标帧率之间的比值确定。In a possible embodiment, performing frame extraction processing on the first related segment and the second related segment to obtain the first video frame sequence and the second video frame sequence includes: performing processing on the first related segment according to the first frame extraction frequency Frame extraction processing to obtain the first video frame sequence; perform frame extraction processing on the second relevant segment according to the second frame extraction frequency to obtain the second video frame sequence; wherein the first frame extraction frequency is greater than the second frame extraction frequency, and the second frame extraction frequency is greater than the second frame extraction frequency. A frame rate is determined based on the ratio between the frame rate of the key segment and the target frame rate.

第一抽帧频率大于第二抽帧频率,因而对同等时长的相关片段进行抽帧处理时,按照第一抽帧频率抽取的视频帧数量大于,按照第二抽帧频率抽取的视频帧数量。因而,当按照第一抽帧频率确定第一视频帧序列,且根据第一视频帧序列合成的第一视频片段与原视频的播放速度相同时,按照第二抽帧频率确定第二视频帧序列,且根据第二视频帧序列合成的第二视频片段具有更快的播放速度。示例性地,当第一抽帧频率是0.125时,第二抽帧频率可以是0.0625,即第一相关片段中的每8帧图像抽取一帧图像,使得第一视频片段保持原速;第二相关片段中的每16帧图像抽取一帧图像,使得第二视频片段为原视频的2倍速。The first frame sampling frequency is greater than the second frame sampling frequency, so when performing frame sampling processing on related segments of the same duration, the number of video frames extracted according to the first frame sampling frequency is greater than the number of video frames extracted according to the second frame sampling frequency. Therefore, when the first video frame sequence is determined according to the first frame extraction frequency, and the first video segment synthesized according to the first video frame sequence is played at the same speed as the original video, the second video frame sequence is determined according to the second frame extraction frequency , and the second video segment synthesized according to the second video frame sequence has a faster playback speed. Exemplarily, when the first frame extraction frequency is 0.125, the second frame extraction frequency can be 0.0625, that is, every 8 frames of images in the first relevant segment extract an image, so that the first video segment maintains the original speed; the second One frame of images is extracted from every 16 frames of images in the relevant segment, so that the second video segment is twice the speed of the original video.

由此,采用不同抽帧频率对第一相关片段和第二相关片段分别进行处理,使得其中一个相关片段为普通原速视频片段,另一个片段为预设倍数的加速视频片段,以适应相应产品的需求,由此,可形成“加速-慢速-原速”,“原速-慢速-加速”的目标视频。Therefore, the first related segment and the second related segment are processed separately by using different frame extraction frequencies, so that one of the related segments is a normal original speed video segment, and the other segment is an accelerated video segment with a preset multiple, so as to adapt to the corresponding products. Therefore, the target video of "acceleration-slow speed-original speed" and "original speed-slow speed-acceleration" can be formed.

在一个可能地实施例中,对第一相关片段和第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列,包括:按照第一抽帧频率对第一相关片段进行抽帧处理,得到第一视频帧序列;按照抽帧频率序列中的各抽帧频率,依序对第二相关片段中的子片段进行抽帧处理,且抽帧过程中每个抽帧频率抽取不同的子片段,得到第二视频帧序列;其中,第一抽帧频率大于抽帧频率序列中的各抽帧频率;抽帧频率序列中的各抽帧频率是递增或递减的。In a possible embodiment, performing frame extraction processing on the first related segment and the second related segment to obtain the first video frame sequence and the second video frame sequence includes: performing processing on the first related segment according to the first frame extraction frequency Frame extraction processing to obtain the first video frame sequence; according to each frame extraction frequency in the frame extraction frequency sequence, frame extraction processing is performed on the sub-segments in the second relevant segment in sequence, and each frame extraction frequency is extracted during the frame extraction process The second video frame sequence is obtained for different sub-segments; wherein, the first frame extraction frequency is greater than each frame extraction frequency in the frame extraction frequency sequence; each frame extraction frequency in the frame extraction frequency sequence is increasing or decreasing.

抽帧频率序列中的各抽帧频率可以是基于某些函数动态生成的,也可以是预先设定的,只要抽帧频率序列中的各抽帧频率是按照数值递增或递减的抽帧频率顺序排列的,且用于对各第二相关片段中的各子片段进行抽帧处理。第二相关片段中的每个子片段存在相同数量的视频帧,且各个子片段可以依据各子片段的时间戳等视频标识顺序确定子片段位置。子片段位置可以是各个子片段相对于第二相关片段的位置确认为各个子片段的位置,也可以是各个子片段相对于原视频的位置确认为各个子片段的位置。其中,抽帧频率顺序与视频标识顺序均与时间戳是正相关的。Each frame frequency in the frame frequency sequence can be dynamically generated based on some functions, or it can be preset, as long as each frame frequency in the frame frequency sequence is in the order of increasing or decreasing frame frequency arranged, and used to perform frame extraction processing on each sub-segment in each second related segment. Each sub-segment in the second related segment has the same number of video frames, and each sub-segment can determine the position of the sub-segment according to the sequence of video identification such as the time stamp of each sub-segment. The positions of the sub-segments may be determined as positions of each sub-segment relative to the second related segment, or may be determined as positions of each sub-segment relative to the original video. Wherein, the sequence of the frame sampling frequency and the sequence of the video identification are both positively correlated with the time stamp.

当各抽帧频率是按照递增的顺序排列时,各抽帧频率从子片段中抽取的视频帧数量越多,在第二视频片段的时长更高,则在动作变化幅度不变时,第二视频片段的画面呈现逐渐减速的效果;当各抽帧频率是按照递减的顺序排列时,各抽帧频率从子片段中抽取的视频帧数量越少,在第二视频片段的时长更短,则在动作变化幅度不变时,第二视频片段的画面呈现逐渐加速的效果。由此,形成了“渐进加速-慢动作-原速”、“渐进减速-慢动作-原速”、“原速-慢动作-渐进加速”,以及“原速-慢动作-渐进减速”等模式。When each frame sampling frequency is arranged in increasing order, the more video frames are extracted from each sub-segment by each frame sampling frequency, the longer the duration of the second video segment is, then when the range of action changes remains the same, the second The picture of the video segment presents the effect of gradually decelerating; when each frame sampling frequency is arranged in descending order, the less the number of video frames extracted by each frame sampling frequency from the sub-segment, the shorter the duration of the second video segment, then When the change range of the motion remains unchanged, the picture of the second video segment presents the effect of gradually accelerating. As a result, "progressive acceleration-slow motion-original speed", "gradual deceleration-slow motion-original speed", "original speed-slow motion-progressive acceleration", and "original speed-slow motion-progressive deceleration" etc. model.

步骤304,分别合成第一视频帧序列和第二视频帧序列,得到目标帧率的第一视频片段和第二视频片段。Step 304, synthesizing the first video frame sequence and the second video frame sequence respectively to obtain the first video segment and the second video segment at the target frame rate.

步骤306,对第一视频片段、慢动作视频片段和第二视频片段进行视频合成。Step 306, performing video synthesis on the first video segment, the slow motion video segment and the second video segment.

由此,进行了关键片段的识别,对关键片段和相关片段使用不同的倍速,关键事件突出,且控制相关片段以原速、多倍速或渐变速等方式进行播放,以此更好地把控节奏感,使得目标视频的视觉震撼力进一步增强。As a result, the key fragments are identified, different double speeds are used for key fragments and related fragments, key events are highlighted, and related fragments are controlled to play at original speed, multiple speed or gradual speed, so as to better control The sense of rhythm further enhances the visual shock of the target video.

在一个示例性地实施例中,以第一抽帧率生成第一视频帧序列和第二视频帧序列的情况为例,说明本案的步骤210。In an exemplary embodiment, step 210 of this application is described by taking the case of generating the first video frame sequence and the second video frame sequence at the first frame rate as an example.

录制帧率为240fps的视频,得到30秒的视频,共计240*30=7200帧。在7200帧中,终端通过自动识别腾空跳跃的动作,确定第10-11秒区间(第2400帧到2639帧,共240帧)是关键片段,关键片段中的目标对象是玩滑板的人形对象;而原视频第0-10秒(第0帧到第2399帧),以及原视频第11-30秒(第2639帧到第7200帧)依次作为第一相关片段与第二相关片段。在将240fps的视频合成一个30fps的视频时,将原视频10-11秒区间修改成8倍慢动作(由1秒变成8秒),其他部分使用正常速度,得到30fps时长37秒的视频。Record a video with a frame rate of 240fps, and get a 30-second video, with a total of 240*30=7200 frames. In the 7200 frame, the terminal automatically recognizes the action of jumping into the air, and determines that the 10-11 second interval (the 2400th frame to the 2639th frame, a total of 240 frames) is a key segment, and the target object in the key segment is a humanoid object playing a skateboard; Seconds 0-10 (frame 0 to frame 2399) of the original video, and seconds 11-30 (frame 2639 to frame 7200) of the original video are sequentially used as the first relevant segment and the second relevant segment. When synthesizing a 240fps video into a 30fps video, modify the 10-11 second interval of the original video to 8 times slow motion (from 1 second to 8 seconds), and use the normal speed for other parts to get a 30fps video with a length of 37 seconds.

具体的,将原视频第0-10秒的视频片段确定为第一相关片段,对其采用第一抽帧频率进行处理。其每8帧(每个子片段)保留1帧,即保留第0帧丢弃第1-7帧,保留第8帧丢弃第9-15帧,依次类推,按30fps存储。经过这一步骤,这部分240fps的10秒视频变成30fps的10秒原速的第一视频片段。Specifically, the video segment of the 0-10th second of the original video is determined as the first relevant segment, and is processed with the first frame sampling frequency. It reserves 1 frame every 8 frames (each sub-segment), that is, retains frame 0 and discards frames 1-7, retains frame 8 and discards frames 9-15, and so on, and stores at 30fps. After this step, this part of the 10-second video at 240fps becomes the first video clip at 30fps at the original speed of 10 seconds.

将原视频第10-11秒的视频片段确定为关键片段,将关键片段的全部图像按30fps存储。经过这一步骤,240fps的1秒关键片段变成30fps的8秒慢动作视频片段。The video segment of the 10th-11th second of the original video is determined as the key segment, and all images of the key segment are stored at 30fps. After this step, the 1-second key clip at 240fps becomes an 8-second slow-motion video clip at 30fps.

将原视频第11-30秒的视频片段确定为第二相关片段,对其采用第二抽帧频率进行处理。其每8帧(每个子片段)保留1帧,即保留第0帧丢弃第1-7帧,保留第8帧丢弃第9-15帧,依次类推,按30fps存储。经过这一步骤,这部分240fps的19秒视频变成30fps的19秒原速的第二视频片段。Determine the video segment of the 11th-30th second of the original video as the second relevant segment, and process it with the second frame sampling frequency. It reserves 1 frame every 8 frames (each sub-segment), that is, retains frame 0 and discards frames 1-7, retains frame 8 and discards frames 9-15, and so on, and stores at 30fps. After this step, the part of the 19-second video at 240fps becomes the second video clip at the original speed of 19 seconds at 30fps.

按照时间戳,依序将第一视频片段、慢动作视频片段、第二视频片段进行合成,得到目标视频。According to the timestamp, sequentially synthesize the first video segment, the slow-motion video segment, and the second video segment to obtain the target video.

应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flow charts involved in the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above-mentioned embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be performed at different times For execution, the execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps.

基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的视频处理方法的视频处理装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个视频处理装置实施例中的具体限定可以参见上文中对于视频处理方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application further provides a video processing device for implementing the above-mentioned video processing method. The solution to the problem provided by the device is similar to the implementation described in the above method, so the specific limitations in one or more video processing device embodiments provided below can refer to the above definition of the video processing method, I won't repeat them here.

在一个实施例中,如图4所示,提供了一种视频处理装置,包括:In one embodiment, as shown in Figure 4, a video processing device is provided, including:

视频获取模块402,用于获取包含目标对象的视频;A video acquisition module 402, configured to acquire a video containing a target object;

事件检测模块404,用于检测所述目标对象触发关键事件;An event detection module 404, configured to detect that the target object triggers a key event;

片段提取模块406,用于根据所述关键事件确定视频中的关键片段,并从所述视频中确定所述关键片段外的相关片段;Segment extraction module 406, for determining the key segment in the video according to the key event, and determining the relevant segments outside the key segment from the video;

关键片段调速模块408,用于对所述关键片段进行帧率调整,得到目标帧率的慢动作视频片段;The key segment speed adjustment module 408 is used to adjust the frame rate of the key segment to obtain the slow-motion video segment of the target frame rate;

视频合成模块410,用于基于所述相关片段和所述慢动作视频片段合成目标视频。A video synthesis module 410, configured to synthesize a target video based on the related segments and the slow-motion video segments.

在其中一个实施例中,所述视频合成模块410,用于:In one of the embodiments, the video synthesis module 410 is configured to:

对所述相关片段进行抽帧处理,得到视频帧序列;performing frame extraction processing on the relevant segment to obtain a sequence of video frames;

合成所述视频帧序列,得到所述目标帧率的视频片段;Synthesizing the sequence of video frames to obtain a video segment of the target frame rate;

对所述目标帧率的视频片段和所述慢动作视频片段进行视频合成,得到目标视频。and performing video synthesis on the video segment of the target frame rate and the slow-motion video segment to obtain a target video.

在其中一个实施例中,所述相关片段包括第一相关片段和第二相关片段;In one of the embodiments, the related segments include a first related segment and a second related segment;

所述视频合成模块410,用于:The video synthesis module 410 is used for:

对所述第一相关片段和所述第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列;performing frame extraction processing on the first related segment and the second related segment to obtain a first video frame sequence and a second video frame sequence;

分别合成所述第一视频帧序列和所述第二视频帧序列,得到目标帧率的第一视频片段和第二视频片段;Synthesizing the first video frame sequence and the second video frame sequence respectively to obtain the first video segment and the second video segment of the target frame rate;

对所述第一视频片段、所述慢动作视频片段和所述第二视频片段进行视频合成。performing video synthesis on the first video clip, the slow motion video clip and the second video clip.

在其中一个实施例中,所述视频合成模块410,用于:In one of the embodiments, the video synthesis module 410 is configured to:

按照第一抽帧频率,对所述第一相关片段和所述第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列;或者,performing frame extraction processing on the first related segment and the second related segment according to the first frame sampling frequency to obtain a first video frame sequence and a second video frame sequence; or,

按照第二抽帧频率,对所述第一相关片段和所述第二相关片段进行抽帧处理,得到第一视频帧序列和第二视频帧序列;performing frame extraction processing on the first relevant segment and the second relevant segment according to a second frame extraction frequency to obtain a first video frame sequence and a second video frame sequence;

其中,所述第一抽帧频率大于所述第二抽帧频率,且所述第一抽帧频率是基于所述关键片段的帧率与所述目标帧率之间的比值确定。Wherein, the first frame drawing frequency is greater than the second frame drawing frequency, and the first frame drawing frequency is determined based on a ratio between the frame rate of the key segment and the target frame rate.

在其中一个实施例中,所述视频合成模块410,用于:In one of the embodiments, the video synthesis module 410 is configured to:

按照第一抽帧频率对所述第一相关片段进行抽帧处理,得到第一视频帧序列;performing frame extraction processing on the first relevant segment according to a first frame extraction frequency to obtain a first video frame sequence;

按照第二抽帧频率对所述第二相关片段进行抽帧处理,得到第二视频帧序列;performing frame extraction processing on the second relevant segment according to a second frame extraction frequency to obtain a second video frame sequence;

其中,所述第一抽帧频率大于所述第二抽帧频率,且所述第一抽帧频率是基于所述关键片段的帧率与所述目标帧率之间的比值确定。Wherein, the first frame drawing frequency is greater than the second frame drawing frequency, and the first frame drawing frequency is determined based on a ratio between the frame rate of the key segment and the target frame rate.

在其中一个实施例中,所述视频合成模块410,用于:In one of the embodiments, the video synthesis module 410 is configured to:

按照第一抽帧频率对所述第一相关片段进行抽帧处理,得到第一视频帧序列;performing frame extraction processing on the first relevant segment according to a first frame extraction frequency to obtain a first video frame sequence;

按照抽帧频率序列中的各抽帧频率,依序对所述第二相关片段中的子片段进行抽帧处理,且抽帧过程中每个抽帧频率抽取不同的子片段,得到第二视频帧序列;According to each frame-drawing frequency in the frame-drawing frequency sequence, the sub-segments in the second relevant segment are sequentially subjected to frame-drawing processing, and different sub-segments are extracted for each frame-drawing frequency during the frame-drawing process to obtain a second video frame sequence;

其中,所述抽帧频率序列中的各抽帧频率是递增或递减的。Wherein, each frame drawing frequency in the frame drawing frequency sequence is increasing or decreasing.

在其中一个实施例中,关键片段调速模块408,用于:In one of the embodiments, the critical segment speed control module 408 is used to:

确定目标帧率,所述目标帧率低于所述关键片段的帧率;determining a target frame rate, the target frame rate being lower than the frame rate of the key segment;

将所述关键片段的帧率转换为所述目标帧率,得到慢动作视频片段。converting the frame rate of the key segment to the target frame rate to obtain a slow-motion video segment.

在其中一个实施例中,所述片段提取模块406,用于:In one of the embodiments, the fragment extraction module 406 is configured to:

确定所述关键事件在所述视频存在的关键时间段;Determining the critical time period during which the key event exists in the video;

根据所述关键时间段筛选所述视频中的关键片段;Screening key segments in the video according to the key time period;

在所述关键时间段的前一预设时间段、所述关键时间的后一预设时间段以及各所述关键时间段之间的间隔时间段中,确定至少一个相关时间段;determining at least one relevant time period in the preceding preset time period of the critical time period, the subsequent preset time period of the critical time period, and the interval time period between each of the critical time periods;

根据所述相关时间段查找所述视频中的相关片段。Find relevant segments in the video according to the relevant time period.

在其中一个实施例中,所述事件检测模块404,用于:In one of the embodiments, the event detection module 404 is configured to:

获取所述视频的场景信息;Obtain scene information of the video;

按照所述场景信息,检测所述目标对象的动作;Detecting the action of the target object according to the scene information;

若确定所述目标对象的动作属于所述场景信息的预设动作,则确定所述目标对象触发所述预设动作的关键事件。If it is determined that the action of the target object belongs to the preset action of the scene information, then determine the key event that the target object triggers the preset action.

在其中一个实施例中,所述事件检测模块404,用于:In one of the embodiments, the event detection module 404 is configured to:

若所述场景信息表征篮球场景,则确定所述场景信息的预设动作为投篮动作;If the scene information represents a basketball scene, then determine that the preset action of the scene information is a shooting action;

按照所述篮球场景信息对应的人体姿态,从所述视频提取所述目标对象的姿态关键点;According to the human body posture corresponding to the basketball scene information, extracting the posture key points of the target object from the video;

根据所述姿态关键点识别所述目标对象的动作是否属于投篮动作;identifying whether the action of the target object belongs to a shooting action according to the key points of the posture;

确定所述目标对象的动作属于所述投篮动作。The action of determining the target object belongs to the shooting action.

在其中一个实施例中,所述事件检测模块404,用于:In one of the embodiments, the event detection module 404 is configured to:

确定所述视频的视频画面;determining a video frame of the video;

在所述视频画面中,检测所述目标对象的面积参数;所述面积参数包括在所述视频画面中的目标对象面积,或者所述目标对象面积与所述视频画面的面积之间的比值;In the video picture, detect the area parameter of the target object; the area parameter includes the area of the target object in the video picture, or the ratio between the area of the target object and the area of the video picture;

当所述面积参数大于预设面积参数阈值时,确定所述目标对象触发关键事件。When the area parameter is greater than a preset area parameter threshold, it is determined that the target object triggers a key event.

上述视频处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned video processing device may be fully or partially realized by software, hardware or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图5所示。该计算机设备包括处理器、存储器、输入/输出接口、通信接口、显示单元和输入装置。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口、显示单元和输入装置通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种视频处理方法。该计算机设备的显示单元用于形成视觉可见的画面,可以是显示屏、投影装置或虚拟现实成像装置,显示屏可以是液晶显示屏或电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure may be as shown in FIG. 5 . The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit and an input device. Wherein, the processor, the memory and the input/output interface are connected through the system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input/output interface of the computer device is used for exchanging information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. When the computer program is executed by a processor, a video processing method is realized. The display unit of the computer equipment is used to form a visually visible picture, and may be a display screen, a projection device or a virtual reality imaging device, the display screen may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a display screen The touch layer covered on the upper surface may also be a button, a trackball or a touch pad arranged on the casing of the computer device, or an external keyboard, touch pad or mouse.

本领域技术人员可以理解,图5中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 5 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation to the computer equipment on which the solution of this application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.

在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In one embodiment, there is also provided a computer device, including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the foregoing method embodiments are implemented.

在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the foregoing method embodiments are implemented.

需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all It is information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above-mentioned embodiments can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any reference to storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile and volatile storage. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive variable memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. The volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. As an illustration and not a limitation, RAM can be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided by this application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be determined by the appended claims.

Claims (14)

1. A method of video processing, the method comprising:
acquiring a video containing a target object;
detecting the target object triggering key event;
determining key fragments in the video according to the key events, and determining related fragments outside the key fragments from the video;
performing frame rate adjustment on the key segments to obtain slow motion video segments with target frame rates;
And synthesizing a target video based on the relevant segment and the slow motion video segment.
2. The method of claim 1, wherein the synthesizing the target video based on the relevant segments and the slow motion video segments comprises:
performing frame extraction processing on the relevant fragments to obtain a video frame sequence;
synthesizing the video frame sequence to obtain a video segment with the target frame rate;
and carrying out video synthesis on the video segment with the target frame rate and the slow motion video segment to obtain a target video.
3. The method of claim 2, wherein the relevant fragments comprise a first relevant fragment and a second phase Guan Pianduan;
the frame extraction processing is carried out on the relevant fragments to obtain a video frame sequence, which comprises the following steps:
performing frame extraction processing on the first relevant segment and the second relevant segment to obtain a first video frame sequence and a second video frame sequence;
the synthesizing the video frame sequence to obtain the video segment with the target frame rate comprises the following steps:
synthesizing the first video frame sequence and the second video frame sequence respectively to obtain a first video segment and a second video segment with target frame rates;
The video synthesizing the synthesized video clip and the slow motion video clip comprises:
and performing video synthesis on the first video clip, the slow motion video clip and the second video clip.
4. A method according to claim 3, wherein the performing the frame extraction on the first relevant segment and the second relevant segment to obtain a first video frame sequence and a second video frame sequence comprises:
performing frame extraction processing on the first relevant segment and the second relevant segment according to a first frame extraction frequency to obtain a first video frame sequence and a second video frame sequence; or,
performing frame extraction processing on the first relevant segment and the second relevant segment according to a second frame extraction frequency to obtain a first video frame sequence and a second video frame sequence;
wherein the first frame rate is greater than the second frame rate, and the first frame rate is determined based on a ratio between a frame rate of the key segment and the target frame rate.
5. A method according to claim 3, wherein the performing the frame extraction on the first relevant segment and the second relevant segment to obtain a first video frame sequence and a second video frame sequence comprises:
Performing frame extraction processing on the first related segment according to a first frame extraction frequency to obtain a first video frame sequence;
performing frame extraction processing on the second related segment according to a second frame extraction frequency to obtain a second video frame sequence;
wherein the first frame rate is greater than the second frame rate, and the first frame rate is determined based on a ratio between a frame rate of the key segment and the target frame rate.
6. A method according to claim 3, wherein the performing the frame extraction on the first relevant segment and the second relevant segment to obtain a first video frame sequence and a second video frame sequence comprises:
performing frame extraction processing on the first related segment according to a first frame extraction frequency to obtain a first video frame sequence;
sequentially carrying out frame extraction processing on the sub-segments in the second related segments according to each frame extraction frequency in the frame extraction frequency sequence, and extracting different sub-segments from each frame extraction frequency in the frame extraction process to obtain a second video frame sequence;
wherein each frame frequency in the frame frequency sequence is increased or decreased.
7. The method of claim 1, wherein performing frame rate adjustment on the key segments to obtain slow motion video segments at a target frame rate comprises:
Determining a target frame rate, the target frame rate being lower than the frame rate of the key segment;
and converting the frame rate of the key segment into the target frame rate to obtain the slow motion video segment.
8. The method of claim 1, wherein the determining key segments in a video from the key events and determining relevant segments outside the key segments from the video comprises:
determining a critical time period when the critical event exists in the video;
screening key fragments in the video according to the key time period;
determining at least one relevant time period in a previous preset time period of the key time period, a subsequent preset time period of the key time period and an interval time period between the key time periods;
and searching the relevant fragments in the video according to the relevant time period.
9. The method of claim 1, wherein the detecting the target object triggering a critical event comprises:
acquiring scene information of the video;
detecting the action of the target object according to the scene information;
and if the action of the target object is determined to belong to the preset action of the scene information, determining a key event of triggering the preset action by the target object.
10. The method of claim 9, wherein said detecting an action of said target object in accordance with said scene information comprises:
if the scene information characterizes a basketball scene, determining a preset action of the scene information as a shooting action;
extracting gesture key points of the target object from the video according to the human body gesture corresponding to the basketball scene information;
identifying whether the action of the target object belongs to a shooting action according to the gesture key points;
the determining that the action of the target object belongs to the preset action of the scene information comprises the following steps:
determining that the action of the target object belongs to the shooting action.
11. The method of claim 1, wherein the detecting the target object triggering a critical event comprises:
determining a video picture of the video;
detecting an area parameter of the target object in the video picture; the area parameter includes a target object area in the video picture or a ratio between the target object area and an area of the video picture;
and when the area parameter is larger than a preset area parameter threshold, determining that the target object triggers a key event.
12. A video processing apparatus, the apparatus comprising:
the video acquisition module is used for acquiring a video containing a target object;
the event detection module is used for detecting the target object triggering key event;
the segment extraction module is used for determining key segments in the video according to the key events and determining related segments outside the key segments from the video;
the key segment speed regulation module is used for carrying out frame rate regulation on the key segments to obtain slow motion video segments with target frame rate;
and the video synthesis module is used for synthesizing a target video based on the relevant segment and the slow motion video segment.
13. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 11 when the computer program is executed.
14. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 11.
CN202211727999.0A 2022-12-29 2022-12-29 Video processing method, device, computer equipment and storage medium Pending CN116193049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211727999.0A CN116193049A (en) 2022-12-29 2022-12-29 Video processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211727999.0A CN116193049A (en) 2022-12-29 2022-12-29 Video processing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116193049A true CN116193049A (en) 2023-05-30

Family

ID=86441541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211727999.0A Pending CN116193049A (en) 2022-12-29 2022-12-29 Video processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116193049A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117456097A (en) * 2023-10-30 2024-01-26 南通海赛未来数字科技有限公司 A three-dimensional model construction method and device
CN119277184A (en) * 2024-04-15 2025-01-07 荣耀终端有限公司 Video processing method, electronic device, chip system and storage medium
CN119743660A (en) * 2025-03-04 2025-04-01 成都赛力斯科技有限公司 Video generation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9143693B1 (en) * 2014-06-10 2015-09-22 Google Inc. Systems and methods for push-button slow motion
WO2020192461A1 (en) * 2019-03-25 2020-10-01 华为技术有限公司 Recording method for time-lapse photography, and electronic device
CN112532865A (en) * 2019-09-19 2021-03-19 华为技术有限公司 Slow-motion video shooting method and electronic equipment
CN114520886A (en) * 2020-11-18 2022-05-20 华为技术有限公司 Slow-motion video recording method and equipment
WO2022111198A1 (en) * 2020-11-26 2022-06-02 展讯通信(上海)有限公司 Video processing method and apparatus, terminal device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9143693B1 (en) * 2014-06-10 2015-09-22 Google Inc. Systems and methods for push-button slow motion
WO2020192461A1 (en) * 2019-03-25 2020-10-01 华为技术有限公司 Recording method for time-lapse photography, and electronic device
CN112532865A (en) * 2019-09-19 2021-03-19 华为技术有限公司 Slow-motion video shooting method and electronic equipment
CN114520886A (en) * 2020-11-18 2022-05-20 华为技术有限公司 Slow-motion video recording method and equipment
WO2022111198A1 (en) * 2020-11-26 2022-06-02 展讯通信(上海)有限公司 Video processing method and apparatus, terminal device and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117456097A (en) * 2023-10-30 2024-01-26 南通海赛未来数字科技有限公司 A three-dimensional model construction method and device
CN117456097B (en) * 2023-10-30 2024-05-14 南通海赛未来数字科技有限公司 Three-dimensional model construction method and device
CN119277184A (en) * 2024-04-15 2025-01-07 荣耀终端有限公司 Video processing method, electronic device, chip system and storage medium
CN119743660A (en) * 2025-03-04 2025-04-01 成都赛力斯科技有限公司 Video generation method and device, electronic equipment and storage medium
CN119743660B (en) * 2025-03-04 2025-08-01 成都赛力斯科技有限公司 Video generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6419830B2 (en) System, method and apparatus for image retrieval
JP6158446B2 (en) Object selection and tracking for display segmentation and video frame clustering
US10488195B2 (en) Curated photogrammetry
CN104394422B (en) A kind of Video segmentation point acquisition methods and device
CN116193049A (en) Video processing method, device, computer equipment and storage medium
WO2022001593A1 (en) Video generation method and apparatus, storage medium and computer device
US10580143B2 (en) High-fidelity 3D reconstruction using facial features lookup and skeletal poses in voxel models
WO2019223463A1 (en) Image processing method and apparatus, storage medium, and computer device
TWI255141B (en) Method and system for real-time interactive video
WO2020069116A1 (en) Techniques for generating media content
WO2020056903A1 (en) Information generating method and device
CN115494987B (en) Video-based interactive method, device, computer equipment and storage medium
CN110519532A (en) A kind of information acquisition method and electronic equipment
CN109035415B (en) Virtual model processing method, device, equipment and computer readable storage medium
KR101642200B1 (en) Apparatus and method for generating motion effects by analyzing motion of object
JP2013195725A (en) Image display system
JP5962383B2 (en) Image display system and image processing apparatus
CN117455948A (en) Multi-view pedestrian trajectory extraction and analysis method based on deep learning algorithm
CN114153342B (en) Visual information display method, device, computer equipment and storage medium
KR20180080697A (en) Method and apparatus interactive cinemagram
JP2017228146A (en) Image processing device, image processing method, and computer program
CN119273570B (en) An image processing method, a depth estimation model training method, and an electronic device.
JP2014170980A (en) Information processing apparatus, information processing method, and information processing program
CN120017774A (en) Dance video special effects adding method, device, computer equipment and storage medium
CN118283440A (en) Video special effect processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination