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

preview_player
Показать описание


Install OpenCV via homebrew: brew install opencv

cmake_minimum_required(VERSION 3.10)
project(MyProject)
find_package(OpenCV REQUIRED)
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.

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

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
Рекомендации по теме
Комментарии
Автор

Concise and easy to understand. I salute you, big bro. Keep up the good work.

itheblackwolfofmyfamily
Автор

Great video. Been trying since the morning to find instructions that actually worked. This is the only one that worked as promised.

Used to work with C++ and OpenCV on Linux and Windows. Only recently started on MacOS so it is taking time to get the same things working.

TheOtherNEO
Автор

Woo hoo!! 🎉 For future viewers, the tutorial code is the first link in the description, and you've got to bring your own mp4

BenOgorek
Автор

Works with Mac M1 Perfect! have been searching for this a lot!

rukshanj.senanayaka
Автор

Holy shit there is a video on this. Thanks so much

tapahni
Автор

unfortunately it did not solve my problems on MacBook Pro

IsamAlHassan-te
Автор

hey its giving an zsh: command not found: cmake

ramavathjagadeesh
Автор

Thanks a lot. As you said it is not available at other places. I am beginner to cpp, not to coding though. One question that can't we generate object files directly without going through this make and all procedure.

ghostoftsushimaps
Автор

thank you
I was trying From last 2 months

prajwal
Автор

When using the command "cmake .." it appears "zsh: command not found: cmake". ¿Why is that happening?

Sir_Horus_ow
Автор

I got a "Error: Could not open video file" is this the error referred to about the absolute reference? If so, how would I make it one? Thanks!

bao-chaunguyen
Автор

1 Vote up. Make video on how to download opencv using brew also compiling and running on terminal without linking issues! But overall well done!

black_n_brown
Автор

A billion like bro. First video to work for me. Could you do tensorflow cpp for mac also? thanks

ikechukwumichael
Автор

How do I get rid of the include error?

m.
welcome to shbcf.ru