Emgu CV Essentials
Develop your own computer vision application using the
power of Emgu CV
Shin Shi
BIRMINGHAM - MUMBAI
Emgu CV Essentials
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy
of the information presented. However, the information contained in this book is
sold without warranty, either express or implied. Neither the author, nor Packt
Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: November 2013
Production Reference: 1071113
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78355-952-7
www.packtpub.com
Cover Image by Aniket Sawant (aniket_sawant_photography@hotmail.com)
Credits
Project Coordinator
Suraj Bist
Proofreader
Faye Coulman
Indexer
Priya Subramani
Graphics
Ronak Dhruv
Abhinash Sahu
Production Coordinator
Arvindkumar Gupta
Cover Work
Arvindkumar Gupta
Author
Shin Shi
Reviewers
Yashaswita R. Bhoir
Luca Del Tongo
Acquisition Editors
Saleem Ahmed
Antony Lowe
Commissioning Editor
Neil Alexander
Technical Editors
Shiny Poojary
Faisal Siddiqui
Sonali S. Vernekar
Copy Editors
Alisha Aranha
Mradula Hegde
Dipti Kapadia
Gladson Monteiro
Sayanee Mukherjee
Aditya Nair
Alfida Paiva
Adithi Shetty
About the Author
Shin Shi is a member of the Digital Art Lab at Shanghai Jiao Tong University.
When he built his first robot at the age of fourteen in 2005, he became interested
in the field of computer vision. Over the last two years, he created a real-time face
recognition attendance system using Emgu CV at Huazhong University of Science and
Technology. He obtained a B.E. in Software Engineering from HUST and is currently
an M.S. candidate in DA Lab from SJTU. Now he is focusing on the field of computer
graphics, such as creating physics-based simulations and the use of animation.
Foremost, I would like to give a very special thanks to my soul
mate, Licheng Yin, for his invaluable support and patience. And I
would like to express my sincere gratitude to Prof. ZP Qin, for his
motivation and immense knowledge.
Last but not least, I would like to thank my family for supporting me
spiritually throughout my life.
About the Reviewers
Yashaswita R. Bhoir is a full-time working professional, employed in an MNC and
currently working on various technologies related to J2EE and application servers. She
had her share of experience working on Emgu CV for a Human-Computer Interaction
based project for a year. In addition to various projects on Emgu CV, she has a few
conference presentations to her name.
When not working on something or the other, Yashaswita likes spending her time
cooking, analyzing political affairs or re-reading the Harry Potter series. You can
get in touch with her on ykombinator@gmail.com
Luca Del Tongo is a computer engineer with a strong passion for algorithms,
computer vision, and image-processing techniques. He's the co-author of a free
e-book called "Data Structures and Algorithms (DSA)" with 100k downloads
and has published several image-processing tutorials on his YouTube channel,
using Emgu CV. During his Masters' thesis, he developed forensic algorithm for
use on images, published in a scientific paper called "Copy Move forgery detection
and localization by means of robust clustering with J-Linkage". Currently, he
works as a software engineer in the ophthalmology field developing corneal
topography-processing algorithms and IOL calculations. He loves practicing
sports and follows MOOC courses in his spare time. You can contact him
through his blog at http://blogs.ugidotnet.org/wetblog.
www.PacktPub.com
Support files, eBooks, discount offers and more
You might want to visit www.PacktPub.com for support files and downloads related
to your book.
Did you know that Packt offers eBook versions of every book published, with PDF
and ePub files available? You can upgrade to the eBook version at www.PacktPub.
com and as a print book customer, you are entitled to a discount on the eBook copy.
Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign
up for a range of free newsletters and receive exclusive discounts and offers on Packt
books and eBooks.
TM
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online
digital book library. Here, you can access, read and search across Packt's entire
library of books.
Why Subscribe?
• Fully searchable across every book published by Packt
• Copy and paste, print and bookmark content
• On demand and accessible via web browser
Free Access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access
PacktLib today and view nine entirely free books. Simply use your login credentials
for immediate access.
Table of Contents
Preface
Chapter 1: Introduction to Emgu CV
What is Emgu CV?
Comparing image-processing libraries
License agreement
Documentation and other material
Ease of use
Performance
Summary of the comparison
Advantages of Emgu CV
Cross-platform
Cross-language support with examples
Other advantages
Summary
Chapter 2: Installing Emgu CV
Downloading Emgu CV
Installing Emgu CV
Installing on Windows
Installing on Linux
Getting the dependency
Building Emgu CV from source
Installing on OS X
Getting the dependency
Building Emgu CV from source
Troubleshooting
Windows
Linux
OS X
Summary
1
5
5
6
6
7
7
8
9
9
9
9
10
10
11
11
11
11
16
16
17
18
19
19
20
20
21
22
22