CN106101576B - A method, device and mobile terminal for taking augmented reality photos - Google Patents

A method, device and mobile terminal for taking augmented reality photos Download PDF

Info

Publication number
CN106101576B
CN106101576B CN201610507316.9A CN201610507316A CN106101576B CN 106101576 B CN106101576 B CN 106101576B CN 201610507316 A CN201610507316 A CN 201610507316A CN 106101576 B CN106101576 B CN 106101576B
Authority
CN
China
Prior art keywords
image
augmented reality
targets improvement
audio
photo
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
Application number
CN201610507316.9A
Other languages
Chinese (zh)
Other versions
CN106101576A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610507316.9A priority Critical patent/CN106101576B/en
Publication of CN106101576A publication Critical patent/CN106101576A/en
Application granted granted Critical
Publication of CN106101576B publication Critical patent/CN106101576B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras 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)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method and a device for shooting an augmented reality photo and a mobile terminal. The method comprises the following steps: when the mobile terminal starts an augmented reality shooting mode, acquiring a target augmented image and a target augmented sound effect; and when a photographing instruction is received, generating an augmented reality photo according to the image captured by the camera, the target augmented image and the target augmented sound effect. By adopting the technical scheme, when the augmented reality photo is shot, the image and the sound effect can be added into the augmented reality photo as the augmented content, so that the expression form of the augmented reality photo is enriched, and the augmented effect is improved.

Description

一种增强现实照片的拍摄方法、装置及移动终端A method, device and mobile terminal for taking augmented reality photos

技术领域technical field

本发明实施例涉及增强现实技术领域,尤其涉及一种增强现实照片的拍摄方法、装置及移动终端。Embodiments of the present invention relate to the technical field of augmented reality, and in particular, to a method, an apparatus, and a mobile terminal for taking an augmented reality photo.

背景技术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 virtual content 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, current augmented reality photos are limited to adding virtual images to real photos, and the achieved enhancement effects are limited and cannot meet user needs.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的是提供一种增强现实照片的拍摄方法、装置及移动终端,以丰富增强现实照片的表现形式。The purpose of the embodiments of the present invention is to provide a method, device and mobile terminal for taking an augmented reality photo, so as to enrich the representation form of the augmented reality photo.

第一方面,本发明实施例提供了一种增强现实照片的拍摄方法,包括:In a first aspect, an embodiment of the present invention provides a method for capturing an augmented reality photo, including:

当移动终端启动增强现实拍摄模式时,获取目标增强图像和目标增强音效;When the mobile terminal starts the augmented reality shooting mode, acquire the target-enhanced image and the target-enhanced sound effect;

当接收到拍照指令时,根据摄像头捕捉的图像、所述目标增强图像和所述目标增强音效生成增强现实照片。When a photographing instruction is received, an augmented reality photo is generated according to the image captured by the camera, the target-enhanced image and the target-enhanced sound effect.

第二方面,本发明实施例提供了一种增强现实照片的拍摄装置,包括:In a second aspect, an embodiment of the present invention provides a device for capturing an augmented reality photo, including:

音效获取模块,用于在移动终端启动增强现实拍摄模式时,获取目标增强图像和目标增强音效;The sound effect acquisition module is used to acquire the target enhanced image and the target enhanced sound effect when the mobile terminal starts the augmented reality shooting mode;

照片生成模块,用于在接收到拍照指令时,根据摄像头捕捉的图像、所述目标增强图像和所述目标增强音效生成增强现实照片。The photo generating module is configured to generate an augmented reality photo according to the image captured by the camera, the target-enhanced image and the target-enhanced sound effect when receiving a photographing instruction.

第三方面,本发明实施例提供了一种移动终端,该移动终端集成了本发明实施例中的增强现实照片的拍摄装置。In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal integrates the device for taking an augmented reality photo in the embodiment of the present invention.

本发明实施例中提供的增强现实照片的拍摄方案,先获取目标增强图像和目标增强音效,当接收到拍照指令时,根据摄像头捕捉的图像、目标增强图像和目标增强音效生成增强现实照片。通过采用上述技术方案,在拍摄增强现实照片时,可将图像和音效一起作为增强内容加入到增强现实照片中,丰富增强现实照片的表现形式,提升增强效果。In the augmented reality photo shooting solution provided in the embodiment of the present invention, the target enhanced image and the target enhanced sound effect are obtained first, and when a photographing instruction is received, the augmented reality photo is generated according to the image captured by the camera, the target enhanced image and the target enhanced sound effect. By adopting the above technical solution, when taking an augmented reality photo, images and sound effects can be added to the augmented reality photo together as enhanced content, so as to enrich the representation of the augmented reality photo and enhance the enhancement effect.

附图说明Description of drawings

图1为本发明实施例一提供的一种增强现实照片的拍摄方法的流程示意图;1 is a schematic flowchart of a method for taking an augmented reality photo according to Embodiment 1 of the present invention;

图2为本发明实施例一提供的拍摄预览界面示意图;2 is a schematic diagram of a shooting preview interface provided by Embodiment 1 of the present invention;

图3为本发明实施例二提供的一种增强现实照片的拍摄方法的流程示意图;3 is a schematic flowchart of a method for taking an augmented reality photo according to Embodiment 2 of the present invention;

