CN106203286B - Augmented reality content acquisition method and device and mobile terminal - Google Patents
Augmented reality content acquisition method and device and mobile terminal Download PDFInfo
- Publication number
- CN106203286B CN106203286B CN201610507206.2A CN201610507206A CN106203286B CN 106203286 B CN106203286 B CN 106203286B CN 201610507206 A CN201610507206 A CN 201610507206A CN 106203286 B CN106203286 B CN 106203286B
- Authority
- CN
- China
- Prior art keywords
- content
- target
- augmented reality
- enhanced
- augmented
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/20—Scenes; Scene-specific elements in augmented reality scenes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2621—Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明实施例公开了一种增强现实的内容获取方法、装置及移动终端。该方法包括:获取用户选择的目标图片;确定所述目标图片中的目标内容;获取与所述目标内容相对应的增强内容。本发明实施例通过采用上述技术方案,用户可根据自己的喜好选择已有图片作为目标图片,通过获取与该已有图片中某个内容相对应的增强内容的方式来实现自动获取增强内容,满足用户快速获取预期的增强内容的需求。
The embodiment of the present invention discloses a method, device and mobile terminal for obtaining content of augmented reality. The method comprises: obtaining a target picture selected by a user; determining a target content in the target picture; and obtaining enhanced content corresponding to the target content. The embodiment of the present invention adopts the above technical solution, so that a user can select an existing picture as a target picture according to his or her own preferences, and automatically obtain the enhanced content by obtaining the enhanced content corresponding to a certain content in the existing picture, thereby meeting the user's need to quickly obtain the expected enhanced content.
Description
技术领域technical field
本发明实施例涉及移动终端技术领域,尤其涉及一种增强现实的内容获取方法、装置及移动终端。Embodiments of the present invention relate to the technical field of mobile terminals, and in particular, to an augmented reality content acquisition method, device, and mobile terminal.
背景技术Background technique
增强现实(Augmented Reality,AR)技术是通过计算机系统提供的信息增加用户对现实世界感知的技术,将虚拟的信息应用到真实世界,并将计算机生成的虚拟物体、场景或系统提示信息叠加到真实场景中,从而实现对现实的增强。Augmented Reality (AR) technology is a technology that increases the user's perception of the real world through the information provided by the computer system, applies virtual information to the real world, and superimposes computer-generated virtual objects, scenes or system prompt information on the real world. scene, so as to realize the augmentation of reality.
目前,拍照功能已成为移动终端的标准配置,移动终端用户在日常生活中可随手记录下身边的景物及精彩瞬间。普通的拍照模式所拍摄的照片与人眼所见基本相同,许多场景、现象或者事物仅通过对相机参数的调节是拍摄不出来的,如晴天无法拍摄出下雨的场景,乌云密布的夜晚拍不到月亮等等。越来越多的用户不满足于现实场景的拍摄,而是希望在拍照时将更多的元素融合到自己的照片中,使照片更加美观或引人注目。增强现实技术能够满足用户的这种需求,可将虚拟内容作为增强内容与摄像头获取的图像进行叠加,得到增强现实照片。然而,增强内容的种类和样式繁多,用户挑选符合自己需求的增强内容的过程耗时耗力,此外,还可能找不到自己中意的增强内容,所以,如何自动获取用户预期的增强内容成为目前亟待解决的技术问题。At present, the camera function has become a standard configuration of mobile terminals, and mobile terminal users can easily record the scenery and wonderful moments around them in their daily life. The photos taken by the ordinary camera mode are basically the same as what the human eye sees. Many scenes, phenomena or things cannot be captured only by adjusting the camera parameters. Not to the moon and so on. More and more users are not satisfied with the shooting of real scenes, but want to incorporate more elements into their photos when taking pictures to make the photos more beautiful or eye-catching. Augmented reality technology can meet this demand of users, and can superimpose virtual content as augmented content with images obtained by cameras to obtain augmented reality photos. However, there are many types and styles of enhanced content, and it is time-consuming and labor-intensive for users to select enhanced content that meets their needs. In addition, they may not be able to find their favorite enhanced content. Therefore, how to automatically obtain the enhanced content expected by users has become a problem at present. Technical problems to be solved urgently.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的是提供一种增强现实的内容获取方法、装置及移动终端,以实现增强现实内容的自动获取。The purpose of the embodiments of the present invention is to provide an augmented reality content acquisition method, device and mobile terminal, so as to realize the automatic acquisition of augmented reality content.
第一方面,本发明实施例提供了一种增强现实的内容获取方法,包括:In a first aspect, an embodiment of the present invention provides an augmented reality content acquisition method, including:
获取用户选择的目标图片;Get the target image selected by the user;
确定所述目标图片中的目标内容;determining the target content in the target picture;
获取与所述目标内容相对应的增强内容。Acquire enhanced content corresponding to the target content.
第二方面,本发明实施例提供了一种增强现实的内容获取装置,包括:In a second aspect, an embodiment of the present invention provides an augmented reality content acquisition device, including:
目标图片获取模块,用于获取用户选择的目标图片;The target image acquisition module is used to acquire the target image selected by the user;
目标内容确定模块,用于确定所述目标图片中的目标内容;a target content determination module for determining the target content in the target picture;
增强内容获取模块,用于获取与所述目标内容相对应的增强内容。An enhanced content acquisition module, configured to acquire enhanced content corresponding to the target content.
第三方面,本发明实施例提供了一种移动终端,所述移动终端集成了本发明实施例所述的增强现实的内容获取装置。In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal integrates the augmented reality content acquisition device according to the embodiment of the present invention.
本发明实施例中提供的增强现实的内容获取方案,获取用户选择的目标图片并确定目标图片中的目标内容,获取与目标内容相对应的增强内容,方便后续对增强内容的使用。通过采用上述技术方案,用户可根据自己的喜好选择已有图片作为目标图片,通过获取与该已有图片中某个内容相对应的增强内容的方式来实现自动获取增强内容,满足用户快速获取预期的增强内容的需求。The augmented reality content acquisition solution provided in the embodiment of the present invention acquires the target picture selected by the user, determines the target content in the target picture, and acquires the enhanced content corresponding to the target content, so as to facilitate subsequent use of the enhanced content. By adopting the above technical solutions, users can select an existing picture as a target picture according to their own preferences, and automatically obtain the enhanced content by obtaining the enhanced content corresponding to a certain content in the existing picture, so as to satisfy the user's expectation of rapid acquisition. demand for enhanced content.
附图说明Description of drawings
图1为本发明实施例一提供的一种增强现实的内容获取方法的流程示意图;FIG. 1 is a schematic flowchart of an augmented reality content acquisition method according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种增强现实的内容获取方法的流程示意图;2 is a schematic flowchart of an augmented reality content acquisition method according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种增强现实的内容获取方法的流程示意图;3 is a schematic flowchart of an augmented reality content acquisition method according to Embodiment 3 of the present invention;
图4为本发明实施例四提供的一种增强现实的内容获取方法的流程示意图;4 is a schematic flowchart of an augmented reality content acquisition method according to Embodiment 4 of the present invention;
图5为本发明实施例四提供的一种目标图片的显示示意图;FIG. 5 is a schematic diagram of displaying a target picture according to Embodiment 4 of the present invention;
图6为本发明实施例四提供的一种拍摄预览界面示意图;6 is a schematic diagram of a shooting preview interface according to Embodiment 4 of the present invention;
图7为本发明实施例四提供的一种增强现实照片的显示示意图;7 is a schematic diagram of displaying an augmented reality photo according to Embodiment 4 of the present invention;
图8为本发明实施例五提供的一种增强现实的内容获取装置的结构框图。FIG. 8 is a structural block diagram of an augmented reality content acquisition apparatus according to Embodiment 5 of the present invention.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The technical solutions of the present invention are further described below with reference to the accompanying drawings and through specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the steps as a sequential process, many of the steps may be performed in parallel, concurrently, or concurrently. Furthermore, the order of the steps can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
实施例一Example 1
图1为本发明实施例一提供的一种增强现实的内容获取方法的流程示意图,该方法可以由增强现实的内容获取装置执行,其中该装置可由软件和/或硬件实现,一般可集成在移动终端中。如图1所示,该方法包括:1 is a schematic flowchart of an augmented reality content acquisition method according to Embodiment 1 of the present invention. The method can be executed by an augmented reality content acquisition device, where the device can be implemented by software and/or hardware, and can generally be integrated in mobile in the terminal. As shown in Figure 1, the method includes:
步骤101、获取用户选择的目标图片。Step 101: Obtain a target image selected by a user.
示例性的,本实施例中的移动终端具体可为手机、平板电脑以及数码照相机等终端。Exemplarily, the mobile terminal in this embodiment may specifically be a terminal such as a mobile phone, a tablet computer, and a digital camera.
示例性的,目标图片可包括增强现实图片。增强现实图片具体可为包含增强内容的图片。增强内容可包括实物图像(如树木、月亮、海滩及吉祥物等实物的图像)、特效(如烟雾效果、蒸汽效果及运动轨迹效果等)和自然现象(如雨、雪、彩虹及太阳光圈等)等虚拟内容。目标图片也可包括不含有增强内容的普通图片。Exemplarily, the target picture may include an augmented reality picture. The augmented reality picture may specifically be a picture containing augmented content. Enhanced content can include physical images (such as trees, moons, beaches, and mascots), special effects (such as smoke effects, steam effects, and motion trail effects, etc.) and natural phenomena (such as rain, snow, rainbows, and sun circles, etc.) ) and other virtual content. The target pictures may also include normal pictures without enhanced content.
本实施例中,目标图片的具体来源可以有很多种,本实施例不作具体限定。示例性的,用户在浏览网页时,会看到许多如新闻图片或宣传图片等各种图片;用户在使用移动终端上的应用程序时,也会从朋友圈、微博或者其他应用程序中看到他人拍摄的照片或者上传的图片;此外,用户还可能在移动终端本地的图库中浏览图片,或者查看朋友发送过来的图片。In this embodiment, there may be many specific sources of the target image, which are not specifically limited in this embodiment. Exemplarily, when a user browses a web page, he will see a lot of various pictures such as news pictures or promotional pictures; when a user is using an application on a mobile terminal, he will also see pictures from Moments, Weibo or other applications. pictures taken by others or uploaded pictures; in addition, the user may also browse pictures in the local gallery of the mobile terminal, or view pictures sent by friends.
在上述以多种形式存在的图片中,若用户看到某张图片中包含了自己需要的内容时,可通过下载或者另存等方式来获取该图片作为目标图片。例如,用户看到朋友圈中好友上传的照片中有一个漂亮的玩具熊,想将这个玩具熊作为增强内容放到自己的图片或者照片中,则可保存好友的照片作为目标图片。Among the above-mentioned pictures that exist in various forms, if the user sees that a certain picture contains the content he needs, he can obtain the picture as a target picture by downloading or saving as a target picture. For example, if a user sees a beautiful teddy bear in a photo uploaded by a friend in the circle of friends, and wants to put the teddy bear as an enhanced content in his own picture or photo, he can save the friend's photo as the target picture.
步骤102、确定目标图片中的目标内容。Step 102: Determine the target content in the target picture.
示例性的,目标内容具体可理解为用户感兴趣的内容或者目标图片中包含的与增强现实相关的内容。本实施例对确定目标内容的具体方式不作限定,以下给出一些实施方式作为示意性说明:Exemplarily, the target content may be specifically understood as content that the user is interested in or content related to augmented reality contained in the target picture. This embodiment does not limit the specific manner of determining the target content, and some implementation manners are given below as schematic descriptions:
例如,可根据用户的选择操作确定目标图片中的目标内容。选择操作可以是用户在目标图片中的圈选等操作,如通过用手指在屏幕上勾勒目标内容的轮廓的方式来选择,如上述举例,用户可在目标图片中选择玩具熊为目标内容;选择操作还可以是从多个候选选项中进行选择,如通过对目标图片的内容(包含的景物或者特效等等)进行识别,并根据识别结果来向用户提供候选的目标内容,提示用户从中选择目标内容,如上述举例,对目标图片进行识别时,识别出目标图片中包含玩具熊、桌子和花瓶等景物时,可提示用户从中进行目标内容的选择。For example, the target content in the target picture may be determined according to the user's selection operation. The selection operation can be an operation such as the user's circle selection in the target picture, such as selecting by using a finger to outline the outline of the target content on the screen. For example, the user can select a teddy bear in the target picture as the target content; select The operation may also be to select from multiple candidate options, for example, by identifying the content of the target image (including scenes or special effects, etc.), and providing the user with candidate target content according to the recognition result, prompting the user to select a target from it. Content, as the above example, when identifying the target picture, when it is recognized that the target picture contains scenes such as a teddy bear, a table, and a vase, the user can be prompted to select the target content.
上述确定目标图片中的目标内容的方式可适用于普通图片,也适用于增强现实图片。在确定目标内容时,可无需考虑目标图片中是否包含增强现实内容,而是可直接根据用户的意愿来确定目标内容。The above-mentioned method of determining the target content in the target picture can be applied to ordinary pictures as well as augmented reality pictures. When determining the target content, it is not necessary to consider whether the target picture contains augmented reality content, but the target content can be directly determined according to the user's wishes.
又如,确定目标内容的具体方式还可以是:对目标图片中包含的内容进行识别,将识别到的与增强现实相关的内容作为目标内容。此种确定目标图片中的目标内容的方式尤其适用于增强现实图片。For another example, the specific manner of determining the target content may also be: identifying the content contained in the target picture, and using the identified content related to augmented reality as the target content. This way of determining the target content in the target picture is especially suitable for augmented reality pictures.
示例性的,与增强现实相关的内容可包括3D图像、卡通图像、手绘图案,具有特殊艺术效果的图像(如油画图像及素描图像等)及具有特殊图像处理效果的图像(如半透明图像及特效图像等)等虚拟内容。当识别到上述虚拟内容时,可确定当前目标图片为增强现实图片,并将上述虚拟内容确定为目标内容。一般的,由于虚拟内容难以通过摄像头获取,所以用户在看到此类增强现实图片时,更加容易将上述虚拟内容确定为自己所要获取的增强内容。此种确定目标内容的方式中,移动终端可通过识别的方式自动确定目标内容,速度快且准确率高,有效节省用户选择目标内容的时间,快速获取用户预期的增强内容。Exemplarily, the content related to augmented reality may include 3D images, cartoon images, hand-painted patterns, images with special artistic effects (such as oil painting images and sketch images, etc.) and images with special image processing effects (such as translucent images and special effects images, etc.) and other virtual content. When the above-mentioned virtual content is identified, the current target picture may be determined as an augmented reality picture, and the above-mentioned virtual content may be determined as the target content. Generally, since it is difficult to obtain virtual content through a camera, when a user sees such an augmented reality picture, it is easier for a user to determine the above-mentioned virtual content as the augmented content to be obtained by himself. In this way of determining the target content, the mobile terminal can automatically determine the target content by means of identification, which is fast and accurate, effectively saves the user's time for selecting the target content, and quickly obtains the enhanced content expected by the user.
示例性的,与增强现实相关的内容还可包括所识别出的与存储于增强内容数据库中的某个增强内容一致的内容。此时,该种确定目标内容的方式尤其适用于目标图片为具有不同于普通图片的特殊格式的图片(以下简称增强格式图片)。例如,在生成增强现实图片时,可为其中的增强内容对应的像素或者区域进行特殊格式的编码,如增加用于表明增强内容身份的标识(以下简称增强标识)。在识别到当前目标图片为增强格式图片时,经过解码后可根据增强标识来确定目标图片中的与增强现实相关的内容为目标内容。Illustratively, the augmented reality-related content may also include the identified content consistent with a certain augmented content stored in the augmented content database. At this time, this method of determining the target content is especially suitable for the target picture having a special format different from the ordinary picture (hereinafter referred to as the enhanced format picture). For example, when generating an augmented reality picture, the pixels or regions corresponding to the augmented content may be encoded in a special format, such as adding a logo for indicating the identity of the augmented content (hereinafter referred to as the augmented logo). When it is recognized that the current target picture is an enhanced format picture, the content related to the augmented reality in the target picture can be determined as the target content according to the enhanced identification after decoding.
步骤103、获取与目标内容相对应的增强内容。Step 103: Acquire enhanced content corresponding to the target content.
示例性的,与目标内容相对应的增强内容可理解为与目标内容相一致的增强内容。目标内容可理解为目标图片中包含的部分图像或部分图案,与目标内容相一致的增强内容可理解为与目标内容对应的图像或者图案相同的可用于增强现实应用的内容。Exemplarily, the enhanced content corresponding to the target content may be understood as the enhanced content consistent with the target content. The target content can be understood as part of the image or part of the pattern contained in the target picture, and the enhanced content consistent with the target content can be understood as the same image or pattern corresponding to the target content that can be used for augmented reality applications.
本发明实施例一提供的增强现实的内容获取方法,获取用户选择的目标图片并确定目标图片中的目标内容,获取与目标内容相对应的增强内容,方便后续对增强内容的使用。通过采用上述技术方案,用户可根据自己的喜好选择已有图片作为目标图片,通过获取与该已有图片中某个内容相对应的增强内容的方式来实现自动获取增强内容,满足用户快速获取预期的增强内容的需求。The method for obtaining the content of augmented reality provided by the first embodiment of the present invention obtains the target picture selected by the user, determines the target content in the target picture, and obtains the enhanced content corresponding to the target content, so as to facilitate subsequent use of the enhanced content. By adopting the above technical solutions, users can select an existing picture as a target picture according to their own preferences, and automatically obtain the enhanced content by obtaining the enhanced content corresponding to a certain content in the existing picture, so as to satisfy the user's expectation of rapid acquisition. demand for enhanced content.
实施例二Embodiment 2
图2为本发明实施例二提供的一种增强现实的内容获取方法的流程示意图,本实施例以上述实施例为基础上,对获取与目标内容相对应的增强内容的步骤进行优化,该方法尤其适用于增强内容数据库中存在与目标内容相对应的增强内容的情况。FIG. 2 is a schematic flowchart of an augmented reality content acquisition method according to Embodiment 2 of the present invention. Based on the above-mentioned embodiment, this embodiment optimizes the steps of acquiring the augmented content corresponding to the target content. The method It is especially suitable for the situation where there are enhanced contents corresponding to the target contents in the enhanced contents database.
本实施例的方法包括如下步骤:The method of this embodiment includes the following steps:
步骤201、获取用户选择的目标图片。Step 201: Obtain a target image selected by a user.
步骤202、确定目标图片中的目标内容。Step 202: Determine the target content in the target picture.
示例性的,本实施例中的目标内容具体可为目标图片中包含的增强内容。Exemplarily, the target content in this embodiment may specifically be enhanced content included in the target picture.
步骤203、识别目标内容的属性信息。Step 203: Identify attribute information of the target content.
示例性的,属性信息具体可包括用以与其他增强内容进行区分的编号或者标识。所以,对于一个目标内容来说,其属性信息是唯一的且确定的。Exemplarily, the attribute information may specifically include a number or an identifier for distinguishing it from other enhanced content. Therefore, for a target content, its attribute information is unique and definite.
示例性的,属性信息具体还可包括目标内容的特征信息,如目标内容的表现主题(如目标内容具体是哪种实物、哪种特效或者哪种自然现象等)、形状、颜色、尺寸、透明度以及亮度等等。Exemplarily, the attribute information may further include feature information of the target content, such as the presentation theme of the target content (such as what kind of object, what kind of special effect, or what kind of natural phenomenon the target content is specifically), shape, color, size, transparency, etc. and brightness, etc.
步骤204、根据属性信息从增强内容数据库中获取与目标内容相对应的增强内容。Step 204: Acquire enhanced content corresponding to the target content from the enhanced content database according to the attribute information.
示例性的,增强内容数据库具体可装载于移动终端本地或者远端服务器中。Exemplarily, the enhanced content database can be specifically loaded in a local or remote server of the mobile terminal.
示例性的,当属性信息为编号时,可根据该编号到增强内容数据库中进行搜索,并获取该编号对应的增强内容;当属性信息为目标内容的特征信息时,可根据特征信息到增强内容数据库中进行匹配搜索,将搜索到的增强内容作为所要获取的增强内容。Exemplarily, when the attribute information is a number, the enhanced content database can be searched according to the number, and the enhanced content corresponding to the number can be obtained; when the attribute information is the feature information of the target content, the enhanced content can be searched according to the feature information. A matching search is performed in the database, and the searched enhanced content is used as the enhanced content to be acquired.
本发明实施例二在上述实施例的基础上,根据目标内容的属性信息从增强内容数据库中获取与目标内容相对应的增强内容,可进一步加快增强内容的获取速度,提升用户体验。On the basis of the above embodiments, the second embodiment of the present invention acquires the enhanced content corresponding to the target content from the enhanced content database according to the attribute information of the target content, which can further accelerate the acquisition speed of the enhanced content and improve the user experience.
实施例三Embodiment 3
图3为本发明实施例三提供的一种增强现实的内容获取方法的流程示意图,本实施例以上述实施例为基础上,对获取与目标内容相对应的增强内容的步骤进行优化,该方法尤其适用于增强内容数据库中不存在与目标内容相对应的增强内容的情况。3 is a schematic flowchart of an augmented reality content acquisition method according to Embodiment 3 of the present invention. Based on the foregoing embodiment, this embodiment optimizes the steps of acquiring augmented content corresponding to the target content. The method It is especially suitable for the situation where there is no enhanced content corresponding to the target content in the enhanced content database.
本实施例的方法包括如下步骤:The method of this embodiment includes the following steps:
步骤301、获取用户选择的目标图片。Step 301: Obtain a target image selected by a user.
步骤302、确定目标图片中的目标内容。Step 302: Determine the target content in the target picture.
步骤303、从目标图片中提取目标内容对应的图像数据。Step 303: Extract image data corresponding to the target content from the target picture.
示例性的,可从目标图片中提取目标内容对应的像素或者区域的图像数据,如二进制图像数据;也可通过截图的方式从目标图片中截取目标内容对应的图像。Exemplarily, image data of pixels or regions corresponding to the target content may be extracted from the target picture, such as binary image data; the image corresponding to the target content may also be captured from the target picture by means of screenshots.
步骤304、根据图像数据生成与目标内容相对应的增强内容,获取所生成的增强内容。Step 304: Generate enhanced content corresponding to the target content according to the image data, and acquire the generated enhanced content.
示例性的,可根据图像数据中包含的图像信息生成与目标内容相对应的增强内容,可以理解为根据图像数据还原出目标图片中目标内容对应的图像,得到所要获取的增强内容。Exemplarily, the enhanced content corresponding to the target content can be generated according to the image information contained in the image data, which can be understood as restoring the image corresponding to the target content in the target picture according to the image data to obtain the enhanced content to be acquired.
本发明实施例三在上述实施例的基础上,从目标图片中提取所述目标内容对应的图像数据,并以此生成与目标内容相对应的增强内容,可提高获取增强内容的成功率,进一步满足用户需求。Embodiment 3 of the present invention, on the basis of the above embodiments, extracts image data corresponding to the target content from the target picture, and uses this to generate enhanced content corresponding to the target content, which can improve the success rate of acquiring the enhanced content, and further meet user needs.
在上述实施例的基础上,在获取所生成的增强内容之后,还可包括:将所生成的增强内容存入增强内容数据库。这样设置的好处在于,可实时更新增强内容数据库,丰富增强内容数据库中包含的增强内容,方便后续使用。Based on the above embodiment, after acquiring the generated enhanced content, the method may further include: storing the generated enhanced content in an enhanced content database. The advantage of this setting is that the enhanced content database can be updated in real time, and the enhanced content contained in the enhanced content database can be enriched for subsequent use.
需要说明的是,对于目标图片为增强现实图片的情况来说,目标图片中的增强内容作为目标内容可以是以多种形式存在的,可基于不同的存在形式选择上述提供的各种获取增强内容的具体方式。例如,增强内容可以是在基于真实场景的图片基础上增加的虚拟图像(可理解为预先绘制好的模板图像),该虚拟图像可预先存储于增强内容数据库中,所以可从增强内容数据库中获取;又如,增强内容可以是在基于真实场景的图片基础上对其中的景物进行的改动或特殊处理,比如增强某个景物的亮度或者夸大太阳的光圈效果等等,可通过从目标图片中提取图像数据的方式来得到增强内容;又如,增强内容可以是在基于真实场景的图片基础上添加的绘制图形或图案(如用户手绘的心形的云彩),此时的增强内容更具个性化,一般增强内容数据库中搜索不到对应的增强内容,也可通过从目标图片中提取图像数据的方式来得到增强内容。It should be noted that, for the case where the target picture is an augmented reality picture, the enhanced content in the target picture can exist in various forms as the target content, and the various acquisition enhanced content provided above can be selected based on different existing forms. specific way. For example, the enhanced content may be a virtual image (which can be understood as a pre-drawn template image) added on the basis of a picture based on a real scene, and the virtual image may be pre-stored in the enhanced content database, so it can be obtained from the enhanced content database ; for another example, the enhanced content may be the modification or special processing of the scene based on the picture based on the real scene, such as enhancing the brightness of a scene or exaggerating the aperture effect of the sun, etc., which can be extracted from the target picture by extracting The enhanced content can be obtained in the form of image data; for another example, the enhanced content can be a drawing or pattern (such as a heart-shaped cloud hand-painted by the user) added on the basis of a picture based on a real scene, and the enhanced content at this time is more personalized. Generally, the corresponding enhanced content cannot be searched in the enhanced content database, and the enhanced content can also be obtained by extracting image data from the target picture.
实施例四Embodiment 4
图4为本发明实施例四提供的一种增强现实的内容获取方法的流程示意图,本实施例以上述实施例为基础上进行优化,在获取与目标内容对应的增强内容之后,增加了增强现实照片拍摄的相关操作。FIG. 4 is a schematic flowchart of an augmented reality content acquisition method according to Embodiment 4 of the present invention. In this embodiment, optimization is performed on the basis of the foregoing embodiment. After acquiring the augmented content corresponding to the target content, augmented reality is added. Operations related to photo shooting.
步骤401、获取用户选择的目标图片。Step 401: Obtain a target image selected by a user.
示例性的,图5为本发明实施例四提供的一种目标图片的显示示意图。如图5所示,在移动终端的屏幕上显示的图片为用户选择的目标图片,该目标图片中包含一个房子和卡通版的月亮。Exemplarily, FIG. 5 is a schematic diagram of displaying a target picture according to Embodiment 4 of the present invention. As shown in FIG. 5 , the picture displayed on the screen of the mobile terminal is the target picture selected by the user, and the target picture includes a house and a cartoon version of the moon.
步骤402、确定目标图片中的目标内容。Step 402: Determine the target content in the target picture.
示例性的,如图5所示,将目标图片中的卡通版月亮确定为目标内容。Exemplarily, as shown in FIG. 5 , the cartoon version of the moon in the target picture is determined as the target content.
步骤403、获取与目标内容相对应的增强内容。Step 403: Acquire enhanced content corresponding to the target content.
示例性的,可识别该卡通版月亮的属性信息,如编号,根据该编号到移动终端本地搜索相应的增强内容,若本地不存在,可继续到远端服务器中搜索与该编号对应的增强内容。Exemplarily, the attribute information of the cartoon version of the moon can be identified, such as the number, according to the number, the mobile terminal is locally searched for the corresponding enhanced content, if the local does not exist, the remote server can be continued to search for the enhanced content corresponding to the number. .
步骤404、在拍摄预览界面显示增强内容。Step 404: Display the enhanced content on the shooting preview interface.
示例性的,可将获取的增强内容直接用于增强现实照片的拍摄,将获取到的增强内容显示在拍摄预览界面中,供用户查看,此时,增强内容与拍摄预览界面中包含的摄像头实时获取的图像相叠加,可使用户预览增强效果。图6为本发明实施例四提供的一种拍摄预览界面示意图,如图6所示,摄像头获取的预览图像为大海,将上述步骤中获取的卡通版月亮显示在拍摄预览界面中,用户可预览到在大海基础上添加卡通版月亮的增强效果。Exemplarily, the acquired enhanced content can be directly used for the shooting of augmented reality photos, and the acquired enhanced content can be displayed in the shooting preview interface for the user to view. The acquired images are superimposed, allowing the user to preview the enhancement. FIG. 6 is a schematic diagram of a shooting preview interface provided in Embodiment 4 of the present invention. As shown in FIG. 6 , the preview image obtained by the camera is the sea, and the cartoon version of the moon obtained in the above steps is displayed in the shooting preview interface, and the user can preview To the enhancement of adding a cartoon version of the moon on top of the sea.
优选的,可根据接收到的预设调整指令对增强内容的属性信息进行调整。属性信息可包括在拍摄预览界面上的显示位置、显示尺寸、颜色和透明度中的至少一个。示例性的,预设调整指令可以是用户在移动终端屏幕上的手势操作,如对增强内容的拖动、缩放等;还可以是用户对增强内容进行点选以触发属性列表的弹出,再在属性列表中进行选择或者输入属性内容等一系列操作对应的调整指令。Preferably, the attribute information of the enhanced content can be adjusted according to the received preset adjustment instruction. The attribute information may include at least one of display position, display size, color and transparency on the shooting preview interface. Exemplarily, the preset adjustment instruction can be a user's gesture operation on the screen of the mobile terminal, such as dragging, zooming, etc. on the enhanced content; it can also be that the user clicks on the enhanced content to trigger the pop-up of the attribute list, and then clicks on the enhanced content. Adjustment instructions corresponding to a series of operations such as selecting in the attribute list or inputting attribute content.
步骤405、在接收到拍照指令时,将摄像头捕捉的图像与增强内容进行叠加处理并生成增强现实照片。Step 405: When receiving the photographing instruction, superimpose the image captured by the camera and the augmented content to generate an augmented reality photo.
示例性的,用户可通过改变移动终端的位置来调整拍摄预览界面中的真实拍摄内容,当拍摄预览界面中的真实拍摄内容与增强内容的结合效果符合用户要求时,可通过点击拍照按键进行拍照,此时移动终端会将摄像头捕捉的图像与增强内容进行叠加处理并生成增强现实照片。Exemplarily, the user can adjust the real shooting content in the shooting preview interface by changing the position of the mobile terminal. When the combined effect of the real shooting content and the enhanced content in the shooting preview interface meets the user's requirements, the user can click the shooting button to take a photo. , at this time, the mobile terminal will superimpose the image captured by the camera and the augmented content to generate an augmented reality photo.
图7为本发明实施例四提供的一种增强现实照片的显示示意图。如图7所示,将包含大海的真实图像与卡通版月亮进行合成,得到了包含大海和卡通版月亮增强现实照片。FIG. 7 is a schematic diagram of displaying an augmented reality photo according to Embodiment 4 of the present invention. As shown in Figure 7, the real image containing the sea is synthesized with the cartoon version of the moon, and an augmented reality photo containing the sea and the cartoon version of the moon is obtained.
本发明实施例四在上述实施例的基础上,增加了增强现实照片拍摄的相关操作,可将获取的增强内容直接用于增强现实照片的拍摄,提升用户的拍摄体验,同时增强了增强现实照片拍摄的趣味性。On the basis of the above-mentioned embodiments, the fourth embodiment of the present invention adds operations related to the shooting of augmented reality photos, and the obtained enhanced content can be directly used for the shooting of augmented reality photos, which improves the shooting experience of users and enhances the augmented reality photos at the same time. Fun to shoot.
实施例五Embodiment 5
图8为本发明实施例五提供的一种增强现实的内容获取装置的结构框图,该装置可由软件和/或硬件实现,一般集成在移动终端中,可通过执行增强现实的内容获取方法来获取增强内容。如图8所示,该装置包括目标图片获取模块801、目标内容确定模块802和增强内容获取模块803。8 is a structural block diagram of an augmented reality content acquisition device according to Embodiment 5 of the present invention, the device may be implemented by software and/or hardware, generally integrated in a mobile terminal, and may be acquired by executing an augmented reality content acquisition method Enhanced content. As shown in FIG. 8 , the apparatus includes a target
其中,目标图片获取模块801,用于获取用户选择的目标图片;目标内容确定模块802,用于确定所述目标图片中的目标内容;增强内容获取模块803,用于获取与所述目标内容相对应的增强内容。Among them, the target
本发明实施例五提供的增强现实的内容获取装置,获取用户选择的目标图片并确定目标图片中的目标内容,获取与目标内容相对应的增强内容,方便后续对增强内容的使用。通过采用上述技术方案,用户可根据自己的喜好选择已有图片作为目标图片,通过获取与该已有图片中某个内容相对应的增强内容的方式来实现自动获取增强内容,满足用户快速获取预期的增强内容的需求。The augmented reality content acquisition device provided by the fifth embodiment of the present invention acquires a target image selected by a user, determines the target content in the target image, and acquires enhanced content corresponding to the target content, thereby facilitating subsequent use of the enhanced content. By adopting the above technical solutions, users can select an existing picture as a target picture according to their own preferences, and automatically obtain the enhanced content by obtaining the enhanced content corresponding to a certain content in the existing picture, so as to satisfy the user's expectation of rapid acquisition. demand for enhanced content.
在上述实施例的基础上,所述目标内容确定模块可用于:根据用户的选择操作确定所述目标图片中的目标内容;或者对所述目标图片中包含的内容进行识别,将识别到的与增强现实相关的内容作为目标内容。On the basis of the above embodiment, the target content determination module can be used to: determine the target content in the target picture according to the user's selection operation; or identify the content contained in the target picture, and compare the identified and Augmented reality related content as target content.
在上述实施例的基础上,所述增强内容获取模块包括标识识别单元和增强内容获取单元。其中,标识识别单元,识别所述目标内容的属性信息;增强内容获取单元,用于根据所述属性信息从增强内容数据库中获取与所述目标内容相对应的增强内容。On the basis of the above embodiment, the enhanced content acquisition module includes an identification and identification unit and an enhanced content acquisition unit. Wherein, the identification and identification unit is used to identify the attribute information of the target content; the enhanced content acquisition unit is used to obtain the enhanced content corresponding to the target content from the enhanced content database according to the attribute information.
在上述实施例的基础上,所述增强内容获取模块包括图像数据提取单元和增强内容生成单元。其中,图像数据提取单元,用于从所述目标图片中提取所述目标内容对应的图像数据;增强内容生成单元,用于根据所述图像数据生成与所述目标内容相对应的增强内容,获取所生成的增强内容。Based on the above embodiments, the enhanced content acquisition module includes an image data extraction unit and an enhanced content generation unit. Wherein, the image data extraction unit is used to extract the image data corresponding to the target content from the target picture; the enhanced content generation unit is used to generate the enhanced content corresponding to the target content according to the image data, obtain Generated enhancements.
在上述实施例的基础上,该装置还包括:增强内容存储模块,用于在获取所生成的增强内容之后,将所生成的增强内容存入增强内容数据库。On the basis of the above embodiment, the apparatus further includes: an enhanced content storage module, configured to store the generated enhanced content in an enhanced content database after acquiring the generated enhanced content.
在上述实施例的基础上,该装置还包括显示模块和照片生成模块。其中,显示模块,用于在获取与所述目标内容相对应的增强内容之后,在拍摄预览界面显示所述增强内容;照片生成模块,用于在拍摄预览界面显示所述增强内容之后,在接收到拍照指令时,将摄像头捕捉的图像与所述增强内容进行叠加处理并生成增强现实照片。On the basis of the above-mentioned embodiment, the apparatus further includes a display module and a photo generation module. The display module is configured to display the enhanced content on the shooting preview interface after acquiring the enhanced content corresponding to the target content; the photo generation module is configured to display the enhanced content on the shooting preview interface, after receiving the enhanced content When the photographing instruction is reached, the image captured by the camera and the augmented content are superimposed to generate an augmented reality photo.
实施例六Embodiment 6
本实施例六提供了一种移动终端,该移动终端包括本发明实施例中所述的增强现实的内容获取装置,可通过执行增强现实的内容获取方法来获取增强内容。The sixth embodiment provides a mobile terminal, where the mobile terminal includes the augmented reality content acquisition device described in the embodiments of the present invention, and can acquire augmented reality content by executing the augmented reality content acquisition method.
示例性的,本实施例中的移动终端具体可为手机、平板电脑以及数码照相机等终端,优选为智能手机。Exemplarily, the mobile terminal in this embodiment may specifically be a terminal such as a mobile phone, a tablet computer, and a digital camera, and is preferably a smart phone.
当用户使用本实施例中的移动终端时,用户可根据自己的喜好选择已有图片作为目标图片,通过获取与该已有图片中某个内容相对应的增强内容的方式来实现自动获取增强内容,满足用户快速获取预期的增强内容的需求。When the user uses the mobile terminal in this embodiment, the user can select an existing picture as the target picture according to his own preferences, and automatically obtain the enhanced content by acquiring the enhanced content corresponding to a certain content in the existing picture. , to meet the needs of users to quickly obtain the expected enhanced content.
上述实施例中提供的增强现实的内容获取装置及移动终端可执行本发明任意实施例所提供的增强现实的内容获取方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的增强现实的内容获取方法。The augmented reality content acquisition device and mobile terminal provided in the above embodiments can execute the augmented reality content acquisition method provided by any embodiment of the present invention, and have corresponding functional modules and beneficial effects for implementing the method. For technical details that are not described in detail in the foregoing embodiments, reference may be made to the method for acquiring content of augmented reality provided by any embodiment of the present invention.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610507206.2A CN106203286B (en) | 2016-06-28 | 2016-06-28 | Augmented reality content acquisition method and device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610507206.2A CN106203286B (en) | 2016-06-28 | 2016-06-28 | Augmented reality content acquisition method and device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106203286A CN106203286A (en) | 2016-12-07 |
CN106203286B true CN106203286B (en) | 2020-03-10 |
Family
ID=57463919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610507206.2A Active CN106203286B (en) | 2016-06-28 | 2016-06-28 | Augmented reality content acquisition method and device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106203286B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106851052B (en) | 2017-01-16 | 2020-05-26 | 联想(北京)有限公司 | Control method and electronic equipment |
CN109285203A (en) * | 2017-07-21 | 2019-01-29 | 中兴通讯股份有限公司 | A kind of edit methods, computer equipment and the storage medium of 3D picture |
CN107609178A (en) * | 2017-09-29 | 2018-01-19 | 维沃移动通信有限公司 | A kind of resource display method and mobile terminal |
CN107808416A (en) * | 2017-09-29 | 2018-03-16 | 北京金山安全软件有限公司 | Image processing method, image display method, image processing device, image display device, electronic equipment and storage medium |
CN107908328A (en) * | 2017-11-15 | 2018-04-13 | 百度在线网络技术(北京)有限公司 | Augmented reality method and apparatus |
CN112231611A (en) * | 2017-12-29 | 2021-01-15 | 创新先进技术有限公司 | Information display method and device and electronic equipment |
CN108174097B (en) * | 2017-12-29 | 2021-07-23 | Oppo广东移动通信有限公司 | Method and device for photographing and providing photographing parameters |
CN109298781B (en) * | 2018-08-28 | 2020-11-06 | 百度在线网络技术(北京)有限公司 | AR-based message processing method, device, equipment and computer storage medium |
CN111013141A (en) * | 2019-11-11 | 2020-04-17 | 郑州阿帕斯科技有限公司 | Parameter setting method and device for shooting game |
CN111107264A (en) * | 2019-11-11 | 2020-05-05 | 宇龙计算机通信科技(深圳)有限公司 | Image processing method, image processing device, storage medium and terminal |
CN111246118B (en) * | 2020-04-27 | 2020-08-21 | 成都派沃特科技股份有限公司 | Display method, device and equipment of AR element and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103050025A (en) * | 2012-12-20 | 2013-04-17 | 广东欧珀移动通信有限公司 | Mobile terminal learning method and learning system thereof |
CN103176972A (en) * | 2011-12-20 | 2013-06-26 | 富泰华工业(深圳)有限公司 | Processing method of browser displaying sub-page and browser |
CN103337079A (en) * | 2013-07-09 | 2013-10-02 | 广州新节奏智能科技有限公司 | Virtual augmented reality teaching method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5180415B2 (en) * | 2011-01-13 | 2013-04-10 | 楽天株式会社 | Object display server, object display method, object display program, and computer-readable recording medium storing the program |
-
2016
- 2016-06-28 CN CN201610507206.2A patent/CN106203286B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103176972A (en) * | 2011-12-20 | 2013-06-26 | 富泰华工业(深圳)有限公司 | Processing method of browser displaying sub-page and browser |
CN103050025A (en) * | 2012-12-20 | 2013-04-17 | 广东欧珀移动通信有限公司 | Mobile terminal learning method and learning system thereof |
CN103337079A (en) * | 2013-07-09 | 2013-10-02 | 广州新节奏智能科技有限公司 | Virtual augmented reality teaching method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106203286A (en) | 2016-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106203286B (en) | Augmented reality content acquisition method and device and mobile terminal | |
CN113727012B (en) | A shooting method and terminal | |
US12217453B2 (en) | Mirror-based augmented reality experience | |
US9536352B2 (en) | Imitating physical subjects in photos and videos with augmented reality virtual objects | |
CN107507155B (en) | Real-time processing method, device and computing device for edge optimization of video segmentation results | |
CN106200918B (en) | Information display method and device based on AR and mobile terminal | |
US20170285916A1 (en) | Camera effects for photo story generation | |
CN114730483A (en) | Generate 3D data in a messaging system | |
JP2017531950A (en) | Method and apparatus for constructing a shooting template database and providing shooting recommendation information | |
CN106200917B (en) | Augmented reality content display method, device and mobile terminal | |
WO2013023705A1 (en) | Methods and systems for enabling creation of augmented reality content | |
CN106157363A (en) | A camera method, device and mobile terminal based on augmented reality | |
CN108109161B (en) | Method and device for real-time processing of video data based on adaptive threshold segmentation | |
CN110928411B (en) | AR-based interaction method and device, storage medium and electronic equipment | |
CN106231195A (en) | A kind for the treatment of method and apparatus of taking pictures of intelligent terminal | |
CN106200914A (en) | Augmented reality trigger method, device and camera equipment | |
CN118696345A (en) | Define object segmentation interactively | |
CN106101576B (en) | A method, device and mobile terminal for taking augmented reality photos | |
US20160086365A1 (en) | Systems and methods for the conversion of images into personalized animations | |
KR101672691B1 (en) | Method and apparatus for generating emoticon in social network service platform | |
CN106101575A (en) | A method, device and mobile terminal for generating augmented reality photos | |
WO2016082470A1 (en) | Method for image processing, device and computer storage medium | |
CN113986407A (en) | Cover generation method and device and computer storage medium | |
CN106203288A (en) | A camera method, device and mobile terminal based on augmented reality | |
CN112511815B (en) | Image or video generation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |