WO2022002082A1 - Method and apparatus for displaying video special effect, and electronic device and storage medium - Google Patents

Method and apparatus for displaying video special effect, and electronic device and storage medium Download PDF

Info

Publication number
WO2022002082A1
WO2022002082A1 PCT/CN2021/103299 CN2021103299W WO2022002082A1 WO 2022002082 A1 WO2022002082 A1 WO 2022002082A1 CN 2021103299 W CN2021103299 W CN 2021103299W WO 2022002082 A1 WO2022002082 A1 WO 2022002082A1
Authority
WO
WIPO (PCT)
Prior art keywords
tracked
position information
frame image
key point
current frame
Prior art date
Application number
PCT/CN2021/103299
Other languages
French (fr)
Chinese (zh)
Inventor
武珊珊
肖逸
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022002082A1 publication Critical patent/WO2022002082A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present disclosure relates to a method and apparatus for displaying a video special effect, and an electronic device and a storage medium, which relate to the technical field of software applications. The method comprises: on the basis of a key point trajectory special effect opening instruction, acquiring the current frame image and a key point to be tracked in the current frame image; acquiring position information of said key point in the current frame image; generating auxiliary position information of said key point according to the position information of said key point in the current frame image and position information of said key point in the previous frame image; performing key point trajectory rendering on the current frame image according to the position information of said key point in the current frame and in each frame image before the current frame, and the auxiliary position information of said key point generated each time; and displaying the rendered current frame image. In the present disclosure, auxiliary position information is generated on the basis of a linear interpolation mode, so as to ensure that a key point trajectory is smooth and continuous, and trajectory rendering is directly performed on a key point in each frame image, thereby realizing fast rendering.

Description