图4为本发明实施例二提供的拍摄预览示意图;4 is a schematic diagram of a shooting preview provided in Embodiment 2 of the present invention;

图5为本发明实施例三提供的一种增强现实照片的拍摄方法的流程示意图;5 is a schematic flowchart of a method for taking an augmented reality photo according to Embodiment 3 of the present invention;

图6为本发明实施例三提供的一种增强现实照片浏览示意图;FIG. 6 is a schematic diagram of browsing an augmented reality photo according to Embodiment 3 of the present invention;

图7为本发明实施例四提供的一种增强现实照片的拍摄装置的结构框图。FIG. 7 is a structural block diagram of a device for taking an augmented reality photo according to Embodiment 4 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所示,该方法包括:FIG. 1 is a schematic flowchart of a method for taking an augmented reality photo according to Embodiment 1 of the present invention. The method can be executed by a device for taking an augmented reality photo, wherein the device can be implemented by software and/or hardware, and can generally be integrated in mobile devices. in the terminal. As shown in Figure 1, the method includes:

步骤101、当移动终端启动增强现实拍摄模式时,获取目标增强图像和目标增强音效。Step 101: When the mobile terminal starts the augmented reality shooting mode, acquire the target-enhanced image and the target-enhanced sound effect.

示例性的,本实施例中的移动终端具体可为手机、平板电脑以及数码照相机等配置有摄像头的终端。Exemplarily, the mobile terminal in this embodiment may specifically be a terminal equipped with a camera, such as a mobile phone, a tablet computer, and a digital camera.

示例性的,可在移动终端中配置增强照片拍摄模式,当移动终端启动该模式时,移动终端的屏幕实时显示摄像头获取的预览图像,并获取目标增强图像和目标增强音效。Exemplarily, an enhanced photo shooting mode may be configured in the mobile terminal. When the mobile terminal activates this mode, the screen of the mobile terminal displays the preview image obtained by the camera in real time, and obtains the target enhanced image and the target enhanced sound effect.

示例性的,增强图像可包括实物图像(如树木、月亮、海滩及吉祥物等实物的图像)、特效图像(如烟雾效果、蒸汽效果及运动轨迹效果等图像)和自然现象图像(如雨、雪、彩虹及太阳光圈等图像)等虚拟内容图像。目标增强图像具体可为与预览图像中所包含的景物相关联的虚拟内容图像。Exemplarily, the enhanced images may include real images (such as images of real objects such as trees, moons, beaches, and mascots), special effects images (such as smoke effects, steam effects, and motion trail effects), and natural phenomenon images (such as rain, virtual content images such as images of snow, rainbows, and sun circles). The target enhanced image may specifically be a virtual content image associated with the scene contained in the preview image.

示例性的,获取目标增强图像之前,可先确定目标增强图像。确定目标增强图像的方式可以有很多种,本实施例不做具体限定,下面给出几种具体实现方式作为示意性说明。可根据用户的输入信息来确定目标增强图像,例如,用户通过文字或者语音输入的方式让移动终端从文本或语音中识别出用户需要的目标增强图像;可对摄像头获取的预览图像的内容进行识别,得出候选增强图像供用户选择。例如,图2为本发明实施例一提供的拍摄预览界面示意图,如图2所示,摄像头获取的预览图像包含大海,可得出候选增强图像包括浪花、轮船及海鸥等等,若用户选择其中一项或多项,则可根据用户的选择确定目标增强图像。在确定目标增强图像后,可通过从移动终端本地获取、从远端服务器获取或者从互联网上获取等方式来获取所确定的目标增强图像,用于后续的预览及拍照等操作。Exemplarily, before acquiring the target enhanced image, the target enhanced image may be determined first. There are many ways to determine the target enhanced image, which is not specifically limited in this embodiment, and several specific implementation ways are given below as a schematic description. The target enhanced image can be determined according to the user's input information. For example, the user can let the mobile terminal identify the target enhanced image required by the user from the text or voice through text or voice input; the content of the preview image obtained by the camera can be identified. , and obtain candidate enhanced images for user selection. For example, FIG. 2 is a schematic diagram of a shooting preview interface provided by Embodiment 1 of the present invention. As shown in FIG. 2 , the preview image obtained by the camera includes the sea, and it can be concluded that the candidate enhanced images include waves, ships, and seagulls. One or more items, the target enhanced image can be determined according to the user's selection. After the target enhanced image is determined, the determined target enhanced image can be acquired locally from the mobile terminal, from a remote server, or from the Internet, and used for subsequent operations such as previewing and taking pictures.

示例性的,目标增强音效具体可为与预览图像中所包含的景物相关联的声音效果。目标增强音效与目标增强图像之间是否存在关联本实施例不作限定。Exemplarily, the target enhanced sound effect may specifically be a sound effect associated with the scene included in the preview image. Whether there is a correlation between the target enhanced sound effect and the target enhanced image is not limited in this embodiment.

