Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Smart Internet of Things Projects

You're reading from   Smart Internet of Things Projects Discover how to build your own smart Internet of Things projects and bring a new degree of interconnectivity to your world

Arrow left icon
Product type Paperback
Published in Sep 2016
Publisher Packt
ISBN-13 9781786466518
Length 258 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Agus Kurniawan Agus Kurniawan
Author Profile Icon Agus Kurniawan
Agus Kurniawan
Arrow right icon
View More author details
Toc

Table of Contents (8) Chapters Close

Preface 1. Making Your IoT Project Smart 2. Decision System for IoT Projects FREE CHAPTER 3. Building Your Own Machine Vision 4. Making Your Own Autonomous Car Robot 5. Building Voice Technology on IoT Projects 6. Building Data Science-based Cloud for IoT Projects Index

Introducing pattern recognition for machine vision


Pattern recognition is an important part of machine vision or computer vision, to teach a machine to understand the object in an image.

In this section, we explore a paper by Paul Viola and Michael Jones about Rapid Object Detection using a Boosted Cascade of Simple Features. This paper describes a machine learning approach for visual object detection.

In general, the Viola and Jones approach is known as Haar Cascades. Their algorithm uses AdaBoost algorithm with the following classifier:

Fortunately, the OpenCV library has implemented Viola and Jones' approach to visual object detection. Other people also contributed to data training from Haar Cascades. You can find training data files on the OpenCV source code, which is located on <opencv_source_codes>/data/haarcascades/.

You can now test detection of faces on an image using the Haar Cascades approach. You can write the following scripts:

import numpy as np
import cv2


face_cascade ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime