C++ OpenCV Setup for Visual Studio 2019

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 90

  • @ksiazebaznow7038
    @ksiazebaznow7038 2 ปีที่แล้ว +1

    Works fine, thanks.
    One tip for others (tested on myself):
    If visual studio tells you "[...] system did not find "Opencv_World4554.dll [...]"" -- in my case worked reopening Visual Studio

    • @kris7001
      @kris7001 2 ปีที่แล้ว

      Thanks had the same problem and was getting frustrated but this solved it.

  • @hassaanshah9819
    @hassaanshah9819 2 ปีที่แล้ว

    One of the best clearly explained Installation step for using OpenCV and Visual Studio 2019

  • @Ken_Shao
    @Ken_Shao 3 ปีที่แล้ว +19

    2:38 the file was lib but in input, it was written as opencv_world440d.dll, it's conflict, later while executing, it shows cannot find opencv_world440d.dll.

    • @SimpleY_
      @SimpleY_ 3 ปีที่แล้ว +3

      The video literally already said that

    • @casualgamer1791
      @casualgamer1791  3 ปีที่แล้ว +1

      ye my bad. should be opencv_world440d.lib

  • @quezzert
    @quezzert 4 ปีที่แล้ว +3

    loved the video. I has been struggling to install and run anything with openCV but this video was able to help me finally install it. I also love hearing your accent

  • @LiamAnjewierden
    @LiamAnjewierden 4 ปีที่แล้ว +6

    Don't mind me, just dropping a comment for the YT algorithm

  • @SimpleY_
    @SimpleY_ 3 ปีที่แล้ว +2

    After building the OpenCV project there was no 'install' folder. Can you help?

  • @mnjrupp
    @mnjrupp ปีที่แล้ว +1

    When building with the cmake files in Visual Studio you have to choose the INSTALL from the Make file help after building both the debug and release libraries when you choose ALL from the make file command. If you don't the dll and or lib files will not be gathered together from the various module folders into the "Install" folder.

  • @SilentBruce110687
    @SilentBruce110687 4 ปีที่แล้ว +2

    Just what I was looking for, thanks!

  • @Pyrohawk
    @Pyrohawk 3 ปีที่แล้ว +3

    Thanks for uploading!
    If I may offer some constructive feedback; I would have loved if the processes of adding the path file/libraries in project settings were explained a bit, rather than just quickly shown, since that was a major point of confusion for me in the install.
    Still, the instructions worked well and this video is magnitudes better than the rest of the 10 minute and 1 second videos filled with junk to get ad revenue. Thanks!

    • @casualgamer1791
      @casualgamer1791  3 ปีที่แล้ว +1

      Thank you for the feedback. Much appreciated

  • @rexcars9408
    @rexcars9408 3 ปีที่แล้ว +2

    Is anyone else having trouble getting the image to display? imread is not able to find the image in my case. Where should the image be saved?

    • @casualgamer1791
      @casualgamer1791  3 ปีที่แล้ว

      In the simplest case in the same folder as your project file (the .sln file)

  • @mohamedaboraya4780
    @mohamedaboraya4780 3 ปีที่แล้ว +2

    did I need to add PATH to the environment variables when doing the second option if yes what it should be?
    thanks :)

  • @lubalu-b4y
    @lubalu-b4y ปีที่แล้ว

    Thank you very much! You really helped me.

  • @allcontentcontent840
    @allcontentcontent840 2 ปีที่แล้ว

    Sir .. I am getting the error .. while building the OpenCV using cmake with extra modules

  • @idAlaid
    @idAlaid 3 ปีที่แล้ว +1

    help me please
    After compiling the code, as shown in the video, it gives an error "Cannot continue executing the code because the system did not find "Opencv_World4554.dll""

    • @casualgamer1791
      @casualgamer1791  3 ปีที่แล้ว

      Gotta link the dll then google "pragma comment lib"

    • @kylebb1901
      @kylebb1901 2 ปีที่แล้ว

      @@casualgamer1791 d

  • @Shelf7840
    @Shelf7840 3 ปีที่แล้ว +3

    I’m exactly following your steps but for some reason after building the solution I don’t get the install dictionary in the build folder to provide the dependency path in Visual Studio.
    Irgend eine Idee woran dass liegen könnte?

    • @SaltyTaco
      @SaltyTaco 3 ปีที่แล้ว

      Same here. Couldn't find an install directory in my build folder.

    • @Shelf7840
      @Shelf7840 3 ปีที่แล้ว +1

      Hey I found a solution that works for me: when you’re in visual studio don’t right click on solution and hit build solution like he does in the video right click on ALL_BUILD under CMakeTargets and hit build there in that case I got all the folders I needed and I was able to run OpenCV code but for some reasons I Stil wasn’t able to use anything from the contribute folder.

    • @SaltyTaco
      @SaltyTaco 3 ปีที่แล้ว +2

      Nevermind, found the fix! When building the solution in Visual Studio, go to the 'CMakeTargets' Folder and hover over 'INSTALL', right-click and BUILD.

    • @SaltyTaco
      @SaltyTaco 3 ปีที่แล้ว

      Haha! Didn't see this reply until after I sent mine. Thanks anyway! Hopefully some curious programmer with the same issue will find our responses helpful. Cheers!

    • @skyline5631
      @skyline5631 3 ปีที่แล้ว

      @@SaltyTaco Thanks!

  • @brandonbailey4491
    @brandonbailey4491 4 ปีที่แล้ว +3

    Why do you have to add packages to PATH? why cant opencv4 be installed as a package at the project level? i hate this

    • @DIYDaveT
      @DIYDaveT 3 ปีที่แล้ว +1

      More to the point, why doesn't nuget do all of this and make it "just work"? It's like geeks can't do that final 1% to make their awesome creation useful.

    • @brandonbailey4491
      @brandonbailey4491 3 ปีที่แล้ว +1

      @@DIYDaveT Well, for people trying to learn, it makes things very difficult...

  • @LiamAnjewierden
    @LiamAnjewierden 4 ปีที่แล้ว +5

    Oh, this was uploaded a couple of minutes ago... I thought "how does this have so little views?" haha

  • @requestfx5585
    @requestfx5585 3 ปีที่แล้ว +1

    Thank god. nice video needed that

  • @J4D3_UwU
    @J4D3_UwU 2 ปีที่แล้ว

    100% recommend watching in x0.25 speed so you can see what is being pressed

  • @catursura9168
    @catursura9168 4 ปีที่แล้ว

    i will wait for the next videos
    thanks very much

    • @casualgamer1791
      @casualgamer1791  4 ปีที่แล้ว +1

      Next videos will be more interesting than this one ;) Just think I had to explain how to get OpenCV up and running since some ppl probably would have issues with that

  • @McFaller12
    @McFaller12 2 ปีที่แล้ว

    5:16 Tell ur cat we understand, but right now we are in the middle of a tutorial and after that she will get wet food.

  • @vidalon3231
    @vidalon3231 3 ปีที่แล้ว

    Thanks so much for the video!
    Quick question: Do I have to include the CV directory and library each time I want to start a new project ?

    • @casualgamer1791
      @casualgamer1791  3 ปีที่แล้ว +1

      Np :) you have to set the paths to headers and libs correctly when starting a new project.

  • @maxcharge4911
    @maxcharge4911 3 ปีที่แล้ว

    Hello can u help me how to open old project

  • @BdyPhrk
    @BdyPhrk 3 ปีที่แล้ว

    Yooo whats that theme?

  • @shashwatpandey3556
    @shashwatpandey3556 3 ปีที่แล้ว

    How's Your Cat gamer...
    oh and perfect tutorial...

  • @jamesj2869
    @jamesj2869 4 ปีที่แล้ว

    Thanks, btw, by cmake, does it still need dll files? (Or is it static)

    • @casualgamer1791
      @casualgamer1791  4 ปีที่แล้ว

      Building with cmake still results in dlls

    • @jamesj2869
      @jamesj2869 4 ปีที่แล้ว

      CasualGamer thanks, is there anyway to build in static way (I think needs to set Build_shared_libs as off, but I’m not sure if it is ok to set it at the cmake list after first configuration)

    • @casualgamer1791
      @casualgamer1791  4 ปีที่แล้ว

      I just looked into that. Yes you are right Build_shared_libs is what you are looking for. After changing that flag just hit configure again

    • @jamesj2869
      @jamesj2869 4 ปีที่แล้ว

      CasualGamer Many thanks.

  • @terreriabe2529
    @terreriabe2529 4 ปีที่แล้ว

    Bro can you tell me how to get Player object from main class in C++ Terraria im confused, there is an array

  • @szymonszaaga8383
    @szymonszaaga8383 4 ปีที่แล้ว

    I Had heard that rust is simmilar to c++ can I do everything that you are making in c++ using rust?

  • @Talking2Wall
    @Talking2Wall 3 ปีที่แล้ว +1

    So clear that it won't work for me :(

  • @alexjvarghese2601
    @alexjvarghese2601 4 ปีที่แล้ว

    its showing the error output path not set for the project. need help cant move forward with this error

    • @casualgamer1791
      @casualgamer1791  4 ปีที่แล้ว

      what a weird error. Check Project Settings -> General -> Output Directory. It should have a value like this: "$(SolutionDir)$(Platform)\$(Configuration)\"

  • @Ange1Monty
    @Ange1Monty 4 ปีที่แล้ว

    Do I have to do the same for every project that I created?

    • @casualgamer1791
      @casualgamer1791  4 ปีที่แล้ว

      Just the setup paths, includes and adding the lib/dll files.

  • @smartphonecodes1
    @smartphonecodes1 4 ปีที่แล้ว

    hello there ,
    i want to ask that how you search for them find new things and many more , i am also intrested in there and want to learn everything that we can do using c , c++ , also i want to ask some doubts about my learnings
    I want to learn from you how can i contact you

  • @nahikoroad
    @nahikoroad 3 ปีที่แล้ว +1

    @5:12 yo, feed ur cat please

  • @v8wr253
    @v8wr253 3 ปีที่แล้ว

    3:35 for going straight to how to set up Opencv with CMAKE, not with OpenCV installer!

    • @danielplanteskole4432
      @danielplanteskole4432 3 ปีที่แล้ว

      you must run INSTALLER script under CMAKE in VisualStudio

    • @v8wr253
      @v8wr253 3 ปีที่แล้ว

      ​@@danielplanteskole4432 Sorry and thank you, meant something different, edited my post!

  • @fghho
    @fghho 3 ปีที่แล้ว

    THANK YOU

  • @supersnake4215
    @supersnake4215 4 ปีที่แล้ว +1

    Nice video

  • @LienoGenesis
    @LienoGenesis 4 ปีที่แล้ว +1

    5:12 cat

  • @abdalrahmanal-harasis6805
    @abdalrahmanal-harasis6805 3 ปีที่แล้ว +2

    thank you so much but please slow down next time. I slowed the video for 0.25X and i almost got it right.
    you so freaking fast that I feel I move in slow motion dude. :\

    • @casualgamer1791
      @casualgamer1791  3 ปีที่แล้ว

      Are you trying to code along? I could not do that eigher ^^ code is available in the description

  • @Сергей-ц3й7ц
    @Сергей-ц3й7ц 3 ปีที่แล้ว +1

    well, thanks youtube has x0.25

  • @tedmosby9409
    @tedmosby9409 3 ปีที่แล้ว

    grate tut Just chill on the coffie you are going way to fast on the video not speaking just like 1 or 2 frames you should pause on the inclued paths in settings

  • @TukeShark
    @TukeShark 4 ปีที่แล้ว

    try making aim bot if you haven't done it

  • @joyride6062
    @joyride6062 2 ปีที่แล้ว +1

    Why is c++ such a piece of shit pain in the ass how the hell are you supposed to know how to do this takes foreevr just to use some library and it doesnt work anyway half the time when you can do this in 10s using python in 1 line for all versions

    • @casualgamer1791
      @casualgamer1791  2 ปีที่แล้ว

      ^^
      I agree that adding libraries in python is easier.

  • @westywest59
    @westywest59 3 ปีที่แล้ว

    It was cool till your political comment at the end.

  • @fy9090
    @fy9090 4 ปีที่แล้ว +2

    Dont be like Trump and stay safe at home 🤣🤣