Reader small image

You're reading from  Computer Vision for the Web

Product typeBook
Published inOct 2015
Reading LevelIntermediate
PublisherPackt
ISBN-139781785886171
Edition1st Edition
Languages
Right arrow
Author (1)
Foat Akhmadeev
Foat Akhmadeev
author image
Foat Akhmadeev

Foat Akhmadeev has 5 years of experience in software development and research. He completed his master's degree in the year 2014 from the Kazan Federal University, Russia. He has worked on different projects, including development of high-loaded websites written in Java and real-time object detection for mobile phones. He has an extensive background in the field of Computer Vision. He has also written a scientific paper on 3D reconstruction from a single image. For more information, you can visit his website at http://foat.me.
Read more about Foat Akhmadeev

Right arrow

Tagging people with tracking.js


To see more about Haar-like features and its implementation, we will discuss tracking.js library. It provides nearly the same functionality as the JSFeat library. What is interesting is that it supplies classifiers for other different objects, for example, face particles. Eventually, we will see how to make it possible to tag friends.

Haar features with tracking.js

Tracking.js provides the functionality to detect not only a face, but various face particles too. It is very easy to do that. You need to perform the following steps:

  1. First, you need to add object files for what you want to detect:

    <script src="/path/to/face.js"></script>
    <script src="/path/to/eye.js"></script>
    <script src="/path/to/mouth.js"></script>
  2. Next, initialize the ObjectTracker function. We did not discuss this in the previous chapter, since it is mostly focused on face detection, not just a regular object. Anyway, we initialize it with the names of the objects...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Computer Vision for the Web
Published in: Oct 2015Publisher: PacktISBN-13: 9781785886171

Author (1)

author image
Foat Akhmadeev

Foat Akhmadeev has 5 years of experience in software development and research. He completed his master's degree in the year 2014 from the Kazan Federal University, Russia. He has worked on different projects, including development of high-loaded websites written in Java and real-time object detection for mobile phones. He has an extensive background in the field of Computer Vision. He has also written a scientific paper on 3D reconstruction from a single image. For more information, you can visit his website at http://foat.me.
Read more about Foat Akhmadeev