本步骤中,在获取目标增强音效之前,可先确定所要获取的目标增强音效。确定目标增强音效的方式也可以有很多种,本实施例不做具体限定,下面给出几种具体实现方式作为示意性说明。可根据用户的输入信息来确定目标增强音效,例如,用户通过文字或者语音输入的方式让移动终端从文本或语音中识别出用户需要的目标增强音效;可对摄像头获取的预览图像的内容进行识别,得出候选增强音效供用户选择,例如,预览图像包含河流和树木,可得出候选增强音效包括流水声和鸟鸣声等,若用户选择其中一项或多项,则可根据用户的选择确定目标增强音效,此外,为了帮助用户快速确定自己满意的增强音效,还可播放候选增强音效供用户试听。In this step, before acquiring the target enhanced sound effect, the target enhanced sound effect to be acquired may be determined first. There may also be many manners for determining the target to enhance the sound effect, which is not specifically limited in this embodiment, and several specific implementation manners are given below as schematic descriptions. The target enhanced sound effect can be determined according to the user's input information. For example, the user can let the mobile terminal identify the target enhanced sound effect required by the user from the text or voice through text or voice input; the content of the preview image obtained by the camera can be identified. , to obtain candidate enhanced sound effects for the user to choose. For example, if the preview image contains rivers and trees, it can be concluded that the candidate enhanced sound effects include the sound of flowing water and birdsong. Determine the target enhanced sound effect. In addition, in order to help the user quickly determine the enhanced sound effect he is satisfied with, the candidate enhanced sound effect can also be played for the user to listen to.

示例性的,在确定目标增强音效后,可查询移动终端本地或远端服务器中的包含增强音效的数据库,获取相应的增强音效;也可根据所确定的目标增强音效搜索互联网,下载相应的增强音效。Exemplarily, after determining the target enhanced sound effect, the database containing the enhanced sound effect in the local or remote server of the mobile terminal can be queried to obtain the corresponding enhanced sound effect; it is also possible to search the Internet according to the determined target enhanced sound effect, and download the corresponding enhanced sound effect. sound effects.

优选的,为了让用户在拍摄照片之前试听目标增强音效,可在拍摄预览过程中播放目标增强音效。Preferably, in order to allow the user to listen to the target enhanced sound effect before taking a photo, the target enhanced sound effect may be played during the shooting preview process.

进一步的,为了让用户在拍摄照片时预览目标增强图像与实时图像的叠加效果,还可在拍摄预览过程中,在拍摄预览界面显示所述目标增强图像。Further, in order to allow the user to preview the superimposed effect of the target enhanced image and the real-time image when taking a photo, the target enhanced image can also be displayed on the shooting preview interface during the shooting preview process.

步骤102、当接收到拍照指令时,根据摄像头捕捉的图像、目标增强图像和目标增强音效生成增强现实照片。Step 102: When receiving the photographing instruction, generate an augmented reality photo according to the image captured by the camera, the target enhanced image and the target enhanced sound effect.

示例性的,用户可通过改变移动终端的位置来调整拍摄预览界面中的拍摄内容,当用户认为拍摄内容与目标增强图像及目标增强音效的结合效果符合自己的要求时,可通过点击拍照按键进行拍照,此时移动终端会接收到拍照指令,并将摄像头捕捉的图像与目标增强图像及目标增强音效进行合成处理并生成增强现实照片,满足用户拍摄增强现实照片的需求。Exemplarily, the user can adjust the shooting content in the shooting preview interface by changing the position of the mobile terminal. When the user thinks that the combined effect of the shooting content, the target-enhanced image and the target-enhancing sound effect meets his own requirements, he can click the camera button to carry out. When taking a photo, the mobile terminal will receive the photo-taking instruction, and synthesize the image captured by the camera with the target-enhanced image and the target-enhanced sound effect to generate an augmented reality photo to meet the user's needs for taking an augmented reality photo.

示例性的,可将摄像头捕捉的图像与目标增强图像进行叠加处理得到增强现实图像,再将目标增强音效嵌入增强现实图像,并生成增强现实照片。Exemplarily, an augmented reality image can be obtained by superimposing the image captured by the camera and the target augmented image, and then the target augmented sound effect can be embedded in the augmented reality image to generate an augmented reality photo.

本发明实施例一提供的增强现实照片的拍摄方法,先获取目标增强图像和目标增强音效,当接收到拍照指令时,根据摄像头捕捉的图像、目标增强图像和目标增强音效生成增强现实照片。通过采用上述技术方案,在拍摄增强现实照片时,可将图像和音效一起作为增强内容加入到增强现实照片中,丰富增强现实照片的表现形式,提升增强效果。The method for taking an augmented reality photo provided by the first embodiment of the present invention first obtains a target enhanced image and a target enhanced sound effect, and when receiving a photographing instruction, generates an augmented reality photo according to the image captured by the camera, the target enhanced image and the target enhanced sound effect. By adopting the above technical solution, when taking an augmented reality photo, images and sound effects can be added to the augmented reality photo together as enhanced content, so as to enrich the representation of the augmented reality photo and enhance the enhancement effect.

实施例二Embodiment 2

图3为本发明实施例二提供的一种增强现实照片的拍摄方法的流程示意图,本实施例以上述实施例为基础进行优化,在增强现实照片中加入的增强音效和增强图像是存在关联的,能够进一步提升增强效果。FIG. 3 is a schematic flowchart of a method for taking an augmented reality photo according to Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiment, and the enhanced sound effect and the enhanced image added to the augmented reality photo are related. , which can further enhance the enhancement effect.

