Archive | OpenCV

Holistically-Nested Edge Detection with OpenCV and Deep Learning

In this tutorial, you will learn how to apply Holistically-Nested Edge Detection (HED) with OpenCV and Deep Learning. We’ll apply Holistically-Nested Edge Detection to both images and video streams, followed by comparing the results to OpenCV’s standard Canny edge detector. Edge detection enables us to find the boundaries of objects in images and was one of the […]

Continue Reading 78

Install OpenCV 4 on your Raspberry Pi

Today I’m going to show you how to compile and install OpenCV 4 on your Raspberry Pi. OpenCV 4 was officially released on November 20th, 2018. This blog post was updated subsequently on November 28th to accommodate the changes to the install (previously these instructions linked to the alpha release source code). It is also […]

Continue Reading 315

Install OpenCV 4 on macOS

This tutorial provides step-by-step instructions to install OpenCV 4 (with Python bindings) on your macOS machine. OpenCV 4 was released on November 20th, 2018. I originally wrote this blog post when the alpha version was released, and it has now been updated on November 30th, 2018 to support the official release. OpenCV 4 comes with […]

Continue Reading 144

How to install OpenCV 4 on Ubuntu

In this tutorial you will learn how to install OpenCV 4 on your Ubuntu system. OpenCV 4 has been officially released as of 20 November 2018! So, why bother installing OpenCV 4? You may want to consider installing OpenCV 4 for further optimizations, C++11 support, more compact modules, and many improvements to the Deep Neural Network […]

Continue Reading 167

Ubuntu 18.04: How to install OpenCV

In this blog post you will learn how to install OpenCV on Ubuntu 18.04. In the past, I’ve authored a handful of installation guides for Ubuntu: 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 (…and […]

Continue Reading 177

Face detection with OpenCV and deep learning

Today I’m going to share a little known secret with you regarding the OpenCV library: You can perform fast, accurate face detection with OpenCV using a pre-trained deep learning face detector model shipped with the library. You may already know that OpenCV ships out-of-the-box with pre-trained Haar cascades that can be used for face detection… […]

Continue Reading 414

Deep learning: How OpenCV’s blobFromImage works

Today’s blog post is inspired by a number of PyImageSearch readers who have commented on previous deep learning tutorials wanting to understand what exactly OpenCV’s blobFromImage  function is doing under the hood. You see, to obtain (correct) predictions from deep neural networks you first need to preprocess your data. In the context of deep learning […]

Continue Reading 61
[email]
[email]