How to Setup OpenCV for C++ on Visual Studio Code (MacOS)

Published: 20 February 2023
on channel: Elliotcodes
13,429
276

Tutorial files: https://github.com/Infatoshi/opencv-s...

Install homebrew in terminal: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Hom...)"

Install OpenCV via homebrew: brew install opencv

touch CMakeLists.txt

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

mkdir build
cd build
cmake ..
make
./MyProject

Do the "make" command AFTER you have pasted the code into the script and have saved it.


Join my discord server!:  / discord  


I use Nvidia Shadowplay and OBS studio to record
Record with 60fps + 4k res + 50 bitrate
I edit with Sony Vegas Pro 16
Any video that are recorded without my pc webcam are using the camera on my Oneplus 7 Pro(The phone I use)

Socials

Twitch:   / qtinfectious  

Youtube:    / @elliotarledge  

Instagram: qtinfectious

Twitter: @qtInfectious


Equipment:

Mouse: Razer Viper Mini - Wired

Keyboard: Apex Pro TKL (omnipoint switches)

Headset: HyperX Cloud ll

Webcam/Mousecam: Logitech Brio

Mousepad: Aqua Control Plus

Primary Monitor: Acer v279-144hz-1ms

Secondary Monitor: 144hz dell 24 inch monitor

Router: ROG Rapture GT-AC5300


PC Specs:

Graphics Card: Nvidia Geforce 3070 (FHR)

Processor: Ryzen 5 3600x

Motherboard: Msi Tomahawk b450

Memory: 32GB-3200mhz

Storage: 500GB nvme SSD & 1 TB Western Digital SSD

Power Supply: 650 watts +80 Gold


Watch video How to Setup OpenCV for C++ on Visual Studio Code (MacOS) online without registration, duration hours minute second in high quality. This video was added by user Elliotcodes 20 February 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 13,429 once and liked it 276 people.