[go: up one dir, main page]

CN106161988A - A kind of augmented reality video generation method - Google Patents

A kind of augmented reality video generation method Download PDF

Info

Publication number
CN106161988A
CN106161988A CN201510136598.1A CN201510136598A CN106161988A CN 106161988 A CN106161988 A CN 106161988A CN 201510136598 A CN201510136598 A CN 201510136598A CN 106161988 A CN106161988 A CN 106161988A
Authority
CN
China
Prior art keywords
video
portrait
generation method
flowing
augmented reality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510136598.1A
Other languages
Chinese (zh)
Inventor
宋海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Idealsee Technology Co Ltd
Original Assignee
Chengdu Idealsee Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Idealsee Technology Co Ltd filed Critical Chengdu Idealsee Technology Co Ltd
Priority to CN201510136598.1A priority Critical patent/CN106161988A/en
Publication of CN106161988A publication Critical patent/CN106161988A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of augmented reality video generation method, including: video camera shooting comprises the first video-frequency band of portrait image;In the first video-frequency band, identify and separate portrait image, form portrait video flowing;The template video of described portrait video flowing with user's selection is synthetically formed result video, and the real-time video that the present invention utilizes the video superimpose technology of augmented reality to realize on mobile phone merges, it is convenient to provide experience and the service of augmented reality for people.

Description

一种增强现实视频生成方法A method for generating augmented reality video

技术领域technical field

本发明涉及视频图像处理技术领域,尤其涉及一种增强现实视频生成方法。The present invention relates to the technical field of video image processing, in particular to an augmented reality video generation method.

背景技术Background technique

近年来移动智能终端的计算能力高速发展,多媒体处理性能不断提高,同时终端集成了摄像头、GPS等模块,为增强现实技术在移动智能终端上的应用提供了有利条件,结合移动互联网络的实时在线、智能感知、广覆盖等特性,可研究出面向移动智能终端的增强现实系统的具体应用方案,借助移动互联网络实现增强现实技术的移动化应用,形成移动互联网上新的增值业务。增强现实系统具有真实与虚拟相结合、实时交互、三维注册的特点,可使系统的窗口、图形与现实环境中的对象产生叠映的视觉效果,给人们带来一种增强现实场景的真实体验。In recent years, the computing power of mobile intelligent terminals has developed rapidly, and the multimedia processing performance has been continuously improved. At the same time, the terminal integrates modules such as cameras and GPS, which provides favorable conditions for the application of augmented reality technology on mobile intelligent terminals. Combined with the real-time online , intelligent perception, wide coverage and other characteristics, can study the specific application scheme of the augmented reality system for mobile intelligent terminals, realize the mobile application of augmented reality technology with the help of mobile Internet, and form new value-added services on the mobile Internet. The augmented reality system has the characteristics of combination of real and virtual, real-time interaction, and three-dimensional registration, which can make the system's windows, graphics and objects in the real environment produce superimposed visual effects, bringing people a real experience of augmented reality scenes .

发明内容Contents of the invention

本发明的目的是提供一种增强现实视频生成方法,利用增强现实的视频叠加技术实现手机上的实时视频合并,可方便地为人们提供增强现实的体验与服务。The purpose of the present invention is to provide a method for generating augmented reality video, which uses augmented reality video overlay technology to realize real-time video merger on mobile phones, and can conveniently provide people with augmented reality experience and services.

为了实现上述发明目的,本发明提供了一种增强现实视频生成方法,包括:In order to achieve the above object of the invention, the present invention provides a method for generating augmented reality video, including:

摄像机拍摄包含人像图像的第一视频段,在第一视频段内识别并分离人像图像,形成人像视频流;The camera captures the first video segment containing the portrait image, identifies and separates the portrait image in the first video segment, and forms a portrait video stream;

将所述人像视频流与用户选择的模板视频合成形成结果视频。Combining the portrait video stream with the template video selected by the user to form a result video.

优选的,所述在第一视频段内识别并分离人像图像,形成人像视频流具体为:对每一帧的人像进行边缘检测,并将位于所述人像边缘内部的像素点认定为目标像素,将每一帧中的目标像素提取出来,形成人像视频流。Preferably, the identifying and separating the portrait image in the first video segment to form the portrait video stream specifically includes: performing edge detection on the portrait of each frame, and identifying the pixel located inside the edge of the portrait as the target pixel, The target pixels in each frame are extracted to form a portrait video stream.

