Installing and Configuring OpenCV for Visual Studio 2022

  Рет қаралды 7,148

Noah Netz

Noah Netz

Жыл бұрын

I apologize for the stuffy voice and heavy breathing in the video.
This tutorial is for the 2022 release of Visual Studio, and release 4.7.0 of OpenCV.
Example code:
In comments. KZbin does not allow angled brackets in the description of videos for some reason.

Пікірлер: 36
@katon8213
@katon8213 6 күн бұрын
Thank you! You're the bright light of hope that saves us, beginner programmers, from uncertainties.
@billakos_san4479
@billakos_san4479 27 күн бұрын
Thanks so much mate, finally a tutorial that explains everything in depth.
@noahnetz649
@noahnetz649 Жыл бұрын
Example code: **Don't forget to change the path location of the image** #include #include #include #include using namespace cv; int main() { cv::Mat img = cv::imread("C:/Users/Noahj/Desktop/Image.png"); 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; }
@young9138
@young9138 7 ай бұрын
Thank you very much for the very detailed connection guide "OpenCV "
@MrsLyxing
@MrsLyxing 3 ай бұрын
It worked ! Thank you so much !
@andrejtrozic509
@andrejtrozic509 3 ай бұрын
Hvala Puno!
@rexuph7242
@rexuph7242 3 ай бұрын
For everyone who getting a error like "LNK1104: cannot open file 'opencv_world470d.lib" you probly using different version opencv change your Additional Dependencies value to "opencv_world490.lib, opencv_world490d.lib" if your using 4.90 version
@screwandwrenchrob4778
@screwandwrenchrob4778 Ай бұрын
Thank You! You're a life saver, for me I'm running 4.10 and its world4100 if you are having trouble finding it its in x64>v16>lib
@bumbac7440
@bumbac7440 20 күн бұрын
Someone with unhalted exception? It appeared suddenly, until now everything worked perfectly.
@seranganalambaka7354
@seranganalambaka7354 Ай бұрын
im sooo Cooked, i follow more than 5 tutorials and still got eror "cant open source file opencv" god help me T_T
@k_k_661
@k_k_661 3 ай бұрын
I am getting build 0 succeeded
@juliuswiest7815
@juliuswiest7815 3 ай бұрын
GUys help what do I do I nedd OpenCV for x86 visual studio 2022
@techcooper911
@techcooper911 2 ай бұрын
Change x86 to x64 the option is on the top
@rexuph7242
@rexuph7242 3 ай бұрын
hi sir i get "LNK1104: cannot open file 'opencv_world470d.lib'" error
@rexuph7242
@rexuph7242 3 ай бұрын
Update I Fixed it i changed opencv_world490d.lib and the opencv_world490.lib this will only work if your using openCV 4.9v
@noahnetz649
@noahnetz649 3 ай бұрын
What version of OpenCV are you running? the file opencv_world470d.lib file is for OpenCV 4.7. If you are running a different version of OpenCV, the number in the name of the file will change. For example, for OpenCV 4.9, the file would be opencv_world490d.lib Hope that helps!
@lucasvu1539
@lucasvu1539 2 ай бұрын
@@noahnetz649 hi sir i have a similar error where it says was not found opencv_world490d.dll. Reinstalling the program may fix this problem. ive been stuck on this problem for like 6 hours
@Ashwin-qj6qc
@Ashwin-qj6qc Ай бұрын
@@lucasvu1539 did you solve it, struck with it since morn😅ing
@xuantruonghoang8833
@xuantruonghoang8833 26 күн бұрын
@@lucasvu1539 reinstalling the visual studio ??
@thehulk0111
@thehulk0111 25 күн бұрын
thanks like and subscribe
@CnayCE
@CnayCE 4 ай бұрын
i get a bunch of erros
@noahnetz649
@noahnetz649 4 ай бұрын
What errors? And on what step are you getting these errors?
@CnayCE
@CnayCE 4 ай бұрын
cant open opencv/opencv2.hpp stuff liek that, i followed all steps tho@@noahnetz649
@tubegallery9778
@tubegallery9778 4 ай бұрын
​@@noahnetz649 Severity Code Description Project File Line Suppression State Details Error (active) E1696 cannot open source file "opencv2/core.hpp" cv C:\Users\gokul\source epos\cv\cv\main.cpp 1 Severity Code Description Project File Line Suppression State Details Error (active) E1696 cannot open source file "opencv2/imgcodecs.hpp" cv C:\Users\gokul\source epos\cv\cv\main.cpp 2 Severity Code Description Project File Line Suppression State Details Error (active) E1696 cannot open source file "opencv2/highgui.hpp" cv C:\Users\gokul\source epos\cv\cv\main.cpp 3
@hungfnguyenhuy6655
@hungfnguyenhuy6655 3 ай бұрын
@@noahnetz649 when i change your file path from C:/Users/Noahj/Desktop/Image.png to my file path , i got an error
@SleepyyyStardust
@SleepyyyStardust 2 ай бұрын
i get an error saying "[ WARN:0@0.006] global loadsave.cpp:248 cv::findDecoder i"
@bumbac7440
@bumbac7440 20 күн бұрын
same problem, any updates ?
@SleepyyyStardust
@SleepyyyStardust 19 күн бұрын
@@bumbac7440 it works for me now but im not sure how i did it, try this: 1. Make sure you went to Project Properties -> Linker -> Input and added the two lib files to "Additional dependencies", the file names change throughout versions, so opencv_world470d.lib is for version 4.70, and opencv_world4100d.lib is for 4.10.0 2. Make sure you went to the VC++ Directories in the Project Properties and added the two folders you needed to include, eg.. C:/pathtoyouropencvdirectory/build/include and C:/pathtoyouropencvdirectory/build/x64/vc16/lib 3. Try restarting your Visual Studio if that all did not work.... try contacting him or watch the tutorial again but more carefully, hope that helped :)
@lucasvu1539
@lucasvu1539 2 ай бұрын
the video is a little outdated but use this example code instead! : #include #include #include #include using namespace cv; int main() { // Replace the path with the actual path to your image cv::Mat img = cv::imread("C:\\Users\\osoao\\OneDrive\\Pictures\\image.png"); if (img.empty()) { std::cerr
@tbogamer2244
@tbogamer2244 3 ай бұрын
it is not working image is not being read ive done exactly as your video [ WARN:0@0.022] global loadsave.cpp:248 cv::findDecoder imread_('►n°-1☻ Could not open or find the image
@MrsLyxing
@MrsLyxing 3 ай бұрын
that's because you have to put an image by yourself to the path you indicated. So just go to google download an image and your image path on your code should be the same as where your image is. This test code is made to show the image in a new window :)
@tbogamer2244
@tbogamer2244 3 ай бұрын
@@MrsLyxing I added the correct path
@MrsLyxing
@MrsLyxing 3 ай бұрын
@@tbogamer2244 and it still doesn’t work ? That’s weird, I just tested it and it worked for me
@bumbac7440
@bumbac7440 20 күн бұрын
same problem, any updates ?
@tbogamer2244
@tbogamer2244 20 күн бұрын
@bumbac7440 I couldn't find any solution, and i then started using the STB image library instead of open cv
Установка opencv c++ vs22
8:11
Spajalica
Рет қаралды 10 М.
Installing opencv 4.1.1 and opencv contrib and configuring with visual studio 2015
11:25
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 8 МЛН
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 12 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 24 МЛН
Harder Than It Seems? 5 Minute Timer in C++
20:10
The Cherno
Рет қаралды 160 М.
The Only Markdown Crash Course You Will Ever Need
22:16
Web Dev Simplified
Рет қаралды 81 М.
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 852 М.
Install OpenCV C++ on Windows ** Without Microsoft Visual Studio **
16:18
C# Image & Video Processing using EmguCV
21:01
EETechStuff
Рет қаралды 10 М.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
I Rewrote This Entire Main File // Code Review
16:08
The Cherno
Рет қаралды 144 М.
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 8 МЛН