Category: OpenCV

Barcode reader with Python, OpenCV and Pyzbar

Today we are gonna read a barcode (and QR code) with Python, OpenCV and the dedicated library Pyzbar. First thing we do is install pyzbarusing pip. So, open you CMD/Terminal and paste this: pip install pyzbar Once finished, oper your IDE (I am using PyCharm) and paste the next code into it: And now let’s go with the explanations. First...

READ MORE Barcode reader with Python, OpenCV and Pyzbar

License plate detection with OpenCV and Python

Next you will find some code which will let you to detect license plate. This project is divided mainly in two parts: plate detection and character recognition. The code you will find next is an adaptation of Chris Dahms original License Plate Recognition. A video of his work can be found here as longs as his original source code. I...

READ MORE License plate detection with OpenCV and Python

How to install OpenCV on Windows 10 and Python 3.6

I remember, my first time I installed OpenCV was trivial and complicated. Didn’t know what a whell file was or how to use pip. Right while I am writing this tutorial, few months passed and install a library is, most of the times, painless. Let’s see together how to install OpenCV on Windows 10. NOTE: this tutorial is a copy-paste...

READ MORE How to install OpenCV on Windows 10 and Python 3.6

Extract ROI from image with Python and OpenCV

Extracting a ROI (Region of Interest) using OpenCV and Python is not so hard as it could may sound.   Source image:   So, we begin to import our modules and the source image:   import cv2 import numpy as np #import image image = cv2.imread(‘C:\\Users\\Link\\Desktop\\image.png’)   We are going to do some simple image manipulation: turn the image to...

READ MORE Extract ROI from image with Python and OpenCV