Archive | Tutorials

Reading barcodes with Python and OpenMV

What if I said that there’s a camera that: Is low cost at $65. Runs MicroPython. And can be expanded with shields just like an Arduino/RPi. Meet OpenMV! I met Kwabena Agyeman, the founder of OpenMV, during the PyImageSearch Gurus Kickstarter campaign in January 2015.  At that time, Kwabena and the OpenMV team were running […]

Continue Reading 14

Python, argparse, and command line arguments

Today we are going to discuss a fundamental developer, engineer, and computer scientist skill — command line arguments. Specifically, we’ll be discussing: What are command line arguments Why we use command line arguments How to parse command line arguments with Python Command line arguments are an elementary skill that you must learn how to use, especially […]

Continue Reading 21

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 56

Real-time object detection on the Raspberry Pi with the Movidius NCS

Today’s post is inspired by Danielle, a PyImageSearch reader who emailed me last week and asked: Hi Adrian, I’m enjoying your blog and I especially liked last week’s post about image classification with the Intel Movidius NCS. I’m still considering purchasing an Intel Movidius NCS for a personal project. My project involves object detection with […]

Continue Reading 82

Install dlib (the easy, complete guide)

The latest release of dlib is special. It completely removes the boost.python dependency, making it significantly easier to install across the board on macOS, Ubuntu, and Raspbian. Thanks to the work of Davis King (the creator and maintainer of the dlib library) and Mischan Toos-Haus (who is responsible for removing the boost.python dependency), we can […]

Continue Reading 23

Taking screenshots with OpenCV and Python

Happy New Year! It’s now officially 2018…which also means that PyImageSearch is (almost) four years old! I published the very first blog post on Monday, January 12th 2014. Since then over 230 posts have been published, along with two books and a full-fledged course. At the beginning of every New Year I take some quiet […]

Continue Reading 8

Keras and deep learning on the Raspberry Pi

Today’s blog post is the most fun I’ve EVER had writing a PyImageSearch tutorial. It has everything we have been discussing the past few weeks, including: Deep learning Raspberry Pis 3D Christmas trees References to HBO’s Silicon Valley “Not Hotdog” detector Me dressing up as Santa Clause! In keeping with the Christmas and Holiday season, […]

Continue Reading 70

How to create a deep learning dataset using Google Images

PyImageSearch reader José asks: Hey Adrian, thanks for putting together Deep Learning for Computer Vision with Python. This is by far the best resource I’ve seen for deep learning. My question is this: I’m working on a project where I need to classify the scenes of outdoor photographs into four distinct categories: cities, beaches, mountains, and […]

Continue Reading 63