Reader small image

You're reading from  OpenCV for Secret Agents

Product typeBook
Published inJan 2015
Reading LevelIntermediate
PublisherPackt
ISBN-139781783287376
Edition1st Edition
Languages
Right arrow
Author (1)
Joseph Howse
Joseph Howse
author image
Joseph Howse

Joseph Howse lives in a Canadian fishing village, where he chats with his cats, crafts his books, and nurtures an orchard of hardy fruit trees. He is President of Nummist Media Corporation, which exists to support his books and to provide mentoring and consulting services, with a specialty in computer vision. On average, in 2015-2022, Joseph has written 1.4 new books or new editions per year for Packt. He also writes fiction, including an upcoming novel about the lives of a group of young people in the last days of the Soviet Union.
Read more about Joseph Howse

Right arrow

Detecting lights as blobs


To the human eye, light can appear both very bright and very colorful. Imagine a sunny landscape or a storefront lit by a neon sign; they are bright and colorful! However, a camera captures a range of contrast that is much narrower and not as intelligently selected such that the sunny landscape or neon-lit storefront can look washed-out. This problem of poorly controlled contrast is especially bad in cheap cameras and cameras that have small sensors, as webcams do. As a result, bright light sources tend to be imaged as big white blobs with thin rims of color. Moreover, these blobs tend to take the shape of the lens's iris, typically a polygon approximating a circle.

The thought of all lights becoming white and circular makes the world seem like a poorer place, if you ask me. Nonetheless, in computer vision, we can take advantage of such a predictable pattern. We can look for white blobs that are nearly circular, and we can infer their human-perceptible color from...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
OpenCV for Secret Agents
Published in: Jan 2015Publisher: PacktISBN-13: 9781783287376

Author (1)

author image
Joseph Howse

Joseph Howse lives in a Canadian fishing village, where he chats with his cats, crafts his books, and nurtures an orchard of hardy fruit trees. He is President of Nummist Media Corporation, which exists to support his books and to provide mentoring and consulting services, with a specialty in computer vision. On average, in 2015-2022, Joseph has written 1.4 new books or new editions per year for Packt. He also writes fiction, including an upcoming novel about the lives of a group of young people in the last days of the Soviet Union.
Read more about Joseph Howse