11

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?

1

1 Answer 1

18

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)

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

2
  • 21
    @NathanMurray - I should point out that one of the primary reasons I wrote GPUImage was to eventually replace many of the functions of OpenCV in a GPU-accelerated manner. It uses OpenGL ES 2.0 shaders under the hood and abstracts away the underlying code required for maximum performance on iOS. For processing live video on iOS, I can say with confidence that there's no library faster than it right now. I've also tried to make it as easy to incorporate into an application as I can.
    – Brad Larson
    May 22, 2012 at 17:15
  • 4
    Brad's GPUImage is very useful.
    – Rob
    Jan 25, 2014 at 20:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.