视频特效的展示方法、装置、电子设备及存储介质Display method, device, electronic device and storage medium for video special effects
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开要求于2020年07月01日提交中国专利局、申请号为202010624935.2、发明名称为“视频特效的展示方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of a Chinese patent application with an application number of 202010624935.2 and an invention titled "Display method, device, electronic device and storage medium for video special effects" filed with the China Patent Office on July 1, 2020, the entire contents of which are obtained through References are incorporated in this disclosure.
技术领域technical field
本公开涉及视频处理技术领域,尤其涉及一种视频特效的展示方法、装置、电子设备及存储介质。The present disclosure relates to the technical field of video processing, and in particular, to a method, device, electronic device and storage medium for displaying video special effects.
背景技术Background technique
随着移动终端技术的迅速发展,各种功能的应用软件应运而生,从而可以为用户带来方便和娱乐。其中,游戏性特效,特别是关键点轨迹特效更是颇受用户喜爱。With the rapid development of mobile terminal technology, application software with various functions emerges as the times require, which can bring convenience and entertainment to users. Among them, the game special effects, especially the key point trajectory special effects, are very popular among users.
相关技术中,通常采用录每一帧图像中关键点的位置,将其保存到一个数组当中,并且在每一帧图像中将轨迹中的所有点渲染到画面中,进而实现关键点轨迹特效的展示。然而现有视频特效的展示方式因关键点轨迹记录不完全,导致展示出的关键点轨迹中存在间隔,同时若每一帧图像中需要渲染的关键点较多时,由于每一帧的渲染时间较长,导致无法实现快速渲染,严重影响了用户体验。因此,如何快速地为视频添加轨迹平滑且连续的关键点轨迹特效已成为亟待解决的问题。In the related art, the position of key points in each frame of image is usually recorded, saved in an array, and all points in the trajectory are rendered into the screen in each frame of image, thereby realizing the special effect of the key point trajectory. exhibit. However, the display method of the existing video special effects is not complete due to the incomplete recording of the key point trajectories, resulting in gaps in the displayed key point trajectories. At the same time, if there are many key points that need to be rendered in each frame of image, the rendering time of each frame is relatively short. It is too long, which makes it impossible to achieve fast rendering, which seriously affects the user experience. Therefore, how to quickly add smooth and continuous key point trajectory effects to videos has become an urgent problem to be solved.
发明内容SUMMARY OF THE INVENTION
本公开提供一种视频特效的展示方法、装置、电子设备及存储介质,以至少解决相关技术中无法快速地为视频添加轨迹平滑且连续的关键点轨迹特效的问题。本公开的技术方案如下:The present disclosure provides a method, device, electronic device, and storage medium for displaying video special effects, so as to at least solve the problem in the related art that a smooth and continuous key point trajectory special effect cannot be quickly added to a video. The technical solutions of the present disclosure are as follows:
根据本公开实施例的第一方面,提供一种视频特效的展示方法,包括:基于关键点轨迹特效打开指令,获取当前帧图像和所述当前帧图像中的待追踪关键点;获取所述当前帧图像中所述待追踪关键点的位置信息;根据所述当前帧图像中所述待追踪关键点的位置信息和上一帧图像中所述待追踪关键点的位置信息,生成所述待追踪关键点的辅助位置信息;根据当前帧及当前帧之前每帧图像中所述待追踪关键点的位置信息和每次生成的所述待追踪关键点的辅助位置信息,对所述当前帧图像进行关键点轨迹渲染;以及展示渲染后的当前帧图像。According to a first aspect of the embodiments of the present disclosure, there is provided a method for displaying video special effects, including: obtaining a current frame image and a key point to be tracked in the current frame image based on a key point track special effect opening instruction; obtaining the current frame image The position information of the key point to be tracked in the frame image; according to the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image, the to-be-tracked key point is generated. The auxiliary position information of the key point; according to the position information of the key point to be tracked in the current frame and each frame image before the current frame and the auxiliary position information of the key point to be tracked generated each time, the current frame image is processed. Keypoint track rendering; and display the current frame image after rendering.
根据本公开的一个实施例,所述根据所述当前帧图像中所述待追踪关键点的位置信息和上一帧图像中所述待追踪关键点的位置信息,生成所述待追踪关键点的辅助位置信息,包括:对所述当前帧图像中所述待追踪关键点的位置信息和所述上一帧图像中所述待追踪关键点的位置信息进行线性插值处理,生成所述待追踪关键点的辅助位置信息。According to an embodiment of the present disclosure, the generation of the key point to be tracked is generated according to the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image. Auxiliary position information, including: performing linear interpolation processing on the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image to generate the key point to be tracked Auxiliary location information for the point.
根据本公开的一个实施例,所述对所述当前帧图像中所述待追踪关键点的位置信息和所述上一帧图像中所述待追踪关键点的位置信息进行线性插值处理,生成所述待追踪关键点的辅助位置信息,包括:根据所述当前帧图像中所述待追踪关键点的位置信息和所述上一帧图像中所述待追踪关键点的位置信息,获取所述当前帧图像中所述待追踪关键点与所述上一帧图像中所述待追踪关键点之间的像素距离;根据所述像素距离和预设的插值间隙,确定需插值的所述待追踪关键点的辅助位置信息的数量;根据所述当前帧图像中所述待追踪关键点的位置信息、所述上一帧图像中所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息的数量,确定所述待追踪关键点的辅助位置信息。According to an embodiment of the present disclosure, performing linear interpolation processing on the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image, to generate the The auxiliary position information of the key point to be tracked includes: obtaining the current frame image according to the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image. The pixel distance between the key point to be tracked in the frame image and the key point to be tracked in the previous frame image; according to the pixel distance and a preset interpolation gap, determine the key to be tracked to be interpolated The number of auxiliary position information of the point; according to the position information of the key point to be tracked in the current frame image, the position information of the key point to be tracked in the previous frame image, and the assistance of the key point to be tracked The quantity of position information determines the auxiliary position information of the key point to be tracked.
根据本公开的一个实施例,所述根据当前帧及当前帧之前每帧图像中所述待追踪关键点的位置信息和每次生成的所述待追踪关键点的辅助位置信息,对所述当前帧图像进行关键点轨迹渲染,包括:根据所述当前帧图像中所述待追踪关键点的位置信息和本次生成的所述待追踪关键点的辅助位置信息,对存储的纹理进行渲染,其中,所述存储的纹理为根据所述当前帧之前每帧图像中所述待追踪关键点的位置信息和本次之前每次生成的所述待追踪关键点的辅助位置信息进行渲染生成的;以及将渲染后的纹理渲染到所述当前帧图像上。According to an embodiment of the present disclosure, according to the position information of the key point to be tracked in the current frame and each frame of images before the current frame and the auxiliary position information of the key point to be tracked generated each time, Performing key point trajectory rendering on the frame image, including: rendering the stored texture according to the position information of the key point to be tracked in the current frame image and the auxiliary position information of the key point to be tracked generated this time, wherein , the stored texture is generated by rendering according to the position information of the key points to be tracked in each frame image before the current frame and the auxiliary position information of the key points to be tracked generated each time before this time; and Render the rendered texture onto the current frame image.
根据本公开的一个实施例,所述当前帧图像为第一帧图像时,所述存储的纹理为空白的纹理。According to an embodiment of the present disclosure, when the current frame image is the first frame image, the stored texture is a blank texture.
根据本公开的一个实施例,所述存储的纹理的尺寸与视频的尺寸一致。According to an embodiment of the present disclosure, the size of the stored texture is consistent with the size of the video.
根据本公开的一个实施例,还包括:基于视频录制开始指令,清除存储的所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息,或者将所述存储的纹理替换为空白的纹理,并继续执行所述获取当前帧图像和所述当前帧图像中的待追踪关键点步骤。According to an embodiment of the present disclosure, the method further includes: based on the video recording start instruction, clearing the stored position information of the key point to be tracked and the auxiliary position information of the key point to be tracked, or replacing the stored texture with blank texture, and continue to perform the step of acquiring the current frame image and the key points to be tracked in the current frame image.
根据本公开的一个实施例,还包括:基于特效清除指令,清除存储的所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息,或者将所述存储的纹理替换为空白的纹理,并展示重新获取的当前帧图像。According to an embodiment of the present disclosure, the method further includes: based on a special effect clearing instruction, clearing the stored position information of the key point to be tracked and the auxiliary position information of the key point to be tracked, or replacing the stored texture with blank texture, and display the re-acquired current frame image.
根据本公开的一个实施例,还包括:基于特效恢复指令,继续执行所述获取当前帧图像和所述当前帧图像中的待追踪关键点步骤。According to an embodiment of the present disclosure, the method further includes: continuing to perform the step of obtaining the current frame image and the key points to be tracked in the current frame image based on the special effect restoration instruction.
根据本公开实施例的第二方面,提供一种视频特效的展示装置,包括:第一获取单元,被配置为执行基于关键点轨迹特效打开指令,获取当前帧图像和所述当前帧图像中的待追踪关键点;第二获取单元,被配置为执行获取所述当前帧图像中所述待追踪关键点的位置信息; 生成单元,被配置为执行根据所述当前帧图像中所述待追踪关键点的位置信息和上一帧图像中所述待追踪关键点的位置信息,生成所述待追踪关键点的辅助位置信息;渲染单元,被配置为执行根据当前帧及当前帧之前每帧图像中所述待追踪关键点的位置信息和每次生成的所述待追踪关键点的辅助位置信息,对所述当前帧图像进行关键点轨迹渲染;以及展示单元,被配置为执行展示渲染后的当前帧图像。According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for displaying video special effects, including: a first obtaining unit, configured to execute an instruction for opening special effects based on a key-point trajectory, and obtain a current frame image and an image in the current frame image a key point to be tracked; a second acquisition unit, configured to perform acquisition of the position information of the key point to be tracked in the current frame image; a generating unit, configured to perform according to the current frame image of the key point to be tracked The position information of the point and the position information of the key point to be tracked in the previous frame image, generate auxiliary position information of the key point to be tracked; the rendering unit is configured to perform according to the current frame and each frame image before the current frame. The position information of the key points to be tracked and the auxiliary position information of the key points to be tracked generated each time, perform key point trajectory rendering on the current frame image; frame image.
根据本公开的一个实施例,所述生成单元,包括:生成子单元,被配置为执行对所述当前帧图像中所述待追踪关键点的位置信息和所述上一帧图像中所述待追踪关键点的位置信息进行线性插值处理,生成所述待追踪关键点的辅助位置信息。According to an embodiment of the present disclosure, the generating unit includes: a generating subunit, configured to perform the analysis of the position information of the key point to be tracked in the current frame image and the to-be-tracked key point in the previous frame image Linear interpolation processing is performed on the position information of the tracking key points to generate auxiliary position information of the to-be-tracked key points.
根据本公开的一个实施例,所述生成子单元,包括:获取模块,被配置为执行根据所述当前帧图像中所述待追踪关键点的位置信息和所述上一帧图像中所述待追踪关键点的位置信息,获取所述当前帧图像中所述待追踪关键点与所述上一帧图像中所述待追踪关键点之间的像素距离;第一确定模块,被配置为执行根据所述像素距离和预设的插值间隙,确定需插值的所述待追踪关键点的辅助位置信息的数量;第二确定模块,被配置为执行根据所述当前帧图像中所述待追踪关键点的位置信息、所述上一帧图像中所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息的数量,确定所述待追踪关键点的辅助位置信息。According to an embodiment of the present disclosure, the generation subunit includes: an acquisition module configured to execute the process according to the position information of the key points to be tracked in the current frame image and the to-be-tracked key points in the previous frame image Tracking the position information of the key point, and obtaining the pixel distance between the key point to be tracked in the current frame image and the key point to be tracked in the previous frame image; the first determining module is configured to execute according to The pixel distance and the preset interpolation gap determine the amount of auxiliary position information of the to-be-tracked key point that needs to be interpolated; a second determination module is configured to perform a calculation according to the to-be-tracked key point in the current frame image. The number of position information of the key point to be tracked, the position information of the key point to be tracked and the auxiliary position information of the key point to be tracked in the previous frame of image, to determine the auxiliary position information of the key point to be tracked.
根据本公开的一个实施例,所述渲染单元,包括:第一渲染子单元,被配置为执行根据所述当前帧图像中所述待追踪关键点的位置信息和本次生成的所述待追踪关键点的辅助位置信息,对存储的纹理进行渲染,其中,所述存储的纹理为根据所述当前帧之前每帧图像中所述待追踪关键点的位置信息和本次之前每次生成的所述待追踪关键点的辅助位置信息进行渲染生成的;以及第二渲染子单元,被配置为执行将渲染后的纹理渲染到所述当前帧图像上。According to an embodiment of the present disclosure, the rendering unit includes: a first rendering sub-unit, configured to execute the current frame image according to the position information of the to-be-tracked key point and the to-be-tracked generated this time Auxiliary position information of key points to render the stored texture, wherein the stored texture is based on the position information of the key points to be tracked in each frame of the image before the current frame and the generated data each time before this time. The auxiliary position information of the key point to be tracked is generated by rendering; and a second rendering subunit is configured to perform rendering of the rendered texture onto the current frame image.
根据本公开的一个实施例,所述当前帧图像为第一帧图像时,所述存储的纹理为空白的纹理。According to an embodiment of the present disclosure, when the current frame image is the first frame image, the stored texture is a blank texture.
根据本公开的一个实施例,所述存储的纹理的尺寸与视频的尺寸一致。According to an embodiment of the present disclosure, the size of the stored texture is consistent with the size of the video.
根据本公开的一个实施例,所述第一获取单元还被配置为执行:基于视频录制开始指令,清除存储的所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息,或者将所述存储的纹理替换为空白的纹理,并继续执行所述获取当前帧图像和所述当前帧图像中的待追踪关键点步骤。According to an embodiment of the present disclosure, the first obtaining unit is further configured to perform: based on the video recording start instruction, clear the stored position information of the key point to be tracked and the auxiliary position information of the key point to be tracked, Or replace the stored texture with a blank texture, and continue to perform the step of acquiring the current frame image and the key points to be tracked in the current frame image.
根据本公开的一个实施例,所述第一获取单元还被配置为执行:基于特效清除指令,清除存储的所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息,或者将所述存储的纹理替换为空白的纹理,并展示重新获取的当前帧图像。According to an embodiment of the present disclosure, the first obtaining unit is further configured to execute: based on a special effect clearing instruction, clear the stored position information of the key point to be tracked and the auxiliary position information of the key point to be tracked, or Replace the stored texture with a blank texture, and display the re-acquired current frame image.
根据本公开的一个实施例,所述第一获取单元还被配置为执行:基于特效恢复指令,继 续执行所述获取当前帧图像和所述当前帧图像中的待追踪关键点步骤。According to an embodiment of the present disclosure, the first obtaining unit is further configured to execute: based on the special effect restoration instruction, continue to execute the step of obtaining the current frame image and the key points to be tracked in the current frame image.
根据本公开实施例的第三方面,提供一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现如本公开第一方面实施例提供的视频特效的展示方法。According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to achieve The method for displaying video special effects provided by the embodiments of the first aspect of the present disclosure.
根据本公开实施例的第四方面,提供一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行如本公开第一方面实施例提供的视频特效的展示方法。According to a fourth aspect of the embodiments of the present disclosure, there is provided a storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can perform the operations provided by the embodiments of the first aspect of the present disclosure. How to display video effects.
本公开的实施例提供的技术方案至少带来以下有益效果:通过获取源短视频,并调用第一展示页面后,对音乐素材的目标操作进行监控,以在监控到目标操作后生成调用指令,跳转至音乐编辑页面,并于音乐编辑页面加载目标音乐素材,进而响应于编辑操作,对目标音乐素材进行编辑并加载至源短视频,以生成目标短视频。由此,本公开通过简化交互方案,使得在获取到源短视频后,可以直接调用第一展示页面,并于第一展示页面中对目标操作进行监控,然后在监控到目标操作后,能够直接从第一展示页面跳转至音乐编辑页面,对目标音乐素材进行编辑,进而得到目标短视频,从而减少了交互次数,缩短了操作用时,降低了学习成本,大大提高了用户体验。The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects: by obtaining the source short video and calling the first display page, the target operation of the music material is monitored, so as to generate a call instruction after the target operation is monitored, Jump to the music editing page, load the target music material on the music editing page, and then in response to the editing operation, edit the target music material and load it into the source short video to generate the target short video. Therefore, the present disclosure simplifies the interaction scheme, so that after the source short video is acquired, the first display page can be directly called, and the target operation can be monitored on the first display page, and then after the target operation is monitored, the target operation can be directly monitored. Jump from the first display page to the music editing page, edit the target music material, and then obtain the target short video, thereby reducing the number of interactions, shortening the operation time, reducing the learning cost, and greatly improving the user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure and do not unduly limit the present disclosure.
图1是根据一示例性实施例示出的一种视频特效的展示方法的流程图。Fig. 1 is a flow chart of a method for displaying video special effects according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种主界面的示意图。Fig. 2 is a schematic diagram of a main interface according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种特效预览界面的示意图。Fig. 3 is a schematic diagram of a special effect preview interface according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种于特效预览界面上显示当前帧图像的示意图。FIG. 4 is a schematic diagram of displaying a current frame image on a special effect preview interface according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种目标对象选取结果的示意图。Fig. 5 is a schematic diagram showing a result of selecting a target object according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种渲染后的当前帧图像的示意图。Fig. 6 is a schematic diagram of a rendered current frame image according to an exemplary embodiment.
图7是根据一示例性实施例示出的另一种视频特效的展示方法的流程图。Fig. 7 is a flow chart of another method for displaying video special effects according to an exemplary embodiment.
图8是根据一示例性实施例示出的又一种视频特效的展示方法的流程图。Fig. 8 is a flow chart of yet another method for displaying video special effects according to an exemplary embodiment.
图9是根据一示例性实施例示出的一种关键点轨迹变化过程的渐进示意图。Fig. 9 is a progressive schematic diagram of a keypoint trajectory changing process according to an exemplary embodiment.
图10是根据一示例性实施例示出的再一种视频特效的展示方法的流程图。Fig. 10 is a flow chart of yet another method for displaying video special effects according to an exemplary embodiment.
图11是根据一示例性实施例示出的另一种视频特效的展示方法的流程图。Fig. 11 is a flowchart illustrating another method for displaying video special effects according to an exemplary embodiment.
图12是根据一示例性实施例示出的一种视频特效的展示装置的框图。Fig. 12 is a block diagram of an apparatus for displaying video special effects according to an exemplary embodiment.
图13是根据一示例性实施例示出的另一种视频特效的展示装置的框图。Fig. 13 is a block diagram of another apparatus for displaying video special effects according to an exemplary embodiment.
图14是根据一示例性实施例示出的一种电子设备的框图。Fig. 14 is a block diagram of an electronic device according to an exemplary embodiment.
具体实施方式detailed description
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
图1是根据一示例性实施例示出的一种视频特效的展示方法的流程图。其中,需要说明的是,本公开的视频特效的展示方法的执行主体为视频特效的展示装置。本公开实施例的视频特效的展示方法可以由本公开实施例的视频特效的展示装置执行,视频特效的展示装置具体可以为硬件设备,或者硬件设备中的软件等。其中,硬件设备例如终端设备、服务器等。如图1所示,本实施例提出的视频特效的展示方法,包括以下步骤:Fig. 1 is a flow chart of a method for displaying video special effects according to an exemplary embodiment. It should be noted that the execution subject of the method for displaying video special effects of the present disclosure is a display device for video special effects. The method for displaying video special effects in the embodiment of the present disclosure may be executed by the apparatus for displaying video special effects in the embodiment of the present disclosure, and the apparatus for displaying video special effects may specifically be a hardware device, or software in the hardware device. Among them, the hardware devices are, for example, terminal devices, servers, and the like. As shown in FIG. 1 , the method for displaying video special effects proposed in this embodiment includes the following steps:
在步骤101中,基于关键点轨迹特效打开指令,获取当前帧图像和当前帧图像中的待追踪关键点。In step 101, the current frame image and the to-be-tracked key points in the current frame image are acquired based on the key point track special effect opening instruction.
其中,关键点轨迹特效可以为沿着关键点移动的轨迹叠加任一显示效果的特效。例如,可以沿着关键点移动的轨迹叠加黄色的光束或者白色的光线。The key point track special effect may be a special effect in which any display effect is superimposed on a track moving along the key point. For example, you can superimpose a yellow beam or a white beam along the trajectory of the keypoint movement.
其中,关键点可以为当前帧图像中目标对象的任一关键位置。例如,可以将目标对象的鼻子、眼睛和指尖等部位作为待追踪的关键点。又例如,可以将目标对象的眼镜、手持的麦克风和佩戴的视频等物体作为待追踪的关键点。The key point may be any key position of the target object in the current frame image. For example, parts such as the nose, eyes, and fingertips of the target object can be used as key points to be tracked. For another example, objects such as the target object's glasses, a handheld microphone, and a worn video can be used as key points to be tracked.
本公开实施例中,在试图为视频添加特效时,用户可以通过点击特效控件、输入语音信息等方式下发添加特效指令。相应地,在检测到用户下发的添加特效指令后,可以于特效预览界面中加载至少一个特效标识,以供用户根据需求进行特效标识的选择。其中,特效标识包括关键点轨迹特效,例如魔法鼻子、魔法眼睛和魔法手指等特效标识。In the embodiment of the present disclosure, when attempting to add special effects to a video, the user may issue an instruction for adding special effects by clicking on the special effect control, inputting voice information, or the like. Correspondingly, after detecting an instruction for adding special effects issued by the user, at least one special effect identifier may be loaded in the special effect preview interface for the user to select the special effect identifier according to requirements. The special effect identifiers include key point trajectory special effects, such as special effect identifiers such as magic nose, magic eyes, and magic fingers.
作为一种可能的实现方式,在试图对添加特效指令进行检测时,可以获取用户实施在主界面上的目标操作的位置,并在检测到目标操作的位置为添加特效的操作区域时,则可以确定检测到了添加特效指令。As a possible implementation, when trying to detect the special effect addition instruction, the position of the target operation performed by the user on the main interface can be obtained, and when it is detected that the position of the target operation is the operation area where special effects are added, the user can Make sure that the Add Effects command is detected.
进一步地,可以继续对用户下发的指令进行检测,并在检测到关键点轨迹特效打开指令后,为视频添加关键点轨迹特效。Further, it is possible to continue to detect the instruction issued by the user, and after detecting the instruction to open the key point trajectory special effect, add the key point trajectory special effect to the video.
作为一种可能的实现方式,在试图对关键点轨迹特效打开指令进行检测时,可以获取用户实施在特效预览界面上的目标操作的位置,并在检测到目标操作的位置为关键点轨迹特效的特效标识操作区域时,则可以确定检测到了关键点轨迹特效打开指令。As a possible implementation, when trying to detect the opening command of the key point trajectory special effect, the position of the target operation performed by the user on the special effect preview interface can be obtained, and the position where the target operation is detected is the key point trajectory special effect. When the special effect identifies the operation area, it can be determined that the key point track special effect opening command is detected.
需要说明的是,本公开中,为了简化交互过程、提升用户体验,还可以于特效预览界面上显示多种功能控件,例如,可以于特效预览界面上显示录制控件,以方便用户在预览后选取了需要的特效之后,能够直接执行为所录制的视频添加关键点轨迹特效的操作。It should be noted that, in the present disclosure, in order to simplify the interaction process and improve the user experience, various functional controls can also be displayed on the special effect preview interface. For example, recording controls can be displayed on the special effect preview interface to facilitate the user to select after previewing. After selecting the required special effects, you can directly perform the operation of adding key point track special effects to the recorded video.
举例而言,如图2所示,用户可以通过点击主界面11上的添加特效控件12来触发添加特效功能,相应地,在检测到用户点击添加特效控件12后,如图3所示,可以于特效预览界面13中加载特效标识14-1~14-4,共4个特效标识,以及拍摄控件15。进一步地,在检测到用户实施在特效预览界面上的目标操作的位置为关键点轨迹特效的特效标识操作区域时,则确定检测到了关键点轨迹特效打开指令。For example, as shown in FIG. 2 , the user can trigger the adding special effect function by clicking on the adding special effect control 12 on the main interface 11 . Correspondingly, after detecting that the user clicks on the adding special effect control 12 , as shown in FIG. 3 , you can In the special effect preview interface 13 , the special effect signs 14 - 1 to 14 - 4 , 4 special effect signs in total, and the shooting control 15 are loaded. Further, when it is detected that the position of the target operation performed by the user on the special effect preview interface is the special effect identification operation area of the key point trajectory special effect, it is determined that the key point trajectory special effect opening instruction is detected.
本公开实施例中,可以基于关键点轨迹特效打开指令,通过视频、图像等采集装置对当前帧图像进行获取,并将获取到的当前帧图像显示在特效预览界面上。In the embodiment of the present disclosure, the current frame image may be acquired by a video, image or other acquisition device based on the key point trajectory special effect opening instruction, and the acquired current frame image may be displayed on the special effect preview interface.
举例而言,可以通过摄像头获取到如图4所示的当前帧图像16,并将获取到的当前帧图像16显示在特效预览界面上13。For example, the current frame image 16 as shown in FIG. 4 can be acquired through a camera, and the acquired current frame image 16 can be displayed on the special effect preview interface 13 .
需要说明的是,通过上述方式获取到当前帧图像后,可以首先判断获取到的当前帧图像是否仅包括一个对象,如果识别当前帧图像仅包括一个对象,则可以将该对象作为目标对象;如果识别当前帧图像包括多于一个对象,则可以选择其中一个对象作为目标对象。其中,目标对象为后续需要添加视频特效的对象。It should be noted that, after the current frame image is obtained in the above manner, it can be first determined whether the obtained current frame image includes only one object, and if it is recognized that the current frame image includes only one object, the object can be used as the target object; If it is recognized that the current frame image includes more than one object, one of the objects can be selected as the target object. The target object is an object to which video special effects need to be added later.
需要说明的是,本公开中对于目标对象的选取方式不作限定,可以根据实际情况进行选择。例如,可以根据各对象的关节点的识别完整度和置信度选取目标对象。例如,如图5所示,获取到当前帧图像后,识别当前帧图像包括17-1和17-2,共2个对象,则可以对象17-1为目标对象。It should be noted that the selection method of the target object is not limited in the present disclosure, and can be selected according to the actual situation. For example, the target object can be selected according to the recognition integrity and confidence of the joint points of each object. For example, as shown in FIG. 5 , after the current frame image is acquired, it is recognized that the current frame image includes 17-1 and 17-2, a total of 2 objects, and the object 17-1 can be the target object.
进一步地,在获取到当前帧图像后,可以基于目标对象的特征,对当前帧图像中的待追踪关键点进行获取。Further, after the current frame image is acquired, the key points to be tracked in the current frame image may be acquired based on the characteristics of the target object.
需要说明的是,本公开中对于待追踪关键点的获取方式不作限定,可以根据实际情况进行选择。例如,可以利用轮廓图像检测出类直线的区域,通过对各类直线区域的组合,识别出当前帧图像中的待追踪关键点。又例如,可以通过颜色特征和/或形状特征描述待追踪关键点,进而通过特征匹配的方式来获取当前帧图像中的待追踪关键点。It should be noted that, the method for obtaining the key points to be tracked is not limited in the present disclosure, and can be selected according to the actual situation. For example, straight line-like regions can be detected by using the contour image, and key points to be tracked in the current frame image can be identified by combining various straight line regions. For another example, the key points to be tracked may be described by color features and/or shape features, and then the key points to be tracked in the current frame image are acquired by means of feature matching.
在步骤102中,获取当前帧图像中待追踪关键点的位置信息。In step 102, the position information of the key points to be tracked in the current frame image is acquired.
在本公开的实施例中,在获取到当前帧图像中的待追踪关键点后,可以对待追踪关键点的位置信息进行获取。In the embodiment of the present disclosure, after acquiring the key points to be tracked in the current frame image, the position information of the key points to be tracked may be acquired.
作为一种可能的实现方式,可以确定待追踪关键点在当前帧图像中的图像位置,并根据图像位置查询本公开中预先设置的当前帧图像和特效预览界面之间的位置映射,获取待追踪关键点在特效预览界面上的位置信息。As a possible implementation, the image position of the key point to be tracked in the current frame image can be determined, and the position mapping between the current frame image and the special effect preview interface preset in the present disclosure can be queried according to the image position, and the to-be-tracked key point can be obtained. The position information of the key point on the special effect preview interface.
可选地,可以根据获取到的当前帧图像中的待追踪关键点,确定待追踪关键点在当前帧图像中的坐标,并基于预先建立当前帧图像与特效预览界面的同一基准坐标系,获取待追踪关键点在特效预览界面中的坐标,进而获取待追踪关键点在特效预览界面上的位置信息。Optionally, the coordinates of the key points to be tracked in the current frame image can be determined according to the acquired key points to be tracked in the current frame image, and based on the pre-established same reference coordinate system of the current frame image and the special effects preview interface, obtain The coordinates of the key points to be tracked in the special effect preview interface, and then the position information of the key points to be tracked on the special effect preview interface is obtained.
在步骤103中,根据当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,生成待追踪关键点的辅助位置信息。In step 103, the auxiliary position information of the key point to be tracked is generated according to the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image.
其中,辅助位置信息指的是对待追踪关键点进行插值处理后得到的位置信息。The auxiliary position information refers to the position information obtained by performing interpolation processing on the key points to be tracked.
在本公开的实施例中,在获取到当前帧图像中待追踪关键点的位置信息后,可以读取上一帧图像中待追踪关键点的位置信息,并对当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息进行线性插值处理,以生成待追踪关键点的辅助位置信息。In the embodiment of the present disclosure, after obtaining the position information of the key points to be tracked in the current frame image, the position information of the key points to be tracked in the previous frame image can be read, and the key points to be tracked in the current frame image can be read. Perform linear interpolation processing on the position information of the key point to be tracked and the position information of the key point to be tracked in the previous frame image to generate auxiliary position information of the key point to be tracked.
在步骤104中,根据当前帧及当前帧之前每帧图像中待追踪关键点的位置信息和每次生成的待追踪关键点的辅助位置信息,对当前帧图像进行关键点轨迹渲染。In step 104, key point trajectory rendering is performed on the current frame image according to the position information of the key points to be tracked in the current frame and each frame image before the current frame and the auxiliary position information of the key points to be tracked generated each time.
其中,对当前帧图像进行关键点轨迹渲染,指的是根据纹理和照明信息等信息生成渲染结果(即当前帧图像)的过程。The key point trajectory rendering for the current frame image refers to the process of generating a rendering result (ie, the current frame image) according to information such as texture and lighting information.
在本公开的实施例中,在试图对当前帧图像进行关键点轨迹渲染时,可以根据当前帧及当前帧之前每帧图像中待追踪关键点的位置信息和每次生成的待追踪关键点的辅助位置信息,以及预先存储的纹理,对当前帧图像进行关键点轨迹渲染,以得到渲染后的当前帧图像。In the embodiment of the present disclosure, when trying to perform keypoint trajectory rendering on the current frame image, the position information of the keypoints to be tracked in the current frame and each frame image before the current frame and the position information of the keypoints to be tracked generated each time can be used. Auxiliary position information and pre-stored textures are used to perform keypoint trajectory rendering on the current frame image to obtain the rendered current frame image.
其中,预先存储的纹理为尺寸与视频尺寸一致的纹理。The pre-stored texture is a texture whose size is the same as that of the video.
在步骤105中,展示渲染后的当前帧图像。In step 105, the rendered current frame image is displayed.
在本公开的实施例中,在对当前帧图像进行关键点轨迹渲染后,可以获取渲染后的当前帧图像,并将渲染后的当前帧图像显示在屏幕上,以实现视频特效的展示。In the embodiment of the present disclosure, after the keypoint trajectory rendering is performed on the current frame image, the rendered current frame image can be obtained and displayed on the screen to realize the display of video special effects.
举例而言,如图6所示,基于关键点轨迹特效打开指令,对当前帧图像18-1中的待追踪关键点“目标用户的鼻子19”添加关键点轨迹特效,以得到渲染后的当前帧图像18-2并进行展示。其中,渲染后的当前帧图像18-2中包括沿着目标用户的鼻子19移动的轨迹叠加的黑色的光线20。For example, as shown in FIG. 6 , based on the key point track special effect opening instruction, add key point track special effects to the to-be-tracked key point "target user's nose 19" in the current frame image 18-1, so as to obtain the rendered current Frame image 18-2 and show it. The rendered current frame image 18-2 includes a black light 20 superimposed along the trajectory of the target user's nose 19 moving.
需要说明的是,再获取到渲染后的当前帧图像后,先不将其显示到屏幕上,后台经过处理得到新的纹理后,将纹理叠加到当前帧画面上,然后将叠加后的画面显示在屏幕上。It should be noted that after the rendered current frame image is obtained, it is not displayed on the screen first. After the background is processed to obtain a new texture, the texture is superimposed on the current frame image, and then the superimposed image is displayed. on the screen.
本公开的实施例提供的视频特效的展示方法,能够基于关键点轨迹特效打开指令,获取 当前帧图像和当前帧图像中的待追踪关键点,并获取当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,以生成待追踪关键点的辅助位置信息,进而根据当前帧及当前帧之前每帧图像中所述待追踪关键点的位置信息和每次生成的待追踪关键点的辅助位置信息,对当前帧图像进行关键点轨迹渲染,并将渲染后的当前帧图像进行展示,以实现视频特效的展示。由此,本公开能够通过对当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息进行线性插值处理,生成辅助位置信息,进而根据待追踪关键点的位置信息和辅助位置信息,对当前帧图像进行关键点轨迹渲染,使得展示出的渲染后的当前帧图像中关键点的轨迹平滑且连续,不再存在间隙。进一步地,本公开能够通过将每一帧图像中获取到的关键点直接进行关键点轨迹渲染,能够实现关键点轨迹的快速渲染、避免了渲染卡顿的技术问题,极大地缩短了视频特效展示过程的耗时。The method for displaying video special effects provided by the embodiments of the present disclosure can obtain the current frame image and the key points to be tracked in the current frame image based on the key point track special effect opening instruction, and obtain the position information of the key points to be tracked in the current frame image and the position information of the key points to be tracked in the previous frame image to generate auxiliary position information of the key points to be tracked, and then according to the position information of the key points to be tracked in the current frame and each frame image before the current frame and each generation The auxiliary position information of the key points to be tracked, the key point trajectory rendering is performed on the current frame image, and the rendered current frame image is displayed to realize the display of video special effects. Therefore, the present disclosure can generate auxiliary position information by performing linear interpolation processing on the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image, and then according to the position of the key point to be tracked information and auxiliary position information, perform key point trajectory rendering on the current frame image, so that the displayed trajectory of the key points in the rendered current frame image is smooth and continuous, and there is no gap. Further, the present disclosure can directly render the key point trajectory through the key points obtained in each frame of image, which can realize the rapid rendering of the key point trajectory, avoid the technical problem of rendering stuck, and greatly shorten the display of video special effects. time-consuming process.
需要说明的是,本公开中,为了能够确保展示出的渲染后的当前帧图像中关键点的轨迹平滑且连续,不再存在间隙,可以对当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息进行线性插值处理,生成待追踪关键点的辅助位置信息。It should be noted that, in the present disclosure, in order to ensure that the trajectories of the key points in the displayed rendered current frame image are smooth and continuous, and there is no longer a gap, the position information of the key points to be tracked in the current frame image and the upper Linear interpolation is performed on the position information of the key points to be tracked in a frame of images to generate auxiliary position information of the key points to be tracked.
作为一种可能的实现方式,如图7所示,在上述实施例的基础上,上述步骤S103中对当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息进行线性插值处理,生成待追踪关键点的辅助位置信息的过程,具体包括以下步骤:As a possible implementation, as shown in FIG. 7 , on the basis of the above embodiment, in the above step S103, the position information of the key point to be tracked in the current frame image and the position of the key point to be tracked in the previous frame image are compared. The process of performing linear interpolation processing on the information to generate auxiliary position information of the key points to be tracked includes the following steps:
在步骤201中,根据当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,获取当前帧图像中待追踪关键点与上一帧图像中待追踪关键点之间的像素距离。In step 201, according to the position information of the key points to be tracked in the current frame image and the position information of the key points to be tracked in the previous frame image, obtain the key points to be tracked in the current frame image and the key points to be tracked in the previous frame image pixel distance between.
其中,像素距离可以为当前帧图像中待追踪关键点与上一帧图像中待追踪关键点之间的直线距离。The pixel distance may be a straight-line distance between the key point to be tracked in the current frame image and the key point to be tracked in the previous frame image.
在本公开的实施例中,可以基于当前帧图像的尺寸信息,根据当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,通过如下公式素距离:In the embodiment of the present disclosure, based on the size information of the current frame image, according to the position information of the key points to be tracked in the current frame image and the position information of the key points to be tracked in the previous frame image, the pixel distance can be calculated by the following formula:
Figure PCTCN2021103299-appb-000001
Figure PCTCN2021103299-appb-000001
其中,(x 0,y 0)为当前帧图像中待追踪关键点的位置信息,(x 1,y 1)为上一帧图像中待追踪关键点的位置信息。 Among them, (x 0 , y 0 ) is the position information of the key point to be tracked in the current frame image, and (x 1 , y 1 ) is the position information of the key point to be tracked in the previous frame image.
举例而言,获取到当前帧图像中待追踪关键点的位置信息(x 0,y 0)=(2,2)、上一帧图像中待追踪关键点的位置信息(x 1,y 1)=(8,10),则可获取到两个关键点之间的像素距离为10。 For example, obtain the position information (x 0 , y 0 )=(2, 2) of the key point to be tracked in the current frame image, and the position information (x 1 , y 1 ) of the key point to be tracked in the previous frame image = (8, 10), then the pixel distance between the two key points can be obtained as 10.
在步骤202中,根据像素距离和预设的插值间隙,确定需插值的待追踪关键点的辅助位置信息的数量。In step 202, according to the pixel distance and a preset interpolation gap, the quantity of auxiliary position information of the key points to be tracked to be interpolated is determined.
其中,插值间隙可以为当前帧图像中待追踪关键点与上一帧图像中待追踪关键点之间的 连线方向上进行线性插值处理的最小插值距离。Wherein, the interpolation gap may be the minimum interpolation distance for linear interpolation processing in the direction of the connection between the key point to be tracked in the current frame image and the key point to be tracked in the previous frame image.
在本公开的实施例中,在获取到像素距离后,可以基于插值间隙,确定需插值的待追踪关键点的辅助位置信息的数量。其中,插值间隙可以根据实际情况进行设定。例如,可以设定插值间隙为5、7等。In the embodiment of the present disclosure, after the pixel distance is obtained, the quantity of auxiliary position information of the key points to be tracked to be interpolated may be determined based on the interpolation gap. Among them, the interpolation gap can be set according to the actual situation. For example, the interpolation gap can be set to 5, 7, etc.
举例而言,获取到像素距离为10、插值间隙为5,则可以确定需插值的待追踪关键点的辅助位置信息的数量为1个。For example, if the obtained pixel distance is 10 and the interpolation gap is 5, it can be determined that the number of auxiliary position information of the key point to be tracked to be interpolated is 1.
在步骤203中,根据当前帧图像中待追踪关键点的位置信息、上一帧图像中待追踪关键点的位置信息和待追踪关键点的辅助位置信息的数量,确定待追踪关键点的辅助位置信息。In step 203, the auxiliary position of the key point to be tracked is determined according to the position information of the key point to be tracked in the current frame image, the position information of the key point to be tracked in the previous frame image and the auxiliary position information of the key point to be tracked information.
其中,辅助位置信息包括水平方向上的第一辅助位置信息和竖直方向上的第二辅助位置信息。The auxiliary position information includes first auxiliary position information in the horizontal direction and second auxiliary position information in the vertical direction.
在本公开的实施例中,可以根据插值间隙,获取插值间隙在水平方向上的分量,然后再根据获取到的分量、当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,获取第一辅助位置信息。进一步地,可以根据第一辅助位置信息、当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,通过如下公式计算第二辅助位置信息:In the embodiment of the present disclosure, the component of the interpolation gap in the horizontal direction can be obtained according to the interpolation gap, and then according to the obtained component, the position information of the key points to be tracked in the current frame image and the to-be-tracked in the previous frame image The position information of the key point is obtained, and the first auxiliary position information is obtained. Further, according to the first auxiliary position information, the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image, the second auxiliary position information can be calculated by the following formula:
Figure PCTCN2021103299-appb-000002
Figure PCTCN2021103299-appb-000002
其中,x为第一辅助位置信息、y为第二辅助位置信息。Wherein, x is the first auxiliary position information, and y is the second auxiliary position information.
举例而言,获取到当前帧图像中待追踪关键点的位置信息为(2,2)、上一帧图像中待追踪关键点的位置信息为(8,10)、待追踪关键点的辅助位置信息的数量为1以及插值间隙为5,则可以获取到插值间隙在水平方向上的分量为3,然后再根据获取到的分量、当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,获取第一辅助位置信息x=5。进一步地,可以根据第一辅助位置信息、当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,计算得到第二辅助位置信息y=6。即言,待追踪关键点的辅助位置信息为(5,6)。For example, the position information of the key point to be tracked in the current frame image is (2, 2), the position information of the key point to be tracked in the previous frame image is (8, 10), and the auxiliary position of the key point to be tracked is obtained. If the number of information is 1 and the interpolation gap is 5, the component of the interpolation gap in the horizontal direction can be obtained as 3, and then according to the obtained components, the position information of the key points to be tracked in the current frame image and the previous frame image In the position information of the key point to be tracked, the first auxiliary position information x=5 is obtained. Further, the second auxiliary position information y=6 can be calculated according to the first auxiliary position information, the position information of the key points to be tracked in the current frame image, and the position information of the key points to be tracked in the previous frame image. That is, the auxiliary position information of the key point to be tracked is (5, 6).
需要说明的是,在待追踪关键点的辅助位置信息的生成过程中,若出现小数,则可以采取向下取整方式进行获取,以确保辅助位置信息为整数。It should be noted that, in the process of generating the auxiliary position information of the key point to be tracked, if a decimal appears, it can be obtained by rounding down to ensure that the auxiliary position information is an integer.
本公开的实施例提供的视频特效的展示方法,能够通过获取当前帧图像中待追踪关键点与上一帧图像中所述待追踪关键点之间的像素距离,并根据像素距离和预设的插值间隙,确定需插值的所述待追踪关键点的辅助位置信息的数量,进而根据当前帧图像中待追踪关键点的位置信息、上一帧图像中待追踪关键点的位置信息和待追踪关键点的辅助位置信息的数量,确定待追踪关键点的辅助位置信息。由此,本公开能够通过对当前帧图像中待追踪关键 点的位置信息和上一帧图像中待追踪关键点的位置信息进行线性插值处理,生成辅助位置信息,确保获取到的辅助位置信息能够补齐当前帧图像中关键点的轨迹,进而使得展示出的渲染后的当前帧图像中关键点的轨迹平滑且连续,不再存在间隙。The method for displaying video special effects provided by the embodiments of the present disclosure can obtain the pixel distance between the key point to be tracked in the current frame image and the key point to be tracked in the previous frame image, and calculate the pixel distance according to the pixel distance and the preset Interpolate the gap to determine the amount of auxiliary position information of the key points to be tracked to be interpolated, and then according to the position information of the key points to be tracked in the current frame image, the position information of the key points to be tracked in the previous frame image, and the key to be tracked. The number of auxiliary position information of the point to determine the auxiliary position information of the key point to be tracked. Therefore, the present disclosure can generate auxiliary position information by performing linear interpolation processing on the position information of the key points to be tracked in the current frame image and the position information of the key points to be tracked in the previous frame image, so as to ensure that the obtained auxiliary position information can be The trajectories of key points in the current frame image are complemented, so that the displayed trajectories of key points in the rendered current frame image are smooth and continuous, and there is no gap.
需要说明的是,本公开中,为了能够实现关键点轨迹的快速渲染、避免渲染卡顿、缩短视频特效展示过程的耗时,可以将每一帧图像中获取到的关键点直接进行关键点轨迹渲染,以得到渲染后的当前帧图像。It should be noted that, in the present disclosure, in order to achieve fast rendering of key point trajectories, avoid rendering freezes, and shorten the time-consuming process of video special effects display, the key points obtained in each frame of image can be directly processed into key point trajectories. Render to get the rendered current frame image.
作为一种可能的实现方式,如图8所示,在上述实施例的基础上,上述步骤S104中根据当前帧及当前帧之前每帧图像中待追踪关键点的位置信息和每次生成的待追踪关键点的辅助位置信息,对当前帧图像进行关键点轨迹渲染的过程,具体包括以下步骤:As a possible implementation, as shown in FIG. 8 , on the basis of the above embodiment, in the above step S104 , according to the position information of the key points to be tracked in the current frame and each frame image before the current frame and the The process of tracking the auxiliary position information of the key points and rendering the key point trajectory for the current frame image includes the following steps:
在步骤301中,根据当前帧图像中待追踪关键点的位置信息和本次生成的待追踪关键点的辅助位置信息,对存储的纹理进行渲染,其中,存储的纹理为根据当前帧之前每帧图像中待追踪关键点的位置信息和本次之前每次生成的待追踪关键点的辅助位置信息进行渲染生成的。In step 301, the stored texture is rendered according to the position information of the key point to be tracked in the current frame image and the auxiliary position information of the key point to be tracked generated this time, wherein the stored texture is based on each frame before the current frame. Generated by rendering the position information of the key points to be tracked in the image and the auxiliary position information of the key points to be tracked generated each time before this time.
本公开实施例中,可以根据当前帧图像中待追踪关键点的位置信息和本次生成的待追踪关键点的辅助位置信息,将关键点轨迹更新到根据当前帧之前每帧图像中待追踪关键点的位置信息和本次之前每次生成的待追踪关键点的辅助位置信息进行渲染生成的的纹理上,并对渲染后的纹理进行保存。In this embodiment of the present disclosure, the track of the key points can be updated to the key points to be tracked in each image frame before the current frame according to the position information of the key points to be tracked in the current frame image and the auxiliary position information of the key points to be tracked generated this time. The position information of the point and the auxiliary position information of the key points to be tracked generated each time before this time are rendered on the texture generated, and the rendered texture is saved.
需要说明的是,如果当前帧图像为第一帧图像,则存储的纹理为空白的纹理,且纹理的尺寸与视频尺寸一致。It should be noted that, if the current frame image is the first frame image, the stored texture is a blank texture, and the size of the texture is consistent with the size of the video.
举例而言,通过对根据当前帧图像中待追踪关键点的位置信息和本次生成的待追踪关键点的辅助位置信息,对存储的纹理进行渲染的过程进行记录,可以得到如图9所示的关键点轨迹变化过程示意图。For example, by recording the process of rendering the stored texture according to the position information of the key points to be tracked in the current frame image and the auxiliary position information of the key points to be tracked generated this time, it can be obtained as shown in FIG. 9 . Schematic diagram of the keypoint trajectory change process.
在步骤302中,将渲染后的纹理渲染到当前帧图像上。In step 302, the rendered texture is rendered onto the current frame image.
本公开实施例中,可以将所保存的渲染后的纹理渲染到当前帧图像上,以得到渲染后的当前帧图像。In this embodiment of the present disclosure, the saved rendered texture may be rendered onto the current frame image to obtain the rendered current frame image.
需要说明的是,渲染的具体过程为现有技术,此处不再进行赘述。It should be noted that the specific process of rendering is in the prior art, which will not be repeated here.
本公开的实施例提供的视频特效的展示方法,能够根据当前帧图像中待追踪关键点的位置信息和本次生成的待追踪关键点的辅助位置信息,对存储的纹理进行渲染,并将将渲染后的纹理渲染到当前帧图像上,以得到渲染后的当前帧图像。由此,本公开能够通过将每一帧图像中获取到的关键点直接进行关键点轨迹渲染,能够实现关键点轨迹的快速渲染、避免了渲染卡顿的技术问题,极大地缩短了视频特效展示过程的耗时。The method for displaying video special effects provided by the embodiments of the present disclosure can render the stored texture according to the position information of the key points to be tracked in the current frame image and the auxiliary position information of the key points to be tracked generated this time, and render the stored textures. The rendered texture is rendered onto the current frame image to obtain the rendered current frame image. As a result, the present disclosure can directly render the key point trajectory through the key points obtained in each frame of image, which can realize the rapid rendering of the key point trajectory, avoid the technical problem of rendering stuck, and greatly shorten the display of video special effects. time-consuming process.
需要说明的是,在实际应用中,用户可能基于对当前关键点移动的轨迹不满意、想要 尝试其他多种关键点移动方式或者选择当前帧图像中其他对象作为目标对象体验关键点轨迹特效等原因,发送特效清除指令,由此,本公开中,可以基于特效清除指令清除当前帧关键点轨迹渲染效果,展示重新获取到的当前帧图像。It should be noted that, in practical applications, users may be dissatisfied with the current trajectory of key point movement, want to try other key point movement methods, or select other objects in the current frame image as target objects to experience key point trajectory special effects, etc. For this reason, the special effect clearing instruction is sent, and thus, in the present disclosure, the rendering effect of the key point trajectory of the current frame can be cleared based on the special effect clearing instruction, and the re-acquired current frame image can be displayed.
作为一种可能的实现方式,如图10所示,在上述实施例的基础上,基于特效清除指令,展示重新获取到的渲染后的当前帧图像的过程,具体包括以下步骤:As a possible implementation, as shown in FIG. 10 , on the basis of the above embodiment, based on the special effect removal instruction, the process of displaying the re-acquired rendered current frame image specifically includes the following steps:
在步骤401中,基于特效清除指令,展示重新获取的当前帧图像。In step 401, based on the special effect clearing instruction, the re-acquired current frame image is displayed.
本公开实施例中,可以基于特效清除指令,清除存储的待追踪关键点的位置信息和待追踪关键点的辅助位置信息,或者将存储的纹理替换为空白的纹理,并展示重新获取的当前帧图像。In the embodiment of the present disclosure, the stored position information of the key points to be tracked and the auxiliary position information of the key points to be tracked can be cleared based on the special effect clearing instruction, or the stored texture can be replaced with a blank texture, and the re-acquired current frame can be displayed. image.
需要说明的是,在试图清除当前帧图像中关键点轨迹特效时,用户可以通过点击多种方式下发清除特效指令,例如双击屏幕、输入“请清除当前特效”的语音信息等。相应地,在检测到用户下发的清除特效指令后,可以基于特效清除指令,清除当前特效,并展示重新获取的当前帧图像。It should be noted that, when trying to clear the special effects of the key points in the current frame image, the user can issue a command to clear the special effects by clicking in various ways, such as double-clicking the screen, inputting the voice message of "Please clear the current special effects", etc. Correspondingly, after detecting the special effect clearing instruction issued by the user, the current special effect can be cleared based on the special effect clearing instruction, and the re-acquired current frame image is displayed.
在步骤402中,基于特效恢复指令,获取当前帧图像和当前帧图像中的待追踪关键点。In step 402, the current frame image and the key points to be tracked in the current frame image are acquired based on the special effect restoration instruction.
本公开实施例中,可以基于特效恢复指令,继续执行获取当前帧图像和当前帧图像中的待追踪关键点步骤。In this embodiment of the present disclosure, the step of acquiring the current frame image and the key points to be tracked in the current frame image may be continued based on the special effect restoration instruction.
需要说明的是,在试图恢复当前帧图像中关键点轨迹特效时,用户可以通过点击多种方式下发恢复特效指令,例如双击屏幕、输入“请恢复当前特效”的语音信息等。相应地,在检测到用户下发的恢复特效指令后,可以基于特效恢复指令,继续执行获取当前帧图像和当前帧图像中的待追踪关键点步骤。It should be noted that, when trying to restore the special effect of the key point track in the current frame image, the user can issue the restore special effect instruction by clicking in various ways, such as double-clicking the screen, inputting the voice information of "please restore the current special effect", etc. Correspondingly, after detecting the restoration special effect instruction issued by the user, the step of acquiring the current frame image and the key points to be tracked in the current frame image may be continued based on the special effect restoration instruction.
在步骤403中,获取当前帧图像中待追踪关键点的位置信息。In step 403, the position information of the key points to be tracked in the current frame image is acquired.
在步骤404中,根据当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,生成待追踪关键点的辅助位置信息。In step 404, auxiliary position information of the key point to be tracked is generated according to the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image.
在步骤405中,根据当前帧及当前帧之前每帧图像中待追踪关键点的位置信息和每次生成的待追踪关键点的辅助位置信息,对当前帧图像进行关键点轨迹渲染。In step 405, according to the position information of the key points to be tracked in the current frame and each frame image before the current frame and the auxiliary position information of the key points to be tracked generated each time, key point trajectory rendering is performed on the image of the current frame.
在步骤406中,展示渲染后的当前帧图像。In step 406, the rendered current frame image is displayed.
上述步骤403~406与图1所示实施例中的步骤102~105相同,此处不再赘述。The above steps 403 to 406 are the same as the steps 102 to 105 in the embodiment shown in FIG. 1 , and are not repeated here.
本公开的实施例提供的视频特效的展示方法,能够基于特效清除指令,清除存储的待追踪关键点的位置信息和待追踪关键点的辅助位置信息,或者将存储的纹理替换为空白的纹理,并展示重新获取的当前帧图像,然后继续执行获取当前帧图像和当前帧图像中的待追踪关键点步骤,为用户提供清除当前帧关键点轨迹渲染效果,重新预览关键点轨迹特效展示的玩法,交互过程简化、操作便捷,进一步提高了用户体验。The method for displaying video special effects provided by the embodiments of the present disclosure can clear the stored position information of the key points to be tracked and the auxiliary position information of the key points to be tracked, or replace the stored textures with blank textures, based on the special effect clearing instruction, And display the re-acquired current frame image, and then continue to perform the steps of obtaining the current frame image and the key points to be tracked in the current frame image, providing users with the rendering effect of clearing the current frame key point trajectory, and re-previewing the key point trajectory special effects display gameplay, The interaction process is simplified and the operation is convenient, which further improves the user experience.
由此,本公开基于线性插值处理方式将关键点的轨迹进行补齐,并将每一帧图像中获取到的关键点直接进行关键点轨迹渲染,使得用户在特效预览界面上选择了关键点轨迹特效之后,能够快速地观看到轨迹平滑且连续的关键点轨迹特效展示效果。Therefore, the present disclosure completes the trajectory of key points based on the linear interpolation processing method, and directly renders the trajectory of the key points obtained in each frame of image, so that the user selects the trajectory of the key points on the special effects preview interface. After the special effect, you can quickly see the smooth and continuous key point trajectory special effect display effect of the trajectory.
进一步地,在用户完成关键点轨迹特效展示效果的预览之后,可以下发拍摄指令进行拍摄,以得到添加有关键点轨迹特效的视频。Further, after the user completes the preview of the display effect of the key point trajectory special effect, a shooting instruction can be issued to shoot, so as to obtain a video with the key point trajectory special effect added.
作为一种可能的实现方式,如图11所示,在上述实施例的基础上,基于视频录制开始指令,为录制的视频添加关键点轨迹特效的过程,具体包括以下步骤:As a possible implementation, as shown in FIG. 11 , on the basis of the above embodiment, based on the video recording start instruction, the process of adding key point trajectory special effects to the recorded video specifically includes the following steps:
在步骤501中,基于视频录制开始指令,清除存储的待追踪关键点的位置信息和待追踪关键点的辅助位置信息。In step 501, based on the video recording start instruction, the stored location information of the key points to be tracked and the auxiliary location information of the key points to be tracked are cleared.
需要说明的是,在试图进行视频录制时,用户可以通过点击多种方式下发清除特效指令,例如点击特效预览界面上的录制控件、输入“请开始录制视频”的语音信息等。相应地,在检测到用户下发的视频录制开始指令后,可以基于视频录制开始指令,清除存储的待追踪关键点的位置信息和待追踪关键点的辅助位置信息。It should be noted that, when trying to record a video, the user can issue a command to clear the special effect by clicking in various ways, such as clicking the recording control on the special effect preview interface, and entering the voice message of "Please start recording video", etc. Correspondingly, after the video recording start instruction issued by the user is detected, the stored location information of the key points to be tracked and auxiliary location information of the key points to be tracked may be cleared based on the video recording start instruction.
作为一种可能的实现方式,在试图进行视频录制时,可以获取用户实施在特效预览界面上的目标操作的位置,并在检测到目标操作的位置为录制控件操作区域时,则可以确定检测到了视频录制开始指令。As a possible implementation, when trying to record a video, the position of the target operation performed by the user on the special effect preview interface can be obtained, and when the position of the target operation is detected to be the recording control operation area, it can be determined that the target operation has been detected. Video recording start command.
在步骤502中,获取当前帧图像和当前帧图像中的待追踪关键点。In step 502, the current frame image and the key points to be tracked in the current frame image are acquired.
在步骤503中,获取当前帧图像中待追踪关键点的位置信息。In step 503, the position information of the key points to be tracked in the current frame image is acquired.
在步骤504中,根据当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,生成待追踪关键点的辅助位置信息。In step 504, auxiliary position information of the key point to be tracked is generated according to the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image.
在步骤505中,根据当前帧及当前帧之前每帧图像中待追踪关键点的位置信息和每次生成的待追踪关键点的辅助位置信息,对当前帧图像进行关键点轨迹渲染。In step 505, according to the position information of the key points to be tracked in the current frame and each frame image before the current frame and the auxiliary position information of the key points to be tracked generated each time, key point trajectory rendering is performed on the current frame image.
在步骤506中,展示渲染后的当前帧图像。In step 506, the rendered current frame image is displayed.
上述步骤502~506与图1所示实施例中的步骤101~105相同,此处不再赘述。The foregoing steps 502 to 506 are the same as the steps 101 to 105 in the embodiment shown in FIG. 1 , and are not repeated here.
本公开的实施例提供的视频特效的展示方法,能够基于视频录制开始指令,清除存储的待追踪关键点的位置信息和待追踪关键点的辅助位置信息,或者将存储的纹理替换为空白的纹理,并继续执行获取当前帧图像和当前帧图像中的待追踪关键点步骤,使得用户能够通过简单的交互,即可实现为视频添加轨迹平滑且连续的关键点轨迹特效,进一步提高了用户体验。The method for displaying video special effects provided by the embodiments of the present disclosure can clear the stored position information of the key points to be tracked and the auxiliary position information of the key points to be tracked, or replace the stored textures with blank textures based on the video recording start instruction , and continue to perform the steps of obtaining the current frame image and the key points to be tracked in the current frame image, so that the user can add smooth and continuous key point trajectory effects to the video through simple interaction, which further improves the user experience.
图12~图13是根据一示例性实施例示出的一种视频特效的展示装置框图。12 to 13 are block diagrams of an apparatus for displaying video special effects according to an exemplary embodiment.
如图12所示,该装置1000包括第一获取单元121,第二获取单元122,生成单元123、渲染单元124和展示单元125。As shown in FIG. 12 , the apparatus 1000 includes a first acquiring unit 121 , a second acquiring unit 122 , a generating unit 123 , a rendering unit 124 and a displaying unit 125 .
该第一获取单元121被配置执行基于关键点轨迹特效打开指令,获取当前帧图像和当前帧图像中的待追踪关键点;The first obtaining unit 121 is configured to execute an instruction based on the keypoint track special effect opening, to obtain the current frame image and the to-be-tracked keypoint in the current frame image;
该第二获取单元122被配置执行获取当前帧图像中待追踪关键点的位置信息;The second obtaining unit 122 is configured to obtain the position information of the key points to be tracked in the current frame image;
该生成单元123被配置执行根据当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,生成待追踪关键点的辅助位置信息;The generating unit 123 is configured to generate auxiliary position information of the key point to be tracked according to the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image;
该渲染单元124被配置执行根据当前帧及当前帧之前每帧图像中待追踪关键点的位置信息和每次生成的待追踪关键点的辅助位置信息,对当前帧图像进行关键点轨迹渲染;The rendering unit 124 is configured to perform key point trajectory rendering on the current frame image according to the position information of the key point to be tracked in the current frame and each frame image before the current frame and the auxiliary position information of the key point to be tracked generated each time;
该展示单元125被配置执行展示渲染后的当前帧图像。The presentation unit 125 is configured to perform presentation of the rendered current frame image.
在本公开的实施例中,如图13所示,图12中的生成单元123,包括:生成子单元1231,被配置执行对当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息进行线性插值处理,生成待追踪关键点的辅助位置信息。In the embodiment of the present disclosure, as shown in FIG. 13 , the generating unit 123 in FIG. 12 includes: a generating subunit 1231 , which is configured to perform the analysis of the position information of the key points to be tracked in the current frame image and the position information of the key points to be tracked in the previous frame image. The position information of the key points to be tracked is subjected to linear interpolation processing to generate auxiliary position information of the key points to be tracked.
在本公开的实施例中,如图13所示,生成子单元1231,包括:获取模块12311,被配置执行根据当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,获取当前帧图像中待追踪关键点与上一帧图像中待追踪关键点之间的像素距离;第一确定模块12312,被配置为执行根据像素距离和预设的插值间隙,确定需插值的待追踪关键点的辅助位置信息的数量;第二确定模块12313,被配置为执行根据当前帧图像中待追踪关键点的位置信息、上一帧图像中待追踪关键点的位置信息和待追踪关键点的辅助位置信息的数量,确定待追踪关键点的辅助位置信息。In the embodiment of the present disclosure, as shown in FIG. 13 , the generating subunit 1231 includes: an acquiring module 12311, which is configured to execute the key points to be tracked according to the position information of the key points to be tracked in the current frame image and the key points to be tracked in the previous frame image. to obtain the pixel distance between the key point to be tracked in the current frame image and the key point to be tracked in the previous frame image; the first determination module 12312 is configured to perform a determination according to the pixel distance and the preset interpolation gap, determine The number of auxiliary position information of the key points to be tracked that needs to be interpolated; the second determination module 12313 is configured to execute the position information of the key points to be tracked in the current frame image, the position information of the key points to be tracked in the previous frame image, and The number of auxiliary position information of the key point to be tracked determines the auxiliary position information of the key point to be tracked.
在本公开的实施例中,如图13所示,图12中的渲染单元124,包括:第一渲染子单元1241,被配置为执行根据当前帧图像中待追踪关键点的位置信息和本次生成的待追踪关键点的辅助位置信息,对存储的纹理进行渲染,其中,存储的纹理为根据当前帧之前每帧图像中待追踪关键点的位置信息和本次之前每次生成的待追踪关键点的辅助位置信息进行渲染生成的;第二渲染子单元1242,被配置为执行将渲染后的纹理渲染到当前帧图像上。In an embodiment of the present disclosure, as shown in FIG. 13 , the rendering unit 124 in FIG. 12 includes: a first rendering sub-unit 1241 configured to The generated auxiliary position information of the key points to be tracked is rendered to the stored texture, where the stored texture is based on the position information of the key points to be tracked in each frame of the image before the current frame and the key to be tracked generated each time before this time. The auxiliary position information of the point is generated by rendering; the second rendering subunit 1242 is configured to perform rendering of the rendered texture onto the current frame image.
在本公开的实施例中,第一渲染子单元1241被配置为执行当前帧图像为第一帧图像时,存储的纹理为空白的纹理。In this embodiment of the present disclosure, the first rendering subunit 1241 is configured to execute a texture in which the stored texture is blank when the current frame image is the first frame image.
在本公开的实施例中,第一渲染子单元1241被配置为执行存储的纹理的尺寸与视频的尺寸一致。In an embodiment of the present disclosure, the first rendering sub-unit 1241 is configured to perform the storage of the size of the texture consistent with the size of the video.
在本公开的实施例中,第一获取单元121,还被配置为执行基于视频录制开始指令,清除存储的待追踪关键点的位置信息和待追踪关键点的辅助位置信息,或者将存储的纹理替换为空白的纹理,并继续执行获取当前帧图像和当前帧图像中的待追踪关键点步骤。In the embodiment of the present disclosure, the first obtaining unit 121 is further configured to execute a video recording start instruction, clear the stored position information of the key points to be tracked and the auxiliary position information of the key points to be tracked, or store the stored texture Replace it with a blank texture, and continue to perform the steps of obtaining the current frame image and the key points to be tracked in the current frame image.
在本公开的实施例中,第一获取单元121,还被配置为执行基于特效清除指令,清除存储的待追踪关键点的位置信息和待追踪关键点的辅助位置信息,或者将存储的纹理替换为空 白的纹理,并展示重新获取的当前帧图像。In the embodiment of the present disclosure, the first obtaining unit 121 is further configured to execute a special effect-based clearing instruction, clear the stored position information of the key points to be tracked and the auxiliary position information of the key points to be tracked, or replace the stored texture It is a blank texture and displays the re-acquired current frame image.
在本公开的实施例中,第一获取单元121,还被配置为执行基于特效恢复指令,继续执行获取当前帧图像和当前帧图像中的待追踪关键点步骤。In the embodiment of the present disclosure, the first obtaining unit 121 is further configured to execute the special effect-based restoration instruction, and continue to execute the step of obtaining the current frame image and the key points to be tracked in the current frame image.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
本公开的实施例提供的视频特效的展示装置,能够基于关键点轨迹特效打开指令,获取当前帧图像和当前帧图像中的待追踪关键点,并获取当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息,以生成待追踪关键点的辅助位置信息,进而根据当前帧及当前帧之前每帧图像中所述待追踪关键点的位置信息和每次生成的待追踪关键点的辅助位置信息,对当前帧图像进行关键点轨迹渲染,并将渲染后的当前帧图像进行展示,以实现视频特效的展示。由此,本公开能够通过对当前帧图像中待追踪关键点的位置信息和上一帧图像中待追踪关键点的位置信息进行线性插值处理,生成辅助位置信息,进而根据待追踪关键点的位置信息和辅助位置信息,对当前帧图像进行关键点轨迹渲染,使得展示出的渲染后的当前帧图像中关键点的轨迹平滑且连续,不再存在间隙。进一步地,本公开能够通过将每一帧图像中获取到的关键点直接进行关键点轨迹渲染,能够实现关键点轨迹的快速渲染、避免了渲染卡顿的技术问题,极大地缩短了视频特效展示过程的耗时。The display device for video special effects provided by the embodiments of the present disclosure can obtain the current frame image and the key points to be tracked in the current frame image based on the key point trajectory special effect opening instruction, and obtain the position information of the key points to be tracked in the current frame image and the position information of the key points to be tracked in the previous frame image to generate auxiliary position information of the key points to be tracked, and then according to the position information of the key points to be tracked in the current frame and each frame image before the current frame and each generation The auxiliary position information of the key points to be tracked, the key point trajectory rendering is performed on the current frame image, and the rendered current frame image is displayed to realize the display of video special effects. Therefore, the present disclosure can generate auxiliary position information by performing linear interpolation processing on the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image, and then according to the position of the key point to be tracked information and auxiliary position information, perform key point trajectory rendering on the current frame image, so that the displayed trajectory of the key points in the rendered current frame image is smooth and continuous, and there is no gap. Further, the present disclosure can directly render the key point trajectory through the key points obtained in each frame of image, which can realize the rapid rendering of the key point trajectory, avoid the technical problem of rendering stuck, and greatly shorten the display of video special effects. time-consuming process.
为了实现上述实施例,本公开还提供了一种电子设备,如图14所示,所述电子设备8000包括:处理器801;用于存储所述处理器801可执行指令的一个或多个存储器802;其中,所述处理器801被配置为执行上述实施例所述的视频特效的展示方法。处理器801和存储器802通过通信总线连接。In order to implement the above embodiments, the present disclosure further provides an electronic device. As shown in FIG. 14 , the electronic device 8000 includes: a processor 801 ; and one or more memories for storing executable instructions of the processor 801 802; wherein, the processor 801 is configured to execute the method for displaying video special effects described in the foregoing embodiments. The processor 801 and the memory 802 are connected by a communication bus.
为了实现上述实施例,本公开还提供了一种包括指令的存储介质,例如包括指令的存储器802,上述指令可由装置1000的处理器801执行以完成上述方法。可选地,存储介质可以是非临时性计算机可读存储介质,例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In order to implement the above-mentioned embodiments, the present disclosure also provides a storage medium including instructions, such as a memory 802 including instructions, and the above-mentioned instructions can be executed by the processor 801 of the apparatus 1000 to complete the above-mentioned method. Alternatively, the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage equipment, etc.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (20)

  1. 一种视频特效的展示方法,其特征在于,包括:A method for displaying video special effects, comprising:
    基于关键点轨迹特效打开指令,获取当前帧图像和所述当前帧图像中的待追踪关键点;Obtain the current frame image and the to-be-tracked key point in the current frame image based on the key point track special effect opening instruction;
    获取所述当前帧图像中所述待追踪关键点的位置信息;obtaining the position information of the key points to be tracked in the current frame image;
    根据所述当前帧图像中所述待追踪关键点的位置信息和上一帧图像中所述待追踪关键点的位置信息,生成所述待追踪关键点的辅助位置信息;generating auxiliary position information of the key point to be tracked according to the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image;
    根据当前帧及当前帧之前每帧图像中所述待追踪关键点的位置信息和每次生成的所述待追踪关键点的辅助位置信息,对所述当前帧图像进行关键点轨迹渲染;以及According to the position information of the key point to be tracked in the current frame and each frame image before the current frame and the auxiliary position information of the key point to be tracked generated each time, perform key point trajectory rendering on the image of the current frame; and
    展示渲染后的当前帧图像。Displays the rendered image of the current frame.
  2. 根据权利要求1所述的展示方法,其特征在于,所述根据所述当前帧图像中所述待追踪关键点的位置信息和上一帧图像中所述待追踪关键点的位置信息,生成所述待追踪关键点的辅助位置信息,包括:The display method according to claim 1, wherein the generating the Describe the auxiliary location information of the key points to be tracked, including:
    对所述当前帧图像中所述待追踪关键点的位置信息和所述上一帧图像中所述待追踪关键点的位置信息进行线性插值处理,生成所述待追踪关键点的辅助位置信息。Linear interpolation processing is performed on the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image to generate auxiliary position information of the key point to be tracked.
  3. 根据权利要求2所述的展示方法,其特征在于,所述对所述当前帧图像中所述待追踪关键点的位置信息和所述上一帧图像中所述待追踪关键点的位置信息进行线性插值处理,生成所述待追踪关键点的辅助位置信息,包括:The display method according to claim 2, characterized in that, the step is to perform position information on the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image. Linear interpolation processing to generate auxiliary position information of the key points to be tracked, including:
    根据所述当前帧图像中所述待追踪关键点的位置信息和所述上一帧图像中所述待追踪关键点的位置信息,获取所述当前帧图像中所述待追踪关键点与所述上一帧图像中所述待追踪关键点之间的像素距离;According to the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image, obtain the key point to be tracked in the current frame image and the key point to be tracked The pixel distance between the key points to be tracked in the previous frame of image;
    根据所述像素距离和预设的插值间隙,确定需插值的所述待追踪关键点的辅助位置信息的数量;According to the pixel distance and a preset interpolation gap, determine the amount of auxiliary position information of the key points to be tracked to be interpolated;
    根据所述当前帧图像中所述待追踪关键点的位置信息、所述上一帧图像中所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息的数量,确定所述待追踪关键点的辅助位置信息。Determine said Auxiliary position information of key points to be tracked.
  4. 根据权利要求1所述的展示方法,其特征在于,所述根据当前帧及当前帧之前每帧图像中所述待追踪关键点的位置信息和每次生成的所述待追踪关键点的辅助位置信息,对所述当前帧图像进行关键点轨迹渲染,包括:The display method according to claim 1, wherein the position information of the key point to be tracked in the current frame and each frame of images before the current frame and the auxiliary position of the key point to be tracked generated each time information, perform keypoint trajectory rendering on the current frame image, including:
    根据所述当前帧图像中所述待追踪关键点的位置信息和本次生成的所述待追踪关键点的辅助位置信息,对存储的纹理进行渲染,其中,所述存储的纹理为根据所述当前帧之前每帧图像中所述待追踪关键点的位置信息和本次之前每次生成的所述待追踪关键点的辅助位置信息进行渲染生成的;以及According to the position information of the key point to be tracked in the current frame image and the auxiliary position information of the key point to be tracked generated this time, the stored texture is rendered, wherein the stored texture is based on the Generated by rendering the position information of the key point to be tracked in each frame of the image before the current frame and the auxiliary position information of the key point to be tracked generated each time before this time; and
    将渲染后的纹理渲染到所述当前帧图像上。Render the rendered texture onto the current frame image.
  5. 根据权利要求4所述的展示方法,其特征在于,所述当前帧图像为第一帧图像时,所述存储的纹理为空白的纹理。The display method according to claim 4, wherein when the current frame image is the first frame image, the stored texture is a blank texture.
  6. 根据权利要求4所述的展示方法,其特征在于,所述存储的纹理的尺寸与视频的尺寸一致。The display method according to claim 4, wherein the size of the stored texture is consistent with the size of the video.
  7. 根据权利要求1或4所述的展示方法,其特征在于,还包括:The display method according to claim 1 or 4, further comprising:
    基于视频录制开始指令,清除存储的所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息,或者将所述存储的纹理替换为空白的纹理,并继续执行所述获取当前帧图像和所述当前帧图像中的待追踪关键点步骤。Based on the video recording start instruction, clear the stored position information of the key point to be tracked and the auxiliary position information of the key point to be tracked, or replace the stored texture with a blank texture, and continue to execute the acquisition of the current Steps of key points to be tracked in the frame image and the current frame image.
  8. 根据权利要求1或4所述的展示方法,其特征在于,还包括:The display method according to claim 1 or 4, further comprising:
    基于特效清除指令,清除存储的所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息,或者将所述存储的纹理替换为空白的纹理,并展示重新获取的当前帧图像。Based on the special effect clear instruction, clear the stored position information of the key point to be tracked and the auxiliary position information of the key point to be tracked, or replace the stored texture with a blank texture, and display the re-acquired current frame image .
  9. 根据权利要求8所述的展示方法,其特征在于,还包括:The display method according to claim 8, further comprising:
    基于特效恢复指令,继续执行所述获取当前帧图像和所述当前帧图像中的待追踪关键点步骤。Based on the special effect restoration instruction, the step of obtaining the current frame image and the key points to be tracked in the current frame image is continued.
  10. 一种视频特效的展示装置,其特征在于,包括:A display device for video special effects, comprising:
    第一获取单元,被配置为执行基于关键点轨迹特效打开指令,获取当前帧图像和所述当前帧图像中的待追踪关键点;a first acquisition unit, configured to execute an instruction based on the keypoint track special effect opening, to acquire the current frame image and the to-be-tracked keypoint in the current frame image;
    第二获取单元,被配置为执行获取所述当前帧图像中所述待追踪关键点的位置信息;a second acquiring unit, configured to perform acquiring the position information of the key points to be tracked in the current frame image;
    生成单元,被配置为执行根据所述当前帧图像中所述待追踪关键点的位置信息和上一帧图像中所述待追踪关键点的位置信息,生成所述待追踪关键点的辅助位置信息;A generating unit configured to generate auxiliary position information of the key point to be tracked according to the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image ;
    渲染单元,被配置为执行根据当前帧及当前帧之前每帧图像中所述待追踪关键点的位置 信息和每次生成的所述待追踪关键点的辅助位置信息,对所述当前帧图像进行关键点轨迹渲染;以及The rendering unit is configured to perform the current frame image according to the position information of the key point to be tracked in the current frame and each frame image before the current frame and the auxiliary position information of the key point to be tracked generated each time. key trajectory rendering; and
    展示单元,被配置为执行展示渲染后的当前帧图像。The presentation unit is configured to perform presentation of the rendered current frame image.
  11. 根据权利要求10所述的展示装置,其特征在于,所述生成单元,包括:The display device according to claim 10, wherein the generating unit comprises:
    生成子单元,被配置为执行对所述当前帧图像中所述待追踪关键点的位置信息和所述上一帧图像中所述待追踪关键点的位置信息进行线性插值处理,生成所述待追踪关键点的辅助位置信息。A generating subunit, configured to perform linear interpolation processing on the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image, to generate the to-be-tracked key point Auxiliary position information for tracking key points.
  12. 根据权利要求11所述的展示装置,其特征在于,所述生成子单元,包括:The display device according to claim 11, wherein the generating subunit comprises:
    获取模块,被配置为执行根据所述当前帧图像中所述待追踪关键点的位置信息和所述上一帧图像中所述待追踪关键点的位置信息,获取所述当前帧图像中所述待追踪关键点与所述上一帧图像中所述待追踪关键点之间的像素距离;The acquisition module is configured to perform, according to the position information of the key point to be tracked in the current frame image and the position information of the key point to be tracked in the previous frame image, to obtain the information in the current frame image. the pixel distance between the key point to be tracked and the key point to be tracked in the previous frame of image;
    第一确定模块,被配置为执行根据所述像素距离和预设的插值间隙,确定需插值的所述待追踪关键点的辅助位置信息的数量;a first determination module, configured to determine the number of auxiliary position information of the to-be-tracked key point to be interpolated according to the pixel distance and a preset interpolation gap;
    第二确定模块,被配置为执行根据所述当前帧图像中所述待追踪关键点的位置信息、所述上一帧图像中所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息的数量,确定所述待追踪关键点的辅助位置信息。The second determination module is configured to perform a calculation according to the position information of the key point to be tracked in the current frame image, the position information of the key point to be tracked in the previous frame image, and the key point to be tracked. The quantity of auxiliary position information determines the auxiliary position information of the key point to be tracked.
  13. 根据权利要求10所述的展示装置,其特征在于,所述渲染单元,包括:The display device according to claim 10, wherein the rendering unit comprises:
    第一渲染子单元,被配置为执行根据所述当前帧图像中所述待追踪关键点的位置信息和本次生成的所述待追踪关键点的辅助位置信息,对存储的纹理进行渲染,其中,所述存储的纹理为根据所述当前帧之前每帧图像中所述待追踪关键点的位置信息和本次之前每次生成的所述待追踪关键点的辅助位置信息进行渲染生成的;以及The first rendering subunit is configured to perform rendering to the stored texture according to the position information of the key point to be tracked in the current frame image and the auxiliary position information of the key point to be tracked generated this time, wherein , the stored texture is generated by rendering according to the position information of the key points to be tracked in each frame image before the current frame and the auxiliary position information of the key points to be tracked generated each time before this time; and
    第二渲染子单元,被配置为执行将渲染后的纹理渲染到所述当前帧图像上。The second rendering subunit is configured to perform rendering of the rendered texture onto the current frame image.
  14. 根据权利要求13所述的展示装置,其特征在于,所述当前帧图像为第一帧图像时,所述存储的纹理为空白的纹理。The display device according to claim 13, wherein when the current frame image is the first frame image, the stored texture is a blank texture.
  15. 根据权利要求13所述的展示装置,其特征在于,所述存储的纹理的尺寸与视频的尺寸一致。The display device according to claim 13, wherein the size of the stored texture is consistent with the size of the video.
  16. 根据权利要求10或13所述的展示装置,其特征在于,所述第一获取单元还被配置为执行:The display device according to claim 10 or 13, wherein the first obtaining unit is further configured to execute:
    基于视频录制开始指令,清除存储的所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息,或者将所述存储的纹理替换为空白的纹理,并继续执行所述获取当前帧图像和所述当前帧图像中的待追踪关键点步骤。Based on the video recording start instruction, clear the stored position information of the key point to be tracked and the auxiliary position information of the key point to be tracked, or replace the stored texture with a blank texture, and continue to execute the acquisition of the current Steps of key points to be tracked in the frame image and the current frame image.
  17. 根据权利要求10或13所述的展示装置,其特征在于,所述第一获取单元还被配置为执行:The display device according to claim 10 or 13, wherein the first obtaining unit is further configured to execute:
    基于特效清除指令,清除存储的所述待追踪关键点的位置信息和所述待追踪关键点的辅助位置信息,或者将所述存储的纹理替换为空白的纹理,并展示重新获取的当前帧图像。Based on the special effect clear instruction, clear the stored position information of the key point to be tracked and the auxiliary position information of the key point to be tracked, or replace the stored texture with a blank texture, and display the re-acquired current frame image .
  18. 根据权利要求17所述的展示装置,其特征在于,所述第一获取单元还被配置为执行:The display device according to claim 17, wherein the first obtaining unit is further configured to execute:
    基于特效恢复指令,继续执行所述获取当前帧图像和所述当前帧图像中的待追踪关键点步骤。Based on the special effect restoration instruction, the step of obtaining the current frame image and the key points to be tracked in the current frame image is continued.
  19. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;a memory for storing the processor-executable instructions;
    其中,所述处理器被配置为执行所述指令,以实现如权利要求1至9中任一项所述的视频特效的展示方法。Wherein, the processor is configured to execute the instructions to implement the method for displaying video special effects according to any one of claims 1 to 9.
  20. 一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如权利要求1至9中任一项所述的视频特效的展示方法。A storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method for displaying video special effects according to any one of claims 1 to 9.
