Category: Python

ScreenSHTR – take screenshots and send them to your server

As you can see, CVisionDemy not only host computer vision posts but also various tutorials and tips & tricks. This is something I made in my freetime and for learning purpose. This last one is the same reason I present you this program. It makes screenshots and send them to a FTP server. It first was only a few lines...

READ MORE ScreenSHTR – take screenshots and send them to your server

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

Solve “Failed to init API, possibly an invalid tessdata path” Error

Possible solution to solve “Failed to init API, possibly an invalid tessdata path” error   RuntimeError: Failed to init API, possibly an invalid tessdata path: <PATH>   It’s supposed that you already have added the directories where you installed Python and Tesseract-OCR to Path.   You don’t have the tessdata folder in the Python path. For example, if you have...

READ MORE Solve “Failed to init API, possibly an invalid tessdata path” Error