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)

Chapter 4. Smile and Wave, Your Face Has Been Tracked!

The most commonly seen object in our lives is a human face. We interact with people everywhere even when we do not meet them in person; we write a lot of messages via social networks, such as Twitter and Facebook, or e-mails and text messages using our phones. Face detection and tracking has many applications. In some cases, you might want to create a human computer interface, which will take the head position as an input or, more likely, you might want to help your users with tagging their friends. Actually, there are a lot of face detection libraries, which are written on JavaScript; these outnumber the libraries that focus on image processing itself. This is a good opportunity to choose the library that you really need. In addition to face detection, many libraries support face particle recognition and recognition of other objects.

In this chapter, we will focus on the JSFeat (http://inspirit.github.io/jsfeat/), tracking.js (http:...