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 18

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 30

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 91

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 113

A scalable Keras + deep learning REST API

In today’s blog post we are going to create a deep learning REST API that wraps a Keras model in an efficient, scalable manner. Our Keras + deep learning REST API will be capable of batch processing images, scaling to multiple machines (including multiple web servers and Redis instances), and round-robin scheduling when placed behind […]

Continue Reading 22

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 25