Archive | Tutorials

Deep learning, hydroponics, and medical marijuana

In today’s blog post we will investigate a practical use case of applying deep learning to hydroponics, a type of method used to grow plants without soil using mineral-rich nutrient solutions in a water solvent. Specifically, you will learn how to train a Convolutional Neural Network (CNN) using Keras to automatically classify root health without […]

Continue Reading 15

OpenCV Face Recognition

In this tutorial, you will learn how to use OpenCV to perform face recognition. To build our face recognition system, we’ll first perform face detection, extract face embeddings from each face using deep learning, train a face recognition model on the embeddings, and then finally recognize faces in both images and video streams with OpenCV. […]

Continue Reading 75

pip install opencv

In this tutorial you will will learn how to pip install OpenCV on Ubuntu, macOS, and the Raspberry Pi. In previous OpenCV install tutorials I have recommended compiling from source; however, in the past year it has become possible to install OpenCV via pip, Python’s very own package manager. While installing from source will give […]

Continue Reading 56

OpenCV OCR and text recognition with Tesseract

In this tutorial, you will learn how to apply OpenCV OCR (Optical Character Recognition). We will perform both (1) text detection and (2) text recognition using OpenCV, Python, and Tesseract. A few weeks ago I showed you how to perform text detection using OpenCV’s EAST deep learning model. Using this model we were able to […]

Continue Reading 82

Keras Tutorial: How to get started with Keras, Deep Learning, and Python

Inside this Keras tutorial, you will discover how easy it is to get started with deep learning and Python. You will use the Keras deep learning library to train your first neural network on a custom image dataset, and from there, you’ll implement your first Convolutional Neural Network (CNN) as well. The inspiration for this […]

Continue Reading 59

Semantic segmentation with OpenCV and deep learning

In this tutorial, you will learn how to perform semantic segmentation using OpenCV, deep learning, and the ENet architecture. After reading today’s guide, you will be able to apply semantic segmentation to images and video using OpenCV. Deep learning has helped facilitate unprecedented accuracy in computer vision, including image classification, object detection, and now even […]

Continue Reading 82

Neural Style Transfer with OpenCV

In this tutorial, you will learn how to apply neural style transfer to both images and real-time video using OpenCV, Python, and deep learning. By the end of this guide, you’ll be able to generate beautiful works of art with neural style transfer. The original neural style transfer algorithm was introduced by Gatys et al. […]

Continue Reading 50

Install OpenCV 4 on macOS

This tutorial provides step-by-step instructions to install OpenCV 4 (with Python bindings) on your macOS machine. While OpenCV 4 has not been officially released yet, a release is expected in autumn 2018. In the meantime, you can compile and install OpenCV 4 from source on your macOS system using the pre-release on GitHub. Once OpenCV 4 […]

Continue Reading 38