In this tutorial, you will learn how to perform image stitching using Python, OpenCV, and the cv2.createStitcher and cv2.Stitcher_create functions. Using today’s code you’ll be able to stitch multiple images together, creating a panorama of stitched images. Just under two years ago I published two guides on image stitching and panorama construction: Fundamentals of image […]
Search results for "cv2.findcontours"
OpenCV Tutorial: A Guide to Learn OpenCV
Whether you’re interested in learning how to apply facial recognition to video streams, building a complete deep learning pipeline for image classification, or simply want to tinker with your Raspberry Pi and add image recognition to a hobby project, you’ll need to learn OpenCV somewhere along the way. The truth is that learning OpenCV used […]
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 […]
Bank check OCR with OpenCV and Python (Part II)
Today’s blog post is Part II in our two part series on OCR’ing bank check account and routing numbers using OpenCV, Python, and computer vision techniques. Last week we learned how to extract MICR E-13B digits and symbols from input images. Today we are going to take this knowledge and use it to actually recognize […]
Bank check OCR with OpenCV and Python (Part I)
Today’s blog post is inspired by Li Wei, a PyImageSearch reader who emailed me last week and asked: Hi Adrian, Thank you for the PyImageSearch blog. I read it each week and look forward to your new posts every Monday. I really enjoyed last week’s tutorial on credit card OCR. I was wondering: Can this […]
Credit card OCR with OpenCV and Python
Today’s blog post is a continuation of our recent series on Optical Character Recognition (OCR) and computer vision. In a previous blog post, we learned how to install the Tesseract binary and use it for OCR. We then learned how to cleanup images using basic image processing techniques to improve the output of Tesseract OCR. […]
Image Difference with OpenCV and Python
In a previous PyImageSearch blog post, I detailed how to compare two images with Python using the Structural Similarity Index (SSIM). Using this method, we were able to easily determine if two images were identical or had differences due to slight image manipulations, compression artifacts, or purposeful tampering. Today we are going to extend the […]
Recognizing digits with OpenCV and Python
Today’s tutorial is inspired by a post I saw a few weeks back on /r/computervision asking how to recognize digits in an image containing a thermostat identical to the one at the top of this post. As Reddit users were quick to point out, utilizing computer vision to recognize digits on a thermostat tends to overcomplicate […]
Rotate images (correctly) with OpenCV and Python
Let me tell you an embarrassing story of how I wasted three weeks of research time during graduate school six years ago. It was the end of my second semester of coursework. I had taken all of my exams early and all my projects for the semester had been submitted. Since my school obligations were essentially nil, I started experimenting […]
Detecting multiple bright spots in an image with Python and OpenCV
Today’s blog post is a followup to a tutorial I did a couple of years ago on finding the brightest spot in an image. My previous tutorial assumed there was only one bright spot in the image that you wanted to detect… …but what if there were multiple bright spots? If you want to detect more than […]