PCT/CN2021/103299 2020-07-01 2021-06-29 Method and apparatus for displaying video special effect, and electronic device and storage medium WO2022002082A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010624935.2A CN111954055B (en) 2020-07-01 2020-07-01 Video special effect display method and device, electronic equipment and storage medium
CN202010624935.2 2020-07-01

Publications (1)

Publication Number Publication Date
WO2022002082A1 true WO2022002082A1 (en) 2022-01-06

Family

ID=73337861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/103299 WO2022002082A1 (en) 2020-07-01 2021-06-29 Method and apparatus for displaying video special effect, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN111954055B (en)
WO (1) WO2022002082A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111954055B (en) * 2020-07-01 2022-09-02 北京达佳互联信息技术有限公司 Video special effect display method and device, electronic equipment and storage medium
CN112929582A (en) * 2021-02-04 2021-06-08 北京字跳网络技术有限公司 Special effect display method, device, equipment and medium
CN113160244B (en) * 2021-03-24 2024-03-15 北京达佳互联信息技术有限公司 Video processing method, device, electronic equipment and storage medium
WO2022199102A1 (en) * 2021-03-26 2022-09-29 北京达佳互联信息技术有限公司 Image processing method and device
CN114170632A (en) * 2021-12-03 2022-03-11 北京字节跳动网络技术有限公司 Image processing method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003058892A (en) * 2001-08-09 2003-02-28 Techno Scope:Kk Device and method for processing animation
CN102811331A (en) * 2011-06-01 2012-12-05 索尼公司 Image processing apparatus, image processing method, and program
CN109102530A (en) * 2018-08-21 2018-12-28 北京字节跳动网络技术有限公司 Motion profile method for drafting, device, equipment and storage medium
CN109646957A (en) * 2018-12-19 2019-04-19 北京像素软件科技股份有限公司 Special efficacy implementation method of trailing and device
CN110035236A (en) * 2019-03-26 2019-07-19 北京字节跳动网络技术有限公司 Image processing method, device and electronic equipment
CN110047124A (en) * 2019-04-23 2019-07-23 北京字节跳动网络技术有限公司 Method, apparatus, electronic equipment and the computer readable storage medium of render video
CN111954055A (en) * 2020-07-01 2020-11-17 北京达佳互联信息技术有限公司 Video special effect display method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376576B (en) * 2014-09-04 2018-06-05 华为技术有限公司 A kind of method for tracking target and device
CN108229282A (en) * 2017-05-05 2018-06-29 商汤集团有限公司 Critical point detection method, apparatus, storage medium and electronic equipment
CN107948735B (en) * 2017-12-06 2020-09-25 北京乐我无限科技有限责任公司 Video playing method and device and electronic equipment
CN109068053B (en) * 2018-07-27 2020-12-04 香港乐蜜有限公司 Image special effect display method and device and electronic equipment
CN109688346B (en) * 2018-12-28 2021-04-27 广州方硅信息技术有限公司 Method, device and equipment for rendering trailing special effect and storage medium
CN110399844A (en) * 2019-07-29 2019-11-01 南京图玩智能科技有限公司 It is a kind of to be identified and method for tracing and system applied to cross-platform face key point

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003058892A (en) * 2001-08-09 2003-02-28 Techno Scope:Kk Device and method for processing animation
CN102811331A (en) * 2011-06-01 2012-12-05 索尼公司 Image processing apparatus, image processing method, and program
CN109102530A (en) * 2018-08-21 2018-12-28 北京字节跳动网络技术有限公司 Motion profile method for drafting, device, equipment and storage medium
CN109646957A (en) * 2018-12-19 2019-04-19 北京像素软件科技股份有限公司 Special efficacy implementation method of trailing and device
CN110035236A (en) * 2019-03-26 2019-07-19 北京字节跳动网络技术有限公司 Image processing method, device and electronic equipment
CN110047124A (en) * 2019-04-23 2019-07-23 北京字节跳动网络技术有限公司 Method, apparatus, electronic equipment and the computer readable storage medium of render video
CN111954055A (en) * 2020-07-01 2020-11-17 北京达佳互联信息技术有限公司 Video special effect display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111954055B (en) 2022-09-02
CN111954055A (en) 2020-11-17