优选的,所述人像视频流和模板视频帧数相同,人像视频流和模板视频进行像素相加,实现视频合并。Preferably, the number of frames of the portrait video stream and the template video is the same, and pixel addition is performed on the portrait video stream and the template video to realize video merging.

优选的,人像视频流中的人物图像的像素点作为结果视频中的前景视频。Preferably, the pixels of the person image in the portrait video stream are used as the foreground video in the result video.

优选的,将所述人像视频流与模板视频流合成形成结果视频流,所述人像视频流在结果视频流中处于预定的位置。Preferably, the portrait video stream is synthesized with the template video stream to form a result video stream, and the portrait video stream is at a predetermined position in the result video stream.

优选的,将用户施加于目标人像的增强数据叠加于结果视频的视频帧图像上,所述增强数据包括交互元素和\或交互事件,其中交互元素包括图像、音频、网页、文本、3D模型、URI地址中的一种或多种。Preferably, the enhanced data applied by the user to the target portrait is superimposed on the video frame image of the result video, the enhanced data includes interactive elements and/or interactive events, wherein the interactive elements include images, audio, web pages, text, 3D models, One or more of URI addresses.

优选的,所述模板视频以配置文件形式保存在本地,或模板视频以配置文件形式保存在远端服务器上供本地客户端下载。Preferably, the template video is saved locally as a configuration file, or the template video is saved as a configuration file on a remote server for the local client to download.

本发明利用增强现实的视频叠加技术实现手机上的实时视频合并,可方便地为人们提供增强现实的体验与服务。能将随意拍摄的人物视频,背景进行转换,例如用户可以在家里拍摄一段人物视频,然后将视频背景转换为外太空,让人感受星际漫步。The invention utilizes the augmented reality video overlay technology to realize the real-time video combination on the mobile phone, and can conveniently provide augmented reality experiences and services for people. It can convert the background of the character video taken at will. For example, the user can shoot a character video at home, and then convert the video background to outer space, making people feel interstellar.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图:In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings on the premise of not paying creative labor:

图1为本发明实施例增强现实视频生成方法流程示意图。FIG. 1 is a schematic flowchart of a method for generating an augmented reality video according to an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

下面结合图1详细说明本发明实施例。An embodiment of the present invention will be described in detail below with reference to FIG. 1 .

参见图1,为本发明实施例增强现实视频生成方法流程示意图,本实施例增强现实视频生成方法包括如下步骤:Referring to FIG. 1 , it is a schematic flow chart of a method for generating an augmented reality video in an embodiment of the present invention. The method for generating an augmented reality video in this embodiment includes the following steps:

S101:摄像机拍摄包含人像图像的第一视频段;S101: The camera shoots a first video segment containing a portrait image;

S102:在第一视频段内识别并分离人像图像,形成人像视频流;本步骤中,识别并分离人像图像可以采用对每一帧的人像进行边缘检测,并将位于所述人像边缘内部的像素点认定为目标像素,将每一帧中的目标像素提取出来,形成人像视频流。S102: Identify and separate the portrait image in the first video segment to form a portrait video stream; in this step, identifying and separating the portrait image can adopt edge detection for the portrait of each frame, and place the pixels inside the edge of the portrait The point is identified as the target pixel, and the target pixel in each frame is extracted to form a portrait video stream.

S103:将所述人像视频流与用户选择的模板视频合成形成结果视频。本实施例中,所拍摄的第一视频段帧数需要与模板视频帧数相同,以使得到的人像视频流和模板视频帧数相同,视频合成采用人像视频流和模板视频进行像素相加,实现视频合并。S103: Synthesize the portrait video stream with the template video selected by the user to form a result video. In this embodiment, the number of frames of the first video segment taken needs to be the same as the number of template video frames, so that the obtained portrait video stream and the template video frame number are the same, and video synthesis uses the portrait video stream and template video for pixel addition. Implement video merging.

为了得到较好的效果,优选将人像视频流中的人物图像的像素点作为结果视频中的前景视频。In order to obtain a better effect, it is preferable to use the pixels of the person image in the portrait video stream as the foreground video in the resulting video.

