Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

beon

macrumors newbie
Original poster
Sep 25, 2008
10
0
LA CA
So, when it comes to using the OpenCV framework (available here) in Objective-C, THIS guy says:
Surprisingly, this task is incredibly simple. In less than 200 lines of Objective-C, I’ve got a CoreVideo-based OS X application that does blob detection using OpenCV.

Well, that blows my mind, 'cause I can't seem to get it up and running. I add the framework, add a build step to my project target to copy the private framework files... but my compiler balks at the line
Code:
#import "highgui.h"
telling me
Code:
error: highgui.h: No such file or directory

Which makes me feel like a n00b, which, when it comes to OpenCV, is the truth.

Do any of you out there in MacRumors-Land have any tips, or better yet, any Objective-C code that uses OpenCV?

I'd be real happy, if so...

Much respect,

beOn
 

IntuitiveWorkz

macrumors newbie
Feb 4, 2009
1
0
Do you have an example of how you installed opencv?

I'm getting the same error you did but I am using <headername/headerfile.h>

Any thoughts?

Thanks
 

wittegijt

macrumors member
Feb 18, 2007
31
0
Eindhoven
Do you have an example of how you installed opencv?

I'm getting the same error you did but I am using <headername/headerfile.h>

Any thoughts?

Thanks

There is not much installing it, just add it to your xcode project and add a 'Copy files' buildstep to copy the framework in your app bundle. Since this is a private framework, you can't use it in command line apps.

Wittegijt.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.