CN118075409A - Data fusion method and device for multi-level user terminal - Google Patents
Data fusion method and device for multi-level user terminal Download PDFInfo
- Publication number
- CN118075409A CN118075409A CN202410472785.6A CN202410472785A CN118075409A CN 118075409 A CN118075409 A CN 118075409A CN 202410472785 A CN202410472785 A CN 202410472785A CN 118075409 A CN118075409 A CN 118075409A
- Authority
- CN
- China
- Prior art keywords
- modification
- video
- video frame
- user terminal
- processed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio 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/265—Mixing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23418—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23424—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
- H04N21/4394—Processing of audio elementary streams involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44016—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明提供一种多级别用户端的数据融合方法及装置,其中,所述方法包括:获取待处理视频,并根据所述待处理视频进行基于处理类型的修改标记;基于处理类型与处理权限的对应关系,将待处理视频分发至各用户端,各用户端基于不同处理权限分别对待处理视频的视频帧进行基于处理类型的修改操作,得到与各用户端分别对应的各已处理视频;基于各已处理视频确定帧序相同的各视频帧包括的修改操作,并基于预设排序规则对修改操作进行排序;将指示排序最高的修改操作对应的视频帧作为基底图像,基于基底图层以逐序降低的方式进行其他修改标记对应的修改操作,得到融合视频帧;将融合视频帧按照帧序合并,得到融合视频。本发明至少提高了工作效率。
The present invention provides a data fusion method and device for a multi-level user terminal, wherein the method comprises: obtaining a video to be processed, and performing a modification mark based on a processing type according to the video to be processed; based on the corresponding relationship between the processing type and the processing authority, distributing the video to be processed to each user terminal, and each user terminal performs a modification operation based on the processing type on the video frame of the video to be processed based on different processing authorities, and obtains each processed video corresponding to each user terminal; based on each processed video, determining the modification operations included in each video frame with the same frame sequence, and sorting the modification operations based on a preset sorting rule; using the video frame corresponding to the modification operation indicating the highest sorting as a base image, and performing modification operations corresponding to other modification marks in a descending order based on the base layer, and obtaining a fused video frame; merging the fused video frames according to the frame sequence, and obtaining a fused video. The present invention at least improves work efficiency.
Description
技术领域Technical Field
本发明涉及数据处理技术,尤其涉及一种多级别用户端的数据融合方法及装置。The present invention relates to data processing technology, and in particular to a data fusion method and device for multi-level user terminals.
背景技术Background technique
视频处理是指通过对原始视频素材进行编辑、裁剪、合并、特效添加等处理,以达到最终制作出符合需求的视频作品的过程。在视频处理中,编辑人员可以根据需要选择并提取原始素材中的特定片段,对其进行去除无关内容、调整顺序、添加转场效果等操作,以达到故事叙述的目的。同时,视频处理还可以涉及色彩校正、音频处理以及添加字幕、特效、音乐等后期制作元素。通过视频处理,可以将碎片化的视频素材有机地组合在一起,创造出流畅、富有表现力的视觉作品,如电影、电视节目、广告等。Video processing refers to the process of editing, cropping, merging, adding special effects, etc. to the original video materials in order to produce a video work that meets the requirements. In video processing, editors can select and extract specific clips from the original materials as needed, remove irrelevant content, adjust the order, add transition effects, etc. to achieve the purpose of storytelling. At the same time, video processing can also involve color correction, audio processing, and adding post-production elements such as subtitles, special effects, and music. Through video processing, fragmented video materials can be organically combined to create smooth and expressive visual works such as movies, TV shows, and advertisements.
发明人在研究中发现,针对同一视频进行视频处理时,往往会包括对视频帧进行例如图像规格修改、原始内容修改、附加内容修改等多种修改操作,并且多种修改操作往往会同时交给同一用户端进行操作,这样会导致视频处理的速度较慢,并且可能会出现用户对某一修改操作不擅长的情况,更加降低了相应的工作效率。The inventors discovered during their research that when processing the same video, it often includes multiple modification operations on the video frames, such as image specification modification, original content modification, additional content modification, etc., and multiple modification operations are often performed simultaneously on the same user end, which will result in slower video processing speed and the user may not be proficient in a certain modification operation, further reducing the corresponding work efficiency.
发明内容Summary of the invention
基于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种多级别用户端的数据融合方法及装置。Based on the above problems, the present invention is proposed to provide a multi-level user terminal data fusion method and device that overcomes the above problems or at least partially solves the above problems.
根据本发明的一个方面,提供一种多级别用户端的数据融合方法,包括以下步骤:According to one aspect of the present invention, a method for data fusion of a multi-level user terminal is provided, comprising the following steps:
获取待处理视频,并根据所述待处理视频的每一视频帧的视频帧内容进行基于处理类型的修改标记;Acquire a video to be processed, and perform a modification mark based on a processing type according to the video frame content of each video frame of the video to be processed;
基于不同处理类型与不同处理权限的一一对应关系,将所述待处理视频分发至对应的各用户端,所述各用户端基于其具备的不同处理权限分别对所述待处理视频的视频帧进行基于对应的处理类型的修改操作,得到与各用户端分别对应的各已处理视频;Based on a one-to-one correspondence between different processing types and different processing permissions, the video to be processed is distributed to corresponding user terminals, and each user terminal performs a modification operation based on the corresponding processing type on the video frame of the video to be processed based on the different processing permissions it has, so as to obtain processed videos corresponding to each user terminal;
基于各已处理视频确定帧序相同的各视频帧包括的所有修改操作,并基于预设排序规则对所有修改操作进行排序;Determine all modification operations included in each video frame with the same frame sequence based on each processed video, and sort all modification operations based on a preset sorting rule;
将指示排序最高的修改操作对应的视频帧作为基底图像,并基于所述基底图层以逐序降低的方式逐个进行其他修改标记对应的修改操作,得到融合视频帧;The video frame corresponding to the modification operation with the highest indication ranking is used as the base image, and based on the base layer, modification operations corresponding to other modification marks are performed one by one in a descending order to obtain a fused video frame;
将所有融合视频帧按照帧序进行合并,得到融合视频。All fused video frames are merged in frame order to obtain a fused video.
可选地,在根据本发明的方法中,根据所述待处理视频的每一视频帧的视频帧内容进行基于处理类型的修改标记,包括:Optionally, in the method according to the present invention, performing modification marking based on processing type according to the video frame content of each video frame of the video to be processed includes:
对所述待处理视频进行逐帧的拆分,获取各视频帧;Splitting the video to be processed frame by frame to obtain each video frame;
将所述各视频帧发送至管理端,所述管理端基于各视频帧的视频帧内容确定各视频帧分别对应的各处理类型以及与各处理类型分别对应的各修改内容,并建立与处理类型对应的初始修改标示层,其中,所述初始修改标示层包括类型区域以及修改区域;Sending each video frame to a management end, the management end determining each processing type corresponding to each video frame and each modification content corresponding to each processing type based on the video frame content of each video frame, and establishing an initial modification marking layer corresponding to the processing type, wherein the initial modification marking layer includes a type area and a modification area;
将所述处理类型添加至所述类型区域、以及将所述修改内容添加至所述修改区域,得到当前修改标示层,并在与所述当前修改标示层对应的视频帧上建立透明粘贴层;Adding the processing type to the type area and adding the modified content to the modification area to obtain a current modification marking layer, and establishing a transparent pasting layer on the video frame corresponding to the current modification marking layer;
将所述当前修改标示层粘贴于所述透明粘贴层,完成基于所述处理类型的修改标记。The current modification marking layer is pasted on the transparent pasting layer to complete the modification marking based on the processing type.
可选地,在根据本发明的方法中,所述方法还包括:Optionally, in the method according to the present invention, the method further comprises:
在所述当前修改标示层生成颜色区域;generating a color area in the current modification marking layer;
调取颜色对比表,其中,颜色对比表中包括不同处理类型以及与不同处理类型一一对应的标记颜色;Retrieving a color comparison table, wherein the color comparison table includes different processing types and marking colors corresponding to the different processing types;
遍历所述颜色对比表,确定与所述处理类型对应的标记颜色,并对所述颜色区域进行标记颜色的填充;Traversing the color comparison table, determining the marking color corresponding to the processing type, and filling the color area with the marking color;
分别在每一视频帧的边缘处建立透明的边缘包围区域;Establishing transparent edge enclosing areas at the edges of each video frame respectively;
当同一视频帧包括的当前修改标示层的数量为一时,对该视频帧的边缘包围区域进行对应标记颜色的填充;When the number of currently modified marking layers included in the same video frame is one, the edge enclosed area of the video frame is filled with the corresponding marking color;
当同一视频帧包括的当前修改标示层的数量大于一时,对该视频帧的边缘包围区域进行与当前修改标示层的数量相同的各子区域的划分,并对各子区域分别进行对应不同标示颜色的填充。When the number of current modification marking layers included in the same video frame is greater than one, the edge enclosing area of the video frame is divided into sub-areas equal in number to the number of current modification marking layers, and each sub-area is filled with a corresponding different marking color.
可选地,在根据本发明的方法中,各用户端中的每一组包括相同数量的处理子端;Optionally, in the method according to the present invention, each group of the user terminals includes the same number of processing sub-terminals;
将所述待处理视频分发至对应的各用户端,之后还包括:The video to be processed is distributed to the corresponding user terminals, and then the following steps are further included:
确定所述待处理视频中对应每个用户端的当前修改标示层的处理数量,并基于每个用户端分别对应的处理数量确定与每个用户端分别对应的处理占比;Determine the processing quantity of the current modification indication layer corresponding to each user terminal in the to-be-processed video, and determine the processing proportion corresponding to each user terminal based on the processing quantity corresponding to each user terminal;
基于每个用户端分别对应的处理占比,对每个用户端进行对应处理子端的数量增减。Based on the processing proportion corresponding to each user terminal, the number of corresponding processing sub-terminals for each user terminal is increased or decreased.
可选地,在根据本发明的方法中,所述各用户端基于其具备的不同处理权限分别对所述待处理视频的视频帧进行基于对应的处理类型的修改操作,包括:Optionally, in the method according to the present invention, each of the user terminals performs modification operations based on the corresponding processing types on the video frames of the video to be processed based on the different processing permissions it possesses, including:
响应于各用户端接收到待处理视频后发送的处理信号,调取与各用户端具备的不同处理权限分别对应的各操作插件,并将各操作插件分别发送至各用户端;In response to the processing signal sent by each user terminal after receiving the video to be processed, calling each operation plug-in corresponding to the different processing permissions possessed by each user terminal, and sending each operation plug-in to each user terminal;
各用户端分别响应于对与其对应的操作插件的使用,根据所述待处理视频的视频帧中的当前修改标示层对视频帧进行基于对应的处理类型的修改操作;Each user terminal respectively responds to the use of the corresponding operation plug-in, and performs a modification operation based on the corresponding processing type on the video frame according to the current modification indication layer in the video frame of the video to be processed;
响应于用户端对修改操作的完成,在与所述修改操作对应的视频帧中的当前修改标示层中生成操作区域,并在所述操作区域中添加与所述修改操作对应的操作说明。In response to the user terminal completing the modification operation, an operation area is generated in the current modification indication layer in the video frame corresponding to the modification operation, and an operation description corresponding to the modification operation is added to the operation area.
可选地,在根据本发明的方法中,所述修改操作至少包括图像规格修改;Optionally, in the method according to the present invention, the modification operation at least includes image specification modification;
根据所述待处理视频的视频帧中的当前修改标示层对视频帧进行基于对应的处理类型的修改操作,包括:Performing a modification operation based on a corresponding processing type on the video frame according to the current modification indication layer in the video frame of the video to be processed includes:
基于当前修改标示层确定修改内容,并基于修改内容确定预设倍数以及修改基准点;Determine the modification content based on the current modification marking layer, and determine the preset multiple and the modification reference point based on the modification content;
在所述视频帧的原始框架内基于所述修改基准点对所述视频帧进行预设倍数的修改;和/或Modifying the video frame by a preset multiple based on the modification reference point within the original frame of the video frame; and/or
所述修改操作至少包括原始内容修改;The modification operation at least includes original content modification;
根据所述待处理视频的视频帧中的当前修改标示层对视频帧进行基于对应的处理类型的修改操作,包括:Performing a modification operation based on a corresponding processing type on the video frame according to the current modification indication layer in the video frame of the video to be processed includes:
基于当前修改标示层确定修改内容,并基于修改内容确定修改范围以及修改图像;Determine the modification content based on the current modification marking layer, and determine the modification range and the modified image based on the modification content;
在所述视频帧的原始框架内基于所述修改范围确定目标区域,并将目标区域进行裁剪,得到空白区域;Determine a target area within the original frame of the video frame based on the modification range, and crop the target area to obtain a blank area;
将所述修改图像填充至所述空白区域;和/或Filling the blank area with the modified image; and/or
所述修改操作至少包括附加内容修改;The modification operation at least includes additional content modification;
根据所述待处理视频的视频帧中的当前修改标示层对视频帧进行基于对应的处理类型的修改操作,包括:Performing a modification operation based on a corresponding processing type on the video frame according to the current modification indication layer in the video frame of the video to be processed includes:
基于当前修改标示层确定修改内容,并基于修改内容确定附加内容以及附加区域;Determine the modified content based on the current modified marking layer, and determine the additional content and the additional area based on the modified content;
在所述视频帧的原始框架内基于所述附加区域建立透明添加图层,并将所述附加内容添加至所述透明添加图层。A transparent additional layer is established based on the additional area within the original frame of the video frame, and the additional content is added to the transparent additional layer.
可选地,在根据本发明的方法中,以图像规格修改、原始内容修改、附加内容修改的排序作为预设排序规则;Optionally, in the method according to the present invention, the order of image specification modification, original content modification, and additional content modification is used as a preset ordering rule;
基于各已处理视频确定帧序相同的各视频帧包括的所有修改操作,并基于预设排序规则对所有修改操作进行排序,包括:Determine all modification operations included in each video frame with the same frame sequence based on each processed video, and sort all modification operations based on a preset sorting rule, including:
获取各已处理视频中处于同一帧序下的各视频帧,并确定每一帧序对应的各视频帧包括的所有修改操作;Obtaining each video frame in the same frame sequence in each processed video, and determining all modification operations included in each video frame corresponding to each frame sequence;
将所有修改操作按照预设排序规则进行排序。Sort all modification operations according to the preset sorting rules.
可选地,在根据本发明的方法中,将指示排序最高的修改操作对应的视频帧作为基底图像,并基于所述基底图层以逐序降低的方式逐个进行其他修改操作,得到融合视频帧,包括:Optionally, in the method according to the present invention, the video frame corresponding to the modification operation with the highest indication ranking is used as the base image, and other modification operations are performed one by one in a descending order based on the base layer to obtain a fused video frame, including:
当处于同一帧序下的各视频帧对应的修改操作至少包括图像规格修改以及原始内容修改时,将所述图像规格修改对应的视频帧作为基底图像;When the modification operations corresponding to the video frames in the same frame sequence include at least image specification modification and original content modification, the video frames corresponding to the image specification modification are used as base images;
基于所述图像规格修改确定修改基准点以及预设倍数,并基于所述基底图像建立以所述修改基准点为中心的基底坐标系;Determine a modified reference point and a preset multiple based on the image specification modification, and establish a base coordinate system centered on the modified reference point based on the base image;
基于所述原始内容修改确定修改范围,并基于对应所述原始内容修改的视频帧建立以所述修改基准点为中心的视频帧坐标系,获取位于所述修改范围边缘处的各像素点在所述视频帧坐标系中分别对应的各像素坐标点;Determine a modification range based on the original content modification, establish a video frame coordinate system centered on the modification reference point based on the video frame corresponding to the original content modification, and obtain pixel coordinate points corresponding to pixel points at the edge of the modification range in the video frame coordinate system;
基于所述预设倍数对所述各所述像素坐标点进行修改,并判断进行修改后的各像素坐标点是否位于所述基底坐标系内;Modifying each of the pixel coordinate points based on the preset multiple, and determining whether each of the pixel coordinate points after modification is located in the base coordinate system;
当修改后的各像素坐标点至少部分位于所述基底坐标系内时,确定位于所述基底坐标系内的至少部分的各像素坐标点在所述基底图像中占据的部分区域;When at least a portion of each pixel coordinate point after modification is located in the base coordinate system, determining a partial area in the base image occupied by at least a portion of each pixel coordinate point located in the base coordinate system;
基于所述原始内容修改确定修改图像,并确定位于所述基底坐标系内的至少部分的各像素点坐标点对应的部分图像;Modify and determine a modified image based on the original content, and determine a portion of the image corresponding to at least a portion of the coordinate points of each pixel point located in the base coordinate system;
将所述部分区域进行裁剪,并将所述部分图像进行填充,得到融合视频帧。The partial area is cropped and the partial image is filled to obtain a fused video frame.
可选地,在根据本发明的方法中,将指示排序最高的修改操作对应的视频帧作为基底图像,并基于所述基底图层以逐序降低的方式逐个进行其他修改操作,得到融合视频帧,包括:Optionally, in the method according to the present invention, the video frame corresponding to the modification operation with the highest indication ranking is used as the base image, and other modification operations are performed one by one in a descending order based on the base layer to obtain a fused video frame, including:
当处于同一帧序下的各视频帧对应的修改操作至少包括图像规格修改以及附加内容修改时,将所述图像规格修改对应的视频帧作为基底图像;When the modification operations corresponding to the video frames in the same frame sequence include at least image specification modification and additional content modification, the video frames corresponding to the image specification modification are used as base images;
基于所述附加内容修改确定附加内容以及附加区域;modifying and determining additional content and an additional area based on the additional content;
在所述基底图像的基底框架内基于所述附加区域建立透明添加图层,并将所述附加内容添加至所述透明添加图层;Establishing a transparent additional layer based on the additional area within the base frame of the base image, and adding the additional content to the transparent additional layer;
获取位于所述附加内容的边缘处的各边缘像素点分别对应的各第一像素值;Obtaining first pixel values corresponding to edge pixel points located at the edge of the additional content;
获取在所述基底图像中分别与各边缘像素点相邻的各基底像素点分别对应的各第二像素值;Acquire second pixel values respectively corresponding to base pixel points respectively adjacent to edge pixel points in the base image;
计算所述第一像素值与所述第二像素值之间的绝对差值;Calculating an absolute difference between the first pixel value and the second pixel value;
当所述绝对差值小于预设阈值时,将该第一像素值对应的边缘像素点配置为第三像素值。When the absolute difference is less than a preset threshold, the edge pixel point corresponding to the first pixel value is configured as a third pixel value.
根据本发明的又一个方面,提供一种多级别用户端的数据融合装置,包括:According to another aspect of the present invention, a data fusion device for a multi-level user terminal is provided, comprising:
标记模块,被配置为获取待处理视频,并根据所述待处理视频的每一视频帧的视频帧内容进行基于处理类型的修改标记;a marking module configured to obtain a video to be processed, and perform a modification mark based on a processing type according to a video frame content of each video frame of the video to be processed;
修改模块,被配置为基于不同处理类型与不同处理权限的一一对应关系,将所述待处理视频分发至对应的各用户端,所述各用户端基于其具备的不同处理权限分别对所述待处理视频的视频帧进行基于对应的处理类型的修改操作,得到与各用户端分别对应的各已处理视频;The modification module is configured to distribute the to-be-processed video to the corresponding user terminals based on a one-to-one correspondence between different processing types and different processing permissions, and each user terminal performs a modification operation based on the corresponding processing type on the video frame of the to-be-processed video based on its different processing permissions, so as to obtain processed videos corresponding to each user terminal;
排序模块,被配置为基于各已处理视频确定帧序相同的各视频帧包括的所有修改操作,并基于预设排序规则对所有修改操作进行排序;A sorting module is configured to determine all modification operations included in each video frame with the same frame sequence based on each processed video, and sort all the modification operations based on a preset sorting rule;
视频帧融合模块,被配置为将指示排序最高的修改操作对应的视频帧作为基底图像,并基于所述基底图层以逐序降低的方式逐个进行其他修改操作,得到融合视频帧;The video frame fusion module is configured to use the video frame corresponding to the modification operation with the highest indication ranking as a base image, and perform other modification operations one by one in a descending order based on the base layer to obtain a fused video frame;
视频融合模块,被配置为将所有融合视频帧按照帧序进行合并,得到融合视频。The video fusion module is configured to merge all fused video frames in frame order to obtain a fused video.
根据本发明的方案,首先可以针对需要进行处理的待处理视频进行每一视频帧的基于处理类型的修改标记。然后将待处理视频分发给与具备不同处理权限的用户端,这样就可以使每一用户端基于其具备的不同处理权限来对分别对待处理视频进行对应处理类型的修改操作,从而得到与各用户端分别对应的各已处理视频,接着可以对各已处理视频中帧序相同的各视频帧对应的修改操作进行基于预设排序规则的排序,并将指示排序最高的修改操作对应的视频帧作为基底图像,在基底图像上仅从其他修改标记的修改操作,从而得到融合视频帧;最后将所有的融合视频帧进行合并,得到对应的融合视频,从而增加了视频处理的速度,并提高了相应的工作效率。According to the solution of the present invention, firstly, modification marks based on the processing type can be made for each video frame of the to-be-processed video that needs to be processed. Then, the to-be-processed video is distributed to user terminals with different processing permissions, so that each user terminal can perform modification operations of the corresponding processing types on the to-be-processed video based on its different processing permissions, thereby obtaining each processed video corresponding to each user terminal, and then the modification operations corresponding to each video frame with the same frame sequence in each processed video can be sorted based on a preset sorting rule, and the video frame corresponding to the modification operation indicating the highest sorting is used as the base image, and only the modification operations of other modification marks are performed on the base image, thereby obtaining a fused video frame; finally, all the fused video frames are merged to obtain the corresponding fused video, thereby increasing the speed of video processing and improving the corresponding work efficiency.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1示出了根据本发明一个实施例的多级别用户端的数据融合方法的流程图;FIG1 shows a flow chart of a data fusion method for a multi-level user terminal according to an embodiment of the present invention;
图2示出了根据本发明另一个实施例的多级别用户端的数据融合装置的结构框图。FIG2 shows a structural block diagram of a data fusion device for a multi-level user terminal according to another embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
视频剪辑是指通过对原始视频素材进行编辑、裁剪、合并、特效添加等处理,以达到最终制作出符合需求的视频作品的过程。在视频剪辑中,编辑人员可以根据需要选择并提取原始素材中的特定片段,对其进行去除无关内容、调整顺序、添加转场效果等操作,以达到故事叙述的目的。同时,视频剪辑还可以涉及色彩校正、音频处理以及添加字幕、特效、音乐等后期制作元素。通过视频剪辑,可以将碎片化的视频素材有机地组合在一起,创造出流畅、富有表现力的视觉作品,如电影、电视节目、广告等。Video editing refers to the process of editing, cropping, merging, adding special effects, etc. to the original video materials in order to produce a video work that meets the requirements. In video editing, editors can select and extract specific clips from the original materials as needed, remove irrelevant content, adjust the order, add transition effects, etc., to achieve the purpose of storytelling. At the same time, video editing can also involve color correction, audio processing, and adding post-production elements such as subtitles, special effects, and music. Through video editing, fragmented video materials can be organically combined to create smooth and expressive visual works, such as movies, TV shows, and advertisements.
发明人在研究中发现,针对同一视频进行视频剪辑时,往往会包括对视频帧进行例如图像规格修改、原始内容修改、附加内容修改等多种修改操作,并且多种修改操作往往会同时交给同一用户端进行操作,这样会导致视频剪辑的速度较慢,并且可能会出现用户对某一修改操作不擅长的情况,更加降低相应的工作效率。The inventors found in their research that when video editing is performed on the same video, it often includes multiple modification operations on the video frames, such as image specification modification, original content modification, additional content modification, etc., and multiple modification operations are often performed simultaneously on the same user end, which will result in a slower video editing speed and the user may not be good at a certain modification operation, further reducing the corresponding work efficiency.
为解决上述现有技术中存在的问题,发明人提出本发明的方案。本发明的一个实施例提供了一种多级别用户端的数据融合方法,该方法可以在计算设备中执行。In order to solve the above problems in the prior art, the inventor proposes the solution of the present invention. An embodiment of the present invention provides a data fusion method for a multi-level user terminal, which can be executed in a computing device.
图1示出了根据本发明的一个实施例提出的一种多级别用户端的数据融合方法的流程图,该方法适于在计算设备中执行,其中,计算设备可以被理解为现有技术中的具有数据处理功能的计算机。FIG1 shows a flow chart of a multi-level user-side data fusion method according to an embodiment of the present invention. The method is suitable for execution in a computing device, wherein the computing device can be understood as a computer with data processing function in the prior art.
如图1所示,本实施例中的一种多级别用户端的数据融合方法,始于步骤S101,在步骤S101中,包括以下内容:获取待处理视频,并根据所述待处理视频的每一视频帧的视频帧内容进行基于处理类型的修改标记。As shown in FIG. 1 , a multi-level user-side data fusion method in this embodiment starts with step S101. In step S101, the following contents are included: obtaining a video to be processed, and performing a modification mark based on the processing type according to the video frame content of each video frame of the video to be processed.
例如,在本实施例中,待处理视频可以被理解为待进行视频剪辑的视频,服务器在获取待处理视频后,可以针对待处理视频中的每一视频帧分别对应的视频帧内容来进行基于处理类型的修改标记,以使后续的处理过程中,可基于修改标记来进行相应处理类型的处理。For example, in this embodiment, the video to be processed can be understood as a video to be edited. After obtaining the video to be processed, the server can perform modification marking based on the processing type for the video frame content corresponding to each video frame in the video to be processed, so that in the subsequent processing process, the corresponding processing type can be performed based on the modification mark.
进一步的,在本实施例中,上述的“根据所述待处理视频的每一视频帧的视频帧内容进行基于处理类型的修改标记”,还可以包括以下步骤:Furthermore, in this embodiment, the above-mentioned “performing a modification mark based on the processing type according to the video frame content of each video frame of the video to be processed” may also include the following steps:
对所述待处理视频进行逐帧的拆分,获取各视频帧;Splitting the video to be processed frame by frame to obtain each video frame;
将所述各视频帧发送至管理端,所述管理端基于各视频帧的视频帧内容确定各视频帧分别对应的各处理类型以及与各处理类型分别对应的各修改内容,并建立与处理类型对应的初始修改标示层,其中,所述初始修改标示层包括类型区域以及修改区域;Sending each video frame to a management end, the management end determining each processing type corresponding to each video frame and each modification content corresponding to each processing type based on the video frame content of each video frame, and establishing an initial modification marking layer corresponding to the processing type, wherein the initial modification marking layer includes a type area and a modification area;
将所述处理类型添加至所述类型区域、以及将所述修改内容添加至所述修改区域,得到当前修改标示层,并在与所述当前修改标示层对应的视频帧上建立透明粘贴层;Adding the processing type to the type area and adding the modified content to the modification area to obtain a current modification marking layer, and establishing a transparent pasting layer on the video frame corresponding to the current modification marking layer;
将所述当前修改标示层粘贴于所述透明粘贴层,完成基于所述处理类型的修改标记。The current modification marking layer is pasted on the transparent pasting layer to complete the modification marking based on the processing type.
例如,在本实施例中,为了实现对待视频处理的每一视频帧进行修改标记,可通过如下的方法进行:For example, in this embodiment, in order to implement modification marking for each video frame to be processed, the following method may be used:
首先,需要对待处理视频进行逐帧的拆分,获取各视频帧;First, the video to be processed needs to be split frame by frame to obtain each video frame;
接着,将各视频帧发送至管理端,管理端会根据各视频帧的视频帧内容确定各视频帧分别对应的处理类型以及与各处理类型分别对应的各修改内容,其中,处理类型可以被理解为例如基于图像规格进行处理、基于原始内容进行处理、基于附加内容进行处理等,修改内容则可以被理解为视频帧中所需要修改的区域及对应内容,每个视频帧可能对应一个或多个处理类型,相应的,每个处理类型可能对应一个或多个修改内容,例如,某一个视频帧的视频帧内容包括一只小猫以及一只小狗,而需要对该视频帧进行的修改操作为:将小猫进行删除,并添加内容为“小狗图”的字幕时,则该视频帧对应的处理类型为基于原始内容进行处理以及基于附加内容进行处理,涉及的修改内容则为小猫以及小狗;Next, each video frame is sent to the management end, and the management end determines the processing type corresponding to each video frame and the modification content corresponding to each processing type according to the video frame content of each video frame, wherein the processing type can be understood as, for example, processing based on image specifications, processing based on original content, processing based on additional content, etc., and the modification content can be understood as the area and corresponding content that need to be modified in the video frame. Each video frame may correspond to one or more processing types, and accordingly, each processing type may correspond to one or more modification contents. For example, the video frame content of a certain video frame includes a kitten and a puppy, and the modification operation to be performed on the video frame is: deleting the kitten and adding a subtitle with the content of "Puppy Picture", then the processing type corresponding to the video frame is processing based on the original content and processing based on the additional content, and the modification content involved is the kitten and the puppy;
在确定了与视频帧对应的处理类型以及修改内容后,服务器同时会建立与处理类型对应的初始修改标示层,其中,初始修改标示层包括类型区域以及修改区域,由于同一个视频帧可以包括多个处理类型,因此,服务器也会相应的建立与多个处理类型分别对应的初始修改标示层;After determining the processing type and modification content corresponding to the video frame, the server will also establish an initial modification marking layer corresponding to the processing type, wherein the initial modification marking layer includes a type area and a modification area. Since the same video frame may include multiple processing types, the server will also correspondingly establish initial modification marking layers corresponding to the multiple processing types;
再接着,基于建立得到的初始修改标示层,可以将处理类型添加至初始修改标示层中的类型区域中,并将修改内容添加至初始修改标示层中的修改区域,从而得到对应的当前修改标示层,并在与当前修改标示层对应的视频帧的表面上建立透明粘贴层;Next, based on the established initial modification marking layer, the processing type can be added to the type area in the initial modification marking layer, and the modification content can be added to the modification area in the initial modification marking layer, so as to obtain the corresponding current modification marking layer, and establish a transparent pasting layer on the surface of the video frame corresponding to the current modification marking layer;
最后,将当前修改标示层粘贴在透明粘贴层上,完成对一个视频帧的基于处理类型的修改标记,而对其他视频帧进行的基于处理类型的修改标记也可以按照上述方法进行同时或者顺次处理。Finally, the current modification marking layer is pasted on the transparent pasting layer to complete the modification marking based on the processing type of a video frame, and the modification marking based on the processing type of other video frames can also be processed simultaneously or sequentially according to the above method.
需要说明的是,透明粘贴层可以被理解为是与视频帧的尺寸相同的透明层面,由于其通体透明,因此在视频帧的表面上建立透明粘贴层不会对视频帧的视频帧内容进行内容干涉,并且通过透明粘贴层的设置,能够保证当前修改标示层与视频帧之间不是直接接触,也能够防止当前修改标示层中的内容对视频帧的视频帧内容进行内容干涉,提高了对视频帧内容的保护性。It should be noted that the transparent sticky layer can be understood as a transparent layer of the same size as the video frame. Since it is transparent throughout, establishing a transparent sticky layer on the surface of the video frame will not interfere with the video frame content of the video frame. In addition, through the setting of the transparent sticky layer, it can be ensured that there is no direct contact between the current modification marking layer and the video frame, and it can also prevent the content in the current modification marking layer from interfering with the video frame content of the video frame, thereby improving the protection of the video frame content.
更进一步的,在本实施例中,上述的多级别用户端的数据融合方法,还包括以下步骤:Furthermore, in this embodiment, the above-mentioned multi-level user terminal data fusion method further includes the following steps:
在所述当前修改标示层生成颜色区域;Generate a color area in the current modification marking layer;
调取颜色对比表,其中,颜色对比表中包括不同处理类型以及与不同处理类型一一对应的标记颜色;Retrieving a color comparison table, wherein the color comparison table includes different processing types and marking colors corresponding to the different processing types;
遍历所述颜色对比表,确定与所述处理类型对应的标记颜色,并对所述颜色区域进行标记颜色的填充;Traversing the color comparison table, determining the marking color corresponding to the processing type, and filling the color area with the marking color;
分别在每一视频帧的边缘处建立透明的边缘包围区域;Establishing transparent edge enclosing areas at the edges of each video frame respectively;
当同一视频帧包括的当前修改标示层的数量为一时,对该视频帧的边缘包围区域进行对应标记颜色的填充;When the number of currently modified marking layers included in the same video frame is one, the edge enclosed area of the video frame is filled with the corresponding marking color;
当同一视频帧包括的当前修改标示层的数量大于一时,对该视频帧的边缘包围区域进行与当前修改标示层的数量相同的各子区域的划分,并对各子区域分别进行对应不同标示颜色的填充。When the number of current modification marking layers included in the same video frame is greater than one, the edge enclosing area of the video frame is divided into sub-areas equal in number to the number of current modification marking layers, and each sub-area is filled with a corresponding different marking color.
例如,在本实施例中,为了提高对当前修改标示层中的处理类型的标示性,因此可以在当前修改标示层中生成颜色区域,并调取颜色对比表,其中,颜色对比表中包括不同处理类型以及与不同处理类型一一对应的标记颜色,通过遍历颜色对比表,来确定与当前修改标示层中的处理类型对应的标记颜色,并基于标记颜色实现对颜色区域的填充,从而基于当前修改标示层通过颜色来标示出对应的处理类型的种类;进一步的,还可以基于视频帧来对当前修改标示层中的处理类型进行标示,例如可以分别在每一视频帧的边缘出建立透明的边缘包围区域,并基于标记颜色来对边缘包围区域进行颜色的填充,从而实现了可以分别基于视频帧以及当前修改标示层来对对应的处理类型进行标示,提高了相应的展示效果。For example, in this embodiment, in order to improve the identification of the processing type in the current modification marking layer, a color area can be generated in the current modification marking layer, and a color comparison table can be called, wherein the color comparison table includes different processing types and marking colors corresponding to different processing types. By traversing the color comparison table, the marking color corresponding to the processing type in the current modification marking layer is determined, and the color area is filled based on the marking color, thereby marking the type of the corresponding processing type by color based on the current modification marking layer; further, the processing type in the current modification marking layer can also be marked based on the video frame, for example, a transparent edge enclosing area can be established at the edge of each video frame, and the edge enclosing area can be filled with color based on the marking color, thereby achieving the corresponding processing type can be marked based on the video frame and the current modification marking layer, thereby improving the corresponding display effect.
需要说明的是,由于同一帧视频帧中可能包括一个或者多个不同的修改类型,因此,当同一视频帧包括的当前修改标示层的数量为一时,则可以对该视频帧的边缘包围区域进行对应标记颜色的填充;而当同一视频帧包括的当前修改标示层的数量大于一时,则需要先对该视频帧的边缘包围区域进行与当前修改标示层的数量相同的各子区域的划分,并对各子区域分别进行对应不同标示颜色的填充,从而保证每个修改类型都会基于对应的标记颜色进行基于视频帧的标记,从而提高相应的标示性,例如,当某一帧视频帧中包括3个当前修改标示层时,且分别对应的标示颜色为红色、绿色以及蓝色,这时,就需要将该视频帧的边缘包围区域分为3个子区域,并对3个子区域分别填充为红色、绿色以及蓝色。It should be noted that, since the same video frame may include one or more different modification types, when the number of current modification marking layers included in the same video frame is one, the edge enclosing area of the video frame can be filled with the corresponding marking color; when the number of current modification marking layers included in the same video frame is greater than one, it is necessary to first divide the edge enclosing area of the video frame into sub-areas equal to the number of current modification marking layers, and fill each sub-area with a corresponding different marking color, so as to ensure that each modification type will be marked based on the video frame based on the corresponding marking color, thereby improving the corresponding marking. For example, when a certain video frame includes 3 current modification marking layers, and the corresponding marking colors are red, green and blue, then it is necessary to divide the edge enclosing area of the video frame into 3 sub-areas, and fill the 3 sub-areas with red, green and blue respectively.
在步骤S102中,包括以下内容:基于不同处理类型与不同处理权限的一一对应关系,将所述待处理视频分发至对应的各用户端,所述各用户端基于其具备的不同处理权限分别对所述待处理视频的视频帧进行基于对应的处理类型的修改操作,得到与各用户端分别对应的各已处理视频。In step S102, the following contents are included: based on the one-to-one correspondence between different processing types and different processing permissions, the video to be processed is distributed to the corresponding user terminals, and each user terminal performs a modification operation based on the corresponding processing type on the video frame of the video to be processed based on the different processing permissions it possesses, to obtain processed videos corresponding to each user terminal.
例如,在本实施例中,完成了对待处理视频的每一帧视频帧的修改标记后,可以基于不同处理类型与不同处理权限的一一对应关系,将待处理视频分发至对应的用户端,需要说明的是,用户端可以被理解为具有数据处理功能的终端设备,并且每个不同的用户端均具备有不同的处理权限,而不同处理权限则对应不同的处理类型,例如,当处理类型包括基于图像规格进行处理、基于原始内容进行处理以及基于附加内容进行处理这三种时,可以将待视频处理发给分别对应第一权限、第二权限以及第三权限的三个用户端来进行处理,其中,第一权限对应基于图像规格进行处理的处理类型,第二权限对应基于原始内容进行处理的处理类型,第三权限则对应基于附加内容进行处理的处理类型;For example, in this embodiment, after completing the modification marking of each frame of the video to be processed, the video to be processed can be distributed to the corresponding user terminal based on the one-to-one correspondence between different processing types and different processing permissions. It should be noted that the user terminal can be understood as a terminal device with a data processing function, and each different user terminal has different processing permissions, and different processing permissions correspond to different processing types. For example, when the processing types include processing based on image specifications, processing based on original content, and processing based on additional content, the video processing can be sent to three user terminals corresponding to the first permission, the second permission, and the third permission for processing, wherein the first permission corresponds to the processing type based on image specifications, the second permission corresponds to the processing type based on original content, and the third permission corresponds to the processing type based on additional content.
各用户端接分别接收到同样的待处理视频后,可以分别基于其对应的处理权限来对待处理视频的视频帧进行基于对应的处理类型的修改操作,例如,当待处理视频中处于某一帧序下的视频帧包括两个当前修改标示层,且两个当前修改标示层分别为基于图像规格进行处理以及基于原始内容进行处理这两种处理类型时,则具有第一权限的用户端以及具有第二权限的用户端则可以对该视频帧进行对应的修改操作,而具有第三权限的用户端则无法对该视频帧进行任何修改操作,通过上述分配方式,能够使不同的用户端基于不同的处理类型进行修改操作,从而提高了相应的工作效率;并且,还可以根据每个用户的操作熟练度来对与其对应的用户端设置相应的权限,例如,A用户擅长与基于图像规格进行处理对应的修改操作,B用户擅长与基于原始内容进行处理对应的修改操作,C用户擅长与基于附加内容进行处理对应的修改操作,这时,便可以对A用户对应的用户端进行第一权限的设置,对B用户对应的用户端进行第二权限的设置,并对C用户对应的用户端进行第三权限的设置,从而能够进一步的提高相应的工作效率,并且也能够相应的提高用户的工作积极性。After each user terminal receives the same video to be processed, it can perform modification operations based on the corresponding processing type on the video frame of the video to be processed based on its corresponding processing authority. For example, when a video frame in a certain frame sequence in the video to be processed includes two current modification marking layers, and the two current modification marking layers are respectively the two processing types of processing based on image specifications and processing based on original content, then the user terminal with the first authority and the user terminal with the second authority can perform corresponding modification operations on the video frame, while the user terminal with the third authority cannot perform any modification operations on the video frame. Through the above allocation method, different user terminals can modify the video frame based on different processing types. Modification operations can be performed, thereby improving the corresponding work efficiency; and corresponding permissions can be set for the corresponding user terminals according to the operation proficiency of each user. For example, user A is good at modification operations corresponding to processing based on image specifications, user B is good at modification operations corresponding to processing based on original content, and user C is good at modification operations corresponding to processing based on additional content. At this time, the first permission can be set for the user terminal corresponding to user A, the second permission can be set for the user terminal corresponding to user B, and the third permission can be set for the user terminal corresponding to user C, thereby further improving the corresponding work efficiency and the work enthusiasm of users accordingly.
当所有用户端均分别完成对待处理视频的修改操作后,服务器可基于各用户端得到对应的各已处理视频,从而便于进一步的处理工作。When all the client terminals have respectively completed the modification operation on the to-be-processed video, the server can obtain the corresponding processed videos based on each client terminal, thereby facilitating further processing.
进一步的,在本实施例中,各用户端中的每一组包括相同数量的处理子端,上述的“将所述待处理视频分发至对应的各用户端”,之后还可以包括以下步骤:Furthermore, in this embodiment, each group of the user terminals includes the same number of processing sub-terminals, and the above-mentioned "distributing the to-be-processed video to the corresponding user terminals" may further include the following steps:
确定所述待处理视频中对应每个用户端的当前修改标示层的处理数量,并基于每个用户端分别对应的处理数量确定与每个用户端分别对应的处理占比;Determine the processing quantity of the current modification indication layer corresponding to each user terminal in the to-be-processed video, and determine the processing proportion corresponding to each user terminal based on the processing quantity corresponding to each user terminal;
基于每个用户端分别对应的处理占比,对每个用户端进行对应处理子端的数量增减。Based on the processing proportion corresponding to each user terminal, the number of corresponding processing sub-terminals for each user terminal is increased or decreased.
例如,在本实施例中,为了更进一步提高工作效率,可以以组的形式来对各用户端进行划分,也即各用户端均为独立的一个组,且各用户端的每一组均包括有预先设置的相同数量的处理子端,在这里,与用户端相同的是,处理子端也可以被理解为是例如手机、电脑、头显等具备数据处理功能的终端,并且每一用户端对应一个用户组,而一个处理子端也即对应一个用户,通过增加相应的用户数量,可以使每一组用户端对同一个待视频处理进行共同的修改操作,从而大幅度的降低工作时间,提高相应的处理效果。For example, in this embodiment, in order to further improve work efficiency, each user terminal can be divided into groups, that is, each user terminal is an independent group, and each group of each user terminal includes a preset same number of processing sub-terminals. Here, the processing sub-terminal, like the user terminal, can also be understood as a terminal with data processing functions such as a mobile phone, a computer, a head display, etc., and each user terminal corresponds to a user group, and a processing sub-terminal corresponds to a user. By increasing the corresponding number of users, each group of user terminals can perform a common modification operation on the same video to be processed, thereby greatly reducing the working time and improving the corresponding processing effect.
需要说明的是,由于同一待处理视频中对应各用户端的当前修改标示层的处理数量不同,从而可能会导致各用户端对同一待处理视频的处理时间也不同,例如,对应基于图像规格进行处理的处理类型的视频帧有10帧,对应基于原始内容进行处理的处理类型的视频帧有20帧,对应基于附加内容进行处理的处理类型的视频帧有30帧,假设基于不同处理类型进行的修改操作所需要的时间相同,那么以相同数量处理子端的三组用户端同时对该待处理视频进行修改操作的话,对应的处理时间的比值应该为1:2:3,而为了保证各用户端同时或近似于同时完成对同一待处理视频的修改操作,并且保证各用户端的工作量均相同,因此需要根据修改数量的不同来对各用户端的处理子端的数量进行调整,调整的方式包括:基于各用户端分别对应的修改数量确定每个用户端分别对应的处理占比,然后基于该处理占比来对各用户端的处理子端的数量进行增减,从而保证各用户端所对应的工作量相同,提高了工作效率的同时也能够缩减整体的处理时间。It should be noted that, since the number of processing of the current modification indication layer corresponding to each user terminal in the same video to be processed is different, the processing time of each user terminal for the same video to be processed may also be different. For example, there are 10 video frames corresponding to the processing type based on image specifications, 20 video frames corresponding to the processing type based on original content, and 30 video frames corresponding to the processing type based on additional content. Assuming that the time required for modification operations based on different processing types is the same, then if three groups of user terminals with the same number of processing sub-terminals perform modification operations on the video to be processed at the same time, the corresponding processing time ratio should be 1:2:3. In order to ensure that each user terminal completes the modification operation on the same video to be processed at the same time or approximately at the same time, and to ensure that the workload of each user terminal is the same, it is necessary to adjust the number of processing sub-terminals of each user terminal according to the different modification numbers. The adjustment method includes: determining the processing proportion corresponding to each user terminal based on the modification number corresponding to each user terminal, and then increasing or decreasing the number of processing sub-terminals of each user terminal based on the processing proportion, so as to ensure that the workload corresponding to each user terminal is the same, improve work efficiency and reduce the overall processing time.
进一步的,在本实施例中,上述的“所述各用户端基于其具备的不同处理权限分别对所述待处理视频的视频帧进行基于对应的处理类型的修改操作”,还可以包括以下步骤:Furthermore, in this embodiment, the above-mentioned “each user terminal performs a modification operation based on a corresponding processing type on the video frame of the to-be-processed video based on the different processing permissions it possesses” may also include the following steps:
响应于各用户端接收到待处理视频后发送的处理信号,调取与各用户端具备的不同处理权限分别对应的各操作插件,并将各操作插件分别发送至各用户端;In response to the processing signal sent by each user terminal after receiving the video to be processed, calling each operation plug-in corresponding to the different processing permissions possessed by each user terminal, and sending each operation plug-in to each user terminal;
各用户端分别响应于对与其对应的操作插件的使用,根据所述待处理视频的视频帧中的当前修改标示层对视频帧进行基于对应的处理类型的修改操作;Each user terminal respectively responds to the use of the corresponding operation plug-in, and performs a modification operation based on the corresponding processing type on the video frame according to the current modification indication layer in the video frame of the video to be processed;
响应于用户端对修改操作的完成,在与所述修改操作对应的视频帧中的当前修改标示层中生成操作区域,并在所述操作区域中添加与所述修改操作对应的操作说明。In response to the user terminal completing the modification operation, an operation area is generated in the current modification indication layer in the video frame corresponding to the modification operation, and an operation description corresponding to the modification operation is added to the operation area.
例如,在本实施例中,当各用户端接收到待处理视频后并做好相应的处理准备后,各用户端可以向服务器发送处理信号,服务器站在接收到处理信号后,根据各用户端具备的不同处理权限,调取对应的各操作插件,并将各操作插件分别发送至用户端,例如,对应第一权限的操作插件为图像规格处理插件,对应第二权限的操作插件为原始内容处理插件,对应第三权限的操作插件为附加内容处理插件,各用户端可以根据每一视频帧中的当前修改标示层来获取对应的处理类型,并使用对应的各操作插件来进行对应的处理类型的修改操作;而在完成修改操作后,还会在对应的当前修改标示层中生成对应的操作区域,并在操作区域中添加与该用户端进行的修改操作的操作说明。也即实现了对用户端的修改操作的记录,方便后续针对历史数据的查询时,能够了解每个用户端完成的修改操作。For example, in this embodiment, after each user terminal receives the video to be processed and makes corresponding processing preparations, each user terminal can send a processing signal to the server. After receiving the processing signal, the server station retrieves the corresponding operation plug-ins according to the different processing permissions of each user terminal, and sends each operation plug-in to the user terminal respectively. For example, the operation plug-in corresponding to the first permission is an image specification processing plug-in, the operation plug-in corresponding to the second permission is an original content processing plug-in, and the operation plug-in corresponding to the third permission is an additional content processing plug-in. Each user terminal can obtain the corresponding processing type according to the current modification indication layer in each video frame, and use the corresponding operation plug-in to perform the modification operation of the corresponding processing type; and after completing the modification operation, a corresponding operation area will be generated in the corresponding current modification indication layer, and an operation description of the modification operation performed by the user terminal will be added in the operation area. That is, the modification operation of the user terminal is recorded, which is convenient for subsequent query of historical data, so that the modification operation completed by each user terminal can be understood.
在这里,操作说明可以为对修改操作的进一步说明,例如,当某一用户端使用原始内容处理插件对某一视频帧进行修改操作时,将该视频帧中的原始图像更换成了另一图像,这时,则可以生成基于完整更换过程的操作说明。Here, the operation instructions can be a further description of the modification operation. For example, when a user terminal uses the original content processing plug-in to modify a video frame, the original image in the video frame is replaced with another image. At this time, an operation instruction based on the complete replacement process can be generated.
更进一步的,在本实施例中,所述修改操作至少包括图像规格修改,上述的“根据所述待处理视频的视频帧中的当前修改标示层对视频帧进行基于对应的处理类型的修改操作”,还可以包括以下步骤:Furthermore, in this embodiment, the modification operation at least includes image specification modification, and the above-mentioned "performing a modification operation based on the corresponding processing type on the video frame according to the current modification indication layer in the video frame of the video to be processed" may also include the following steps:
基于当前修改标示层确定修改内容,并基于修改内容确定预设倍数以及修改基准点;Determine the modification content based on the current modification marking layer, and determine the preset multiple and the modification reference point based on the modification content;
在所述视频帧的原始框架内基于所述修改基准点对所述视频帧进行预设倍数的修改。The video frame is modified by a preset multiple based on the modification reference point within the original frame of the video frame.
例如,在本实施例中,当用户端对于视频帧的修改操作为图像规格修改时,首先,用户端可以基于该视频帧中的当前修改标示层来确定修改内容,其中,修改内容可以包括预设倍数(例如为0.5或者2)以及修改基准点;接着,用户端便可在视频帧中找到修改基准点所在位置,并基于该修改基准点对视频帧进行预设倍数的修改,从而完成针对视频帧的图像规格修改;需要说明的是,在进行图像规格修改时,视频帧的尺寸始终保持不变,但视频帧的视频帧内容会相应进行预设倍数的修改,也即,当视频帧的视频帧内容被进行修改后,视频帧内容的尺寸会大于视频帧的尺寸,这时则会基于修改基准点对视频帧内容进行相应的尺寸裁剪,从而保证裁剪后的视频帧内容的尺寸与视频帧的尺寸保持一致。For example, in this embodiment, when the user terminal's modification operation on the video frame is to modify the image specifications, first, the user terminal can determine the modification content based on the current modification marking layer in the video frame, wherein the modification content may include a preset multiple (for example, 0.5 or 2) and a modification reference point; then, the user terminal can find the location of the modification reference point in the video frame, and modify the video frame by a preset multiple based on the modification reference point, thereby completing the image specification modification of the video frame; it should be noted that when the image specification is modified, the size of the video frame remains unchanged, but the video frame content of the video frame will be modified accordingly by a preset multiple, that is, when the video frame content of the video frame is modified, the size of the video frame content will be larger than the size of the video frame, and at this time, the video frame content will be cropped accordingly based on the modification reference point, thereby ensuring that the size of the cropped video frame content is consistent with the size of the video frame.
同样的是,所述修改操作至少包括原始内容修改,上述的“根据所述待处理视频的视频帧中的当前修改标示层对视频帧进行基于对应的处理类型的修改操作”,还可以包括以下步骤:Similarly, the modification operation at least includes modification of the original content. The above-mentioned “performing a modification operation based on the corresponding processing type on the video frame according to the current modification indication layer in the video frame of the video to be processed” may also include the following steps:
基于当前修改标示层确定修改内容,并基于修改内容确定修改范围以及修改图像;Determine the modification content based on the current modification marking layer, and determine the modification range and the modified image based on the modification content;
在所述视频帧的原始框架内基于所述修改范围确定目标区域,并将目标区域进行裁剪,得到空白区域;Determine a target area within the original frame of the video frame based on the modification range, and crop the target area to obtain a blank area;
将所述修改图像填充至所述空白区域。The blank area is filled with the modified image.
例如,在本实施例中,当用户端对于视频帧的修改操作为原始内容修改时,首先,用户端可以基于该视频中的当前修改标示层来确定修改内容,其中,修改内容可以包括修改范围以及修改图像,修改范围可以被理解为对该视频帧进行修改所涉及的范围,修改图像可以被理解为对该视频帧进行修改所涉及的图像内容;接着,用户端可以在视频帧的原始框架内基于该修改范围确定目标区域,并将目标区域进行裁剪,得到空白区域;最后,用户端便可以将修改图像填充到空白区域中,从而完成针对视频帧的原始内容修改;需要说明的是,在进行原始内容修改时,修改图像的尺寸与修改范围的尺寸应当一致,从而能够保证修改后的视频帧的内容具有完整性。For example, in this embodiment, when the user terminal's modification operation on the video frame is to modify the original content, first, the user terminal can determine the modification content based on the current modification marking layer in the video, wherein the modification content may include a modification range and a modified image, and the modification range may be understood as the range involved in modifying the video frame, and the modified image may be understood as the image content involved in modifying the video frame; then, the user terminal can determine the target area based on the modification range within the original frame of the video frame, and crop the target area to obtain a blank area; finally, the user terminal can fill the modified image into the blank area, thereby completing the modification of the original content of the video frame; it should be noted that when modifying the original content, the size of the modified image should be consistent with the size of the modification range, so as to ensure the integrity of the content of the modified video frame.
同样的是,所述修改操作至少包括附加内容修改,上述的“根据所述待处理视频的视频帧中的当前修改标示层对视频帧进行基于对应的处理类型的修改操作”,还可以包括以下步骤:Similarly, the modification operation at least includes additional content modification, and the above-mentioned "performing a modification operation based on the corresponding processing type on the video frame according to the current modification indication layer in the video frame of the video to be processed" may also include the following steps:
基于当前修改标示层确定修改内容,并基于修改内容确定附加内容以及附加区域;Determine the modified content based on the current modified marking layer, and determine the additional content and the additional area based on the modified content;
在所述视频帧的原始框架内基于所述附加区域建立透明添加图层,并将所述附加内容添加至所述透明添加图层。A transparent additional layer is established based on the additional area within the original frame of the video frame, and the additional content is added to the transparent additional layer.
例如,在本实施例中,当用户端对于视频帧的修改操作为附加内容修改时,首先,用户端可以基于该视频中的当前修改标示层来确定修改内容,其中,修改内容可以包括附加内容以及附加区域;接着,用户端可以在视频帧的原始框架内找到与附加区域对应的区域并在该区域建立透明添加图层;最后,用户端并可将附加内容添加至透明添加图层中,从而完成基于附加内容修改的修改操作。For example, in this embodiment, when the user terminal's modification operation on the video frame is additional content modification, first, the user terminal can determine the modification content based on the current modification indication layer in the video, where the modification content may include additional content and additional area; then, the user terminal can find the area corresponding to the additional area in the original frame of the video frame and establish a transparent additional layer in the area; finally, the user terminal can add the additional content to the transparent additional layer, thereby completing the modification operation based on the additional content modification.
在步骤S103中,包括以下内容:基于各已处理视频确定帧序相同的各视频帧包括的所有修改操作,并基于预设排序规则对所有修改操作进行排序。In step S103, the following contents are included: based on each processed video, all modification operations included in each video frame with the same frame sequence are determined, and all modification operations are sorted based on a preset sorting rule.
由上述内容可知,具有不同处理权限的各用户端会分别获取相同的待处理视频进行相应的修改操作,从而得到与各用户端分别对应的各已处理视频,也即,各已处理视频中包括数量相同的视频帧,因此,可以基于各已处理视频确定位于同一帧序下的各视频帧包括的所有修改操作,并基于预设排序规则对所有修改操作进行排序;例如,已处理视频包括有三个,第一个已处理视频中的帧序为一的视频帧包括的修改操作为图像规格修改,第二个已处理视频中的帧序为一的视频帧包括的修改操作为原始内容修改,第三个已处理视频中的帧序为一的视频帧包括的修改操作为附加内容修改,这时则可以基于预设排序规则对这三个修改操作进行相应的排序。It can be seen from the above content that each user terminal with different processing permissions will respectively obtain the same video to be processed and perform corresponding modification operations, thereby obtaining each processed video corresponding to each user terminal, that is, each processed video includes the same number of video frames. Therefore, all modification operations included in each video frame in the same frame sequence can be determined based on each processed video, and all modification operations can be sorted based on a preset sorting rule; for example, the processed videos include three, the modification operation included in the video frame with a frame sequence of one in the first processed video is image specification modification, the modification operation included in the video frame with a frame sequence of one in the second processed video is original content modification, and the modification operation included in the video frame with a frame sequence of one in the third processed video is additional content modification. At this time, the three modification operations can be sorted accordingly based on the preset sorting rule.
进一步的,在本实施例中,以图像规格修改、原始内容修改、附加内容修改的排序作为预设排序规则,上述的“基于各已处理视频确定帧序相同的各视频帧包括的所有修改操作,并基于预设排序规则对所有修改操作进行排序”,还可以包括以下步骤:Furthermore, in this embodiment, the order of image specification modification, original content modification, and additional content modification is used as a preset ordering rule, and the above-mentioned "determining all modification operations included in each video frame with the same frame sequence based on each processed video, and ordering all modification operations based on the preset ordering rule" may also include the following steps:
获取各已处理视频中处于同一帧序下的各视频帧,并确定每一帧序对应的各视频帧包括的所有修改操作;Obtaining each video frame in the same frame sequence in each processed video, and determining all modification operations included in each video frame corresponding to each frame sequence;
将所有修改操作按照预设排序规则进行排序。Sort all modification operations according to the preset sorting rules.
例如,在本实施例中,当已处理视频包括有三个,且第一个已处理视频中的帧序为一的视频帧包括的修改操作为图像规格修改、第二个已处理视频中的帧序为一的视频帧包括的修改操作为原始内容修改、第三个已处理视频中的帧序为一的视频帧包括的修改操作为附加内容修改,这时则可以基于预设排序规则对这三个修改操作进行相应的排序,也即,图像规格修改位于第一位、原始内容修改位于第二位、附加内容修改位于第三位。For example, in this embodiment, when there are three processed videos, and the modification operation included in the video frame with a frame order of one in the first processed video is image specification modification, the modification operation included in the video frame with a frame order of one in the second processed video is original content modification, and the modification operation included in the video frame with a frame order of one in the third processed video is additional content modification, then the three modification operations can be sorted accordingly based on the preset sorting rules, that is, the image specification modification is in the first place, the original content modification is in the second place, and the additional content modification is in the third place.
在步骤S104中,包括以下内容:将指示排序最高的修改操作对应的视频帧作为基底图像,并基于所述基底图层以逐序降低的方式逐个进行其他修改操作,得到融合视频帧。In step S104, the following contents are included: the video frame corresponding to the modification operation with the highest indication ranking is used as the base image, and other modification operations are performed one by one in a descending order based on the base layer to obtain a fused video frame.
例如,在本实施例中,各不同的修改操作对视频帧的视频帧内容的影响程度均不相同,例如,对于图像规格修改来说,由于其需要对视频帧内容的图像规格进行修改,因此图像规格修改的影响程度是最大的;对于原始内容修改来说,由于其需要对视频帧内容的原始内容进行修改,因此原始内容修改的影响程度是较小的,而对于附加内容修改来说,由于其主要是对视频帧内容进行附加内容的添加,因此附加内容修改的影响程度是最小的;基于以上对于各不同修改操作的影响程度的判断,可以将各不同修改操作进行相应的处理优先级的排序,并将排序最高的修改操作对应的视频帧作为基底图像,并基于该基底图像按照排序逐个的进行其他修改操作,从而得到对应的融合视频帧,相比于现有技术中的将多个视频帧进行融合的融合方式来说,降低了相应的图像处理量,提高了相应的处理效率以及处理效果。For example, in the present embodiment, the influence of different modification operations on the video frame content of the video frame is different. For example, for image specification modification, since it is necessary to modify the image specifications of the video frame content, the influence of image specification modification is the greatest; for original content modification, since it is necessary to modify the original content of the video frame content, the influence of original content modification is smaller; and for additional content modification, since it is mainly to add additional content to the video frame content, the influence of additional content modification is the smallest; based on the above judgment on the influence of different modification operations, different modification operations can be sorted according to corresponding processing priorities, and the video frame corresponding to the highest-ranked modification operation is used as the base image, and other modification operations are performed one by one according to the sorting based on the base image, so as to obtain the corresponding fused video frame. Compared with the fusion method of fusing multiple video frames in the prior art, the corresponding image processing amount is reduced, and the corresponding processing efficiency and processing effect are improved.
进一步的,在本实施例中,上述的“将指示排序最高的修改操作对应的视频帧作为基底图像,并基于所述基底图层以逐序降低的方式逐个进行其他修改操作,得到融合视频帧”,还可以包括以下步骤:Furthermore, in this embodiment, the above-mentioned “using the video frame corresponding to the modification operation indicating the highest ranking as the base image, and performing other modification operations one by one in a descending order based on the base layer to obtain a fused video frame” may also include the following steps:
当处于同一帧序下的各视频帧对应的修改操作至少包括图像规格修改以及原始内容修改时,将所述图像规格修改对应的视频帧作为基底图像;When the modification operations corresponding to the video frames in the same frame sequence include at least image specification modification and original content modification, the video frames corresponding to the image specification modification are used as base images;
基于所述图像规格修改确定修改基准点以及预设倍数,并基于所述基底图像建立以所述修改基准点为中心的基底坐标系;Determine a modified reference point and a preset multiple based on the image specification modification, and establish a base coordinate system centered on the modified reference point based on the base image;
基于所述原始内容修改确定修改范围,并基于对应所述原始内容修改的视频帧建立以所述修改基准点为中心的视频帧坐标系,获取位于所述修改范围边缘处的各像素点在所述视频帧坐标系中分别对应的各像素坐标点;Determine a modification range based on the original content modification, establish a video frame coordinate system centered on the modification reference point based on the video frame corresponding to the original content modification, and obtain pixel coordinate points corresponding to pixel points at the edge of the modification range in the video frame coordinate system;
基于所述预设倍数对所述各所述像素坐标点进行修改,并判断进行修改后的各像素坐标点是否位于所述基底坐标系内;Modifying each of the pixel coordinate points based on the preset multiple, and determining whether each of the pixel coordinate points after modification is located in the base coordinate system;
当修改后的各像素坐标点至少部分位于所述基底坐标系内时,确定位于所述基底坐标系内的至少部分的各像素坐标点在所述基底图像中占据的部分区域;When at least a portion of each pixel coordinate point after modification is located in the base coordinate system, determining a partial area in the base image occupied by at least a portion of each pixel coordinate point located in the base coordinate system;
基于所述原始内容修改确定修改图像,并确定位于所述基底坐标系内的至少部分的各像素点坐标点对应的部分图像;Modify and determine a modified image based on the original content, and determine a portion of the image corresponding to at least a portion of the coordinate points of each pixel point located in the base coordinate system;
将所述部分区域进行裁剪,并将所述部分图像进行填充,得到融合视频帧。The partial area is cropped and the partial image is filled to obtain a fused video frame.
例如,在本实施例中,通过上述内容可知,在预设排序规则中,图像规格修改的排序是最高的,也即其对视频帧内容的影响程度是最大的,因此,当处于同一帧序下的各视频帧对应的修改操作至少包括图像规格修改以及原始内容修改时,可以将该图像规格修改对应的视频帧作为基底图像,并进行相应的视频帧的融合,而上述的对各视频帧进行融合的过程可如下:For example, in this embodiment, it can be known from the above content that in the preset sorting rules, the image specification modification is ranked the highest, that is, its influence on the video frame content is the greatest. Therefore, when the modification operations corresponding to the video frames in the same frame sequence include at least image specification modification and original content modification, the video frame corresponding to the image specification modification can be used as the base image, and the corresponding video frames are fused. The above-mentioned process of fusing the video frames can be as follows:
首先,可以基于图像规格修改来确定修改基准点以及预设倍数,并基于该基底图像建立以修改基准点为中心的基底坐标系,需要说明的是,由上述内容可知,在进行基于图像规格修改的修改操作时,可以根据对应该视频帧的当前修改标示层来确定修改内容,而修改内容则对应包括预设倍数以及修改基准点,预设倍数可以被理解对图像进行放大或者缩小的倍数,而修改基准点则可以理解为可基于该点来进行对应的预设倍数的调整,在这里,预设倍数以及修改基准点都是可人为自行设定的;First, the modification reference point and the preset multiple can be determined based on the image specification modification, and a base coordinate system centered on the modification reference point can be established based on the base image. It should be noted that, as can be seen from the above content, when performing a modification operation based on the image specification modification, the modification content can be determined according to the current modification marking layer corresponding to the video frame, and the modification content includes the preset multiple and the modification reference point. The preset multiple can be understood as the multiple of enlarging or reducing the image, and the modification reference point can be understood as the corresponding preset multiple adjustment based on the point. Here, the preset multiple and the modification reference point can be set manually.
接着,基于原始内容修改确定修改范围,并基于与原始内容修改对应的视频帧建立以修改基准点为中心的视频帧坐标系,同时获取位于修改范围边缘处的各像素点,并确定各像素点在视频帧坐标系中分别对应的各像素坐标点,需要说明的是,由上述内容可知,在进行基于原始内容修改的修改操作时,可以根据对应该视频帧的当前修改标示层来确定修改内容,而修改内容则对应包括修改范围以及修改图像;Next, the modification range is determined based on the modification of the original content, and a video frame coordinate system centered on the modification reference point is established based on the video frame corresponding to the modification of the original content, and each pixel point located at the edge of the modification range is obtained, and each pixel coordinate point corresponding to each pixel point in the video frame coordinate system is determined. It should be noted that, from the above content, when performing a modification operation based on the modification of the original content, the modification content can be determined according to the current modification marking layer corresponding to the video frame, and the modification content correspondingly includes the modification range and the modified image;
再接着,基于预设倍数对各像素坐标点进行修改,并判断进行修改后的各像素坐标点是否位于基底坐标系内,例如,当某一像素坐标点为(1,1),预设倍数为2,则修改后的像素坐标点为(2,2);Next, each pixel coordinate point is modified based on a preset multiple, and it is determined whether each pixel coordinate point after modification is located in the base coordinate system. For example, when a pixel coordinate point is (1, 1) and the preset multiple is 2, the pixel coordinate point after modification is (2, 2).
然后,若修改后的各像素点坐标点的至少部分位于基底坐标系内,则确定位于基底坐标系内的至少部分的各像素坐标点在基底图像中占据的部分区域;Then, if at least part of the modified coordinate points of each pixel point is located in the base coordinate system, a partial area occupied by at least part of the coordinate points of each pixel point located in the base coordinate system in the base image is determined;
再然后,可基于与原始内容修改对应的视频帧确定修改图像,并在修改图像中确定位于基底坐标系内的至少部分的各像素点坐标系对应的部分图像;Then, a modified image may be determined based on the video frame corresponding to the modification of the original content, and a partial image corresponding to the coordinate system of at least a portion of each pixel point located in the base coordinate system may be determined in the modified image;
最后,在基底图像中将部分区域进行裁剪,并将部分图像进行填充,从而得到对应的融合视频帧。Finally, some areas are cropped in the base image and some images are filled to obtain the corresponding fused video frame.
同样的,与上述方案相似的是,在本实施例中,上述的“将指示排序最高的修改操作对应的视频帧作为基底图像,并基于所述基底图层以逐序降低的方式进行其他修改操作,得到融合视频帧”,还可以包括以下步骤:Similarly, similar to the above solution, in this embodiment, the above-mentioned “using the video frame corresponding to the modification operation indicating the highest ranking as the base image, and performing other modification operations in a descending order based on the base layer to obtain a fused video frame” may also include the following steps:
当处于同一帧序下的各视频帧对应的修改操作至少包括图像规格修改以及附加内容修改时,将所述图像规格修改对应的视频帧作为基底图像;When the modification operations corresponding to the video frames in the same frame sequence include at least image specification modification and additional content modification, the video frames corresponding to the image specification modification are used as base images;
基于所述附加内容修改确定附加内容以及附加区域;modifying and determining additional content and an additional area based on the additional content;
在所述基底图像的基底框架内基于所述附加区域建立透明添加图层,并将所述附加内容添加至所述透明添加图层;Establishing a transparent additional layer based on the additional area within the base frame of the base image, and adding the additional content to the transparent additional layer;
获取位于所述附加内容的边缘处的各边缘像素点分别对应的各第一像素值;Obtaining first pixel values corresponding to edge pixel points located at the edge of the additional content;
获取在所述基底图像中分别与各边缘像素点相邻的各基底像素点分别对应的各第二像素值;Acquire second pixel values respectively corresponding to base pixel points respectively adjacent to edge pixel points in the base image;
计算所述第一像素值与所述第二像素值之间的绝对差值;Calculating an absolute difference between the first pixel value and the second pixel value;
当所述绝对差值小于预设阈值时,将该第一像素值对应的边缘像素点配置为第三像素值。When the absolute difference is less than a preset threshold, the edge pixel point corresponding to the first pixel value is configured as a third pixel value.
例如,在本实施例中,通过上述内容可知,在预设排序规则中,图像规格修改的排序是最高的,也即其对视频帧内容的影响程度是最大的,因此,当处于同一帧序下的各视频帧对应的修改操作至少包括图像规格修改以及附加内容修改时,可以将该图像规格修改对应的视频帧作为基底图像,并进行相应的视频帧的融合,而上述的对各视频帧进行融合的过程可如下:For example, in this embodiment, it can be known from the above content that in the preset sorting rules, the image specification modification is ranked the highest, that is, its influence on the video frame content is the greatest. Therefore, when the modification operations corresponding to the video frames in the same frame sequence include at least image specification modification and additional content modification, the video frame corresponding to the image specification modification can be used as the base image, and the corresponding video frames are fused. The above-mentioned process of fusing the video frames can be as follows:
首先,可以基于附加内容修改来确定附加内容以及附加区域;First, additional content and additional area may be determined based on the additional content modification;
接着,在基底图像的基底框架内基于附加区域建立透明添加图层,并进一步的将该附加内容添加至透明添加图层中;Next, a transparent additional layer is established based on the additional area within the base frame of the base image, and the additional content is further added to the transparent additional layer;
再接着,获取位于附加内容的边缘处的各边缘像素点分别对应的各第一像素值,并获取基底图像中与各边缘像素点相邻的各基底像素点分别对应的各第二像素值;Next, first pixel values corresponding to edge pixel points located at the edge of the additional content are obtained, and second pixel values corresponding to base pixel points adjacent to the edge pixel points in the base image are obtained;
最后,通过将第一像素值以及第二像素值进行差值计算,得到对应的绝对差值,并在当绝对差值小于预设阈值时,将第一像素值对应的边缘像素点配置子为第三像素值。Finally, the first pixel value and the second pixel value are difference-calculated to obtain the corresponding absolute difference, and when the absolute difference is less than a preset threshold, the edge pixel point corresponding to the first pixel value is configured as the third pixel value.
在这里,绝对差值可以为理解为差值的绝对值,例如,当差值为-1时,绝对差值则为1,可以说明的是,由于在上述的技术方案中,附加内容是添加在基底图像上的,因此,若附加内容的边缘像素点与相邻的基底像素点的数值较为相近时,则表明二者分别对应的色彩较为相近,可能无法对二者进行明显的视觉上的区分,因此,可预先设置对应的预设阈值,并将对应边缘像素点的第一像素值与对应基底像素点的第二像素值进行差值计算得到的绝对差值与预设阈值进行比较,当小于预设阈值时,则表明二者对应的色彩较为相近,这时,则需要将对应的边缘像素点设置为第三像素值,从而保证二者之间的色彩具有明显的区别性,进而提高了相应的视频展示效果。Here, the absolute difference can be understood as the absolute value of the difference. For example, when the difference is -1, the absolute difference is 1. It can be explained that, since in the above technical solution, the additional content is added to the base image, if the edge pixel points of the additional content are close to the values of the adjacent base pixel points, it means that the colors corresponding to the two are close, and it may not be possible to make a clear visual distinction between the two. Therefore, the corresponding preset threshold can be set in advance, and the absolute difference obtained by performing the difference calculation between the first pixel value of the corresponding edge pixel point and the second pixel value of the corresponding base pixel point is compared with the preset threshold. When it is less than the preset threshold, it means that the corresponding colors of the two are close. At this time, the corresponding edge pixel point needs to be set to the third pixel value to ensure that the colors between the two are clearly distinguishable, thereby improving the corresponding video display effect.
需要说明的是,上述的预设阈值可以根据需要进行进行设定,例如可以设置为90-140之间,从而能够保证二者具有明显的色彩区别性。It should be noted that the above-mentioned preset threshold can be set as needed, for example, it can be set to between 90-140, so as to ensure that the two have obvious color distinction.
在S105中,包括以下内容:将所有融合视频帧按照帧序进行合并,得到融合视频。In S105, the following contents are included: all fused video frames are merged in frame order to obtain a fused video.
例如,在本实施例中,根据前述的技术方案在完成了对所有的融合视频帧的获取后,可以将所有融合视频帧按照帧序进行合并,从而得到对应的融合视频。For example, in this embodiment, after all fused video frames are acquired according to the aforementioned technical solution, all fused video frames may be merged in frame order to obtain a corresponding fused video.
根据本实施例的方案,首先可以针对需要进行处理的待处理视频进行每一视频帧的基于处理类型的修改标记。然后将待处理视频分发给与具备不同处理权限的用户端,这样就可以使每一用户端基于其具备的不同处理权限来对分别对待处理视频进行对应处理类型的修改操作,从而得到与各用户端分别对应的各已处理视频,接着可以对各已处理视频中帧序相同的各视频帧对应的修改操作进行基于预设排序规则的排序,并将指示排序最高的修改操作对应的视频帧作为基底图像,在基底图像上仅从其他修改标记的修改操作,从而得到融合视频帧;最后将所有的融合视频帧进行合并,得到对应的融合视频,从而增加了视频处理的速度,并提高了相应的工作效率。According to the scheme of this embodiment, firstly, modification marks based on the processing type can be made for each video frame of the to-be-processed video that needs to be processed. Then, the to-be-processed video is distributed to the user terminals with different processing permissions, so that each user terminal can perform modification operations of the corresponding processing types on the to-be-processed video based on its different processing permissions, thereby obtaining each processed video corresponding to each user terminal, and then the modification operations corresponding to each video frame with the same frame sequence in each processed video can be sorted based on the preset sorting rules, and the video frame corresponding to the modification operation with the highest order is used as the base image, and only the modification operations of other modification marks are used on the base image to obtain a fused video frame; finally, all the fused video frames are merged to obtain the corresponding fused video, thereby increasing the speed of video processing and improving the corresponding work efficiency.
本发明的另一个实施例提供了一种多级别用户端的数据融合装置,图2为其对应装置框图,该系统包括:Another embodiment of the present invention provides a data fusion device for a multi-level user terminal, and FIG2 is a corresponding device block diagram thereof. The system includes:
标记模块,被配置为获取待处理视频,并根据所述待处理视频的每一视频帧的视频帧内容进行基于处理类型的修改标记;a marking module configured to obtain a video to be processed, and perform a modification mark based on a processing type according to a video frame content of each video frame of the video to be processed;
修改模块,被配置为基于不同处理类型与不同处理权限的一一对应关系,将所述待处理视频分发至对应的各用户端,所述各用户端基于其具备的不同处理权限分别对所述待处理视频的视频帧进行基于对应的处理类型的修改操作,得到与各用户端分别对应的各已处理视频;The modification module is configured to distribute the to-be-processed video to the corresponding user terminals based on a one-to-one correspondence between different processing types and different processing permissions, and each user terminal performs a modification operation based on the corresponding processing type on the video frame of the to-be-processed video based on its different processing permissions, so as to obtain processed videos corresponding to each user terminal;
排序模块,被配置为基于各已处理视频确定帧序相同的各视频帧包括的所有修改操作,并基于预设排序规则对所有修改操作进行排序;A sorting module is configured to determine all modification operations included in each video frame with the same frame sequence based on each processed video, and sort all the modification operations based on a preset sorting rule;
视频帧融合模块,被配置为将指示排序最高的修改操作对应的视频帧作为基底图像,并基于所述基底图层以逐序降低的方式进行其他修改标记对应的修改操作,得到融合视频帧;The video frame fusion module is configured to use the video frame corresponding to the modification operation with the highest indication ranking as a base image, and perform modification operations corresponding to other modification marks in a descending order based on the base layer to obtain a fused video frame;
视频融合模块,被配置为将所有融合视频帧按照帧序进行合并,得到融合视频。The video fusion module is configured to merge all fused video frames in frame order to obtain a fused video.
在此处所提供的说明书中,算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与本发明的示例一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的较佳实施方式。In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to implement the content of the present invention described herein, and the above description of specific languages is for the purpose of disclosing the preferred embodiment of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
本领域那些技术人员应当理解在本文所公开的示例中的设备的模块或单元或组件可以布置在如该实施例中所描述的设备中,或者可替换地可以定位在与该示例中的设备不同的一个或多个设备中。前述示例中的模块可以组合为一个模块或者此外可以分成多个子模块。Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device so disclosed may be combined in any combination, except that at least some of such features and/or processes or units are mutually exclusive. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
此外,所述实施例中的一些在此被描述成可以由计算机系统的处理器或者由执行所述功能的其它装置实施的方法或方法元素的组合。因此,具有用于实施所述方法或方法元素的必要指令的处理器形成用于实施该方法或方法元素的装置。此外,装置实施例的在此所述的元素是如下装置的例子:该装置用于实施由为了实施该发明的目的的元素所执行的功能。In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
如在此所使用的那样,除非另行规定,使用序数词“第一”、“第二”、“第三”等等来描述普通对象仅仅表示涉及类似对象的不同实例,并且并不意图暗示这样被描述的对象必须具有时间上、空间上、排序方面或者以任意其它方式的给定顺序。As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
尽管根据有限数量的实施例描述了本发明,但是受益于上面的描述,本技术领域内的技术人员明白,在由此描述的本发明的范围内,可以设想其它实施例。此外,应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的而非限制性的,本发明的范围由所附权利要求书限定。Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative and not restrictive with respect to the scope of the present invention, and the scope of the present invention is defined by the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410472785.6A CN118075409B (en) | 2024-04-19 | 2024-04-19 | Data fusion method and device for multi-level user terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410472785.6A CN118075409B (en) | 2024-04-19 | 2024-04-19 | Data fusion method and device for multi-level user terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN118075409A true CN118075409A (en) | 2024-05-24 |
| CN118075409B CN118075409B (en) | 2024-06-25 |
Family
ID=91104494
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410472785.6A Active CN118075409B (en) | 2024-04-19 | 2024-04-19 | Data fusion method and device for multi-level user terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118075409B (en) |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020113803A1 (en) * | 2001-02-22 | 2002-08-22 | Sony Corporation And Sony Electronics, Inc. | Collaborative computer-based production system including annotation, versioning and remote interaction |
| US20080154908A1 (en) * | 2006-12-22 | 2008-06-26 | Google Inc. | Annotation Framework for Video |
| CN102081946A (en) * | 2010-11-30 | 2011-06-01 | 上海交通大学 | On-line collaborative nolinear editing system |
| CN105743973A (en) * | 2016-01-22 | 2016-07-06 | 上海科牛信息科技有限公司 | Multi-user multi-device real-time synchronous cloud cooperation method and system |
| US20190147402A1 (en) * | 2015-11-24 | 2019-05-16 | David H. Sitrick | Systems and methods providing collaborating among a plurality of users |
| CN110035321A (en) * | 2019-04-11 | 2019-07-19 | 北京大生在线科技有限公司 | A kind of trailing and system of online real-time video |
| CN111277905A (en) * | 2020-03-09 | 2020-06-12 | 新华智云科技有限公司 | Online collaborative video editing method and device |
| CN115278306A (en) * | 2022-06-20 | 2022-11-01 | 阿里巴巴(中国)有限公司 | Video editing method and device |
| CN115525453A (en) * | 2022-01-19 | 2022-12-27 | 荣耀终端有限公司 | Multi-screen collaborative interrupt processing method and electronic equipment |
| CN117560540A (en) * | 2023-10-11 | 2024-02-13 | 中国电子科技集团公司第十五研究所 | A device for multi-terminal device screen projection and collaborative editing in a secure and confidential environment |
-
2024
- 2024-04-19 CN CN202410472785.6A patent/CN118075409B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020113803A1 (en) * | 2001-02-22 | 2002-08-22 | Sony Corporation And Sony Electronics, Inc. | Collaborative computer-based production system including annotation, versioning and remote interaction |
| US20080154908A1 (en) * | 2006-12-22 | 2008-06-26 | Google Inc. | Annotation Framework for Video |
| CN102081946A (en) * | 2010-11-30 | 2011-06-01 | 上海交通大学 | On-line collaborative nolinear editing system |
| US20190147402A1 (en) * | 2015-11-24 | 2019-05-16 | David H. Sitrick | Systems and methods providing collaborating among a plurality of users |
| CN105743973A (en) * | 2016-01-22 | 2016-07-06 | 上海科牛信息科技有限公司 | Multi-user multi-device real-time synchronous cloud cooperation method and system |
| CN110035321A (en) * | 2019-04-11 | 2019-07-19 | 北京大生在线科技有限公司 | A kind of trailing and system of online real-time video |
| CN111277905A (en) * | 2020-03-09 | 2020-06-12 | 新华智云科技有限公司 | Online collaborative video editing method and device |
| CN115525453A (en) * | 2022-01-19 | 2022-12-27 | 荣耀终端有限公司 | Multi-screen collaborative interrupt processing method and electronic equipment |
| CN115278306A (en) * | 2022-06-20 | 2022-11-01 | 阿里巴巴(中国)有限公司 | Video editing method and device |
| CN117560540A (en) * | 2023-10-11 | 2024-02-13 | 中国电子科技集团公司第十五研究所 | A device for multi-terminal device screen projection and collaborative editing in a secure and confidential environment |
Non-Patent Citations (1)
| Title |
|---|
| 温健: "基于协同工作式的小型专业视频编辑网络的开发", 广东技术师范学院学报, no. 04, 30 August 2003 (2003-08-30), pages 20 - 22 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118075409B (en) | 2024-06-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110555119B (en) | Unmanned aerial vehicle remote sensing image slicing method and system under real-time scene | |
| US9251613B2 (en) | Systems and methods for automatically applying effects based on media content characteristics | |
| JP7425788B2 (en) | Image processing methods, devices, systems, network equipment, terminals and computer programs | |
| WO2020220535A1 (en) | Data storage method, and related device | |
| JP7511026B2 (en) | Image data encoding method and device, display method and device, and electronic device | |
| CN115801978A (en) | Special effect video production method, device, electronic device and readable storage medium | |
| CN105610967A (en) | Use method of converged new media content based application cloud platform | |
| CN115914606A (en) | Video processing method, system, readable storage medium and equipment terminal | |
| CN114222188A (en) | Full-screen display method, device, device and storage medium based on rotating screen | |
| US20200226716A1 (en) | Network-based image processing apparatus and method | |
| CN112468741A (en) | Video generation method, electronic device and storage medium | |
| CN108076357B (en) | Media content pushing method, device and system | |
| US8933990B2 (en) | Method for 3D visual mapping using 3D stereoscopic video content | |
| CN118075409B (en) | Data fusion method and device for multi-level user terminal | |
| CN103607445A (en) | Internet of things-based digital media creation system and creation method | |
| CN105721440A (en) | Use method of media content business flow integrated management and control application cloud platform | |
| CN101179747A (en) | A method and device for multimedia video interception | |
| CN105743881A (en) | Media content business process integrated control application cloud platform | |
| CN114630193B (en) | Picture optimization method and system in short video | |
| WO2015010557A1 (en) | Image generating method and device | |
| CN112783325B (en) | Human-computer interaction method and system based on multi-projection system and storage medium | |
| JP6623905B2 (en) | Server device, information processing method and program | |
| CN110390087A (en) | A kind of image processing method and device applied to PowerPoint | |
| CN115037905A (en) | Screen recording file processing method, electronic equipment and related products | |
| CN115588063A (en) | Picture obtaining method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Multi-level user-side data fusion method and device Granted publication date: 20240625 Pledgee: Guiyang Rural Commercial Bank Co.,Ltd. Yunyan Branch Pledgor: Guizhou Lianguang Technology Co.,Ltd. Registration number: Y2025980029234 |
|
| PE01 | Entry into force of the registration of the contract for pledge of patent right |