在另一实施例中,为了得到更好效果的结果视频,将所述人像视频流与模板视频流合成形成结果视频流时,将所述人像视频流设定在结果视频流中预定的位置。In another embodiment, in order to obtain a better result video, when the portrait video stream is synthesized with the template video stream to form a result video stream, the portrait video stream is set at a predetermined position in the result video stream.

在另一实施例中,为了使结果视频具有交互性,还可以将用户施加于目标人像的增强数据叠加于结果视频的视频帧图像上,所述增强数据包括交互元素和\或交互事件,其中交互元素包括图像、音频、网页、文本、3D模型、URI地址中的一种或多种。当增加了交互元素和交互事件后,播放才用本方法生成的增强现实视频时,用户能进行交互,例如点击人物服饰,即可进入该服饰购买链接。In another embodiment, in order to make the resulting video interactive, the enhanced data applied by the user to the target portrait can also be superimposed on the video frame image of the resulting video, the enhanced data includes interactive elements and/or interactive events, wherein The interactive elements include one or more of images, audio, web pages, texts, 3D models, and URI addresses. When the augmented reality video generated by this method is played after adding interactive elements and interactive events, the user can interact, for example, by clicking on a character's clothing, the user can enter the clothing purchase link.

本发明实施例中,所述模板视频以配置文件形式保存在本地,或模板视频以配置文件形式保存在远端服务器上供本地客户端下载,模板视频通常是由软件服务提供商提供,也可以由其他用户制作分享,只需要满足预定格式即可。In the embodiment of the present invention, the template video is saved locally in the form of a configuration file, or the template video is saved in the form of a configuration file on a remote server for the local client to download. The template video is usually provided by a software service provider, or it can be Created and shared by other users, only need to meet the predetermined format.

本发明利用增强现实的视频叠加技术实现手机上的实时视频合并,可方便地为人们提供增强现实的体验与服务。能将随意拍摄的人物视频,背景进行转换,例如用户可以在家里拍摄一段人物视频,然后将视频背景转换为外太空,让人感受星际漫步。The invention utilizes the augmented reality video overlay technology to realize the real-time video combination on the mobile phone, and can conveniently provide augmented reality experiences and services for people. It can convert the background of the character video taken at will. For example, the user can shoot a character video at home, and then convert the video background to outer space, making people feel interstellar.

本说明书中公开的所有特征,或公开的所有方法或过程中的步骤,除了互相排斥的特征和/或步骤以外,均可以以任何方式组合。All features disclosed in this specification, or steps in all methods or processes disclosed, may be combined in any manner, except for mutually exclusive features and/or steps.

本说明书(包括任何附加权利要求、摘要和附图)中公开的任一特征,除非特别叙述,均可被其他等效或具有类似目的的替代特征加以替换。即,除非特别叙述,每个特征只是一系列等效或类似特征中的一个例子而已。Any feature disclosed in this specification (including any appended claims, abstract and drawings), unless expressly stated otherwise, may be replaced by alternative features which are equivalent or serve a similar purpose. That is, unless expressly stated otherwise, each feature is one example only of a series of equivalent or similar features.

本发明并不局限于前述的具体实施方式。本发明扩展到任何在本说明书中披露的新特征或任何新的组合,以及披露的任一新的方法或过程的步骤或任何新的组合。The present invention is not limited to the foregoing specific embodiments. The present invention extends to any new feature or any new combination disclosed in this specification, and any new method or process step or any new combination disclosed.

Claims (7)

