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

Поділитися
Вставка
  • Опубліковано 30 гру 2024

КОМЕНТАРІ • 107

  • @BoostMyTool
    @BoostMyTool  3 роки тому +26

    #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 Рік тому +2

      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 Рік тому +25

    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 Рік тому +1

      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 Рік тому +8

    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!

  • @sivadineshponrajan3722
    @sivadineshponrajan3722 Рік тому +2

    After a long struggle for a week, this video came as a saviour! Thanks ;)

  • @tvharikrishna4080
    @tvharikrishna4080 9 місяців тому +1

    Thanks Man, you made it very easy !! Worked 100%

  • @heckfyorrok7819
    @heckfyorrok7819 2 роки тому +4

    You are the only one on the whole UA-cam who explained all this correctly and well

  • @stefanmladenovic2040
    @stefanmladenovic2040 9 місяців тому

    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.

  • @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.

  • @jlengg
    @jlengg 5 місяців тому

    Unbelievably concise tutorial. Thank you.

  • @awildted3265
    @awildted3265 2 роки тому +9

    Excellent tutorial. A notoriously difficult tool to setup. This was straight forward and worked first time :)

  • @JunyangZhang-cs3it
    @JunyangZhang-cs3it 3 місяці тому +1

    it works cheers man

  • @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

  • @zelda.geek6162
    @zelda.geek6162 2 роки тому +2

    Thank you SO MUCH! Nothing but your tutorial worked!

  • @SirPaulMuaddib
    @SirPaulMuaddib Рік тому

    Thanks, I couldn't run simple examples before, now I can.

  • @shambles-io
    @shambles-io 2 роки тому +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

  • @userrjlyj5760g
    @userrjlyj5760g Рік тому

    Finallyyyyyyyyyyyyyyyyyyyyyyyyyyyyy..... finally a REAL working solution for running opencv with VS .... Dude many many thanks....

  • @tymothylim6550
    @tymothylim6550 Місяць тому

    Thanks! This really helped me!

  • @tlight901
    @tlight901 5 місяців тому

    Excellent concise explanation, thank you. Liked and Subscribed. 👍

  • @MingJing-e1e
    @MingJing-e1e Рік тому

    A short but very helpful video. Thanks a lot.

  • @lp-w420
    @lp-w420 11 місяців тому

    Great video! It worked

  • @dragongali2340
    @dragongali2340 2 роки тому

    Thank you very much, it helped me when I got stuck. Keep up with the great tutorials

  • @enumclaw79
    @enumclaw79 3 роки тому +3

    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 6 місяців тому

    thank you broooo, its really help me! good luck!

  • @musiclife0808
    @musiclife0808 11 місяців тому

    Thank You Very Much Such!!!! I Have Watch Many Tutorials But It Is Very Short And Easy!!!

  • @bharatakabari5646
    @bharatakabari5646 Рік тому

    Very good tutorial with precise steps for the settings !!

  • @jb0433628
    @jb0433628 Рік тому

    Straight to the point ! Thanks very much.

  • @gcmnz_
    @gcmnz_ 7 місяців тому

    bro u are the best!! i love u!

  • @malikjunaid7202
    @malikjunaid7202 Рік тому

    thanks man very short and precise

  • @kotai2003
    @kotai2003 2 роки тому

    Thanks so much. With the help of your video, I could execute my first opencv cpp in my computer.

  • @kidolola2246
    @kidolola2246 11 місяців тому

    Great job!

  • @justasj5628
    @justasj5628 Рік тому

    Thank you, it worked for me!

  • @Anton-be6ty
    @Anton-be6ty 2 роки тому

    Thank you very much, this method works on the version openCV 4.4. Visual studio 2019 on Windows 7

  • @KnightMaresX
    @KnightMaresX 8 місяців тому

    you are amazing , thank you

  • @machinelearningapplication6467
    @machinelearningapplication6467 2 роки тому +1

    Excellent tutorial saved me loads of time

  • @ajlaibrah7558
    @ajlaibrah7558 2 роки тому

    Thank You so much I have been trying to crack it since 2 days.. Finally it worked.. thanks

  • @kasunkalhara5335
    @kasunkalhara5335 8 місяців тому

    Thank you very much. god bless you ❤

  • @abdulkarimatrash
    @abdulkarimatrash 2 роки тому

    excellent work bro !! BRAVO!

  • @lightkwak6259
    @lightkwak6259 2 роки тому

    Muchas gracias querido compatriota, saludos desde chile

  • @NotAndrew19
    @NotAndrew19 6 місяців тому

    Great! thanks

  • @ecsanders3352
    @ecsanders3352 2 роки тому

    Thanks for the great tutorial!

  • @maffiou-ze
    @maffiou-ze 2 роки тому

    Yep, that worked fine! Thanks

  • @yumiyonashi8518
    @yumiyonashi8518 9 місяців тому

    solved my problem.Thank you helped a lot

  • @EsraEser-gg8rr
    @EsraEser-gg8rr 2 роки тому

    Thank you! That worked fine

  • @sazidsazid4199
    @sazidsazid4199 2 роки тому

    It worked. Thanks a lot

  • @aseratawya6943
    @aseratawya6943 Рік тому

    You saved my life, man.

  • @Jack-xz7bf
    @Jack-xz7bf Рік тому

    Thank you very much, this video helped me❤

  • @rolandblok
    @rolandblok 2 роки тому

    Thank you. Perfect!

  • @Yigitkagankilic
    @Yigitkagankilic 2 роки тому +1

    Thanks for your help.

  • @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.

  • @resolvepcchannel
    @resolvepcchannel Рік тому

    Thank you so much!

  • @Waslain
    @Waslain 6 місяців тому

    MERCIIIIIIIIIIIIIIIIIIIIIIIIIIIIII !

  • @vealar
    @vealar 2 роки тому +1

    Спасибо. много видео пересмотрел как подключить OpenCV. Ваше видео помогло

  • @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

  • @peterng.
    @peterng. Рік тому

    Well explained!!

  • @akashjoshi4967
    @akashjoshi4967 2 роки тому

    Thank you so much

  • @念楓
    @念楓 Рік тому

    really really really really really niceeeee!!!!!

  • @ah-lx9xi
    @ah-lx9xi 20 днів тому

    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.

  • @сотрудникроскомнадзора

    thx man

  • @srivastavkumar5497
    @srivastavkumar5497 Місяць тому

    100% working,

  • @AndrijaRD
    @AndrijaRD 2 роки тому

    thank you so much!!!

  • @tladilebohang
    @tladilebohang Рік тому

    THANK YOU VERY MUCH

  • @williampercypachamangocald7618

    Excelente a funcionado!!!

  • @tobyward661
    @tobyward661 Рік тому

    you are a life saver

  • @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

  • @nabilamin2401
    @nabilamin2401 5 місяців тому

    i performed all these instruction but i had the following message .. the image cannot be read

  • @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?

  • @blackheart4444
    @blackheart4444 2 роки тому

    Thankyou so much

  • @drlokuras
    @drlokuras Рік тому

    Great!

  • @harshithan1672
    @harshithan1672 Рік тому

    I am not getting the image it says can't open or read file in debug console

  • @oo--7714
    @oo--7714 2 роки тому +2

    Running opencv is like playing a souls game, too top needlessly complicated, honestly it should just be included with Microsoft visual studio.

  • @baharehhashemi2250
    @baharehhashemi2250 Рік тому

    thank you sir

  • @apoorvsharma6932
    @apoorvsharma6932 Рік тому

    ty

  • @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

  • @marwaabueladl7756
    @marwaabueladl7756 2 роки тому +3

    but what about the debug mode

    • @cichacz09
      @cichacz09 2 роки тому +3

      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)

  • @ekz3801
    @ekz3801 Рік тому +1

    ❤❤

  • @sushilkrsoni2796
    @sushilkrsoni2796 Рік тому

    I am not getting Properties option in my VS Code
    Why ?
    Anyone help!!

  • @phuongleuc2699
    @phuongleuc2699 2 місяці тому

    nice

  • @qew34v233v
    @qew34v233v Рік тому

    ur awsome

  • @Leo-io4bq
    @Leo-io4bq Рік тому

    It worked

  • @mateolopezgaffney9285
    @mateolopezgaffney9285 Місяць тому

    LA CABRA 🐐

  • @r0qulu
    @r0qulu 2 роки тому

    VCRUNTIME140_1.dll was not found . Reinstalling the program may fix this problem . Anyone know how to fix this ?

  • @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

  • @anshXR
    @anshXR Рік тому

    Is it compatible to use opencv vc15 build with visual Studio 2022 (cuz it uses vc17)

  • @juliuswiest7815
    @juliuswiest7815 8 місяців тому

    Guys help the solution isnt even building whyyyyyyyyy

  • @KEKW-lc4xi
    @KEKW-lc4xi Рік тому +1

    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.

  • @dr.kalculator6698
    @dr.kalculator6698 5 місяців тому

    i love you

  • @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

  • @djtechzz
    @djtechzz 2 роки тому

    how to do with python

  • @fromrome3658
    @fromrome3658 2 роки тому

    Weel Done !!

  • @longhai6458
    @longhai6458 Рік тому

    thanks you

  • @badbongos9176
    @badbongos9176 Рік тому

    thank you so much!

  • @Studioyachrogdenok
    @Studioyachrogdenok Рік тому

    thx u very much!

  • @tulkiidra6833
    @tulkiidra6833 Рік тому

    Thank you so much