在本实施例中,将步骤“获取目标增强图像和目标增强音效”优化为:确定目标增强图像,并获取所确定的目标增强图像;根据目标增强图像获取相应的目标增强音效。In this embodiment, the step of "obtaining the target enhanced image and the target enhanced sound effect" is optimized as follows: determine the target enhanced image, and obtain the determined target enhanced image; and obtain the corresponding target enhanced sound effect according to the target enhanced image.

相应的,本实施例的方法包括如下步骤:Correspondingly, the method of this embodiment includes the following steps:

步骤301、当移动终端启动增强现实拍摄模式时,确定目标增强图像,并获取所确定的目标增强图像。Step 301 , when the mobile terminal starts the augmented reality shooting mode, determine the target enhanced image, and acquire the determined target enhanced image.

步骤302、根据目标增强图像获取相应的目标增强音效。Step 302: Acquire a corresponding target enhanced sound effect according to the target enhanced image.

当目标增强音效与目标增强图像存在对应关系时,可对增强现实照片的视觉效果和听觉效果进行综合增强,加强了增强图像的增强效果。When there is a corresponding relationship between the target-enhanced sound effect and the target-enhanced image, the visual effect and the auditory effect of the augmented reality photo can be comprehensively enhanced, thereby enhancing the enhancement effect of the enhanced image.

如上述实施例中的举例,假设用户在多个候选增强图像中选择了轮船和海鸥作为目标增强图像,与轮船对应的目标增强音效可为轮船鸣笛声,与海鸥对应的目标增强音效可为海鸥叫声。As an example in the above embodiment, it is assumed that the user selects ships and seagulls as the target enhanced images among the multiple candidate enhanced images, the target enhanced sound effect corresponding to the ship may be the whistle of the ship, and the target enhanced sound effect corresponding to the seagull may be Seagulls cry.

优选的,同一个目标增强图像对应的增强音效可能有很多种,可对多个增强音效进行试播放供用户选择。Preferably, there may be many kinds of enhanced sound effects corresponding to the same target enhanced image, and a trial playback of multiple enhanced sound effects may be performed for the user to select.

示例性的,为了使声音更加真实,目标增强音效可以是基于各种音效处理技术得到的音效。例如,BBE高清晰度声音还原系统(BBE High Definition Sound System)技术、EQ均衡器(Equalizer)技术以及声音恢复系统(Sound Retrieval System,SRS)技术等等。优选的,目标增强音效包括基于SRS技术的增强音效。SRS是由SRS研究所开发的、最具代表性的3D立体声技术,是一系列基于心理声学原理的音频处理专利技术的统称,它根据“头相关传输函数”(HRTF)来拓宽最佳听音区,打造出更加宽广的声场并在音频混响中非常精准地定位不同的乐器,最终仅仅通过两个扬声器来营造身临其境的三维音场,所以这种技术也称为SRS 3D技术。通过采用SRS音效,可使增强现实照片中的增强音效更加真实,提升用户的视听体验。Exemplarily, in order to make the sound more realistic, the target enhanced sound effect may be a sound effect obtained based on various sound effect processing technologies. For example, BBE High Definition Sound System (BBE High Definition Sound System) technology, EQ equalizer (Equalizer) technology and Sound Retrieval System (Sound Retrieval System, SRS) technology and so on. Preferably, the target enhanced sound effects include enhanced sound effects based on the SRS technology. SRS is the most representative 3D stereo technology developed by the SRS Institute. It is a general term for a series of patented audio processing technologies based on psychoacoustic principles. zone, creating a wider sound field and positioning different instruments very accurately in the audio reverberation, and finally creating an immersive three-dimensional sound field through only two speakers, so this technology is also called SRS 3D technology. By using SRS sound effects, the enhanced sound effects in the augmented reality photos can be made more realistic, and the user's audio-visual experience can be improved.

步骤303、在拍摄预览过程中播放目标增强音效,同时在拍摄预览界面显示目标增强图像。Step 303: Play the target enhanced sound effect during the shooting preview process, and simultaneously display the target enhanced image on the shooting preview interface.

示例性的,在拍摄预览过程中,目标增强图像与拍摄预览界面中包含的摄像头实时获取的图像相叠加,可使用户预览图像增强效果,同时播放目标增强音效,让用户预知增强现实照片的展示效果。Exemplarily, during the shooting preview process, the target enhanced image is superimposed with the real-time image obtained by the camera included in the shooting preview interface, so that the user can preview the image enhancement effect, and at the same time play the target enhanced sound effect, so that the user can predict the display of the augmented reality photo. Effect.

优选的,可根据接收到的预设调整指令对目标增强图像的属性信息进行调整。属性信息可包括在拍摄预览界面上的显示位置、显示尺寸、颜色和透明度中的至少一个。示例性的,预设调整指令可以是用户在移动终端屏幕上的手势操作,如对目标增强图像的拖动、缩放等;还可以是用户对目标增强图像进行点选以触发属性列表的弹出,再在属性列表中进行选择或者输入属性内容等一系列操作对应的调整指令。Preferably, the attribute information of the target enhanced image 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 may be a user's gesture operation on the screen of the mobile terminal, such as dragging, zooming, etc. on the target enhanced image; it may also be that the user clicks on the target enhanced image to trigger the pop-up of the attribute list, Then select in the attribute list or input attribute content and other corresponding adjustment instructions for a series of operations.

图4为本发明实施例二提供的拍摄预览示意图,如图4所示,该拍摄预览界面中显示了摄像头获取的包含大海的图像,还显示了所获取的作为目标增强图像的轮船和海鸥的图像。同时,移动终端播放作为目标增强音效的轮船鸣笛声以及海鸥叫声。FIG. 4 is a schematic diagram of a shooting preview provided by Embodiment 2 of the present invention. As shown in FIG. 4 , the shooting preview interface displays an image including the sea acquired by a camera, and also displays the acquired images of ships and seagulls as target enhanced images. image. At the same time, the mobile terminal plays the ship whistle and the seagull call as the target enhanced sound effect.

步骤304、当接收到拍照指令时,根据摄像头捕捉的图像、目标增强图像和目标增强音效生成增强现实照片。Step 304 , when receiving the photographing instruction, generate an augmented reality photo according to the image captured by the camera, the target enhanced image and the target enhanced sound effect.

示例性的,本步骤可包括:根据摄像头捕捉的图像和目标增强图像生成增强现实图像;将目标增强音效嵌入增强现实图像中,并生成增强现实照片。图像一般以二进制数据形式进行存储,可选的,将目标增强音效转化为二进制数据,并嵌入增强现实图像的二进制数据中,并生成增强现实照片。Exemplarily, this step may include: generating an augmented reality image according to the image captured by the camera and the target-enhanced image; embedding the target-enhanced sound effect into the augmented reality image, and generating an augmented reality photo. The image is generally stored in the form of binary data. Optionally, the target enhanced sound effect is converted into binary data, and embedded in the binary data of the augmented reality image to generate an augmented reality photo.

如上述举例,将轮船和海鸥的图像与大海的图像合成为增强现实照片的图像部分,再将轮船鸣笛声以及海鸥叫声嵌入该图像部分,生成增强现实照片。As the above example, the images of ships and seagulls and the image of the sea are combined into the image part of the augmented reality photo, and then the sound of the ship whistle and the sound of seagulls are embedded in the image part to generate the augmented reality photo.

本发明实施例二提供的增强现实照片的拍摄方法,目标增强音效与目标增强图像存在对应关系,可对增强现实照片的视觉效果和听觉效果进行综合增强,加强了增强图像的增强效果,可满足用户的拍摄需求,提升用户拍摄体验。In the method for shooting an augmented reality photo provided by the second embodiment of the present invention, there is a corresponding relationship between the target-enhanced sound effect and the target-enhanced image. The shooting needs of users can improve the shooting experience of users.

实施例三Embodiment 3

图5为本发明实施例三提供的一种增强现实照片的拍摄方法的流程示意图,本实施例以上述实施例为基础进行优化,该方法包括如下步骤:5 is a schematic flowchart of a method for taking an augmented reality photo according to Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiment, and the method includes the following steps:

步骤501、当移动终端启动增强现实拍摄模式时,确定目标增强图像,并获取所确定的目标增强图像。Step 501 , when the mobile terminal starts the augmented reality shooting mode, determine the target enhanced image, and acquire the determined target enhanced image.

步骤502、根据目标增强图像获取相应的目标增强音效。Step 502: Acquire a corresponding target enhanced sound effect according to the target enhanced image.

步骤503、在拍摄预览过程中播放目标增强音效,同时在拍摄预览界面显示目标增强图像。Step 503: Play the target enhanced sound effect during the shooting preview process, and simultaneously display the target enhanced image on the shooting preview interface.

步骤504、当接收到拍照指令时,根据摄像头捕捉的图像、目标增强图像和目标增强音效生成增强现实照片。Step 504 , when receiving the photographing instruction, generate an augmented reality photo according to the image captured by the camera, the target-enhanced image and the target-enhanced sound effect.

步骤505、在接收到对于增强现实照片的浏览指令时,显示增强现实照片中包含的图像并播放增强现实照片中包含的增强音效。Step 505: When receiving the browsing instruction for the augmented reality photo, display the image included in the augmented reality photo and play the enhanced sound effect included in the augmented reality photo.

本步骤的好处在于,可使用户在浏览照片时获得身临其境的感受,可增强浏览增强现实照片的趣味性,给用户带来全新的照片浏览体验。The advantage of this step is that the user can get an immersive feeling when browsing photos, which can enhance the interest of browsing the augmented reality photos, and bring a brand new photo browsing experience to the user.

图6为本发明实施例三提供的一种增强现实照片浏览示意图,假设接收到对于上述实施例中所举例子中生成的增强现实照片的浏览指令时,在移动终端屏幕上显示该增强现实照片中包含的图像,即包含大海、轮船和海鸥的图像,同时播放轮船鸣笛声以及海鸥叫声。FIG. 6 is a schematic diagram of browsing an augmented reality photo according to Embodiment 3 of the present invention. It is assumed that the augmented reality photo is displayed on the screen of a mobile terminal when a browsing instruction for the augmented reality photo generated in the example described in the above embodiment is received. Included in the image are images of the sea, ships, and seagulls, along with ship whistles and seagulls.