1. an augmented reality video generation method, it is characterised in that including:
Video camera shooting comprises the first video-frequency band of portrait image;
In the first video-frequency band, identify and separate portrait image, form portrait video flowing;
The template video of described portrait video flowing with user's selection is synthetically formed result video.
2. video generation method as claimed in claim 1, it is characterised in that: described in the first video-frequency band Identify and separate portrait image, form portrait video flowing particularly as follows: the portrait of each frame is carried out rim detection, And will be located in the pixel within described portrait edge and regard as object pixel, by the object pixel in each frame Extract, form portrait video flowing.
3. video generation method as claimed in claim 2, it is characterised in that: described portrait video flowing and mould Plate video frame number is identical, and portrait video flowing and template video carry out pixel addition, it is achieved video merges.
4. video generation method as claimed in claim 3, it is characterised in that: the personage in portrait video flowing The pixel of image is as the foreground video in result video.
5. video generation method as claimed in claim 4, it is characterised in that: by described portrait video flowing with Template video stream is synthetically formed result video flowing, and described portrait video flowing is in predetermined in result video flowing Position.
6. the video generation method as according to any one of Claims 1-4, it is characterised in that by user Put on target person picture strengthen data investigation on the video frame images of result video, described enhancing packet Include interactive elements and or alternative events, wherein interactive elements includes image, audio frequency, webpage, text, 3D One or more in model, URI address.
7. video generation method as claimed in claim 1, it is characterised in that described template video is with configuration Document form is saved in this locality, or is saved on far-end server for local client download.
CN201510136598.1A 2015-03-26 2015-03-26 A kind of augmented reality video generation method Pending CN106161988A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510136598.1A CN106161988A (en) 2015-03-26 2015-03-26 A kind of augmented reality video generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510136598.1A CN106161988A (en) 2015-03-26 2015-03-26 A kind of augmented reality video generation method

Publications (1)

Publication Number Publication Date
CN106161988A true CN106161988A (en) 2016-11-23

Family

ID=57339863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510136598.1A Pending CN106161988A (en) 2015-03-26 2015-03-26 A kind of augmented reality video generation method

Country Status (1)

Country Link
CN (1) CN106161988A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713713A (en) * 2016-12-30 2017-05-24 刘涵 LED full color display screen for augmented reality editing and playing and method for augmented reality editing and playing of LED full color display screen
CN107818459A (en) * 2017-10-30 2018-03-20 努比亚技术有限公司 Red packet sending method, terminal and storage medium based on augmented reality
CN108230448A (en) * 2017-12-29 2018-06-29 光锐恒宇(北京)科技有限公司 Implementation method, device and the computer readable storage medium of augmented reality AR
WO2018133692A1 (en) * 2017-01-17 2018-07-26 腾讯科技(深圳)有限公司 Method for achieving augmented reality, computer device and storage medium
CN108965743A (en) * 2018-08-21 2018-12-07 百度在线网络技术(北京)有限公司 Image synthesizing method, device and readable storage medium storing program for executing based on the segmentation of front and back scape
CN109168026A (en) * 2018-10-25 2019-01-08 北京字节跳动网络技术有限公司 Instant video display methods, device, terminal device and storage medium
CN110099286A (en) * 2019-04-26 2019-08-06 广东虎彩影像有限公司 Video processing system
CN110136363A (en) * 2019-05-08 2019-08-16 深圳市朗形网络科技有限公司 Self-service entertainment video production and DIY cultural and creative souvenir customization equipment
CN110855905A (en) * 2019-11-29 2020-02-28 联想(北京)有限公司 Video processing method and device and electronic equipment
CN111182348A (en) * 2018-11-09 2020-05-19 阿里巴巴集团控股有限公司 Live broadcast picture display method and device
CN112188113A (en) * 2019-07-01 2021-01-05 北京新唐思创教育科技有限公司 Video decomposition method and device, and terminal
CN115250340A (en) * 2021-04-26 2022-10-28 海信集团控股股份有限公司 MV recording method and display device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248830A (en) * 2013-04-10 2013-08-14 东南大学 Real-time video combination method for augmented reality scene of mobile intelligent terminal
JP2013535889A (en) * 2010-07-21 2013-09-12 トムソン ライセンシング Method and apparatus for providing auxiliary content in a three-dimensional communication system
CN203522894U (en) * 2013-10-17 2014-04-02 上海基美文化传媒股份有限公司 Display screen employing technology of augmented reality
CN104394324A (en) * 2014-12-09 2015-03-04 成都理想境界科技有限公司 Special-effect video generation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013535889A (en) * 2010-07-21 2013-09-12 トムソン ライセンシング Method and apparatus for providing auxiliary content in a three-dimensional communication system
CN103248830A (en) * 2013-04-10 2013-08-14 东南大学 Real-time video combination method for augmented reality scene of mobile intelligent terminal
CN203522894U (en) * 2013-10-17 2014-04-02 上海基美文化传媒股份有限公司 Display screen employing technology of augmented reality
CN104394324A (en) * 2014-12-09 2015-03-04 成都理想境界科技有限公司 Special-effect video generation method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713713A (en) * 2016-12-30 2017-05-24 刘涵 LED full color display screen for augmented reality editing and playing and method for augmented reality editing and playing of LED full color display screen
WO2018133692A1 (en) * 2017-01-17 2018-07-26 腾讯科技(深圳)有限公司 Method for achieving augmented reality, computer device and storage medium
CN107818459A (en) * 2017-10-30 2018-03-20 努比亚技术有限公司 Red packet sending method, terminal and storage medium based on augmented reality
CN108230448A (en) * 2017-12-29 2018-06-29 光锐恒宇(北京)科技有限公司 Implementation method, device and the computer readable storage medium of augmented reality AR
CN108965743A (en) * 2018-08-21 2018-12-07 百度在线网络技术(北京)有限公司 Image synthesizing method, device and readable storage medium storing program for executing based on the segmentation of front and back scape
CN109168026A (en) * 2018-10-25 2019-01-08 北京字节跳动网络技术有限公司 Instant video display methods, device, terminal device and storage medium
CN111182348A (en) * 2018-11-09 2020-05-19 阿里巴巴集团控股有限公司 Live broadcast picture display method and device
CN110099286A (en) * 2019-04-26 2019-08-06 广东虎彩影像有限公司 Video processing system
CN110136363A (en) * 2019-05-08 2019-08-16 深圳市朗形网络科技有限公司 Self-service entertainment video production and DIY cultural and creative souvenir customization equipment
CN112188113A (en) * 2019-07-01 2021-01-05 北京新唐思创教育科技有限公司 Video decomposition method and device, and terminal
CN112188113B (en) * 2019-07-01 2022-05-17 北京新唐思创教育科技有限公司 Video decomposition method and device, and terminal
CN110855905A (en) * 2019-11-29 2020-02-28 联想(北京)有限公司 Video processing method and device and electronic equipment
CN115250340A (en) * 2021-04-26 2022-10-28 海信集团控股股份有限公司 MV recording method and display device
CN115250340B (en) * 2021-04-26 2025-04-08 海信集团控股股份有限公司 MV recording method and display equipment

