Tag Archives | perspective

Text skew correction with OpenCV and Python

Today’s tutorial is a Python implementation of my favorite blog post by Félix Abecassis on the process of text skew correction (i.e., “deskewing text”) using OpenCV and image processing functions. Given an image containing a rotated block of text at an unknown angle, we need to correct the text skew by: Detecting the block of text in the […]

Continue Reading 52

Ordering coordinates clockwise with Python and OpenCV

Today we are going to kick-off a three part series on calculating the size of objects in images along with measuring the distances between them. These tutorials have been some of the most heavily requested lessons on the PyImageSearch blog. I’m super excited to get them underway — and I’m sure you are too. However, before we start learning how to […]

Continue Reading 50

How to Build a Kick-Ass Mobile Document Scanner in Just 5 Minutes

Building a document scanner with OpenCV can be accomplished in just three simple steps: Step 1: Detect edges. Step 2: Use the edges in the image to find the contour (outline) representing the piece of paper being scanned. Step 3: Apply a perspective transform to obtain the top-down view of the document. Really. That’s it. Only three steps […]

Continue Reading 394

Building a Pokedex in Python: OpenCV and Perspective Warping (Step 5 of 6)

We’re getting closer to finishing up our real-life Pokedex! In my previous blog post, I showed you how to find a Game Boy screen in an image using Python and OpenCV. This post will show you how to apply warping transformations to obtain a “birds-eye-view” of the Game Boy screen. From there, we will be […]

Continue Reading 13
[email]
[email]