Skip to content

OpenCV Tutorial

Introduction

OpenCV (Open Source Computer Vision Library) is an open-source computer vision and machine learning software library. It contains more than 2500 optimized algorithms for a wide range of computer vision tasks, including object detection, image processing, and video analysis. It is available since 1999 and has become one of the most popular libraries in the field of computer vision.

Getting Started

The tutorials are provided as Jupyter Notebooks. To get started, ensure you have the following prerequisites installed:

  • Python 3.7 or higher
  • Jupyter Notebook
  • OpenCV library

Notebooks

The following notebooks will guide you through various OpenCV functionalities. Just right-click on the links below and choose "Save Link As..." to download them to your local machine. Then open them with Jupyter Notebook or in Google Colab. If you use Google Colab, make sure to upload the additional datasets and images provided in the STEM3-images.zip file to your Colab environment. And WebCam access in Colab requires some additional setup; please refer to this example.

You can download the notebooks and run them in your local Jupyter environment. Additional datasets and images used in the tutorials are provided in the STEM3-images.zip file.

Additional Resources

Image processing theory slides:

Videos shown in class: