Are you feeling a bit overwhelmed trying to learn OpenCV?
If so, don’t worry! You don’t need to read everything about computer vision and OpenCV. Instead, what you really need is an expertly curated list of OpenCV 3 and OpenCV 4 tutorials, guides, and resources.
And that’s exactly why I have started to collect the best Python and OpenCV 3 and OpenCV 4 articles and tutorials on PyImageSearch into a single, easy to digest page.
Want to learn how to install OpenCV 3 or OpenCV 4 with Python on your system? No problem, I cover how to install OpenCV 3 and OpenCV 4 on most major operating systems including macOS, Ubuntu, and the Raspberry Pi.
What about learning the difference between functions in OpenCV 2.4, OpenCV 3, and OpenCV 4? Not an issue, let me help.
Or what about general tips and tricks using Python and OpenCV 3 and OpenCV 4? I’ve got those too.
As new computer vision tutorials and articles are released on the PyImageSearch blog that cover OpenCV 3 and OpenCV 4, I’ll be updating this page. In the meantime, be sure to scroll through this page, open up any OpenCV 3 or OpenCV 4 links that interest you, and start learning!
Install OpenCV with pip
If you are looking for an easy (and fast) way to install OpenCV using pip, Python’s package manager, be sure to read this tutorial on pip install opencv.
Install OpenCV 4 and Python
I have created the following tutorials to help you install OpenCV 4 with Python 3 bindings on your macOS, Ubuntu, and Raspberry Pi machines. Use these links and resources to help you get started with OpenCV 4 and Python on your respective operating system.
- How to install OpenCV 4 on Ubuntu
- Install OpenCV 4 on macOS
- Install OpenCV 4 on Raspberry Pi 4 and Raspbian Buster
- Install OpenCV 4 on your Raspberry Pi
Install OpenCV 3 and Python
The first step in learning computer vision using the OpenCV library is to get OpenCV and Python installed and configured on your system. I have created many OpenCV 3 and Python 2.7 + Python 3 installation tutorials, including macOS, Ubuntu, and the Raspberry Pi. Please use the links and resources below to install OpenCV 3 and Python on your system.
Install OpenCV 3 and Python on OSX and macOS
- macOS Mojave: Install TensorFlow and Keras for Deep Learning (for OpenCV, follow Steps 1-6)
- Install OpenCV 3 on macOS with Homebrew (the easy way) (deprecated)
- macOS Sierra: Install OpenCV 3 and Python 3.5
- macOS Sierra: Install OpenCV 3 and Python 2.7
- Install OpenCV 3.0 and Python 2.7+ on OSX
- Install OpenCV 3.0 and Python 3.4+ on OSX
Install OpenCV 3 and Python on Ubuntu
- Ubuntu 18.04: How to install OpenCV
- Ubuntu 16.04: How to install OpenCV with Python 2.7 and Python 3.5+
- Install OpenCV 3.0 and Python 2.7+ on Ubuntu
- Install OpenCV 3.0 and Python 3.4+ on Ubuntu
Install OpenCV 3 and Python on your Raspberry Pi
- Optimizing OpenCV on the Raspberry Pi
- Raspbian Stretch: Install OpenCV 3 + Python on your Raspberry Pi
- Install guide: Raspberry Pi 3 + Raspbian Jessie + OpenCV 3.
- How to install OpenCV 3.0 on Raspbian Jessie.
- Installing OpenCV on your Raspberry Pi Zero running Rasbian Jessie.
- Install OpenCV 3.0 for both Python 2.7 and Python 3+ on Raspbian Wheezy.
- Install OpenCV 2.4 for Python 2.7 on Raspbian Wheezy.
OpenCV 3 Tips and Tricks
- Checking your OpenCV version using Python
- Answering the question: “Where did function ‘X’ go in OpenCV 3?”
- OpenCV 3 adoption rate