Similar Documents

Publication Publication Date Title
CN106161988A (en) A kind of augmented reality video generation method
CN102821323B (en) Video playback method, system and mobile terminal based on augmented reality technology
CN113240782B (en) Streaming media generation method and device based on virtual roles
CN108737882B (en) Image display method, image display device, storage medium and electronic device
CN107222529B (en) Augmented reality processing method, WEB module, terminal and cloud server
CN105657294A (en) Method and device for presenting virtual special effect on mobile terminal
CN106162137B (en) Virtual visual point synthesizing method and device
CN108322832B (en) Comment method and device and electronic equipment
US20200302664A1 (en) Creating and displaying multi-layered augemented reality
CN104778654A (en) Intangible cultural heritage digital display system and method thereof
CN106303289A (en) A kind of real object and virtual scene are merged the method for display, Apparatus and system
CN108134945B (en) AR service processing method, AR service processing device and terminal
CN105824412A (en) Method and device for presenting customized virtual special effects on mobile terminal
CN106254784A (en) A kind of method and device of Video processing
CN102387311A (en) Device for synthesizing video images and method for synthesizing video images
CN103248830A (en) Real-time video combination method for augmented reality scene of mobile intelligent terminal
CN113382275A (en) Live broadcast data generation method and device, storage medium and electronic equipment
CN103959220A (en) Method for achieving augmented reality, and user equipment
CN112492231A (en) Remote interaction method, device, electronic equipment and computer readable storage medium
CN114998935A (en) Image processing method, image processing device, computer equipment and storage medium
CN116801037A (en) Augmented reality live broadcast method for projecting image of live person to remote real environment
CN106503174A (en) A kind of environment Visualization method and system modeled based on Network Three-dimensional
CN108320331A (en) A kind of method and apparatus for the augmented reality video information generating user's scene
KR20190030938A (en) Augmented reality device, method and computer program for displaying multi-layer
KR101221540B1 (en) Interactive media mapping system and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161123