Skip to content

Commit 90fbafc

Browse files
authored
Create README.md
1 parent f799b4f commit 90fbafc

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+

0 commit comments

Comments
 (0)