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

Testing The Living Headlights app at home


Do not run out onto the highway at night to point your laptop's webcam into the headlights! We can devise more convenient and safer ways to test The Living Headlights, even if you have no car or do not drive.

A pair of LED flashlights is a good proxy for a pair of headlights. A flashlight with many LEDs (for example, 19) is preferable because it creates a denser circle of light that is more likely to be detected as exactly one blob. To ensure that the distance between the two flashlights remains constant, we can attach them to a rigid object, such as a board, using brackets, clamps, or tape. Here is an image of my flashlight holder, seen from the side:

The next image shows a frontal view of the flashlight holder, including a decorative grill:

Set up the lights in front of the webcam (parallel to the webcam's lens), run the app, and make sure that the lights are being detected. Then, using a tape measure, find the distance between the webcam and the...

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