Similar Documents

Publication Publication Date Title
WO2022002082A1 (en) Method and apparatus for displaying video special effect, and electronic device and storage medium
US11115565B2 (en) User feedback for real-time checking and improving quality of scanned image
US11756223B2 (en) Depth-aware photo editing
EP3092603B1 (en) Dynamic updating of composite images
US9516214B2 (en) Information processing device and information processing method
JP2021029044A (en) Information processing device, information processing method, program
US20240078703A1 (en) Personalized scene image processing method, apparatus and storage medium
KR20110091126A (en) Augmented reality book station based augmented reality system and method, augmented reality processing apparatus for realizing the same
WO2022095468A1 (en) Display method and apparatus in augmented reality scene, device, medium, and program
CN108961423B (en) Virtual information processing method, device, equipment and storage medium
WO2019128742A1 (en) Image processing method, device, terminal and storage medium
US10282819B2 (en) Image display control to grasp information about image
KR20130112578A (en) Appratus and method for providing augmented reality information based on user
JP2018113683A (en) Image processing apparatus, image processing method, and program
TW201610916A (en) Method and apparatus for interactive video segmentation
US9412042B2 (en) Interaction with and display of photographic images in an image stack
CN113194253A (en) Shooting method and device for removing image reflection and electronic equipment
JP2016066187A (en) Image processor
KR101308184B1 (en) Augmented reality apparatus and method of windows form
WO2021217385A1 (en) Video processing method and apparatus
CN113891137B (en) Bullet screen display method and system during switching of horizontal and vertical video screens
CN108510433B (en) Space display method and device and terminal
TW201928761A (en) Apparatus and method of image capture
CN115278084A (en) Image processing method, image processing device, electronic equipment and storage medium
US20170330039A1 (en) Frame extracting method, non-transitory computer-readable storage medium, and frame extracting apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21833676

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20-04-2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21833676

Country of ref document: EP

Kind code of ref document: A1