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

Detecting color objects


In the previous chapters, we worked mainly with grayscale images. Of course, the shape and intensity parts of objects are important, but what about the color information? Why don't we use that too? For example, a red apple on a table can be easily detected with just the color information. Actually, that is why color object detection sometimes performs much better than other detector methods. In addition, it is much faster to implement these algorithms, and a computer usually consumes less resources for these types of operation.

The tracking.js library provides an outstanding functionality to create a color detection application. We will start from a basic color tracking example. It is relatively simple, but you need to keep in mind that it performs best only when a colored object can be easily separated from the background.

Using predefined colors with the tracking.js library

Color detection is one of the methods provided by tracking.js. To use it properly, we need to...

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