OpenCV shape detection

This tutorial is the second post in our three part series on shape detection and analysis. Last week we learned how to compute the center of a contour using OpenCV. Today, we are going to leverage contour properties to actually label and identify shapes in an image, just like in the figure at the top of this post. […]

Continue Reading 5

OpenCV center of contour

Today, we are going to start a new 3-part series of tutorials on shape detection and analysis. Throughout this series, we’ll learn how to: Compute the center of a contour/shape region. Recognize various shapes, such as circles, squares, rectangles, triangles, and pentagons using only contour properties. Label the color of a shape. While today’s post is […]

Continue Reading 19

Multiple cameras with the Raspberry Pi and OpenCV

I’ll keep the introduction to today’s post short, since I think the title of this post and GIF animation above speak for themselves. Inside this post, I’ll demonstrate how to attach multiple cameras to your Raspberry Pi…and access all of them using a single Python script. Regardless if your setup includes: Multiple USB webcams. Or the Raspberry […]

Continue Reading 24

OpenCV panorama stitching

In today’s blog post, I’ll demonstrate how to perform image stitching and panorama construction using Python and OpenCV. Given two images, we’ll “stitch” them together to create a simple panorama, as seen in the example above. To construct our image panorama, we’ll utilize computer vision and image processing techniques such as: keypoint detection and local invariant […]

Continue Reading 17

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 17