Archive | OpenCV

Real-time object detection with deep learning and OpenCV

Today’s blog post was inspired by PyImageSearch reader, Emmanuel. Emmanuel emailed me after last week’s tutorial on object detection with deep learning + OpenCV and asked: “Hi Adrian, I really enjoyed last week’s blog post on object detection with deep learning and OpenCV, thanks for putting it together and for making deep learning with OpenCV […]

Continue Reading 618

Object detection with deep learning and OpenCV

A couple weeks ago we learned how to classify images using deep learning and OpenCV 3.3’s deep neural network ( dnn ) module. While this original blog post demonstrated how we can categorize an image into one of ImageNet’s 1,000 separate class labels it could not tell us where an object resides in image. In order to obtain […]

Continue Reading 476

Raspbian Stretch: Install OpenCV 3 + Python on your Raspberry Pi

It’s been over two years since the release of Raspbian Jessie. As of August 17th, 2017, the Raspberry Pi foundation has officially released the successor to Raspbian Jessie — Raspbian Stretch. Just as I have done in previous blog posts, I’ll be demonstrating how to install OpenCV 3 with Python bindings on Raspbian Stretch. If you […]

Continue Reading 813

Deep Learning with OpenCV

Two weeks ago OpenCV 3.3 was officially released, bringing with it a highly improved deep learning ( dnn ) module. This module now supports a number of deep learning frameworks, including Caffe, TensorFlow, and Torch/PyTorch. Furthermore, this API for using pre-trained deep learning models is compatible with both the C++ API and the Python bindings, making it […]

Continue Reading 156

Text skew correction with OpenCV and Python

Today’s tutorial is a Python implementation of my favorite blog post by Félix Abecassis on the process of text skew correction (i.e., “deskewing text”) using OpenCV and image processing functions. Given an image containing a rotated block of text at an unknown angle, we need to correct the text skew by: Detecting the block of text in the […]

Continue Reading 53

Recognizing digits with OpenCV and Python

Today’s tutorial is inspired by a post I saw a few weeks back on /r/computervision asking how to recognize digits in an image containing a thermostat identical to the one at the top of this post. As Reddit users were quick to point out, utilizing computer vision to recognize digits on a thermostat tends to overcomplicate […]

Continue Reading 150