没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
222页
OpenCV is a native, cross-platform C++ library for computer vision, machine learning, and image processing. It is increasingly being adopted in Python for development. OpenCV has C++/C, Python, and Java interfaces, with support for Windows, Linux, Mac, iOS, and Android. Developers who use OpenCV build applications to process visual data; this can include live streaming data such as photographs or videos from a device such as a camera. However, as developers move beyond their first computer vision applications, they might find it difficult to come up with solutions that are welloptimized, robust, and scalable for real-world scenarios.
资源推荐
资源详情
资源评论
OpenCV with Python Blueprints
Design and develop advanced computer vision projects
using OpenCV with Python
Michael Beyeler
BIRMINGHAM - MUMBAI
OpenCV with Python Blueprints
Copyright © 2015 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: October 2015
Production reference: 1141015
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-269-0
www.packtpub.com
[ i ]
Table of Contents
Preface vii
Chapter 1: Fun with Filters 1
Planning the app 3
Creating a black-and-white pencil sketch 3
Implementing dodging and burning in OpenCV 4
Pencil sketch transformation 6
Generating a warming/cooling lter 8
Color manipulation via curve shifting 9
Implementing a curve lter by using lookup tables 9
Designing the warming/cooling effect 10
Cartoonizing an image 13
Using a bilateral lter for edge-aware smoothing 13
Detecting and emphasizing prominent edges 14
Combining colors and outlines to produce a cartoon 16
Putting it all together 17
Running the app 17
The GUI base class 18
The GUI constructor 20
Handling video streams 20
A basic GUI layout 21
A custom lter layout 22
Summary 24
Table of Contents
[ ii ]
Chapter 2: Hand Gesture Recognition Using a Kinect
Depth Sensor 25
Planning the app 27
Setting up the app 27
Accessing the Kinect 3D sensor 28
Running the app 29
The Kinect GUI 30
Tracking hand gestures in real time 31
Hand region segmentation 32
Finding the most prominent depth of the image center region 33
Applying morphological closing to smoothen the segmentation mask 35
Finding connected components in a segmentation mask 36
Hand shape analysis 38
Determining the contour of the segmented hand region 38
Finding the convex hull of a contour area 39
Finding the convexity defects of a convex hull 40
Hand gesture recognition 40
Distinguishing between different causes of convexity defects 41
Classifying hand gestures based on the number of extended ngers 42
Summary 45
Chapter 3: Finding Objects via Feature Matching
and Perspective Transforms 47
Tasks performed by the app 48
Planning the app 50
Setting up the app 51
Running the app 51
The FeatureMatching GUI 52
The process ow 53
Feature extraction 55
Feature detection 55
Detecting features in an image with SURF 56
Feature matching 57
Matching features across images with FLANN 58
The ratio test for outlier removal 58
Visualizing feature matches 59
Homography estimation 61
Warping the image 64
Feature tracking 65
Early outlier detection and rejection 66
剩余221页未读,继续阅读
资源评论
nn123456789
- 粉丝: 14
- 资源: 128
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功