Archive | Libraries

How to install dlib

Two weeks ago I interviewed Davis King, the creator and chief maintainer of the dlib library. Today I am going to demonstrate how to install dlib with Python bindings on both macOS and Ubuntu. I highly encourage you to take the time to install dlib on your system over the next couple of days. Starting next week we’ll […]

Continue Reading 0

Seam carving with OpenCV, Python, and scikit-image

Easily one of my all-time favorite papers in computer vision literature is Seam Carving for Content-Aware Image Resizing by Avidan and Shamir from Mitsubishi Electric Research Labs (MERL). Originally published in the SIGGRAPH 2007 proceedings, I read this paper for the first time during my computational photography class as an undergraduate student. This paper, along with […]

Continue Reading 18

Installing Keras with TensorFlow backend

A few months ago I demonstrated how to install the Keras deep learning library with a Theano backend. In today’s blog post I provide detailed, step-by-step instructions to install Keras using a TensorFlow backend, originally developed by the researchers and engineers on the Google Brain Team. I’ll also (optionally) demonstrate how you can integrate OpenCV into […]

Continue Reading 40

Unifying picamera and cv2.VideoCapture into a single class with OpenCV

Over the past two weeks on the PyImageSearch blog, we have discussed how to use threading to increase our FPS processing rate on both built-in/USB webcams, along with the Raspberry Pi camera module. By utilizing threading, we learned that we can substantially reduce the affects of I/O latency, leaving the main thread to run without being blocked as […]

Continue Reading 59

How to find functions by name in OpenCV

OpenCV can be a big, hard to navigate library, especially if you are just getting started learning computer vision and image processing. The release of OpenCV 3 has only further complicated matters, moving a few important functions around and even slightly altering their names (the  vs. cv2.boxPoints  methods come to mind off the top of my head). […]

Continue Reading 6