iOS上的OpenCV - GPU使用情况? [英] OpenCV on iOS - GPU usage?

查看:282
本文介绍了iOS上的OpenCV - GPU使用情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发一款iOS应用,可以对来自相机的视频执行实时效果,就像iPad上的Photobooth一样。我熟悉OpenCV的API,但如果在CPU和GPU上完成大部分处理,我担心iOS上的性能。像 GPUImage 这样的图书馆很可能会成功,但我宁愿留下我熟悉的东西。那么,有没有人知道为iOS编译的OpenCV是否使用GPU?

I am trying to develop an iOS app that performs real time effects on video from the camera, much like Photobooth on the iPad. I am familiar with the API for OpenCV but am worried about the performance on iOS if most processing is completed on the CPU versus the GPU. Libraries like GPUImage would most likely do the trick but I would rather stay with something I am familiar with. So, does anyone know if OpenCV compiled for iOS uses the GPU?

推荐答案

OpenCV使用Cuda的GPU只支持NVidia显卡。 openCV的GPU功能有一个实验端口可以支持OpenCL,未来可能会支持OpenCL - 至少在iPad上(它的GPU可以运行OpenCL)

OpenCV uses Cuda for it's GPU which is only supported on NVidia graphics cards. There is an experimental port of openCV's GPU functions to OpenCL and it's likely that OpenCL will be supported in the future - at least on iPad (it's GPU can run OpenCL)

你可以在iPhone和iPad上使用OpenGL ES2.0中的着色器

You can use shaders in OpenGL ES2.0 on the iPhone and iPad

这篇关于iOS上的OpenCV - GPU使用情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