本发明实施例三在上述实施例基础上,增加了增强现实照片的浏览操作,可使用户在浏览照片时获得身临其境的感受,可增强浏览增强现实照片的趣味性,给用户带来全新的照片浏览体验。On the basis of the above-mentioned embodiments, the third embodiment of the present invention increases the browsing operation of augmented reality photos, so that users can get an immersive feeling when browsing photos, which can enhance the fun of browsing augmented reality photos, and bring users A brand new photo browsing experience.

实施例四Embodiment 4

图7为本发明实施例四提供的一种增强现实照片的拍摄装置的结构框图,该装置可由软件和/或硬件实现,一般集成在移动终端中,可通过执行增强现实照片的拍摄方法来拍摄增强现实照片。如图7所示,该装置包括获取模块701和照片生成模块702。7 is a structural block diagram of a device for taking an augmented reality photo according to Embodiment 4 of the present invention. The device can be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and can be captured by executing a method for taking an augmented reality photo Augmented reality photos. As shown in FIG. 7 , the apparatus includes an acquisition module 701 and a photo generation module 702 .

其中,获取模块701,用于在移动终端启动增强现实拍摄模式时,获取目标增强图像和目标增强音效;照片生成模块702,用于在接收到拍照指令时,根据摄像头捕捉的图像、所述目标增强图像和所述目标增强音效生成增强现实照片。Wherein, the acquisition module 701 is used to acquire the target enhanced image and the target enhanced sound effect when the mobile terminal starts the augmented reality shooting mode; the photo generation module 702 is used to, when receiving the photographing instruction, according to the image captured by the camera, the target The augmented image and the target augmented sound effect generate an augmented reality photo.

本发明实施例三提供的增强现实照片的拍摄装置,先获取目标增强图像和目标增强音效,当接收到拍照指令时,根据摄像头捕捉的图像、目标增强图像和目标增强音效生成增强现实照片。通过采用上述技术方案,在拍摄增强现实照片时,可将图像和音效一起作为增强内容加入到增强现实照片中,丰富增强现实照片的表现形式,提升增强效果。The device for taking an augmented reality photo provided by the third embodiment of the present invention first obtains the target enhanced image and the target enhanced sound effect, and when receiving a photographing instruction, generates an augmented reality photo according to the image captured by the camera, the target enhanced image and the target enhanced sound effect. By adopting the above technical solution, when taking an augmented reality photo, images and sound effects can be added to the augmented reality photo together as enhanced content, so as to enrich the representation of the augmented reality photo and enhance the enhancement effect.

在上述实施例的基础上,该装置还可包括音效播放模块,用于在获取目标增强图像和目标增强音效之后,在拍摄预览过程中播放所述目标增强音效。On the basis of the above-mentioned embodiment, the apparatus may further include a sound effect playing module, configured to play the target enhanced sound effect during the shooting preview process after acquiring the target enhanced image and the target enhanced sound effect.

在上述实施例的基础上,所述获取模块可包括图像获取单元和音效获取单元。其中,图像获取单元,用于在移动终端启动增强现实拍摄模式时,确定目标增强图像,并获取所确定的目标增强图像;音效获取单元,用于根据所述目标增强图像获取相应的目标增强音效。Based on the above embodiments, the acquisition module may include an image acquisition unit and a sound effect acquisition unit. Wherein, the image acquisition unit is used to determine the target enhanced image when the mobile terminal starts the augmented reality shooting mode, and acquire the determined target enhanced image; the sound effect acquisition unit is used to acquire the corresponding target enhanced sound effect according to the target enhanced image .

在上述实施例的基础上,该装置还可包括显示模块,用于在所述获取目标增强图像和目标增强音效之后,在拍摄预览界面显示所述目标增强图像。On the basis of the above-mentioned embodiment, the apparatus may further include a display module, configured to display the target enhanced image on the shooting preview interface after acquiring the target enhanced image and the target enhanced sound effect.

在上述实施例的基础上,所述照片生成模块包括图像生成单元和照片生成单元。其中,图像生成单元,用于根据摄像头捕捉的图像和所述目标增强图像生成增强现实图像;照片生成单元,用于将所述目标增强音效嵌入所述增强现实图像中,并生成增强现实照片。On the basis of the above embodiments, the photo generation module includes an image generation unit and a photo generation unit. Wherein, the image generation unit is used for generating an augmented reality image according to the image captured by the camera and the target enhanced image; the photo generation unit is used for embedding the target enhanced sound effect into the augmented reality image and generating an augmented reality photo.

在上述实施例的基础上,该装置还可包括:浏览模块,用于在所述根据摄像头捕捉的图像、所述目标增强图像和所述目标增强音效生成增强现实照片之后,在接收到对于所述增强现实照片的浏览指令时,显示所述增强现实照片中包含的图像并播放所述增强现实照片中包含的增强音效。On the basis of the above-mentioned embodiment, the apparatus may further include: a browsing module, configured to, after generating the augmented reality photo according to the image captured by the camera, the target-enhanced image and the target-enhanced sound effect, after receiving the When the browsing instruction of the augmented reality photo is executed, the image contained in the augmented reality photo is displayed and the enhanced sound effect contained in the augmented reality photo is played.

