Learn OpenCV with Python by Examples
內容簡介
This book is a comprehensive guide to learning the basics of computer vision and machine learning using the powerful OpenCV library and the Python programming language. The book offers a practical, hands-on approach to learn the concepts and techniques of computer vision through practical example. All codes in this book are available at Github.
Through a series of examples, the book covers a wide range of topics including image and video processing, feature detection, object detection and recognition, machine learning and deep neural networks. Each chapter includes detailed explanations of the concepts and techniques involved, as well as practical examples and code snippets that demonstrate how to implement them in Python. Throughout the book, readers will work through hands-on examples and projects, learning how to build image processing applications from scratch.
Whether you are a beginner or an experienced programmer, this book provides a valuable resource for learning computer vision with OpenCV and Python. The clear and concise writing style makes it easy for readers to follow along, and the numerous examples ensure that readers can practice and apply what they have learned. By the end of the book, readers will have a solid understanding of the fundamentals of computer vision and be able to build their own computer vision applications with confidence. This book is an excellent resource for anyone looking to learn computer vision and machine learning using the OpenCV library and Python programming language.
Table of Contents
1. Introduction 5
2. Installation 13
2.1 Install on Windows 14
2.2 Install Python on Ubuntu 16
2.3 Configure PyCharm and Install OpenCV 18
3. OpenCV Basics 25
3.1 Load and Display Images 26
3.2 Load and Display Videos 30
3.3 Display Webcam 32
3.4 Image Fundamentals 35
3.5 Draw Shapes 42
3.6 Draw Texts 48
3.7 Draw an OpenCV-like Icon 50
4. User Interaction 52
4.1 Mouse Operations 53
4.2 Draw Circles with Mouse 56
4.3 Draw Polygon with Mouse 60
4.4 Crop an Image with Mouse 62
4.5 Input Values with Trackbars 64
5. Image Processing 70
5.1 Conversion of Color Spaces 72
5.2 Resize, Crop and Rotate an Image 77
5.3 Adjust Contrast and Brightness of an Image 83
5.4 Adjust Hue, Saturation and Value 87
5.5 Blend Image 91
5.6 Bitwise Operation 94
5.7 Warp Image 101
5.8 Blur Image 107
5.9 Histogram 114
6. Object Detection 120
6.1 Canny Edge Detection 122
6.2 Dilation and Erosion 125
6.3 Shape Detection 129
6.4 Color Detection 139
6.5 Text Recognition with Tesseract 150
6.6 Human Detection 161
6.7 Face and Eye Detection 165
6.8 Remove Background 170
6.9 Blur Background 189
7. Machine Learning 196
7.1 K-Means Clustering 200
7.2 K-Nearest Neighbors 216
7.3 Support Vector Machine 237
7.4 Artificial Neural Network (ANN) 254
7.5 Convolutional Neural Network (CNN) 276
Index 305
References 308
About the Author 310
配送方式
-
台灣
- 國內宅配:本島、離島
-
到店取貨:
不限金額免運費
-
海外
- 國際快遞:全球
-
港澳店取:
訂購/退換貨須知
加入金石堂 LINE 官方帳號『完成綁定』,隨時掌握出貨動態:
商品運送說明:
- 本公司所提供的產品配送區域範圍目前僅限台灣本島。注意!收件地址請勿為郵政信箱。
- 商品將由廠商透過貨運或是郵局寄送。消費者訂購之商品若無法送達,經電話或 E-mail無法聯繫逾三天者,本公司將取消該筆訂單,並且全額退款。
- 當廠商出貨後,您會收到E-mail出貨通知,您也可透過【訂單查詢】確認出貨情況。
- 產品顏色可能會因網頁呈現與拍攝關係產生色差,圖片僅供參考,商品依實際供貨樣式為準。
- 如果是大型商品(如:傢俱、床墊、家電、運動器材等)及需安裝商品,請依商品頁面說明為主。訂單完成收款確認後,出貨廠商將會和您聯繫確認相關配送等細節。
- 偏遠地區、樓層費及其它加價費用,皆由廠商於約定配送時一併告知,廠商將保留出貨與否的權利。
提醒您!!
金石堂及銀行均不會請您操作ATM! 如接獲電話要求您前往ATM提款機,請不要聽從指示,以免受騙上當!
退換貨須知:
**提醒您,鑑賞期不等於試用期,退回商品須為全新狀態**
-
依據「消費者保護法」第19條及行政院消費者保護處公告之「通訊交易解除權合理例外情事適用準則」,以下商品購買後,除商品本身有瑕疵外,將不提供7天的猶豫期:
- 易於腐敗、保存期限較短或解約時即將逾期。(如:生鮮食品)
- 依消費者要求所為之客製化給付。(客製化商品)
- 報紙、期刊或雜誌。(含MOOK、外文雜誌)
- 經消費者拆封之影音商品或電腦軟體。
- 非以有形媒介提供之數位內容或一經提供即為完成之線上服務,經消費者事先同意始提供。(如:電子書、電子雜誌、下載版軟體、虛擬商品…等)
- 已拆封之個人衛生用品。(如:內衣褲、刮鬍刀、除毛刀…等)
- 若非上列種類商品,均享有到貨7天的猶豫期(含例假日)。
- 辦理退換貨時,商品(組合商品恕無法接受單獨退貨)必須是您收到商品時的原始狀態(包含商品本體、配件、贈品、保證書、所有附隨資料文件及原廠內外包裝…等),請勿直接使用原廠包裝寄送,或於原廠包裝上黏貼紙張或書寫文字。
- 退回商品若無法回復原狀,將請您負擔回復原狀所需費用,嚴重時將影響您的退貨權益。




商品評價