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 3. Easy Object Detection for Everyone

In the last chapter, We discussed fundamental topics such as matrix operations and matrix convolutions. Moreover, we saw how to apply various image filters and how to use them in our applications. But those topics are mostly about image processing, not about Computer Vision! What do Computer Vision methods do by themselves? They provide the ability to understand an image by analyzing it in such a manner that the computer can provide the information about objects of an image scene. Libraries, which we discussed previously, provide various functionalities to find different objects in an image. In this chapter, we will mainly discuss methods that are included in the tracking.js (http://trackingjs.com) and JSFeat (http://inspirit.github.io/jsfeat/) libraries to get objects from an image. We will see how to find a colored object, and how to find an object using a template. Further, we will create our own object detector. These techniques can be implemented...