← Back

ofxOpencvHomebrew

github.com/jonasfehr/ofxOpencvHomebrew · @jonasfehr
OF 0.10 Computer Vision Utilities

Adds the necessary linker flags to use the Homebrew-installed OpenCV on OSX in Xcode projects, as an alternative to ofxOpenCV.

0 0 Last commit 7y ago Created 8y ago

README

ofxOpencvHomebrew

openFrameworks addon to to use openCV installed with homebrew on OSX

Introduction

Instead of ofxOpenCV you can use this addon to add the necessary flags to your xcode file.

Installation

1. Copy to your openFrameworks/addons folder or use <code>git clone</code> 2. Use the Project generator to create your project. 3. Check if the following lines are correctly added to your Xcode Project file

LINKER FLAGS

to create your own list use following line in your terminal: pkg-config --cflags --libs /usr/local/Cellar/opencv/4.1.0_1/lib/pkgconfig/opencv4.pc

-I/usr/local/Cellar/opencv/4.1.0_1/include/opencv4/opencv -I/usr/local/Cellar/opencv/4.1.0_1/include/opencv4 -L/usr/local/Cellar/opencv/4.1.0_1/lib -lopencv_gapi -lopencv_stitching -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dpm -lopencv_face -lopencv_freetype -lopencv_fuzzy -lopencv_hfs -lopencv_img_hash -lopencv_line_descriptor -lopencv_quality -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_sfm -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_superres -lopencv_optflow -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_dnn -lopencv_plot -lopencv_videostab -lopencv_video -lopencv_xfeatures2d -lopencv_shape -lopencv_ml -lopencv_ximgproc -lopencv_xobjdetect -lopencv_objdetect -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_flann -lopencv_xphoto -lopencv_photo -lopencv_imgproc -lopencv_core


HEADER SEARCH PATH
/usr/local/Cellar/opencv/4.1.0_1/include/opencv4


LIBRARY SEARCH PATH (!!! THIS ONE NEEDS TO BE ADDED MANUALT)
/usr/local/Cellar/opencv/4.1.0_1/lib

Get this addon

HTTPS
SSH