Skip to content

kdevivanco/opencv_intro

Repository files navigation

Project Set Up

Requirements - Mac:

  • C++
  • opencv -> brew install opencv
  • cmake -> brew install cmake
  • gcc -> brew install gcc

Instruction to create files:

  1. Create CMaketxt File
touch CMakeLists.txt
// Paste this text into text file: 

cmake_minimum_required(VERSION 3.10)
project(MyProject)
find_package(OpenCV REQUIRED)
add_executable(MyProject webcamtest.cpp)
target_link_libraries(MyProject ${OpenCV_LIBS})

  1. Create Build Directory
mkdir build
  1. Move to build
cd build
  1. Generate cmake project
cmake ..
  1. Create your test.cpp

  2. Compile

cd build
make 
  1. Run
./MyProject

Just run instructions:

cd build
make
./MyProject

Dont forget to change the file name in CMakeLists.txt to run your test!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published