Compiling OpenCV with CUDA support
Alight, so you have the NVIDIA CUDA Toolkit and cuDNN library installed on your GPU-enabled system. What next? Let’s get OpenCV installed with CUDA support as well. While OpenCV itself doesn’t play a...
View ArticleUbuntu 16.04: How to install OpenCV
Over the past two years running the PyImageSearch blog, I’ve authored two tutorials detailing the required steps to install OpenCV (with Python bindings) on Ubuntu. You can find the two tutorials...
View ArticlemacOS: Install OpenCV 3 and Python 2.7
I’ll admit it: Compiling and installing OpenCV 3 on macOS Sierra was a lot more of a challenge than I thought it would be, even for someone who has a compiled OpenCV on hundreds of machines over his...
View ArticlemacOS: Install OpenCV 3 and Python 3.5
Last week I covered how to install OpenCV 3 with Python 2.7 bindings on macOS Sierra and above. In today’s tutorial we’ll learn how to install OpenCV 3 with Python 3.5 bindings on macOS. I decided to...
View ArticleInstall OpenCV 3 on macOS with Homebrew (the easy way)
Over the past few weeks I have demonstrated how to compile OpenCV 3 on macOS with Python (2.7, 3.5) bindings from source. Compiling OpenCV via source gives you complete and total control over which...
View ArticleRotate images (correctly) with OpenCV and Python
Let me tell you an embarrassing story of how I wasted three weeks of research time during graduate school six years ago. It was the end of my second semester of coursework. I had taken all of my exams...
View ArticleFaster video file FPS with cv2.VideoCapture and OpenCV
Have you ever worked with a video file via OpenCV’s cv2.VideoCapture function and found that reading frames just felt slow and sluggish? I’ve been there — and I know exactly how it feels. Your entire...
View ArticleRecognizing 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...
View ArticleText 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....
View ArticleResolving macOS, OpenCV, and Homebrew install errors
As you undoubtedly know, configuring and installing OpenCV on your macOS machine can be a bit of a pain. To help you and other PyImageSearch readers get OpenCV installed faster (and with less...
View ArticleDeep 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,...
View ArticleRaspbian 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...
View ArticleObject 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...
View ArticleReal-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...
View ArticleInstall OpenCV 3 on macOS with Homebrew (the easy way)
Over the past few weeks I have demonstrated how to compile OpenCV 3 on macOS with Python (2.7, 3.5) bindings from source. Compiling OpenCV via source gives you complete and total control over which...
View ArticleRotate images (correctly) with OpenCV and Python
Let me tell you an embarrassing story of how I wasted three weeks of research time during graduate school six years ago. It was the end of my second semester of coursework. I had taken all of my exams...
View ArticleFaster video file FPS with cv2.VideoCapture and OpenCV
Have you ever worked with a video file via OpenCV’s cv2.VideoCapture function and found that reading frames just felt slow and sluggish? I’ve been there — and I know exactly how it feels. Your entire...
View ArticleRecognizing 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...
View ArticleText 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....
View ArticleResolving macOS, OpenCV, and Homebrew install errors
As you undoubtedly know, configuring and installing OpenCV on your macOS machine can be a bit of a pain. To help you and other PyImageSearch readers get OpenCV installed faster (and with less...
View Article