How to Install OpenCV on Windows | OpenCV Python Tutorial | Setting up Computer Vision
Skills:
CV Basics80%
Key Takeaways
Explains how to install OpenCV on Windows for Python and verify its installation for computer vision tasks
Full Transcript
[Music] what's going on guys it's the AI guy and welcome back to another video in today's video we're gonna go over installing open CV on Windows for Python for those of you who aren't familiar with open CV I'll just give a brief overview of it so open CV or open source computer vision is a library for computer vision and machine learning that contains over 2,500 optimized algorithms so basically it's a massive library of functions used on images and videos that allow you to accelerate your use of computer vision through classic and state-of-the-art algorithms that you don't have to hand code yourself it's most popularly popularly used for facial detection identifying objects within images or videos tracking camera movements and a bunch more it's used by massive tech companies all over the industry like Google Microsoft Intel IBM Sony and many many more and today I'm going to show you how to install it on your machine in today's video we are going to pip install OpenCV for Python then import cb2 and print its version to verify that we've installed and fetched OpenCV properly and I'm going to show you how to do this in both the command prompt and Python script to give you a little flexibility so let's get right into the video if you're new to my channel feel free to hit the like and subscribe button it would mean a lot to me I post content like this weekly so I hope you enjoy it let's get into it so first things first you're gonna want to go ahead and open up a command prompt so we already under your type to search and type in command prompt to open it up and this I will mention that there are is a prerequisite for this tutorial you do have to have Python already installed so if you don't have Python installed hop over on over to my previous video on how to set up a machine learning ai environment where I walk through installing Python and Visual Studio code and then come back here so if you do have Python already ins this is a very simple tutorial first things first is we're gonna want a pip install OpenCV for python so just type in pip install open CV - Python and that's gonna go ahead and collect Python as you can see it also looks for prerequisite in numpy so if you don't already have numpy it'll actually install numpy as well for you so perfect I've got open CV Python version 4.1.1 and verify that that is indeed installed on my machine so what you're gonna do is just go ahead and type Python so now it opens up your Python version and you can start to program in Python so you're just going to go import CV - which is a version of open CV enter and it's gonna go ahead and import it and if you got an error here it means I did not install correctly since it went to a new line and no no error I'm gonna check to see if it installed correctly so I'm going to go to print C v2 dot underscore underscore version underscore underscore close bracket and if that failed and you got an error it would give you a warning or an error message but since I've successfully installed open CV it prints my version 4.1.1 so it's as simple as that for the command prompt and now let me hop over to my visual studio code and show you how to do it exactly the same way in a python script so for the second way of completing this tutorial and a code editor you're going to want to go ahead and open your code editor i'm using vs code they like it cuz it's lightweight so you're going to want to just create a file I've created mine OpenCV tutorial PI it's gonna have to be a PI so that can be a Python script we can run it and then you're gonna want to open up a terminal so click on terminal new terminal and then you're gonna go ahead and do the exact same command as before pip install OpenCV - python it's going to go ahead and collect it it gets the same version 4.1.10 and do our two lines import tv2 and print c v2 dot underscore underscore reversion underscore underscore you're going to go ahead and save and then just right-click on the screen and go run Python file in terminal and you're going to go ahead and see that it prints 4.1.1 so this quick version check of cv two is enough to verify that it is correctly pip installed and that you can now go ahead and start using one of those 2500 algorithms that OpenCV has within it so i hope you guys enjoyed this video that's all for today if you want to see more videos go ahead and like this video smash that like button it's greatly appreciated and I'll see you guys next time [Music]
Original Description
How to Install OpenCV on Windows - In this video I will show you how to install OpenCV (Open Source Computer Vision) for Python. OpenCV is a library for computer vision and machine learning that contains over 2500 algorithms for you to use. OpenCV gives you the tools to perform facial detection, object identification, and much more.
#opencv #computervision #tutorial
Learn more about OpenCV on their official site: https://opencv.org/about/
If you haven't installed Python you can learn how here: https://www.youtube.com/watch?v=mwmuJF2ohTw&t=
In this video I cover:
1. Pip installing OpenCV for Python
2. Importing OpenCV and verifying installation.
3. Shown in both command prompt and code editor.
If you enjoyed the video, toss it a like! 👍
To Subscribe: https://www.youtube.com/channel/UCrydcKaojc44XnuXrfhlV8Q?sub_confirmation=1
Thanks so much for watching!
- The AI Guy
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from The AI Guy · The AI Guy · 4 of 28
1
2
3
▶
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
How to Setup a Machine Learning and AI Environment
The AI Guy
Introduction to Machine Learning | | Learning ML with Scikit | Iris Dataset
The AI Guy
Introduction to Machine Learning | Learning ML with Scikit | Iris Dataset | Part 2
The AI Guy
How to Install OpenCV on Windows | OpenCV Python Tutorial | Setting up Computer Vision
The AI Guy
How to Build and Install OpenCV from Source | Using Visual Studio and CMake | Computer Vision
The AI Guy
YOLOv3 Object Detection with Darknet for Windows/Linux | Install and Run with GPU and OPENCV
The AI Guy
Creating a YOLOv3 Custom Dataset | Quick and Easy | 9,000,000+ Images
The AI Guy
Train YOLOv3 Custom Object Detector with Darknet | Aimbot and Security Camera | Fast and Easy
The AI Guy
Create Labels and Annotations for Custom YOLOv3 Google Images Dataset | LabelImg Tutorial
The AI Guy
How to Build an Object Detection Classifier with TensorFlow 2.0 on Windows/Linux
The AI Guy
YOLOv3 in the CLOUD : Install and Train Custom Object Detector (FREE GPU)
The AI Guy
A.I. Learns to Play World's Hardest Game (QWOP)
The AI Guy
How to Build Object Detection APIs Using TensorFlow and Flask
The AI Guy
Getting Started with Azure Machine Learning Studio
The AI Guy
Real-time Yolov3 Object Detection for Webcam and Video (using Tensorflow)
The AI Guy
How to Build an Object Tracker Using YOLOv3, Deep SORT and TensorFlow
The AI Guy
YOLOv4 in the CLOUD: Install and Run Object Detector (FREE GPU)
The AI Guy
YOLOv4 in the CLOUD: Build and Train Custom Object Detector (FREE GPU)
The AI Guy
YOLOv4 Object Detection with TensorFlow, TensorFlow Lite and TensorRT Models (images, video, webcam)
The AI Guy
How to Build a Custom YOLOv4 Object Detector using TensorFlow (License Plate Detector)
The AI Guy
Counting Objects Using YOLOv4 Object Detection | Custom YOLOv4 Functions with TensorFlow
The AI Guy
Object Tracking Using YOLOv4, Deep SORT, and TensorFlow
The AI Guy
Crop and Save YOLOv4 Object Detections | Custom YOLOv4 Functions with TensorFlow
The AI Guy
License Plate Recognition Using YOLOv4 Object Detection, OpenCV, and Tesseract OCR
The AI Guy
YOLOv4 in the CLOUD: Build Object Tracking Using DeepSORT in Google Colab (FREE GPU)
The AI Guy
How to Use Webcam In Google Colab for Images and Video (FACE DETECTION)
The AI Guy
Real-time YOLOv4 Object Detection on Webcam in Google Colab | Images and Video
The AI Guy
Getting Started with Agent Development Kit Tools (MCP, Google Search, LangChain, etc.)
The AI Guy
More on: CV Basics
View skill →Related Reads
📰
📰
📰
📰
The Role of 3D Cuboid Annotation in Autonomous Vehicle Perception
Dev.to AI
Vision AI: Transforming Business Operations with Computer Vision AI
Medium · AI
Vision AI: Transforming Business Operations with Computer Vision AI
Medium · Machine Learning
Cloud-Optimized OpenCV + A Special Surprise Announcement on OpenCV Live
OpenCV Blog
🎓
Tutor Explanation
DeepCamp AI