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

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • How to create first C/C++ application using OpenCV library and Visual Studio 2022. How to configure the OpenCV library in Visual Studio 2022 on Windows.
    ***********************
    Source code in the first comment. .
    ***********************************
    🔥 Complete Udemy Courses :
    ASP.NET MVC Course : www.udemy.com/...
    ASP.NET Course : www.udemy.com/...
    ASP.NET Core Web API : www.udemy.com/...
    React JS : www.udemy.com/...
    ⬇️ Free Document Proofreading ⬇️
    ► Grammarly : grammarly.go2c...

Комментарии • 103

  • @BoostMyTool
    @BoostMyTool  2 года назад +23

    #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

    • @MontAeroAviation
      @MontAeroAviation Месяц назад

      Возникло необработанное исключение по адресу 0x00007FFF7D76BA99 в OpenCV project.exe: исключение Microsoft C++: cv::Exception по адресу памяти 0x0000001D55DAF260.

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

  • @jimmychase8494
    @jimmychase8494 Год назад +18

    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.

  • @sivadineshponrajan3722
    @sivadineshponrajan3722 11 месяцев назад +2

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

  • @heckfyorrok7819
    @heckfyorrok7819 Год назад +4

    You are the only one on the whole RUclips who explained all this correctly and well

  • @tvharikrishna4080
    @tvharikrishna4080 5 месяцев назад +1

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

  • @JunyangZhang-cs3it
    @JunyangZhang-cs3it 2 дня назад +1

    it works cheers man

  • @tlight901
    @tlight901 2 месяца назад

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

  • @awildted3265
    @awildted3265 2 года назад +9

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

  • @stefanmladenovic2040
    @stefanmladenovic2040 5 месяцев назад

    This tutorial is saving me with another library for the third time. Thank you!

    • @mehran783
      @mehran783 5 месяцев назад

      I still cannot do setup correctly. Can you please help me with this.

  • @jlengg
    @jlengg Месяц назад

    Unbelievably concise tutorial. Thank you.

  • @dol_6a_eb
    @dol_6a_eb 2 месяца назад

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

  • @zelda.geek6162
    @zelda.geek6162 2 года назад +2

    Thank you SO MUCH! Nothing but your tutorial worked!

  • @wo1fythedev
    @wo1fythedev 11 месяцев назад

    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.

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

  • @shambles9043
    @shambles9043 Год назад +2

    Great tutorial! Clear steps that actually worked.
    Merci beaucoup!

  • @gcmnz_
    @gcmnz_ 3 месяца назад

    bro u are the best!! i love u!

  • @enumclaw79
    @enumclaw79 2 года назад +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!

  • @jb0433628
    @jb0433628 Год назад

    Straight to the point ! Thanks very much.

  • @dragongali2340
    @dragongali2340 Год назад

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

  • @SirPaulMuaddib
    @SirPaulMuaddib Год назад

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

  • @nut1752
    @nut1752 11 месяцев назад

    Thanks a lot, you saved my day. Straight and clear to the point

  • @KnightMaresX
    @KnightMaresX 4 месяца назад

    you are amazing , thank you

  • @userrjlyj5760g
    @userrjlyj5760g Год назад

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

  • @musiclife0808
    @musiclife0808 7 месяцев назад

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

  • @user-eq1rd4nr1v
    @user-eq1rd4nr1v 11 месяцев назад

    A short but very helpful video. Thanks a lot.

  • @kotai2003
    @kotai2003 Год назад

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

  • @bharatakabari5646
    @bharatakabari5646 Год назад

    Very good tutorial with precise steps for the settings !!

  • @lp-w420
    @lp-w420 8 месяцев назад

    Great video! It worked

  • @NotAndrew19
    @NotAndrew19 3 месяца назад

    Great! thanks

  • @machinelearningapplication6467
    @machinelearningapplication6467 2 года назад +1

    Excellent tutorial saved me loads of time

  • @kasunkalhara5335
    @kasunkalhara5335 4 месяца назад

    Thank you very much. god bless you ❤

  • @malikjunaid7202
    @malikjunaid7202 Год назад

    thanks man very short and precise

  • @kidolola2246
    @kidolola2246 7 месяцев назад

    Great job!

  • @Anton-be6ty
    @Anton-be6ty Год назад

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

  • @justasj5628
    @justasj5628 Год назад

    Thank you, it worked for me!

  • @ajlaibrah7558
    @ajlaibrah7558 Год назад

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

  • @ecsanders3352
    @ecsanders3352 Год назад

    Thanks for the great tutorial!

  • @abdulkarimatrash
    @abdulkarimatrash 2 года назад

    excellent work bro !! BRAVO!

  • @MatthieuVincenot
    @MatthieuVincenot 2 года назад

    Yep, that worked fine! Thanks

  • @lightkwak6259
    @lightkwak6259 2 года назад

    Muchas gracias querido compatriota, saludos desde chile

  • @EsraEser-gg8rr
    @EsraEser-gg8rr Год назад

    Thank you! That worked fine

  • @Waslain
    @Waslain 2 месяца назад

    MERCIIIIIIIIIIIIIIIIIIIIIIIIIIIIII !

  • @sazidsazid4199
    @sazidsazid4199 Год назад

    It worked. Thanks a lot

  • @Jack-xz7bf
    @Jack-xz7bf Год назад

    Thank you very much, this video helped me❤

  • @rolandblok
    @rolandblok 2 года назад

    Thank you. Perfect!

  • @user-kn1yx6kn7y
    @user-kn1yx6kn7y 8 месяцев назад

    really really really really really niceeeee!!!!!

  • @aseratawya6943
    @aseratawya6943 Год назад

    You saved my life, man.

  • @englishagent4434
    @englishagent4434 2 года назад +1

    Thanks for your help.

  • @user-sr6yn9gq2m
    @user-sr6yn9gq2m 23 дня назад

    thx man

  • @vealar
    @vealar 2 года назад +1

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

  • @resolvepcchannel
    @resolvepcchannel Год назад

    Thank you so much!

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

  • @behrampatel4872
    @behrampatel4872 7 дней назад

    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

  • @Studioyachrogdenok
    @Studioyachrogdenok 9 месяцев назад

    thx u very much!

  • @peterng.
    @peterng. Год назад

    Well explained!!

  • @yumiyonashi8518
    @yumiyonashi8518 5 месяцев назад

    solved my problem.Thank you helped a lot

  • @akashjoshi4967
    @akashjoshi4967 2 года назад

    Thank you so much

  • @AndrijaRD
    @AndrijaRD 2 года назад

    thank you so much!!!

  • @tobyward661
    @tobyward661 Год назад

    you are a life saver

  • @williampercypachamangocald7618

    Excelente a funcionado!!!

  • @tladilebohang
    @tladilebohang Год назад

    THANK YOU VERY MUCH

  • @nabilamin2401
    @nabilamin2401 Месяц назад

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

  • @tulkiidra6833
    @tulkiidra6833 11 месяцев назад

    Thank you so much

  • @ekz3801
    @ekz3801 Год назад +1

    ❤❤

  • @drlokuras
    @drlokuras Год назад

    Great!

  • @oo--7714
    @oo--7714 Год назад +2

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

  • @syedahmedmustafa1832
    @syedahmedmustafa1832 8 месяцев назад

    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?

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

  • @baharehhashemi2250
    @baharehhashemi2250 Год назад

    thank you sir

  • @apoorvsharma6932
    @apoorvsharma6932 9 месяцев назад

    ty

  • @dr.kalculator6698
    @dr.kalculator6698 Месяц назад

    i love you

  • @qew34v233v
    @qew34v233v Год назад

    ur awsome

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

  • @harshithan1672
    @harshithan1672 Год назад

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

  • @Leo-io4bq
    @Leo-io4bq Год назад

    It worked

  • @juliuswiest7815
    @juliuswiest7815 5 месяцев назад

    Guys help the solution isnt even building whyyyyyyyyy

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

  • @anshXR
    @anshXR Год назад

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

  • @sushilkrsoni2796
    @sushilkrsoni2796 Год назад

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

  • @KEKW-lc4xi
    @KEKW-lc4xi 10 месяцев назад +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.

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

  • @fromrome3658
    @fromrome3658 2 года назад

    Weel Done !!

  • @djtechzz
    @djtechzz 2 года назад

    how to do with python

  • @vindom6524
    @vindom6524 2 года назад

    i restarted my visial studio and it still showed the same error message

    • @ahmadhassan8193
      @ahmadhassan8193 Год назад

      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

  • @r0qulu
    @r0qulu Год назад

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

    • @MontAeroAviation
      @MontAeroAviation Месяц назад

      Reinstalling the program may fix this problem
      what are you on

  • @longhai6458
    @longhai6458 Год назад

    thanks you

  • @blackheart4444
    @blackheart4444 Год назад

    Thankyou so much

  • @badbongos9176
    @badbongos9176 11 месяцев назад

    thank you so much!