简体   繁体   English

Android相机和预定义图片

[英]Android camera and predefined picture

I have been searching for a tutorial on this matter but I can't find any. 我一直在寻找有关此问题的教程,但找不到。 Basically I want to create an option on my App which lets you take a picture. 基本上,我想在我的应用程序上创建一个选项,让您拍照。 The complicated part is that there should be a predefined picture (lets say its a dog) which will appear at your side on the photo. 复杂的部分是应该有一张预定义的图片(可以说是一只狗),它将出现在您的照片旁边。 It's like if you add a picture of a dog in the photo you have just taken. 就像您在刚拍摄的照片中添加了狗的照片一样。

The dog should appear on the camera preview and the taken picture should contain it. 狗应出现在相机预览中,并且所拍摄的照片应包含该狗。 I will gladly appreciate any help. 我将非常感谢您的帮助。

Regards 问候

OpenCV for Android have samples that modify camera preview, such as apply color filters while previewing. 适用于Android的OpenCV具有可修改相机预览的示例,例如在预览时应用滤色器。 I think one can define and put an image, too. 我认为也可以定义和放置图像。 Not that this is very easy. 并不是说这很容易。 There are also other specific augmented reality frameworks but I don't know much about them. 还有其他一些特定的增强现实框架,但我对其了解不多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM