Book Image

Computer Vision for the Web

By : Foat Akhmadeev
Book Image

Computer Vision for the Web

By: Foat Akhmadeev

Overview of this book

This book will give you an insight into controlling your applications with gestures and head motion and readying them for the web. Packed with real-world tasks, it begins with a walkthrough of the basic concepts of Computer Vision that the JavaScript world offers us, and you’ll implement various powerful algorithms in your own online application. Then, we move on to a comprehensive analysis of JavaScript functions and their applications. Furthermore, the book will show you how to implement filters and image segmentation, and use tracking.js and jsfeat libraries to convert your browser into Photoshop. Subjects such as object and custom detection, feature extraction, and object matching are covered to help you find an object in a photo. You will see how a complex object such as a face can be recognized by a browser as you move toward the end of the book. Finally, you will focus on algorithms to create a human interface. By the end of this book, you will be familiarized with the application of complex Computer Vision algorithms to develop your own applications, without spending much time learning sophisticated theory.
Table of Contents (13 chapters)

Face detection with JSFeat


We saw detection of various objects in the previous chapter. The human face is much more complicated than just a regular color object, for example. More complex detectors share in common such things like the usage of brightness information and the patterns that this information forms. First of all, we need to see how face recognition is done. Without that, the tracking process will be quite difficult to understand. Actually, in most cases, the face recognition part is just the first step of face tracking algorithms.

We start with the JSFeat project. This awesome library provides a functionality to detect a face in two ways. Both have many applications in the real world. We will see how both of them work from the inside and discuss the API provided by JSFeat.

Face detection using Haar-like features

This is probably the most popular face detector nowadays. Most of the libraries use exactly this algorithm as a common face detector. It is easy to implement and use. In...