File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ # OpenCV_Project
2
+
3
+ 1.brew install opencv
4
+
5
+ 2.CLion Create project
6
+
7
+ 3.Edit CmakeLists.txt
8
+
9
+ ```
10
+ cmake_minimum_required(VERSION 3.13)
11
+ project(OpenCVDemo)
12
+
13
+ set(CMAKE_CXX_STANDARD 14)
14
+
15
+ find_package(OpenCV REQUIRED)
16
+
17
+ message("Version: ${OpenCV_VERSIOIN}")
18
+
19
+ include_directories("/usr/local/Cellar/opencv/4.1.0_2/include/opencv4")
20
+ link_libraries("/usr/local/Cellar/opencv/4.1.0_2/lib")
21
+
22
+ add_executable(OpenCVDemo main.cpp)
23
+
24
+ target_link_libraries(OpenCVDemo
25
+ opencv_videoio
26
+ opencv_core
27
+ opencv_highgui
28
+ opencv_video)
29
+ ```
30
+
31
+
32
+ ## Compile On Xcode
33
+ Run: cmake -G "Xcode" .
34
+
35
+ - OpenCVXcodeDemo : run OpenCV on Xcode
36
+ - OpenCVDemoCli : run OpenCV on Command Line
37
+ - OpenCVFaceDetect
38
+ 1.Detect Faces
39
+ 2.Tracking Faces
40
+
41
+
You can’t perform that action at this time.
0 commit comments