在上述实施例的基础上,所述目标增强音效包括基于声音恢复系统SRS技术的增强音效。On the basis of the above embodiment, the target enhanced sound effects include enhanced sound effects based on the sound restoration system SRS technology.

实施例五Embodiment 5

本实施例五提供了一种移动终端,该移动终端包括本发明实施例中所述的增强现实照片的拍摄装置,可通过执行增强现实照片的拍摄方法来进行拍摄增强现实照片。The fifth embodiment provides a mobile terminal, where the mobile terminal includes the device for taking an augmented reality photo described in the embodiment of the present invention, and can take an augmented reality photo by executing a method for taking an augmented reality photo.

示例性的,本实施例中的移动终端具体可为手机、平板电脑以及数码照相机等配置有摄像头的终端,优选为智能手机。Exemplarily, the mobile terminal in this embodiment may specifically be a terminal equipped with a camera, 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, when the mobile terminal starts the augmented reality shooting mode, the target-enhanced image and the target-enhanced sound effect are obtained first, and when a photographing instruction is received, according to the image captured by the camera, the target-enhanced image and the target Augmented sound effects generate augmented reality photos. By adopting the above technical solution, when taking an augmented reality photo, images and sound effects can be added to the augmented reality photo together as enhanced content, so as to enrich the representation of the augmented reality photo and enhance the enhancement effect.

上述实施例中提供的增强现实照片的拍摄装置及移动终端可执行本发明任意实施例所提供的增强现实照片的拍摄方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的增强现实照片的拍摄方法。The augmented reality photo shooting device and mobile terminal provided in the above embodiments can execute the augmented reality photo shooting method provided by any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the foregoing embodiments, reference may be made to the method for capturing an augmented reality photo 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 (13)

1. a kind of image pickup method of augmented reality photo characterized by comprising
When mobile terminal starts augmented reality screening-mode, the preview graph of the screen real-time display camera acquisition of mobile terminal Picture, and obtain targets improvement image and targets improvement audio, wherein the targets improvement image be with included in preview image The associated virtual content image of scenery;
When receiving photographing instruction, the image, the targets improvement image and the targets improvement sound that are captured according to camera Effect generates augmented reality photo;
Wherein, the acquisition targets improvement image and targets improvement audio include:
It determines targets improvement image, and obtains identified targets improvement image, wherein same targets improvement image correspondence is more A candidate enhancing audio;
Successively the multiple candidate enhancing audio pilot putting, for selection by the user;
The candidate enhancing audio that user is selected is as the corresponding targets improvement audio of the targets improvement image.
2. the method according to claim 1, wherein in the acquisition targets improvement image and targets improvement audio Later, further includes:
The targets improvement audio is played during shooting preview.
3. the method according to claim 1, wherein in the acquisition targets improvement image and targets improvement audio Later, further includes:
The targets improvement image is shown in shooting preview interface.
4. the method according to claim 1, wherein the image captured according to camera, the target increase Strong image and the targets improvement audio generate augmented reality photo, comprising:
The image and the targets improvement image captured according to camera generates augmented reality image;
The targets improvement audio is embedded in the augmented reality image, and generates augmented reality photo.
5. the method according to claim 1, wherein in the image captured according to camera, the target Enhancing image and the targets improvement audio generate after augmented reality photo, further includes:
When receiving the browsing instructions for the augmented reality photo, the image for including in the augmented reality photo is shown And play the enhancing audio for including in the augmented reality photo.
6. the method according to claim 1, wherein the targets improvement audio includes being based on sound recovery system The enhancing audio of SRS technology.
7. a kind of filming apparatus of augmented reality photo characterized by comprising
Module is obtained, for when mobile terminal starts augmented reality screening-mode, the screen real-time display of mobile terminal to be imaged The preview image that head obtains, and obtains targets improvement image and targets improvement audio, wherein the targets improvement image be with it is pre- The associated virtual content image of scenery included in image of looking at;
Photo generation module, image, the targets improvement image for being captured according to camera when receiving photographing instruction Augmented reality photo is generated with the targets improvement audio;
Wherein, the acquisition module includes:
Image acquisition unit, for determining targets improvement image, and obtain when mobile terminal starts augmented reality screening-mode Identified targets improvement image, wherein the same targets improvement image corresponds to multiple candidate enhancing audios;
It pilots unit, for successively pilot putting to the multiple candidate enhancing audio, for selection by the user;
Audio acquiring unit, the candidate enhancing audio for selecting user increase as the corresponding target of the targets improvement image Forte effect.
8. device according to claim 7, which is characterized in that further include:
Audio playing module, for being broadcast during shooting preview after obtaining targets improvement image and targets improvement audio Put the targets improvement audio.
9. device according to claim 7, which is characterized in that further include:
Display module, for being shown in shooting preview interface after the acquisition targets improvement image and targets improvement audio The targets improvement image.
10. device according to claim 7, which is characterized in that the photo generation module includes:
Image generation unit, image and the targets improvement image for being captured according to camera generate augmented reality image;
Photo generation unit for the targets improvement audio to be embedded in the augmented reality image, and generates augmented reality Photo.
11. device according to claim 7, which is characterized in that further include:
Browsing module, in image, the targets improvement image and the targets improvement sound captured according to camera After effect generates augmented reality photo, when receiving the browsing instructions for the augmented reality photo, the enhancing is shown The image that includes in real photo simultaneously plays the enhancing audio for including in the augmented reality photo.
12. device according to claim 7, which is characterized in that the targets improvement audio includes being based on sound restorer The enhancing audio for SRS technology of uniting.
13. a kind of mobile terminal, which is characterized in that the mobile terminal is integrated with the enhancing as described in claim 7-12 is any The filming apparatus of real photo.
CN201610507316.9A 2016-06-28 2016-06-28 A method, device and mobile terminal for taking augmented reality photos Active CN106101576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610507316.9A CN106101576B (en) 2016-06-28 2016-06-28 A method, device and mobile terminal for taking augmented reality photos

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610507316.9A CN106101576B (en) 2016-06-28 2016-06-28 A method, device and mobile terminal for taking augmented reality photos

