![Page 1: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/1.jpg)
INTRODUCTION TO OPENCV WITH PYTHONMax Lai @ 80-cloud.com at Taichung.py, Aug. 30, 2014
![Page 2: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/2.jpg)
I am Max Lai
� from 80-cloud.com� 盟創(合勤集團)下的台中團隊� 目前開發重點
�照片分享社群服務�智慧影像分析技術
� We are hiring� mobile app developer (Android/iOS)� front end visual/UX designer
![Page 3: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/3.jpg)
有趣的OpenCV Project:能臉部識別定位的棉花糖大炮� http://goo.gl/BmTlHu
![Page 4: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/4.jpg)
大綱
� OpenCV 簡介� 利用 OpenCV 的簡單影像處理應用
� Image I/O� Smoothing� Edge detection� Histogram equalization
� 利用OpenCV 進行照片中的人臉偵測
![Page 5: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/5.jpg)
OpenCV 簡介
� Open source Computer Vision library� BSD License� http://opencv.org
� Originally developed by Intel� Has more than 2500 optimized algorithms� Supports a lot of different languages
� C, C++, Python, Java� but is written natively in C++
� Cross platform� also available for Android and iOS
Source: http://opencv.org/about.html
![Page 6: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/6.jpg)
OpenCV 的應用
Source: http://www.slideshare.net/zblair/opencv-introduction
![Page 7: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/7.jpg)
安裝OpenCV (on Ubuntu 12.04 LTS)
$ sudo apt-get update
$ sudo apt-get install -y vim build-essential python-software-properties
$ sudo apt-get install -y python-opencv python-numpy
![Page 8: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/8.jpg)
影像處理: Image I/O
Reference: http://goo.gl/H3z2fy
![Page 9: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/9.jpg)
影像處理: Smoothing
![Page 10: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/10.jpg)
影像處理: Smoothing
Source: http://goo.gl/M9dQ0L
![Page 11: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/11.jpg)
影像處理: Edge Detection
![Page 12: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/12.jpg)
影像處理: Edge Detection
Source: http://goo.gl/RjfUIJ
![Page 13: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/13.jpg)
影像處理: Histogram Equalization
![Page 14: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/14.jpg)
影像處理: Histogram Equalization
Source: http://goo.gl/JDGciw
![Page 15: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/15.jpg)
人臉偵測
� Sample code
API Doc: http://goo.gl/RxJSwd
![Page 16: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/16.jpg)
人臉偵測
� You need to download Face Detection Trainer� Haar Cascade Frontal Face xml file. � http://goo.gl/kJZVAI
Image: http://successfulpeoplesolveproblems.com
![Page 17: Introduction to OpenCV with python (at taichung.py)](https://reader035.vdocuments.mx/reader035/viewer/2022081801/547e80855806b5d15e8b46aa/html5/thumbnails/17.jpg)
參考資料
� Official Page: http://opencv.org
� Tutorials: http://docs.opencv.org/master/doc/py_tutorials/py_tutorials.htmll
� Face detection: http://fideloper.com/facial-detection
� Books: