无法将cv.h添加到项目中

use*_*083 3 xcode opencv

我是Xcode的新手.我需要一个帮助来为我的项目添加lib.我已经下载了opencv框架.我已将它添加到我的项目中.在main.hi有:

#include <stdio.h>  
#include <cv.h> 
#include <highgui.h>

#import <UIKit/UIKit.h>   
#import "AppDelegate.h"


int main(int argc, char *argv[])

{
    @autoreleasepool {

    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
Run Code Online (Sandbox Code Playgroud)

}

当我运行我的项目时,我收到如下错误:未找到cv.h,找不到highgui.h.我检查/ usr/include通过终端,我看到cv.h和highgui.h位于那里.告诉我一个人该怎么办?

Gur*_*uru 7

尝试

#include <opencv/cv.h>

OR

#include <opencv2/opencv.hpp>
Run Code Online (Sandbox Code Playgroud)

有关OpenCV安装的更多信息 - 单击此处