Ask Your Question

CvVideoCamera or not

asked 2013-02-27 04:49:41 -0500

VansFannel gravatar image

I'm staring to develop my first OpenCV iOS application and I wondering if it is better to use AVFoundation directly instead of using CvVideoCamera (that is a wrapper for AVFoundation).

I need the maximum speed.

What do you think?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-02-27 04:55:44 -0500

Not that I have many experience on mobile platforms, but the general way to improve speed during processing is to use as less wrapper functions as possible. However, CvVideoCamera does more then just wrap AVFoundation, it also makes sure that correct variables are created, assigned and maybe other functions are called.

So if you decided to go into the code and call AVFoundation directly, make sure that you do everything that is done inside CvVideoCamera manually yourself in your code.

edit flag offensive delete link more


Thanks for your answer. Where can I find CvVideoCamera source code? Thanks again.

VansFannel gravatar imageVansFannel ( 2013-02-27 05:21:34 -0500 )edit

I guess you should download the openCV source code from the repository, then look at the dev forum where exactly this source code is located.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-02-27 05:29:30 -0500 )edit

answered 2013-04-15 06:26:50 -0500

ske gravatar image

Also you can use GSOC 2012 examples as a starting point. They are using AVFoundation directly instead of using CvVideoCamera as a wrapper.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-02-27 04:49:41 -0500

Seen: 778 times

Last updated: Apr 15 '13