Kahsn
Kahsn

Reputation: 1045

opencv framework not found in iOS

I'm trying to add opencv framework into built project(https://github.com/amolaks76/iOS-Camera-and-OpenCV) I found from Github. I'm just trying to run the app on my iPhone to see how opencv works with Swift. I added opencv.framework which I found from opencv website. Even if I add the framework, it still complains like below image. enter image description here

one thing I found is that opencv.framework has different image than apple's framework like below: enter image description here

I've seen other stackoverflow questions about this matter and people suggested to make sure Always Search User Paths is Yes. I'm updating my search path setting below: enter image description here

can you guys tell me what I'm doing wrong here?

Upvotes: 1

Views: 191

Answers (2)

Mehul Thakkar
Mehul Thakkar

Reputation: 12594

use following

#import "opencv2/opencv.hpp"

and in build settings -> compile as -> objective c++

Upvotes: 1

Shubham bairagi
Shubham bairagi

Reputation: 953

you need to download ovencv frame work from https://github.com/Itseez/opencv add it to your project

Upvotes: 0

Related Questions