Ask Your Question
0

CvVideoCamera or not

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

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
1

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

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

Comments

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

VansFannel gravatar imageVansFannel ( 2013-02-27 05:21:34 -0600 )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 -0600 )edit
1

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

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.

http://www.code.opencv.org/projects/ios/repository/show/trunk

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 903 times

Last updated: Apr 15 '13