Publications (2)

Publication Number Publication Date
CN106101576A CN106101576A (en) 2016-11-09
CN106101576B true CN106101576B (en) 2019-07-16

Family

ID=57214249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610507316.9A Active CN106101576B (en) 2016-06-28 2016-06-28 A method, device and mobile terminal for taking augmented reality photos

Country Status (1)

Country Link
CN (1) CN106101576B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11368746B2 (en) 2018-02-08 2022-06-21 Beijing Sensetime Technology Development Co., Ltd. Method and device for generating special effect program file package, method and device for generating special effect, and electronic device
US11521389B2 (en) 2018-01-19 2022-12-06 Beijing Sensetime Technology Development Co., Ltd. Method for generating special effect program file package, method for generating special effect, electronic device, and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598238B (en) * 2016-12-03 2019-05-24 赵良华 Implementation method and display system for displaying photo book based on augmented reality
CN107886576B (en) * 2017-10-31 2022-07-08 广东小天才科技有限公司 AR interaction method and terminal device
CN111862349B (en) * 2019-04-26 2025-12-16 北京字节跳动网络技术有限公司 Virtual brush implementation method, device and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577788A (en) * 2012-07-19 2014-02-12 华为终端有限公司 Augmented reality realizing method and augmented reality realizing device
CN105681684A (en) * 2016-03-09 2016-06-15 北京奇虎科技有限公司 Image real-time processing method and device based on mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247482B (en) * 2007-05-16 2010-06-02 北京思比科微电子技术有限公司 Method and device for implementing dynamic image processing
KR20150116032A (en) * 2014-04-03 2015-10-15 (주)세븐피엠밴드 Method of providing augmented reality
CN105187737A (en) * 2015-07-31 2015-12-23 厦门美图之家科技有限公司 Image special effect processing display method, system and shooting terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577788A (en) * 2012-07-19 2014-02-12 华为终端有限公司 Augmented reality realizing method and augmented reality realizing device
CN105681684A (en) * 2016-03-09 2016-06-15 北京奇虎科技有限公司 Image real-time processing method and device based on mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11521389B2 (en) 2018-01-19 2022-12-06 Beijing Sensetime Technology Development Co., Ltd. Method for generating special effect program file package, method for generating special effect, electronic device, and storage medium
US11368746B2 (en) 2018-02-08 2022-06-21 Beijing Sensetime Technology Development Co., Ltd. Method and device for generating special effect program file package, method and device for generating special effect, and electronic device

Also Published As

Publication number Publication date
CN106101576A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
US10819969B2 (en) Method and apparatus for generating media presentation content with environmentally modified audio components
CN109564760B (en) Method and apparatus for generating virtual or augmented reality presentations through 3D audio positioning
EP4270166A2 (en) Virtual and real object recording in mixed reality device
CN106101576B (en) A method, device and mobile terminal for taking augmented reality photos
CN106200918B (en) Information display method and device based on AR and mobile terminal
WO2017182703A1 (en) An apparatus and associated methods
US12333669B2 (en) Data processing method and apparatus, electronic device, computer-readable storage medium, and computer program product
WO2019193364A1 (en) Method and apparatus for generating augmented reality images
WO2020201764A1 (en) Method and apparatus for generating three dimensional images
CN106200917A (en) An augmented reality content display method, device and mobile terminal
US20180275861A1 (en) Apparatus and Associated Methods
Langlotz et al. AR record&replay: situated compositing of video content in mobile augmented reality
US20230344973A1 (en) Variable audio for audio-visual content
CN112511815B (en) Image or video generation method and device
KR102200239B1 (en) Real-time computer graphics video broadcasting service system
Mori et al. An overview of augmented visualization: observing the real world as desired
CN106203288A (en) A camera method, device and mobile terminal based on augmented reality
JP7065708B2 (en) Recording / playback device and program
WO2022102446A1 (en) Information processing device, information processing method, information processing system and data generation method
KR101843024B1 (en) System and Computer Implemented Method for Playing Compoiste Video through Selection of Environment Object in Real Time Manner
US9715900B2 (en) Methods, circuits, devices, systems and associated computer executable code for composing composite content
HK40089840A (en) Data processing method, apparatus, and device
KR101743874B1 (en) System and Method for Creating Video Contents Using Collaboration of Performing Objects

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

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant