本文介绍了iPhone camerOverlay与Alternate Reality应用程序一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 限时删除!! 有没有人知道一种方法来拍摄在iphone相机上拍摄的图像,并进行一些图像处理(例如边缘检测,骨架化),然后在原始图像上覆盖部分处理后的图像(例如,仅突出显示的边缘) 。 更一般地说,我如何创建一个具有透明度的UImage(我是否只是缩放图像并用Alpha值覆盖它,UIImage是否支持gif这样的透明度)。我在想,你可以把UIImagePickerController和后台线程结合起来,需要截图的UIImagePickerController视图,并对其进行图像处理以检测各种对象并提供叠加增强现实显示。 有一个开源的简单图像处理库。 演示显示了拍摄原始照片(数独板)的示例,然后覆盖在原始照片中检测到的物体。 他们解释了一些在他们的博客上使用高级技术。 解决方案 移植到iPhone 。借助OpenCV,您可以选择根据您的考虑拍摄屏幕截图或一次一帧地在实况流上进行图像处理。看看它的一些教程程序,它们真的很有用。 Does anyone know a way to take an image captured on the iphone's camera, and do some image processing (e.g. edge detection, skeletization), and then overlay parts of the processed image on the original image (e.g. only the highlighted edges).More generically how do I create a UImage with transparency (do I just scale the image and overlay it with an alpha value, does UIImage support transparency like gifs do). I'm thinking that you could combine a UIImagePickerController with a background thread that takes "screenshots" of the UIImagePickerController view and does image processing on it to detect various objects and provide an overlay augmented reality display.There's an open source simple image processing library for the iphone. The demo shows an example of taking an original photo (of a sudoku board) and then overlaying the detected object in the original photo.They explain some of the high-level techniques on their blog . 解决方案 OpenCV makes image overlays remarkably simple, and it's been ported to the iPhone. With OpenCV you can choose to take screenshots as you considered or do image processing on a live stream, one frame at a time. Take a look at some of its tutorial programs, they're really helpful. 这篇关于iPhone camerOverlay与Alternate Reality应用程序一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的..
09-08 02:05