C++ OpenCV Setup for Visual Studio 2019

  Рет қаралды 30,342

CasualGamer

CasualGamer

Күн бұрын

Пікірлер: 90
@Ken_Shao
@Ken_Shao 3 жыл бұрын
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 жыл бұрын
The video literally already said that
@casualgamer1791
@casualgamer1791 3 жыл бұрын
ye my bad. should be opencv_world440d.lib
@ksiazebaznow7038
@ksiazebaznow7038 2 жыл бұрын
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.
@mnjrupp
@mnjrupp Жыл бұрын
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.
@quezzert
@quezzert 4 жыл бұрын
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
@hassaanshah9819
@hassaanshah9819 2 жыл бұрын
One of the best clearly explained Installation step for using OpenCV and Visual Studio 2019
@LiamAnjewierden
@LiamAnjewierden 4 жыл бұрын
Don't mind me, just dropping a comment for the YT algorithm
@casualgamer1791
@casualgamer1791 4 жыл бұрын
appreciate it
@LiamAnjewierden
@LiamAnjewierden 4 жыл бұрын
Oh, this was uploaded a couple of minutes ago... I thought "how does this have so little views?" haha
@rexcars9408
@rexcars9408 3 жыл бұрын
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)
@Pyrohawk
@Pyrohawk 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 жыл бұрын
Thank you for the feedback. Much appreciated
@SimpleY_
@SimpleY_ 3 жыл бұрын
After building the OpenCV project there was no 'install' folder. Can you help?
@lubalu-b4y
@lubalu-b4y Жыл бұрын
Thank you very much! You really helped me.
@idAlaid
@idAlaid 3 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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!
@mohamedaboraya4780
@mohamedaboraya4780 3 жыл бұрын
did I need to add PATH to the environment variables when doing the second option if yes what it should be? thanks :)
@brandonbailey4491
@brandonbailey4491 4 жыл бұрын
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 жыл бұрын
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 жыл бұрын
@@DIYDaveT Well, for people trying to learn, it makes things very difficult...
@SilentBruce110687
@SilentBruce110687 4 жыл бұрын
Just what I was looking for, thanks!
@allcontentcontent840
@allcontentcontent840 2 жыл бұрын
Sir .. I am getting the error .. while building the OpenCV using cmake with extra modules
@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!
@J4D3_UwU
@J4D3_UwU 2 жыл бұрын
100% recommend watching in x0.25 speed so you can see what is being pressed
@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 жыл бұрын
Np :) you have to set the paths to headers and libs correctly when starting a new project.
@catursura9168
@catursura9168 4 жыл бұрын
i will wait for the next videos thanks very much
@casualgamer1791
@casualgamer1791 4 жыл бұрын
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
@requestfx5585
@requestfx5585 3 жыл бұрын
Thank god. nice video needed that
@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)\"
@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.
@maxcharge4911
@maxcharge4911 3 жыл бұрын
Hello can u help me how to open old project
@szymonszaaga8383
@szymonszaaga8383 4 жыл бұрын
I Had heard that rust is simmilar to c++ can I do everything that you are making in c++ using rust?
@casualgamer1791
@casualgamer1791 4 жыл бұрын
No clue. I know nothing about rust
@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
@shashwatpandey3556
@shashwatpandey3556 3 жыл бұрын
How's Your Cat gamer... oh and perfect tutorial...
@casualgamer1791
@casualgamer1791 3 жыл бұрын
Still starving, or so she claims
@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
@casualgamer1791
@casualgamer1791 4 жыл бұрын
Answered on discord
@BdyPhrk
@BdyPhrk 3 жыл бұрын
Yooo whats that theme?
@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.
@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.
@nahikoroad
@nahikoroad 3 жыл бұрын
@5:12 yo, feed ur cat please
@Talking2Wall
@Talking2Wall 3 жыл бұрын
So clear that it won't work for me :(
@abdalrahmanal-harasis6805
@abdalrahmanal-harasis6805 3 жыл бұрын
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
@supersnake4215
@supersnake4215 4 жыл бұрын
Nice video
@casualgamer1791
@casualgamer1791 4 жыл бұрын
thank you :)
@fghho
@fghho 3 жыл бұрын
THANK YOU
@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
@LienoGenesis
@LienoGenesis 4 жыл бұрын
5:12 cat
@casualgamer1791
@casualgamer1791 4 жыл бұрын
^.^
@Сергей-ц3й7ц
@Сергей-ц3й7ц 3 жыл бұрын
well, thanks youtube has x0.25
@casualgamer1791
@casualgamer1791 3 жыл бұрын
😅
@TukeShark
@TukeShark 4 жыл бұрын
try making aim bot if you haven't done it
@casualgamer1791
@casualgamer1791 4 жыл бұрын
will do :)
@joyride6062
@joyride6062 2 жыл бұрын
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.
@casualgamer1791
@casualgamer1791 3 жыл бұрын
duly noted
@fy9090
@fy9090 4 жыл бұрын
Dont be like Trump and stay safe at home 🤣🤣
External Overlay in C++ | Works For ANY Game
9:11
CasualGamer
Рет қаралды 58 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Build and Install OpenCV 4 on Windows 10
7:51
Adam Hacks
Рет қаралды 43 М.
Установка opencv c++ vs22
8:11
Spajalica
Рет қаралды 12 М.
Installing and Configuring OpenCV for Visual Studio 2022
6:02
Setup OpenCV in Visual Studio 2022 for C/C++ Development
6:42
BoostMyTool
Рет қаралды 86 М.
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 263 М.
Create an OpenCV 4 Project in Visual Studio [C++]
10:08
Adam Hacks
Рет қаралды 46 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН