Comprehensive tutorials for computer vision and deep learning
“Our drowsiness detector requires one command line argument followed by two optional ones... # grab the frame from the threaded video file stream, resize # it, and convert it to grayscale ... gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) # detect faces in the grayscale frame rects = detector(gray...”
“In the rest of this blog post I’ll show you how to detect barcodes in images using nothing but Python and OpenCV.”
“The code detailed in this post will allow you to access all of your video streams — and perform motion detection on each of them! ... We can access this camera using either the cv2.VideoCapture function built-in to OpenCV or the VideoStream class from this lesson.”
“First, we load --image from disk into memory (Line 17) followed by converting it to grayscale (Line 18). Next, depending on the pre-processing method specified by our command line argument, we will either threshold or blur the image. This is where you would want to add more advanced pre-processin...”
“I’m going to assume you have already installed OpenCV on your Raspberry Pi. If you have not installed OpenCV on your Raspberry Pi, start by using this tutorial where I demonstrate how to optimize your Raspberry Pi + OpenCV install for speed (leading to a 30%+ increase in performance). ... You’ll ...”
“Ensure you have NumPy installed in the not_santa environment using the following command: $ pip install numpy”
“# import the necessary packages import numpy as np”
“Once you have the code and images, open up a terminal and execute the following command: $ python detect_barcode.py --image images/barcode_02.jpg”
“Let’s go ahead and install TensorFlow for Python 2.7 using the following commands: $ wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.1.0/tensorflow-1.1.0-cp27-none-linux_armv7l.whl $ pip install tensorflow-1.1.0-cp27-none-linux_armv7l.whl”
“A Raspberry Pi camera module + camera housing (optional). We can interface with the camera using the picamera Python package or (preferably) the threaded VideoStream class defined in a previous blog post.”
“We can interface with the camera using the picamera Python package or (preferably) the threaded VideoStream class defined in a previous blog post.”
“A Logitech C920 webcam that is plug-and-play compatible with the Raspberry Pi. We can access this camera using either the cv2.VideoCapture function built-in to OpenCV or the VideoStream class from this lesson.”
“We’ll then configure our Raspberry Pi for deep learning by installing TensorFlow, Keras, and a number of other prerequisites. ... Let’s go ahead and install TensorFlow for Python 2.7 ... And finally, let’s install Keras and the other prerequisites required for this project: $ pip install keras==2...”
“Since we’ll be accessing the GPIO pins for this project we’ll need to install both RPi.GPIO and gpiozero: $ sudo pip install RPi.GPIO gpiozero”
“Since we’ll be accessing the GPIO pins for this project we’ll need to install both RPi.GPIO and gpiozero: $ sudo pip install RPi.GPIO gpiozero”
“Once TensorFlow compiles and installs (which took around an hour on my Raspberry Pi) you’ll need to install HDF5 and h5py. These libraries will allow us to load our pre-trained model from disk: $ sudo apt-get install libhdf5-serial-dev”
“Once TensorFlow compiles and installs (which took around an hour on my Raspberry Pi) you’ll need to install HDF5 and h5py. These libraries will allow us to load our pre-trained model from disk: $ pip install h5py”
“$ pip install scipy --no-cache-dir”
“# import the necessary packages import argparse”
“First put the site online, put a few opt-ins up there. Back then it was using MailChimp and we had a resource guide PDF, we had a weekly newsletter.”
“The dlib library ships with a Histogram of Oriented Gradients-based face detector along with a facial landmark predictor — we instantiate both of these in the following code block: # initialize dlib's face detector (HOG-based) and then create # the facial landmark predictor print("[INFO] loading ...”
“Once we started getting these multiple opt-ins and essentially an opt-in for every single post, we have 500 plus tutorials now, so we switched over to Drip pretty quickly. That was back in the early days of Drip before even, I think, automations or the rule system were available. We were loving D...”