17
INTRODUCTION TO OPENCV WITH PYTHON Max Lai @ 80-cloud.com at Taichung.py, Aug. 30, 2014

Introduction to OpenCV with python (at taichung.py)

  • Upload
    max-lai

  • View
    352

  • Download
    0

Embed Size (px)

DESCRIPTION

This is a presentation I gave at Taichung.py in Aug. 30 2014.

Citation preview

Page 1: Introduction to OpenCV with python (at taichung.py)

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)

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)

有趣的OpenCV Project:能臉部識別定位的棉花糖大炮� http://goo.gl/BmTlHu

Page 4: Introduction to OpenCV with python (at taichung.py)

大綱

� OpenCV 簡介� 利用 OpenCV 的簡單影像處理應用

� Image I/O� Smoothing� Edge detection� Histogram equalization

� 利用OpenCV 進行照片中的人臉偵測

Page 5: Introduction to OpenCV with python (at taichung.py)

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)

OpenCV 的應用

Source: http://www.slideshare.net/zblair/opencv-introduction

Page 7: Introduction to OpenCV with python (at taichung.py)

安裝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)

影像處理: Image I/O

Reference: http://goo.gl/H3z2fy

Page 9: Introduction to OpenCV with python (at taichung.py)

影像處理: Smoothing

Page 10: Introduction to OpenCV with python (at taichung.py)

影像處理: Smoothing

Source: http://goo.gl/M9dQ0L

Page 11: Introduction to OpenCV with python (at taichung.py)

影像處理: Edge Detection

Page 12: Introduction to OpenCV with python (at taichung.py)

影像處理: Edge Detection

Source: http://goo.gl/RjfUIJ

Page 13: Introduction to OpenCV with python (at taichung.py)

影像處理: Histogram Equalization

Page 14: Introduction to OpenCV with python (at taichung.py)

影像處理: Histogram Equalization

Source: http://goo.gl/JDGciw

Page 15: Introduction to OpenCV with python (at taichung.py)

人臉偵測

� Sample code

API Doc: http://goo.gl/RxJSwd

Page 16: Introduction to OpenCV with python (at taichung.py)

人臉偵測

� 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)

參考資料

� 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: