Setup OpenCV in Visual Studio 2022 for C/C++ Development

  Рет қаралды 86,295

BoostMyTool

BoostMyTool

Күн бұрын

Пікірлер
@BoostMyTool
@BoostMyTool 3 жыл бұрын
#include #include #include #include using namespace cv; int main() { cv::Mat img = cv::imread("C:/Users/BoostMyTool/Desktop/image.jpg"); namedWindow("First OpenCV Application", WINDOW_AUTOSIZE); cv::imshow("First OpenCV Application", img); cv::moveWindow("First OpenCV Application", 0, 45); cv::waitKey(0); cv::destroyAllWindows(); return 0; }
@jacobparmenter2520
@jacobparmenter2520 Жыл бұрын
Just for other people to reference in the future - If you include the line 'using namespace cv;' you don't need to add cv:: before each function and vice versa
@jimmychase8494
@jimmychase8494 Жыл бұрын
If you have restarted VS and it still cannot find the dll the your path variable is probably set incorrectly. In the video he uses a semicolon however on my PC I had to add the path to a new line the semicolon did not work as that is for older versions of windows. I got this error and it took me hours to find that it was how i set the path variable. Pls like this comment to bump :)
@jamadhar6
@jamadhar6 Жыл бұрын
I had another strange error. I got the same problem as you, but the problem at me was, somehow the system variables location vanished after I set it. When I set the location again, it was working perfectly.
@ChoonLinKe
@ChoonLinKe Жыл бұрын
A very short & sweet video that concisely shows how c++ should be setup to run opencv correctly! I have been searching around for over 2 months and this solves the mystery. Great job, BoostMyTool!
@heckfyorrok7819
@heckfyorrok7819 2 жыл бұрын
You are the only one on the whole KZbin who explained all this correctly and well
@sivadineshponrajan3722
@sivadineshponrajan3722 Жыл бұрын
After a long struggle for a week, this video came as a saviour! Thanks ;)
@tvharikrishna4080
@tvharikrishna4080 8 ай бұрын
Thanks Man, you made it very easy !! Worked 100%
@OmerMohamed-h1s
@OmerMohamed-h1s 15 күн бұрын
how it work with you ... please help me
@wolfythedev
@wolfythedev Жыл бұрын
Sheesh, I wish I found this tutorial about 12 hours ago lol! I came from python where this whole process is 2 steps. Thank you so much - after sifting through outdated docs and stack overflow posts, I finally got it to work.
@userrjlyj5760g
@userrjlyj5760g Жыл бұрын
Finallyyyyyyyyyyyyyyyyyyyyyyyyyyyyy..... finally a REAL working solution for running opencv with VS .... Dude many many thanks....
@stefanmladenovic2040
@stefanmladenovic2040 8 ай бұрын
This tutorial is saving me with another library for the third time. Thank you!
@mehran783
@mehran783 8 ай бұрын
I still cannot do setup correctly. Can you please help me with this.
@awildted3265
@awildted3265 2 жыл бұрын
Excellent tutorial. A notoriously difficult tool to setup. This was straight forward and worked first time :)
@JunyangZhang-cs3it
@JunyangZhang-cs3it 3 ай бұрын
it works cheers man
@jlengg
@jlengg 5 ай бұрын
Unbelievably concise tutorial. Thank you.
@zelda.geek6162
@zelda.geek6162 2 жыл бұрын
Thank you SO MUCH! Nothing but your tutorial worked!
@SirPaulMuaddib
@SirPaulMuaddib Жыл бұрын
Thanks, I couldn't run simple examples before, now I can.
@rahulsharma60
@rahulsharma60 Жыл бұрын
THANKYOU VERY MUCH ! Like seriously , i was so confused after watching so many tutorials but at the end only this one worked for me ! Thankyou very much man!
@sushilkrsoni2796
@sushilkrsoni2796 Жыл бұрын
Were you getting Properties option in your VS Code ? How did you configured ? Please help
@shambles-io
@shambles-io 2 жыл бұрын
Great tutorial! Clear steps that actually worked. Merci beaucoup!
@nut1752
@nut1752 Жыл бұрын
Thanks a lot, you saved my day. Straight and clear to the point
@MingJing-e1e
@MingJing-e1e Жыл бұрын
A short but very helpful video. Thanks a lot.
@tymothylim6550
@tymothylim6550 Ай бұрын
Thanks! This really helped me!
@Anton-be6ty
@Anton-be6ty Жыл бұрын
Thank you very much, this method works on the version openCV 4.4. Visual studio 2019 on Windows 7
@dragongali2340
@dragongali2340 2 жыл бұрын
Thank you very much, it helped me when I got stuck. Keep up with the great tutorials
@enumclaw79
@enumclaw79 2 жыл бұрын
Thank you so much!! I have been round and round the internet for ages trying to work out how to do this. ALL of the other tutorials out there are for earlier versions of VS and they don't seem to work!
@dol_6a_eb
@dol_6a_eb 5 ай бұрын
thank you broooo, its really help me! good luck!
@tlight901
@tlight901 5 ай бұрын
Excellent concise explanation, thank you. Liked and Subscribed. 👍
@ajlaibrah7558
@ajlaibrah7558 2 жыл бұрын
Thank You so much I have been trying to crack it since 2 days.. Finally it worked.. thanks
@kotai2003
@kotai2003 2 жыл бұрын
Thanks so much. With the help of your video, I could execute my first opencv cpp in my computer.
@lp-w420
@lp-w420 11 ай бұрын
Great video! It worked
@jb0433628
@jb0433628 Жыл бұрын
Straight to the point ! Thanks very much.
@bharatakabari5646
@bharatakabari5646 Жыл бұрын
Very good tutorial with precise steps for the settings !!
@musiclife0808
@musiclife0808 11 ай бұрын
Thank You Very Much Such!!!! I Have Watch Many Tutorials But It Is Very Short And Easy!!!
@machinelearningapplication6467
@machinelearningapplication6467 2 жыл бұрын
Excellent tutorial saved me loads of time
@justasj5628
@justasj5628 Жыл бұрын
Thank you, it worked for me!
@malikjunaid7202
@malikjunaid7202 Жыл бұрын
thanks man very short and precise
@gcmnz_
@gcmnz_ 6 ай бұрын
bro u are the best!! i love u!
@kidolola2246
@kidolola2246 11 ай бұрын
Great job!
@aseratawya6943
@aseratawya6943 Жыл бұрын
You saved my life, man.
@lightkwak6259
@lightkwak6259 2 жыл бұрын
Muchas gracias querido compatriota, saludos desde chile
@abdulkarimatrash
@abdulkarimatrash 2 жыл бұрын
excellent work bro !! BRAVO!
@maffiou-ze
@maffiou-ze 2 жыл бұрын
Yep, that worked fine! Thanks
@KnightMaresX
@KnightMaresX 7 ай бұрын
you are amazing , thank you
@sazidsazid4199
@sazidsazid4199 2 жыл бұрын
It worked. Thanks a lot
@EsraEser-gg8rr
@EsraEser-gg8rr 2 жыл бұрын
Thank you! That worked fine
@ecsanders3352
@ecsanders3352 Жыл бұрын
Thanks for the great tutorial!
@kasunkalhara5335
@kasunkalhara5335 8 ай бұрын
Thank you very much. god bless you ❤
@NotAndrew19
@NotAndrew19 6 ай бұрын
Great! thanks
@Jack-xz7bf
@Jack-xz7bf Жыл бұрын
Thank you very much, this video helped me❤
@behrampatel4872
@behrampatel4872 3 ай бұрын
superb. learned how to build a release version. cheers Do you know how to get it to work in vs code ? i'm getting linker errors despite installing cmake tools etc Thanks
@rolandblok
@rolandblok 2 жыл бұрын
Thank you. Perfect!
@ah-lx9xi
@ah-lx9xi 9 күн бұрын
If you have two cameras set about 10 cm apart filming a moving object and you want to calculate distance. How do you find the difference in pixel shift along X-axis? Can you show this in c++, example video from cam1 and cam2.
@raztaz826
@raztaz826 Жыл бұрын
Worked great for me! I used VS2019 and vc16, the only difficulties were that I forgot to change the file path in the first line and to change it to x64 at the top.
@srivastavkumar5497
@srivastavkumar5497 Ай бұрын
100% working,
@vealar
@vealar 2 жыл бұрын
Спасибо. много видео пересмотрел как подключить OpenCV. Ваше видео помогло
@yumiyonashi8518
@yumiyonashi8518 9 ай бұрын
solved my problem.Thank you helped a lot
@Yigitkagankilic
@Yigitkagankilic 2 жыл бұрын
Thanks for your help.
@念楓
@念楓 Жыл бұрын
really really really really really niceeeee!!!!!
@resolvepcchannel
@resolvepcchannel Жыл бұрын
Thank you so much!
@peterng.
@peterng. Жыл бұрын
Well explained!!
@nabilamin2401
@nabilamin2401 5 ай бұрын
i performed all these instruction but i had the following message .. the image cannot be read
@tobyward661
@tobyward661 Жыл бұрын
you are a life saver
@syedahmedmustafa1832
@syedahmedmustafa1832 11 ай бұрын
i have configured everything perfectly the image is loading on visual studio but the recognition sign is not appearing on the image can you tell me what i am missing?
@Waslain
@Waslain 6 ай бұрын
MERCIIIIIIIIIIIIIIIIIIIIIIIIIIIIII !
@williampercypachamangocald7618
@williampercypachamangocald7618 Жыл бұрын
Excelente a funcionado!!!
@сотрудникроскомнадзора
@сотрудникроскомнадзора 4 ай бұрын
thx man
@akashjoshi4967
@akashjoshi4967 2 жыл бұрын
Thank you so much
@AndrijaRD
@AndrijaRD 2 жыл бұрын
thank you so much!!!
@tladilebohang
@tladilebohang Жыл бұрын
THANK YOU VERY MUCH
@drlokuras
@drlokuras Жыл бұрын
Great!
@harshithan1672
@harshithan1672 Жыл бұрын
I am not getting the image it says can't open or read file in debug console
@khaleddiab89
@khaleddiab89 2 жыл бұрын
which version of the visual studio and CV are you using? at minute 4:51, the step of linker and onward I can't find this path in my folder, I am using cv 4.5.2 version , please advise
@qew34v233v
@qew34v233v Жыл бұрын
ur awsome
@mateolopezgaffney9285
@mateolopezgaffney9285 29 күн бұрын
LA CABRA 🐐
@marwaabueladl7756
@marwaabueladl7756 2 жыл бұрын
but what about the debug mode
@cichacz09
@cichacz09 2 жыл бұрын
In 03:46 of the film you need to choose Debug instead of Release and follow all the steps, just like in Release mode, but when adding opencv_world.lib file remember to choose the file with "d" at the end of filename (in this film it's opencv_world455d.lib)
@sushilkrsoni2796
@sushilkrsoni2796 Жыл бұрын
I am not getting Properties option in my VS Code Why ? Anyone help!!
@Leo-io4bq
@Leo-io4bq Жыл бұрын
It worked
@ekz3801
@ekz3801 Жыл бұрын
❤❤
@blackheart4444
@blackheart4444 2 жыл бұрын
Thankyou so much
@ajayjadhav900
@ajayjadhav900 2 жыл бұрын
How to include sub-directories in Visual Studio? I have to include many header files, which are in different sub-directories. Is there a way in Visual Studio (I am using 2013 edition) to set one include path that Visual Studio will search also the sub-directories for header files? My Project is in C/C++. Add the "base folder" to the project (project properties -> Configuration Properties -> C/C++ -> Additional Include Directories, "additional include directories") I have tried the above option but it is not possible for me to add each and every directory followed by a semicolon. I have total 60 + different C C++ sub-directories
@baharehhashemi2250
@baharehhashemi2250 Жыл бұрын
thank you sir
@andydollar007
@andydollar007 2 жыл бұрын
successfully built the project, but image no show... any idea??? cv::imshow("First OpenCV Application", img);
@andydollar007
@andydollar007 2 жыл бұрын
problem resolved. need to create empty project instead....lol Anyway, thanks for the tutorial. Much appreciate higher level like c# to cut through the ceremonies... lmao
@r0qulu
@r0qulu 2 жыл бұрын
VCRUNTIME140_1.dll was not found . Reinstalling the program may fix this problem . Anyone know how to fix this ?
@anshXR
@anshXR Жыл бұрын
Is it compatible to use opencv vc15 build with visual Studio 2022 (cuz it uses vc17)
@phuongleuc2699
@phuongleuc2699 2 ай бұрын
nice
@apoorvsharma6932
@apoorvsharma6932 Жыл бұрын
ty
@vindom6524
@vindom6524 2 жыл бұрын
i restarted my visial studio and it still showed the same error message
@ahmadhassan8193
@ahmadhassan8193 2 жыл бұрын
you have to have an image at the path
@kalpmodi
@kalpmodi Жыл бұрын
​​@@ahmadhassan8193 on which path??
@FatimaMazhar25
@FatimaMazhar25 Жыл бұрын
Yes kindly tell which image path? @Ahmad Hassan
@jimmychase8494
@jimmychase8494 Жыл бұрын
If you have restarted VS and it still cannot find the dll the your path variable is probably set incorrectly. In the video he uses a semicolon however on my PC i had add the path to a new line the semicolon did not work as that is for older versions of windows. I got this error and it took me hours to find that it was how i set the path variable.
@Leo-io4bq
@Leo-io4bq Жыл бұрын
@@kalpmodi just download any image and change the path in the given code
@juliuswiest7815
@juliuswiest7815 8 ай бұрын
Guys help the solution isnt even building whyyyyyyyyy
@dr.kalculator6698
@dr.kalculator6698 5 ай бұрын
i love you
@djtechzz
@djtechzz 2 жыл бұрын
how to do with python
@oo--7714
@oo--7714 Жыл бұрын
Running opencv is like playing a souls game, too top needlessly complicated, honestly it should just be included with Microsoft visual studio.
@fromrome3658
@fromrome3658 2 жыл бұрын
Weel Done !!
@KEKW-lc4xi
@KEKW-lc4xi Жыл бұрын
hold up we have to add the path to our system environmental variables? why can't we just add it to our project variables or something? That is beyond messy. So over time our system environmental variables are just going to be a clusterfuck the more C++ applications we develop unless we tediously remove each path after each project completion? I'm starting to regret trying to work with C++... Anaconda does such a better job with this issue with python and C++ has been around longer than Python wth.
@longhai6458
@longhai6458 Жыл бұрын
thanks you
@badbongos9176
@badbongos9176 Жыл бұрын
thank you so much!
@tulkiidra6833
@tulkiidra6833 Жыл бұрын
Thank you so much
@Studioyachrogdenok
@Studioyachrogdenok Жыл бұрын
thx u very much!
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Рет қаралды 943 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Top 25 Computer Vision Projects 2021
6:01
Murtaza's Workshop - Robotics and AI
Рет қаралды 214 М.
Installing and Configuring OpenCV for Visual Studio 2022
6:02
Create an OpenCV 4 Project in Visual Studio [C++]
10:08
Adam Hacks
Рет қаралды 46 М.
So AGI is here and it's USELESS! - OpenAI o3
4:22
Pourya Kordi
Рет қаралды 76
OpenGL Course - Create 3D and 2D Graphics With C++
1:46:24
freeCodeCamp.org
Рет қаралды 1,1 МЛН
FACE Detection C++ And OpenCv
29:50
KNOWLEDGE DOCTOR
Рет қаралды 35 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН