Archive | Libraries

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 31

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 53

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 cv2.cv.BoxPoints  vs. cv2.boxPoints  methods come to mind off the top of my head). […]

Continue Reading 6

Generating art with guided deep dreaming.

One of the main benefits of the bat-country Python package for deep dreaming and visualization is its ease of use, extensibility, and customization. And let me tell you, that customization really came in handy last Friday when the Google Research team released an update to their deep dream work, demonstrating a method to “guide” your input images […]

Continue Reading 9